Merge from gnulib.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_header_list=
603 gl_getopt_required=POSIX
604 gl_getopt_required=POSIX
605 ac_func_list=
606 ac_subst_vars='gltests_LTLIBOBJS
607 gltests_LIBOBJS
608 gl_LTLIBOBJS
609 gl_LIBOBJS
610 am__EXEEXT_FALSE
611 am__EXEEXT_TRUE
612 LTLIBOBJS
613 LIBOBJS
614 WINDOW_SUPPORT
615 TOOLTIP_SUPPORT
616 MOUSE_SUPPORT
617 LIB_GCC
618 LD_FIRSTFLAG
619 LD_SWITCH_SYSTEM_TEMACS
620 POST_ALLOC_OBJ
621 PRE_ALLOC_OBJ
622 CYGWIN_OBJ
623 RALLOC_OBJ
624 OLDXMENU_DEPS
625 LIBX_OTHER
626 LIBXMENU
627 OLDXMENU
628 OLDXMENU_TARGET
629 LIBXT_OTHER
630 TOOLKIT_LIBW
631 WIDGET_OBJ
632 XOBJ
633 XMENU_OBJ
634 FONT_OBJ
635 OTHER_FILES
636 GNU_OBJC_CFLAGS
637 ns_appsrc
638 ns_appresdir
639 ns_appbindir
640 ns_appdir
641 S_FILE
642 M_FILE
643 X_TOOLKIT_TYPE
644 C_SWITCH_X_SYSTEM
645 C_SWITCH_X_SITE
646 LD_SWITCH_X_SITE
647 gameuser
648 gamedir
649 bitmapdir
650 archlibdir
651 etcdir
652 x_default_search_path
653 lisppath
654 locallisppath
655 lispdir
656 srcdir
657 canonical
658 configuration
659 version
660 KRB4LIB
661 DESLIB
662 KRB5LIB
663 CRYPTOLIB
664 COM_ERRLIB
665 LIBRESOLV
666 LIBHESIOD
667 TERMCAP_OBJ
668 LIBS_TERMCAP
669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
681 NEXT_STDLIB_H
682 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
683 NEXT_STDDEF_H
684 STDDEF_H
685 HAVE_WCHAR_T
686 REPLACE_NULL
687 HAVE__BOOL
688 STDBOOL_H
689 APPLE_UNIVERSAL_BUILD
690 REPLACE_TIMEGM
691 REPLACE_NANOSLEEP
692 REPLACE_MKTIME
693 REPLACE_LOCALTIME_R
694 HAVE_TIMEGM
695 HAVE_STRPTIME
696 HAVE_NANOSLEEP
697 HAVE_DECL_LOCALTIME_R
698 GNULIB_TIME_R
699 GNULIB_TIMEGM
700 GNULIB_STRPTIME
701 GNULIB_NANOSLEEP
702 GNULIB_MKTIME
703 LTLIBINTL
704 LIBINTL
705 GETOPT_H
706 HAVE_GETOPT_H
707 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
708 NEXT_GETOPT_H
709 PRAGMA_COLUMNS
710 PRAGMA_SYSTEM_HEADER
711 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
712 INCLUDE_NEXT
713 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
714 UNISTD_H_HAVE_WINSOCK2_H
715 REPLACE_WRITE
716 REPLACE_USLEEP
717 REPLACE_UNLINKAT
718 REPLACE_UNLINK
719 REPLACE_TTYNAME_R
720 REPLACE_SYMLINK
721 REPLACE_SLEEP
722 REPLACE_RMDIR
723 REPLACE_READLINK
724 REPLACE_PWRITE
725 REPLACE_PREAD
726 REPLACE_LSEEK
727 REPLACE_LINKAT
728 REPLACE_LINK
729 REPLACE_LCHOWN
730 REPLACE_GETPAGESIZE
731 REPLACE_GETGROUPS
732 REPLACE_GETLOGIN_R
733 REPLACE_GETDOMAINNAME
734 REPLACE_GETCWD
735 REPLACE_FCHOWNAT
736 REPLACE_DUP2
737 REPLACE_DUP
738 REPLACE_CLOSE
739 REPLACE_CHOWN
740 HAVE_SYS_PARAM_H
741 HAVE_OS_H
742 HAVE_DECL_TTYNAME_R
743 HAVE_DECL_GETUSERSHELL
744 HAVE_DECL_GETPAGESIZE
745 HAVE_DECL_GETLOGIN_R
746 HAVE_DECL_GETDOMAINNAME
747 HAVE_DECL_FCHDIR
748 HAVE_DECL_ENVIRON
749 HAVE_USLEEP
750 HAVE_UNLINKAT
751 HAVE_SYMLINKAT
752 HAVE_SYMLINK
753 HAVE_SLEEP
754 HAVE_READLINKAT
755 HAVE_READLINK
756 HAVE_PWRITE
757 HAVE_PREAD
758 HAVE_PIPE2
759 HAVE_PIPE
760 HAVE_LINKAT
761 HAVE_LINK
762 HAVE_LCHOWN
763 HAVE_GETPAGESIZE
764 HAVE_GETLOGIN
765 HAVE_GETHOSTNAME
766 HAVE_GETGROUPS
767 HAVE_GETDTABLESIZE
768 HAVE_FTRUNCATE
769 HAVE_FSYNC
770 HAVE_FCHOWNAT
771 HAVE_FCHDIR
772 HAVE_FACCESSAT
773 HAVE_EUIDACCESS
774 HAVE_DUP3
775 HAVE_DUP2
776 HAVE_CHOWN
777 GNULIB_WRITE
778 GNULIB_USLEEP
779 GNULIB_UNLINKAT
780 GNULIB_UNLINK
781 GNULIB_UNISTD_H_SIGPIPE
782 GNULIB_UNISTD_H_GETOPT
783 GNULIB_TTYNAME_R
784 GNULIB_SYMLINKAT
785 GNULIB_SYMLINK
786 GNULIB_SLEEP
787 GNULIB_RMDIR
788 GNULIB_READLINKAT
789 GNULIB_READLINK
790 GNULIB_PWRITE
791 GNULIB_PREAD
792 GNULIB_PIPE2
793 GNULIB_PIPE
794 GNULIB_LSEEK
795 GNULIB_LINKAT
796 GNULIB_LINK
797 GNULIB_LCHOWN
798 GNULIB_GETUSERSHELL
799 GNULIB_GETPAGESIZE
800 GNULIB_GETLOGIN_R
801 GNULIB_GETLOGIN
802 GNULIB_GETHOSTNAME
803 GNULIB_GETGROUPS
804 GNULIB_GETDTABLESIZE
805 GNULIB_GETDOMAINNAME
806 GNULIB_GETCWD
807 GNULIB_FTRUNCATE
808 GNULIB_FSYNC
809 GNULIB_FCHOWNAT
810 GNULIB_FCHDIR
811 GNULIB_FACCESSAT
812 GNULIB_EUIDACCESS
813 GNULIB_ENVIRON
814 GNULIB_DUP3
815 GNULIB_DUP2
816 GNULIB_CLOSE
817 GNULIB_CHOWN
818 GETLOADAVG_LIBS
819 KMEM_GROUP
820 NEED_SETGID
821 REPLACE_UNSETENV
822 REPLACE_STRTOD
823 REPLACE_SETENV
824 REPLACE_REALPATH
825 REPLACE_REALLOC
826 REPLACE_PUTENV
827 REPLACE_MKSTEMP
828 REPLACE_MALLOC
829 REPLACE_CANONICALIZE_FILE_NAME
830 REPLACE_CALLOC
831 HAVE_DECL_UNSETENV
832 HAVE_UNLOCKPT
833 HAVE_SYS_LOADAVG_H
834 HAVE_STRUCT_RANDOM_DATA
835 HAVE_STRTOULL
836 HAVE_STRTOLL
837 HAVE_STRTOD
838 HAVE_DECL_SETENV
839 HAVE_SETENV
840 HAVE_RPMATCH
841 HAVE_REALPATH
842 HAVE_RANDOM_R
843 HAVE_RANDOM_H
844 HAVE_PTSNAME
845 HAVE_MKSTEMPS
846 HAVE_MKSTEMP
847 HAVE_MKOSTEMPS
848 HAVE_MKOSTEMP
849 HAVE_MKDTEMP
850 HAVE_GRANTPT
851 HAVE_GETSUBOPT
852 HAVE_DECL_GETLOADAVG
853 HAVE_CANONICALIZE_FILE_NAME
854 HAVE_ATOLL
855 HAVE__EXIT
856 GNULIB_UNSETENV
857 GNULIB_UNLOCKPT
858 GNULIB_SYSTEM_POSIX
859 GNULIB_STRTOULL
860 GNULIB_STRTOLL
861 GNULIB_STRTOD
862 GNULIB_SETENV
863 GNULIB_RPMATCH
864 GNULIB_REALPATH
865 GNULIB_REALLOC_POSIX
866 GNULIB_RANDOM_R
867 GNULIB_PUTENV
868 GNULIB_PTSNAME
869 GNULIB_MKSTEMPS
870 GNULIB_MKSTEMP
871 GNULIB_MKOSTEMPS
872 GNULIB_MKOSTEMP
873 GNULIB_MKDTEMP
874 GNULIB_MALLOC_POSIX
875 GNULIB_GRANTPT
876 GNULIB_GETSUBOPT
877 GNULIB_GETLOADAVG
878 GNULIB_CANONICALIZE_FILE_NAME
879 GNULIB_CALLOC_POSIX
880 GNULIB_ATOLL
881 GNULIB__EXIT
882 GL_COND_LIBTOOL_FALSE
883 GL_COND_LIBTOOL_TRUE
884 BLESSMAIL_TARGET
885 LIBS_MAIL
886 liblockfile
887 ALLOCA
888 LIBXML2_LIBS
889 LIBXML2_CFLAGS
890 LIBXSM
891 LIBGPM
892 LIBGIF
893 LIBTIFF
894 LIBPNG
895 LIBJPEG
896 LIBXPM
897 FREETYPE_LIBS
898 FREETYPE_CFLAGS
899 M17N_FLT_LIBS
900 M17N_FLT_CFLAGS
901 LIBOTF_LIBS
902 LIBOTF_CFLAGS
903 XFT_LIBS
904 XFT_CFLAGS
905 FONTCONFIG_LIBS
906 FONTCONFIG_CFLAGS
907 LIBXMU
908 LIBXTR6
909 LIBGNUTLS_LIBS
910 LIBGNUTLS_CFLAGS
911 LIBSELINUX_LIBS
912 GCONF_LIBS
913 GCONF_CFLAGS
914 DBUS_OBJ
915 DBUS_LIBS
916 DBUS_CFLAGS
917 GTK_OBJ
918 GTK_LIBS
919 GTK_CFLAGS
920 IMAGEMAGICK_LIBS
921 IMAGEMAGICK_CFLAGS
922 RSVG_LIBS
923 RSVG_CFLAGS
924 VMLIMIT_OBJ
925 GMALLOC_OBJ
926 HAVE_XSERVER
927 LIB_STANDARD
928 NS_SUPPORT
929 NS_OBJ
930 TEMACS_LDFLAGS2
931 LD_SWITCH_X_SITE_AUX_RPATH
932 LD_SWITCH_X_SITE_AUX
933 XMKMF
934 DEPFLAGS
935 MKDEPDIR
936 CFLAGS_SOUND
937 ALSA_LIBS
938 ALSA_CFLAGS
939 PKG_CONFIG
940 LIBSOUND
941 START_FILES
942 LIB_MATH
943 CRT_DIR
944 LIBS_SYSTEM
945 C_SWITCH_SYSTEM
946 UNEXEC_OBJ
947 C_SWITCH_MACHINE
948 LD_SWITCH_SYSTEM
949 CANNOT_DUMP
950 HAVE_MAKEINFO
951 GZIP_PROG
952 INSTALL_INFO
953 C_WARNINGS_SWITCH
954 EGREP
955 GREP
956 CPP
957 RANLIB
958 am__fastdepCC_FALSE
959 am__fastdepCC_TRUE
960 CCDEPMODE
961 AMDEPBACKSLASH
962 AMDEP_FALSE
963 AMDEP_TRUE
964 am__quote
965 am__include
966 DEPDIR
967 OBJEXT
968 EXEEXT
969 ac_ct_CC
970 CPPFLAGS
971 LDFLAGS
972 CFLAGS
973 CC
974 host_os
975 host_vendor
976 host_cpu
977 host
978 build_os
979 build_vendor
980 build_cpu
981 build
982 PROFILING_CFLAGS
983 MAINT
984 GZIP_INFO
985 am__untar
986 am__tar
987 AMTAR
988 am__leading_dot
989 SET_MAKE
990 AWK
991 mkdir_p
992 MKDIR_P
993 INSTALL_STRIP_PROGRAM
994 STRIP
995 install_sh
996 MAKEINFO
997 AUTOHEADER
998 AUTOMAKE
999 AUTOCONF
1000 ACLOCAL
1001 VERSION
1002 PACKAGE
1003 CYGPATH_W
1004 am__isrc
1005 INSTALL_DATA
1006 INSTALL_SCRIPT
1007 INSTALL_PROGRAM
1008 target_alias
1009 host_alias
1010 build_alias
1011 LIBS
1012 ECHO_T
1013 ECHO_N
1014 ECHO_C
1015 DEFS
1016 mandir
1017 localedir
1018 libdir
1019 psdir
1020 pdfdir
1021 dvidir
1022 htmldir
1023 infodir
1024 docdir
1025 oldincludedir
1026 includedir
1027 localstatedir
1028 sharedstatedir
1029 sysconfdir
1030 datadir
1031 datarootdir
1032 libexecdir
1033 sbindir
1034 bindir
1035 program_transform_name
1036 prefix
1037 exec_prefix
1038 PACKAGE_URL
1039 PACKAGE_BUGREPORT
1040 PACKAGE_STRING
1041 PACKAGE_VERSION
1042 PACKAGE_TARNAME
1043 PACKAGE_NAME
1044 PATH_SEPARATOR
1045 SHELL'
1046 ac_subst_files='deps_frag
1047 ns_frag'
1048 ac_user_opts='
1049 enable_option_checking
1050 with_pop
1051 with_kerberos
1052 with_kerberos5
1053 with_hesiod
1054 with_mmdf
1055 with_mail_unlink
1056 with_mailhost
1057 with_sound
1058 with_sync_input
1059 with_x_toolkit
1060 with_xpm
1061 with_jpeg
1062 with_tiff
1063 with_gif
1064 with_png
1065 with_rsvg
1066 with_xml2
1067 with_imagemagick
1068 with_xft
1069 with_libotf
1070 with_m17n_flt
1071 with_toolkit_scroll_bars
1072 with_xaw3d
1073 with_xim
1074 with_ns
1075 with_gpm
1076 with_dbus
1077 with_gconf
1078 with_selinux
1079 with_gnutls
1080 with_makeinfo
1081 with_compress_info
1082 with_pkg_config_prog
1083 with_crt_dir
1084 with_gameuser
1085 with_gnustep_conf
1086 enable_ns_self_contained
1087 enable_asserts
1088 enable_maintainer_mode
1089 enable_locallisppath
1090 enable_checking
1091 enable_use_lisp_union_type
1092 enable_profiling
1093 enable_autodepend
1094 enable_dependency_tracking
1095 enable_largefile
1096 with_x
1097 '
1098 ac_precious_vars='build_alias
1099 host_alias
1100 target_alias
1101 CC
1102 CFLAGS
1103 LDFLAGS
1104 LIBS
1105 CPPFLAGS
1106 CPP
1107 CPPFLAGS
1108 CPP
1109 CPPFLAGS
1110 XMKMF'
1111
1112
1113 # Initialize some variables set by options.
1114 ac_init_help=
1115 ac_init_version=false
1116 ac_unrecognized_opts=
1117 ac_unrecognized_sep=
1118 # The variables have the same names as the options, with
1119 # dashes changed to underlines.
1120 cache_file=/dev/null
1121 exec_prefix=NONE
1122 no_create=
1123 no_recursion=
1124 prefix=NONE
1125 program_prefix=NONE
1126 program_suffix=NONE
1127 program_transform_name=s,x,x,
1128 silent=
1129 site=
1130 srcdir=
1131 verbose=
1132 x_includes=NONE
1133 x_libraries=NONE
1134
1135 # Installation directory options.
1136 # These are left unexpanded so users can "make install exec_prefix=/foo"
1137 # and all the variables that are supposed to be based on exec_prefix
1138 # by default will actually change.
1139 # Use braces instead of parens because sh, perl, etc. also accept them.
1140 # (The list follows the same order as the GNU Coding Standards.)
1141 bindir='${exec_prefix}/bin'
1142 sbindir='${exec_prefix}/sbin'
1143 libexecdir='${exec_prefix}/libexec'
1144 datarootdir='${prefix}/share'
1145 datadir='${datarootdir}'
1146 sysconfdir='${prefix}/etc'
1147 sharedstatedir='${prefix}/com'
1148 localstatedir='${prefix}/var'
1149 includedir='${prefix}/include'
1150 oldincludedir='/usr/include'
1151 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1152 infodir='${datarootdir}/info'
1153 htmldir='${docdir}'
1154 dvidir='${docdir}'
1155 pdfdir='${docdir}'
1156 psdir='${docdir}'
1157 libdir='${exec_prefix}/lib'
1158 localedir='${datarootdir}/locale'
1159 mandir='${datarootdir}/man'
1160
1161 ac_prev=
1162 ac_dashdash=
1163 for ac_option
1164 do
1165 # If the previous option needs an argument, assign it.
1166 if test -n "$ac_prev"; then
1167 eval $ac_prev=\$ac_option
1168 ac_prev=
1169 continue
1170 fi
1171
1172 case $ac_option in
1173 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1174 *=) ac_optarg= ;;
1175 *) ac_optarg=yes ;;
1176 esac
1177
1178 # Accept the important Cygnus configure options, so we can diagnose typos.
1179
1180 case $ac_dashdash$ac_option in
1181 --)
1182 ac_dashdash=yes ;;
1183
1184 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1185 ac_prev=bindir ;;
1186 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1187 bindir=$ac_optarg ;;
1188
1189 -build | --build | --buil | --bui | --bu)
1190 ac_prev=build_alias ;;
1191 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1192 build_alias=$ac_optarg ;;
1193
1194 -cache-file | --cache-file | --cache-fil | --cache-fi \
1195 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1196 ac_prev=cache_file ;;
1197 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1198 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1199 cache_file=$ac_optarg ;;
1200
1201 --config-cache | -C)
1202 cache_file=config.cache ;;
1203
1204 -datadir | --datadir | --datadi | --datad)
1205 ac_prev=datadir ;;
1206 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1207 datadir=$ac_optarg ;;
1208
1209 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1210 | --dataroo | --dataro | --datar)
1211 ac_prev=datarootdir ;;
1212 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1213 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1214 datarootdir=$ac_optarg ;;
1215
1216 -disable-* | --disable-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid feature name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "enable_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval enable_$ac_useropt=no ;;
1231
1232 -docdir | --docdir | --docdi | --doc | --do)
1233 ac_prev=docdir ;;
1234 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1235 docdir=$ac_optarg ;;
1236
1237 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1238 ac_prev=dvidir ;;
1239 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1240 dvidir=$ac_optarg ;;
1241
1242 -enable-* | --enable-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error $? "invalid feature name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1250 *"
1251 "enable_$ac_useropt"
1252 "*) ;;
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1255 esac
1256 eval enable_$ac_useropt=\$ac_optarg ;;
1257
1258 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1259 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1260 | --exec | --exe | --ex)
1261 ac_prev=exec_prefix ;;
1262 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1263 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1264 | --exec=* | --exe=* | --ex=*)
1265 exec_prefix=$ac_optarg ;;
1266
1267 -gas | --gas | --ga | --g)
1268 # Obsolete; use --with-gas.
1269 with_gas=yes ;;
1270
1271 -help | --help | --hel | --he | -h)
1272 ac_init_help=long ;;
1273 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1274 ac_init_help=recursive ;;
1275 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1276 ac_init_help=short ;;
1277
1278 -host | --host | --hos | --ho)
1279 ac_prev=host_alias ;;
1280 -host=* | --host=* | --hos=* | --ho=*)
1281 host_alias=$ac_optarg ;;
1282
1283 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1284 ac_prev=htmldir ;;
1285 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1286 | --ht=*)
1287 htmldir=$ac_optarg ;;
1288
1289 -includedir | --includedir | --includedi | --included | --include \
1290 | --includ | --inclu | --incl | --inc)
1291 ac_prev=includedir ;;
1292 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1293 | --includ=* | --inclu=* | --incl=* | --inc=*)
1294 includedir=$ac_optarg ;;
1295
1296 -infodir | --infodir | --infodi | --infod | --info | --inf)
1297 ac_prev=infodir ;;
1298 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1299 infodir=$ac_optarg ;;
1300
1301 -libdir | --libdir | --libdi | --libd)
1302 ac_prev=libdir ;;
1303 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1304 libdir=$ac_optarg ;;
1305
1306 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1307 | --libexe | --libex | --libe)
1308 ac_prev=libexecdir ;;
1309 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1310 | --libexe=* | --libex=* | --libe=*)
1311 libexecdir=$ac_optarg ;;
1312
1313 -localedir | --localedir | --localedi | --localed | --locale)
1314 ac_prev=localedir ;;
1315 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1316 localedir=$ac_optarg ;;
1317
1318 -localstatedir | --localstatedir | --localstatedi | --localstated \
1319 | --localstate | --localstat | --localsta | --localst | --locals)
1320 ac_prev=localstatedir ;;
1321 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1322 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1323 localstatedir=$ac_optarg ;;
1324
1325 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1326 ac_prev=mandir ;;
1327 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1328 mandir=$ac_optarg ;;
1329
1330 -nfp | --nfp | --nf)
1331 # Obsolete; use --without-fp.
1332 with_fp=no ;;
1333
1334 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1335 | --no-cr | --no-c | -n)
1336 no_create=yes ;;
1337
1338 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1339 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1340 no_recursion=yes ;;
1341
1342 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1343 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1344 | --oldin | --oldi | --old | --ol | --o)
1345 ac_prev=oldincludedir ;;
1346 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1347 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1348 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1349 oldincludedir=$ac_optarg ;;
1350
1351 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1352 ac_prev=prefix ;;
1353 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1354 prefix=$ac_optarg ;;
1355
1356 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1357 | --program-pre | --program-pr | --program-p)
1358 ac_prev=program_prefix ;;
1359 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1360 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1361 program_prefix=$ac_optarg ;;
1362
1363 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1364 | --program-suf | --program-su | --program-s)
1365 ac_prev=program_suffix ;;
1366 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1367 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1368 program_suffix=$ac_optarg ;;
1369
1370 -program-transform-name | --program-transform-name \
1371 | --program-transform-nam | --program-transform-na \
1372 | --program-transform-n | --program-transform- \
1373 | --program-transform | --program-transfor \
1374 | --program-transfo | --program-transf \
1375 | --program-trans | --program-tran \
1376 | --progr-tra | --program-tr | --program-t)
1377 ac_prev=program_transform_name ;;
1378 -program-transform-name=* | --program-transform-name=* \
1379 | --program-transform-nam=* | --program-transform-na=* \
1380 | --program-transform-n=* | --program-transform-=* \
1381 | --program-transform=* | --program-transfor=* \
1382 | --program-transfo=* | --program-transf=* \
1383 | --program-trans=* | --program-tran=* \
1384 | --progr-tra=* | --program-tr=* | --program-t=*)
1385 program_transform_name=$ac_optarg ;;
1386
1387 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1388 ac_prev=pdfdir ;;
1389 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1390 pdfdir=$ac_optarg ;;
1391
1392 -psdir | --psdir | --psdi | --psd | --ps)
1393 ac_prev=psdir ;;
1394 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1395 psdir=$ac_optarg ;;
1396
1397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1398 | -silent | --silent | --silen | --sile | --sil)
1399 silent=yes ;;
1400
1401 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1402 ac_prev=sbindir ;;
1403 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1404 | --sbi=* | --sb=*)
1405 sbindir=$ac_optarg ;;
1406
1407 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1408 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1409 | --sharedst | --shareds | --shared | --share | --shar \
1410 | --sha | --sh)
1411 ac_prev=sharedstatedir ;;
1412 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1413 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1414 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1415 | --sha=* | --sh=*)
1416 sharedstatedir=$ac_optarg ;;
1417
1418 -site | --site | --sit)
1419 ac_prev=site ;;
1420 -site=* | --site=* | --sit=*)
1421 site=$ac_optarg ;;
1422
1423 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1424 ac_prev=srcdir ;;
1425 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1426 srcdir=$ac_optarg ;;
1427
1428 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1429 | --syscon | --sysco | --sysc | --sys | --sy)
1430 ac_prev=sysconfdir ;;
1431 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1432 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1433 sysconfdir=$ac_optarg ;;
1434
1435 -target | --target | --targe | --targ | --tar | --ta | --t)
1436 ac_prev=target_alias ;;
1437 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1438 target_alias=$ac_optarg ;;
1439
1440 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1441 verbose=yes ;;
1442
1443 -version | --version | --versio | --versi | --vers | -V)
1444 ac_init_version=: ;;
1445
1446 -with-* | --with-*)
1447 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1448 # Reject names that are not valid shell variable names.
1449 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1450 as_fn_error $? "invalid package name: $ac_useropt"
1451 ac_useropt_orig=$ac_useropt
1452 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1453 case $ac_user_opts in
1454 *"
1455 "with_$ac_useropt"
1456 "*) ;;
1457 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1458 ac_unrecognized_sep=', ';;
1459 esac
1460 eval with_$ac_useropt=\$ac_optarg ;;
1461
1462 -without-* | --without-*)
1463 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1464 # Reject names that are not valid shell variable names.
1465 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1466 as_fn_error $? "invalid package name: $ac_useropt"
1467 ac_useropt_orig=$ac_useropt
1468 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1469 case $ac_user_opts in
1470 *"
1471 "with_$ac_useropt"
1472 "*) ;;
1473 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1474 ac_unrecognized_sep=', ';;
1475 esac
1476 eval with_$ac_useropt=no ;;
1477
1478 --x)
1479 # Obsolete; use --with-x.
1480 with_x=yes ;;
1481
1482 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1483 | --x-incl | --x-inc | --x-in | --x-i)
1484 ac_prev=x_includes ;;
1485 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1486 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1487 x_includes=$ac_optarg ;;
1488
1489 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1490 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1491 ac_prev=x_libraries ;;
1492 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1493 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1494 x_libraries=$ac_optarg ;;
1495
1496 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1497 Try \`$0 --help' for more information"
1498 ;;
1499
1500 *=*)
1501 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1502 # Reject names that are not valid shell variable names.
1503 case $ac_envvar in #(
1504 '' | [0-9]* | *[!_$as_cr_alnum]* )
1505 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1506 esac
1507 eval $ac_envvar=\$ac_optarg
1508 export $ac_envvar ;;
1509
1510 *)
1511 # FIXME: should be removed in autoconf 3.0.
1512 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1513 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1514 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1515 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1516 ;;
1517
1518 esac
1519 done
1520
1521 if test -n "$ac_prev"; then
1522 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1523 as_fn_error $? "missing argument to $ac_option"
1524 fi
1525
1526 if test -n "$ac_unrecognized_opts"; then
1527 case $enable_option_checking in
1528 no) ;;
1529 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1530 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1531 esac
1532 fi
1533
1534 # Check all directory arguments for consistency.
1535 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1536 datadir sysconfdir sharedstatedir localstatedir includedir \
1537 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1538 libdir localedir mandir
1539 do
1540 eval ac_val=\$$ac_var
1541 # Remove trailing slashes.
1542 case $ac_val in
1543 */ )
1544 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1545 eval $ac_var=\$ac_val;;
1546 esac
1547 # Be sure to have absolute directory names.
1548 case $ac_val in
1549 [\\/$]* | ?:[\\/]* ) continue;;
1550 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1551 esac
1552 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1553 done
1554
1555 # There might be people who depend on the old broken behavior: `$host'
1556 # used to hold the argument of --host etc.
1557 # FIXME: To remove some day.
1558 build=$build_alias
1559 host=$host_alias
1560 target=$target_alias
1561
1562 # FIXME: To remove some day.
1563 if test "x$host_alias" != x; then
1564 if test "x$build_alias" = x; then
1565 cross_compiling=maybe
1566 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1567 If a cross compiler is detected then cross compile mode will be used" >&2
1568 elif test "x$build_alias" != "x$host_alias"; then
1569 cross_compiling=yes
1570 fi
1571 fi
1572
1573 ac_tool_prefix=
1574 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1575
1576 test "$silent" = yes && exec 6>/dev/null
1577
1578
1579 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1580 ac_ls_di=`ls -di .` &&
1581 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1582 as_fn_error $? "working directory cannot be determined"
1583 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1584 as_fn_error $? "pwd does not report name of working directory"
1585
1586
1587 # Find the source files, if location was not specified.
1588 if test -z "$srcdir"; then
1589 ac_srcdir_defaulted=yes
1590 # Try the directory containing this script, then the parent directory.
1591 ac_confdir=`$as_dirname -- "$as_myself" ||
1592 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1593 X"$as_myself" : 'X\(//\)[^/]' \| \
1594 X"$as_myself" : 'X\(//\)$' \| \
1595 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1596 $as_echo X"$as_myself" |
1597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1598 s//\1/
1599 q
1600 }
1601 /^X\(\/\/\)[^/].*/{
1602 s//\1/
1603 q
1604 }
1605 /^X\(\/\/\)$/{
1606 s//\1/
1607 q
1608 }
1609 /^X\(\/\).*/{
1610 s//\1/
1611 q
1612 }
1613 s/.*/./; q'`
1614 srcdir=$ac_confdir
1615 if test ! -r "$srcdir/$ac_unique_file"; then
1616 srcdir=..
1617 fi
1618 else
1619 ac_srcdir_defaulted=no
1620 fi
1621 if test ! -r "$srcdir/$ac_unique_file"; then
1622 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1623 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1624 fi
1625 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1626 ac_abs_confdir=`(
1627 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1628 pwd)`
1629 # When building in place, set srcdir=.
1630 if test "$ac_abs_confdir" = "$ac_pwd"; then
1631 srcdir=.
1632 fi
1633 # Remove unnecessary trailing slashes from srcdir.
1634 # Double slashes in file names in object file debugging info
1635 # mess up M-x gdb in Emacs.
1636 case $srcdir in
1637 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1638 esac
1639 for ac_var in $ac_precious_vars; do
1640 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1641 eval ac_env_${ac_var}_value=\$${ac_var}
1642 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1643 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1644 done
1645
1646 #
1647 # Report the --help message.
1648 #
1649 if test "$ac_init_help" = "long"; then
1650 # Omit some internal or obsolete options to make the list less imposing.
1651 # This message is too long to be a string in the A/UX 3.1 sh.
1652 cat <<_ACEOF
1653 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1654
1655 Usage: $0 [OPTION]... [VAR=VALUE]...
1656
1657 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1658 VAR=VALUE. See below for descriptions of some of the useful variables.
1659
1660 Defaults for the options are specified in brackets.
1661
1662 Configuration:
1663 -h, --help display this help and exit
1664 --help=short display options specific to this package
1665 --help=recursive display the short help of all the included packages
1666 -V, --version display version information and exit
1667 -q, --quiet, --silent do not print \`checking ...' messages
1668 --cache-file=FILE cache test results in FILE [disabled]
1669 -C, --config-cache alias for \`--cache-file=config.cache'
1670 -n, --no-create do not create output files
1671 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1672
1673 Installation directories:
1674 --prefix=PREFIX install architecture-independent files in PREFIX
1675 [$ac_default_prefix]
1676 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1677 [PREFIX]
1678
1679 By default, \`make install' will install all the files in
1680 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1681 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1682 for instance \`--prefix=\$HOME'.
1683
1684 For better control, use the options below.
1685
1686 Fine tuning of the installation directories:
1687 --bindir=DIR user executables [EPREFIX/bin]
1688 --sbindir=DIR system admin executables [EPREFIX/sbin]
1689 --libexecdir=DIR program executables [EPREFIX/libexec]
1690 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1691 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1692 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1693 --libdir=DIR object code libraries [EPREFIX/lib]
1694 --includedir=DIR C header files [PREFIX/include]
1695 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1696 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1697 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1698 --infodir=DIR info documentation [DATAROOTDIR/info]
1699 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1700 --mandir=DIR man documentation [DATAROOTDIR/man]
1701 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1702 --htmldir=DIR html documentation [DOCDIR]
1703 --dvidir=DIR dvi documentation [DOCDIR]
1704 --pdfdir=DIR pdf documentation [DOCDIR]
1705 --psdir=DIR ps documentation [DOCDIR]
1706 _ACEOF
1707
1708 cat <<\_ACEOF
1709
1710 Program names:
1711 --program-prefix=PREFIX prepend PREFIX to installed program names
1712 --program-suffix=SUFFIX append SUFFIX to installed program names
1713 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1714
1715 X features:
1716 --x-includes=DIR X include files are in DIR
1717 --x-libraries=DIR X library files are in DIR
1718
1719 System types:
1720 --build=BUILD configure for building on BUILD [guessed]
1721 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1722 _ACEOF
1723 fi
1724
1725 if test -n "$ac_init_help"; then
1726 case $ac_init_help in
1727 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1728 esac
1729 cat <<\_ACEOF
1730
1731 Optional Features:
1732 --disable-option-checking ignore unrecognized --enable/--with options
1733 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1734 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1735 --disable-ns-self-contained
1736 disable self contained build under NeXTstep
1737 --enable-asserts compile code with asserts enabled
1738 --enable-maintainer-mode
1739 enable make rules and dependencies not useful (and
1740 sometimes confusing) to the casual installer
1741 --enable-locallisppath=PATH
1742 directories Emacs should search for lisp files
1743 specific to this site
1744 --enable-checking[=LIST]
1745 enable expensive run-time checks. With LIST, enable
1746 only specific categories of checks. Categories are:
1747 all,yes,no. Flags are: stringbytes, stringoverrun,
1748 stringfreelist, xmallocoverrun, conslist
1749 --enable-use-lisp-union-type
1750 use a union for the Lisp_Object data type. This is
1751 only useful for development for catching certain
1752 types of bugs.
1753 --enable-profiling build emacs with profiling support. This might not
1754 work on all platforms
1755 --enable-autodepend automatically generate dependencies to .h-files.
1756 Requires GNU Make and Gcc. Enabled if GNU Make and
1757 Gcc is found
1758 --disable-dependency-tracking speeds up one-time build
1759 --enable-dependency-tracking do not reject slow dependency extractors
1760 --disable-largefile omit support for large files
1761
1762 Optional Packages:
1763 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1764 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1765 --without-pop don't support POP mail retrieval with movemail
1766 --with-kerberos support Kerberos-authenticated POP
1767 --with-kerberos5 support Kerberos version 5 authenticated POP
1768 --with-hesiod support Hesiod to get the POP server host
1769 --with-mmdf support MMDF mailboxes
1770 --with-mail-unlink unlink, rather than empty, mail spool after reading
1771 --with-mailhost=HOSTNAME
1772 string giving default POP mail host
1773 --without-sound don't compile with sound support
1774 --without-sync-input process async input synchronously
1775 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1776 lucid or athena, motif, no)
1777 --without-xpm don't compile with XPM image support
1778 --without-jpeg don't compile with JPEG image support
1779 --without-tiff don't compile with TIFF image support
1780 --without-gif don't compile with GIF image support
1781 --without-png don't compile with PNG image support
1782 --without-rsvg don't compile with SVG image support
1783 --without-xml2 don't compile with XML parsing support
1784 --without-imagemagick don't compile with ImageMagick image support
1785 --without-xft don't use XFT for anti aliased fonts
1786 --without-libotf don't use libotf for OpenType font support
1787 --without-m17n-flt don't use m17n-flt for text shaping
1788 --without-toolkit-scroll-bars
1789 don't use Motif or Xaw3d scroll bars
1790 --without-xaw3d don't use Xaw3d
1791 --without-xim don't use X11 XIM
1792 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1793 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1794 console
1795 --without-dbus don't compile with D-Bus support
1796 --without-gconf don't compile with GConf support
1797 --without-selinux don't compile with SELinux support
1798 --without-gnutls don't use -lgnutls for SSL/TLS support
1799 --without-makeinfo don't require makeinfo for building manuals
1800 --without-compress-info don't compress the installed Info pages
1801 --with-pkg-config-prog=PATH
1802 path to pkg-config for finding GTK and librsvg
1803 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1804 /usr/lib, or /usr/lib64 on some platforms.
1805 --with-gameuser=USER user for shared game score files
1806 --with-gnustep-conf=PATH
1807 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1808 or /etc/GNUstep/GNUstep.conf
1809 --with-x use the X Window System
1810
1811 Some influential environment variables:
1812 CC C compiler command
1813 CFLAGS C compiler flags
1814 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1815 nonstandard directory <lib dir>
1816 LIBS libraries to pass to the linker, e.g. -l<library>
1817 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1818 you have headers in a nonstandard directory <include dir>
1819 CPP C preprocessor
1820 XMKMF Path to xmkmf, Makefile generator for X Window System
1821
1822 Use these variables to override the choices made by `configure' or to help
1823 it to find libraries and programs with nonstandard names/locations.
1824
1825 Report bugs to the package provider.
1826 _ACEOF
1827 ac_status=$?
1828 fi
1829
1830 if test "$ac_init_help" = "recursive"; then
1831 # If there are subdirs, report their specific --help.
1832 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1833 test -d "$ac_dir" ||
1834 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1835 continue
1836 ac_builddir=.
1837
1838 case "$ac_dir" in
1839 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1840 *)
1841 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1842 # A ".." for each directory in $ac_dir_suffix.
1843 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1844 case $ac_top_builddir_sub in
1845 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1846 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1847 esac ;;
1848 esac
1849 ac_abs_top_builddir=$ac_pwd
1850 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1851 # for backward compatibility:
1852 ac_top_builddir=$ac_top_build_prefix
1853
1854 case $srcdir in
1855 .) # We are building in place.
1856 ac_srcdir=.
1857 ac_top_srcdir=$ac_top_builddir_sub
1858 ac_abs_top_srcdir=$ac_pwd ;;
1859 [\\/]* | ?:[\\/]* ) # Absolute name.
1860 ac_srcdir=$srcdir$ac_dir_suffix;
1861 ac_top_srcdir=$srcdir
1862 ac_abs_top_srcdir=$srcdir ;;
1863 *) # Relative name.
1864 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1865 ac_top_srcdir=$ac_top_build_prefix$srcdir
1866 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1867 esac
1868 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1869
1870 cd "$ac_dir" || { ac_status=$?; continue; }
1871 # Check for guested configure.
1872 if test -f "$ac_srcdir/configure.gnu"; then
1873 echo &&
1874 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1875 elif test -f "$ac_srcdir/configure"; then
1876 echo &&
1877 $SHELL "$ac_srcdir/configure" --help=recursive
1878 else
1879 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1880 fi || ac_status=$?
1881 cd "$ac_pwd" || { ac_status=$?; break; }
1882 done
1883 fi
1884
1885 test -n "$ac_init_help" && exit $ac_status
1886 if $ac_init_version; then
1887 cat <<\_ACEOF
1888 emacs configure 24.0.50
1889 generated by GNU Autoconf 2.68
1890
1891 Copyright (C) 2010 Free Software Foundation, Inc.
1892 This configure script is free software; the Free Software Foundation
1893 gives unlimited permission to copy, distribute and modify it.
1894 _ACEOF
1895 exit
1896 fi
1897
1898 ## ------------------------ ##
1899 ## Autoconf initialization. ##
1900 ## ------------------------ ##
1901
1902 # ac_fn_c_try_compile LINENO
1903 # --------------------------
1904 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1905 ac_fn_c_try_compile ()
1906 {
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 rm -f conftest.$ac_objext
1909 if { { ac_try="$ac_compile"
1910 case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_compile") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1922 fi
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } && {
1925 test -z "$ac_c_werror_flag" ||
1926 test ! -s conftest.err
1927 } && test -s conftest.$ac_objext; then :
1928 ac_retval=0
1929 else
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934 fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938 } # ac_fn_c_try_compile
1939
1940 # ac_fn_c_try_cpp LINENO
1941 # ----------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_c_try_cpp ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949 *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954 ac_status=$?
1955 if test -s conftest.err; then
1956 grep -v '^ *+' conftest.err >conftest.er1
1957 cat conftest.er1 >&5
1958 mv -f conftest.er1 conftest.err
1959 fi
1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961 test $ac_status = 0; } > conftest.i && {
1962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1963 test ! -s conftest.err
1964 }; then :
1965 ac_retval=0
1966 else
1967 $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970 ac_retval=1
1971 fi
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1974
1975 } # ac_fn_c_try_cpp
1976
1977 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1980 # the include files in INCLUDES and setting the cache variable VAR
1981 # accordingly.
1982 ac_fn_c_check_header_mongrel ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if eval \${$3+:} false; then :
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 else
1995 # Is the header compilable?
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1997 $as_echo_n "checking $2 usability... " >&6; }
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 #include <$2>
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_header_compiler=yes
2005 else
2006 ac_header_compiler=no
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2010 $as_echo "$ac_header_compiler" >&6; }
2011
2012 # Is the header present?
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2014 $as_echo_n "checking $2 presence... " >&6; }
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 #include <$2>
2018 _ACEOF
2019 if ac_fn_c_try_cpp "$LINENO"; then :
2020 ac_header_preproc=yes
2021 else
2022 ac_header_preproc=no
2023 fi
2024 rm -f conftest.err conftest.i conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2026 $as_echo "$ac_header_preproc" >&6; }
2027
2028 # So? What about this header?
2029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2030 yes:no: )
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2032 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 ;;
2036 no:yes:* )
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2038 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2040 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2042 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2044 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 ;;
2048 esac
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 eval "$3=\$ac_header_compiler"
2055 fi
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 fi
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062 } # ac_fn_c_check_header_mongrel
2063
2064 # ac_fn_c_try_run LINENO
2065 # ----------------------
2066 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2067 # that executables *can* be run.
2068 ac_fn_c_try_run ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if { { ac_try="$ac_link"
2072 case "(($ac_try" in
2073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2074 *) ac_try_echo=$ac_try;;
2075 esac
2076 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2077 $as_echo "$ac_try_echo"; } >&5
2078 (eval "$ac_link") 2>&5
2079 ac_status=$?
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2082 { { case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_try") 2>&5
2089 ac_status=$?
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; }; }; then :
2092 ac_retval=0
2093 else
2094 $as_echo "$as_me: program exited with status $ac_status" >&5
2095 $as_echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2097
2098 ac_retval=$ac_status
2099 fi
2100 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 as_fn_set_status $ac_retval
2103
2104 } # ac_fn_c_try_run
2105
2106 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2107 # -------------------------------------------------------
2108 # Tests whether HEADER exists and can be compiled using the include files in
2109 # INCLUDES, setting the cache variable VAR accordingly.
2110 ac_fn_c_check_header_compile ()
2111 {
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2114 $as_echo_n "checking for $2... " >&6; }
2115 if eval \${$3+:} false; then :
2116 $as_echo_n "(cached) " >&6
2117 else
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2120 $4
2121 #include <$2>
2122 _ACEOF
2123 if ac_fn_c_try_compile "$LINENO"; then :
2124 eval "$3=yes"
2125 else
2126 eval "$3=no"
2127 fi
2128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 fi
2130 eval ac_res=\$$3
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2132 $as_echo "$ac_res" >&6; }
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134
2135 } # ac_fn_c_check_header_compile
2136
2137 # ac_fn_c_try_link LINENO
2138 # -----------------------
2139 # Try to link conftest.$ac_ext, and return whether this succeeded.
2140 ac_fn_c_try_link ()
2141 {
2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2143 rm -f conftest.$ac_objext conftest$ac_exeext
2144 if { { ac_try="$ac_link"
2145 case "(($ac_try" in
2146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2147 *) ac_try_echo=$ac_try;;
2148 esac
2149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2150 $as_echo "$ac_try_echo"; } >&5
2151 (eval "$ac_link") 2>conftest.err
2152 ac_status=$?
2153 if test -s conftest.err; then
2154 grep -v '^ *+' conftest.err >conftest.er1
2155 cat conftest.er1 >&5
2156 mv -f conftest.er1 conftest.err
2157 fi
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } && {
2160 test -z "$ac_c_werror_flag" ||
2161 test ! -s conftest.err
2162 } && test -s conftest$ac_exeext && {
2163 test "$cross_compiling" = yes ||
2164 $as_test_x conftest$ac_exeext
2165 }; then :
2166 ac_retval=0
2167 else
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171 ac_retval=1
2172 fi
2173 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2174 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2175 # interfere with the next link command; also delete a directory that is
2176 # left behind by Apple's compiler. We do this before executing the actions.
2177 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 as_fn_set_status $ac_retval
2180
2181 } # ac_fn_c_try_link
2182
2183 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2184 # ---------------------------------------------
2185 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2186 # accordingly.
2187 ac_fn_c_check_decl ()
2188 {
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 as_decl_name=`echo $2|sed 's/ *(.*//'`
2191 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2193 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2194 if eval \${$3+:} false; then :
2195 $as_echo_n "(cached) " >&6
2196 else
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198 /* end confdefs.h. */
2199 $4
2200 int
2201 main ()
2202 {
2203 #ifndef $as_decl_name
2204 #ifdef __cplusplus
2205 (void) $as_decl_use;
2206 #else
2207 (void) $as_decl_name;
2208 #endif
2209 #endif
2210
2211 ;
2212 return 0;
2213 }
2214 _ACEOF
2215 if ac_fn_c_try_compile "$LINENO"; then :
2216 eval "$3=yes"
2217 else
2218 eval "$3=no"
2219 fi
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 fi
2222 eval ac_res=\$$3
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2224 $as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226
2227 } # ac_fn_c_check_decl
2228
2229 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2230 # ----------------------------------------------
2231 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2232 ac_fn_c_check_header_preproc ()
2233 {
2234 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2236 $as_echo_n "checking for $2... " >&6; }
2237 if eval \${$3+:} false; then :
2238 $as_echo_n "(cached) " >&6
2239 else
2240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2241 /* end confdefs.h. */
2242 #include <$2>
2243 _ACEOF
2244 if ac_fn_c_try_cpp "$LINENO"; then :
2245 eval "$3=yes"
2246 else
2247 eval "$3=no"
2248 fi
2249 rm -f conftest.err conftest.i conftest.$ac_ext
2250 fi
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255
2256 } # ac_fn_c_check_header_preproc
2257
2258 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2259 # ----------------------------------------------------
2260 # Tries to find if the field MEMBER exists in type AGGR, after including
2261 # INCLUDES, setting cache variable VAR accordingly.
2262 ac_fn_c_check_member ()
2263 {
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2266 $as_echo_n "checking for $2.$3... " >&6; }
2267 if eval \${$4+:} false; then :
2268 $as_echo_n "(cached) " >&6
2269 else
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2272 $5
2273 int
2274 main ()
2275 {
2276 static $2 ac_aggr;
2277 if (ac_aggr.$3)
2278 return 0;
2279 ;
2280 return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 eval "$4=yes"
2285 else
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2288 $5
2289 int
2290 main ()
2291 {
2292 static $2 ac_aggr;
2293 if (sizeof ac_aggr.$3)
2294 return 0;
2295 ;
2296 return 0;
2297 }
2298 _ACEOF
2299 if ac_fn_c_try_compile "$LINENO"; then :
2300 eval "$4=yes"
2301 else
2302 eval "$4=no"
2303 fi
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 fi
2306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2307 fi
2308 eval ac_res=\$$4
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2310 $as_echo "$ac_res" >&6; }
2311 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2312
2313 } # ac_fn_c_check_member
2314
2315 # ac_fn_c_check_func LINENO FUNC VAR
2316 # ----------------------------------
2317 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2318 ac_fn_c_check_func ()
2319 {
2320 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322 $as_echo_n "checking for $2... " >&6; }
2323 if eval \${$3+:} false; then :
2324 $as_echo_n "(cached) " >&6
2325 else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2330 #define $2 innocuous_$2
2331
2332 /* System header to define __stub macros and hopefully few prototypes,
2333 which can conflict with char $2 (); below.
2334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2335 <limits.h> exists even on freestanding compilers. */
2336
2337 #ifdef __STDC__
2338 # include <limits.h>
2339 #else
2340 # include <assert.h>
2341 #endif
2342
2343 #undef $2
2344
2345 /* Override any GCC internal prototype to avoid an error.
2346 Use char because int might match the return type of a GCC
2347 builtin and then its argument prototype would still apply. */
2348 #ifdef __cplusplus
2349 extern "C"
2350 #endif
2351 char $2 ();
2352 /* The GNU C library defines this for functions which it implements
2353 to always fail with ENOSYS. Some functions are actually named
2354 something starting with __ and the normal name is an alias. */
2355 #if defined __stub_$2 || defined __stub___$2
2356 choke me
2357 #endif
2358
2359 int
2360 main ()
2361 {
2362 return $2 ();
2363 ;
2364 return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_link "$LINENO"; then :
2368 eval "$3=yes"
2369 else
2370 eval "$3=no"
2371 fi
2372 rm -f core conftest.err conftest.$ac_objext \
2373 conftest$ac_exeext conftest.$ac_ext
2374 fi
2375 eval ac_res=\$$3
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2377 $as_echo "$ac_res" >&6; }
2378 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2379
2380 } # ac_fn_c_check_func
2381
2382 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2383 # -------------------------------------------
2384 # Tests whether TYPE exists after having included INCLUDES, setting cache
2385 # variable VAR accordingly.
2386 ac_fn_c_check_type ()
2387 {
2388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2390 $as_echo_n "checking for $2... " >&6; }
2391 if eval \${$3+:} false; then :
2392 $as_echo_n "(cached) " >&6
2393 else
2394 eval "$3=no"
2395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2396 /* end confdefs.h. */
2397 $4
2398 int
2399 main ()
2400 {
2401 if (sizeof ($2))
2402 return 0;
2403 ;
2404 return 0;
2405 }
2406 _ACEOF
2407 if ac_fn_c_try_compile "$LINENO"; then :
2408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h. */
2410 $4
2411 int
2412 main ()
2413 {
2414 if (sizeof (($2)))
2415 return 0;
2416 ;
2417 return 0;
2418 }
2419 _ACEOF
2420 if ac_fn_c_try_compile "$LINENO"; then :
2421
2422 else
2423 eval "$3=yes"
2424 fi
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 fi
2427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2428 fi
2429 eval ac_res=\$$3
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2431 $as_echo "$ac_res" >&6; }
2432 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2433
2434 } # ac_fn_c_check_type
2435 cat >config.log <<_ACEOF
2436 This file contains any messages produced by compilers while
2437 running configure, to aid debugging if configure makes a mistake.
2438
2439 It was created by emacs $as_me 24.0.50, which was
2440 generated by GNU Autoconf 2.68. Invocation command line was
2441
2442 $ $0 $@
2443
2444 _ACEOF
2445 exec 5>>config.log
2446 {
2447 cat <<_ASUNAME
2448 ## --------- ##
2449 ## Platform. ##
2450 ## --------- ##
2451
2452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2457
2458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2460
2461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2468
2469 _ASUNAME
2470
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 $as_echo "PATH: $as_dir"
2477 done
2478 IFS=$as_save_IFS
2479
2480 } >&5
2481
2482 cat >&5 <<_ACEOF
2483
2484
2485 ## ----------- ##
2486 ## Core tests. ##
2487 ## ----------- ##
2488
2489 _ACEOF
2490
2491
2492 # Keep a trace of the command line.
2493 # Strip out --no-create and --no-recursion so they do not pile up.
2494 # Strip out --silent because we don't want to record it for future runs.
2495 # Also quote any args containing shell meta-characters.
2496 # Make two passes to allow for proper duplicate-argument suppression.
2497 ac_configure_args=
2498 ac_configure_args0=
2499 ac_configure_args1=
2500 ac_must_keep_next=false
2501 for ac_pass in 1 2
2502 do
2503 for ac_arg
2504 do
2505 case $ac_arg in
2506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2508 | -silent | --silent | --silen | --sile | --sil)
2509 continue ;;
2510 *\'*)
2511 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2512 esac
2513 case $ac_pass in
2514 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2515 2)
2516 as_fn_append ac_configure_args1 " '$ac_arg'"
2517 if test $ac_must_keep_next = true; then
2518 ac_must_keep_next=false # Got value, back to normal.
2519 else
2520 case $ac_arg in
2521 *=* | --config-cache | -C | -disable-* | --disable-* \
2522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2524 | -with-* | --with-* | -without-* | --without-* | --x)
2525 case "$ac_configure_args0 " in
2526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2527 esac
2528 ;;
2529 -* ) ac_must_keep_next=true ;;
2530 esac
2531 fi
2532 as_fn_append ac_configure_args " '$ac_arg'"
2533 ;;
2534 esac
2535 done
2536 done
2537 { ac_configure_args0=; unset ac_configure_args0;}
2538 { ac_configure_args1=; unset ac_configure_args1;}
2539
2540 # When interrupted or exit'd, cleanup temporary files, and complete
2541 # config.log. We remove comments because anyway the quotes in there
2542 # would cause problems or look ugly.
2543 # WARNING: Use '\'' to represent an apostrophe within the trap.
2544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2545 trap 'exit_status=$?
2546 # Save into config.log some information that might help in debugging.
2547 {
2548 echo
2549
2550 $as_echo "## ---------------- ##
2551 ## Cache variables. ##
2552 ## ---------------- ##"
2553 echo
2554 # The following way of writing the cache mishandles newlines in values,
2555 (
2556 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2557 eval ac_val=\$$ac_var
2558 case $ac_val in #(
2559 *${as_nl}*)
2560 case $ac_var in #(
2561 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2562 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2563 esac
2564 case $ac_var in #(
2565 _ | IFS | as_nl) ;; #(
2566 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2567 *) { eval $ac_var=; unset $ac_var;} ;;
2568 esac ;;
2569 esac
2570 done
2571 (set) 2>&1 |
2572 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2573 *${as_nl}ac_space=\ *)
2574 sed -n \
2575 "s/'\''/'\''\\\\'\'''\''/g;
2576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2577 ;; #(
2578 *)
2579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2580 ;;
2581 esac |
2582 sort
2583 )
2584 echo
2585
2586 $as_echo "## ----------------- ##
2587 ## Output variables. ##
2588 ## ----------------- ##"
2589 echo
2590 for ac_var in $ac_subst_vars
2591 do
2592 eval ac_val=\$$ac_var
2593 case $ac_val in
2594 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2595 esac
2596 $as_echo "$ac_var='\''$ac_val'\''"
2597 done | sort
2598 echo
2599
2600 if test -n "$ac_subst_files"; then
2601 $as_echo "## ------------------- ##
2602 ## File substitutions. ##
2603 ## ------------------- ##"
2604 echo
2605 for ac_var in $ac_subst_files
2606 do
2607 eval ac_val=\$$ac_var
2608 case $ac_val in
2609 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2610 esac
2611 $as_echo "$ac_var='\''$ac_val'\''"
2612 done | sort
2613 echo
2614 fi
2615
2616 if test -s confdefs.h; then
2617 $as_echo "## ----------- ##
2618 ## confdefs.h. ##
2619 ## ----------- ##"
2620 echo
2621 cat confdefs.h
2622 echo
2623 fi
2624 test "$ac_signal" != 0 &&
2625 $as_echo "$as_me: caught signal $ac_signal"
2626 $as_echo "$as_me: exit $exit_status"
2627 } >&5
2628 rm -f core *.core core.conftest.* &&
2629 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2630 exit $exit_status
2631 ' 0
2632 for ac_signal in 1 2 13 15; do
2633 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2634 done
2635 ac_signal=0
2636
2637 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2638 rm -f -r conftest* confdefs.h
2639
2640 $as_echo "/* confdefs.h */" > confdefs.h
2641
2642 # Predefined preprocessor variables.
2643
2644 cat >>confdefs.h <<_ACEOF
2645 #define PACKAGE_NAME "$PACKAGE_NAME"
2646 _ACEOF
2647
2648 cat >>confdefs.h <<_ACEOF
2649 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2650 _ACEOF
2651
2652 cat >>confdefs.h <<_ACEOF
2653 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2654 _ACEOF
2655
2656 cat >>confdefs.h <<_ACEOF
2657 #define PACKAGE_STRING "$PACKAGE_STRING"
2658 _ACEOF
2659
2660 cat >>confdefs.h <<_ACEOF
2661 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2662 _ACEOF
2663
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE_URL "$PACKAGE_URL"
2666 _ACEOF
2667
2668
2669 # Let the site file select an alternate cache file if it wants to.
2670 # Prefer an explicitly selected file to automatically selected ones.
2671 ac_site_file1=NONE
2672 ac_site_file2=NONE
2673 if test -n "$CONFIG_SITE"; then
2674 # We do not want a PATH search for config.site.
2675 case $CONFIG_SITE in #((
2676 -*) ac_site_file1=./$CONFIG_SITE;;
2677 */*) ac_site_file1=$CONFIG_SITE;;
2678 *) ac_site_file1=./$CONFIG_SITE;;
2679 esac
2680 elif test "x$prefix" != xNONE; then
2681 ac_site_file1=$prefix/share/config.site
2682 ac_site_file2=$prefix/etc/config.site
2683 else
2684 ac_site_file1=$ac_default_prefix/share/config.site
2685 ac_site_file2=$ac_default_prefix/etc/config.site
2686 fi
2687 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2688 do
2689 test "x$ac_site_file" = xNONE && continue
2690 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2692 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2693 sed 's/^/| /' "$ac_site_file" >&5
2694 . "$ac_site_file" \
2695 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697 as_fn_error $? "failed to load site script $ac_site_file
2698 See \`config.log' for more details" "$LINENO" 5; }
2699 fi
2700 done
2701
2702 if test -r "$cache_file"; then
2703 # Some versions of bash will fail to source /dev/null (special files
2704 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2705 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2707 $as_echo "$as_me: loading cache $cache_file" >&6;}
2708 case $cache_file in
2709 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2710 *) . "./$cache_file";;
2711 esac
2712 fi
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2715 $as_echo "$as_me: creating cache $cache_file" >&6;}
2716 >$cache_file
2717 fi
2718
2719 as_fn_append ac_header_list " stdlib.h"
2720 as_fn_append ac_header_list " unistd.h"
2721 as_fn_append ac_header_list " sys/param.h"
2722 gl_getopt_required=GNU
2723 as_fn_append ac_header_list " getopt.h"
2724 as_fn_append ac_func_list " alarm"
2725 as_fn_append ac_func_list " tzset"
2726 as_fn_append ac_header_list " sys/time.h"
2727 as_fn_append ac_func_list " localtime_r"
2728 # Check that the precious variables saved in the cache have kept the same
2729 # value.
2730 ac_cache_corrupted=false
2731 for ac_var in $ac_precious_vars; do
2732 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2733 eval ac_new_set=\$ac_env_${ac_var}_set
2734 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2735 eval ac_new_val=\$ac_env_${ac_var}_value
2736 case $ac_old_set,$ac_new_set in
2737 set,)
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2739 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2740 ac_cache_corrupted=: ;;
2741 ,set)
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2743 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2744 ac_cache_corrupted=: ;;
2745 ,);;
2746 *)
2747 if test "x$ac_old_val" != "x$ac_new_val"; then
2748 # differences in whitespace do not lead to failure.
2749 ac_old_val_w=`echo x $ac_old_val`
2750 ac_new_val_w=`echo x $ac_new_val`
2751 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2753 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2754 ac_cache_corrupted=:
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2757 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2758 eval $ac_var=\$ac_old_val
2759 fi
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2761 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2763 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2764 fi;;
2765 esac
2766 # Pass precious variables to config.status.
2767 if test "$ac_new_set" = set; then
2768 case $ac_new_val in
2769 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2770 *) ac_arg=$ac_var=$ac_new_val ;;
2771 esac
2772 case " $ac_configure_args " in
2773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2774 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2775 esac
2776 fi
2777 done
2778 if $ac_cache_corrupted; then
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2782 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2783 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2784 fi
2785 ## -------------------- ##
2786 ## Main body of script. ##
2787 ## -------------------- ##
2788
2789 ac_ext=c
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794
2795
2796 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2797
2798
2799 am__api_version='1.11'
2800
2801 ac_aux_dir=
2802 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2803 if test -f "$ac_dir/install-sh"; then
2804 ac_aux_dir=$ac_dir
2805 ac_install_sh="$ac_aux_dir/install-sh -c"
2806 break
2807 elif test -f "$ac_dir/install.sh"; then
2808 ac_aux_dir=$ac_dir
2809 ac_install_sh="$ac_aux_dir/install.sh -c"
2810 break
2811 elif test -f "$ac_dir/shtool"; then
2812 ac_aux_dir=$ac_dir
2813 ac_install_sh="$ac_aux_dir/shtool install -c"
2814 break
2815 fi
2816 done
2817 if test -z "$ac_aux_dir"; then
2818 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2819 fi
2820
2821 # These three variables are undocumented and unsupported,
2822 # and are intended to be withdrawn in a future Autoconf release.
2823 # They can cause serious problems if a builder's source tree is in a directory
2824 # whose full name contains unusual characters.
2825 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2826 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2827 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2828
2829
2830 # Find a good install program. We prefer a C program (faster),
2831 # so one script is as good as another. But avoid the broken or
2832 # incompatible versions:
2833 # SysV /etc/install, /usr/sbin/install
2834 # SunOS /usr/etc/install
2835 # IRIX /sbin/install
2836 # AIX /bin/install
2837 # AmigaOS /C/install, which installs bootblocks on floppy discs
2838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2841 # OS/2's system install, which has a completely different semantic
2842 # ./install, which can be erroneously created by make from ./install.sh.
2843 # Reject install programs that cannot install multiple files.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2845 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2846 if test -z "$INSTALL"; then
2847 if ${ac_cv_path_install+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 # Account for people who put trailing slashes in PATH elements.
2856 case $as_dir/ in #((
2857 ./ | .// | /[cC]/* | \
2858 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2859 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2860 /usr/ucb/* ) ;;
2861 *)
2862 # OSF1 and SCO ODT 3.0 have their own names for install.
2863 # Don't use installbsd from OSF since it installs stuff as root
2864 # by default.
2865 for ac_prog in ginstall scoinst install; do
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2868 if test $ac_prog = install &&
2869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870 # AIX install. It has an incompatible calling convention.
2871 :
2872 elif test $ac_prog = install &&
2873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2874 # program-specific install script used by HP pwplus--don't use.
2875 :
2876 else
2877 rm -rf conftest.one conftest.two conftest.dir
2878 echo one > conftest.one
2879 echo two > conftest.two
2880 mkdir conftest.dir
2881 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2882 test -s conftest.one && test -s conftest.two &&
2883 test -s conftest.dir/conftest.one &&
2884 test -s conftest.dir/conftest.two
2885 then
2886 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2887 break 3
2888 fi
2889 fi
2890 fi
2891 done
2892 done
2893 ;;
2894 esac
2895
2896 done
2897 IFS=$as_save_IFS
2898
2899 rm -rf conftest.one conftest.two conftest.dir
2900
2901 fi
2902 if test "${ac_cv_path_install+set}" = set; then
2903 INSTALL=$ac_cv_path_install
2904 else
2905 # As a last resort, use the slow shell script. Don't cache a
2906 # value for INSTALL within a source directory, because that will
2907 # break other packages using the cache if that directory is
2908 # removed, or if the value is a relative name.
2909 INSTALL=$ac_install_sh
2910 fi
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2913 $as_echo "$INSTALL" >&6; }
2914
2915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2916 # It thinks the first close brace ends the variable substitution.
2917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2918
2919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2920
2921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2922
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2924 $as_echo_n "checking whether build environment is sane... " >&6; }
2925 # Just in case
2926 sleep 1
2927 echo timestamp > conftest.file
2928 # Reject unsafe characters in $srcdir or the absolute working directory
2929 # name. Accept space and tab only in the latter.
2930 am_lf='
2931 '
2932 case `pwd` in
2933 *[\\\"\#\$\&\'\`$am_lf]*)
2934 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2935 esac
2936 case $srcdir in
2937 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2938 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2939 esac
2940
2941 # Do `set' in a subshell so we don't clobber the current shell's
2942 # arguments. Must try -L first in case configure is actually a
2943 # symlink; some systems play weird games with the mod time of symlinks
2944 # (eg FreeBSD returns the mod time of the symlink's containing
2945 # directory).
2946 if (
2947 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2948 if test "$*" = "X"; then
2949 # -L didn't work.
2950 set X `ls -t "$srcdir/configure" conftest.file`
2951 fi
2952 rm -f conftest.file
2953 if test "$*" != "X $srcdir/configure conftest.file" \
2954 && test "$*" != "X conftest.file $srcdir/configure"; then
2955
2956 # If neither matched, then we have a broken ls. This can happen
2957 # if, for instance, CONFIG_SHELL is bash and it inherits a
2958 # broken ls alias from the environment. This has actually
2959 # happened. Such a system could not be considered "sane".
2960 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2961 alias in your environment" "$LINENO" 5
2962 fi
2963
2964 test "$2" = conftest.file
2965 )
2966 then
2967 # Ok.
2968 :
2969 else
2970 as_fn_error $? "newly created file is older than distributed files!
2971 Check your system clock" "$LINENO" 5
2972 fi
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2974 $as_echo "yes" >&6; }
2975 test "$program_prefix" != NONE &&
2976 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2977 # Use a double $ so make ignores it.
2978 test "$program_suffix" != NONE &&
2979 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2980 # Double any \ or $.
2981 # By default was `s,x,x', remove it if useless.
2982 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2983 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2984
2985 # expand $ac_aux_dir to an absolute path
2986 am_aux_dir=`cd $ac_aux_dir && pwd`
2987
2988 if test x"${MISSING+set}" != xset; then
2989 case $am_aux_dir in
2990 *\ * | *\ *)
2991 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2992 *)
2993 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2994 esac
2995 fi
2996 # Use eval to expand $SHELL
2997 if eval "$MISSING --run true"; then
2998 am_missing_run="$MISSING --run "
2999 else
3000 am_missing_run=
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3002 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3003 fi
3004
3005 if test x"${install_sh}" != xset; then
3006 case $am_aux_dir in
3007 *\ * | *\ *)
3008 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3009 *)
3010 install_sh="\${SHELL} $am_aux_dir/install-sh"
3011 esac
3012 fi
3013
3014 # Installed binaries are usually stripped using `strip' when the user
3015 # run `make install-strip'. However `strip' might not be the right
3016 # tool to use in cross-compilation environments, therefore Automake
3017 # will honor the `STRIP' environment variable to overrule this program.
3018 if test "$cross_compiling" != no; then
3019 if test -n "$ac_tool_prefix"; then
3020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3021 set dummy ${ac_tool_prefix}strip; ac_word=$2
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023 $as_echo_n "checking for $ac_word... " >&6; }
3024 if ${ac_cv_prog_STRIP+:} false; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 if test -n "$STRIP"; then
3028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3029 else
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 test -z "$as_dir" && as_dir=.
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039 break 2
3040 fi
3041 done
3042 done
3043 IFS=$as_save_IFS
3044
3045 fi
3046 fi
3047 STRIP=$ac_cv_prog_STRIP
3048 if test -n "$STRIP"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3050 $as_echo "$STRIP" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 fi
3058 if test -z "$ac_cv_prog_STRIP"; then
3059 ac_ct_STRIP=$STRIP
3060 # Extract the first word of "strip", so it can be a program name with args.
3061 set dummy strip; ac_word=$2
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063 $as_echo_n "checking for $ac_word... " >&6; }
3064 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3065 $as_echo_n "(cached) " >&6
3066 else
3067 if test -n "$ac_ct_STRIP"; then
3068 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_ac_ct_STRIP="strip"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3088 if test -n "$ac_ct_STRIP"; then
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3090 $as_echo "$ac_ct_STRIP" >&6; }
3091 else
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093 $as_echo "no" >&6; }
3094 fi
3095
3096 if test "x$ac_ct_STRIP" = x; then
3097 STRIP=":"
3098 else
3099 case $cross_compiling:$ac_tool_warned in
3100 yes:)
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3103 ac_tool_warned=yes ;;
3104 esac
3105 STRIP=$ac_ct_STRIP
3106 fi
3107 else
3108 STRIP="$ac_cv_prog_STRIP"
3109 fi
3110
3111 fi
3112 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3113
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3115 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3116 if test -z "$MKDIR_P"; then
3117 if ${ac_cv_path_mkdir+:} false; then :
3118 $as_echo_n "(cached) " >&6
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3122 do
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_prog in mkdir gmkdir; do
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3128 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3129 'mkdir (GNU coreutils) '* | \
3130 'mkdir (coreutils) '* | \
3131 'mkdir (fileutils) '4.1*)
3132 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3133 break 3;;
3134 esac
3135 done
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141
3142 test -d ./--version && rmdir ./--version
3143 if test "${ac_cv_path_mkdir+set}" = set; then
3144 MKDIR_P="$ac_cv_path_mkdir -p"
3145 else
3146 # As a last resort, use the slow shell script. Don't cache a
3147 # value for MKDIR_P within a source directory, because that will
3148 # break other packages using the cache if that directory is
3149 # removed, or if the value is a relative name.
3150 MKDIR_P="$ac_install_sh -d"
3151 fi
3152 fi
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3154 $as_echo "$MKDIR_P" >&6; }
3155
3156
3157 mkdir_p="$MKDIR_P"
3158 case $mkdir_p in
3159 [\\/$]* | ?:[\\/]*) ;;
3160 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3161 esac
3162
3163 for ac_prog in gawk mawk nawk awk
3164 do
3165 # Extract the first word of "$ac_prog", so it can be a program name with args.
3166 set dummy $ac_prog; ac_word=$2
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3168 $as_echo_n "checking for $ac_word... " >&6; }
3169 if ${ac_cv_prog_AWK+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171 else
3172 if test -n "$AWK"; then
3173 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3174 else
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 for as_dir in $PATH
3177 do
3178 IFS=$as_save_IFS
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3182 ac_cv_prog_AWK="$ac_prog"
3183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 break 2
3185 fi
3186 done
3187 done
3188 IFS=$as_save_IFS
3189
3190 fi
3191 fi
3192 AWK=$ac_cv_prog_AWK
3193 if test -n "$AWK"; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3195 $as_echo "$AWK" >&6; }
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202 test -n "$AWK" && break
3203 done
3204
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3206 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3207 set x ${MAKE-make}
3208 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3209 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 cat >conftest.make <<\_ACEOF
3213 SHELL = /bin/sh
3214 all:
3215 @echo '@@@%%%=$(MAKE)=@@@%%%'
3216 _ACEOF
3217 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3218 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3219 *@@@%%%=?*=@@@%%%*)
3220 eval ac_cv_prog_make_${ac_make}_set=yes;;
3221 *)
3222 eval ac_cv_prog_make_${ac_make}_set=no;;
3223 esac
3224 rm -f conftest.make
3225 fi
3226 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3228 $as_echo "yes" >&6; }
3229 SET_MAKE=
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3233 SET_MAKE="MAKE=${MAKE-make}"
3234 fi
3235
3236 rm -rf .tst 2>/dev/null
3237 mkdir .tst 2>/dev/null
3238 if test -d .tst; then
3239 am__leading_dot=.
3240 else
3241 am__leading_dot=_
3242 fi
3243 rmdir .tst 2>/dev/null
3244
3245 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3246 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3247 # is not polluted with repeated "-I."
3248 am__isrc=' -I$(srcdir)'
3249 # test to see if srcdir already configured
3250 if test -f $srcdir/config.status; then
3251 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3252 fi
3253 fi
3254
3255 # test whether we have cygpath
3256 if test -z "$CYGPATH_W"; then
3257 if (cygpath --version) >/dev/null 2>/dev/null; then
3258 CYGPATH_W='cygpath -w'
3259 else
3260 CYGPATH_W=echo
3261 fi
3262 fi
3263
3264
3265 # Define the identity of the package.
3266 PACKAGE='emacs'
3267 VERSION='24.0.50'
3268
3269
3270 cat >>confdefs.h <<_ACEOF
3271 #define PACKAGE "$PACKAGE"
3272 _ACEOF
3273
3274
3275 cat >>confdefs.h <<_ACEOF
3276 #define VERSION "$VERSION"
3277 _ACEOF
3278
3279 # Some tools Automake needs.
3280
3281 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3282
3283
3284 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3285
3286
3287 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3288
3289
3290 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3291
3292
3293 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3294
3295 # We need awk for the "check" target. The system "awk" is bad on
3296 # some platforms.
3297 # Always define AMTAR for backward compatibility.
3298
3299 AMTAR=${AMTAR-"${am_missing_run}tar"}
3300
3301 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3302
3303
3304
3305
3306
3307
3308
3309
3310 lispdir='${datadir}/emacs/${version}/lisp'
3311 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3312 '${datadir}/emacs/site-lisp'
3313 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3314 etcdir='${datadir}/emacs/${version}/etc'
3315 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3316 docdir='${datadir}/emacs/${version}/etc'
3317 gamedir='${localstatedir}/games/emacs'
3318
3319
3320
3321
3322 # Check whether --with-pop was given.
3323 if test "${with_pop+set}" = set; then :
3324 withval=$with_pop;
3325 else
3326 with_pop=yes
3327 fi
3328
3329 if test "$with_pop" = yes; then
3330 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3331
3332 fi
3333
3334
3335 # Check whether --with-kerberos was given.
3336 if test "${with_kerberos+set}" = set; then :
3337 withval=$with_kerberos;
3338 else
3339 with_kerberos=no
3340 fi
3341
3342 if test "$with_kerberos" != no; then
3343 $as_echo "#define KERBEROS 1" >>confdefs.h
3344
3345 fi
3346
3347
3348 # Check whether --with-kerberos5 was given.
3349 if test "${with_kerberos5+set}" = set; then :
3350 withval=$with_kerberos5;
3351 else
3352 with_kerberos5=no
3353 fi
3354
3355 if test "${with_kerberos5}" != no; then
3356 if test "${with_kerberos}" = no; then
3357 with_kerberos=yes
3358 $as_echo "#define KERBEROS 1" >>confdefs.h
3359
3360 fi
3361
3362 $as_echo "#define KERBEROS5 1" >>confdefs.h
3363
3364 fi
3365
3366
3367 # Check whether --with-hesiod was given.
3368 if test "${with_hesiod+set}" = set; then :
3369 withval=$with_hesiod;
3370 else
3371 with_hesiod=no
3372 fi
3373
3374 if test "$with_hesiod" != no; then
3375
3376 $as_echo "#define HESIOD 1" >>confdefs.h
3377
3378 fi
3379
3380
3381 # Check whether --with-mmdf was given.
3382 if test "${with_mmdf+set}" = set; then :
3383 withval=$with_mmdf;
3384 else
3385 with_mmdf=no
3386 fi
3387
3388 if test "$with_mmdf" != no; then
3389
3390 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3391
3392 fi
3393
3394
3395 # Check whether --with-mail-unlink was given.
3396 if test "${with_mail_unlink+set}" = set; then :
3397 withval=$with_mail_unlink;
3398 else
3399 with_mail_unlink=no
3400 fi
3401
3402 if test "$with_mail_unlink" != no; then
3403
3404 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3405
3406 fi
3407
3408
3409 # Check whether --with-mailhost was given.
3410 if test "${with_mailhost+set}" = set; then :
3411 withval=$with_mailhost;
3412 cat >>confdefs.h <<_ACEOF
3413 #define MAILHOST "$withval"
3414 _ACEOF
3415
3416 fi
3417
3418
3419
3420 # Check whether --with-sound was given.
3421 if test "${with_sound+set}" = set; then :
3422 withval=$with_sound;
3423 else
3424 with_sound=yes
3425 fi
3426
3427
3428
3429 # Check whether --with-sync-input was given.
3430 if test "${with_sync_input+set}" = set; then :
3431 withval=$with_sync_input;
3432 else
3433 with_sync_input=yes
3434 fi
3435
3436 if test "$with_sync_input" = yes; then
3437
3438 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3439
3440 fi
3441
3442
3443 # Check whether --with-x-toolkit was given.
3444 if test "${with_x_toolkit+set}" = set; then :
3445 withval=$with_x_toolkit; case "${withval}" in
3446 y | ye | yes ) val=gtk ;;
3447 n | no ) val=no ;;
3448 l | lu | luc | luci | lucid ) val=lucid ;;
3449 a | at | ath | athe | athen | athena ) val=athena ;;
3450 m | mo | mot | moti | motif ) val=motif ;;
3451 g | gt | gtk ) val=gtk ;;
3452 gtk3 ) val=gtk3 ;;
3453 * )
3454 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3455 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3456 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3457 ;;
3458 esac
3459 with_x_toolkit=$val
3460
3461 fi
3462
3463
3464
3465 # Check whether --with-xpm was given.
3466 if test "${with_xpm+set}" = set; then :
3467 withval=$with_xpm;
3468 else
3469 with_xpm=yes
3470 fi
3471
3472
3473 # Check whether --with-jpeg was given.
3474 if test "${with_jpeg+set}" = set; then :
3475 withval=$with_jpeg;
3476 else
3477 with_jpeg=yes
3478 fi
3479
3480
3481 # Check whether --with-tiff was given.
3482 if test "${with_tiff+set}" = set; then :
3483 withval=$with_tiff;
3484 else
3485 with_tiff=yes
3486 fi
3487
3488
3489 # Check whether --with-gif was given.
3490 if test "${with_gif+set}" = set; then :
3491 withval=$with_gif;
3492 else
3493 with_gif=yes
3494 fi
3495
3496
3497 # Check whether --with-png was given.
3498 if test "${with_png+set}" = set; then :
3499 withval=$with_png;
3500 else
3501 with_png=yes
3502 fi
3503
3504
3505 # Check whether --with-rsvg was given.
3506 if test "${with_rsvg+set}" = set; then :
3507 withval=$with_rsvg;
3508 else
3509 with_rsvg=yes
3510 fi
3511
3512
3513 # Check whether --with-xml2 was given.
3514 if test "${with_xml2+set}" = set; then :
3515 withval=$with_xml2;
3516 else
3517 with_xml2=yes
3518 fi
3519
3520
3521 # Check whether --with-imagemagick was given.
3522 if test "${with_imagemagick+set}" = set; then :
3523 withval=$with_imagemagick;
3524 else
3525 with_imagemagick=yes
3526 fi
3527
3528
3529
3530 # Check whether --with-xft was given.
3531 if test "${with_xft+set}" = set; then :
3532 withval=$with_xft;
3533 else
3534 with_xft=yes
3535 fi
3536
3537
3538 # Check whether --with-libotf was given.
3539 if test "${with_libotf+set}" = set; then :
3540 withval=$with_libotf;
3541 else
3542 with_libotf=yes
3543 fi
3544
3545
3546 # Check whether --with-m17n-flt was given.
3547 if test "${with_m17n_flt+set}" = set; then :
3548 withval=$with_m17n_flt;
3549 else
3550 with_m17n_flt=yes
3551 fi
3552
3553
3554
3555 # Check whether --with-toolkit-scroll-bars was given.
3556 if test "${with_toolkit_scroll_bars+set}" = set; then :
3557 withval=$with_toolkit_scroll_bars;
3558 else
3559 with_toolkit_scroll_bars=yes
3560 fi
3561
3562
3563 # Check whether --with-xaw3d was given.
3564 if test "${with_xaw3d+set}" = set; then :
3565 withval=$with_xaw3d;
3566 else
3567 with_xaw3d=yes
3568 fi
3569
3570
3571 # Check whether --with-xim was given.
3572 if test "${with_xim+set}" = set; then :
3573 withval=$with_xim;
3574 else
3575 with_xim=yes
3576 fi
3577
3578
3579 # Check whether --with-ns was given.
3580 if test "${with_ns+set}" = set; then :
3581 withval=$with_ns;
3582 else
3583 with_ns=no
3584 fi
3585
3586
3587
3588 # Check whether --with-gpm was given.
3589 if test "${with_gpm+set}" = set; then :
3590 withval=$with_gpm;
3591 else
3592 with_gpm=yes
3593 fi
3594
3595
3596 # Check whether --with-dbus was given.
3597 if test "${with_dbus+set}" = set; then :
3598 withval=$with_dbus;
3599 else
3600 with_dbus=yes
3601 fi
3602
3603
3604 # Check whether --with-gconf was given.
3605 if test "${with_gconf+set}" = set; then :
3606 withval=$with_gconf;
3607 else
3608 with_gconf=yes
3609 fi
3610
3611
3612 # Check whether --with-selinux was given.
3613 if test "${with_selinux+set}" = set; then :
3614 withval=$with_selinux;
3615 else
3616 with_selinux=yes
3617 fi
3618
3619
3620 # Check whether --with-gnutls was given.
3621 if test "${with_gnutls+set}" = set; then :
3622 withval=$with_gnutls;
3623 else
3624 with_gnutls=yes
3625 fi
3626
3627
3628 ## For the times when you want to build Emacs but don't have
3629 ## a suitable makeinfo, and can live without the manuals.
3630
3631 # Check whether --with-makeinfo was given.
3632 if test "${with_makeinfo+set}" = set; then :
3633 withval=$with_makeinfo;
3634 else
3635 with_makeinfo=yes
3636 fi
3637
3638
3639 ## This is an option because I do not know if all info/man support
3640 ## compressed files, nor how to test if they do so.
3641
3642 # Check whether --with-compress-info was given.
3643 if test "${with_compress_info+set}" = set; then :
3644 withval=$with_compress_info;
3645 else
3646 with_compress_info=yes
3647 fi
3648
3649 if test $with_compress_info = yes; then
3650 GZIP_INFO=yes
3651 else
3652 GZIP_INFO=
3653 fi
3654
3655
3656
3657 # Check whether --with-pkg-config-prog was given.
3658 if test "${with_pkg_config_prog+set}" = set; then :
3659 withval=$with_pkg_config_prog;
3660 fi
3661
3662 if test "X${with_pkg_config_prog}" != X; then
3663 if test "${with_pkg_config_prog}" != yes; then
3664 PKG_CONFIG="${with_pkg_config_prog}"
3665 fi
3666 fi
3667
3668 CRT_DIR=
3669
3670 # Check whether --with-crt-dir was given.
3671 if test "${with_crt_dir+set}" = set; then :
3672 withval=$with_crt_dir;
3673 fi
3674
3675 CRT_DIR="${with_crt_dir}"
3676
3677
3678 # Check whether --with-gameuser was given.
3679 if test "${with_gameuser+set}" = set; then :
3680 withval=$with_gameuser;
3681 fi
3682
3683 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3684 && gameuser="${with_gameuser}"
3685 test "X$gameuser" = X && gameuser=games
3686
3687
3688 # Check whether --with-gnustep-conf was given.
3689 if test "${with_gnustep_conf+set}" = set; then :
3690 withval=$with_gnustep_conf;
3691 fi
3692
3693 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3694 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3695 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3696 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3697
3698 # Check whether --enable-ns-self-contained was given.
3699 if test "${enable_ns_self_contained+set}" = set; then :
3700 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3701 else
3702 EN_NS_SELF_CONTAINED=yes
3703 fi
3704
3705
3706 # Check whether --enable-asserts was given.
3707 if test "${enable_asserts+set}" = set; then :
3708 enableval=$enable_asserts; USE_XASSERTS=$enableval
3709 else
3710 USE_XASSERTS=no
3711 fi
3712
3713
3714 # Check whether --enable-maintainer-mode was given.
3715 if test "${enable_maintainer_mode+set}" = set; then :
3716 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3717 else
3718 USE_MAINTAINER_MODE=no
3719 fi
3720
3721 if test $USE_MAINTAINER_MODE = yes; then
3722 MAINT=
3723 else
3724 MAINT=#
3725 fi
3726
3727
3728 # Check whether --enable-locallisppath was given.
3729 if test "${enable_locallisppath+set}" = set; then :
3730 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3731 locallisppath=
3732 elif test "${enableval}" != "yes"; then
3733 locallisppath=${enableval}
3734 fi
3735 fi
3736
3737
3738 # Check whether --enable-checking was given.
3739 if test "${enable_checking+set}" = set; then :
3740 enableval=$enable_checking; ac_checking_flags="${enableval}"
3741 fi
3742
3743 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3744 for check in $ac_checking_flags
3745 do
3746 case $check in
3747 # these set all the flags to specific states
3748 yes) ac_enable_checking=1 ;;
3749 no) ac_enable_checking= ;
3750 ac_gc_check_stringbytes= ;
3751 ac_gc_check_string_overrun= ;
3752 ac_gc_check_string_free_list= ;
3753 ac_xmalloc_overrun= ;
3754 ac_gc_check_cons_list= ;;
3755 all) ac_enable_checking=1 ;
3756 ac_gc_check_stringbytes=1 ;
3757 ac_gc_check_string_overrun=1 ;
3758 ac_gc_check_string_free_list=1 ;
3759 ac_xmalloc_overrun=1 ;
3760 ac_gc_check_cons_list=1 ;;
3761 # these enable particular checks
3762 stringbytes) ac_gc_check_stringbytes=1 ;;
3763 stringoverrun) ac_gc_check_string_overrun=1 ;;
3764 stringfreelist) ac_gc_check_string_free_list=1 ;;
3765 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3766 conslist) ac_gc_check_cons_list=1 ;;
3767 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3768 esac
3769 done
3770 IFS="$ac_save_IFS"
3771
3772 if test x$ac_enable_checking != x ; then
3773
3774 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3775
3776 fi
3777 if test x$ac_gc_check_stringbytes != x ; then
3778
3779 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3780
3781 fi
3782 if test x$ac_gc_check_stringoverrun != x ; then
3783
3784 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3785
3786 fi
3787 if test x$ac_gc_check_string_free_list != x ; then
3788
3789 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3790
3791 fi
3792 if test x$ac_xmalloc_overrun != x ; then
3793
3794 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3795
3796 fi
3797 if test x$ac_gc_check_cons_list != x ; then
3798
3799 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3800
3801 fi
3802
3803 # Check whether --enable-use-lisp-union-type was given.
3804 if test "${enable_use_lisp_union_type+set}" = set; then :
3805 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3806
3807 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3808
3809 fi
3810 fi
3811
3812
3813
3814 # Check whether --enable-profiling was given.
3815 if test "${enable_profiling+set}" = set; then :
3816 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3817 fi
3818
3819 if test x$ac_enable_profiling != x ; then
3820 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3821 else
3822 PROFILING_CFLAGS=
3823 fi
3824
3825
3826 # Check whether --enable-autodepend was given.
3827 if test "${enable_autodepend+set}" = set; then :
3828 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3829 else
3830 ac_enable_autodepend=yes
3831 fi
3832
3833
3834 #### Make srcdir absolute, if it isn't already. It's important to
3835 #### avoid running the path through pwd unnecessarily, since pwd can
3836 #### give you automounter prefixes, which can go away. We do all this
3837 #### so Emacs can find its files when run uninstalled.
3838 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3839 unset CDPATH
3840 case "${srcdir}" in
3841 /* ) ;;
3842 . )
3843 ## We may be able to use the $PWD environment variable to make this
3844 ## absolute. But sometimes PWD is inaccurate.
3845 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3846 ## but that tested only for a well-formed and valid PWD,
3847 ## it did not object when PWD was well-formed and valid but just wrong.
3848 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3849 then
3850 srcdir="$PWD"
3851 else
3852 srcdir="`(cd ${srcdir}; pwd)`"
3853 fi
3854 ;;
3855 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3856 esac
3857
3858 #### Check if the source directory already has a configured system in it.
3859 if test `pwd` != `(cd ${srcdir} && pwd)` \
3860 && test -f "${srcdir}/src/config.h" ; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3862 as a build directory right now; it has been configured in its own
3863 right. To configure in another directory as well, you MUST
3864 use GNU make. If you do not have GNU make, then you must
3865 now do \`make distclean' in ${srcdir},
3866 and then run $0 again." >&5
3867 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3868 as a build directory right now; it has been configured in its own
3869 right. To configure in another directory as well, you MUST
3870 use GNU make. If you do not have GNU make, then you must
3871 now do \`make distclean' in ${srcdir},
3872 and then run $0 again." >&2;}
3873 fi
3874
3875 #### Given the configuration name, set machfile and opsysfile to the
3876 #### names of the m/*.h and s/*.h files we should use.
3877
3878 ### Canonicalize the configuration name.
3879
3880 # Make sure we can run config.sub.
3881 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3882 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3883
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3885 $as_echo_n "checking build system type... " >&6; }
3886 if ${ac_cv_build+:} false; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 ac_build_alias=$build_alias
3890 test "x$ac_build_alias" = x &&
3891 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3892 test "x$ac_build_alias" = x &&
3893 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3894 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3895 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3896
3897 fi
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3899 $as_echo "$ac_cv_build" >&6; }
3900 case $ac_cv_build in
3901 *-*-*) ;;
3902 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3903 esac
3904 build=$ac_cv_build
3905 ac_save_IFS=$IFS; IFS='-'
3906 set x $ac_cv_build
3907 shift
3908 build_cpu=$1
3909 build_vendor=$2
3910 shift; shift
3911 # Remember, the first character of IFS is used to create $*,
3912 # except with old shells:
3913 build_os=$*
3914 IFS=$ac_save_IFS
3915 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3916
3917
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3919 $as_echo_n "checking host system type... " >&6; }
3920 if ${ac_cv_host+:} false; then :
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test "x$host_alias" = x; then
3924 ac_cv_host=$ac_cv_build
3925 else
3926 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3927 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3928 fi
3929
3930 fi
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3932 $as_echo "$ac_cv_host" >&6; }
3933 case $ac_cv_host in
3934 *-*-*) ;;
3935 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3936 esac
3937 host=$ac_cv_host
3938 ac_save_IFS=$IFS; IFS='-'
3939 set x $ac_cv_host
3940 shift
3941 host_cpu=$1
3942 host_vendor=$2
3943 shift; shift
3944 # Remember, the first character of IFS is used to create $*,
3945 # except with old shells:
3946 host_os=$*
3947 IFS=$ac_save_IFS
3948 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3949
3950
3951 canonical=$host
3952 configuration=${host_alias-${build_alias-$host}}
3953
3954
3955
3956 ### If you add support for a new configuration, add code to this
3957 ### switch statement to recognize your configuration name and select
3958 ### the appropriate operating system and machine description files.
3959
3960 ### You would hope that you could choose an m/*.h file pretty much
3961 ### based on the machine portion of the configuration name, and an s/*.h
3962 ### file based on the operating system portion. However, it turns out
3963 ### that each m/*.h file is pretty manufacturer-specific - for
3964 ### example mips.h is MIPS
3965 ### So we basically have to have a special case for each
3966 ### configuration name.
3967 ###
3968 ### As far as handling version numbers on operating systems is
3969 ### concerned, make sure things will fail in a fixable way. If
3970 ### /etc/MACHINES doesn't say anything about version numbers, be
3971 ### prepared to handle anything reasonably. If version numbers
3972 ### matter, be sure /etc/MACHINES says something about it.
3973
3974 machine='' opsys='' unported=no
3975 case "${canonical}" in
3976
3977 ## GNU/Linux ports
3978 *-*-linux-gnu*)
3979 opsys=gnu-linux
3980 case ${canonical} in
3981 alpha*) machine=alpha ;;
3982 s390-*) machine=ibms390 ;;
3983 s390x-*) machine=ibms390x ;;
3984 powerpc*) machine=macppc ;;
3985 sparc*) machine=sparc ;;
3986 ia64*) machine=ia64 ;;
3987 m68k*) machine=m68k ;;
3988 x86_64*) machine=amdx86-64 ;;
3989 esac
3990 ;;
3991
3992 ## FreeBSD ports
3993 *-*-freebsd* )
3994 opsys=freebsd
3995 case "${canonical}" in
3996 alpha*) machine=alpha ;;
3997 amd64-*|x86_64-*) machine=amdx86-64 ;;
3998 ia64-*) machine=ia64 ;;
3999 i[3456]86-*) machine=intel386 ;;
4000 powerpc-*) machine=macppc ;;
4001 sparc-*) machine=sparc ;;
4002 sparc64-*) machine=sparc ;;
4003 esac
4004 ;;
4005
4006 ## FreeBSD kernel + glibc based userland
4007 *-*-kfreebsd*gnu* )
4008 opsys=gnu-kfreebsd
4009 case "${canonical}" in
4010 alpha*) machine=alpha ;;
4011 amd64-*|x86_64-*) machine=amdx86-64 ;;
4012 ia64-*) machine=ia64 ;;
4013 i[3456]86-*) machine=intel386 ;;
4014 powerpc-*) machine=macppc ;;
4015 sparc-*) machine=sparc ;;
4016 sparc64-*) machine=sparc ;;
4017 esac
4018 ;;
4019
4020 ## NetBSD ports
4021 *-*-netbsd* )
4022 opsys=netbsd
4023 case "${canonical}" in
4024 alpha*) machine=alpha ;;
4025 x86_64-*) machine=amdx86-64 ;;
4026 i[3456]86-*) machine=intel386 ;;
4027 m68k-*) machine=m68k ;;
4028 powerpc-*) machine=macppc ;;
4029 sparc*-) machine=sparc ;;
4030 vax-*) machine=vax ;;
4031 esac
4032 ;;
4033
4034 ## OpenBSD ports
4035 *-*-openbsd* )
4036 opsys=openbsd
4037 case "${canonical}" in
4038 alpha*) machine=alpha ;;
4039 x86_64-*) machine=amdx86-64 ;;
4040 i386-*) machine=intel386 ;;
4041 powerpc-*) machine=macppc ;;
4042 sparc*) machine=sparc ;;
4043 vax-*) machine=vax ;;
4044 esac
4045 ;;
4046
4047 ## Apple Darwin / Mac OS X
4048 *-apple-darwin* )
4049 case "${canonical}" in
4050 i[3456]86-* ) machine=intel386 ;;
4051 powerpc-* ) machine=macppc ;;
4052 x86_64-* ) machine=amdx86-64 ;;
4053 * ) unported=yes ;;
4054 esac
4055 opsys=darwin
4056 # Define CPP as follows to make autoconf work correctly.
4057 CPP="${CC-cc} -E -no-cpp-precomp"
4058 # Use fink packages if available.
4059 if test -d /sw/include && test -d /sw/lib; then
4060 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4061 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4062 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4063 fi
4064 ;;
4065
4066 ## HP 9000 series 700 and 800, running HP/UX
4067 hppa*-hp-hpux10.2* )
4068 opsys=hpux10-20
4069 ;;
4070 hppa*-hp-hpux1[1-9]* )
4071 opsys=hpux11
4072 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4073 ;;
4074
4075 ia64*-hp-hpux1[1-9]* )
4076 machine=hp800 opsys=hpux11
4077 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4078 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4079 CANNOT_DUMP=yes
4080 ;;
4081
4082 hppa*-*-linux-gnu* )
4083 machine=hp800 opsys=gnu-linux
4084 ;;
4085
4086 ## IBM machines
4087 rs6000-ibm-aix4.[23]* )
4088 machine=ibmrs6000 opsys=aix4-2
4089 ;;
4090 powerpc-ibm-aix4.[23]* )
4091 machine=ibmrs6000 opsys=aix4-2
4092 ;;
4093 rs6000-ibm-aix[56]* )
4094 machine=ibmrs6000 opsys=aix4-2
4095 ;;
4096 powerpc-ibm-aix[56]* )
4097 machine=ibmrs6000 opsys=aix4-2
4098 ;;
4099
4100 ## Silicon Graphics machines
4101 ## Iris 4D
4102 mips-sgi-irix6.5 )
4103 machine=iris4d opsys=irix6-5
4104 # Without defining _LANGUAGE_C, things get masked out in the headers
4105 # so that, for instance, grepping for `free' in stdlib.h fails and
4106 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4107 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4108 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4109 ;;
4110
4111 ## Suns
4112 *-sun-solaris* \
4113 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4114 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4115 case "${canonical}" in
4116 i[3456]86-*-* ) machine=intel386 ;;
4117 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4118 sparc* ) machine=sparc ;;
4119 * ) unported=yes ;;
4120 esac
4121 case "${canonical}" in
4122 *-sunos5.6* | *-solaris2.6* )
4123 opsys=sol2-6
4124 NON_GNU_CPP=/usr/ccs/lib/cpp
4125 RANLIB="ar -ts"
4126 ;;
4127 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4128 opsys=sol2-6
4129 emacs_check_sunpro_c=yes
4130 NON_GNU_CPP=/usr/ccs/lib/cpp
4131 ;;
4132 *-sunos5* | *-solaris* )
4133 opsys=sol2-10
4134 emacs_check_sunpro_c=yes
4135 NON_GNU_CPP=/usr/ccs/lib/cpp
4136 ;;
4137 esac
4138 ## Watch out for a compiler that we know will not work.
4139 case "${canonical}" in
4140 *-solaris* | *-sunos5* )
4141 if [ "x$CC" = x/usr/ucb/cc ]; then
4142 ## /usr/ucb/cc doesn't work;
4143 ## we should find some other compiler that does work.
4144 unset CC
4145 fi
4146 ;;
4147 *) ;;
4148 esac
4149 ;;
4150
4151 ## Intel 386 machines where we don't care about the manufacturer.
4152 i[3456]86-*-* )
4153 machine=intel386
4154 case "${canonical}" in
4155 *-cygwin ) opsys=cygwin ;;
4156 *-darwin* ) opsys=darwin
4157 CPP="${CC-cc} -E -no-cpp-precomp"
4158 ;;
4159 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4160 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4161 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4162 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4163 esac
4164 ;;
4165
4166 * )
4167 unported=yes
4168 ;;
4169 esac
4170
4171 ### If the code above didn't choose an operating system, just choose
4172 ### an operating system based on the configuration name. You really
4173 ### only want to use this when you have no idea what the right
4174 ### operating system is; if you know what operating systems a machine
4175 ### runs, it's cleaner to make it explicit in the case statement
4176 ### above.
4177 if test x"${opsys}" = x; then
4178 case "${canonical}" in
4179 *-gnu* ) opsys=gnu ;;
4180 * )
4181 unported=yes
4182 ;;
4183 esac
4184 fi
4185
4186
4187
4188 if test $unported = yes; then
4189 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4190 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4191 fi
4192
4193 if test -n "$machine"; then
4194 machfile="m/${machine}.h"
4195 else
4196 machfile=
4197 fi
4198 opsysfile="s/${opsys}.h"
4199
4200
4201 #### Choose a compiler.
4202 test -n "$CC" && cc_specified=yes
4203
4204 # Save the value of CFLAGS that the user specified.
4205 SPECIFIED_CFLAGS="$CFLAGS"
4206
4207 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4212 if test -n "$ac_tool_prefix"; then
4213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4214 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_CC+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC="$CC" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 fi
4239 fi
4240 CC=$ac_cv_prog_CC
4241 if test -n "$CC"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4243 $as_echo "$CC" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247 fi
4248
4249
4250 fi
4251 if test -z "$ac_cv_prog_CC"; then
4252 ac_ct_CC=$CC
4253 # Extract the first word of "gcc", so it can be a program name with args.
4254 set dummy gcc; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 if test -n "$ac_ct_CC"; then
4261 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4270 ac_cv_prog_ac_ct_CC="gcc"
4271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 break 2
4273 fi
4274 done
4275 done
4276 IFS=$as_save_IFS
4277
4278 fi
4279 fi
4280 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4281 if test -n "$ac_ct_CC"; then
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4283 $as_echo "$ac_ct_CC" >&6; }
4284 else
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4286 $as_echo "no" >&6; }
4287 fi
4288
4289 if test "x$ac_ct_CC" = x; then
4290 CC=""
4291 else
4292 case $cross_compiling:$ac_tool_warned in
4293 yes:)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4296 ac_tool_warned=yes ;;
4297 esac
4298 CC=$ac_ct_CC
4299 fi
4300 else
4301 CC="$ac_cv_prog_CC"
4302 fi
4303
4304 if test -z "$CC"; then
4305 if test -n "$ac_tool_prefix"; then
4306 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4307 set dummy ${ac_tool_prefix}cc; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if ${ac_cv_prog_CC+:} false; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$CC"; then
4314 ac_cv_prog_CC="$CC" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4318 do
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_CC="${ac_tool_prefix}cc"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4326 fi
4327 done
4328 done
4329 IFS=$as_save_IFS
4330
4331 fi
4332 fi
4333 CC=$ac_cv_prog_CC
4334 if test -n "$CC"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4336 $as_echo "$CC" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 fi
4341
4342
4343 fi
4344 fi
4345 if test -z "$CC"; then
4346 # Extract the first word of "cc", so it can be a program name with args.
4347 set dummy cc; ac_word=$2
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4349 $as_echo_n "checking for $ac_word... " >&6; }
4350 if ${ac_cv_prog_CC+:} false; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 if test -n "$CC"; then
4354 ac_cv_prog_CC="$CC" # Let the user override the test.
4355 else
4356 ac_prog_rejected=no
4357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 for as_dir in $PATH
4359 do
4360 IFS=$as_save_IFS
4361 test -z "$as_dir" && as_dir=.
4362 for ac_exec_ext in '' $ac_executable_extensions; do
4363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4365 ac_prog_rejected=yes
4366 continue
4367 fi
4368 ac_cv_prog_CC="cc"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4370 break 2
4371 fi
4372 done
4373 done
4374 IFS=$as_save_IFS
4375
4376 if test $ac_prog_rejected = yes; then
4377 # We found a bogon in the path, so make sure we never use it.
4378 set dummy $ac_cv_prog_CC
4379 shift
4380 if test $# != 0; then
4381 # We chose a different compiler from the bogus one.
4382 # However, it has the same basename, so the bogon will be chosen
4383 # first if we set CC to just the basename; use the full file name.
4384 shift
4385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4386 fi
4387 fi
4388 fi
4389 fi
4390 CC=$ac_cv_prog_CC
4391 if test -n "$CC"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4393 $as_echo "$CC" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4397 fi
4398
4399
4400 fi
4401 if test -z "$CC"; then
4402 if test -n "$ac_tool_prefix"; then
4403 for ac_prog in cl.exe
4404 do
4405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_prog_CC+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 if test -n "$CC"; then
4413 ac_cv_prog_CC="$CC" # Let the user override the test.
4414 else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4417 do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4425 fi
4426 done
4427 done
4428 IFS=$as_save_IFS
4429
4430 fi
4431 fi
4432 CC=$ac_cv_prog_CC
4433 if test -n "$CC"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4435 $as_echo "$CC" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4439 fi
4440
4441
4442 test -n "$CC" && break
4443 done
4444 fi
4445 if test -z "$CC"; then
4446 ac_ct_CC=$CC
4447 for ac_prog in cl.exe
4448 do
4449 # Extract the first word of "$ac_prog", so it can be a program name with args.
4450 set dummy $ac_prog; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 if test -n "$ac_ct_CC"; then
4457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4458 else
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460 for as_dir in $PATH
4461 do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_prog_ac_ct_CC="$ac_prog"
4467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 break 2
4469 fi
4470 done
4471 done
4472 IFS=$as_save_IFS
4473
4474 fi
4475 fi
4476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4477 if test -n "$ac_ct_CC"; then
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4479 $as_echo "$ac_ct_CC" >&6; }
4480 else
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4482 $as_echo "no" >&6; }
4483 fi
4484
4485
4486 test -n "$ac_ct_CC" && break
4487 done
4488
4489 if test "x$ac_ct_CC" = x; then
4490 CC=""
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493 yes:)
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4496 ac_tool_warned=yes ;;
4497 esac
4498 CC=$ac_ct_CC
4499 fi
4500 fi
4501
4502 fi
4503
4504
4505 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4507 as_fn_error $? "no acceptable C compiler found in \$PATH
4508 See \`config.log' for more details" "$LINENO" 5; }
4509
4510 # Provide some information about the compiler.
4511 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4512 set X $ac_compile
4513 ac_compiler=$2
4514 for ac_option in --version -v -V -qversion; do
4515 { { ac_try="$ac_compiler $ac_option >&5"
4516 case "(($ac_try" in
4517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518 *) ac_try_echo=$ac_try;;
4519 esac
4520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4521 $as_echo "$ac_try_echo"; } >&5
4522 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4523 ac_status=$?
4524 if test -s conftest.err; then
4525 sed '10a\
4526 ... rest of stderr output deleted ...
4527 10q' conftest.err >conftest.er1
4528 cat conftest.er1 >&5
4529 fi
4530 rm -f conftest.er1 conftest.err
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }
4533 done
4534
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537
4538 int
4539 main ()
4540 {
4541
4542 ;
4543 return 0;
4544 }
4545 _ACEOF
4546 ac_clean_files_save=$ac_clean_files
4547 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4548 # Try to create an executable without -o first, disregard a.out.
4549 # It will help us diagnose broken compilers, and finding out an intuition
4550 # of exeext.
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4552 $as_echo_n "checking whether the C compiler works... " >&6; }
4553 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4554
4555 # The possible output files:
4556 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4557
4558 ac_rmfiles=
4559 for ac_file in $ac_files
4560 do
4561 case $ac_file in
4562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4563 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4564 esac
4565 done
4566 rm -f $ac_rmfiles
4567
4568 if { { ac_try="$ac_link_default"
4569 case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4574 $as_echo "$ac_try_echo"; } >&5
4575 (eval "$ac_link_default") 2>&5
4576 ac_status=$?
4577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4578 test $ac_status = 0; }; then :
4579 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4580 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4581 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4582 # so that the user can short-circuit this test for compilers unknown to
4583 # Autoconf.
4584 for ac_file in $ac_files ''
4585 do
4586 test -f "$ac_file" || continue
4587 case $ac_file in
4588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4589 ;;
4590 [ab].out )
4591 # We found the default executable, but exeext='' is most
4592 # certainly right.
4593 break;;
4594 *.* )
4595 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4596 then :; else
4597 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4598 fi
4599 # We set ac_cv_exeext here because the later test for it is not
4600 # safe: cross compilers may not add the suffix if given an `-o'
4601 # argument, so we may need to know it at that point already.
4602 # Even if this section looks crufty: it has the advantage of
4603 # actually working.
4604 break;;
4605 * )
4606 break;;
4607 esac
4608 done
4609 test "$ac_cv_exeext" = no && ac_cv_exeext=
4610
4611 else
4612 ac_file=''
4613 fi
4614 if test -z "$ac_file"; then :
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4616 $as_echo "no" >&6; }
4617 $as_echo "$as_me: failed program was:" >&5
4618 sed 's/^/| /' conftest.$ac_ext >&5
4619
4620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4622 as_fn_error 77 "C compiler cannot create executables
4623 See \`config.log' for more details" "$LINENO" 5; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4626 $as_echo "yes" >&6; }
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4629 $as_echo_n "checking for C compiler default output file name... " >&6; }
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4631 $as_echo "$ac_file" >&6; }
4632 ac_exeext=$ac_cv_exeext
4633
4634 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4635 ac_clean_files=$ac_clean_files_save
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4637 $as_echo_n "checking for suffix of executables... " >&6; }
4638 if { { ac_try="$ac_link"
4639 case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642 esac
4643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4644 $as_echo "$ac_try_echo"; } >&5
4645 (eval "$ac_link") 2>&5
4646 ac_status=$?
4647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4648 test $ac_status = 0; }; then :
4649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4651 # work properly (i.e., refer to `conftest.exe'), while it won't with
4652 # `rm'.
4653 for ac_file in conftest.exe conftest conftest.*; do
4654 test -f "$ac_file" || continue
4655 case $ac_file in
4656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4658 break;;
4659 * ) break;;
4660 esac
4661 done
4662 else
4663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4665 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4666 See \`config.log' for more details" "$LINENO" 5; }
4667 fi
4668 rm -f conftest conftest$ac_cv_exeext
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4670 $as_echo "$ac_cv_exeext" >&6; }
4671
4672 rm -f conftest.$ac_ext
4673 EXEEXT=$ac_cv_exeext
4674 ac_exeext=$EXEEXT
4675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h. */
4677 #include <stdio.h>
4678 int
4679 main ()
4680 {
4681 FILE *f = fopen ("conftest.out", "w");
4682 return ferror (f) || fclose (f) != 0;
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 ac_clean_files="$ac_clean_files conftest.out"
4689 # Check that the compiler produces executables we can run. If not, either
4690 # the compiler is broken, or we cross compile.
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4692 $as_echo_n "checking whether we are cross compiling... " >&6; }
4693 if test "$cross_compiling" != yes; then
4694 { { ac_try="$ac_link"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 $as_echo "$ac_try_echo"; } >&5
4701 (eval "$ac_link") 2>&5
4702 ac_status=$?
4703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4704 test $ac_status = 0; }
4705 if { ac_try='./conftest$ac_cv_exeext'
4706 { { case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_try") 2>&5
4713 ac_status=$?
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }; }; then
4716 cross_compiling=no
4717 else
4718 if test "$cross_compiling" = maybe; then
4719 cross_compiling=yes
4720 else
4721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4723 as_fn_error $? "cannot run C compiled programs.
4724 If you meant to cross compile, use \`--host'.
4725 See \`config.log' for more details" "$LINENO" 5; }
4726 fi
4727 fi
4728 fi
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4730 $as_echo "$cross_compiling" >&6; }
4731
4732 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4733 ac_clean_files=$ac_clean_files_save
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4735 $as_echo_n "checking for suffix of object files... " >&6; }
4736 if ${ac_cv_objext+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4741
4742 int
4743 main ()
4744 {
4745
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.o conftest.obj
4751 if { { ac_try="$ac_compile"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4757 $as_echo "$ac_try_echo"; } >&5
4758 (eval "$ac_compile") 2>&5
4759 ac_status=$?
4760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4761 test $ac_status = 0; }; then :
4762 for ac_file in conftest.o conftest.obj conftest.*; do
4763 test -f "$ac_file" || continue;
4764 case $ac_file in
4765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4766 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4767 break;;
4768 esac
4769 done
4770 else
4771 $as_echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4776 as_fn_error $? "cannot compute suffix of object files: cannot compile
4777 See \`config.log' for more details" "$LINENO" 5; }
4778 fi
4779 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4780 fi
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4782 $as_echo "$ac_cv_objext" >&6; }
4783 OBJEXT=$ac_cv_objext
4784 ac_objext=$OBJEXT
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4786 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4787 if ${ac_cv_c_compiler_gnu+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792
4793 int
4794 main ()
4795 {
4796 #ifndef __GNUC__
4797 choke me
4798 #endif
4799
4800 ;
4801 return 0;
4802 }
4803 _ACEOF
4804 if ac_fn_c_try_compile "$LINENO"; then :
4805 ac_compiler_gnu=yes
4806 else
4807 ac_compiler_gnu=no
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4811
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4814 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4815 if test $ac_compiler_gnu = yes; then
4816 GCC=yes
4817 else
4818 GCC=
4819 fi
4820 ac_test_CFLAGS=${CFLAGS+set}
4821 ac_save_CFLAGS=$CFLAGS
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4823 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4824 if ${ac_cv_prog_cc_g+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 ac_save_c_werror_flag=$ac_c_werror_flag
4828 ac_c_werror_flag=yes
4829 ac_cv_prog_cc_g=no
4830 CFLAGS="-g"
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833
4834 int
4835 main ()
4836 {
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843 ac_cv_prog_cc_g=yes
4844 else
4845 CFLAGS=""
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4848
4849 int
4850 main ()
4851 {
4852
4853 ;
4854 return 0;
4855 }
4856 _ACEOF
4857 if ac_fn_c_try_compile "$LINENO"; then :
4858
4859 else
4860 ac_c_werror_flag=$ac_save_c_werror_flag
4861 CFLAGS="-g"
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4864
4865 int
4866 main ()
4867 {
4868
4869 ;
4870 return 0;
4871 }
4872 _ACEOF
4873 if ac_fn_c_try_compile "$LINENO"; then :
4874 ac_cv_prog_cc_g=yes
4875 fi
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4877 fi
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4879 fi
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 ac_c_werror_flag=$ac_save_c_werror_flag
4882 fi
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4884 $as_echo "$ac_cv_prog_cc_g" >&6; }
4885 if test "$ac_test_CFLAGS" = set; then
4886 CFLAGS=$ac_save_CFLAGS
4887 elif test $ac_cv_prog_cc_g = yes; then
4888 if test "$GCC" = yes; then
4889 CFLAGS="-g -O2"
4890 else
4891 CFLAGS="-g"
4892 fi
4893 else
4894 if test "$GCC" = yes; then
4895 CFLAGS="-O2"
4896 else
4897 CFLAGS=
4898 fi
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4902 if ${ac_cv_prog_cc_c89+:} false; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 ac_cv_prog_cc_c89=no
4906 ac_save_CC=$CC
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4909 #include <stdarg.h>
4910 #include <stdio.h>
4911 #include <sys/types.h>
4912 #include <sys/stat.h>
4913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4914 struct buf { int x; };
4915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4916 static char *e (p, i)
4917 char **p;
4918 int i;
4919 {
4920 return p[i];
4921 }
4922 static char *f (char * (*g) (char **, int), char **p, ...)
4923 {
4924 char *s;
4925 va_list v;
4926 va_start (v,p);
4927 s = g (p, va_arg (v,int));
4928 va_end (v);
4929 return s;
4930 }
4931
4932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4933 function prototypes and stuff, but not '\xHH' hex character constants.
4934 These don't provoke an error unfortunately, instead are silently treated
4935 as 'x'. The following induces an error, until -std is added to get
4936 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4937 array size at least. It's necessary to write '\x00'==0 to get something
4938 that's true only with -std. */
4939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4940
4941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4942 inside strings and character constants. */
4943 #define FOO(x) 'x'
4944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4945
4946 int test (int i, double x);
4947 struct s1 {int (*f) (int a);};
4948 struct s2 {int (*f) (double a);};
4949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4950 int argc;
4951 char **argv;
4952 int
4953 main ()
4954 {
4955 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4956 ;
4957 return 0;
4958 }
4959 _ACEOF
4960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4961 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4962 do
4963 CC="$ac_save_CC $ac_arg"
4964 if ac_fn_c_try_compile "$LINENO"; then :
4965 ac_cv_prog_cc_c89=$ac_arg
4966 fi
4967 rm -f core conftest.err conftest.$ac_objext
4968 test "x$ac_cv_prog_cc_c89" != "xno" && break
4969 done
4970 rm -f conftest.$ac_ext
4971 CC=$ac_save_CC
4972
4973 fi
4974 # AC_CACHE_VAL
4975 case "x$ac_cv_prog_cc_c89" in
4976 x)
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4978 $as_echo "none needed" >&6; } ;;
4979 xno)
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4981 $as_echo "unsupported" >&6; } ;;
4982 *)
4983 CC="$CC $ac_cv_prog_cc_c89"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4985 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4986 esac
4987 if test "x$ac_cv_prog_cc_c89" != xno; then :
4988
4989 fi
4990
4991 ac_ext=c
4992 ac_cpp='$CPP $CPPFLAGS'
4993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996 DEPDIR="${am__leading_dot}deps"
4997
4998 ac_config_commands="$ac_config_commands depfiles"
4999
5000
5001 am_make=${MAKE-make}
5002 cat > confinc << 'END'
5003 am__doit:
5004 @echo this is the am__doit target
5005 .PHONY: am__doit
5006 END
5007 # If we don't find an include directive, just comment out the code.
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5009 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5010 am__include="#"
5011 am__quote=
5012 _am_result=none
5013 # First try GNU make style include.
5014 echo "include confinc" > confmf
5015 # Ignore all kinds of additional output from `make'.
5016 case `$am_make -s -f confmf 2> /dev/null` in #(
5017 *the\ am__doit\ target*)
5018 am__include=include
5019 am__quote=
5020 _am_result=GNU
5021 ;;
5022 esac
5023 # Now try BSD make style include.
5024 if test "$am__include" = "#"; then
5025 echo '.include "confinc"' > confmf
5026 case `$am_make -s -f confmf 2> /dev/null` in #(
5027 *the\ am__doit\ target*)
5028 am__include=.include
5029 am__quote="\""
5030 _am_result=BSD
5031 ;;
5032 esac
5033 fi
5034
5035
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5037 $as_echo "$_am_result" >&6; }
5038 rm -f confinc confmf
5039
5040 # Check whether --enable-dependency-tracking was given.
5041 if test "${enable_dependency_tracking+set}" = set; then :
5042 enableval=$enable_dependency_tracking;
5043 fi
5044
5045 if test "x$enable_dependency_tracking" != xno; then
5046 am_depcomp="$ac_aux_dir/depcomp"
5047 AMDEPBACKSLASH='\'
5048 fi
5049 if test "x$enable_dependency_tracking" != xno; then
5050 AMDEP_TRUE=
5051 AMDEP_FALSE='#'
5052 else
5053 AMDEP_TRUE='#'
5054 AMDEP_FALSE=
5055 fi
5056
5057
5058
5059 depcc="$CC" am_compiler_list=
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5062 $as_echo_n "checking dependency style of $depcc... " >&6; }
5063 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5064 $as_echo_n "(cached) " >&6
5065 else
5066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5067 # We make a subdir and do the tests there. Otherwise we can end up
5068 # making bogus files that we don't know about and never remove. For
5069 # instance it was reported that on HP-UX the gcc test will end up
5070 # making a dummy file named `D' -- because `-MD' means `put the output
5071 # in D'.
5072 mkdir conftest.dir
5073 # Copy depcomp to subdir because otherwise we won't find it if we're
5074 # using a relative directory.
5075 cp "$am_depcomp" conftest.dir
5076 cd conftest.dir
5077 # We will build objects and dependencies in a subdirectory because
5078 # it helps to detect inapplicable dependency modes. For instance
5079 # both Tru64's cc and ICC support -MD to output dependencies as a
5080 # side effect of compilation, but ICC will put the dependencies in
5081 # the current directory while Tru64 will put them in the object
5082 # directory.
5083 mkdir sub
5084
5085 am_cv_CC_dependencies_compiler_type=none
5086 if test "$am_compiler_list" = ""; then
5087 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5088 fi
5089 am__universal=false
5090 case " $depcc " in #(
5091 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5092 esac
5093
5094 for depmode in $am_compiler_list; do
5095 # Setup a source with many dependencies, because some compilers
5096 # like to wrap large dependency lists on column 80 (with \), and
5097 # we should not choose a depcomp mode which is confused by this.
5098 #
5099 # We need to recreate these files for each test, as the compiler may
5100 # overwrite some of them when testing with obscure command lines.
5101 # This happens at least with the AIX C compiler.
5102 : > sub/conftest.c
5103 for i in 1 2 3 4 5 6; do
5104 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5105 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5106 # Solaris 8's {/usr,}/bin/sh.
5107 touch sub/conftst$i.h
5108 done
5109 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5110
5111 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5112 # mode. It turns out that the SunPro C++ compiler does not properly
5113 # handle `-M -o', and we need to detect this. Also, some Intel
5114 # versions had trouble with output in subdirs
5115 am__obj=sub/conftest.${OBJEXT-o}
5116 am__minus_obj="-o $am__obj"
5117 case $depmode in
5118 gcc)
5119 # This depmode causes a compiler race in universal mode.
5120 test "$am__universal" = false || continue
5121 ;;
5122 nosideeffect)
5123 # after this tag, mechanisms are not by side-effect, so they'll
5124 # only be used when explicitly requested
5125 if test "x$enable_dependency_tracking" = xyes; then
5126 continue
5127 else
5128 break
5129 fi
5130 ;;
5131 msvisualcpp | msvcmsys)
5132 # This compiler won't grok `-c -o', but also, the minuso test has
5133 # not run yet. These depmodes are late enough in the game, and
5134 # so weak that their functioning should not be impacted.
5135 am__obj=conftest.${OBJEXT-o}
5136 am__minus_obj=
5137 ;;
5138 none) break ;;
5139 esac
5140 if depmode=$depmode \
5141 source=sub/conftest.c object=$am__obj \
5142 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5143 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5144 >/dev/null 2>conftest.err &&
5145 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5146 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5147 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5148 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5149 # icc doesn't choke on unknown options, it will just issue warnings
5150 # or remarks (even with -Werror). So we grep stderr for any message
5151 # that says an option was ignored or not supported.
5152 # When given -MP, icc 7.0 and 7.1 complain thusly:
5153 # icc: Command line warning: ignoring option '-M'; no argument required
5154 # The diagnosis changed in icc 8.0:
5155 # icc: Command line remark: option '-MP' not supported
5156 if (grep 'ignoring option' conftest.err ||
5157 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5158 am_cv_CC_dependencies_compiler_type=$depmode
5159 break
5160 fi
5161 fi
5162 done
5163
5164 cd ..
5165 rm -rf conftest.dir
5166 else
5167 am_cv_CC_dependencies_compiler_type=none
5168 fi
5169
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5172 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5173 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5174
5175 if
5176 test "x$enable_dependency_tracking" != xno \
5177 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5178 am__fastdepCC_TRUE=
5179 am__fastdepCC_FALSE='#'
5180 else
5181 am__fastdepCC_TRUE='#'
5182 am__fastdepCC_FALSE=
5183 fi
5184
5185
5186 if test "x$CC" != xcc; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5188 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5191 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5192 fi
5193 set dummy $CC; ac_cc=`$as_echo "$2" |
5194 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5195 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5199 /* end confdefs.h. */
5200
5201 int
5202 main ()
5203 {
5204
5205 ;
5206 return 0;
5207 }
5208 _ACEOF
5209 # Make sure it works both with $CC and with simple cc.
5210 # We do the test twice because some compilers refuse to overwrite an
5211 # existing .o file with -o, though they will create one.
5212 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5213 rm -f conftest2.*
5214 if { { case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217 esac
5218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5219 $as_echo "$ac_try_echo"; } >&5
5220 (eval "$ac_try") 2>&5
5221 ac_status=$?
5222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5223 test $ac_status = 0; } &&
5224 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5229 $as_echo "$ac_try_echo"; } >&5
5230 (eval "$ac_try") 2>&5
5231 ac_status=$?
5232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5233 test $ac_status = 0; };
5234 then
5235 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5236 if test "x$CC" != xcc; then
5237 # Test first that cc exists at all.
5238 if { ac_try='cc -c conftest.$ac_ext >&5'
5239 { { case "(($ac_try" in
5240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5241 *) ac_try_echo=$ac_try;;
5242 esac
5243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5244 $as_echo "$ac_try_echo"; } >&5
5245 (eval "$ac_try") 2>&5
5246 ac_status=$?
5247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5248 test $ac_status = 0; }; }; then
5249 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5250 rm -f conftest2.*
5251 if { { case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254 esac
5255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5256 $as_echo "$ac_try_echo"; } >&5
5257 (eval "$ac_try") 2>&5
5258 ac_status=$?
5259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5260 test $ac_status = 0; } &&
5261 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5263 *) ac_try_echo=$ac_try;;
5264 esac
5265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5266 $as_echo "$ac_try_echo"; } >&5
5267 (eval "$ac_try") 2>&5
5268 ac_status=$?
5269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5270 test $ac_status = 0; };
5271 then
5272 # cc works too.
5273 :
5274 else
5275 # cc exists but doesn't like -o.
5276 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5277 fi
5278 fi
5279 fi
5280 else
5281 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5282 fi
5283 rm -f core conftest*
5284
5285 fi
5286 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5288 $as_echo "yes" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292
5293 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5294
5295 fi
5296
5297 # FIXME: we rely on the cache variable name because
5298 # there is no other way.
5299 set dummy $CC
5300 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5301 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5302 if test "$am_t" != yes; then
5303 # Losing compiler, so override with the script.
5304 # FIXME: It is wrong to rewrite CC.
5305 # But if we don't then we get into trouble of one sort or another.
5306 # A longer-term fix would be to have automake use am__CC in this case,
5307 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5308 CC="$am_aux_dir/compile $CC"
5309 fi
5310
5311
5312
5313 # Initialize gnulib right after verifying that the C compiler works.
5314 if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_RANLIB+:} false; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$RANLIB"; then
5323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5327 do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5335 fi
5336 done
5337 done
5338 IFS=$as_save_IFS
5339
5340 fi
5341 fi
5342 RANLIB=$ac_cv_prog_RANLIB
5343 if test -n "$RANLIB"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5345 $as_echo "$RANLIB" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5349 fi
5350
5351
5352 fi
5353 if test -z "$ac_cv_prog_RANLIB"; then
5354 ac_ct_RANLIB=$RANLIB
5355 # Extract the first word of "ranlib", so it can be a program name with args.
5356 set dummy ranlib; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$ac_ct_RANLIB"; then
5363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5367 do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_ac_ct_RANLIB="ranlib"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5375 fi
5376 done
5377 done
5378 IFS=$as_save_IFS
5379
5380 fi
5381 fi
5382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5383 if test -n "$ac_ct_RANLIB"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5385 $as_echo "$ac_ct_RANLIB" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5389 fi
5390
5391 if test "x$ac_ct_RANLIB" = x; then
5392 RANLIB=":"
5393 else
5394 case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400 RANLIB=$ac_ct_RANLIB
5401 fi
5402 else
5403 RANLIB="$ac_cv_prog_RANLIB"
5404 fi
5405
5406
5407 ac_ext=c
5408 ac_cpp='$CPP $CPPFLAGS'
5409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5413 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5414 # On Suns, sometimes $CPP names a directory.
5415 if test -n "$CPP" && test -d "$CPP"; then
5416 CPP=
5417 fi
5418 if test -z "$CPP"; then
5419 if ${ac_cv_prog_CPP+:} false; then :
5420 $as_echo_n "(cached) " >&6
5421 else
5422 # Double quotes because CPP needs to be expanded
5423 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5424 do
5425 ac_preproc_ok=false
5426 for ac_c_preproc_warn_flag in '' yes
5427 do
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5436 #ifdef __STDC__
5437 # include <limits.h>
5438 #else
5439 # include <assert.h>
5440 #endif
5441 Syntax error
5442 _ACEOF
5443 if ac_fn_c_try_cpp "$LINENO"; then :
5444
5445 else
5446 # Broken: fails on valid input.
5447 continue
5448 fi
5449 rm -f conftest.err conftest.i conftest.$ac_ext
5450
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5455 #include <ac_nonexistent.h>
5456 _ACEOF
5457 if ac_fn_c_try_cpp "$LINENO"; then :
5458 # Broken: success on invalid input.
5459 continue
5460 else
5461 # Passes both tests.
5462 ac_preproc_ok=:
5463 break
5464 fi
5465 rm -f conftest.err conftest.i conftest.$ac_ext
5466
5467 done
5468 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5469 rm -f conftest.i conftest.err conftest.$ac_ext
5470 if $ac_preproc_ok; then :
5471 break
5472 fi
5473
5474 done
5475 ac_cv_prog_CPP=$CPP
5476
5477 fi
5478 CPP=$ac_cv_prog_CPP
5479 else
5480 ac_cv_prog_CPP=$CPP
5481 fi
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5483 $as_echo "$CPP" >&6; }
5484 ac_preproc_ok=false
5485 for ac_c_preproc_warn_flag in '' yes
5486 do
5487 # Use a header file that comes with gcc, so configuring glibc
5488 # with a fresh cross-compiler works.
5489 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5490 # <limits.h> exists even on freestanding compilers.
5491 # On the NeXT, cc -E runs the code through the compiler's parser,
5492 # not just through cpp. "Syntax error" is here to catch this case.
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #ifdef __STDC__
5496 # include <limits.h>
5497 #else
5498 # include <assert.h>
5499 #endif
5500 Syntax error
5501 _ACEOF
5502 if ac_fn_c_try_cpp "$LINENO"; then :
5503
5504 else
5505 # Broken: fails on valid input.
5506 continue
5507 fi
5508 rm -f conftest.err conftest.i conftest.$ac_ext
5509
5510 # OK, works on sane cases. Now check whether nonexistent headers
5511 # can be detected and how.
5512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5514 #include <ac_nonexistent.h>
5515 _ACEOF
5516 if ac_fn_c_try_cpp "$LINENO"; then :
5517 # Broken: success on invalid input.
5518 continue
5519 else
5520 # Passes both tests.
5521 ac_preproc_ok=:
5522 break
5523 fi
5524 rm -f conftest.err conftest.i conftest.$ac_ext
5525
5526 done
5527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5528 rm -f conftest.i conftest.err conftest.$ac_ext
5529 if $ac_preproc_ok; then :
5530
5531 else
5532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5534 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5535 See \`config.log' for more details" "$LINENO" 5; }
5536 fi
5537
5538 ac_ext=c
5539 ac_cpp='$CPP $CPPFLAGS'
5540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5543
5544
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5546 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5547 if ${ac_cv_path_GREP+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -z "$GREP"; then
5551 ac_path_GREP_found=false
5552 # Loop through the user's path and test for each of PROGNAME-LIST
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5555 do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_prog in grep ggrep; do
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5561 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5562 # Check for GNU ac_path_GREP and select it if it is found.
5563 # Check for GNU $ac_path_GREP
5564 case `"$ac_path_GREP" --version 2>&1` in
5565 *GNU*)
5566 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5567 *)
5568 ac_count=0
5569 $as_echo_n 0123456789 >"conftest.in"
5570 while :
5571 do
5572 cat "conftest.in" "conftest.in" >"conftest.tmp"
5573 mv "conftest.tmp" "conftest.in"
5574 cp "conftest.in" "conftest.nl"
5575 $as_echo 'GREP' >> "conftest.nl"
5576 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5577 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5578 as_fn_arith $ac_count + 1 && ac_count=$as_val
5579 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5580 # Best one so far, save it but keep looking for a better one
5581 ac_cv_path_GREP="$ac_path_GREP"
5582 ac_path_GREP_max=$ac_count
5583 fi
5584 # 10*(2^10) chars as input seems more than enough
5585 test $ac_count -gt 10 && break
5586 done
5587 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5588 esac
5589
5590 $ac_path_GREP_found && break 3
5591 done
5592 done
5593 done
5594 IFS=$as_save_IFS
5595 if test -z "$ac_cv_path_GREP"; then
5596 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5597 fi
5598 else
5599 ac_cv_path_GREP=$GREP
5600 fi
5601
5602 fi
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5604 $as_echo "$ac_cv_path_GREP" >&6; }
5605 GREP="$ac_cv_path_GREP"
5606
5607
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5609 $as_echo_n "checking for egrep... " >&6; }
5610 if ${ac_cv_path_EGREP+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5614 then ac_cv_path_EGREP="$GREP -E"
5615 else
5616 if test -z "$EGREP"; then
5617 ac_path_EGREP_found=false
5618 # Loop through the user's path and test for each of PROGNAME-LIST
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5621 do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
5624 for ac_prog in egrep; do
5625 for ac_exec_ext in '' $ac_executable_extensions; do
5626 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5627 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5628 # Check for GNU ac_path_EGREP and select it if it is found.
5629 # Check for GNU $ac_path_EGREP
5630 case `"$ac_path_EGREP" --version 2>&1` in
5631 *GNU*)
5632 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5633 *)
5634 ac_count=0
5635 $as_echo_n 0123456789 >"conftest.in"
5636 while :
5637 do
5638 cat "conftest.in" "conftest.in" >"conftest.tmp"
5639 mv "conftest.tmp" "conftest.in"
5640 cp "conftest.in" "conftest.nl"
5641 $as_echo 'EGREP' >> "conftest.nl"
5642 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5644 as_fn_arith $ac_count + 1 && ac_count=$as_val
5645 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5646 # Best one so far, save it but keep looking for a better one
5647 ac_cv_path_EGREP="$ac_path_EGREP"
5648 ac_path_EGREP_max=$ac_count
5649 fi
5650 # 10*(2^10) chars as input seems more than enough
5651 test $ac_count -gt 10 && break
5652 done
5653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654 esac
5655
5656 $ac_path_EGREP_found && break 3
5657 done
5658 done
5659 done
5660 IFS=$as_save_IFS
5661 if test -z "$ac_cv_path_EGREP"; then
5662 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5663 fi
5664 else
5665 ac_cv_path_EGREP=$EGREP
5666 fi
5667
5668 fi
5669 fi
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5671 $as_echo "$ac_cv_path_EGREP" >&6; }
5672 EGREP="$ac_cv_path_EGREP"
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5676 $as_echo_n "checking for ANSI C header files... " >&6; }
5677 if ${ac_cv_header_stdc+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <stdlib.h>
5683 #include <stdarg.h>
5684 #include <string.h>
5685 #include <float.h>
5686
5687 int
5688 main ()
5689 {
5690
5691 ;
5692 return 0;
5693 }
5694 _ACEOF
5695 if ac_fn_c_try_compile "$LINENO"; then :
5696 ac_cv_header_stdc=yes
5697 else
5698 ac_cv_header_stdc=no
5699 fi
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5701
5702 if test $ac_cv_header_stdc = yes; then
5703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 #include <string.h>
5707
5708 _ACEOF
5709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5710 $EGREP "memchr" >/dev/null 2>&1; then :
5711
5712 else
5713 ac_cv_header_stdc=no
5714 fi
5715 rm -f conftest*
5716
5717 fi
5718
5719 if test $ac_cv_header_stdc = yes; then
5720 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723 #include <stdlib.h>
5724
5725 _ACEOF
5726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5727 $EGREP "free" >/dev/null 2>&1; then :
5728
5729 else
5730 ac_cv_header_stdc=no
5731 fi
5732 rm -f conftest*
5733
5734 fi
5735
5736 if test $ac_cv_header_stdc = yes; then
5737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5738 if test "$cross_compiling" = yes; then :
5739 :
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 #include <ctype.h>
5744 #include <stdlib.h>
5745 #if ((' ' & 0x0FF) == 0x020)
5746 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5747 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5748 #else
5749 # define ISLOWER(c) \
5750 (('a' <= (c) && (c) <= 'i') \
5751 || ('j' <= (c) && (c) <= 'r') \
5752 || ('s' <= (c) && (c) <= 'z'))
5753 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5754 #endif
5755
5756 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5757 int
5758 main ()
5759 {
5760 int i;
5761 for (i = 0; i < 256; i++)
5762 if (XOR (islower (i), ISLOWER (i))
5763 || toupper (i) != TOUPPER (i))
5764 return 2;
5765 return 0;
5766 }
5767 _ACEOF
5768 if ac_fn_c_try_run "$LINENO"; then :
5769
5770 else
5771 ac_cv_header_stdc=no
5772 fi
5773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5774 conftest.$ac_objext conftest.beam conftest.$ac_ext
5775 fi
5776
5777 fi
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5780 $as_echo "$ac_cv_header_stdc" >&6; }
5781 if test $ac_cv_header_stdc = yes; then
5782
5783 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5784
5785 fi
5786
5787 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5788 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5789 inttypes.h stdint.h unistd.h
5790 do :
5791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5792 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5793 "
5794 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5795 cat >>confdefs.h <<_ACEOF
5796 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5797 _ACEOF
5798
5799 fi
5800
5801 done
5802
5803
5804
5805
5806
5807 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5808 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5809 MINIX=yes
5810 else
5811 MINIX=
5812 fi
5813
5814
5815 if test "$MINIX" = yes; then
5816
5817 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5818
5819
5820 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5821
5822
5823 $as_echo "#define _MINIX 1" >>confdefs.h
5824
5825 fi
5826
5827 case "$host_os" in
5828 hpux*)
5829
5830 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5831
5832 ;;
5833 esac
5834
5835
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5837 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5838 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843
5844 # define __EXTENSIONS__ 1
5845 $ac_includes_default
5846 int
5847 main ()
5848 {
5849
5850 ;
5851 return 0;
5852 }
5853 _ACEOF
5854 if ac_fn_c_try_compile "$LINENO"; then :
5855 ac_cv_safe_to_define___extensions__=yes
5856 else
5857 ac_cv_safe_to_define___extensions__=no
5858 fi
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 fi
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5862 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5863 test $ac_cv_safe_to_define___extensions__ = yes &&
5864 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5865
5866 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5867
5868 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5869
5870 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5871
5872 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883 # Code from module arg-nonnull:
5884 # Code from module c++defs:
5885 # Code from module dtoastr:
5886 # Code from module extensions:
5887
5888 # Code from module getloadavg:
5889 # Code from module getopt-gnu:
5890 # Code from module getopt-posix:
5891 # Code from module gettext-h:
5892 # Code from module ignore-value:
5893 # Code from module include_next:
5894 # Code from module intprops:
5895 # Code from module mktime:
5896 # Code from module multiarch:
5897 # Code from module stdbool:
5898 # Code from module stddef:
5899 # Code from module stdlib:
5900 # Code from module strftime:
5901 # Code from module time:
5902 # Code from module time_r:
5903 # Code from module unistd:
5904 # Code from module warn-on-use:
5905
5906
5907 # On Suns, sometimes $CPP names a directory.
5908 if test -n "$CPP" && test -d "$CPP"; then
5909 CPP=
5910 fi
5911
5912 ## If not using gcc, and on Solaris, and no CPP specified, see if
5913 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5914 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5915 test x"$CPP" = x; then
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5917 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5918 if ${emacs_cv_sunpro_c+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923
5924 int
5925 main ()
5926 {
5927 #ifndef __SUNPRO_C
5928 fail;
5929 #endif
5930
5931 ;
5932 return 0;
5933 }
5934 _ACEOF
5935 if ac_fn_c_try_link "$LINENO"; then :
5936 emacs_cv_sunpro_c=yes
5937 else
5938 emacs_cv_sunpro_c=no
5939 fi
5940 rm -f core conftest.err conftest.$ac_objext \
5941 conftest$ac_exeext conftest.$ac_ext
5942 fi
5943
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5945 $as_echo "$emacs_cv_sunpro_c" >&6; }
5946
5947 if test x"$emacs_cv_sunpro_c" = xyes; then
5948 NON_GNU_CPP="$CC -E -Xs"
5949 fi
5950 fi
5951
5952 #### Some systems specify a CPP to use unless we are using GCC.
5953 #### Now that we know whether we are using GCC, we can decide whether
5954 #### to use that one.
5955 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5956 then
5957 CPP="$NON_GNU_CPP"
5958 fi
5959
5960 #### Some systems specify a CC to use unless we are using GCC.
5961 #### Now that we know whether we are using GCC, we can decide whether
5962 #### to use that one.
5963 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5964 test x$cc_specified != xyes
5965 then
5966 CC="$NON_GNU_CC"
5967 fi
5968
5969 if test x$GCC = xyes; then
5970 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5971 else
5972 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5973 fi
5974
5975 ### Use -Wno-pointer-sign if the compiler supports it
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5977 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5978 SAVE_CFLAGS="$CFLAGS"
5979 CFLAGS="$CFLAGS -Wno-pointer-sign"
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982
5983 int
5984 main ()
5985 {
5986
5987 ;
5988 return 0;
5989 }
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992 has_option=yes
5993 else
5994 has_option=no
5995 fi
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 if test $has_option = yes; then
5998 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6001 $as_echo "$has_option" >&6; }
6002 CFLAGS="$SAVE_CFLAGS"
6003 unset has_option
6004 unset SAVE_CFLAGS
6005
6006 ### Use -Wdeclaration-after-statement if the compiler supports it
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6008 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6009 SAVE_CFLAGS="$CFLAGS"
6010 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013
6014 int
6015 main ()
6016 {
6017
6018 ;
6019 return 0;
6020 }
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"; then :
6023 has_option=yes
6024 else
6025 has_option=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 if test $has_option = yes; then
6029 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6030 fi
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6032 $as_echo "$has_option" >&6; }
6033 CFLAGS="$SAVE_CFLAGS"
6034 unset has_option
6035 unset SAVE_CFLAGS
6036
6037 ### Use -Wold-style-definition if the compiler supports it
6038 # This can be removed when conversion to standard C is finished.
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6040 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6041 SAVE_CFLAGS="$CFLAGS"
6042 CFLAGS="$CFLAGS -Wold-style-definition"
6043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045
6046 int
6047 main ()
6048 {
6049
6050 ;
6051 return 0;
6052 }
6053 _ACEOF
6054 if ac_fn_c_try_compile "$LINENO"; then :
6055 has_option=yes
6056 else
6057 has_option=no
6058 fi
6059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 if test $has_option = yes; then
6061 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6062 fi
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6064 $as_echo "$has_option" >&6; }
6065 CFLAGS="$SAVE_CFLAGS"
6066 unset has_option
6067 unset SAVE_CFLAGS
6068
6069 ### Use -Wimplicit-function-declaration if the compiler supports it
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6071 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6072 SAVE_CFLAGS="$CFLAGS"
6073 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075 /* end confdefs.h. */
6076
6077 int
6078 main ()
6079 {
6080
6081 ;
6082 return 0;
6083 }
6084 _ACEOF
6085 if ac_fn_c_try_compile "$LINENO"; then :
6086 has_option=yes
6087 else
6088 has_option=no
6089 fi
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 if test $has_option = yes; then
6092 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6093 fi
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6095 $as_echo "$has_option" >&6; }
6096 CFLAGS="$SAVE_CFLAGS"
6097 unset has_option
6098 unset SAVE_CFLAGS
6099
6100
6101
6102
6103 #### Some other nice autoconf tests.
6104
6105 ac_ext=c
6106 ac_cpp='$CPP $CPPFLAGS'
6107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6111 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6112 # On Suns, sometimes $CPP names a directory.
6113 if test -n "$CPP" && test -d "$CPP"; then
6114 CPP=
6115 fi
6116 if test -z "$CPP"; then
6117 if ${ac_cv_prog_CPP+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 # Double quotes because CPP needs to be expanded
6121 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6122 do
6123 ac_preproc_ok=false
6124 for ac_c_preproc_warn_flag in '' yes
6125 do
6126 # Use a header file that comes with gcc, so configuring glibc
6127 # with a fresh cross-compiler works.
6128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6129 # <limits.h> exists even on freestanding compilers.
6130 # On the NeXT, cc -E runs the code through the compiler's parser,
6131 # not just through cpp. "Syntax error" is here to catch this case.
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 #ifdef __STDC__
6135 # include <limits.h>
6136 #else
6137 # include <assert.h>
6138 #endif
6139 Syntax error
6140 _ACEOF
6141 if ac_fn_c_try_cpp "$LINENO"; then :
6142
6143 else
6144 # Broken: fails on valid input.
6145 continue
6146 fi
6147 rm -f conftest.err conftest.i conftest.$ac_ext
6148
6149 # OK, works on sane cases. Now check whether nonexistent headers
6150 # can be detected and how.
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 #include <ac_nonexistent.h>
6154 _ACEOF
6155 if ac_fn_c_try_cpp "$LINENO"; then :
6156 # Broken: success on invalid input.
6157 continue
6158 else
6159 # Passes both tests.
6160 ac_preproc_ok=:
6161 break
6162 fi
6163 rm -f conftest.err conftest.i conftest.$ac_ext
6164
6165 done
6166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6167 rm -f conftest.i conftest.err conftest.$ac_ext
6168 if $ac_preproc_ok; then :
6169 break
6170 fi
6171
6172 done
6173 ac_cv_prog_CPP=$CPP
6174
6175 fi
6176 CPP=$ac_cv_prog_CPP
6177 else
6178 ac_cv_prog_CPP=$CPP
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6181 $as_echo "$CPP" >&6; }
6182 ac_preproc_ok=false
6183 for ac_c_preproc_warn_flag in '' yes
6184 do
6185 # Use a header file that comes with gcc, so configuring glibc
6186 # with a fresh cross-compiler works.
6187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6188 # <limits.h> exists even on freestanding compilers.
6189 # On the NeXT, cc -E runs the code through the compiler's parser,
6190 # not just through cpp. "Syntax error" is here to catch this case.
6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192 /* end confdefs.h. */
6193 #ifdef __STDC__
6194 # include <limits.h>
6195 #else
6196 # include <assert.h>
6197 #endif
6198 Syntax error
6199 _ACEOF
6200 if ac_fn_c_try_cpp "$LINENO"; then :
6201
6202 else
6203 # Broken: fails on valid input.
6204 continue
6205 fi
6206 rm -f conftest.err conftest.i conftest.$ac_ext
6207
6208 # OK, works on sane cases. Now check whether nonexistent headers
6209 # can be detected and how.
6210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6211 /* end confdefs.h. */
6212 #include <ac_nonexistent.h>
6213 _ACEOF
6214 if ac_fn_c_try_cpp "$LINENO"; then :
6215 # Broken: success on invalid input.
6216 continue
6217 else
6218 # Passes both tests.
6219 ac_preproc_ok=:
6220 break
6221 fi
6222 rm -f conftest.err conftest.i conftest.$ac_ext
6223
6224 done
6225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6226 rm -f conftest.i conftest.err conftest.$ac_ext
6227 if $ac_preproc_ok; then :
6228
6229 else
6230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6232 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6233 See \`config.log' for more details" "$LINENO" 5; }
6234 fi
6235
6236 ac_ext=c
6237 ac_cpp='$CPP $CPPFLAGS'
6238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6241
6242
6243 if test "x$RANLIB" = x; then
6244 if test -n "$ac_tool_prefix"; then
6245 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if ${ac_cv_prog_RANLIB+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test -n "$RANLIB"; then
6253 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 RANLIB=$ac_cv_prog_RANLIB
6273 if test -n "$RANLIB"; then
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6275 $as_echo "$RANLIB" >&6; }
6276 else
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_RANLIB"; then
6284 ac_ct_RANLIB=$RANLIB
6285 # Extract the first word of "ranlib", so it can be a program name with args.
6286 set dummy ranlib; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 if test -n "$ac_ct_RANLIB"; then
6293 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298 IFS=$as_save_IFS
6299 test -z "$as_dir" && as_dir=.
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6302 ac_cv_prog_ac_ct_RANLIB="ranlib"
6303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 break 2
6305 fi
6306 done
6307 done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6313 if test -n "$ac_ct_RANLIB"; then
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6315 $as_echo "$ac_ct_RANLIB" >&6; }
6316 else
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321 if test "x$ac_ct_RANLIB" = x; then
6322 RANLIB=":"
6323 else
6324 case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330 RANLIB=$ac_ct_RANLIB
6331 fi
6332 else
6333 RANLIB="$ac_cv_prog_RANLIB"
6334 fi
6335
6336 fi
6337
6338 ## Although we're running on an amd64 kernel, we're actually compiling for
6339 ## the x86 architecture. The user should probably have provided an
6340 ## explicit --build to `configure', but if everything else than the kernel
6341 ## is running in i386 mode, we can help them out.
6342 if test "$machine" = "amdx86-64"; then
6343 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6344 if test "x$ac_cv_have_decl_i386" = xyes; then :
6345
6346 fi
6347
6348 if test "$ac_cv_have_decl_i386" = "yes"; then
6349 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6350 machine=intel386
6351 machfile="m/${machine}.h"
6352 fi
6353 fi
6354
6355 # Extract the first word of "install-info", so it can be a program name with args.
6356 set dummy install-info; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 case $INSTALL_INFO in
6363 [\\/]* | ?:[\\/]*)
6364 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6365 ;;
6366 *)
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368 for as_dir in $PATH
6369 do
6370 IFS=$as_save_IFS
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 break 2
6377 fi
6378 done
6379 done
6380 IFS=$as_save_IFS
6381
6382 ;;
6383 esac
6384 fi
6385 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6386 if test -n "$INSTALL_INFO"; then
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6388 $as_echo "$INSTALL_INFO" >&6; }
6389 else
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6391 $as_echo "no" >&6; }
6392 fi
6393
6394
6395 # Extract the first word of "install-info", so it can be a program name with args.
6396 set dummy install-info; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 case $INSTALL_INFO in
6403 [\\/]* | ?:[\\/]*)
6404 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6405 ;;
6406 *)
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408 for as_dir in /usr/sbin
6409 do
6410 IFS=$as_save_IFS
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6416 break 2
6417 fi
6418 done
6419 done
6420 IFS=$as_save_IFS
6421
6422 ;;
6423 esac
6424 fi
6425 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6426 if test -n "$INSTALL_INFO"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6428 $as_echo "$INSTALL_INFO" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 # Extract the first word of "install-info", so it can be a program name with args.
6436 set dummy install-info; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6440 $as_echo_n "(cached) " >&6
6441 else
6442 case $INSTALL_INFO in
6443 [\\/]* | ?:[\\/]*)
6444 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6445 ;;
6446 *)
6447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6448 for as_dir in /sbin
6449 do
6450 IFS=$as_save_IFS
6451 test -z "$as_dir" && as_dir=.
6452 for ac_exec_ext in '' $ac_executable_extensions; do
6453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6454 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6456 break 2
6457 fi
6458 done
6459 done
6460 IFS=$as_save_IFS
6461
6462 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6463 ;;
6464 esac
6465 fi
6466 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6467 if test -n "$INSTALL_INFO"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6469 $as_echo "$INSTALL_INFO" >&6; }
6470 else
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475
6476 # Extract the first word of "gzip", so it can be a program name with args.
6477 set dummy gzip; ac_word=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_path_GZIP_PROG+:} false; then :
6481 $as_echo_n "(cached) " >&6
6482 else
6483 case $GZIP_PROG in
6484 [\\/]* | ?:[\\/]*)
6485 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6486 ;;
6487 *)
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6490 do
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6495 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6498 fi
6499 done
6500 done
6501 IFS=$as_save_IFS
6502
6503 ;;
6504 esac
6505 fi
6506 GZIP_PROG=$ac_cv_path_GZIP_PROG
6507 if test -n "$GZIP_PROG"; then
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6509 $as_echo "$GZIP_PROG" >&6; }
6510 else
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515
6516
6517
6518 ## Need makeinfo >= 4.6 (?) to build the manuals.
6519 # Extract the first word of "makeinfo", so it can be a program name with args.
6520 set dummy makeinfo; ac_word=$2
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522 $as_echo_n "checking for $ac_word... " >&6; }
6523 if ${ac_cv_path_MAKEINFO+:} false; then :
6524 $as_echo_n "(cached) " >&6
6525 else
6526 case $MAKEINFO in
6527 [\\/]* | ?:[\\/]*)
6528 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6529 ;;
6530 *)
6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 for as_dir in $PATH
6533 do
6534 IFS=$as_save_IFS
6535 test -z "$as_dir" && as_dir=.
6536 for ac_exec_ext in '' $ac_executable_extensions; do
6537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6538 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6540 break 2
6541 fi
6542 done
6543 done
6544 IFS=$as_save_IFS
6545
6546 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6547 ;;
6548 esac
6549 fi
6550 MAKEINFO=$ac_cv_path_MAKEINFO
6551 if test -n "$MAKEINFO"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6553 $as_echo "$MAKEINFO" >&6; }
6554 else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556 $as_echo "no" >&6; }
6557 fi
6558
6559
6560 if test "$MAKEINFO" != "no" && \
6561 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
6562 MAKEINFO=no
6563 fi
6564
6565 ## Makeinfo is unusual. For a released Emacs, the manuals are
6566 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6567 ## therefore in the category of "special tools" not normally required, which
6568 ## configure does not have to check for (eg autoconf itself).
6569 ## In a Bazaar checkout on the other hand, the manuals are not included.
6570 ## So makeinfo is a requirement to build from Bazaar, and configure
6571 ## should test for it as it does for any other build requirement.
6572 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6573 ## with pre-built manuals, from a Bazaar checkout.
6574 HAVE_MAKEINFO=yes
6575
6576 if test "$MAKEINFO" = "no"; then
6577 MAKEINFO=makeinfo
6578 if test "x${with_makeinfo}" = "xno"; then
6579 HAVE_MAKEINFO=no
6580 elif test ! -e $srcdir/info/emacs; then
6581 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6582 source tree does not seem to have pre-built manuals in the \`info' directory.
6583 Either install a suitable version of makeinfo, or re-run configure
6584 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6585 fi
6586 fi
6587
6588
6589
6590 if test x$GCC = xyes; then
6591 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6592 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6593 else
6594 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6595 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6596 fi
6597
6598
6599 late_LDFLAGS=$LDFLAGS
6600 if test x$GCC = xyes; then
6601 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6602 else
6603 LDFLAGS="$LDFLAGS -znocombreloc"
6604 fi
6605
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6607 $as_echo_n "checking for -znocombreloc... " >&6; }
6608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6609 /* end confdefs.h. */
6610
6611 int
6612 main ()
6613 {
6614
6615 ;
6616 return 0;
6617 }
6618 _ACEOF
6619 if ac_fn_c_try_link "$LINENO"; then :
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6621 $as_echo "yes" >&6; }
6622 else
6623 LDFLAGS=$late_LDFLAGS
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6625 $as_echo "no" >&6; }
6626 fi
6627 rm -f core conftest.err conftest.$ac_objext \
6628 conftest$ac_exeext conftest.$ac_ext
6629
6630
6631 # The value of CPP is a quoted variable reference, so we need to do this
6632 # to get its actual value...
6633 CPP=`eval "echo $CPP"`
6634
6635
6636 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6637 case "$opsys" in
6638 your-opsys-here) CANNOT_DUMP=yes ;;
6639 esac
6640
6641 test "$CANNOT_DUMP" = "yes" && \
6642
6643 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6644
6645
6646
6647
6648
6649 UNEXEC_OBJ=unexelf.o
6650 case "$opsys" in
6651 # MSDOS uses unexcoff.o
6652 # MSWindows uses unexw32.o
6653 aix4-2)
6654 UNEXEC_OBJ=unexaix.o
6655 ;;
6656 cygwin)
6657 UNEXEC_OBJ=unexcw.o
6658 ;;
6659 darwin)
6660 UNEXEC_OBJ=unexmacosx.o
6661 ;;
6662 hpux10-20 | hpux11)
6663 UNEXEC_OBJ=unexhp9k800.o
6664 ;;
6665 sol2-10)
6666 # Use the Solaris dldump() function, called from unexsol.c, to dump
6667 # emacs, instead of the generic ELF dump code found in unexelf.c.
6668 # The resulting binary has a complete symbol table, and is better
6669 # for debugging and other observability tools (debuggers, pstack, etc).
6670 #
6671 # If you encounter a problem using dldump(), please consider sending
6672 # a message to the OpenSolaris tools-linking mailing list:
6673 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6674 #
6675 # It is likely that dldump() works with older Solaris too, but this has
6676 # not been tested, so for now this change is for Solaris 10 or newer.
6677 UNEXEC_OBJ=unexsol.o
6678 ;;
6679 esac
6680
6681 LD_SWITCH_SYSTEM=
6682 case "$opsys" in
6683 freebsd)
6684 ## Let `ld' find image libs and similar things in /usr/local/lib.
6685 ## The system compiler, GCC, has apparently been modified to not
6686 ## look there, contrary to what a stock GCC would do.
6687 LD_SWITCH_SYSTEM=-L/usr/local/lib
6688 ;;
6689
6690 gnu-linux)
6691 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6692 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6693 ;;
6694
6695 netbsd)
6696 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6697 ;;
6698
6699 openbsd)
6700 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6701 ## otherwise Emacs dumps core on elf systems.
6702 LD_SWITCH_SYSTEM="-Z"
6703 ;;
6704 esac
6705
6706
6707 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6708
6709 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6710 ## which has not been defined yet. When this was handled with cpp,
6711 ## it was expanded to null when configure sourced the s/*.h file.
6712 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6713 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6714 ## (or somesuch), but because it is supposed to go at the _front_
6715 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6716 ## Compare with the gnu-linux case below, which added to the end
6717 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6718 ## LD_SWITCH_SYSTEM_TEMACS.
6719 case "$opsys" in
6720 netbsd|openbsd)
6721 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6722 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6723 esac
6724
6725
6726 C_SWITCH_MACHINE=
6727 if test "$machine" = "alpha"; then
6728 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6729 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6730
6731 fi
6732
6733 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6734 ## With ELF, make sure that all common symbols get allocated to in the
6735 ## data section. Otherwise, the dump of temacs may miss variables in
6736 ## the shared library that have been initialized. For example, with
6737 ## GNU libc, __malloc_initialized would normally be resolved to the
6738 ## shared library's .bss section, which is fatal.
6739 if test "x$GCC" = "xyes"; then
6740 C_SWITCH_MACHINE="-fno-common"
6741 else
6742 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6743 fi
6744 else
6745 UNEXEC_OBJ=unexalpha.o
6746 fi
6747 fi
6748
6749
6750
6751
6752 C_SWITCH_SYSTEM=
6753 ## Some programs in src produce warnings saying certain subprograms
6754 ## are too complex and need a MAXMEM value greater than 2000 for
6755 ## additional optimization. --nils@exp-math.uni-essen.de
6756 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6757 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6758 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6759 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6760
6761
6762
6763 LIBS_SYSTEM=
6764 case "$opsys" in
6765 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6766 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6767
6768 freebsd) LIBS_SYSTEM="-lutil" ;;
6769
6770 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6771
6772 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
6773
6774 ## Motif needs -lgen.
6775 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6776 esac
6777
6778
6779
6780 ### Make sure subsequent tests use flags consistent with the build flags.
6781
6782 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6783 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6784 else
6785 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6786 fi
6787
6788 # Check whether --enable-largefile was given.
6789 if test "${enable_largefile+set}" = set; then :
6790 enableval=$enable_largefile;
6791 fi
6792
6793 if test "$enable_largefile" != no; then
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6796 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6797 if ${ac_cv_sys_largefile_CC+:} false; then :
6798 $as_echo_n "(cached) " >&6
6799 else
6800 ac_cv_sys_largefile_CC=no
6801 if test "$GCC" != yes; then
6802 ac_save_CC=$CC
6803 while :; do
6804 # IRIX 6.2 and later do not support large files by default,
6805 # so use the C compiler's -n32 option if that helps.
6806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6807 /* end confdefs.h. */
6808 #include <sys/types.h>
6809 /* Check that off_t can represent 2**63 - 1 correctly.
6810 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6811 since some C++ compilers masquerading as C compilers
6812 incorrectly reject 9223372036854775807. */
6813 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6814 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6815 && LARGE_OFF_T % 2147483647 == 1)
6816 ? 1 : -1];
6817 int
6818 main ()
6819 {
6820
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 break
6827 fi
6828 rm -f core conftest.err conftest.$ac_objext
6829 CC="$CC -n32"
6830 if ac_fn_c_try_compile "$LINENO"; then :
6831 ac_cv_sys_largefile_CC=' -n32'; break
6832 fi
6833 rm -f core conftest.err conftest.$ac_objext
6834 break
6835 done
6836 CC=$ac_save_CC
6837 rm -f conftest.$ac_ext
6838 fi
6839 fi
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6841 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6842 if test "$ac_cv_sys_largefile_CC" != no; then
6843 CC=$CC$ac_cv_sys_largefile_CC
6844 fi
6845
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6847 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6848 if ${ac_cv_sys_file_offset_bits+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 while :; do
6852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6853 /* end confdefs.h. */
6854 #include <sys/types.h>
6855 /* Check that off_t can represent 2**63 - 1 correctly.
6856 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6857 since some C++ compilers masquerading as C compilers
6858 incorrectly reject 9223372036854775807. */
6859 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6860 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6861 && LARGE_OFF_T % 2147483647 == 1)
6862 ? 1 : -1];
6863 int
6864 main ()
6865 {
6866
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 if ac_fn_c_try_compile "$LINENO"; then :
6872 ac_cv_sys_file_offset_bits=no; break
6873 fi
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6876 /* end confdefs.h. */
6877 #define _FILE_OFFSET_BITS 64
6878 #include <sys/types.h>
6879 /* Check that off_t can represent 2**63 - 1 correctly.
6880 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6881 since some C++ compilers masquerading as C compilers
6882 incorrectly reject 9223372036854775807. */
6883 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6884 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6885 && LARGE_OFF_T % 2147483647 == 1)
6886 ? 1 : -1];
6887 int
6888 main ()
6889 {
6890
6891 ;
6892 return 0;
6893 }
6894 _ACEOF
6895 if ac_fn_c_try_compile "$LINENO"; then :
6896 ac_cv_sys_file_offset_bits=64; break
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 ac_cv_sys_file_offset_bits=unknown
6900 break
6901 done
6902 fi
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6904 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6905 case $ac_cv_sys_file_offset_bits in #(
6906 no | unknown) ;;
6907 *)
6908 cat >>confdefs.h <<_ACEOF
6909 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6910 _ACEOF
6911 ;;
6912 esac
6913 rm -rf conftest*
6914 if test $ac_cv_sys_file_offset_bits = unknown; then
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6916 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6917 if ${ac_cv_sys_large_files+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 while :; do
6921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6922 /* end confdefs.h. */
6923 #include <sys/types.h>
6924 /* Check that off_t can represent 2**63 - 1 correctly.
6925 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6926 since some C++ compilers masquerading as C compilers
6927 incorrectly reject 9223372036854775807. */
6928 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6929 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6930 && LARGE_OFF_T % 2147483647 == 1)
6931 ? 1 : -1];
6932 int
6933 main ()
6934 {
6935
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_compile "$LINENO"; then :
6941 ac_cv_sys_large_files=no; break
6942 fi
6943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 #define _LARGE_FILES 1
6947 #include <sys/types.h>
6948 /* Check that off_t can represent 2**63 - 1 correctly.
6949 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6950 since some C++ compilers masquerading as C compilers
6951 incorrectly reject 9223372036854775807. */
6952 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6953 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6954 && LARGE_OFF_T % 2147483647 == 1)
6955 ? 1 : -1];
6956 int
6957 main ()
6958 {
6959
6960 ;
6961 return 0;
6962 }
6963 _ACEOF
6964 if ac_fn_c_try_compile "$LINENO"; then :
6965 ac_cv_sys_large_files=1; break
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6968 ac_cv_sys_large_files=unknown
6969 break
6970 done
6971 fi
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6973 $as_echo "$ac_cv_sys_large_files" >&6; }
6974 case $ac_cv_sys_large_files in #(
6975 no | unknown) ;;
6976 *)
6977 cat >>confdefs.h <<_ACEOF
6978 #define _LARGE_FILES $ac_cv_sys_large_files
6979 _ACEOF
6980 ;;
6981 esac
6982 rm -rf conftest*
6983 fi
6984 fi
6985
6986
6987
6988 ## If user specified a crt-dir, use that unconditionally.
6989 if test "X$CRT_DIR" = "X"; then
6990
6991 case "$canonical" in
6992 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6993 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6994 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6995 ## For anything else (eg /usr/lib32), it is up the user to specify
6996 ## the location (bug#5655).
6997 ## Test for crtn.o, not just the directory, because sometimes the
6998 ## directory exists but does not have the relevant files (bug#1287).
6999 ## FIXME better to test for binary compatibility somehow.
7000 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
7001 ;;
7002
7003 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7004 esac
7005
7006 case "$opsys" in
7007 hpux10-20) CRT_DIR=/lib ;;
7008 esac
7009
7010 ## Default is /usr/lib.
7011 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7012
7013 else
7014
7015 ## Some platforms don't use any of these files, so it is not
7016 ## appropriate to put this test outside the if block.
7017 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7018 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7019
7020 fi
7021
7022
7023
7024 LIB_MATH=-lm
7025 LIB_STANDARD=
7026 START_FILES=
7027
7028 case $opsys in
7029 cygwin )
7030 LIB_MATH=
7031 START_FILES='pre-crt0.o'
7032 ;;
7033 darwin )
7034 ## Adding -lm confuses the dynamic linker, so omit it.
7035 LIB_MATH=
7036 START_FILES='pre-crt0.o'
7037 ;;
7038 freebsd )
7039 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7040 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7041 ;;
7042 gnu-linux | gnu-kfreebsd )
7043 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7044 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7045 ;;
7046 hpux10-20 | hpux11 )
7047 LIB_STANDARD=-lc
7048 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7049 ;;
7050 netbsd | openbsd )
7051 if test -f $CRT_DIR/crti.o; then
7052 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7053 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7054 else
7055 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7056 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7057 fi
7058 ;;
7059 esac
7060
7061
7062
7063
7064
7065
7066
7067 if test "${with_sound}" != "no"; then
7068 # Sound support for GNU/Linux and the free BSDs.
7069 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7070 do :
7071 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7072 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7073 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7074 cat >>confdefs.h <<_ACEOF
7075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7076 _ACEOF
7077 have_sound_header=yes
7078 fi
7079
7080 done
7081
7082 # Emulation library used on NetBSD.
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7084 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7085 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7086 $as_echo_n "(cached) " >&6
7087 else
7088 ac_check_lib_save_LIBS=$LIBS
7089 LIBS="-lossaudio $LIBS"
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092
7093 /* Override any GCC internal prototype to avoid an error.
7094 Use char because int might match the return type of a GCC
7095 builtin and then its argument prototype would still apply. */
7096 #ifdef __cplusplus
7097 extern "C"
7098 #endif
7099 char _oss_ioctl ();
7100 int
7101 main ()
7102 {
7103 return _oss_ioctl ();
7104 ;
7105 return 0;
7106 }
7107 _ACEOF
7108 if ac_fn_c_try_link "$LINENO"; then :
7109 ac_cv_lib_ossaudio__oss_ioctl=yes
7110 else
7111 ac_cv_lib_ossaudio__oss_ioctl=no
7112 fi
7113 rm -f core conftest.err conftest.$ac_objext \
7114 conftest$ac_exeext conftest.$ac_ext
7115 LIBS=$ac_check_lib_save_LIBS
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7118 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7119 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7120 LIBSOUND=-lossaudio
7121 else
7122 LIBSOUND=
7123 fi
7124
7125
7126
7127 ALSA_REQUIRED=1.0.0
7128 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7129
7130 succeeded=no
7131
7132 # Extract the first word of "pkg-config", so it can be a program name with args.
7133 set dummy pkg-config; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 case $PKG_CONFIG in
7140 [\\/]* | ?:[\\/]*)
7141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7142 ;;
7143 *)
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7160 ;;
7161 esac
7162 fi
7163 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7164 if test -n "$PKG_CONFIG"; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7166 $as_echo "$PKG_CONFIG" >&6; }
7167 else
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169 $as_echo "no" >&6; }
7170 fi
7171
7172
7173
7174 if test "$PKG_CONFIG" = "no" ; then
7175 HAVE_ALSA=no
7176 else
7177 PKG_CONFIG_MIN_VERSION=0.9.0
7178 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7180 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7181
7182 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7184 $as_echo "yes" >&6; }
7185 succeeded=yes
7186
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7188 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7189 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7191 $as_echo "$ALSA_CFLAGS" >&6; }
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7194 $as_echo_n "checking ALSA_LIBS... " >&6; }
7195 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7197 $as_echo "$ALSA_LIBS" >&6; }
7198 else
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201 ALSA_CFLAGS=""
7202 ALSA_LIBS=""
7203 ## If we have a custom action on failure, don't print errors, but
7204 ## do set a variable so people can do so.
7205 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7206
7207 fi
7208
7209
7210
7211 else
7212 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7213 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7214 fi
7215 fi
7216
7217 if test $succeeded = yes; then
7218 HAVE_ALSA=yes
7219 else
7220 HAVE_ALSA=no
7221 fi
7222
7223 if test $HAVE_ALSA = yes; then
7224 SAVE_CFLAGS="$CFLAGS"
7225 SAVE_LDFLAGS="$LDFLAGS"
7226 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7227 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <asoundlib.h>
7231 int
7232 main ()
7233 {
7234 snd_lib_error_set_handler (0);
7235 ;
7236 return 0;
7237 }
7238 _ACEOF
7239 if ac_fn_c_try_compile "$LINENO"; then :
7240 emacs_alsa_normal=yes
7241 else
7242 emacs_alsa_normal=no
7243 fi
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7245 if test "$emacs_alsa_normal" != yes; then
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #include <alsa/asoundlib.h>
7249 int
7250 main ()
7251 {
7252 snd_lib_error_set_handler (0);
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 if ac_fn_c_try_compile "$LINENO"; then :
7258 emacs_alsa_subdir=yes
7259 else
7260 emacs_alsa_subdir=no
7261 fi
7262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7263 if test "$emacs_alsa_subdir" != yes; then
7264 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7265 fi
7266 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7267 fi
7268
7269 CFLAGS="$SAVE_CFLAGS"
7270 LDFLAGS="$SAVE_LDFLAGS"
7271 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7272 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7273
7274 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7275
7276 fi
7277
7278 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7279 case "$opsys" in
7280 gnu-linux|freebsd|netbsd)
7281
7282 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7283
7284 ;;
7285 esac
7286 fi
7287
7288
7289 fi
7290
7291 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7292 linux/version.h sys/systeminfo.h limits.h \
7293 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7294 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7295 sys/utsname.h pwd.h utmp.h dirent.h util.h
7296 do :
7297 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7298 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7300 cat >>confdefs.h <<_ACEOF
7301 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7302 _ACEOF
7303
7304 fi
7305
7306 done
7307
7308
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7310 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313 #include <sys/personality.h>
7314 int
7315 main ()
7316 {
7317 personality (PER_LINUX32)
7318 ;
7319 return 0;
7320 }
7321 _ACEOF
7322 if ac_fn_c_try_compile "$LINENO"; then :
7323 emacs_cv_personality_linux32=yes
7324 else
7325 emacs_cv_personality_linux32=no
7326 fi
7327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7329 $as_echo "$emacs_cv_personality_linux32" >&6; }
7330
7331 if test $emacs_cv_personality_linux32 = yes; then
7332
7333 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7334
7335 fi
7336
7337 for ac_header in term.h
7338 do :
7339 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7340 if test "x$ac_cv_header_term_h" = xyes; then :
7341 cat >>confdefs.h <<_ACEOF
7342 #define HAVE_TERM_H 1
7343 _ACEOF
7344
7345 fi
7346
7347 done
7348
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7350 $as_echo_n "checking for ANSI C header files... " >&6; }
7351 if ${ac_cv_header_stdc+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7355 /* end confdefs.h. */
7356 #include <stdlib.h>
7357 #include <stdarg.h>
7358 #include <string.h>
7359 #include <float.h>
7360
7361 int
7362 main ()
7363 {
7364
7365 ;
7366 return 0;
7367 }
7368 _ACEOF
7369 if ac_fn_c_try_compile "$LINENO"; then :
7370 ac_cv_header_stdc=yes
7371 else
7372 ac_cv_header_stdc=no
7373 fi
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375
7376 if test $ac_cv_header_stdc = yes; then
7377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 #include <string.h>
7381
7382 _ACEOF
7383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7384 $EGREP "memchr" >/dev/null 2>&1; then :
7385
7386 else
7387 ac_cv_header_stdc=no
7388 fi
7389 rm -f conftest*
7390
7391 fi
7392
7393 if test $ac_cv_header_stdc = yes; then
7394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397 #include <stdlib.h>
7398
7399 _ACEOF
7400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7401 $EGREP "free" >/dev/null 2>&1; then :
7402
7403 else
7404 ac_cv_header_stdc=no
7405 fi
7406 rm -f conftest*
7407
7408 fi
7409
7410 if test $ac_cv_header_stdc = yes; then
7411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7412 if test "$cross_compiling" = yes; then :
7413 :
7414 else
7415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7416 /* end confdefs.h. */
7417 #include <ctype.h>
7418 #include <stdlib.h>
7419 #if ((' ' & 0x0FF) == 0x020)
7420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7422 #else
7423 # define ISLOWER(c) \
7424 (('a' <= (c) && (c) <= 'i') \
7425 || ('j' <= (c) && (c) <= 'r') \
7426 || ('s' <= (c) && (c) <= 'z'))
7427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7428 #endif
7429
7430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7431 int
7432 main ()
7433 {
7434 int i;
7435 for (i = 0; i < 256; i++)
7436 if (XOR (islower (i), ISLOWER (i))
7437 || toupper (i) != TOUPPER (i))
7438 return 2;
7439 return 0;
7440 }
7441 _ACEOF
7442 if ac_fn_c_try_run "$LINENO"; then :
7443
7444 else
7445 ac_cv_header_stdc=no
7446 fi
7447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7448 conftest.$ac_objext conftest.beam conftest.$ac_ext
7449 fi
7450
7451 fi
7452 fi
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7454 $as_echo "$ac_cv_header_stdc" >&6; }
7455 if test $ac_cv_header_stdc = yes; then
7456
7457 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7458
7459 fi
7460
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7462 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7463 if ${ac_cv_header_time+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468 #include <sys/types.h>
7469 #include <sys/time.h>
7470 #include <time.h>
7471
7472 int
7473 main ()
7474 {
7475 if ((struct tm *) 0)
7476 return 0;
7477 ;
7478 return 0;
7479 }
7480 _ACEOF
7481 if ac_fn_c_try_compile "$LINENO"; then :
7482 ac_cv_header_time=yes
7483 else
7484 ac_cv_header_time=no
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7489 $as_echo "$ac_cv_header_time" >&6; }
7490 if test $ac_cv_header_time = yes; then
7491
7492 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7493
7494 fi
7495
7496 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7497 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7498 ac_have_decl=1
7499 else
7500 ac_have_decl=0
7501 fi
7502
7503 cat >>confdefs.h <<_ACEOF
7504 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7505 _ACEOF
7506
7507 if test $ac_cv_have_decl_sys_siglist != yes; then
7508 # For Tru64, at least:
7509 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7510 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7511 ac_have_decl=1
7512 else
7513 ac_have_decl=0
7514 fi
7515
7516 cat >>confdefs.h <<_ACEOF
7517 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7518 _ACEOF
7519
7520 if test $ac_cv_have_decl___sys_siglist = yes; then
7521
7522 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7523
7524 fi
7525 fi
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7527 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7528 if ${ac_cv_header_sys_wait_h+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7533 #include <sys/types.h>
7534 #include <sys/wait.h>
7535 #ifndef WEXITSTATUS
7536 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7537 #endif
7538 #ifndef WIFEXITED
7539 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7540 #endif
7541
7542 int
7543 main ()
7544 {
7545 int s;
7546 wait (&s);
7547 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 if ac_fn_c_try_compile "$LINENO"; then :
7553 ac_cv_header_sys_wait_h=yes
7554 else
7555 ac_cv_header_sys_wait_h=no
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7560 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7561 if test $ac_cv_header_sys_wait_h = yes; then
7562
7563 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7564
7565 fi
7566
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7569 $as_echo_n "checking for struct utimbuf... " >&6; }
7570 if ${emacs_cv_struct_utimbuf+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 #ifdef TIME_WITH_SYS_TIME
7576 #include <sys/time.h>
7577 #include <time.h>
7578 #else
7579 #ifdef HAVE_SYS_TIME_H
7580 #include <sys/time.h>
7581 #else
7582 #include <time.h>
7583 #endif
7584 #endif
7585 #ifdef HAVE_UTIME_H
7586 #include <utime.h>
7587 #endif
7588 int
7589 main ()
7590 {
7591 static struct utimbuf x; x.actime = x.modtime;
7592 ;
7593 return 0;
7594 }
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 emacs_cv_struct_utimbuf=yes
7598 else
7599 emacs_cv_struct_utimbuf=no
7600 fi
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 fi
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7604 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7605 if test $emacs_cv_struct_utimbuf = yes; then
7606
7607 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7608
7609 fi
7610
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7612 $as_echo_n "checking return type of signal handlers... " >&6; }
7613 if ${ac_cv_type_signal+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7618 #include <sys/types.h>
7619 #include <signal.h>
7620
7621 int
7622 main ()
7623 {
7624 return *(signal (0, 0)) (0) == 1;
7625 ;
7626 return 0;
7627 }
7628 _ACEOF
7629 if ac_fn_c_try_compile "$LINENO"; then :
7630 ac_cv_type_signal=int
7631 else
7632 ac_cv_type_signal=void
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7637 $as_echo "$ac_cv_type_signal" >&6; }
7638
7639 cat >>confdefs.h <<_ACEOF
7640 #define RETSIGTYPE $ac_cv_type_signal
7641 _ACEOF
7642
7643
7644
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7646 $as_echo_n "checking for speed_t... " >&6; }
7647 if ${emacs_cv_speed_t+:} false; then :
7648 $as_echo_n "(cached) " >&6
7649 else
7650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7651 /* end confdefs.h. */
7652 #include <termios.h>
7653 int
7654 main ()
7655 {
7656 speed_t x = 1;
7657 ;
7658 return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_compile "$LINENO"; then :
7662 emacs_cv_speed_t=yes
7663 else
7664 emacs_cv_speed_t=no
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7667 fi
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7669 $as_echo "$emacs_cv_speed_t" >&6; }
7670 if test $emacs_cv_speed_t = yes; then
7671
7672 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7673
7674 fi
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7677 $as_echo_n "checking for struct timeval... " >&6; }
7678 if ${emacs_cv_struct_timeval+:} false; then :
7679 $as_echo_n "(cached) " >&6
7680 else
7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h. */
7683 #ifdef TIME_WITH_SYS_TIME
7684 #include <sys/time.h>
7685 #include <time.h>
7686 #else
7687 #ifdef HAVE_SYS_TIME_H
7688 #include <sys/time.h>
7689 #else
7690 #include <time.h>
7691 #endif
7692 #endif
7693 int
7694 main ()
7695 {
7696 static struct timeval x; x.tv_sec = x.tv_usec;
7697 ;
7698 return 0;
7699 }
7700 _ACEOF
7701 if ac_fn_c_try_compile "$LINENO"; then :
7702 emacs_cv_struct_timeval=yes
7703 else
7704 emacs_cv_struct_timeval=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7707 fi
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7709 $as_echo "$emacs_cv_struct_timeval" >&6; }
7710 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7711 if test $emacs_cv_struct_timeval = yes; then
7712
7713 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7714
7715 fi
7716
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7718 $as_echo_n "checking for struct exception... " >&6; }
7719 if ${emacs_cv_struct_exception+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 #include <math.h>
7725 int
7726 main ()
7727 {
7728 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7729 ;
7730 return 0;
7731 }
7732 _ACEOF
7733 if ac_fn_c_try_compile "$LINENO"; then :
7734 emacs_cv_struct_exception=yes
7735 else
7736 emacs_cv_struct_exception=no
7737 fi
7738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7739 fi
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7741 $as_echo "$emacs_cv_struct_exception" >&6; }
7742 HAVE_EXCEPTION=$emacs_cv_struct_exception
7743 if test $emacs_cv_struct_exception != yes; then
7744
7745 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7746
7747 fi
7748
7749 for ac_header in sys/socket.h
7750 do :
7751 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7752 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7753 cat >>confdefs.h <<_ACEOF
7754 #define HAVE_SYS_SOCKET_H 1
7755 _ACEOF
7756
7757 fi
7758
7759 done
7760
7761 for ac_header in net/if.h
7762 do :
7763 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7764 #if HAVE_SYS_SOCKET_H
7765 #include <sys/socket.h>
7766 #endif
7767 "
7768 if test "x$ac_cv_header_net_if_h" = xyes; then :
7769 cat >>confdefs.h <<_ACEOF
7770 #define HAVE_NET_IF_H 1
7771 _ACEOF
7772
7773 fi
7774
7775 done
7776
7777
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7779 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7780 if ${ac_cv_struct_tm+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 #include <sys/types.h>
7786 #include <time.h>
7787
7788 int
7789 main ()
7790 {
7791 struct tm tm;
7792 int *p = &tm.tm_sec;
7793 return !p;
7794 ;
7795 return 0;
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_compile "$LINENO"; then :
7799 ac_cv_struct_tm=time.h
7800 else
7801 ac_cv_struct_tm=sys/time.h
7802 fi
7803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7806 $as_echo "$ac_cv_struct_tm" >&6; }
7807 if test $ac_cv_struct_tm = sys/time.h; then
7808
7809 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7810
7811 fi
7812
7813 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7814 #include <$ac_cv_struct_tm>
7815
7816 "
7817 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7818
7819 cat >>confdefs.h <<_ACEOF
7820 #define HAVE_STRUCT_TM_TM_ZONE 1
7821 _ACEOF
7822
7823
7824 fi
7825
7826 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7827
7828 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7829
7830 else
7831 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7832 "
7833 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7834 ac_have_decl=1
7835 else
7836 ac_have_decl=0
7837 fi
7838
7839 cat >>confdefs.h <<_ACEOF
7840 #define HAVE_DECL_TZNAME $ac_have_decl
7841 _ACEOF
7842
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7844 $as_echo_n "checking for tzname... " >&6; }
7845 if ${ac_cv_var_tzname+:} false; then :
7846 $as_echo_n "(cached) " >&6
7847 else
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <time.h>
7851 #if !HAVE_DECL_TZNAME
7852 extern char *tzname[];
7853 #endif
7854
7855 int
7856 main ()
7857 {
7858 return tzname[0][0];
7859 ;
7860 return 0;
7861 }
7862 _ACEOF
7863 if ac_fn_c_try_link "$LINENO"; then :
7864 ac_cv_var_tzname=yes
7865 else
7866 ac_cv_var_tzname=no
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 fi
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7872 $as_echo "$ac_cv_var_tzname" >&6; }
7873 if test $ac_cv_var_tzname = yes; then
7874
7875 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7876
7877 fi
7878 fi
7879
7880 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7881 "
7882 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7883
7884 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7885
7886 fi
7887
7888 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7889 #if HAVE_SYS_SOCKET_H
7890 #include <sys/socket.h>
7891 #endif
7892 #if HAVE_NET_IF_H
7893 #include <net/if.h>
7894 #endif
7895 "
7896 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
7897
7898 cat >>confdefs.h <<_ACEOF
7899 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7900 _ACEOF
7901
7902
7903 fi
7904 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7905 #if HAVE_SYS_SOCKET_H
7906 #include <sys/socket.h>
7907 #endif
7908 #if HAVE_NET_IF_H
7909 #include <net/if.h>
7910 #endif
7911 "
7912 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
7913
7914 cat >>confdefs.h <<_ACEOF
7915 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7916 _ACEOF
7917
7918
7919 fi
7920 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7921 #if HAVE_SYS_SOCKET_H
7922 #include <sys/socket.h>
7923 #endif
7924 #if HAVE_NET_IF_H
7925 #include <net/if.h>
7926 #endif
7927 "
7928 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
7929
7930 cat >>confdefs.h <<_ACEOF
7931 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7932 _ACEOF
7933
7934
7935 fi
7936 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7937 #if HAVE_SYS_SOCKET_H
7938 #include <sys/socket.h>
7939 #endif
7940 #if HAVE_NET_IF_H
7941 #include <net/if.h>
7942 #endif
7943 "
7944 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
7945
7946 cat >>confdefs.h <<_ACEOF
7947 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7948 _ACEOF
7949
7950
7951 fi
7952 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7953 #if HAVE_SYS_SOCKET_H
7954 #include <sys/socket.h>
7955 #endif
7956 #if HAVE_NET_IF_H
7957 #include <net/if.h>
7958 #endif
7959 "
7960 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
7961
7962 cat >>confdefs.h <<_ACEOF
7963 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7964 _ACEOF
7965
7966
7967 fi
7968
7969
7970
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7972 $as_echo_n "checking for function prototypes... " >&6; }
7973 if test "$ac_cv_prog_cc_c89" != no; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7975 $as_echo "yes" >&6; }
7976
7977 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7978
7979
7980 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7981
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7985 fi
7986
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7988 $as_echo_n "checking for working volatile... " >&6; }
7989 if ${ac_cv_c_volatile+:} false; then :
7990 $as_echo_n "(cached) " >&6
7991 else
7992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993 /* end confdefs.h. */
7994
7995 int
7996 main ()
7997 {
7998
7999 volatile int x;
8000 int * volatile y = (int *) 0;
8001 return !x && !y;
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 if ac_fn_c_try_compile "$LINENO"; then :
8007 ac_cv_c_volatile=yes
8008 else
8009 ac_cv_c_volatile=no
8010 fi
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8014 $as_echo "$ac_cv_c_volatile" >&6; }
8015 if test $ac_cv_c_volatile = no; then
8016
8017 $as_echo "#define volatile /**/" >>confdefs.h
8018
8019 fi
8020
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8022 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8023 if ${ac_cv_c_const+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025 else
8026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h. */
8028
8029 int
8030 main ()
8031 {
8032 /* FIXME: Include the comments suggested by Paul. */
8033 #ifndef __cplusplus
8034 /* Ultrix mips cc rejects this. */
8035 typedef int charset[2];
8036 const charset cs;
8037 /* SunOS 4.1.1 cc rejects this. */
8038 char const *const *pcpcc;
8039 char **ppc;
8040 /* NEC SVR4.0.2 mips cc rejects this. */
8041 struct point {int x, y;};
8042 static struct point const zero = {0,0};
8043 /* AIX XL C 1.02.0.0 rejects this.
8044 It does not let you subtract one const X* pointer from another in
8045 an arm of an if-expression whose if-part is not a constant
8046 expression */
8047 const char *g = "string";
8048 pcpcc = &g + (g ? g-g : 0);
8049 /* HPUX 7.0 cc rejects these. */
8050 ++pcpcc;
8051 ppc = (char**) pcpcc;
8052 pcpcc = (char const *const *) ppc;
8053 { /* SCO 3.2v4 cc rejects this. */
8054 char *t;
8055 char const *s = 0 ? (char *) 0 : (char const *) 0;
8056
8057 *t++ = 0;
8058 if (s) return 0;
8059 }
8060 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8061 int x[] = {25, 17};
8062 const int *foo = &x[0];
8063 ++foo;
8064 }
8065 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8066 typedef const int *iptr;
8067 iptr p = 0;
8068 ++p;
8069 }
8070 { /* AIX XL C 1.02.0.0 rejects this saying
8071 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8072 struct s { int j; const int *ap[3]; };
8073 struct s *b; b->j = 5;
8074 }
8075 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8076 const int foo = 10;
8077 if (!foo) return 0;
8078 }
8079 return !cs[0] && !zero.x;
8080 #endif
8081
8082 ;
8083 return 0;
8084 }
8085 _ACEOF
8086 if ac_fn_c_try_compile "$LINENO"; then :
8087 ac_cv_c_const=yes
8088 else
8089 ac_cv_c_const=no
8090 fi
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8094 $as_echo "$ac_cv_c_const" >&6; }
8095 if test $ac_cv_c_const = no; then
8096
8097 $as_echo "#define const /**/" >>confdefs.h
8098
8099 fi
8100
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8102 $as_echo_n "checking for void * support... " >&6; }
8103 if ${emacs_cv_void_star+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107 /* end confdefs.h. */
8108
8109 int
8110 main ()
8111 {
8112 void * foo;
8113 ;
8114 return 0;
8115 }
8116 _ACEOF
8117 if ac_fn_c_try_compile "$LINENO"; then :
8118 emacs_cv_void_star=yes
8119 else
8120 emacs_cv_void_star=no
8121 fi
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8123 fi
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8125 $as_echo "$emacs_cv_void_star" >&6; }
8126 if test $emacs_cv_void_star = yes; then
8127 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8128
8129 else
8130 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8131
8132 fi
8133
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8135 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8136 if ${ac_cv_c_bigendian+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 ac_cv_c_bigendian=unknown
8140 # See if we're dealing with a universal compiler.
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8143 #ifndef __APPLE_CC__
8144 not a universal capable compiler
8145 #endif
8146 typedef int dummy;
8147
8148 _ACEOF
8149 if ac_fn_c_try_compile "$LINENO"; then :
8150
8151 # Check for potential -arch flags. It is not universal unless
8152 # there are at least two -arch flags with different values.
8153 ac_arch=
8154 ac_prev=
8155 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8156 if test -n "$ac_prev"; then
8157 case $ac_word in
8158 i?86 | x86_64 | ppc | ppc64)
8159 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8160 ac_arch=$ac_word
8161 else
8162 ac_cv_c_bigendian=universal
8163 break
8164 fi
8165 ;;
8166 esac
8167 ac_prev=
8168 elif test "x$ac_word" = "x-arch"; then
8169 ac_prev=arch
8170 fi
8171 done
8172 fi
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 if test $ac_cv_c_bigendian = unknown; then
8175 # See if sys/param.h defines the BYTE_ORDER macro.
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8178 #include <sys/types.h>
8179 #include <sys/param.h>
8180
8181 int
8182 main ()
8183 {
8184 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8185 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8186 && LITTLE_ENDIAN)
8187 bogus endian macros
8188 #endif
8189
8190 ;
8191 return 0;
8192 }
8193 _ACEOF
8194 if ac_fn_c_try_compile "$LINENO"; then :
8195 # It does; now see whether it defined to BIG_ENDIAN or not.
8196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8198 #include <sys/types.h>
8199 #include <sys/param.h>
8200
8201 int
8202 main ()
8203 {
8204 #if BYTE_ORDER != BIG_ENDIAN
8205 not big endian
8206 #endif
8207
8208 ;
8209 return 0;
8210 }
8211 _ACEOF
8212 if ac_fn_c_try_compile "$LINENO"; then :
8213 ac_cv_c_bigendian=yes
8214 else
8215 ac_cv_c_bigendian=no
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 fi
8221 if test $ac_cv_c_bigendian = unknown; then
8222 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 #include <limits.h>
8226
8227 int
8228 main ()
8229 {
8230 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8231 bogus endian macros
8232 #endif
8233
8234 ;
8235 return 0;
8236 }
8237 _ACEOF
8238 if ac_fn_c_try_compile "$LINENO"; then :
8239 # It does; now see whether it defined to _BIG_ENDIAN or not.
8240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8241 /* end confdefs.h. */
8242 #include <limits.h>
8243
8244 int
8245 main ()
8246 {
8247 #ifndef _BIG_ENDIAN
8248 not big endian
8249 #endif
8250
8251 ;
8252 return 0;
8253 }
8254 _ACEOF
8255 if ac_fn_c_try_compile "$LINENO"; then :
8256 ac_cv_c_bigendian=yes
8257 else
8258 ac_cv_c_bigendian=no
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 fi
8264 if test $ac_cv_c_bigendian = unknown; then
8265 # Compile a test program.
8266 if test "$cross_compiling" = yes; then :
8267 # Try to guess by grepping values from an object file.
8268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8269 /* end confdefs.h. */
8270 short int ascii_mm[] =
8271 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8272 short int ascii_ii[] =
8273 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8274 int use_ascii (int i) {
8275 return ascii_mm[i] + ascii_ii[i];
8276 }
8277 short int ebcdic_ii[] =
8278 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8279 short int ebcdic_mm[] =
8280 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8281 int use_ebcdic (int i) {
8282 return ebcdic_mm[i] + ebcdic_ii[i];
8283 }
8284 extern int foo;
8285
8286 int
8287 main ()
8288 {
8289 return use_ascii (foo) == use_ebcdic (foo);
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 if ac_fn_c_try_compile "$LINENO"; then :
8295 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8296 ac_cv_c_bigendian=yes
8297 fi
8298 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8299 if test "$ac_cv_c_bigendian" = unknown; then
8300 ac_cv_c_bigendian=no
8301 else
8302 # finding both strings is unlikely to happen, but who knows?
8303 ac_cv_c_bigendian=unknown
8304 fi
8305 fi
8306 fi
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 else
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 $ac_includes_default
8312 int
8313 main ()
8314 {
8315
8316 /* Are we little or big endian? From Harbison&Steele. */
8317 union
8318 {
8319 long int l;
8320 char c[sizeof (long int)];
8321 } u;
8322 u.l = 1;
8323 return u.c[sizeof (long int) - 1] == 1;
8324
8325 ;
8326 return 0;
8327 }
8328 _ACEOF
8329 if ac_fn_c_try_run "$LINENO"; then :
8330 ac_cv_c_bigendian=no
8331 else
8332 ac_cv_c_bigendian=yes
8333 fi
8334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8335 conftest.$ac_objext conftest.beam conftest.$ac_ext
8336 fi
8337
8338 fi
8339 fi
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8341 $as_echo "$ac_cv_c_bigendian" >&6; }
8342 case $ac_cv_c_bigendian in #(
8343 yes)
8344 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8345 ;; #(
8346 no)
8347 ;; #(
8348 universal)
8349
8350 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8351
8352 ;; #(
8353 *)
8354 as_fn_error $? "unknown endianness
8355 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8356 esac
8357
8358
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8360 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8361 if ${emacs_cv_attribute_aligned+:} false; then :
8362 $as_echo_n "(cached) " >&6
8363 else
8364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8365 /* end confdefs.h. */
8366 char __attribute__ ((__aligned__ (1 << 3))) c;
8367 int
8368 main ()
8369 {
8370
8371 ;
8372 return 0;
8373 }
8374 _ACEOF
8375 if ac_fn_c_try_compile "$LINENO"; then :
8376 emacs_cv_attribute_aligned=yes
8377 else
8378 emacs_cv_attribute_aligned=no
8379 fi
8380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8381 fi
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8383 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8384 if test $emacs_cv_attribute_aligned = yes; then
8385
8386 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8387
8388 fi
8389
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8391 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8392 set x ${MAKE-make}
8393 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8394 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8395 $as_echo_n "(cached) " >&6
8396 else
8397 cat >conftest.make <<\_ACEOF
8398 SHELL = /bin/sh
8399 all:
8400 @echo '@@@%%%=$(MAKE)=@@@%%%'
8401 _ACEOF
8402 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8403 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8404 *@@@%%%=?*=@@@%%%*)
8405 eval ac_cv_prog_make_${ac_make}_set=yes;;
8406 *)
8407 eval ac_cv_prog_make_${ac_make}_set=no;;
8408 esac
8409 rm -f conftest.make
8410 fi
8411 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8413 $as_echo "yes" >&6; }
8414 SET_MAKE=
8415 else
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8418 SET_MAKE="MAKE=${MAKE-make}"
8419 fi
8420
8421
8422 DEPFLAGS=
8423 MKDEPDIR=":"
8424 deps_frag=deps.mk
8425 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8427 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8428 HAVE_GNU_MAKE=no
8429 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8430 if test "x$testval" != x; then
8431 HAVE_GNU_MAKE=yes
8432 else
8433 ac_enable_autodepend=no
8434 fi
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8436 $as_echo "$HAVE_GNU_MAKE" >&6; }
8437 if test $HAVE_GNU_MAKE = yes; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8439 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8440 SAVE_CFLAGS="$CFLAGS"
8441 CFLAGS="$CFLAGS -MMD -MF deps.d"
8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8443 /* end confdefs.h. */
8444
8445 int
8446 main ()
8447 {
8448
8449 ;
8450 return 0;
8451 }
8452 _ACEOF
8453 if ac_fn_c_try_compile "$LINENO"; then :
8454
8455 else
8456 ac_enable_autodepend=no
8457 fi
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 CFLAGS="$SAVE_CFLAGS"
8460 test -f deps.d || ac_enable_autodepend=no
8461 rm -rf deps.d
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8463 $as_echo "$ac_enable_autodepend" >&6; }
8464 fi
8465 if test $ac_enable_autodepend = yes; then
8466 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8467 ## In parallel builds, another make might create depdir between
8468 ## the first test and mkdir, so stick another test on the end.
8469 ## Or use mkinstalldirs? mkdir -p is not portable.
8470 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8471 deps_frag=autodeps.mk
8472 fi
8473 fi
8474 deps_frag=$srcdir/src/$deps_frag
8475
8476
8477
8478
8479
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8481 $as_echo_n "checking for long file names... " >&6; }
8482 if ${ac_cv_sys_long_file_names+:} false; then :
8483 $as_echo_n "(cached) " >&6
8484 else
8485 ac_cv_sys_long_file_names=yes
8486 # Test for long file names in all the places we know might matter:
8487 # . the current directory, where building will happen
8488 # $prefix/lib where we will be installing things
8489 # $exec_prefix/lib likewise
8490 # $TMPDIR if set, where it might want to write temporary files
8491 # /tmp where it might want to write temporary files
8492 # /var/tmp likewise
8493 # /usr/tmp likewise
8494 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8495 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8496 # in the usual case where exec_prefix is '${prefix}'.
8497 case $ac_dir in #(
8498 . | /* | ?:[\\/]*) ;; #(
8499 *) continue;;
8500 esac
8501 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8502 ac_xdir=$ac_dir/cf$$
8503 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8504 ac_tf1=$ac_xdir/conftest9012345
8505 ac_tf2=$ac_xdir/conftest9012346
8506 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8507 ac_cv_sys_long_file_names=no
8508 rm -f -r "$ac_xdir" 2>/dev/null
8509 test $ac_cv_sys_long_file_names = no && break
8510 done
8511 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8513 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8514 if test $ac_cv_sys_long_file_names = yes; then
8515
8516 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8517
8518 fi
8519
8520
8521 #### Choose a window system.
8522
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8524 $as_echo_n "checking for X... " >&6; }
8525
8526
8527 # Check whether --with-x was given.
8528 if test "${with_x+set}" = set; then :
8529 withval=$with_x;
8530 fi
8531
8532 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8533 if test "x$with_x" = xno; then
8534 # The user explicitly disabled X.
8535 have_x=disabled
8536 else
8537 case $x_includes,$x_libraries in #(
8538 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8539 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8540 $as_echo_n "(cached) " >&6
8541 else
8542 # One or both of the vars are not set, and there is no cached value.
8543 ac_x_includes=no ac_x_libraries=no
8544 rm -f -r conftest.dir
8545 if mkdir conftest.dir; then
8546 cd conftest.dir
8547 cat >Imakefile <<'_ACEOF'
8548 incroot:
8549 @echo incroot='${INCROOT}'
8550 usrlibdir:
8551 @echo usrlibdir='${USRLIBDIR}'
8552 libdir:
8553 @echo libdir='${LIBDIR}'
8554 _ACEOF
8555 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8556 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8557 for ac_var in incroot usrlibdir libdir; do
8558 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8559 done
8560 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8561 for ac_extension in a so sl dylib la dll; do
8562 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8563 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8564 ac_im_usrlibdir=$ac_im_libdir; break
8565 fi
8566 done
8567 # Screen out bogus values from the imake configuration. They are
8568 # bogus both because they are the default anyway, and because
8569 # using them would break gcc on systems where it needs fixed includes.
8570 case $ac_im_incroot in
8571 /usr/include) ac_x_includes= ;;
8572 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8573 esac
8574 case $ac_im_usrlibdir in
8575 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8576 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8577 esac
8578 fi
8579 cd ..
8580 rm -f -r conftest.dir
8581 fi
8582
8583 # Standard set of common directories for X headers.
8584 # Check X11 before X11Rn because it is often a symlink to the current release.
8585 ac_x_header_dirs='
8586 /usr/X11/include
8587 /usr/X11R7/include
8588 /usr/X11R6/include
8589 /usr/X11R5/include
8590 /usr/X11R4/include
8591
8592 /usr/include/X11
8593 /usr/include/X11R7
8594 /usr/include/X11R6
8595 /usr/include/X11R5
8596 /usr/include/X11R4
8597
8598 /usr/local/X11/include
8599 /usr/local/X11R7/include
8600 /usr/local/X11R6/include
8601 /usr/local/X11R5/include
8602 /usr/local/X11R4/include
8603
8604 /usr/local/include/X11
8605 /usr/local/include/X11R7
8606 /usr/local/include/X11R6
8607 /usr/local/include/X11R5
8608 /usr/local/include/X11R4
8609
8610 /usr/X386/include
8611 /usr/x386/include
8612 /usr/XFree86/include/X11
8613
8614 /usr/include
8615 /usr/local/include
8616 /usr/unsupported/include
8617 /usr/athena/include
8618 /usr/local/x11r5/include
8619 /usr/lpp/Xamples/include
8620
8621 /usr/openwin/include
8622 /usr/openwin/share/include'
8623
8624 if test "$ac_x_includes" = no; then
8625 # Guess where to find include files, by looking for Xlib.h.
8626 # First, try using that file with no special directory specified.
8627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8628 /* end confdefs.h. */
8629 #include <X11/Xlib.h>
8630 _ACEOF
8631 if ac_fn_c_try_cpp "$LINENO"; then :
8632 # We can compile using X headers with no special include directory.
8633 ac_x_includes=
8634 else
8635 for ac_dir in $ac_x_header_dirs; do
8636 if test -r "$ac_dir/X11/Xlib.h"; then
8637 ac_x_includes=$ac_dir
8638 break
8639 fi
8640 done
8641 fi
8642 rm -f conftest.err conftest.i conftest.$ac_ext
8643 fi # $ac_x_includes = no
8644
8645 if test "$ac_x_libraries" = no; then
8646 # Check for the libraries.
8647 # See if we find them without any special options.
8648 # Don't add to $LIBS permanently.
8649 ac_save_LIBS=$LIBS
8650 LIBS="-lX11 $LIBS"
8651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8652 /* end confdefs.h. */
8653 #include <X11/Xlib.h>
8654 int
8655 main ()
8656 {
8657 XrmInitialize ()
8658 ;
8659 return 0;
8660 }
8661 _ACEOF
8662 if ac_fn_c_try_link "$LINENO"; then :
8663 LIBS=$ac_save_LIBS
8664 # We can link X programs with no special library path.
8665 ac_x_libraries=
8666 else
8667 LIBS=$ac_save_LIBS
8668 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8669 do
8670 # Don't even attempt the hair of trying to link an X program!
8671 for ac_extension in a so sl dylib la dll; do
8672 if test -r "$ac_dir/libX11.$ac_extension"; then
8673 ac_x_libraries=$ac_dir
8674 break 2
8675 fi
8676 done
8677 done
8678 fi
8679 rm -f core conftest.err conftest.$ac_objext \
8680 conftest$ac_exeext conftest.$ac_ext
8681 fi # $ac_x_libraries = no
8682
8683 case $ac_x_includes,$ac_x_libraries in #(
8684 no,* | *,no | *\'*)
8685 # Didn't find X, or a directory has "'" in its name.
8686 ac_cv_have_x="have_x=no";; #(
8687 *)
8688 # Record where we found X for the cache.
8689 ac_cv_have_x="have_x=yes\
8690 ac_x_includes='$ac_x_includes'\
8691 ac_x_libraries='$ac_x_libraries'"
8692 esac
8693 fi
8694 ;; #(
8695 *) have_x=yes;;
8696 esac
8697 eval "$ac_cv_have_x"
8698 fi # $with_x != no
8699
8700 if test "$have_x" != yes; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8702 $as_echo "$have_x" >&6; }
8703 no_x=yes
8704 else
8705 # If each of the values was on the command line, it overrides each guess.
8706 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8707 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8708 # Update the cache value to reflect the command line values.
8709 ac_cv_have_x="have_x=yes\
8710 ac_x_includes='$x_includes'\
8711 ac_x_libraries='$x_libraries'"
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8713 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8714 fi
8715
8716 if test "$no_x" = yes; then
8717 window_system=none
8718 else
8719 window_system=x11
8720 fi
8721
8722 ## Workaround for bug in autoconf <= 2.62.
8723 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8724 ## No need to do anything special for these standard directories.
8725 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8726
8727 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8728
8729 fi
8730
8731 LD_SWITCH_X_SITE_AUX=
8732 LD_SWITCH_X_SITE_AUX_RPATH=
8733 if test "${x_libraries}" != NONE; then
8734 if test -n "${x_libraries}"; then
8735 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8736 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8737 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8738 fi
8739 x_default_search_path=""
8740 x_search_path=${x_libraries}
8741 if test -z "${x_search_path}"; then
8742 x_search_path=/usr/lib
8743 fi
8744 for x_library in `echo ${x_search_path}: | \
8745 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8746 x_search_path="\
8747 ${x_library}/X11/%L/%T/%N%C%S:\
8748 ${x_library}/X11/%l/%T/%N%C%S:\
8749 ${x_library}/X11/%T/%N%C%S:\
8750 ${x_library}/X11/%L/%T/%N%S:\
8751 ${x_library}/X11/%l/%T/%N%S:\
8752 ${x_library}/X11/%T/%N%S"
8753 if test x"${x_default_search_path}" = x; then
8754 x_default_search_path=${x_search_path}
8755 else
8756 x_default_search_path="${x_search_path}:${x_default_search_path}"
8757 fi
8758 done
8759 fi
8760
8761
8762
8763 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8764 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8765 fi
8766
8767 if test x"${x_includes}" = x; then
8768 bitmapdir=/usr/include/X11/bitmaps
8769 else
8770 # accumulate include directories that have X11 bitmap subdirectories
8771 bmd_acc="dummyval"
8772 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8773 if test -d "${bmd}/X11/bitmaps"; then
8774 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8775 fi
8776 if test -d "${bmd}/bitmaps"; then
8777 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8778 fi
8779 done
8780 if test ${bmd_acc} != "dummyval"; then
8781 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8782 fi
8783 fi
8784
8785 HAVE_NS=no
8786 NS_IMPL_COCOA=no
8787 NS_IMPL_GNUSTEP=no
8788 tmp_CPPFLAGS="$CPPFLAGS"
8789 tmp_CFLAGS="$CFLAGS"
8790 CPPFLAGS="$CPPFLAGS -x objective-c"
8791 CFLAGS="$CFLAGS -x objective-c"
8792 TEMACS_LDFLAGS2="\${LDFLAGS}"
8793 if test "${with_ns}" != no; then
8794 if test "${opsys}" = darwin; then
8795 NS_IMPL_COCOA=yes
8796 ns_appdir=`pwd`/nextstep/Emacs.app
8797 ns_appbindir=${ns_appdir}/Contents/MacOS/
8798 ns_appresdir=${ns_appdir}/Contents/Resources
8799 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8800 elif test -f $GNUSTEP_CONFIG_FILE; then
8801 NS_IMPL_GNUSTEP=yes
8802 ns_appdir=`pwd`/nextstep/Emacs.app
8803 ns_appbindir=${ns_appdir}/
8804 ns_appresdir=${ns_appdir}/Resources
8805 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8806 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8807 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8808 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8809 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8810 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8811 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8812 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8813 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8814 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8815 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8816 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8817 LIB_STANDARD=
8818 START_FILES=
8819 TEMACS_LDFLAGS2=
8820 fi
8821 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8822 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8823 HAVE_NS=yes
8824 else
8825 as_fn_error $? "\`--with-ns' was specified, but the include
8826 files are missing or cannot be compiled." "$LINENO" 5
8827 fi
8828
8829
8830 NS_HAVE_NSINTEGER=yes
8831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8832 /* end confdefs.h. */
8833 #include <Foundation/NSObjCRuntime.h>
8834 int
8835 main ()
8836 {
8837 NSInteger i;
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 if ac_fn_c_try_compile "$LINENO"; then :
8843 ns_have_nsinteger=yes
8844 else
8845 ns_have_nsinteger=no
8846 fi
8847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8848 if test $ns_have_nsinteger = no; then
8849 NS_HAVE_NSINTEGER=no
8850 fi
8851 fi
8852
8853
8854 ns_frag=/dev/null
8855 NS_OBJ=
8856 NS_SUPPORT=
8857 if test "${HAVE_NS}" = yes; then
8858 window_system=nextstep
8859 with_xft=no
8860 # set up packaging dirs
8861 exec_prefix=${ns_appbindir}
8862 libexecdir=${ns_appbindir}/libexec
8863 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8864 prefix=${ns_appresdir}
8865 fi
8866 ns_frag=$srcdir/src/ns.mk
8867 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8868 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8869 fi
8870 CFLAGS="$tmp_CFLAGS"
8871 CPPFLAGS="$tmp_CPPFLAGS"
8872
8873
8874
8875
8876
8877 case "${window_system}" in
8878 x11 )
8879 HAVE_X_WINDOWS=yes
8880 HAVE_X11=yes
8881 case "${with_x_toolkit}" in
8882 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8883 motif ) USE_X_TOOLKIT=MOTIF ;;
8884 gtk ) with_gtk=yes
8885 USE_X_TOOLKIT=none ;;
8886 gtk3 ) with_gtk3=yes
8887 USE_X_TOOLKIT=none ;;
8888 no ) USE_X_TOOLKIT=none ;;
8889 * ) USE_X_TOOLKIT=maybe ;;
8890 esac
8891 ;;
8892 nextstep | none )
8893 HAVE_X_WINDOWS=no
8894 HAVE_X11=no
8895 USE_X_TOOLKIT=none
8896 ;;
8897 esac
8898
8899 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8900 # Extract the first word of "X", so it can be a program name with args.
8901 set dummy X; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 if test -n "$HAVE_XSERVER"; then
8908 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8909 else
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911 for as_dir in $PATH
8912 do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8917 ac_cv_prog_HAVE_XSERVER="true"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919 break 2
8920 fi
8921 done
8922 done
8923 IFS=$as_save_IFS
8924
8925 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8926 fi
8927 fi
8928 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8929 if test -n "$HAVE_XSERVER"; then
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8931 $as_echo "$HAVE_XSERVER" >&6; }
8932 else
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 $as_echo "no" >&6; }
8935 fi
8936
8937
8938 if test "$HAVE_XSERVER" = true ||
8939 test -n "$DISPLAY" ||
8940 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8941 as_fn_error $? "You seem to be running X, but no X development libraries
8942 were found. You should install the relevant development files for X
8943 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8944 sure you have development files for image handling, i.e.
8945 tiff, gif, jpeg, png and xpm.
8946 If you are sure you want Emacs compiled without X window support, pass
8947 --without-x
8948 to configure." "$LINENO" 5
8949 fi
8950 fi
8951
8952 ### If we're using X11, we should use the X menu package.
8953 HAVE_MENUS=no
8954 case ${HAVE_X11} in
8955 yes ) HAVE_MENUS=yes ;;
8956 esac
8957
8958 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8959 # Assume not, until told otherwise.
8960 GNU_MALLOC=yes
8961 doug_lea_malloc=yes
8962 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8963 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
8964
8965 else
8966 doug_lea_malloc=no
8967 fi
8968
8969 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8970 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
8971
8972 else
8973 doug_lea_malloc=no
8974 fi
8975
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8977 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8978 if ${emacs_cv_var___after_morecore_hook+:} false; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983 extern void (* __after_morecore_hook)();
8984 int
8985 main ()
8986 {
8987 __after_morecore_hook = 0
8988 ;
8989 return 0;
8990 }
8991 _ACEOF
8992 if ac_fn_c_try_link "$LINENO"; then :
8993 emacs_cv_var___after_morecore_hook=yes
8994 else
8995 emacs_cv_var___after_morecore_hook=no
8996 fi
8997 rm -f core conftest.err conftest.$ac_objext \
8998 conftest$ac_exeext conftest.$ac_ext
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9001 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9002 if test $emacs_cv_var___after_morecore_hook = no; then
9003 doug_lea_malloc=no
9004 fi
9005
9006
9007 system_malloc=no
9008 case "$opsys" in
9009 ## darwin ld insists on the use of malloc routines in the System framework.
9010 darwin|sol2-10) system_malloc=yes ;;
9011 esac
9012
9013 if test "${system_malloc}" = "yes"; then
9014
9015 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9016
9017 GNU_MALLOC=no
9018 GNU_MALLOC_reason="
9019 (The GNU allocators don't work with this system configuration.)"
9020 GMALLOC_OBJ=
9021 VMLIMIT_OBJ=
9022 else
9023 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9024 VMLIMIT_OBJ=vm-limit.o
9025 fi
9026
9027
9028
9029 if test "$doug_lea_malloc" = "yes" ; then
9030 if test "$GNU_MALLOC" = yes ; then
9031 GNU_MALLOC_reason="
9032 (Using Doug Lea's new malloc from the GNU C Library.)"
9033 fi
9034
9035 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9036
9037
9038 ## Use mmap directly for allocating larger buffers.
9039 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9040 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9041 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9042 case "$opsys" in
9043 gnu*) REL_ALLOC=no ;;
9044 esac
9045 fi
9046
9047 if test x"${REL_ALLOC}" = x; then
9048 REL_ALLOC=${GNU_MALLOC}
9049 fi
9050
9051 use_mmap_for_buffers=no
9052 case "$opsys" in
9053 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9054 esac
9055
9056
9057
9058
9059 for ac_header in $ac_header_list
9060 do :
9061 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9062 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9063 "
9064 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9065 cat >>confdefs.h <<_ACEOF
9066 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9067 _ACEOF
9068
9069 fi
9070
9071 done
9072
9073
9074
9075
9076
9077
9078
9079
9080 for ac_func in getpagesize
9081 do :
9082 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9083 if test "x$ac_cv_func_getpagesize" = xyes; then :
9084 cat >>confdefs.h <<_ACEOF
9085 #define HAVE_GETPAGESIZE 1
9086 _ACEOF
9087
9088 fi
9089 done
9090
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9092 $as_echo_n "checking for working mmap... " >&6; }
9093 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 if test "$cross_compiling" = yes; then :
9097 ac_cv_func_mmap_fixed_mapped=no
9098 else
9099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9101 $ac_includes_default
9102 /* malloc might have been renamed as rpl_malloc. */
9103 #undef malloc
9104
9105 /* Thanks to Mike Haertel and Jim Avera for this test.
9106 Here is a matrix of mmap possibilities:
9107 mmap private not fixed
9108 mmap private fixed at somewhere currently unmapped
9109 mmap private fixed at somewhere already mapped
9110 mmap shared not fixed
9111 mmap shared fixed at somewhere currently unmapped
9112 mmap shared fixed at somewhere already mapped
9113 For private mappings, we should verify that changes cannot be read()
9114 back from the file, nor mmap's back from the file at a different
9115 address. (There have been systems where private was not correctly
9116 implemented like the infamous i386 svr4.0, and systems where the
9117 VM page cache was not coherent with the file system buffer cache
9118 like early versions of FreeBSD and possibly contemporary NetBSD.)
9119 For shared mappings, we should conversely verify that changes get
9120 propagated back to all the places they're supposed to be.
9121
9122 Grep wants private fixed already mapped.
9123 The main things grep needs to know about mmap are:
9124 * does it exist and is it safe to write into the mmap'd area
9125 * how to use it (BSD variants) */
9126
9127 #include <fcntl.h>
9128 #include <sys/mman.h>
9129
9130 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9131 char *malloc ();
9132 #endif
9133
9134 /* This mess was copied from the GNU getpagesize.h. */
9135 #ifndef HAVE_GETPAGESIZE
9136 # ifdef _SC_PAGESIZE
9137 # define getpagesize() sysconf(_SC_PAGESIZE)
9138 # else /* no _SC_PAGESIZE */
9139 # ifdef HAVE_SYS_PARAM_H
9140 # include <sys/param.h>
9141 # ifdef EXEC_PAGESIZE
9142 # define getpagesize() EXEC_PAGESIZE
9143 # else /* no EXEC_PAGESIZE */
9144 # ifdef NBPG
9145 # define getpagesize() NBPG * CLSIZE
9146 # ifndef CLSIZE
9147 # define CLSIZE 1
9148 # endif /* no CLSIZE */
9149 # else /* no NBPG */
9150 # ifdef NBPC
9151 # define getpagesize() NBPC
9152 # else /* no NBPC */
9153 # ifdef PAGESIZE
9154 # define getpagesize() PAGESIZE
9155 # endif /* PAGESIZE */
9156 # endif /* no NBPC */
9157 # endif /* no NBPG */
9158 # endif /* no EXEC_PAGESIZE */
9159 # else /* no HAVE_SYS_PARAM_H */
9160 # define getpagesize() 8192 /* punt totally */
9161 # endif /* no HAVE_SYS_PARAM_H */
9162 # endif /* no _SC_PAGESIZE */
9163
9164 #endif /* no HAVE_GETPAGESIZE */
9165
9166 int
9167 main ()
9168 {
9169 char *data, *data2, *data3;
9170 const char *cdata2;
9171 int i, pagesize;
9172 int fd, fd2;
9173
9174 pagesize = getpagesize ();
9175
9176 /* First, make a file with some known garbage in it. */
9177 data = (char *) malloc (pagesize);
9178 if (!data)
9179 return 1;
9180 for (i = 0; i < pagesize; ++i)
9181 *(data + i) = rand ();
9182 umask (0);
9183 fd = creat ("conftest.mmap", 0600);
9184 if (fd < 0)
9185 return 2;
9186 if (write (fd, data, pagesize) != pagesize)
9187 return 3;
9188 close (fd);
9189
9190 /* Next, check that the tail of a page is zero-filled. File must have
9191 non-zero length, otherwise we risk SIGBUS for entire page. */
9192 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9193 if (fd2 < 0)
9194 return 4;
9195 cdata2 = "";
9196 if (write (fd2, cdata2, 1) != 1)
9197 return 5;
9198 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9199 if (data2 == MAP_FAILED)
9200 return 6;
9201 for (i = 0; i < pagesize; ++i)
9202 if (*(data2 + i))
9203 return 7;
9204 close (fd2);
9205 if (munmap (data2, pagesize))
9206 return 8;
9207
9208 /* Next, try to mmap the file at a fixed address which already has
9209 something else allocated at it. If we can, also make sure that
9210 we see the same garbage. */
9211 fd = open ("conftest.mmap", O_RDWR);
9212 if (fd < 0)
9213 return 9;
9214 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9215 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9216 return 10;
9217 for (i = 0; i < pagesize; ++i)
9218 if (*(data + i) != *(data2 + i))
9219 return 11;
9220
9221 /* Finally, make sure that changes to the mapped area do not
9222 percolate back to the file as seen by read(). (This is a bug on
9223 some variants of i386 svr4.0.) */
9224 for (i = 0; i < pagesize; ++i)
9225 *(data2 + i) = *(data2 + i) + 1;
9226 data3 = (char *) malloc (pagesize);
9227 if (!data3)
9228 return 12;
9229 if (read (fd, data3, pagesize) != pagesize)
9230 return 13;
9231 for (i = 0; i < pagesize; ++i)
9232 if (*(data + i) != *(data3 + i))
9233 return 14;
9234 close (fd);
9235 return 0;
9236 }
9237 _ACEOF
9238 if ac_fn_c_try_run "$LINENO"; then :
9239 ac_cv_func_mmap_fixed_mapped=yes
9240 else
9241 ac_cv_func_mmap_fixed_mapped=no
9242 fi
9243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9244 conftest.$ac_objext conftest.beam conftest.$ac_ext
9245 fi
9246
9247 fi
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9249 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9250 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9251
9252 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9253
9254 fi
9255 rm -f conftest.mmap conftest.txt
9256
9257 if test $use_mmap_for_buffers = yes; then
9258
9259 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9260
9261 REL_ALLOC=no
9262 fi
9263
9264 LIBS="$LIBS_SYSTEM $LIBS"
9265
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9267 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9268 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9269 $as_echo_n "(cached) " >&6
9270 else
9271 ac_check_lib_save_LIBS=$LIBS
9272 LIBS="-ldnet $LIBS"
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275
9276 /* Override any GCC internal prototype to avoid an error.
9277 Use char because int might match the return type of a GCC
9278 builtin and then its argument prototype would still apply. */
9279 #ifdef __cplusplus
9280 extern "C"
9281 #endif
9282 char dnet_ntoa ();
9283 int
9284 main ()
9285 {
9286 return dnet_ntoa ();
9287 ;
9288 return 0;
9289 }
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"; then :
9292 ac_cv_lib_dnet_dnet_ntoa=yes
9293 else
9294 ac_cv_lib_dnet_dnet_ntoa=no
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext \
9297 conftest$ac_exeext conftest.$ac_ext
9298 LIBS=$ac_check_lib_save_LIBS
9299 fi
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9301 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9302 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9303 cat >>confdefs.h <<_ACEOF
9304 #define HAVE_LIBDNET 1
9305 _ACEOF
9306
9307 LIBS="-ldnet $LIBS"
9308
9309 fi
9310
9311
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9313 $as_echo_n "checking for main in -lXbsd... " >&6; }
9314 if ${ac_cv_lib_Xbsd_main+:} false; then :
9315 $as_echo_n "(cached) " >&6
9316 else
9317 ac_check_lib_save_LIBS=$LIBS
9318 LIBS="-lXbsd $LIBS"
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321
9322
9323 int
9324 main ()
9325 {
9326 return main ();
9327 ;
9328 return 0;
9329 }
9330 _ACEOF
9331 if ac_fn_c_try_link "$LINENO"; then :
9332 ac_cv_lib_Xbsd_main=yes
9333 else
9334 ac_cv_lib_Xbsd_main=no
9335 fi
9336 rm -f core conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338 LIBS=$ac_check_lib_save_LIBS
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9341 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9342 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9343 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9344 fi
9345
9346
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9348 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9349 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9350 $as_echo_n "(cached) " >&6
9351 else
9352 ac_check_lib_save_LIBS=$LIBS
9353 LIBS="-lpthreads $LIBS"
9354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9355 /* end confdefs.h. */
9356
9357 /* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
9360 #ifdef __cplusplus
9361 extern "C"
9362 #endif
9363 char cma_open ();
9364 int
9365 main ()
9366 {
9367 return cma_open ();
9368 ;
9369 return 0;
9370 }
9371 _ACEOF
9372 if ac_fn_c_try_link "$LINENO"; then :
9373 ac_cv_lib_pthreads_cma_open=yes
9374 else
9375 ac_cv_lib_pthreads_cma_open=no
9376 fi
9377 rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9380 fi
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9382 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9383 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9384 cat >>confdefs.h <<_ACEOF
9385 #define HAVE_LIBPTHREADS 1
9386 _ACEOF
9387
9388 LIBS="-lpthreads $LIBS"
9389
9390 fi
9391
9392
9393 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9394 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9395 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9396 ## added to LIBS in configure would never contain the pthreads part,
9397 ## but the value used in Makefiles might. FIXME?
9398 ##
9399 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9400 ## be harmless on older versions of X where it happens to exist.
9401 test "$opsys" = "aix4-2" && \
9402 test $ac_cv_lib_pthreads_cma_open = yes && \
9403 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9404
9405
9406 case ${host_os} in
9407 aix*)
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9409 $as_echo_n "checking for -bbigtoc option... " >&6; }
9410 if ${gdb_cv_bigtoc+:} false; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413
9414 case $GCC in
9415 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9416 *) gdb_cv_bigtoc=-bbigtoc ;;
9417 esac
9418
9419 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9421 /* end confdefs.h. */
9422
9423 int
9424 main ()
9425 {
9426 int i;
9427 ;
9428 return 0;
9429 }
9430 _ACEOF
9431 if ac_fn_c_try_link "$LINENO"; then :
9432
9433 else
9434 gdb_cv_bigtoc=
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext \
9437 conftest$ac_exeext conftest.$ac_ext
9438
9439 fi
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9441 $as_echo "$gdb_cv_bigtoc" >&6; }
9442 ;;
9443 esac
9444
9445 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9446 # used for the tests that follow. We set them back to REAL_CFLAGS and
9447 # REAL_CPPFLAGS later on.
9448
9449 REAL_CFLAGS="$CFLAGS"
9450 REAL_CPPFLAGS="$CPPFLAGS"
9451
9452 if test "${HAVE_X11}" = "yes"; then
9453 DEFS="$C_SWITCH_X_SITE $DEFS"
9454 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9455 LIBS="-lX11 $LIBS"
9456 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9457 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9458
9459 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9460 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9461 # but it's more convenient here to set LD_RUN_PATH
9462 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9463 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9464 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9465 export LD_RUN_PATH
9466 fi
9467
9468 if test "${opsys}" = "gnu-linux"; then
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9470 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473
9474 int
9475 main ()
9476 {
9477 XOpenDisplay ("foo");
9478 ;
9479 return 0;
9480 }
9481 _ACEOF
9482 if ac_fn_c_try_link "$LINENO"; then :
9483 xlinux_first_failure=no
9484 else
9485 xlinux_first_failure=yes
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489 if test "${xlinux_first_failure}" = "yes"; then
9490 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9491 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9492 OLD_CPPFLAGS="$CPPFLAGS"
9493 OLD_LIBS="$LIBS"
9494 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9495 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9496 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9497 LIBS="$LIBS -b i486-linuxaout"
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9500
9501 int
9502 main ()
9503 {
9504 XOpenDisplay ("foo");
9505 ;
9506 return 0;
9507 }
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 xlinux_second_failure=no
9511 else
9512 xlinux_second_failure=yes
9513 fi
9514 rm -f core conftest.err conftest.$ac_objext \
9515 conftest$ac_exeext conftest.$ac_ext
9516 if test "${xlinux_second_failure}" = "yes"; then
9517 # If we get the same failure with -b, there is no use adding -b.
9518 # So take it out. This plays safe.
9519 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9520 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9521 CPPFLAGS="$OLD_CPPFLAGS"
9522 LIBS="$OLD_LIBS"
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9525 else
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9527 $as_echo "yes" >&6; }
9528 fi
9529 else
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 $as_echo "no" >&6; }
9532 fi
9533 fi
9534
9535 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9536 # header files included from there.
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9538 $as_echo_n "checking for Xkb... " >&6; }
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 #include <X11/Xlib.h>
9542 #include <X11/XKBlib.h>
9543 int
9544 main ()
9545 {
9546 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9547 ;
9548 return 0;
9549 }
9550 _ACEOF
9551 if ac_fn_c_try_link "$LINENO"; then :
9552 emacs_xkb=yes
9553 else
9554 emacs_xkb=no
9555 fi
9556 rm -f core conftest.err conftest.$ac_objext \
9557 conftest$ac_exeext conftest.$ac_ext
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9559 $as_echo "$emacs_xkb" >&6; }
9560 if test $emacs_xkb = yes; then
9561
9562 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9563
9564 fi
9565
9566 for ac_func in XrmSetDatabase XScreenResourceString \
9567 XScreenNumberOfScreen XSetWMProtocols
9568 do :
9569 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9570 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9571 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9572 cat >>confdefs.h <<_ACEOF
9573 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9574 _ACEOF
9575
9576 fi
9577 done
9578
9579 fi
9580
9581 if test "${window_system}" = "x11"; then
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9583 $as_echo_n "checking X11 version 6... " >&6; }
9584 if ${emacs_cv_x11_version_6+:} false; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 #include <X11/Xlib.h>
9590 int
9591 main ()
9592 {
9593 #if XlibSpecificationRelease < 6
9594 fail;
9595 #endif
9596
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_link "$LINENO"; then :
9602 emacs_cv_x11_version_6=yes
9603 else
9604 emacs_cv_x11_version_6=no
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 fi
9609
9610 if test $emacs_cv_x11_version_6 = yes; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9612 $as_echo "6 or newer" >&6; }
9613
9614 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9615
9616
9617 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9618
9619 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9620 ## XIM support.
9621 case "$opsys" in
9622 sol2-*) : ;;
9623 *)
9624 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9625
9626 ;;
9627 esac
9628 else
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9630 $as_echo "before 6" >&6; }
9631 fi
9632 fi
9633
9634
9635 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9636 HAVE_RSVG=no
9637 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9638 if test "${with_rsvg}" != "no"; then
9639 RSVG_REQUIRED=2.11.0
9640 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9641
9642
9643 succeeded=no
9644
9645 # Extract the first word of "pkg-config", so it can be a program name with args.
9646 set dummy pkg-config; ac_word=$2
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9648 $as_echo_n "checking for $ac_word... " >&6; }
9649 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9650 $as_echo_n "(cached) " >&6
9651 else
9652 case $PKG_CONFIG in
9653 [\\/]* | ?:[\\/]*)
9654 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9655 ;;
9656 *)
9657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658 for as_dir in $PATH
9659 do
9660 IFS=$as_save_IFS
9661 test -z "$as_dir" && as_dir=.
9662 for ac_exec_ext in '' $ac_executable_extensions; do
9663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9664 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 break 2
9667 fi
9668 done
9669 done
9670 IFS=$as_save_IFS
9671
9672 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9673 ;;
9674 esac
9675 fi
9676 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9677 if test -n "$PKG_CONFIG"; then
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9679 $as_echo "$PKG_CONFIG" >&6; }
9680 else
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9682 $as_echo "no" >&6; }
9683 fi
9684
9685
9686
9687 if test "$PKG_CONFIG" = "no" ; then
9688 :
9689 else
9690 PKG_CONFIG_MIN_VERSION=0.9.0
9691 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9693 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9694
9695 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9697 $as_echo "yes" >&6; }
9698 succeeded=yes
9699
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9701 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9702 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9704 $as_echo "$RSVG_CFLAGS" >&6; }
9705
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9707 $as_echo_n "checking RSVG_LIBS... " >&6; }
9708 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9710 $as_echo "$RSVG_LIBS" >&6; }
9711 else
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9714 RSVG_CFLAGS=""
9715 RSVG_LIBS=""
9716 ## If we have a custom action on failure, don't print errors, but
9717 ## do set a variable so people can do so.
9718 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9719
9720 fi
9721
9722
9723
9724 else
9725 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9726 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9727 fi
9728 fi
9729
9730 if test $succeeded = yes; then
9731 HAVE_RSVG=yes
9732 else
9733 :
9734 fi
9735
9736
9737
9738
9739 if test $HAVE_RSVG = yes; then
9740
9741 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9742
9743 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9744 LIBS="$RSVG_LIBS $LIBS"
9745 fi
9746 fi
9747 fi
9748
9749 HAVE_IMAGEMAGICK=no
9750 if test "${HAVE_X11}" = "yes"; then
9751 if test "${with_imagemagick}" != "no"; then
9752 IMAGEMAGICK_MODULE="Wand"
9753
9754 succeeded=no
9755
9756 # Extract the first word of "pkg-config", so it can be a program name with args.
9757 set dummy pkg-config; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 case $PKG_CONFIG in
9764 [\\/]* | ?:[\\/]*)
9765 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9766 ;;
9767 *)
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9770 do
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9778 fi
9779 done
9780 done
9781 IFS=$as_save_IFS
9782
9783 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9784 ;;
9785 esac
9786 fi
9787 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9788 if test -n "$PKG_CONFIG"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9790 $as_echo "$PKG_CONFIG" >&6; }
9791 else
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9793 $as_echo "no" >&6; }
9794 fi
9795
9796
9797
9798 if test "$PKG_CONFIG" = "no" ; then
9799 :
9800 else
9801 PKG_CONFIG_MIN_VERSION=0.9.0
9802 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9804 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9805
9806 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9808 $as_echo "yes" >&6; }
9809 succeeded=yes
9810
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9812 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9813 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9815 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9816
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9818 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9819 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9821 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9822 else
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9824 $as_echo "no" >&6; }
9825 IMAGEMAGICK_CFLAGS=""
9826 IMAGEMAGICK_LIBS=""
9827 ## If we have a custom action on failure, don't print errors, but
9828 ## do set a variable so people can do so.
9829 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9830
9831 fi
9832
9833
9834
9835 else
9836 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9837 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9838 fi
9839 fi
9840
9841 if test $succeeded = yes; then
9842 HAVE_IMAGEMAGICK=yes
9843 else
9844 :
9845 fi
9846
9847
9848
9849
9850 if test $HAVE_IMAGEMAGICK = yes; then
9851
9852 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9853
9854 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9855 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9856 for ac_func in MagickExportImagePixels
9857 do :
9858 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9859 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
9860 cat >>confdefs.h <<_ACEOF
9861 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9862 _ACEOF
9863
9864 fi
9865 done
9866
9867 fi
9868 fi
9869 fi
9870
9871
9872 HAVE_GTK=no
9873 if test "${with_gtk3}" = "yes"; then
9874 GLIB_REQUIRED=2.6
9875 GTK_REQUIRED=2.90
9876 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9877
9878
9879 succeeded=no
9880
9881 # Extract the first word of "pkg-config", so it can be a program name with args.
9882 set dummy pkg-config; ac_word=$2
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 $as_echo_n "checking for $ac_word... " >&6; }
9885 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 case $PKG_CONFIG in
9889 [\\/]* | ?:[\\/]*)
9890 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9891 ;;
9892 *)
9893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9894 for as_dir in $PATH
9895 do
9896 IFS=$as_save_IFS
9897 test -z "$as_dir" && as_dir=.
9898 for ac_exec_ext in '' $ac_executable_extensions; do
9899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9900 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9902 break 2
9903 fi
9904 done
9905 done
9906 IFS=$as_save_IFS
9907
9908 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9909 ;;
9910 esac
9911 fi
9912 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9913 if test -n "$PKG_CONFIG"; then
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9915 $as_echo "$PKG_CONFIG" >&6; }
9916 else
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9918 $as_echo "no" >&6; }
9919 fi
9920
9921
9922
9923 if test "$PKG_CONFIG" = "no" ; then
9924 pkg_check_gtk=no
9925 else
9926 PKG_CONFIG_MIN_VERSION=0.9.0
9927 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9929 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9930
9931 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9933 $as_echo "yes" >&6; }
9934 succeeded=yes
9935
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9937 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9938 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9940 $as_echo "$GTK_CFLAGS" >&6; }
9941
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9943 $as_echo_n "checking GTK_LIBS... " >&6; }
9944 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9946 $as_echo "$GTK_LIBS" >&6; }
9947 else
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9950 GTK_CFLAGS=""
9951 GTK_LIBS=""
9952 ## If we have a custom action on failure, don't print errors, but
9953 ## do set a variable so people can do so.
9954 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9955
9956 fi
9957
9958
9959
9960 else
9961 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9962 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9963 fi
9964 fi
9965
9966 if test $succeeded = yes; then
9967 pkg_check_gtk=yes
9968 else
9969 pkg_check_gtk=no
9970 fi
9971
9972 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9973 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9974 fi
9975 fi
9976
9977 if test "$pkg_check_gtk" != "yes"; then
9978 HAVE_GTK=no
9979 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9980 GLIB_REQUIRED=2.6
9981 GTK_REQUIRED=2.6
9982 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9983
9984
9985 succeeded=no
9986
9987 # Extract the first word of "pkg-config", so it can be a program name with args.
9988 set dummy pkg-config; ac_word=$2
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9990 $as_echo_n "checking for $ac_word... " >&6; }
9991 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9992 $as_echo_n "(cached) " >&6
9993 else
9994 case $PKG_CONFIG in
9995 [\\/]* | ?:[\\/]*)
9996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9997 ;;
9998 *)
9999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000 for as_dir in $PATH
10001 do
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 break 2
10009 fi
10010 done
10011 done
10012 IFS=$as_save_IFS
10013
10014 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10015 ;;
10016 esac
10017 fi
10018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10019 if test -n "$PKG_CONFIG"; then
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10021 $as_echo "$PKG_CONFIG" >&6; }
10022 else
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10024 $as_echo "no" >&6; }
10025 fi
10026
10027
10028
10029 if test "$PKG_CONFIG" = "no" ; then
10030 pkg_check_gtk=no
10031 else
10032 PKG_CONFIG_MIN_VERSION=0.9.0
10033 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10035 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10036
10037 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10039 $as_echo "yes" >&6; }
10040 succeeded=yes
10041
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10043 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10044 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10046 $as_echo "$GTK_CFLAGS" >&6; }
10047
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10049 $as_echo_n "checking GTK_LIBS... " >&6; }
10050 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10052 $as_echo "$GTK_LIBS" >&6; }
10053 else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10056 GTK_CFLAGS=""
10057 GTK_LIBS=""
10058 ## If we have a custom action on failure, don't print errors, but
10059 ## do set a variable so people can do so.
10060 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10061
10062 fi
10063
10064
10065
10066 else
10067 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10068 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10069 fi
10070 fi
10071
10072 if test $succeeded = yes; then
10073 pkg_check_gtk=yes
10074 else
10075 pkg_check_gtk=no
10076 fi
10077
10078 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10079 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10080 fi
10081 fi
10082 fi
10083
10084 GTK_OBJ=
10085 if test x"$pkg_check_gtk" = xyes; then
10086
10087
10088
10089 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10090 CFLAGS="$CFLAGS $GTK_CFLAGS"
10091 LIBS="$GTK_LIBS $LIBS"
10092 GTK_COMPILES=no
10093 for ac_func in gtk_main
10094 do :
10095 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10096 if test "x$ac_cv_func_gtk_main" = xyes; then :
10097 cat >>confdefs.h <<_ACEOF
10098 #define HAVE_GTK_MAIN 1
10099 _ACEOF
10100 GTK_COMPILES=yes
10101 fi
10102 done
10103
10104 if test "${GTK_COMPILES}" != "yes"; then
10105 if test "$USE_X_TOOLKIT" != "maybe"; then
10106 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10107 fi
10108 else
10109 HAVE_GTK=yes
10110
10111 $as_echo "#define USE_GTK 1" >>confdefs.h
10112
10113 GTK_OBJ=gtkutil.o
10114 USE_X_TOOLKIT=none
10115 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10116 :
10117 else
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10119 closing open displays. This is no problem if you just use
10120 one display, but if you use more than one and close one of them
10121 Emacs may crash." >&5
10122 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10123 closing open displays. This is no problem if you just use
10124 one display, but if you use more than one and close one of them
10125 Emacs may crash." >&2;}
10126 sleep 3
10127 fi
10128 fi
10129
10130 fi
10131
10132
10133
10134 if test "${HAVE_GTK}" = "yes"; then
10135
10136 if test "$with_toolkit_scroll_bars" != no; then
10137 with_toolkit_scroll_bars=yes
10138 fi
10139
10140 HAVE_GTK_FILE_SELECTION=no
10141 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10142 #include <gtk/gtk.h>
10143 "
10144 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10145 HAVE_GTK_FILE_SELECTION=yes
10146 else
10147 HAVE_GTK_FILE_SELECTION=no
10148 fi
10149
10150 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10151 for ac_func in gtk_file_selection_new
10152 do :
10153 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10154 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10155 cat >>confdefs.h <<_ACEOF
10156 #define HAVE_GTK_FILE_SELECTION_NEW 1
10157 _ACEOF
10158
10159 fi
10160 done
10161
10162 fi
10163
10164 HAVE_GTK_AND_PTHREAD=no
10165 for ac_header in pthread.h
10166 do :
10167 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10168 if test "x$ac_cv_header_pthread_h" = xyes; then :
10169 cat >>confdefs.h <<_ACEOF
10170 #define HAVE_PTHREAD_H 1
10171 _ACEOF
10172
10173 fi
10174
10175 done
10176
10177 if test "$ac_cv_header_pthread_h"; then
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10179 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10180 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 ac_check_lib_save_LIBS=$LIBS
10184 LIBS="-lpthread $LIBS"
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187
10188 /* Override any GCC internal prototype to avoid an error.
10189 Use char because int might match the return type of a GCC
10190 builtin and then its argument prototype would still apply. */
10191 #ifdef __cplusplus
10192 extern "C"
10193 #endif
10194 char pthread_self ();
10195 int
10196 main ()
10197 {
10198 return pthread_self ();
10199 ;
10200 return 0;
10201 }
10202 _ACEOF
10203 if ac_fn_c_try_link "$LINENO"; then :
10204 ac_cv_lib_pthread_pthread_self=yes
10205 else
10206 ac_cv_lib_pthread_pthread_self=no
10207 fi
10208 rm -f core conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210 LIBS=$ac_check_lib_save_LIBS
10211 fi
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10213 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10214 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10215 HAVE_GTK_AND_PTHREAD=yes
10216 fi
10217
10218 fi
10219 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10220 case "${canonical}" in
10221 *-hpux*) ;;
10222 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10223 esac
10224
10225 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10226
10227 fi
10228
10229 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10230 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10231 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10232 gtk_orientable_set_orientation
10233 do :
10234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10235 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10236 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10237 cat >>confdefs.h <<_ACEOF
10238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10239 _ACEOF
10240
10241 fi
10242 done
10243
10244
10245 fi
10246
10247 HAVE_DBUS=no
10248 DBUS_OBJ=
10249 if test "${with_dbus}" = "yes"; then
10250
10251 succeeded=no
10252
10253 # Extract the first word of "pkg-config", so it can be a program name with args.
10254 set dummy pkg-config; ac_word=$2
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256 $as_echo_n "checking for $ac_word... " >&6; }
10257 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10258 $as_echo_n "(cached) " >&6
10259 else
10260 case $PKG_CONFIG in
10261 [\\/]* | ?:[\\/]*)
10262 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10263 ;;
10264 *)
10265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266 for as_dir in $PATH
10267 do
10268 IFS=$as_save_IFS
10269 test -z "$as_dir" && as_dir=.
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10272 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 break 2
10275 fi
10276 done
10277 done
10278 IFS=$as_save_IFS
10279
10280 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10281 ;;
10282 esac
10283 fi
10284 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10285 if test -n "$PKG_CONFIG"; then
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10287 $as_echo "$PKG_CONFIG" >&6; }
10288 else
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 $as_echo "no" >&6; }
10291 fi
10292
10293
10294
10295 if test "$PKG_CONFIG" = "no" ; then
10296 HAVE_DBUS=no
10297 else
10298 PKG_CONFIG_MIN_VERSION=0.9.0
10299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10301 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10302
10303 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10305 $as_echo "yes" >&6; }
10306 succeeded=yes
10307
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10309 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10310 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10312 $as_echo "$DBUS_CFLAGS" >&6; }
10313
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10315 $as_echo_n "checking DBUS_LIBS... " >&6; }
10316 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10318 $as_echo "$DBUS_LIBS" >&6; }
10319 else
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321 $as_echo "no" >&6; }
10322 DBUS_CFLAGS=""
10323 DBUS_LIBS=""
10324 ## If we have a custom action on failure, don't print errors, but
10325 ## do set a variable so people can do so.
10326 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10327
10328 fi
10329
10330
10331
10332 else
10333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10335 fi
10336 fi
10337
10338 if test $succeeded = yes; then
10339 HAVE_DBUS=yes
10340 else
10341 HAVE_DBUS=no
10342 fi
10343
10344 if test "$HAVE_DBUS" = yes; then
10345 LIBS="$LIBS $DBUS_LIBS"
10346
10347 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10348
10349 for ac_func in dbus_watch_get_unix_fd
10350 do :
10351 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10352 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10353 cat >>confdefs.h <<_ACEOF
10354 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10355 _ACEOF
10356
10357 fi
10358 done
10359
10360 DBUS_OBJ=dbusbind.o
10361 fi
10362 fi
10363
10364
10365 HAVE_GCONF=no
10366 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10367
10368 succeeded=no
10369
10370 # Extract the first word of "pkg-config", so it can be a program name with args.
10371 set dummy pkg-config; ac_word=$2
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373 $as_echo_n "checking for $ac_word... " >&6; }
10374 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 case $PKG_CONFIG in
10378 [\\/]* | ?:[\\/]*)
10379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10380 ;;
10381 *)
10382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383 for as_dir in $PATH
10384 do
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
10387 for ac_exec_ext in '' $ac_executable_extensions; do
10388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10391 break 2
10392 fi
10393 done
10394 done
10395 IFS=$as_save_IFS
10396
10397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10398 ;;
10399 esac
10400 fi
10401 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10402 if test -n "$PKG_CONFIG"; then
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10404 $as_echo "$PKG_CONFIG" >&6; }
10405 else
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10407 $as_echo "no" >&6; }
10408 fi
10409
10410
10411
10412 if test "$PKG_CONFIG" = "no" ; then
10413 HAVE_GCONF=no
10414 else
10415 PKG_CONFIG_MIN_VERSION=0.9.0
10416 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10418 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10419
10420 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10422 $as_echo "yes" >&6; }
10423 succeeded=yes
10424
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10426 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10427 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10429 $as_echo "$GCONF_CFLAGS" >&6; }
10430
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10432 $as_echo_n "checking GCONF_LIBS... " >&6; }
10433 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10435 $as_echo "$GCONF_LIBS" >&6; }
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10438 $as_echo "no" >&6; }
10439 GCONF_CFLAGS=""
10440 GCONF_LIBS=""
10441 ## If we have a custom action on failure, don't print errors, but
10442 ## do set a variable so people can do so.
10443 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10444
10445 fi
10446
10447
10448
10449 else
10450 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10451 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10452 fi
10453 fi
10454
10455 if test $succeeded = yes; then
10456 HAVE_GCONF=yes
10457 else
10458 HAVE_GCONF=no
10459 fi
10460
10461 if test "$HAVE_GCONF" = yes; then
10462
10463 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10464
10465 for ac_func in g_type_init
10466 do :
10467 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10468 if test "x$ac_cv_func_g_type_init" = xyes; then :
10469 cat >>confdefs.h <<_ACEOF
10470 #define HAVE_G_TYPE_INIT 1
10471 _ACEOF
10472
10473 fi
10474 done
10475
10476 fi
10477 fi
10478
10479 HAVE_LIBSELINUX=no
10480 LIBSELINUX_LIBS=
10481 if test "${with_selinux}" = "yes"; then
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10483 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10484 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10485 $as_echo_n "(cached) " >&6
10486 else
10487 ac_check_lib_save_LIBS=$LIBS
10488 LIBS="-lselinux $LIBS"
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491
10492 /* Override any GCC internal prototype to avoid an error.
10493 Use char because int might match the return type of a GCC
10494 builtin and then its argument prototype would still apply. */
10495 #ifdef __cplusplus
10496 extern "C"
10497 #endif
10498 char lgetfilecon ();
10499 int
10500 main ()
10501 {
10502 return lgetfilecon ();
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 ac_cv_lib_selinux_lgetfilecon=yes
10509 else
10510 ac_cv_lib_selinux_lgetfilecon=no
10511 fi
10512 rm -f core conftest.err conftest.$ac_objext \
10513 conftest$ac_exeext conftest.$ac_ext
10514 LIBS=$ac_check_lib_save_LIBS
10515 fi
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10517 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10518 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10519 HAVE_LIBSELINUX=yes
10520 else
10521 HAVE_LIBSELINUX=no
10522 fi
10523
10524 if test "$HAVE_LIBSELINUX" = yes; then
10525
10526 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10527
10528 LIBSELINUX_LIBS=-lselinux
10529 fi
10530 fi
10531
10532
10533 HAVE_GNUTLS=no
10534 if test "${with_gnutls}" = "yes" ; then
10535
10536 succeeded=no
10537
10538 # Extract the first word of "pkg-config", so it can be a program name with args.
10539 set dummy pkg-config; ac_word=$2
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541 $as_echo_n "checking for $ac_word... " >&6; }
10542 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10543 $as_echo_n "(cached) " >&6
10544 else
10545 case $PKG_CONFIG in
10546 [\\/]* | ?:[\\/]*)
10547 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10548 ;;
10549 *)
10550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551 for as_dir in $PATH
10552 do
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
10555 for ac_exec_ext in '' $ac_executable_extensions; do
10556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10557 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559 break 2
10560 fi
10561 done
10562 done
10563 IFS=$as_save_IFS
10564
10565 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10566 ;;
10567 esac
10568 fi
10569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10570 if test -n "$PKG_CONFIG"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10572 $as_echo "$PKG_CONFIG" >&6; }
10573 else
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 fi
10577
10578
10579
10580 if test "$PKG_CONFIG" = "no" ; then
10581 HAVE_GNUTLS=no
10582 else
10583 PKG_CONFIG_MIN_VERSION=0.9.0
10584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10586 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10587
10588 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590 $as_echo "yes" >&6; }
10591 succeeded=yes
10592
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10594 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10595 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10597 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10598
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10600 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10601 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10603 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10604 else
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10606 $as_echo "no" >&6; }
10607 LIBGNUTLS_CFLAGS=""
10608 LIBGNUTLS_LIBS=""
10609 ## If we have a custom action on failure, don't print errors, but
10610 ## do set a variable so people can do so.
10611 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10612
10613 fi
10614
10615
10616
10617 else
10618 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10619 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10620 fi
10621 fi
10622
10623 if test $succeeded = yes; then
10624 HAVE_GNUTLS=yes
10625 else
10626 HAVE_GNUTLS=no
10627 fi
10628
10629 if test "${HAVE_GNUTLS}" = "yes"; then
10630
10631 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10632
10633 fi
10634 fi
10635
10636
10637
10638 HAVE_XAW3D=no
10639 LUCID_LIBW=
10640 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10641 if test "$with_xaw3d" != no; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10643 $as_echo_n "checking for xaw3d... " >&6; }
10644 if ${emacs_cv_xaw3d+:} false; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649
10650 #include <X11/Intrinsic.h>
10651 #include <X11/Xaw3d/Simple.h>
10652 int
10653 main ()
10654 {
10655
10656 ;
10657 return 0;
10658 }
10659 _ACEOF
10660 if ac_fn_c_try_link "$LINENO"; then :
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10662 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10663 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
10664 $as_echo_n "(cached) " >&6
10665 else
10666 ac_check_lib_save_LIBS=$LIBS
10667 LIBS="-lXaw3d $LIBS"
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670
10671 /* Override any GCC internal prototype to avoid an error.
10672 Use char because int might match the return type of a GCC
10673 builtin and then its argument prototype would still apply. */
10674 #ifdef __cplusplus
10675 extern "C"
10676 #endif
10677 char XawScrollbarSetThumb ();
10678 int
10679 main ()
10680 {
10681 return XawScrollbarSetThumb ();
10682 ;
10683 return 0;
10684 }
10685 _ACEOF
10686 if ac_fn_c_try_link "$LINENO"; then :
10687 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10688 else
10689 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10690 fi
10691 rm -f core conftest.err conftest.$ac_objext \
10692 conftest$ac_exeext conftest.$ac_ext
10693 LIBS=$ac_check_lib_save_LIBS
10694 fi
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10696 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10697 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
10698 emacs_cv_xaw3d=yes
10699 else
10700 emacs_cv_xaw3d=no
10701 fi
10702
10703 else
10704 emacs_cv_xaw3d=no
10705 fi
10706 rm -f core conftest.err conftest.$ac_objext \
10707 conftest$ac_exeext conftest.$ac_ext
10708 fi
10709
10710 else
10711 emacs_cv_xaw3d=no
10712 fi
10713 if test $emacs_cv_xaw3d = yes; then
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10715 $as_echo "yes; using Lucid toolkit" >&6; }
10716 USE_X_TOOLKIT=LUCID
10717 HAVE_XAW3D=yes
10718 LUCID_LIBW=-lXaw3d
10719
10720 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10721
10722 else
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10726 $as_echo_n "checking for libXaw... " >&6; }
10727 if ${emacs_cv_xaw+:} false; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732
10733 #include <X11/Intrinsic.h>
10734 #include <X11/Xaw/Simple.h>
10735 int
10736 main ()
10737 {
10738
10739 ;
10740 return 0;
10741 }
10742 _ACEOF
10743 if ac_fn_c_try_link "$LINENO"; then :
10744 emacs_cv_xaw=yes
10745 else
10746 emacs_cv_xaw=no
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext \
10749 conftest$ac_exeext conftest.$ac_ext
10750 fi
10751
10752 if test $emacs_cv_xaw = yes; then
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10754 $as_echo "yes; using Lucid toolkit" >&6; }
10755 USE_X_TOOLKIT=LUCID
10756 LUCID_LIBW=-lXaw
10757 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10758 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10759 else
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10761 $as_echo "no; do not use toolkit by default" >&6; }
10762 USE_X_TOOLKIT=none
10763 fi
10764 fi
10765 fi
10766
10767 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10768
10769 LIBXTR6=
10770 if test "${USE_X_TOOLKIT}" != "none"; then
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10772 $as_echo_n "checking X11 toolkit version... " >&6; }
10773 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10774 $as_echo_n "(cached) " >&6
10775 else
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 #include <X11/Intrinsic.h>
10779 int
10780 main ()
10781 {
10782 #if XtSpecificationRelease < 6
10783 fail;
10784 #endif
10785
10786 ;
10787 return 0;
10788 }
10789 _ACEOF
10790 if ac_fn_c_try_link "$LINENO"; then :
10791 emacs_cv_x11_toolkit_version_6=yes
10792 else
10793 emacs_cv_x11_toolkit_version_6=no
10794 fi
10795 rm -f core conftest.err conftest.$ac_objext \
10796 conftest$ac_exeext conftest.$ac_ext
10797 fi
10798
10799 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10800 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10802 $as_echo "6 or newer" >&6; }
10803
10804 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10805
10806 LIBXTR6="-lSM -lICE"
10807 case "$opsys" in
10808 ## Use libw.a along with X11R6 Xt.
10809 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10810 esac
10811 else
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10813 $as_echo "before 6" >&6; }
10814 fi
10815
10816 OLDLIBS="$LIBS"
10817 if test x$HAVE_X11XTR6 = xyes; then
10818 LIBS="-lXt -lSM -lICE $LIBS"
10819 else
10820 LIBS="-lXt $LIBS"
10821 fi
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10823 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10824 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
10825 $as_echo_n "(cached) " >&6
10826 else
10827 ac_check_lib_save_LIBS=$LIBS
10828 LIBS="-lXmu $LIBS"
10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830 /* end confdefs.h. */
10831
10832 /* Override any GCC internal prototype to avoid an error.
10833 Use char because int might match the return type of a GCC
10834 builtin and then its argument prototype would still apply. */
10835 #ifdef __cplusplus
10836 extern "C"
10837 #endif
10838 char XmuConvertStandardSelection ();
10839 int
10840 main ()
10841 {
10842 return XmuConvertStandardSelection ();
10843 ;
10844 return 0;
10845 }
10846 _ACEOF
10847 if ac_fn_c_try_link "$LINENO"; then :
10848 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10849 else
10850 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10851 fi
10852 rm -f core conftest.err conftest.$ac_objext \
10853 conftest$ac_exeext conftest.$ac_ext
10854 LIBS=$ac_check_lib_save_LIBS
10855 fi
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10857 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10858 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
10859 cat >>confdefs.h <<_ACEOF
10860 #define HAVE_LIBXMU 1
10861 _ACEOF
10862
10863 LIBS="-lXmu $LIBS"
10864
10865 fi
10866
10867 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10868 fi
10869
10870
10871 LIBXMU=-lXmu
10872 case $opsys in
10873 ## These systems don't supply Xmu.
10874 hpux* | aix4-2 )
10875 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10876 ;;
10877 esac
10878
10879
10880 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10881 if test "${HAVE_X11}" = "yes"; then
10882 if test "${USE_X_TOOLKIT}" != "none"; then
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10884 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10885 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10886 $as_echo_n "(cached) " >&6
10887 else
10888 ac_check_lib_save_LIBS=$LIBS
10889 LIBS="-lXext $LIBS"
10890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10891 /* end confdefs.h. */
10892
10893 /* Override any GCC internal prototype to avoid an error.
10894 Use char because int might match the return type of a GCC
10895 builtin and then its argument prototype would still apply. */
10896 #ifdef __cplusplus
10897 extern "C"
10898 #endif
10899 char XShapeQueryExtension ();
10900 int
10901 main ()
10902 {
10903 return XShapeQueryExtension ();
10904 ;
10905 return 0;
10906 }
10907 _ACEOF
10908 if ac_fn_c_try_link "$LINENO"; then :
10909 ac_cv_lib_Xext_XShapeQueryExtension=yes
10910 else
10911 ac_cv_lib_Xext_XShapeQueryExtension=no
10912 fi
10913 rm -f core conftest.err conftest.$ac_objext \
10914 conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10916 fi
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10918 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10919 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10920 cat >>confdefs.h <<_ACEOF
10921 #define HAVE_LIBXEXT 1
10922 _ACEOF
10923
10924 LIBS="-lXext $LIBS"
10925
10926 fi
10927
10928 fi
10929 fi
10930
10931 LIBXP=
10932 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10934 $as_echo_n "checking for Motif version 2.1... " >&6; }
10935 if ${emacs_cv_motif_version_2_1+:} false; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h. */
10940 #include <Xm/Xm.h>
10941 int
10942 main ()
10943 {
10944 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10945 int x = 5;
10946 #else
10947 Motif version prior to 2.1.
10948 #endif
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_compile "$LINENO"; then :
10954 emacs_cv_motif_version_2_1=yes
10955 else
10956 emacs_cv_motif_version_2_1=no
10957 fi
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959 fi
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10961 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10962 if test $emacs_cv_motif_version_2_1 = yes; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10964 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10965 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
10966 $as_echo_n "(cached) " >&6
10967 else
10968 ac_check_lib_save_LIBS=$LIBS
10969 LIBS="-lXp $LIBS"
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10972
10973 /* Override any GCC internal prototype to avoid an error.
10974 Use char because int might match the return type of a GCC
10975 builtin and then its argument prototype would still apply. */
10976 #ifdef __cplusplus
10977 extern "C"
10978 #endif
10979 char XpCreateContext ();
10980 int
10981 main ()
10982 {
10983 return XpCreateContext ();
10984 ;
10985 return 0;
10986 }
10987 _ACEOF
10988 if ac_fn_c_try_link "$LINENO"; then :
10989 ac_cv_lib_Xp_XpCreateContext=yes
10990 else
10991 ac_cv_lib_Xp_XpCreateContext=no
10992 fi
10993 rm -f core conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LIBS=$ac_check_lib_save_LIBS
10996 fi
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10998 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10999 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
11000 LIBXP=-lXp
11001 fi
11002
11003 else
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11005 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11006 if ${emacs_cv_lesstif+:} false; then :
11007 $as_echo_n "(cached) " >&6
11008 else
11009 # We put this in CFLAGS temporarily to precede other -I options
11010 # that might be in CFLAGS temporarily.
11011 # We put this in CPPFLAGS where it precedes the other -I options.
11012 OLD_CPPFLAGS=$CPPFLAGS
11013 OLD_CFLAGS=$CFLAGS
11014 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11015 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11018 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11019 int
11020 main ()
11021 {
11022 int x = 5;
11023 ;
11024 return 0;
11025 }
11026 _ACEOF
11027 if ac_fn_c_try_compile "$LINENO"; then :
11028 emacs_cv_lesstif=yes
11029 else
11030 emacs_cv_lesstif=no
11031 fi
11032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11033 fi
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11035 $as_echo "$emacs_cv_lesstif" >&6; }
11036 if test $emacs_cv_lesstif = yes; then
11037 # Make sure this -I option remains in CPPFLAGS after it is set
11038 # back to REAL_CPPFLAGS.
11039 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11040 # have those other -I options anyway. Ultimately, having this
11041 # directory ultimately in CPPFLAGS will be enough.
11042 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11043 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11044 else
11045 CFLAGS=$OLD_CFLAGS
11046 CPPFLAGS=$OLD_CPPFLAGS
11047 fi
11048 fi
11049 fi
11050
11051
11052 USE_TOOLKIT_SCROLL_BARS=no
11053 if test "${with_toolkit_scroll_bars}" != "no"; then
11054 if test "${USE_X_TOOLKIT}" != "none"; then
11055 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11056 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11057
11058 HAVE_XAW3D=no
11059 USE_TOOLKIT_SCROLL_BARS=yes
11060 elif test "${HAVE_XAW3D}" = "yes"; then
11061 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11062
11063 USE_TOOLKIT_SCROLL_BARS=yes
11064 fi
11065 elif test "${HAVE_GTK}" = "yes"; then
11066 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11067
11068 USE_TOOLKIT_SCROLL_BARS=yes
11069 elif test "${HAVE_NS}" = "yes"; then
11070 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11071
11072 USE_TOOLKIT_SCROLL_BARS=yes
11073 fi
11074 fi
11075
11076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11077 /* end confdefs.h. */
11078
11079 #include <X11/Xlib.h>
11080 #include <X11/Xresource.h>
11081 int
11082 main ()
11083 {
11084 XIMProc callback;
11085 ;
11086 return 0;
11087 }
11088 _ACEOF
11089 if ac_fn_c_try_compile "$LINENO"; then :
11090 HAVE_XIM=yes
11091
11092 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11093
11094 else
11095 HAVE_XIM=no
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098
11099
11100 if test "${with_xim}" != "no"; then
11101
11102 $as_echo "#define USE_XIM 1" >>confdefs.h
11103
11104 fi
11105
11106
11107 if test "${HAVE_XIM}" != "no"; then
11108 late_CFLAGS=$CFLAGS
11109 if test "$GCC" = yes; then
11110 CFLAGS="$CFLAGS --pedantic-errors"
11111 fi
11112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11113 /* end confdefs.h. */
11114
11115 #include <X11/Xlib.h>
11116 #include <X11/Xresource.h>
11117 int
11118 main ()
11119 {
11120 Display *display;
11121 XrmDatabase db;
11122 char *res_name;
11123 char *res_class;
11124 XIMProc callback;
11125 XPointer *client_data;
11126 #ifndef __GNUC__
11127 /* If we're not using GCC, it's probably not XFree86, and this is
11128 probably right, but we can't use something like --pedantic-errors. */
11129 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11130 char*, XIMProc, XPointer*);
11131 #endif
11132 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11133 client_data);
11134 ;
11135 return 0;
11136 }
11137 _ACEOF
11138 if ac_fn_c_try_compile "$LINENO"; then :
11139 emacs_cv_arg6_star=yes
11140 fi
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142 if test "$emacs_cv_arg6_star" = yes; then
11143 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11144
11145 else
11146 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11147
11148 fi
11149 CFLAGS=$late_CFLAGS
11150 fi
11151
11152 ### Start of font-backend (under any platform) section.
11153 # (nothing here yet -- this is a placeholder)
11154 ### End of font-backend (under any platform) section.
11155
11156 ### Start of font-backend (under X11) section.
11157 if test "${HAVE_X11}" = "yes"; then
11158
11159 succeeded=no
11160
11161 # Extract the first word of "pkg-config", so it can be a program name with args.
11162 set dummy pkg-config; ac_word=$2
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164 $as_echo_n "checking for $ac_word... " >&6; }
11165 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 case $PKG_CONFIG in
11169 [\\/]* | ?:[\\/]*)
11170 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11171 ;;
11172 *)
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11175 do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11180 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11182 break 2
11183 fi
11184 done
11185 done
11186 IFS=$as_save_IFS
11187
11188 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11189 ;;
11190 esac
11191 fi
11192 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11193 if test -n "$PKG_CONFIG"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11195 $as_echo "$PKG_CONFIG" >&6; }
11196 else
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199 fi
11200
11201
11202
11203 if test "$PKG_CONFIG" = "no" ; then
11204 HAVE_FC=no
11205 else
11206 PKG_CONFIG_MIN_VERSION=0.9.0
11207 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11209 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11210
11211 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11213 $as_echo "yes" >&6; }
11214 succeeded=yes
11215
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11217 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11218 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11220 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11221
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11223 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11224 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11226 $as_echo "$FONTCONFIG_LIBS" >&6; }
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11229 $as_echo "no" >&6; }
11230 FONTCONFIG_CFLAGS=""
11231 FONTCONFIG_LIBS=""
11232 ## If we have a custom action on failure, don't print errors, but
11233 ## do set a variable so people can do so.
11234 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11235
11236 fi
11237
11238
11239
11240 else
11241 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11242 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11243 fi
11244 fi
11245
11246 if test $succeeded = yes; then
11247 HAVE_FC=yes
11248 else
11249 HAVE_FC=no
11250 fi
11251
11252
11253 ## Use -lXft if available, unless `--with-xft=no'.
11254 HAVE_XFT=maybe
11255 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11256 with_xft="no";
11257 fi
11258 if test "x${with_xft}" != "xno"; then
11259
11260
11261 succeeded=no
11262
11263 # Extract the first word of "pkg-config", so it can be a program name with args.
11264 set dummy pkg-config; ac_word=$2
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11266 $as_echo_n "checking for $ac_word... " >&6; }
11267 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11268 $as_echo_n "(cached) " >&6
11269 else
11270 case $PKG_CONFIG in
11271 [\\/]* | ?:[\\/]*)
11272 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11273 ;;
11274 *)
11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11277 do
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11282 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 break 2
11285 fi
11286 done
11287 done
11288 IFS=$as_save_IFS
11289
11290 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11291 ;;
11292 esac
11293 fi
11294 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11295 if test -n "$PKG_CONFIG"; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11297 $as_echo "$PKG_CONFIG" >&6; }
11298 else
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11300 $as_echo "no" >&6; }
11301 fi
11302
11303
11304
11305 if test "$PKG_CONFIG" = "no" ; then
11306 HAVE_XFT=no
11307 else
11308 PKG_CONFIG_MIN_VERSION=0.9.0
11309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11311 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11312
11313 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315 $as_echo "yes" >&6; }
11316 succeeded=yes
11317
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11319 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11320 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11322 $as_echo "$XFT_CFLAGS" >&6; }
11323
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11325 $as_echo_n "checking XFT_LIBS... " >&6; }
11326 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11328 $as_echo "$XFT_LIBS" >&6; }
11329 else
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331 $as_echo "no" >&6; }
11332 XFT_CFLAGS=""
11333 XFT_LIBS=""
11334 ## If we have a custom action on failure, don't print errors, but
11335 ## do set a variable so people can do so.
11336 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11337
11338 fi
11339
11340
11341
11342 else
11343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11345 fi
11346 fi
11347
11348 if test $succeeded = yes; then
11349 :
11350 else
11351 HAVE_XFT=no
11352 fi
11353
11354 ## Because xftfont.c uses XRenderQueryExtension, we also
11355 ## need to link to -lXrender.
11356 HAVE_XRENDER=no
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11358 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11359 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-lXrender $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11366
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char XRenderQueryExtension ();
11374 int
11375 main ()
11376 {
11377 return XRenderQueryExtension ();
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11384 else
11385 ac_cv_lib_Xrender_XRenderQueryExtension=no
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11392 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11393 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11394 HAVE_XRENDER=yes
11395 fi
11396
11397 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11398 OLD_CPPFLAGS="$CPPFLAGS"
11399 OLD_CFLAGS="$CFLAGS"
11400 OLD_LIBS="$LIBS"
11401 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11402 CFLAGS="$CFLAGS $XFT_CFLAGS"
11403 XFT_LIBS="-lXrender $XFT_LIBS"
11404 LIBS="$XFT_LIBS $LIBS"
11405 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11406 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11408 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11409 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412 ac_check_lib_save_LIBS=$LIBS
11413 LIBS="-lXft $XFT_LIBS $LIBS"
11414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11416
11417 /* Override any GCC internal prototype to avoid an error.
11418 Use char because int might match the return type of a GCC
11419 builtin and then its argument prototype would still apply. */
11420 #ifdef __cplusplus
11421 extern "C"
11422 #endif
11423 char XftFontOpen ();
11424 int
11425 main ()
11426 {
11427 return XftFontOpen ();
11428 ;
11429 return 0;
11430 }
11431 _ACEOF
11432 if ac_fn_c_try_link "$LINENO"; then :
11433 ac_cv_lib_Xft_XftFontOpen=yes
11434 else
11435 ac_cv_lib_Xft_XftFontOpen=no
11436 fi
11437 rm -f core conftest.err conftest.$ac_objext \
11438 conftest$ac_exeext conftest.$ac_ext
11439 LIBS=$ac_check_lib_save_LIBS
11440 fi
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11442 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11443 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11444 HAVE_XFT=yes
11445 fi
11446
11447 fi
11448
11449
11450
11451 if test "${HAVE_XFT}" = "yes"; then
11452
11453 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11454
11455
11456 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11457 else
11458 CPPFLAGS="$OLD_CPPFLAGS"
11459 CFLAGS="$OLD_CFLAGS"
11460 LIBS="$OLD_LIBS"
11461 fi # "${HAVE_XFT}" = "yes"
11462 fi # "$HAVE_XFT" != no
11463 fi # "x${with_xft}" != "xno"
11464
11465 if test "$HAVE_XFT" != "yes"; then
11466 HAVE_XFT=no
11467 fi
11468
11469 ## We used to allow building with FreeType and without Xft.
11470 ## However, the ftx font backend driver is not in good shape.
11471 HAVE_FREETYPE=$HAVE_XFT
11472
11473 HAVE_LIBOTF=no
11474 if test "${HAVE_FREETYPE}" = "yes"; then
11475
11476 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11477
11478 if test "${with_libotf}" != "no"; then
11479
11480 succeeded=no
11481
11482 # Extract the first word of "pkg-config", so it can be a program name with args.
11483 set dummy pkg-config; ac_word=$2
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11485 $as_echo_n "checking for $ac_word... " >&6; }
11486 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11487 $as_echo_n "(cached) " >&6
11488 else
11489 case $PKG_CONFIG in
11490 [\\/]* | ?:[\\/]*)
11491 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11492 ;;
11493 *)
11494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495 for as_dir in $PATH
11496 do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11501 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 break 2
11504 fi
11505 done
11506 done
11507 IFS=$as_save_IFS
11508
11509 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11510 ;;
11511 esac
11512 fi
11513 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11514 if test -n "$PKG_CONFIG"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11516 $as_echo "$PKG_CONFIG" >&6; }
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11520 fi
11521
11522
11523
11524 if test "$PKG_CONFIG" = "no" ; then
11525 HAVE_LIBOTF=no
11526 else
11527 PKG_CONFIG_MIN_VERSION=0.9.0
11528 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11530 $as_echo_n "checking for libotf... " >&6; }
11531
11532 if $PKG_CONFIG --exists "libotf" 2>&5; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11534 $as_echo "yes" >&6; }
11535 succeeded=yes
11536
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11538 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11539 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11541 $as_echo "$LIBOTF_CFLAGS" >&6; }
11542
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11544 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11545 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11547 $as_echo "$LIBOTF_LIBS" >&6; }
11548 else
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 LIBOTF_CFLAGS=""
11552 LIBOTF_LIBS=""
11553 ## If we have a custom action on failure, don't print errors, but
11554 ## do set a variable so people can do so.
11555 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11556
11557 fi
11558
11559
11560
11561 else
11562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11564 fi
11565 fi
11566
11567 if test $succeeded = yes; then
11568 HAVE_LIBOTF=yes
11569 else
11570 HAVE_LIBOTF=no
11571 fi
11572
11573 if test "$HAVE_LIBOTF" = "yes"; then
11574
11575 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11576
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11578 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11579 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11580 $as_echo_n "(cached) " >&6
11581 else
11582 ac_check_lib_save_LIBS=$LIBS
11583 LIBS="-lotf $LIBS"
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11586
11587 /* Override any GCC internal prototype to avoid an error.
11588 Use char because int might match the return type of a GCC
11589 builtin and then its argument prototype would still apply. */
11590 #ifdef __cplusplus
11591 extern "C"
11592 #endif
11593 char OTF_get_variation_glyphs ();
11594 int
11595 main ()
11596 {
11597 return OTF_get_variation_glyphs ();
11598 ;
11599 return 0;
11600 }
11601 _ACEOF
11602 if ac_fn_c_try_link "$LINENO"; then :
11603 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11604 else
11605 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11606 fi
11607 rm -f core conftest.err conftest.$ac_objext \
11608 conftest$ac_exeext conftest.$ac_ext
11609 LIBS=$ac_check_lib_save_LIBS
11610 fi
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11612 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11613 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11614 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11615 else
11616 HAVE_OTF_GET_VARIATION_GLYPHS=no
11617 fi
11618
11619 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11620
11621 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11622
11623 fi
11624 fi
11625 fi
11626 fi
11627
11628 HAVE_M17N_FLT=no
11629 if test "${HAVE_LIBOTF}" = yes; then
11630 if test "${with_m17n_flt}" != "no"; then
11631
11632 succeeded=no
11633
11634 # Extract the first word of "pkg-config", so it can be a program name with args.
11635 set dummy pkg-config; ac_word=$2
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637 $as_echo_n "checking for $ac_word... " >&6; }
11638 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 case $PKG_CONFIG in
11642 [\\/]* | ?:[\\/]*)
11643 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11644 ;;
11645 *)
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11648 do
11649 IFS=$as_save_IFS
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11653 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11655 break 2
11656 fi
11657 done
11658 done
11659 IFS=$as_save_IFS
11660
11661 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11662 ;;
11663 esac
11664 fi
11665 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11666 if test -n "$PKG_CONFIG"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11668 $as_echo "$PKG_CONFIG" >&6; }
11669 else
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11671 $as_echo "no" >&6; }
11672 fi
11673
11674
11675
11676 if test "$PKG_CONFIG" = "no" ; then
11677 HAVE_M17N_FLT=no
11678 else
11679 PKG_CONFIG_MIN_VERSION=0.9.0
11680 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11682 $as_echo_n "checking for m17n-flt... " >&6; }
11683
11684 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11686 $as_echo "yes" >&6; }
11687 succeeded=yes
11688
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11690 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11691 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11693 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11694
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11696 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11697 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11699 $as_echo "$M17N_FLT_LIBS" >&6; }
11700 else
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 M17N_FLT_CFLAGS=""
11704 M17N_FLT_LIBS=""
11705 ## If we have a custom action on failure, don't print errors, but
11706 ## do set a variable so people can do so.
11707 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11708
11709 fi
11710
11711
11712
11713 else
11714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11716 fi
11717 fi
11718
11719 if test $succeeded = yes; then
11720 HAVE_M17N_FLT=yes
11721 else
11722 HAVE_M17N_FLT=no
11723 fi
11724
11725 if test "$HAVE_M17N_FLT" = "yes"; then
11726
11727 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11728
11729 fi
11730 fi
11731 fi
11732 else
11733 HAVE_XFT=no
11734 HAVE_FREETYPE=no
11735 HAVE_LIBOTF=no
11736 HAVE_M17N_FLT=no
11737 fi
11738
11739 ### End of font-backend (under X11) section.
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750 ### Use -lXpm if available, unless `--with-xpm=no'.
11751 HAVE_XPM=no
11752 LIBXPM=
11753 if test "${HAVE_X11}" = "yes"; then
11754 if test "${with_xpm}" != "no"; then
11755 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11756 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11758 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11759 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11760 $as_echo_n "(cached) " >&6
11761 else
11762 ac_check_lib_save_LIBS=$LIBS
11763 LIBS="-lXpm -lX11 $LIBS"
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11766
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char XpmReadFileToPixmap ();
11774 int
11775 main ()
11776 {
11777 return XpmReadFileToPixmap ();
11778 ;
11779 return 0;
11780 }
11781 _ACEOF
11782 if ac_fn_c_try_link "$LINENO"; then :
11783 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11784 else
11785 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11786 fi
11787 rm -f core conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11792 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11793 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11794 HAVE_XPM=yes
11795 fi
11796
11797 fi
11798
11799
11800 if test "${HAVE_XPM}" = "yes"; then
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11802 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11804 /* end confdefs.h. */
11805 #include "X11/xpm.h"
11806 #ifndef XpmReturnAllocPixels
11807 no_return_alloc_pixels
11808 #endif
11809
11810 _ACEOF
11811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11812 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11813 HAVE_XPM=no
11814 else
11815 HAVE_XPM=yes
11816 fi
11817 rm -f conftest*
11818
11819
11820 if test "${HAVE_XPM}" = "yes"; then
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11822 $as_echo "yes" >&6; }
11823 else
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826 fi
11827 fi
11828 fi
11829
11830 if test "${HAVE_XPM}" = "yes"; then
11831
11832 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11833
11834 LIBXPM=-lXpm
11835 fi
11836 fi
11837
11838
11839 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11840 HAVE_JPEG=no
11841 LIBJPEG=
11842 if test "${HAVE_X11}" = "yes"; then
11843 if test "${with_jpeg}" != "no"; then
11844 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11845 if test "x$ac_cv_header_jerror_h" = xyes; then :
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11847 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11848 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
11849 $as_echo_n "(cached) " >&6
11850 else
11851 ac_check_lib_save_LIBS=$LIBS
11852 LIBS="-ljpeg $LIBS"
11853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11854 /* end confdefs.h. */
11855
11856 /* Override any GCC internal prototype to avoid an error.
11857 Use char because int might match the return type of a GCC
11858 builtin and then its argument prototype would still apply. */
11859 #ifdef __cplusplus
11860 extern "C"
11861 #endif
11862 char jpeg_destroy_compress ();
11863 int
11864 main ()
11865 {
11866 return jpeg_destroy_compress ();
11867 ;
11868 return 0;
11869 }
11870 _ACEOF
11871 if ac_fn_c_try_link "$LINENO"; then :
11872 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11873 else
11874 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11875 fi
11876 rm -f core conftest.err conftest.$ac_objext \
11877 conftest$ac_exeext conftest.$ac_ext
11878 LIBS=$ac_check_lib_save_LIBS
11879 fi
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11881 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11882 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
11883 HAVE_JPEG=yes
11884 fi
11885
11886 fi
11887
11888
11889 fi
11890
11891 if test "${HAVE_JPEG}" = "yes"; then
11892 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11893
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h. */
11896 #include <jpeglib.h>
11897 version=JPEG_LIB_VERSION
11898
11899 _ACEOF
11900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11901 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11902 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11903
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11906 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11907 HAVE_JPEG=no
11908 fi
11909 rm -f conftest*
11910
11911 fi
11912 if test "${HAVE_JPEG}" = "yes"; then
11913 LIBJPEG=-ljpeg
11914 fi
11915 fi
11916
11917
11918 ### Use -lpng if available, unless `--with-png=no'.
11919 HAVE_PNG=no
11920 LIBPNG=
11921 if test "${HAVE_X11}" = "yes"; then
11922 if test "${with_png}" != "no"; then
11923 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11924 # in /usr/include/libpng.
11925 for ac_header in png.h libpng/png.h
11926 do :
11927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11930 cat >>confdefs.h <<_ACEOF
11931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11932 _ACEOF
11933
11934 fi
11935
11936 done
11937
11938 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11940 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11941 if ${ac_cv_lib_png_png_get_channels+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-lpng -lz -lm $LIBS"
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11948
11949 /* Override any GCC internal prototype to avoid an error.
11950 Use char because int might match the return type of a GCC
11951 builtin and then its argument prototype would still apply. */
11952 #ifdef __cplusplus
11953 extern "C"
11954 #endif
11955 char png_get_channels ();
11956 int
11957 main ()
11958 {
11959 return png_get_channels ();
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_c_try_link "$LINENO"; then :
11965 ac_cv_lib_png_png_get_channels=yes
11966 else
11967 ac_cv_lib_png_png_get_channels=no
11968 fi
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11971 LIBS=$ac_check_lib_save_LIBS
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11974 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11975 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
11976 HAVE_PNG=yes
11977 fi
11978
11979 fi
11980 fi
11981
11982 if test "${HAVE_PNG}" = "yes"; then
11983
11984 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11985
11986 LIBPNG="-lpng -lz -lm"
11987 fi
11988 fi
11989
11990
11991 ### Use -ltiff if available, unless `--with-tiff=no'.
11992 HAVE_TIFF=no
11993 LIBTIFF=
11994 if test "${HAVE_X11}" = "yes"; then
11995 if test "${with_tiff}" != "no"; then
11996 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11997 if test "x$ac_cv_header_tiffio_h" = xyes; then :
11998 tifflibs="-lz -lm"
11999 # At least one tiff package requires the jpeg library.
12000 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12002 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12003 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 ac_check_lib_save_LIBS=$LIBS
12007 LIBS="-ltiff $tifflibs $LIBS"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010
12011 /* Override any GCC internal prototype to avoid an error.
12012 Use char because int might match the return type of a GCC
12013 builtin and then its argument prototype would still apply. */
12014 #ifdef __cplusplus
12015 extern "C"
12016 #endif
12017 char TIFFGetVersion ();
12018 int
12019 main ()
12020 {
12021 return TIFFGetVersion ();
12022 ;
12023 return 0;
12024 }
12025 _ACEOF
12026 if ac_fn_c_try_link "$LINENO"; then :
12027 ac_cv_lib_tiff_TIFFGetVersion=yes
12028 else
12029 ac_cv_lib_tiff_TIFFGetVersion=no
12030 fi
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12036 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12037 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12038 HAVE_TIFF=yes
12039 fi
12040
12041 fi
12042
12043
12044 fi
12045
12046 if test "${HAVE_TIFF}" = "yes"; then
12047
12048 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12049
12050 LIBTIFF=-ltiff
12051 fi
12052 fi
12053
12054
12055 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12056 HAVE_GIF=no
12057 LIBGIF=
12058 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12059 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12060 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12061 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12062 # Earlier versions can crash Emacs.
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12064 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12065 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
12066 $as_echo_n "(cached) " >&6
12067 else
12068 ac_check_lib_save_LIBS=$LIBS
12069 LIBS="-lgif $LIBS"
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072
12073 /* Override any GCC internal prototype to avoid an error.
12074 Use char because int might match the return type of a GCC
12075 builtin and then its argument prototype would still apply. */
12076 #ifdef __cplusplus
12077 extern "C"
12078 #endif
12079 char EGifPutExtensionLast ();
12080 int
12081 main ()
12082 {
12083 return EGifPutExtensionLast ();
12084 ;
12085 return 0;
12086 }
12087 _ACEOF
12088 if ac_fn_c_try_link "$LINENO"; then :
12089 ac_cv_lib_gif_EGifPutExtensionLast=yes
12090 else
12091 ac_cv_lib_gif_EGifPutExtensionLast=no
12092 fi
12093 rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext
12095 LIBS=$ac_check_lib_save_LIBS
12096 fi
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12098 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12099 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
12100 HAVE_GIF=yes
12101 else
12102 HAVE_GIF=maybe
12103 fi
12104
12105 fi
12106
12107
12108
12109 if test "$HAVE_GIF" = yes; then
12110 LIBGIF=-lgif
12111 elif test "$HAVE_GIF" = maybe; then
12112 # If gif_lib.h but no libgif, try libungif.
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12114 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12115 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118 ac_check_lib_save_LIBS=$LIBS
12119 LIBS="-lungif $LIBS"
12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12122
12123 /* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
12126 #ifdef __cplusplus
12127 extern "C"
12128 #endif
12129 char EGifPutExtensionLast ();
12130 int
12131 main ()
12132 {
12133 return EGifPutExtensionLast ();
12134 ;
12135 return 0;
12136 }
12137 _ACEOF
12138 if ac_fn_c_try_link "$LINENO"; then :
12139 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12140 else
12141 ac_cv_lib_ungif_EGifPutExtensionLast=no
12142 fi
12143 rm -f core conftest.err conftest.$ac_objext \
12144 conftest$ac_exeext conftest.$ac_ext
12145 LIBS=$ac_check_lib_save_LIBS
12146 fi
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12148 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12149 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12150 HAVE_GIF=yes
12151 else
12152 HAVE_GIF=no
12153 fi
12154
12155 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12156 fi
12157
12158 if test "${HAVE_GIF}" = "yes"; then
12159
12160 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12161
12162 fi
12163 fi
12164
12165
12166 if test "${HAVE_X11}" = "yes"; then
12167 MISSING=""
12168 WITH_NO=""
12169 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12170 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12171 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12172 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12173 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12174 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12175 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12176 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12177 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12178 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12179
12180 if test "X${MISSING}" != X; then
12181 as_fn_error $? "The following required libraries were not found:
12182 $MISSING
12183 Maybe some development libraries/packages are missing?
12184 If you don't want to link with them give
12185 $WITH_NO
12186 as options to configure" "$LINENO" 5
12187 fi
12188 fi
12189
12190 ### Use -lgpm if available, unless `--with-gpm=no'.
12191 HAVE_GPM=no
12192 LIBGPM=
12193 MOUSE_SUPPORT=
12194 if test "${with_gpm}" != "no"; then
12195 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12196 if test "x$ac_cv_header_gpm_h" = xyes; then :
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12198 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12199 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 ac_check_lib_save_LIBS=$LIBS
12203 LIBS="-lgpm $LIBS"
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12206
12207 /* Override any GCC internal prototype to avoid an error.
12208 Use char because int might match the return type of a GCC
12209 builtin and then its argument prototype would still apply. */
12210 #ifdef __cplusplus
12211 extern "C"
12212 #endif
12213 char Gpm_Open ();
12214 int
12215 main ()
12216 {
12217 return Gpm_Open ();
12218 ;
12219 return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_link "$LINENO"; then :
12223 ac_cv_lib_gpm_Gpm_Open=yes
12224 else
12225 ac_cv_lib_gpm_Gpm_Open=no
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12230 fi
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12232 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12233 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12234 HAVE_GPM=yes
12235 fi
12236
12237 fi
12238
12239
12240
12241 if test "${HAVE_GPM}" = "yes"; then
12242
12243 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12244
12245 LIBGPM=-lgpm
12246 ## May be reset below.
12247 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12248 fi
12249 fi
12250
12251
12252 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12253 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12254
12255 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12256
12257 fi
12258
12259
12260
12261 C_SWITCH_X_SYSTEM=
12262 ### Use NeXTstep API to implement GUI.
12263 if test "${HAVE_NS}" = "yes"; then
12264
12265 $as_echo "#define HAVE_NS 1" >>confdefs.h
12266
12267 if test "${NS_IMPL_COCOA}" = "yes"; then
12268
12269 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12270
12271 GNU_OBJC_CFLAGS=
12272 fi
12273 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12274
12275 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12276
12277 # See also .m.o rule in Makefile.in */
12278 # FIXME: are all these flags really needed? Document here why. */
12279 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12280 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12281 fi
12282 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12283
12284 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12285
12286 fi
12287 # We also have mouse menus.
12288 HAVE_MENUS=yes
12289 OTHER_FILES=ns-app
12290 fi
12291
12292
12293 ### Use session management (-lSM -lICE) if available
12294 HAVE_X_SM=no
12295 LIBXSM=
12296 if test "${HAVE_X11}" = "yes"; then
12297 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12298 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12300 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12301 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 ac_check_lib_save_LIBS=$LIBS
12305 LIBS="-lSM -lICE $LIBS"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 /* Override any GCC internal prototype to avoid an error.
12310 Use char because int might match the return type of a GCC
12311 builtin and then its argument prototype would still apply. */
12312 #ifdef __cplusplus
12313 extern "C"
12314 #endif
12315 char SmcOpenConnection ();
12316 int
12317 main ()
12318 {
12319 return SmcOpenConnection ();
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 if ac_fn_c_try_link "$LINENO"; then :
12325 ac_cv_lib_SM_SmcOpenConnection=yes
12326 else
12327 ac_cv_lib_SM_SmcOpenConnection=no
12328 fi
12329 rm -f core conftest.err conftest.$ac_objext \
12330 conftest$ac_exeext conftest.$ac_ext
12331 LIBS=$ac_check_lib_save_LIBS
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12334 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12335 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12336 HAVE_X_SM=yes
12337 fi
12338
12339 fi
12340
12341
12342
12343 if test "${HAVE_X_SM}" = "yes"; then
12344
12345 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12346
12347 LIBXSM="-lSM -lICE"
12348 case "$LIBS" in
12349 *-lSM*) ;;
12350 *) LIBS="$LIBXSM $LIBS" ;;
12351 esac
12352 fi
12353 fi
12354
12355
12356 ### Use libxml (-lxml2) if available
12357 if test "${with_xml2}" != "no"; then
12358 ### I'm not sure what the version number should be, so I just guessed.
12359
12360 succeeded=no
12361
12362 # Extract the first word of "pkg-config", so it can be a program name with args.
12363 set dummy pkg-config; ac_word=$2
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12365 $as_echo_n "checking for $ac_word... " >&6; }
12366 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12367 $as_echo_n "(cached) " >&6
12368 else
12369 case $PKG_CONFIG in
12370 [\\/]* | ?:[\\/]*)
12371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12372 ;;
12373 *)
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12376 do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12381 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12383 break 2
12384 fi
12385 done
12386 done
12387 IFS=$as_save_IFS
12388
12389 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12390 ;;
12391 esac
12392 fi
12393 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12394 if test -n "$PKG_CONFIG"; then
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12396 $as_echo "$PKG_CONFIG" >&6; }
12397 else
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12400 fi
12401
12402
12403
12404 if test "$PKG_CONFIG" = "no" ; then
12405 HAVE_LIBXML2=no
12406 else
12407 PKG_CONFIG_MIN_VERSION=0.9.0
12408 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12410 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12411
12412 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414 $as_echo "yes" >&6; }
12415 succeeded=yes
12416
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12418 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12419 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12421 $as_echo "$LIBXML2_CFLAGS" >&6; }
12422
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12424 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12425 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12427 $as_echo "$LIBXML2_LIBS" >&6; }
12428 else
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430 $as_echo "no" >&6; }
12431 LIBXML2_CFLAGS=""
12432 LIBXML2_LIBS=""
12433 ## If we have a custom action on failure, don't print errors, but
12434 ## do set a variable so people can do so.
12435 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12436
12437 fi
12438
12439
12440
12441 else
12442 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12443 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12444 fi
12445 fi
12446
12447 if test $succeeded = yes; then
12448 HAVE_LIBXML2=yes
12449 else
12450 HAVE_LIBXML2=no
12451 fi
12452
12453 if test "${HAVE_LIBXML2}" = "yes"; then
12454 LIBS="$LIBXML2_LIBS $LIBS"
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12456 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12457 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459 else
12460 ac_check_lib_save_LIBS=$LIBS
12461 LIBS="-lxml2 $LIBS"
12462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464
12465 /* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12468 #ifdef __cplusplus
12469 extern "C"
12470 #endif
12471 char htmlReadMemory ();
12472 int
12473 main ()
12474 {
12475 return htmlReadMemory ();
12476 ;
12477 return 0;
12478 }
12479 _ACEOF
12480 if ac_fn_c_try_link "$LINENO"; then :
12481 ac_cv_lib_xml2_htmlReadMemory=yes
12482 else
12483 ac_cv_lib_xml2_htmlReadMemory=no
12484 fi
12485 rm -f core conftest.err conftest.$ac_objext \
12486 conftest$ac_exeext conftest.$ac_ext
12487 LIBS=$ac_check_lib_save_LIBS
12488 fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12490 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12491 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12492 HAVE_LIBXML2=yes
12493 else
12494 HAVE_LIBXML2=no
12495 fi
12496
12497 if test "${HAVE_LIBXML2}" = "yes"; then
12498
12499 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12500
12501 else
12502 LIBXML2_LIBS=""
12503 LIBXML2_CFLAGS=""
12504 fi
12505 fi
12506 fi
12507
12508
12509
12510 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12512 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12513 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 #include <netdb.h>
12519 int
12520 main ()
12521 {
12522 return h_errno;
12523 ;
12524 return 0;
12525 }
12526 _ACEOF
12527 if ac_fn_c_try_link "$LINENO"; then :
12528 emacs_cv_netdb_declares_h_errno=yes
12529 else
12530 emacs_cv_netdb_declares_h_errno=no
12531 fi
12532 rm -f core conftest.err conftest.$ac_objext \
12533 conftest$ac_exeext conftest.$ac_ext
12534 fi
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12536 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12537 if test $emacs_cv_netdb_declares_h_errno = yes; then
12538
12539 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12540
12541 fi
12542
12543 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12544 if test "x$ac_cv_type_size_t" = xyes; then :
12545
12546 else
12547
12548 cat >>confdefs.h <<_ACEOF
12549 #define size_t unsigned int
12550 _ACEOF
12551
12552 fi
12553
12554 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12555 # for constant arguments. Useless!
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12557 $as_echo_n "checking for working alloca.h... " >&6; }
12558 if ${ac_cv_working_alloca_h+:} false; then :
12559 $as_echo_n "(cached) " >&6
12560 else
12561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12562 /* end confdefs.h. */
12563 #include <alloca.h>
12564 int
12565 main ()
12566 {
12567 char *p = (char *) alloca (2 * sizeof (int));
12568 if (p) return 0;
12569 ;
12570 return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_link "$LINENO"; then :
12574 ac_cv_working_alloca_h=yes
12575 else
12576 ac_cv_working_alloca_h=no
12577 fi
12578 rm -f core conftest.err conftest.$ac_objext \
12579 conftest$ac_exeext conftest.$ac_ext
12580 fi
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12582 $as_echo "$ac_cv_working_alloca_h" >&6; }
12583 if test $ac_cv_working_alloca_h = yes; then
12584
12585 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12586
12587 fi
12588
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12590 $as_echo_n "checking for alloca... " >&6; }
12591 if ${ac_cv_func_alloca_works+:} false; then :
12592 $as_echo_n "(cached) " >&6
12593 else
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 #ifdef __GNUC__
12597 # define alloca __builtin_alloca
12598 #else
12599 # ifdef _MSC_VER
12600 # include <malloc.h>
12601 # define alloca _alloca
12602 # else
12603 # ifdef HAVE_ALLOCA_H
12604 # include <alloca.h>
12605 # else
12606 # ifdef _AIX
12607 #pragma alloca
12608 # else
12609 # ifndef alloca /* predefined by HP cc +Olibcalls */
12610 void *alloca (size_t);
12611 # endif
12612 # endif
12613 # endif
12614 # endif
12615 #endif
12616
12617 int
12618 main ()
12619 {
12620 char *p = (char *) alloca (1);
12621 if (p) return 0;
12622 ;
12623 return 0;
12624 }
12625 _ACEOF
12626 if ac_fn_c_try_link "$LINENO"; then :
12627 ac_cv_func_alloca_works=yes
12628 else
12629 ac_cv_func_alloca_works=no
12630 fi
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12635 $as_echo "$ac_cv_func_alloca_works" >&6; }
12636
12637 if test $ac_cv_func_alloca_works = yes; then
12638
12639 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12640
12641 else
12642 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12643 # that cause trouble. Some versions do not even contain alloca or
12644 # contain a buggy version. If you still want to use their alloca,
12645 # use ar to extract alloca.o from them instead of compiling alloca.c.
12646
12647 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12648
12649 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12650
12651
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12653 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12654 if ${ac_cv_os_cray+:} false; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h. */
12659 #if defined CRAY && ! defined CRAY2
12660 webecray
12661 #else
12662 wenotbecray
12663 #endif
12664
12665 _ACEOF
12666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12667 $EGREP "webecray" >/dev/null 2>&1; then :
12668 ac_cv_os_cray=yes
12669 else
12670 ac_cv_os_cray=no
12671 fi
12672 rm -f conftest*
12673
12674 fi
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12676 $as_echo "$ac_cv_os_cray" >&6; }
12677 if test $ac_cv_os_cray = yes; then
12678 for ac_func in _getb67 GETB67 getb67; do
12679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12680 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12681 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12682
12683 cat >>confdefs.h <<_ACEOF
12684 #define CRAY_STACKSEG_END $ac_func
12685 _ACEOF
12686
12687 break
12688 fi
12689
12690 done
12691 fi
12692
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12694 $as_echo_n "checking stack direction for C alloca... " >&6; }
12695 if ${ac_cv_c_stack_direction+:} false; then :
12696 $as_echo_n "(cached) " >&6
12697 else
12698 if test "$cross_compiling" = yes; then :
12699 ac_cv_c_stack_direction=0
12700 else
12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12703 $ac_includes_default
12704 int
12705 find_stack_direction ()
12706 {
12707 static char *addr = 0;
12708 auto char dummy;
12709 if (addr == 0)
12710 {
12711 addr = &dummy;
12712 return find_stack_direction ();
12713 }
12714 else
12715 return (&dummy > addr) ? 1 : -1;
12716 }
12717
12718 int
12719 main ()
12720 {
12721 return find_stack_direction () < 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_run "$LINENO"; then :
12725 ac_cv_c_stack_direction=1
12726 else
12727 ac_cv_c_stack_direction=-1
12728 fi
12729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12730 conftest.$ac_objext conftest.beam conftest.$ac_ext
12731 fi
12732
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12735 $as_echo "$ac_cv_c_stack_direction" >&6; }
12736 cat >>confdefs.h <<_ACEOF
12737 #define STACK_DIRECTION $ac_cv_c_stack_direction
12738 _ACEOF
12739
12740
12741 fi
12742
12743
12744 if test x"$ac_cv_func_alloca_works" != xyes; then
12745 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12746 fi
12747
12748 # fmod, logb, and frexp are found in -lm on most systems.
12749 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12751 $as_echo_n "checking for sqrt in -lm... " >&6; }
12752 if ${ac_cv_lib_m_sqrt+:} false; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 ac_check_lib_save_LIBS=$LIBS
12756 LIBS="-lm $LIBS"
12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12758 /* end confdefs.h. */
12759
12760 /* Override any GCC internal prototype to avoid an error.
12761 Use char because int might match the return type of a GCC
12762 builtin and then its argument prototype would still apply. */
12763 #ifdef __cplusplus
12764 extern "C"
12765 #endif
12766 char sqrt ();
12767 int
12768 main ()
12769 {
12770 return sqrt ();
12771 ;
12772 return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_link "$LINENO"; then :
12776 ac_cv_lib_m_sqrt=yes
12777 else
12778 ac_cv_lib_m_sqrt=no
12779 fi
12780 rm -f core conftest.err conftest.$ac_objext \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12785 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12786 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12787 cat >>confdefs.h <<_ACEOF
12788 #define HAVE_LIBM 1
12789 _ACEOF
12790
12791 LIBS="-lm $LIBS"
12792
12793 fi
12794
12795
12796 # Check for mail-locking functions in a "mail" library. Probably this should
12797 # have the same check as for liblockfile below.
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12799 $as_echo_n "checking for maillock in -lmail... " >&6; }
12800 if ${ac_cv_lib_mail_maillock+:} false; then :
12801 $as_echo_n "(cached) " >&6
12802 else
12803 ac_check_lib_save_LIBS=$LIBS
12804 LIBS="-lmail $LIBS"
12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12806 /* end confdefs.h. */
12807
12808 /* Override any GCC internal prototype to avoid an error.
12809 Use char because int might match the return type of a GCC
12810 builtin and then its argument prototype would still apply. */
12811 #ifdef __cplusplus
12812 extern "C"
12813 #endif
12814 char maillock ();
12815 int
12816 main ()
12817 {
12818 return maillock ();
12819 ;
12820 return 0;
12821 }
12822 _ACEOF
12823 if ac_fn_c_try_link "$LINENO"; then :
12824 ac_cv_lib_mail_maillock=yes
12825 else
12826 ac_cv_lib_mail_maillock=no
12827 fi
12828 rm -f core conftest.err conftest.$ac_objext \
12829 conftest$ac_exeext conftest.$ac_ext
12830 LIBS=$ac_check_lib_save_LIBS
12831 fi
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12833 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12834 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
12835 have_mail=yes
12836 else
12837 have_mail=no
12838 fi
12839
12840 if test $have_mail = yes; then
12841 LIBS_MAIL=-lmail
12842 LIBS="$LIBS_MAIL $LIBS"
12843
12844 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12845
12846 else
12847 LIBS_MAIL=
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12850 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12851 if ${ac_cv_lib_lockfile_maillock+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 ac_check_lib_save_LIBS=$LIBS
12855 LIBS="-llockfile $LIBS"
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12858
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char maillock ();
12866 int
12867 main ()
12868 {
12869 return maillock ();
12870 ;
12871 return 0;
12872 }
12873 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
12875 ac_cv_lib_lockfile_maillock=yes
12876 else
12877 ac_cv_lib_lockfile_maillock=no
12878 fi
12879 rm -f core conftest.err conftest.$ac_objext \
12880 conftest$ac_exeext conftest.$ac_ext
12881 LIBS=$ac_check_lib_save_LIBS
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12884 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12885 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
12886 have_lockfile=yes
12887 else
12888 have_lockfile=no
12889 fi
12890
12891 if test $have_lockfile = yes; then
12892 LIBS_MAIL=-llockfile
12893 LIBS="$LIBS_MAIL $LIBS"
12894
12895 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12896
12897 else
12898 # If we have the shared liblockfile, assume we must use it for mail
12899 # locking (e.g. Debian). If we couldn't link against liblockfile
12900 # (no liblockfile.a installed), ensure that we don't need to.
12901 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12902 set dummy liblockfile.so; ac_word=$2
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12904 $as_echo_n "checking for $ac_word... " >&6; }
12905 if ${ac_cv_prog_liblockfile+:} false; then :
12906 $as_echo_n "(cached) " >&6
12907 else
12908 if test -n "$liblockfile"; then
12909 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12910 else
12911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12912 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12913 for as_dir in $as_dummy
12914 do
12915 IFS=$as_save_IFS
12916 test -z "$as_dir" && as_dir=.
12917 for ac_exec_ext in '' $ac_executable_extensions; do
12918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12919 ac_cv_prog_liblockfile="yes"
12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 break 2
12922 fi
12923 done
12924 done
12925 IFS=$as_save_IFS
12926
12927 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12928 fi
12929 fi
12930 liblockfile=$ac_cv_prog_liblockfile
12931 if test -n "$liblockfile"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12933 $as_echo "$liblockfile" >&6; }
12934 else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12937 fi
12938
12939
12940 if test $ac_cv_prog_liblockfile = yes; then
12941 as_fn_error $? "Shared liblockfile found but can't link against it.
12942 This probably means that movemail could lose mail.
12943 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12944 fi
12945 fi
12946 for ac_func in touchlock
12947 do :
12948 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12949 if test "x$ac_cv_func_touchlock" = xyes; then :
12950 cat >>confdefs.h <<_ACEOF
12951 #define HAVE_TOUCHLOCK 1
12952 _ACEOF
12953
12954 fi
12955 done
12956
12957 for ac_header in maillock.h
12958 do :
12959 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12960 if test "x$ac_cv_header_maillock_h" = xyes; then :
12961 cat >>confdefs.h <<_ACEOF
12962 #define HAVE_MAILLOCK_H 1
12963 _ACEOF
12964
12965 fi
12966
12967 done
12968
12969
12970
12971 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12972 ## interlock access to the mail spool. The alternative is a lock file named
12973 ## /usr/spool/mail/$USER.lock.
12974 mail_lock=no
12975 case "$opsys" in
12976 aix4-2) mail_lock="lockf" ;;
12977
12978 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12979
12980 ## On GNU/Linux systems, both methods are used by various mail programs.
12981 ## I assume most people are using newer mailers that have heard of flock.
12982 ## Change this if you need to.
12983 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12984 ## configure gets the right answers, and that means *NOT* using flock.
12985 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12986 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12987 ## Debian maintainer hasn't provided a clean fix for Emacs.
12988 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12989 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12990 ## correct logic. -- fx
12991 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12992 ## liblockfile is a Free Software replacement for libmail, used on
12993 ## Debian systems and elsewhere. -rfr.
12994 gnu-*)
12995 mail_lock="flock"
12996 if test $have_mail = yes || test $have_lockfile = yes; then
12997 test $ac_cv_header_maillock_h = yes && mail_lock=no
12998 fi
12999 ;;
13000 esac
13001
13002 BLESSMAIL_TARGET=
13003 case "$mail_lock" in
13004 flock)
13005 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13006 ;;
13007
13008 lockf)
13009 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13010 ;;
13011
13012 *) BLESSMAIL_TARGET="need-blessmail" ;;
13013 esac
13014
13015
13016
13017 for ac_func in gethostname getdomainname dup2 \
13018 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13019 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13020 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13021 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13022 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13023 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13024 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13025 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13026 cfmakeraw cfsetspeed isnan copysign __executable_start
13027 do :
13028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13029 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13030 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13031 cat >>confdefs.h <<_ACEOF
13032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13033 _ACEOF
13034
13035 fi
13036 done
13037
13038
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13040 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13041 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043 else
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045 /* end confdefs.h. */
13046
13047 int
13048 main ()
13049 {
13050 __builtin_unwind_init ();
13051 ;
13052 return 0;
13053 }
13054 _ACEOF
13055 if ac_fn_c_try_link "$LINENO"; then :
13056 emacs_cv_func___builtin_unwind_init=yes
13057 else
13058 emacs_cv_func___builtin_unwind_init=no
13059 fi
13060 rm -f core conftest.err conftest.$ac_objext \
13061 conftest$ac_exeext conftest.$ac_ext
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13064 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13065 if test $emacs_cv_func___builtin_unwind_init = yes; then
13066
13067 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13068
13069 fi
13070
13071 for ac_header in sys/un.h
13072 do :
13073 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13074 if test "x$ac_cv_header_sys_un_h" = xyes; then :
13075 cat >>confdefs.h <<_ACEOF
13076 #define HAVE_SYS_UN_H 1
13077 _ACEOF
13078
13079 fi
13080
13081 done
13082
13083
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13085 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13086 if ${ac_cv_sys_largefile_source+:} false; then :
13087 $as_echo_n "(cached) " >&6
13088 else
13089 while :; do
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092 #include <sys/types.h> /* for off_t */
13093 #include <stdio.h>
13094 int
13095 main ()
13096 {
13097 int (*fp) (FILE *, off_t, int) = fseeko;
13098 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13099 ;
13100 return 0;
13101 }
13102 _ACEOF
13103 if ac_fn_c_try_link "$LINENO"; then :
13104 ac_cv_sys_largefile_source=no; break
13105 fi
13106 rm -f core conftest.err conftest.$ac_objext \
13107 conftest$ac_exeext conftest.$ac_ext
13108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13110 #define _LARGEFILE_SOURCE 1
13111 #include <sys/types.h> /* for off_t */
13112 #include <stdio.h>
13113 int
13114 main ()
13115 {
13116 int (*fp) (FILE *, off_t, int) = fseeko;
13117 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13118 ;
13119 return 0;
13120 }
13121 _ACEOF
13122 if ac_fn_c_try_link "$LINENO"; then :
13123 ac_cv_sys_largefile_source=1; break
13124 fi
13125 rm -f core conftest.err conftest.$ac_objext \
13126 conftest$ac_exeext conftest.$ac_ext
13127 ac_cv_sys_largefile_source=unknown
13128 break
13129 done
13130 fi
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13132 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13133 case $ac_cv_sys_largefile_source in #(
13134 no | unknown) ;;
13135 *)
13136 cat >>confdefs.h <<_ACEOF
13137 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13138 _ACEOF
13139 ;;
13140 esac
13141 rm -rf conftest*
13142
13143 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13144 # in glibc 2.1.3, but that breaks too many other things.
13145 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13146 if test $ac_cv_sys_largefile_source != unknown; then
13147
13148 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13149
13150 fi
13151
13152
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13154 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13155 if ${ac_cv_func_getpgrp_void+:} false; then :
13156 $as_echo_n "(cached) " >&6
13157 else
13158 # Use it with a single arg.
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 $ac_includes_default
13162 int
13163 main ()
13164 {
13165 getpgrp (0);
13166 ;
13167 return 0;
13168 }
13169 _ACEOF
13170 if ac_fn_c_try_compile "$LINENO"; then :
13171 ac_cv_func_getpgrp_void=no
13172 else
13173 ac_cv_func_getpgrp_void=yes
13174 fi
13175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176
13177 fi
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13179 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13180 if test $ac_cv_func_getpgrp_void = yes; then
13181
13182 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13183
13184 fi
13185
13186
13187 # Configure gnulib.
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198 LIBC_FATAL_STDERR_=1
13199 export LIBC_FATAL_STDERR_
13200
13201
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13203 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13204 if ${gl_cv_func_c99_strtold+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13209 /* On HP-UX before 11.23, strtold returns a struct instead of
13210 long double. Reject implementations like that, by requiring
13211 compatibility with the C99 prototype. */
13212 #include <stdlib.h>
13213 static long double (*p) (char const *, char **) = strtold;
13214 static long double
13215 test (char const *nptr, char **endptr)
13216 {
13217 long double r;
13218 r = strtold (nptr, endptr);
13219 return r;
13220 }
13221 int
13222 main ()
13223 {
13224 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13225 ;
13226 return 0;
13227 }
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"; then :
13230 gl_cv_func_c99_strtold=yes
13231 else
13232 gl_cv_func_c99_strtold=no
13233 fi
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13238 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13239 if test $gl_cv_func_c99_strtold = yes; then
13240
13241 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13242
13243 fi
13244
13245
13246 GNULIB__EXIT=0;
13247 GNULIB_ATOLL=0;
13248 GNULIB_CALLOC_POSIX=0;
13249 GNULIB_CANONICALIZE_FILE_NAME=0;
13250 GNULIB_GETLOADAVG=0;
13251 GNULIB_GETSUBOPT=0;
13252 GNULIB_GRANTPT=0;
13253 GNULIB_MALLOC_POSIX=0;
13254 GNULIB_MKDTEMP=0;
13255 GNULIB_MKOSTEMP=0;
13256 GNULIB_MKOSTEMPS=0;
13257 GNULIB_MKSTEMP=0;
13258 GNULIB_MKSTEMPS=0;
13259 GNULIB_PTSNAME=0;
13260 GNULIB_PUTENV=0;
13261 GNULIB_RANDOM_R=0;
13262 GNULIB_REALLOC_POSIX=0;
13263 GNULIB_REALPATH=0;
13264 GNULIB_RPMATCH=0;
13265 GNULIB_SETENV=0;
13266 GNULIB_STRTOD=0;
13267 GNULIB_STRTOLL=0;
13268 GNULIB_STRTOULL=0;
13269 GNULIB_SYSTEM_POSIX=0;
13270 GNULIB_UNLOCKPT=0;
13271 GNULIB_UNSETENV=0;
13272 HAVE__EXIT=1;
13273 HAVE_ATOLL=1;
13274 HAVE_CANONICALIZE_FILE_NAME=1;
13275 HAVE_DECL_GETLOADAVG=1;
13276 HAVE_GETSUBOPT=1;
13277 HAVE_GRANTPT=1;
13278 HAVE_MKDTEMP=1;
13279 HAVE_MKOSTEMP=1;
13280 HAVE_MKOSTEMPS=1;
13281 HAVE_MKSTEMP=1;
13282 HAVE_MKSTEMPS=1;
13283 HAVE_PTSNAME=1;
13284 HAVE_RANDOM_H=1;
13285 HAVE_RANDOM_R=1;
13286 HAVE_REALPATH=1;
13287 HAVE_RPMATCH=1;
13288 HAVE_SETENV=1;
13289 HAVE_DECL_SETENV=1;
13290 HAVE_STRTOD=1;
13291 HAVE_STRTOLL=1;
13292 HAVE_STRTOULL=1;
13293 HAVE_STRUCT_RANDOM_DATA=1;
13294 HAVE_SYS_LOADAVG_H=0;
13295 HAVE_UNLOCKPT=1;
13296 HAVE_DECL_UNSETENV=1;
13297 REPLACE_CALLOC=0;
13298 REPLACE_CANONICALIZE_FILE_NAME=0;
13299 REPLACE_MALLOC=0;
13300 REPLACE_MKSTEMP=0;
13301 REPLACE_PUTENV=0;
13302 REPLACE_REALLOC=0;
13303 REPLACE_REALPATH=0;
13304 REPLACE_SETENV=0;
13305 REPLACE_STRTOD=0;
13306 REPLACE_UNSETENV=0;
13307
13308
13309 GNULIB_CHOWN=0;
13310 GNULIB_CLOSE=0;
13311 GNULIB_DUP2=0;
13312 GNULIB_DUP3=0;
13313 GNULIB_ENVIRON=0;
13314 GNULIB_EUIDACCESS=0;
13315 GNULIB_FACCESSAT=0;
13316 GNULIB_FCHDIR=0;
13317 GNULIB_FCHOWNAT=0;
13318 GNULIB_FSYNC=0;
13319 GNULIB_FTRUNCATE=0;
13320 GNULIB_GETCWD=0;
13321 GNULIB_GETDOMAINNAME=0;
13322 GNULIB_GETDTABLESIZE=0;
13323 GNULIB_GETGROUPS=0;
13324 GNULIB_GETHOSTNAME=0;
13325 GNULIB_GETLOGIN=0;
13326 GNULIB_GETLOGIN_R=0;
13327 GNULIB_GETPAGESIZE=0;
13328 GNULIB_GETUSERSHELL=0;
13329 GNULIB_LCHOWN=0;
13330 GNULIB_LINK=0;
13331 GNULIB_LINKAT=0;
13332 GNULIB_LSEEK=0;
13333 GNULIB_PIPE=0;
13334 GNULIB_PIPE2=0;
13335 GNULIB_PREAD=0;
13336 GNULIB_PWRITE=0;
13337 GNULIB_READLINK=0;
13338 GNULIB_READLINKAT=0;
13339 GNULIB_RMDIR=0;
13340 GNULIB_SLEEP=0;
13341 GNULIB_SYMLINK=0;
13342 GNULIB_SYMLINKAT=0;
13343 GNULIB_TTYNAME_R=0;
13344 GNULIB_UNISTD_H_GETOPT=0;
13345 GNULIB_UNISTD_H_SIGPIPE=0;
13346 GNULIB_UNLINK=0;
13347 GNULIB_UNLINKAT=0;
13348 GNULIB_USLEEP=0;
13349 GNULIB_WRITE=0;
13350 HAVE_CHOWN=1;
13351 HAVE_DUP2=1;
13352 HAVE_DUP3=1;
13353 HAVE_EUIDACCESS=1;
13354 HAVE_FACCESSAT=1;
13355 HAVE_FCHDIR=1;
13356 HAVE_FCHOWNAT=1;
13357 HAVE_FSYNC=1;
13358 HAVE_FTRUNCATE=1;
13359 HAVE_GETDTABLESIZE=1;
13360 HAVE_GETGROUPS=1;
13361 HAVE_GETHOSTNAME=1;
13362 HAVE_GETLOGIN=1;
13363 HAVE_GETPAGESIZE=1;
13364 HAVE_LCHOWN=1;
13365 HAVE_LINK=1;
13366 HAVE_LINKAT=1;
13367 HAVE_PIPE=1;
13368 HAVE_PIPE2=1;
13369 HAVE_PREAD=1;
13370 HAVE_PWRITE=1;
13371 HAVE_READLINK=1;
13372 HAVE_READLINKAT=1;
13373 HAVE_SLEEP=1;
13374 HAVE_SYMLINK=1;
13375 HAVE_SYMLINKAT=1;
13376 HAVE_UNLINKAT=1;
13377 HAVE_USLEEP=1;
13378 HAVE_DECL_ENVIRON=1;
13379 HAVE_DECL_FCHDIR=1;
13380 HAVE_DECL_GETDOMAINNAME=1;
13381 HAVE_DECL_GETLOGIN_R=1;
13382 HAVE_DECL_GETPAGESIZE=1;
13383 HAVE_DECL_GETUSERSHELL=1;
13384 HAVE_DECL_TTYNAME_R=1;
13385 HAVE_OS_H=0;
13386 HAVE_SYS_PARAM_H=0;
13387 REPLACE_CHOWN=0;
13388 REPLACE_CLOSE=0;
13389 REPLACE_DUP=0;
13390 REPLACE_DUP2=0;
13391 REPLACE_FCHOWNAT=0;
13392 REPLACE_GETCWD=0;
13393 REPLACE_GETDOMAINNAME=0;
13394 REPLACE_GETLOGIN_R=0;
13395 REPLACE_GETGROUPS=0;
13396 REPLACE_GETPAGESIZE=0;
13397 REPLACE_LCHOWN=0;
13398 REPLACE_LINK=0;
13399 REPLACE_LINKAT=0;
13400 REPLACE_LSEEK=0;
13401 REPLACE_PREAD=0;
13402 REPLACE_PWRITE=0;
13403 REPLACE_READLINK=0;
13404 REPLACE_RMDIR=0;
13405 REPLACE_SLEEP=0;
13406 REPLACE_SYMLINK=0;
13407 REPLACE_TTYNAME_R=0;
13408 REPLACE_UNLINK=0;
13409 REPLACE_UNLINKAT=0;
13410 REPLACE_USLEEP=0;
13411 REPLACE_WRITE=0;
13412 UNISTD_H_HAVE_WINSOCK2_H=0;
13413 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13414
13415
13416
13417
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13419 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13420 if ${gl_cv_have_include_next+:} false; then :
13421 $as_echo_n "(cached) " >&6
13422 else
13423 rm -rf conftestd1a conftestd1b conftestd2
13424 mkdir conftestd1a conftestd1b conftestd2
13425 cat <<EOF > conftestd1a/conftest.h
13426 #define DEFINED_IN_CONFTESTD1
13427 #include_next <conftest.h>
13428 #ifdef DEFINED_IN_CONFTESTD2
13429 int foo;
13430 #else
13431 #error "include_next doesn't work"
13432 #endif
13433 EOF
13434 cat <<EOF > conftestd1b/conftest.h
13435 #define DEFINED_IN_CONFTESTD1
13436 #include <stdio.h>
13437 #include_next <conftest.h>
13438 #ifdef DEFINED_IN_CONFTESTD2
13439 int foo;
13440 #else
13441 #error "include_next doesn't work"
13442 #endif
13443 EOF
13444 cat <<EOF > conftestd2/conftest.h
13445 #ifndef DEFINED_IN_CONFTESTD1
13446 #error "include_next test doesn't work"
13447 #endif
13448 #define DEFINED_IN_CONFTESTD2
13449 EOF
13450 gl_save_CPPFLAGS="$CPPFLAGS"
13451 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13453 /* end confdefs.h. */
13454 #include <conftest.h>
13455 _ACEOF
13456 if ac_fn_c_try_compile "$LINENO"; then :
13457 gl_cv_have_include_next=yes
13458 else
13459 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462 #include <conftest.h>
13463 _ACEOF
13464 if ac_fn_c_try_compile "$LINENO"; then :
13465 gl_cv_have_include_next=buggy
13466 else
13467 gl_cv_have_include_next=no
13468 fi
13469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13470
13471 fi
13472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13473 CPPFLAGS="$gl_save_CPPFLAGS"
13474 rm -rf conftestd1a conftestd1b conftestd2
13475
13476 fi
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13478 $as_echo "$gl_cv_have_include_next" >&6; }
13479 PRAGMA_SYSTEM_HEADER=
13480 if test $gl_cv_have_include_next = yes; then
13481 INCLUDE_NEXT=include_next
13482 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13483 if test -n "$GCC"; then
13484 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13485 fi
13486 else
13487 if test $gl_cv_have_include_next = buggy; then
13488 INCLUDE_NEXT=include
13489 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13490 else
13491 INCLUDE_NEXT=include
13492 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13493 fi
13494 fi
13495
13496
13497
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13499 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13500 if ${gl_cv_pragma_columns+:} false; then :
13501 $as_echo_n "(cached) " >&6
13502 else
13503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13504 /* end confdefs.h. */
13505
13506 #ifdef __TANDEM
13507 choke me
13508 #endif
13509
13510 _ACEOF
13511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13512 $EGREP "choke me" >/dev/null 2>&1; then :
13513 gl_cv_pragma_columns=yes
13514 else
13515 gl_cv_pragma_columns=no
13516 fi
13517 rm -f conftest*
13518
13519
13520 fi
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13522 $as_echo "$gl_cv_pragma_columns" >&6; }
13523 if test $gl_cv_pragma_columns = yes; then
13524 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13525 else
13526 PRAGMA_COLUMNS=
13527 fi
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545 if test $gl_cv_have_include_next = yes; then
13546 gl_cv_next_getopt_h='<'getopt.h'>'
13547 else
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13549 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13550 if ${gl_cv_next_getopt_h+:} false; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553
13554 if test $ac_cv_header_getopt_h = yes; then
13555
13556
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <getopt.h>
13560
13561 _ACEOF
13562 case "$host_os" in
13563 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13564 *) gl_absname_cpp="$ac_cpp" ;;
13565 esac
13566 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13567 sed -n '\#/getopt.h#{
13568 s#.*"\(.*/getopt.h\)".*#\1#
13569 s#^/[^/]#//&#
13570 p
13571 q
13572 }'`'"'
13573 else
13574 gl_cv_next_getopt_h='<'getopt.h'>'
13575 fi
13576
13577
13578 fi
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13580 $as_echo "$gl_cv_next_getopt_h" >&6; }
13581 fi
13582 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13583
13584 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13585 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13586 gl_next_as_first_directive='<'getopt.h'>'
13587 else
13588 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13589 gl_next_as_first_directive=$gl_cv_next_getopt_h
13590 fi
13591 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13592
13593
13594
13595
13596 if test $ac_cv_header_getopt_h = yes; then
13597 HAVE_GETOPT_H=1
13598 else
13599 HAVE_GETOPT_H=0
13600 fi
13601
13602
13603 gl_replace_getopt=
13604
13605 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13606 for ac_header in getopt.h
13607 do :
13608 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13609 if test "x$ac_cv_header_getopt_h" = xyes; then :
13610 cat >>confdefs.h <<_ACEOF
13611 #define HAVE_GETOPT_H 1
13612 _ACEOF
13613
13614 else
13615 gl_replace_getopt=yes
13616 fi
13617
13618 done
13619
13620 fi
13621
13622 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13623 for ac_func in getopt_long_only
13624 do :
13625 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13626 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13627 cat >>confdefs.h <<_ACEOF
13628 #define HAVE_GETOPT_LONG_ONLY 1
13629 _ACEOF
13630
13631 else
13632 gl_replace_getopt=yes
13633 fi
13634 done
13635
13636 fi
13637
13638 if test -z "$gl_replace_getopt"; then
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13640 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13641 if ${gl_cv_func_getopt_posix+:} false; then :
13642 $as_echo_n "(cached) " >&6
13643 else
13644
13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13646 /* end confdefs.h. */
13647 #include <unistd.h>
13648 int
13649 main ()
13650 {
13651 int *p = &optreset; return optreset;
13652 ;
13653 return 0;
13654 }
13655 _ACEOF
13656 if ac_fn_c_try_compile "$LINENO"; then :
13657 gl_optind_min=1
13658 else
13659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13660 /* end confdefs.h. */
13661 #include <getopt.h>
13662 int
13663 main ()
13664 {
13665 return !getopt_clip;
13666 ;
13667 return 0;
13668 }
13669 _ACEOF
13670 if ac_fn_c_try_compile "$LINENO"; then :
13671 gl_optind_min=1
13672 else
13673 gl_optind_min=0
13674 fi
13675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678
13679 gl_save_CPPFLAGS=$CPPFLAGS
13680 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
13681 if test "$cross_compiling" = yes; then :
13682 case "$host_os" in
13683 mingw*) gl_cv_func_getopt_posix="guessing no";;
13684 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
13685 *) gl_cv_func_getopt_posix="guessing yes";;
13686 esac
13687
13688 else
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691
13692 #include <unistd.h>
13693 #include <stdlib.h>
13694 #include <string.h>
13695
13696 int
13697 main ()
13698 {
13699 {
13700 int argc = 0;
13701 char *argv[10];
13702 int c;
13703
13704 argv[argc++] = "program";
13705 argv[argc++] = "-a";
13706 argv[argc++] = "foo";
13707 argv[argc++] = "bar";
13708 argv[argc] = NULL;
13709 optind = OPTIND_MIN;
13710 opterr = 0;
13711
13712 c = getopt (argc, argv, "ab");
13713 if (!(c == 'a'))
13714 return 1;
13715 c = getopt (argc, argv, "ab");
13716 if (!(c == -1))
13717 return 2;
13718 if (!(optind == 2))
13719 return 3;
13720 }
13721 /* Some internal state exists at this point. */
13722 {
13723 int argc = 0;
13724 char *argv[10];
13725 int c;
13726
13727 argv[argc++] = "program";
13728 argv[argc++] = "donald";
13729 argv[argc++] = "-p";
13730 argv[argc++] = "billy";
13731 argv[argc++] = "duck";
13732 argv[argc++] = "-a";
13733 argv[argc++] = "bar";
13734 argv[argc] = NULL;
13735 optind = OPTIND_MIN;
13736 opterr = 0;
13737
13738 c = getopt (argc, argv, "+abp:q:");
13739 if (!(c == -1))
13740 return 4;
13741 if (!(strcmp (argv[0], "program") == 0))
13742 return 5;
13743 if (!(strcmp (argv[1], "donald") == 0))
13744 return 6;
13745 if (!(strcmp (argv[2], "-p") == 0))
13746 return 7;
13747 if (!(strcmp (argv[3], "billy") == 0))
13748 return 8;
13749 if (!(strcmp (argv[4], "duck") == 0))
13750 return 9;
13751 if (!(strcmp (argv[5], "-a") == 0))
13752 return 10;
13753 if (!(strcmp (argv[6], "bar") == 0))
13754 return 11;
13755 if (!(optind == 1))
13756 return 12;
13757 }
13758 /* Detect MacOS 10.5, AIX 7.1 bug. */
13759 {
13760 char *argv[3] = { "program", "-ab", NULL };
13761 optind = OPTIND_MIN;
13762 opterr = 0;
13763 if (getopt (2, argv, "ab:") != 'a')
13764 return 13;
13765 if (getopt (2, argv, "ab:") != '?')
13766 return 14;
13767 if (optopt != 'b')
13768 return 15;
13769 if (optind != 2)
13770 return 16;
13771 }
13772
13773 return 0;
13774 }
13775
13776 _ACEOF
13777 if ac_fn_c_try_run "$LINENO"; then :
13778 gl_cv_func_getopt_posix=yes
13779 else
13780 gl_cv_func_getopt_posix=no
13781 fi
13782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13783 conftest.$ac_objext conftest.beam conftest.$ac_ext
13784 fi
13785
13786 CPPFLAGS=$gl_save_CPPFLAGS
13787
13788 fi
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13790 $as_echo "$gl_cv_func_getopt_posix" >&6; }
13791 case "$gl_cv_func_getopt_posix" in
13792 *no) gl_replace_getopt=yes ;;
13793 esac
13794 fi
13795
13796 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13798 $as_echo_n "checking for working GNU getopt function... " >&6; }
13799 if ${gl_cv_func_getopt_gnu+:} false; then :
13800 $as_echo_n "(cached) " >&6
13801 else
13802 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13803 # optstring is necessary for programs like m4 that have POSIX-mandated
13804 # semantics for supporting options interspersed with files.
13805 # Also, since getopt_long is a GNU extension, we require optind=0.
13806 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13807 # so take care to revert to the correct (non-)export state.
13808 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13809 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13810 xx) gl_had_POSIXLY_CORRECT=exported ;;
13811 x) gl_had_POSIXLY_CORRECT=yes ;;
13812 *) gl_had_POSIXLY_CORRECT= ;;
13813 esac
13814 POSIXLY_CORRECT=1
13815 export POSIXLY_CORRECT
13816 if test "$cross_compiling" = yes; then :
13817 case $host_os:$ac_cv_have_decl_optreset in
13818 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
13819 *:yes) gl_cv_func_getopt_gnu=no;;
13820 *) gl_cv_func_getopt_gnu=yes;;
13821 esac
13822
13823 else
13824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13825 /* end confdefs.h. */
13826 #include <getopt.h>
13827 #include <stddef.h>
13828 #include <string.h>
13829
13830 int
13831 main ()
13832 {
13833
13834 int result = 0;
13835 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
13836 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
13837 OSF/1 5.1, Solaris 10. */
13838 {
13839 char *myargv[3];
13840 myargv[0] = "conftest";
13841 myargv[1] = "-+";
13842 myargv[2] = 0;
13843 opterr = 0;
13844 if (getopt (2, myargv, "+a") != '?')
13845 result |= 1;
13846 }
13847 /* This code succeeds on glibc 2.8, mingw,
13848 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
13849 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
13850 {
13851 char *argv[] = { "program", "-p", "foo", "bar", NULL };
13852
13853 optind = 1;
13854 if (getopt (4, argv, "p::") != 'p')
13855 result |= 2;
13856 else if (optarg != NULL)
13857 result |= 4;
13858 else if (getopt (4, argv, "p::") != -1)
13859 result |= 6;
13860 else if (optind != 2)
13861 result |= 8;
13862 }
13863 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
13864 {
13865 char *argv[] = { "program", "foo", "-p", NULL };
13866 optind = 0;
13867 if (getopt (3, argv, "-p") != 1)
13868 result |= 16;
13869 else if (getopt (3, argv, "-p") != 'p')
13870 result |= 32;
13871 }
13872 /* This code fails on glibc 2.11. */
13873 {
13874 char *argv[] = { "program", "-b", "-a", NULL };
13875 optind = opterr = 0;
13876 if (getopt (3, argv, "+:a:b") != 'b')
13877 result |= 64;
13878 else if (getopt (3, argv, "+:a:b") != ':')
13879 result |= 64;
13880 }
13881 return result;
13882
13883 ;
13884 return 0;
13885 }
13886 _ACEOF
13887 if ac_fn_c_try_run "$LINENO"; then :
13888 gl_cv_func_getopt_gnu=yes
13889 else
13890 gl_cv_func_getopt_gnu=no
13891 fi
13892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13893 conftest.$ac_objext conftest.beam conftest.$ac_ext
13894 fi
13895
13896 case $gl_had_POSIXLY_CORRECT in
13897 exported) ;;
13898 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
13899 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
13900 esac
13901
13902 fi
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13904 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
13905 if test "$gl_cv_func_getopt_gnu" = "no"; then
13906 gl_replace_getopt=yes
13907 fi
13908 fi
13909
13910 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13911 if test "x$ac_cv_have_decl_getenv" = xyes; then :
13912 ac_have_decl=1
13913 else
13914 ac_have_decl=0
13915 fi
13916
13917 cat >>confdefs.h <<_ACEOF
13918 #define HAVE_DECL_GETENV $ac_have_decl
13919 _ACEOF
13920
13921
13922
13923
13924
13925
13926 if test -n "$gl_replace_getopt"; then :
13927
13928
13929
13930 GETOPT_H=getopt.h
13931
13932 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13933
13934
13935
13936 GNULIB_UNISTD_H_GETOPT=1
13937
13938
13939
13940
13941
13942
13943
13944
13945 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13956
13957
13958
13959
13960
13961
13962 fi
13963
13964
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13966 $as_echo_n "checking for inline... " >&6; }
13967 if ${ac_cv_c_inline+:} false; then :
13968 $as_echo_n "(cached) " >&6
13969 else
13970 ac_cv_c_inline=no
13971 for ac_kw in inline __inline__ __inline; do
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13973 /* end confdefs.h. */
13974 #ifndef __cplusplus
13975 typedef int foo_t;
13976 static $ac_kw foo_t static_foo () {return 0; }
13977 $ac_kw foo_t foo () {return 0; }
13978 #endif
13979
13980 _ACEOF
13981 if ac_fn_c_try_compile "$LINENO"; then :
13982 ac_cv_c_inline=$ac_kw
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13985 test "$ac_cv_c_inline" != no && break
13986 done
13987
13988 fi
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13990 $as_echo "$ac_cv_c_inline" >&6; }
13991
13992 case $ac_cv_c_inline in
13993 inline | yes) ;;
13994 *)
13995 case $ac_cv_c_inline in
13996 no) ac_val=;;
13997 *) ac_val=$ac_cv_c_inline;;
13998 esac
13999 cat >>confdefs.h <<_ACEOF
14000 #ifndef __cplusplus
14001 #define inline $ac_val
14002 #endif
14003 _ACEOF
14004 ;;
14005 esac
14006
14007
14008 GNULIB_MKTIME=0;
14009 GNULIB_NANOSLEEP=0;
14010 GNULIB_STRPTIME=0;
14011 GNULIB_TIMEGM=0;
14012 GNULIB_TIME_R=0;
14013 HAVE_DECL_LOCALTIME_R=1;
14014 HAVE_NANOSLEEP=1;
14015 HAVE_STRPTIME=1;
14016 HAVE_TIMEGM=1;
14017 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14018 REPLACE_MKTIME=GNULIB_PORTCHECK;
14019 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14020 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14021
14022
14023
14024
14025 for ac_func in $ac_func_list
14026 do :
14027 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14029 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14030 cat >>confdefs.h <<_ACEOF
14031 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14032 _ACEOF
14033
14034 fi
14035 done
14036
14037
14038
14039
14040 gl_cv_c_multiarch=no
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042 /* end confdefs.h. */
14043 #ifndef __APPLE_CC__
14044 not a universal capable compiler
14045 #endif
14046 typedef int dummy;
14047
14048 _ACEOF
14049 if ac_fn_c_try_compile "$LINENO"; then :
14050
14051 arch=
14052 prev=
14053 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14054 if test -n "$prev"; then
14055 case $word in
14056 i?86 | x86_64 | ppc | ppc64)
14057 if test -z "$arch" || test "$arch" = "$word"; then
14058 arch="$word"
14059 else
14060 gl_cv_c_multiarch=yes
14061 fi
14062 ;;
14063 esac
14064 prev=
14065 else
14066 if test "x$word" = "x-arch"; then
14067 prev=arch
14068 fi
14069 fi
14070 done
14071
14072 fi
14073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14074 if test $gl_cv_c_multiarch = yes; then
14075 APPLE_UNIVERSAL_BUILD=1
14076 else
14077 APPLE_UNIVERSAL_BUILD=0
14078 fi
14079
14080
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14082 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14083 if ${ac_cv_header_stdbool_h+:} false; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14087 /* end confdefs.h. */
14088
14089 #include <stdbool.h>
14090 #ifndef bool
14091 "error: bool is not defined"
14092 #endif
14093 #ifndef false
14094 "error: false is not defined"
14095 #endif
14096 #if false
14097 "error: false is not 0"
14098 #endif
14099 #ifndef true
14100 "error: true is not defined"
14101 #endif
14102 #if true != 1
14103 "error: true is not 1"
14104 #endif
14105 #ifndef __bool_true_false_are_defined
14106 "error: __bool_true_false_are_defined is not defined"
14107 #endif
14108
14109 struct s { _Bool s: 1; _Bool t; } s;
14110
14111 char a[true == 1 ? 1 : -1];
14112 char b[false == 0 ? 1 : -1];
14113 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14114 char d[(bool) 0.5 == true ? 1 : -1];
14115 /* See body of main program for 'e'. */
14116 char f[(_Bool) 0.0 == false ? 1 : -1];
14117 char g[true];
14118 char h[sizeof (_Bool)];
14119 char i[sizeof s.t];
14120 enum { j = false, k = true, l = false * true, m = true * 256 };
14121 /* The following fails for
14122 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14123 _Bool n[m];
14124 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14125 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14126 /* Catch a bug in an HP-UX C compiler. See
14127 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14128 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14129 */
14130 _Bool q = true;
14131 _Bool *pq = &q;
14132
14133 int
14134 main ()
14135 {
14136
14137 bool e = &s;
14138 *pq |= q;
14139 *pq |= ! q;
14140 /* Refer to every declared value, to avoid compiler optimizations. */
14141 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14142 + !m + !n + !o + !p + !q + !pq);
14143
14144 ;
14145 return 0;
14146 }
14147 _ACEOF
14148 if ac_fn_c_try_compile "$LINENO"; then :
14149 ac_cv_header_stdbool_h=yes
14150 else
14151 ac_cv_header_stdbool_h=no
14152 fi
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154 fi
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14156 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14157 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14158 if test "x$ac_cv_type__Bool" = xyes; then :
14159
14160 cat >>confdefs.h <<_ACEOF
14161 #define HAVE__BOOL 1
14162 _ACEOF
14163
14164
14165 fi
14166
14167
14168
14169 REPLACE_NULL=0;
14170 HAVE_WCHAR_T=1;
14171 STDDEF_H='';
14172
14173
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14175 $as_echo_n "checking for wchar_t... " >&6; }
14176 if ${gt_cv_c_wchar_t+:} false; then :
14177 $as_echo_n "(cached) " >&6
14178 else
14179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14180 /* end confdefs.h. */
14181 #include <stddef.h>
14182 wchar_t foo = (wchar_t)'\0';
14183 int
14184 main ()
14185 {
14186
14187 ;
14188 return 0;
14189 }
14190 _ACEOF
14191 if ac_fn_c_try_compile "$LINENO"; then :
14192 gt_cv_c_wchar_t=yes
14193 else
14194 gt_cv_c_wchar_t=no
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14197 fi
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14199 $as_echo "$gt_cv_c_wchar_t" >&6; }
14200 if test $gt_cv_c_wchar_t = yes; then
14201
14202 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14203
14204 fi
14205
14206
14207 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14208 "
14209 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14210
14211 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14212
14213 fi
14214
14215
14216
14217
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14219 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14220 if ${ac_cv_c_restrict+:} false; then :
14221 $as_echo_n "(cached) " >&6
14222 else
14223 ac_cv_c_restrict=no
14224 # The order here caters to the fact that C++ does not require restrict.
14225 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 typedef int * int_ptr;
14229 int foo (int_ptr $ac_kw ip) {
14230 return ip[0];
14231 }
14232 int
14233 main ()
14234 {
14235 int s[1];
14236 int * $ac_kw t = s;
14237 t[0] = 0;
14238 return foo(t)
14239 ;
14240 return 0;
14241 }
14242 _ACEOF
14243 if ac_fn_c_try_compile "$LINENO"; then :
14244 ac_cv_c_restrict=$ac_kw
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247 test "$ac_cv_c_restrict" != no && break
14248 done
14249
14250 fi
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14252 $as_echo "$ac_cv_c_restrict" >&6; }
14253
14254 case $ac_cv_c_restrict in
14255 restrict) ;;
14256 no) $as_echo "#define restrict /**/" >>confdefs.h
14257 ;;
14258 *) cat >>confdefs.h <<_ACEOF
14259 #define restrict $ac_cv_c_restrict
14260 _ACEOF
14261 ;;
14262 esac
14263
14264
14265
14266
14267
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14269 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14270 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14271 $as_echo_n "(cached) " >&6
14272 else
14273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14274 /* end confdefs.h. */
14275 #include <time.h>
14276
14277 int
14278 main ()
14279 {
14280 static struct timespec x; x.tv_sec = x.tv_nsec;
14281 ;
14282 return 0;
14283 }
14284 _ACEOF
14285 if ac_fn_c_try_compile "$LINENO"; then :
14286 gl_cv_sys_struct_timespec_in_time_h=yes
14287 else
14288 gl_cv_sys_struct_timespec_in_time_h=no
14289 fi
14290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291 fi
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14293 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14294
14295 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14296 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14297 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14298 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14299 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14300 else
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14302 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14303 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14304 $as_echo_n "(cached) " >&6
14305 else
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14308 #include <sys/time.h>
14309
14310 int
14311 main ()
14312 {
14313 static struct timespec x; x.tv_sec = x.tv_nsec;
14314 ;
14315 return 0;
14316 }
14317 _ACEOF
14318 if ac_fn_c_try_compile "$LINENO"; then :
14319 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14320 else
14321 gl_cv_sys_struct_timespec_in_sys_time_h=no
14322 fi
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14326 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14327 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14328 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14329 else
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14331 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14332 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14333 $as_echo_n "(cached) " >&6
14334 else
14335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14336 /* end confdefs.h. */
14337 #include <pthread.h>
14338
14339 int
14340 main ()
14341 {
14342 static struct timespec x; x.tv_sec = x.tv_nsec;
14343 ;
14344 return 0;
14345 }
14346 _ACEOF
14347 if ac_fn_c_try_compile "$LINENO"; then :
14348 gl_cv_sys_struct_timespec_in_pthread_h=yes
14349 else
14350 gl_cv_sys_struct_timespec_in_pthread_h=no
14351 fi
14352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353 fi
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14355 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14356 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14357 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14358 fi
14359 fi
14360 fi
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376 if test $gl_cv_have_include_next = yes; then
14377 gl_cv_next_time_h='<'time.h'>'
14378 else
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14380 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14381 if ${gl_cv_next_time_h+:} false; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387 #include <time.h>
14388
14389 _ACEOF
14390 case "$host_os" in
14391 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14392 *) gl_absname_cpp="$ac_cpp" ;;
14393 esac
14394 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14395 sed -n '\#/time.h#{
14396 s#.*"\(.*/time.h\)".*#\1#
14397 s#^/[^/]#//&#
14398 p
14399 q
14400 }'`'"'
14401
14402
14403 fi
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14405 $as_echo "$gl_cv_next_time_h" >&6; }
14406 fi
14407 NEXT_TIME_H=$gl_cv_next_time_h
14408
14409 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14410 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14411 gl_next_as_first_directive='<'time.h'>'
14412 else
14413 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14414 gl_next_as_first_directive=$gl_cv_next_time_h
14415 fi
14416 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14417
14418
14419
14420
14421
14422
14423 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14424 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14425 ac_have_decl=1
14426 else
14427 ac_have_decl=0
14428 fi
14429
14430 cat >>confdefs.h <<_ACEOF
14431 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14432 _ACEOF
14433
14434
14435
14436
14437 if false; then
14438 GL_COND_LIBTOOL_TRUE=
14439 GL_COND_LIBTOOL_FALSE='#'
14440 else
14441 GL_COND_LIBTOOL_TRUE='#'
14442 GL_COND_LIBTOOL_FALSE=
14443 fi
14444
14445 gl_cond_libtool=false
14446 gl_libdeps=
14447 gl_ltlibdeps=
14448 gl_m4_base='m4'
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458 gl_source_base='lib'
14459 # Code from module arg-nonnull:
14460 # Code from module c++defs:
14461 # Code from module dtoastr:
14462
14463 # Code from module extensions:
14464 # Code from module getloadavg:
14465
14466
14467 # Persuade glibc <stdlib.h> to declare getloadavg().
14468
14469
14470 gl_have_func=no # yes means we've found a way to get the load average.
14471
14472 # Make sure getloadavg.c is where it belongs, at configure-time.
14473 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
14474 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
14475
14476 gl_save_LIBS=$LIBS
14477
14478 # Check for getloadavg, but be sure not to touch the cache variable.
14479 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
14480 if test "x$ac_cv_func_getloadavg" = xyes; then :
14481 exit 0
14482 else
14483 exit 1
14484 fi
14485 ) && gl_have_func=yes
14486
14487 # On HPUX9, an unprivileged user can get load averages through this function.
14488 for ac_func in pstat_getdynamic
14489 do :
14490 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
14491 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
14492 cat >>confdefs.h <<_ACEOF
14493 #define HAVE_PSTAT_GETDYNAMIC 1
14494 _ACEOF
14495
14496 fi
14497 done
14498
14499
14500 # Solaris has libkstat which does not require root.
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
14502 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
14503 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
14504 $as_echo_n "(cached) " >&6
14505 else
14506 ac_check_lib_save_LIBS=$LIBS
14507 LIBS="-lkstat $LIBS"
14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14509 /* end confdefs.h. */
14510
14511 /* Override any GCC internal prototype to avoid an error.
14512 Use char because int might match the return type of a GCC
14513 builtin and then its argument prototype would still apply. */
14514 #ifdef __cplusplus
14515 extern "C"
14516 #endif
14517 char kstat_open ();
14518 int
14519 main ()
14520 {
14521 return kstat_open ();
14522 ;
14523 return 0;
14524 }
14525 _ACEOF
14526 if ac_fn_c_try_link "$LINENO"; then :
14527 ac_cv_lib_kstat_kstat_open=yes
14528 else
14529 ac_cv_lib_kstat_kstat_open=no
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext \
14532 conftest$ac_exeext conftest.$ac_ext
14533 LIBS=$ac_check_lib_save_LIBS
14534 fi
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
14536 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
14537 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
14538 cat >>confdefs.h <<_ACEOF
14539 #define HAVE_LIBKSTAT 1
14540 _ACEOF
14541
14542 LIBS="-lkstat $LIBS"
14543
14544 fi
14545
14546 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
14547
14548 # AIX has libperfstat which does not require root
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
14550 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
14551 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 ac_check_lib_save_LIBS=$LIBS
14555 LIBS="-lperfstat $LIBS"
14556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14557 /* end confdefs.h. */
14558
14559 /* Override any GCC internal prototype to avoid an error.
14560 Use char because int might match the return type of a GCC
14561 builtin and then its argument prototype would still apply. */
14562 #ifdef __cplusplus
14563 extern "C"
14564 #endif
14565 char perfstat_cpu_total ();
14566 int
14567 main ()
14568 {
14569 return perfstat_cpu_total ();
14570 ;
14571 return 0;
14572 }
14573 _ACEOF
14574 if ac_fn_c_try_link "$LINENO"; then :
14575 ac_cv_lib_perfstat_perfstat_cpu_total=yes
14576 else
14577 ac_cv_lib_perfstat_perfstat_cpu_total=no
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext \
14580 conftest$ac_exeext conftest.$ac_ext
14581 LIBS=$ac_check_lib_save_LIBS
14582 fi
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
14584 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
14585 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
14586 cat >>confdefs.h <<_ACEOF
14587 #define HAVE_LIBPERFSTAT 1
14588 _ACEOF
14589
14590 LIBS="-lperfstat $LIBS"
14591
14592 fi
14593
14594 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
14595
14596 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14597 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14598 # to get the right answer into the cache.
14599 # For kstat on solaris, we need to test for libelf and libkvm to force the
14600 # definition of SVR4 below.
14601 if test $gl_have_func = no; then
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
14603 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
14604 if ${ac_cv_lib_elf_elf_begin+:} false; then :
14605 $as_echo_n "(cached) " >&6
14606 else
14607 ac_check_lib_save_LIBS=$LIBS
14608 LIBS="-lelf $LIBS"
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610 /* end confdefs.h. */
14611
14612 /* Override any GCC internal prototype to avoid an error.
14613 Use char because int might match the return type of a GCC
14614 builtin and then its argument prototype would still apply. */
14615 #ifdef __cplusplus
14616 extern "C"
14617 #endif
14618 char elf_begin ();
14619 int
14620 main ()
14621 {
14622 return elf_begin ();
14623 ;
14624 return 0;
14625 }
14626 _ACEOF
14627 if ac_fn_c_try_link "$LINENO"; then :
14628 ac_cv_lib_elf_elf_begin=yes
14629 else
14630 ac_cv_lib_elf_elf_begin=no
14631 fi
14632 rm -f core conftest.err conftest.$ac_objext \
14633 conftest$ac_exeext conftest.$ac_ext
14634 LIBS=$ac_check_lib_save_LIBS
14635 fi
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
14637 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
14638 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
14639 LIBS="-lelf $LIBS"
14640 fi
14641
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
14643 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
14644 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 ac_check_lib_save_LIBS=$LIBS
14648 LIBS="-lkvm $LIBS"
14649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14650 /* end confdefs.h. */
14651
14652 /* Override any GCC internal prototype to avoid an error.
14653 Use char because int might match the return type of a GCC
14654 builtin and then its argument prototype would still apply. */
14655 #ifdef __cplusplus
14656 extern "C"
14657 #endif
14658 char kvm_open ();
14659 int
14660 main ()
14661 {
14662 return kvm_open ();
14663 ;
14664 return 0;
14665 }
14666 _ACEOF
14667 if ac_fn_c_try_link "$LINENO"; then :
14668 ac_cv_lib_kvm_kvm_open=yes
14669 else
14670 ac_cv_lib_kvm_kvm_open=no
14671 fi
14672 rm -f core conftest.err conftest.$ac_objext \
14673 conftest$ac_exeext conftest.$ac_ext
14674 LIBS=$ac_check_lib_save_LIBS
14675 fi
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
14677 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
14678 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
14679 LIBS="-lkvm $LIBS"
14680 fi
14681
14682 # Check for the 4.4BSD definition of getloadavg.
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
14684 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
14685 if ${ac_cv_lib_util_getloadavg+:} false; then :
14686 $as_echo_n "(cached) " >&6
14687 else
14688 ac_check_lib_save_LIBS=$LIBS
14689 LIBS="-lutil $LIBS"
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14692
14693 /* Override any GCC internal prototype to avoid an error.
14694 Use char because int might match the return type of a GCC
14695 builtin and then its argument prototype would still apply. */
14696 #ifdef __cplusplus
14697 extern "C"
14698 #endif
14699 char getloadavg ();
14700 int
14701 main ()
14702 {
14703 return getloadavg ();
14704 ;
14705 return 0;
14706 }
14707 _ACEOF
14708 if ac_fn_c_try_link "$LINENO"; then :
14709 ac_cv_lib_util_getloadavg=yes
14710 else
14711 ac_cv_lib_util_getloadavg=no
14712 fi
14713 rm -f core conftest.err conftest.$ac_objext \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LIBS=$ac_check_lib_save_LIBS
14716 fi
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
14718 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
14719 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
14720 LIBS="-lutil $LIBS" gl_have_func=yes gl_cv_func_getloadavg_setgid=yes
14721 fi
14722
14723 fi
14724
14725 if test $gl_have_func = no; then
14726 # There is a commonly available library for RS/6000 AIX.
14727 # Since it is not a standard part of AIX, it might be installed locally.
14728 gl_getloadavg_LIBS=$LIBS
14729 LIBS="-L/usr/local/lib $LIBS"
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
14731 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
14732 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
14733 $as_echo_n "(cached) " >&6
14734 else
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lgetloadavg $LIBS"
14737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14738 /* end confdefs.h. */
14739
14740 /* Override any GCC internal prototype to avoid an error.
14741 Use char because int might match the return type of a GCC
14742 builtin and then its argument prototype would still apply. */
14743 #ifdef __cplusplus
14744 extern "C"
14745 #endif
14746 char getloadavg ();
14747 int
14748 main ()
14749 {
14750 return getloadavg ();
14751 ;
14752 return 0;
14753 }
14754 _ACEOF
14755 if ac_fn_c_try_link "$LINENO"; then :
14756 ac_cv_lib_getloadavg_getloadavg=yes
14757 else
14758 ac_cv_lib_getloadavg_getloadavg=no
14759 fi
14760 rm -f core conftest.err conftest.$ac_objext \
14761 conftest$ac_exeext conftest.$ac_ext
14762 LIBS=$ac_check_lib_save_LIBS
14763 fi
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14765 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
14766 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
14767 LIBS="-lgetloadavg $LIBS"
14768 else
14769 LIBS=$gl_getloadavg_LIBS
14770 fi
14771
14772 fi
14773
14774 # Make sure it is really in the library, if we think we found it,
14775 # otherwise set up the replacement function.
14776 for ac_func in getloadavg
14777 do :
14778 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
14779 if test "x$ac_cv_func_getloadavg" = xyes; then :
14780 cat >>confdefs.h <<_ACEOF
14781 #define HAVE_GETLOADAVG 1
14782 _ACEOF
14783
14784 else
14785
14786
14787
14788
14789
14790
14791
14792
14793 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
14794
14795
14796 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
14797
14798 # Figure out what our getloadavg.c needs.
14799 gl_have_func=no
14800 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
14801 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
14802 gl_have_func=yes
14803
14804 $as_echo "#define DGUX 1" >>confdefs.h
14805
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
14807 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
14808 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
14809 $as_echo_n "(cached) " >&6
14810 else
14811 ac_check_lib_save_LIBS=$LIBS
14812 LIBS="-ldgc $LIBS"
14813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14814 /* end confdefs.h. */
14815
14816 /* Override any GCC internal prototype to avoid an error.
14817 Use char because int might match the return type of a GCC
14818 builtin and then its argument prototype would still apply. */
14819 #ifdef __cplusplus
14820 extern "C"
14821 #endif
14822 char dg_sys_info ();
14823 int
14824 main ()
14825 {
14826 return dg_sys_info ();
14827 ;
14828 return 0;
14829 }
14830 _ACEOF
14831 if ac_fn_c_try_link "$LINENO"; then :
14832 ac_cv_lib_dgc_dg_sys_info=yes
14833 else
14834 ac_cv_lib_dgc_dg_sys_info=no
14835 fi
14836 rm -f core conftest.err conftest.$ac_objext \
14837 conftest$ac_exeext conftest.$ac_ext
14838 LIBS=$ac_check_lib_save_LIBS
14839 fi
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14841 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
14842 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
14843 cat >>confdefs.h <<_ACEOF
14844 #define HAVE_LIBDGC 1
14845 _ACEOF
14846
14847 LIBS="-ldgc $LIBS"
14848
14849 fi
14850
14851 fi
14852
14853
14854
14855 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14856 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14857 # Irix 4.0.5F has the header but not the library.
14858 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
14859 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
14860 gl_have_func=yes
14861
14862 $as_echo "#define SVR4 1" >>confdefs.h
14863
14864 fi
14865
14866 if test $gl_have_func = no; then
14867 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
14868 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
14869 gl_have_func=yes
14870
14871 $as_echo "#define UMAX 1" >>confdefs.h
14872
14873
14874 $as_echo "#define UMAX4_3 1" >>confdefs.h
14875
14876 fi
14877
14878
14879 fi
14880
14881 if test $gl_have_func = no; then
14882 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
14883 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
14884 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
14885
14886 fi
14887
14888
14889 fi
14890
14891 if test $gl_have_func = no; then
14892 for ac_header in mach/mach.h
14893 do :
14894 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
14895 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
14896 cat >>confdefs.h <<_ACEOF
14897 #define HAVE_MACH_MACH_H 1
14898 _ACEOF
14899
14900 fi
14901
14902 done
14903
14904 fi
14905
14906 for ac_header in nlist.h
14907 do :
14908 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
14909 if test "x$ac_cv_header_nlist_h" = xyes; then :
14910 cat >>confdefs.h <<_ACEOF
14911 #define HAVE_NLIST_H 1
14912 _ACEOF
14913 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
14914 "
14915 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
14916
14917 cat >>confdefs.h <<_ACEOF
14918 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14919 _ACEOF
14920
14921
14922 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
14923
14924 fi
14925
14926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14927 /* end confdefs.h. */
14928 #include <nlist.h>
14929 int
14930 main ()
14931 {
14932 struct nlist x;
14933 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
14934 x.n_un.n_name = "";
14935 #else
14936 x.n_name = "";
14937 #endif
14938 ;
14939 return 0;
14940 }
14941 _ACEOF
14942 if ac_fn_c_try_link "$LINENO"; then :
14943
14944 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
14945
14946 fi
14947 rm -f core conftest.err conftest.$ac_objext \
14948 conftest$ac_exeext conftest.$ac_ext
14949
14950 fi
14951
14952 done
14953
14954 fi
14955 done
14956
14957
14958 # Some definitions of getloadavg require that the program be installed setgid.
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
14960 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
14961 if ${gl_cv_func_getloadavg_setgid+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14965 /* end confdefs.h. */
14966 #define CONFIGURING_GETLOADAVG
14967 #include "$srcdir/$gl_source_base/getloadavg.c"
14968 #ifdef LDAV_PRIVILEGED
14969 Yowza Am I SETGID yet
14970 #endif
14971
14972 _ACEOF
14973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14974 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
14975 gl_cv_func_getloadavg_setgid=yes
14976 else
14977 gl_cv_func_getloadavg_setgid=no
14978 fi
14979 rm -f conftest*
14980
14981 fi
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getloadavg_setgid" >&5
14983 $as_echo "$gl_cv_func_getloadavg_setgid" >&6; }
14984 if test $gl_cv_func_getloadavg_setgid = yes; then
14985 NEED_SETGID=true
14986
14987 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
14988
14989 else
14990 NEED_SETGID=false
14991 fi
14992
14993 if test $gl_cv_func_getloadavg_setgid = yes; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
14995 $as_echo_n "checking group of /dev/kmem... " >&6; }
14996 if ${gl_cv_group_kmem+:} false; then :
14997 $as_echo_n "(cached) " >&6
14998 else
14999 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15000 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15001 # If we got an error (system does not support symlinks), try without -L.
15002 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15003 gl_cv_group_kmem=`echo $ac_ls_output \
15004 | sed -ne 's/[ ][ ]*/ /g
15005 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/
15006 / /s/.* //;p'`
15007
15008 fi
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_group_kmem" >&5
15010 $as_echo "$gl_cv_group_kmem" >&6; }
15011 KMEM_GROUP=$gl_cv_group_kmem
15012 fi
15013 if test "x$gl_save_LIBS" = x; then
15014 GETLOADAVG_LIBS=$LIBS
15015 else
15016 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15017 fi
15018 LIBS=$gl_save_LIBS
15019
15020
15021 # Test whether the system declares getloadavg. Solaris has the function
15022 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15023 for ac_header in sys/loadavg.h
15024 do :
15025 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15026 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15027 cat >>confdefs.h <<_ACEOF
15028 #define HAVE_SYS_LOADAVG_H 1
15029 _ACEOF
15030
15031 fi
15032
15033 done
15034
15035 if test $ac_cv_header_sys_loadavg_h = yes; then
15036 HAVE_SYS_LOADAVG_H=1
15037 else
15038 HAVE_SYS_LOADAVG_H=0
15039 fi
15040 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15041 # include <sys/loadavg.h>
15042 #endif
15043 #include <stdlib.h>
15044 "
15045 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
15046
15047 else
15048 HAVE_DECL_GETLOADAVG=0
15049 fi
15050
15051
15052
15053
15054
15055 GNULIB_GETLOADAVG=1
15056
15057
15058
15059 # Code from module getopt-gnu:
15060
15061
15062
15063
15064
15065
15066 # Code from module getopt-posix:
15067
15068
15069
15070
15071
15072 if test -n "$gl_replace_getopt"; then :
15073
15074
15075
15076 GETOPT_H=getopt.h
15077
15078 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15079
15080
15081
15082 GNULIB_UNISTD_H_GETOPT=1
15083
15084
15085
15086
15087
15088
15089
15090
15091 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15102
15103
15104
15105
15106
15107
15108 fi
15109
15110
15111 # Code from module gettext-h:
15112
15113
15114 # Code from module ignore-value:
15115
15116 # Code from module include_next:
15117 # Code from module intprops:
15118 # Code from module mktime:
15119
15120
15121
15122
15123
15124 if test $APPLE_UNIVERSAL_BUILD = 1; then
15125 # A universal build on Apple MacOS X platforms.
15126 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15127 # But we need a configuration result that is valid in both modes.
15128 ac_cv_func_working_mktime=no
15129 fi
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15131 $as_echo_n "checking for working mktime... " >&6; }
15132 if ${ac_cv_func_working_mktime+:} false; then :
15133 $as_echo_n "(cached) " >&6
15134 else
15135 if test "$cross_compiling" = yes; then :
15136 ac_cv_func_working_mktime=no
15137 else
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15140 /* Test program from Paul Eggert and Tony Leneis. */
15141 #include <limits.h>
15142 #include <stdlib.h>
15143 #include <time.h>
15144
15145 #ifdef HAVE_UNISTD_H
15146 # include <unistd.h>
15147 #endif
15148
15149 #ifndef HAVE_ALARM
15150 # define alarm(X) /* empty */
15151 #endif
15152
15153 /* Work around redefinition to rpl_putenv by other config tests. */
15154 #undef putenv
15155
15156 static time_t time_t_max;
15157 static time_t time_t_min;
15158
15159 /* Values we'll use to set the TZ environment variable. */
15160 static char *tz_strings[] = {
15161 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15162 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15163 };
15164 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15165
15166 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15167 Based on a problem report from Andreas Jaeger. */
15168 static int
15169 spring_forward_gap ()
15170 {
15171 /* glibc (up to about 1998-10-07) failed this test. */
15172 struct tm tm;
15173
15174 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15175 instead of "TZ=America/Vancouver" in order to detect the bug even
15176 on systems that don't support the Olson extension, or don't have the
15177 full zoneinfo tables installed. */
15178 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15179
15180 tm.tm_year = 98;
15181 tm.tm_mon = 3;
15182 tm.tm_mday = 5;
15183 tm.tm_hour = 2;
15184 tm.tm_min = 0;
15185 tm.tm_sec = 0;
15186 tm.tm_isdst = -1;
15187 return mktime (&tm) != (time_t) -1;
15188 }
15189
15190 static int
15191 mktime_test1 (time_t now)
15192 {
15193 struct tm *lt;
15194 return ! (lt = localtime (&now)) || mktime (lt) == now;
15195 }
15196
15197 static int
15198 mktime_test (time_t now)
15199 {
15200 return (mktime_test1 (now)
15201 && mktime_test1 ((time_t) (time_t_max - now))
15202 && mktime_test1 ((time_t) (time_t_min + now)));
15203 }
15204
15205 static int
15206 irix_6_4_bug ()
15207 {
15208 /* Based on code from Ariel Faigon. */
15209 struct tm tm;
15210 tm.tm_year = 96;
15211 tm.tm_mon = 3;
15212 tm.tm_mday = 0;
15213 tm.tm_hour = 0;
15214 tm.tm_min = 0;
15215 tm.tm_sec = 0;
15216 tm.tm_isdst = -1;
15217 mktime (&tm);
15218 return tm.tm_mon == 2 && tm.tm_mday == 31;
15219 }
15220
15221 static int
15222 bigtime_test (int j)
15223 {
15224 struct tm tm;
15225 time_t now;
15226 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15227 now = mktime (&tm);
15228 if (now != (time_t) -1)
15229 {
15230 struct tm *lt = localtime (&now);
15231 if (! (lt
15232 && lt->tm_year == tm.tm_year
15233 && lt->tm_mon == tm.tm_mon
15234 && lt->tm_mday == tm.tm_mday
15235 && lt->tm_hour == tm.tm_hour
15236 && lt->tm_min == tm.tm_min
15237 && lt->tm_sec == tm.tm_sec
15238 && lt->tm_yday == tm.tm_yday
15239 && lt->tm_wday == tm.tm_wday
15240 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15241 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15242 return 0;
15243 }
15244 return 1;
15245 }
15246
15247 static int
15248 year_2050_test ()
15249 {
15250 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15251 ignoring leap seconds. */
15252 unsigned long int answer = 2527315200UL;
15253
15254 struct tm tm;
15255 time_t t;
15256 tm.tm_year = 2050 - 1900;
15257 tm.tm_mon = 2 - 1;
15258 tm.tm_mday = 1;
15259 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15260 tm.tm_isdst = -1;
15261
15262 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15263 instead of "TZ=America/Vancouver" in order to detect the bug even
15264 on systems that don't support the Olson extension, or don't have the
15265 full zoneinfo tables installed. */
15266 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15267
15268 t = mktime (&tm);
15269
15270 /* Check that the result is either a failure, or close enough
15271 to the correct answer that we can assume the discrepancy is
15272 due to leap seconds. */
15273 return (t == (time_t) -1
15274 || (0 < t && answer - 120 <= t && t <= answer + 120));
15275 }
15276
15277 int
15278 main ()
15279 {
15280 int result = 0;
15281 time_t t, delta;
15282 int i, j;
15283 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15284 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15285
15286 /* This test makes some buggy mktime implementations loop.
15287 Give up after 60 seconds; a mktime slower than that
15288 isn't worth using anyway. */
15289 alarm (60);
15290
15291 time_t_max = (! time_t_signed
15292 ? (time_t) -1
15293 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15294 * 2 + 1));
15295 time_t_min = (! time_t_signed
15296 ? (time_t) 0
15297 : time_t_signed_magnitude
15298 ? ~ (time_t) 0
15299 : ~ time_t_max);
15300
15301 delta = time_t_max / 997; /* a suitable prime number */
15302 for (i = 0; i < N_STRINGS; i++)
15303 {
15304 if (tz_strings[i])
15305 putenv (tz_strings[i]);
15306
15307 for (t = 0; t <= time_t_max - delta; t += delta)
15308 if (! mktime_test (t))
15309 result |= 1;
15310 if (! (mktime_test ((time_t) 1)
15311 && mktime_test ((time_t) (60 * 60))
15312 && mktime_test ((time_t) (60 * 60 * 24))))
15313 result |= 2;
15314
15315 for (j = 1; ; j <<= 1)
15316 if (! bigtime_test (j))
15317 result |= 4;
15318 else if (INT_MAX / 2 < j)
15319 break;
15320 if (! bigtime_test (INT_MAX))
15321 result |= 8;
15322 }
15323 if (! irix_6_4_bug ())
15324 result |= 16;
15325 if (! spring_forward_gap ())
15326 result |= 32;
15327 if (! year_2050_test ())
15328 result |= 64;
15329 return result;
15330 }
15331 _ACEOF
15332 if ac_fn_c_try_run "$LINENO"; then :
15333 ac_cv_func_working_mktime=yes
15334 else
15335 ac_cv_func_working_mktime=no
15336 fi
15337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15338 conftest.$ac_objext conftest.beam conftest.$ac_ext
15339 fi
15340
15341 fi
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15343 $as_echo "$ac_cv_func_working_mktime" >&6; }
15344 if test $ac_cv_func_working_mktime = no; then
15345
15346
15347
15348
15349
15350
15351
15352
15353 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
15354
15355 fi
15356
15357 if test $ac_cv_func_working_mktime = no; then
15358 REPLACE_MKTIME=1
15359
15360
15361
15362 else
15363 REPLACE_MKTIME=0
15364 fi
15365
15366
15367
15368
15369 GNULIB_MKTIME=1
15370
15371
15372
15373 # Code from module multiarch:
15374
15375 # Code from module stdbool:
15376
15377
15378
15379 # Define two additional variables used in the Makefile substitution.
15380
15381 if test "$ac_cv_header_stdbool_h" = yes; then
15382 STDBOOL_H=''
15383 else
15384 STDBOOL_H='stdbool.h'
15385 fi
15386
15387
15388 if test "$ac_cv_type__Bool" = yes; then
15389 HAVE__BOOL=1
15390 else
15391 HAVE__BOOL=0
15392 fi
15393
15394
15395 # Code from module stddef:
15396
15397
15398
15399 if test $gt_cv_c_wchar_t = no; then
15400 HAVE_WCHAR_T=0
15401 STDDEF_H=stddef.h
15402 fi
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15404 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15405 if ${gl_cv_decl_null_works+:} false; then :
15406 $as_echo_n "(cached) " >&6
15407 else
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410 #include <stddef.h>
15411 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15412
15413 int
15414 main ()
15415 {
15416
15417 ;
15418 return 0;
15419 }
15420 _ACEOF
15421 if ac_fn_c_try_compile "$LINENO"; then :
15422 gl_cv_decl_null_works=yes
15423 else
15424 gl_cv_decl_null_works=no
15425 fi
15426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427 fi
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15429 $as_echo "$gl_cv_decl_null_works" >&6; }
15430 if test $gl_cv_decl_null_works = no; then
15431 REPLACE_NULL=1
15432 STDDEF_H=stddef.h
15433 fi
15434 if test -n "$STDDEF_H"; then
15435
15436
15437
15438
15439
15440
15441
15442
15443 if test $gl_cv_have_include_next = yes; then
15444 gl_cv_next_stddef_h='<'stddef.h'>'
15445 else
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15447 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15448 if ${gl_cv_next_stddef_h+:} false; then :
15449 $as_echo_n "(cached) " >&6
15450 else
15451
15452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h. */
15454 #include <stddef.h>
15455
15456 _ACEOF
15457 case "$host_os" in
15458 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15459 *) gl_absname_cpp="$ac_cpp" ;;
15460 esac
15461 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15462 sed -n '\#/stddef.h#{
15463 s#.*"\(.*/stddef.h\)".*#\1#
15464 s#^/[^/]#//&#
15465 p
15466 q
15467 }'`'"'
15468
15469
15470 fi
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15472 $as_echo "$gl_cv_next_stddef_h" >&6; }
15473 fi
15474 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15475
15476 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15477 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15478 gl_next_as_first_directive='<'stddef.h'>'
15479 else
15480 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15481 gl_next_as_first_directive=$gl_cv_next_stddef_h
15482 fi
15483 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15484
15485
15486
15487
15488 fi
15489
15490 # Code from module stdlib:
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501 if test $gl_cv_have_include_next = yes; then
15502 gl_cv_next_stdlib_h='<'stdlib.h'>'
15503 else
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15505 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15506 if ${gl_cv_next_stdlib_h+:} false; then :
15507 $as_echo_n "(cached) " >&6
15508 else
15509
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h. */
15512 #include <stdlib.h>
15513
15514 _ACEOF
15515 case "$host_os" in
15516 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15517 *) gl_absname_cpp="$ac_cpp" ;;
15518 esac
15519 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15520 sed -n '\#/stdlib.h#{
15521 s#.*"\(.*/stdlib.h\)".*#\1#
15522 s#^/[^/]#//&#
15523 p
15524 q
15525 }'`'"'
15526
15527
15528 fi
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15530 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15531 fi
15532 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15533
15534 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15535 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15536 gl_next_as_first_directive='<'stdlib.h'>'
15537 else
15538 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15539 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15540 fi
15541 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15542
15543
15544
15545
15546
15547
15548
15549 # Code from module strftime:
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
15561
15562
15563 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15564
15565
15566
15567
15568
15569
15570
15571 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15572
15573
15574
15575 # Code from module time:
15576
15577
15578
15579 # Code from module time_r:
15580
15581
15582
15583
15584
15585
15586
15587 if test $ac_cv_have_decl_localtime_r = no; then
15588 HAVE_DECL_LOCALTIME_R=0
15589 fi
15590
15591
15592 if test $ac_cv_func_localtime_r = yes; then
15593 HAVE_LOCALTIME_R=1
15594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15595 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15596 if ${gl_cv_time_r_posix+:} false; then :
15597 $as_echo_n "(cached) " >&6
15598 else
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 #include <time.h>
15602 int
15603 main ()
15604 {
15605 /* We don't need to append 'restrict's to the argument types,
15606 even though the POSIX signature has the 'restrict's,
15607 since C99 says they can't affect type compatibility. */
15608 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15609 if (ptr) return 0;
15610 /* Check the return type is a pointer.
15611 On HP-UX 10 it is 'int'. */
15612 *localtime_r (0, 0);
15613 ;
15614 return 0;
15615 }
15616
15617 _ACEOF
15618 if ac_fn_c_try_compile "$LINENO"; then :
15619 gl_cv_time_r_posix=yes
15620 else
15621 gl_cv_time_r_posix=no
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15627 $as_echo "$gl_cv_time_r_posix" >&6; }
15628 if test $gl_cv_time_r_posix = yes; then
15629 REPLACE_LOCALTIME_R=0
15630 else
15631 REPLACE_LOCALTIME_R=1
15632 fi
15633 else
15634 HAVE_LOCALTIME_R=0
15635 fi
15636 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15637
15638
15639
15640
15641
15642
15643
15644
15645 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15646
15647
15648 :
15649
15650 fi
15651
15652
15653
15654
15655 GNULIB_TIME_R=1
15656
15657
15658
15659 # Code from module unistd:
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673 if test $gl_cv_have_include_next = yes; then
15674 gl_cv_next_unistd_h='<'unistd.h'>'
15675 else
15676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15677 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15678 if ${gl_cv_next_unistd_h+:} false; then :
15679 $as_echo_n "(cached) " >&6
15680 else
15681
15682 if test $ac_cv_header_unistd_h = yes; then
15683
15684
15685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15686 /* end confdefs.h. */
15687 #include <unistd.h>
15688
15689 _ACEOF
15690 case "$host_os" in
15691 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15692 *) gl_absname_cpp="$ac_cpp" ;;
15693 esac
15694 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15695 sed -n '\#/unistd.h#{
15696 s#.*"\(.*/unistd.h\)".*#\1#
15697 s#^/[^/]#//&#
15698 p
15699 q
15700 }'`'"'
15701 else
15702 gl_cv_next_unistd_h='<'unistd.h'>'
15703 fi
15704
15705
15706 fi
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15708 $as_echo "$gl_cv_next_unistd_h" >&6; }
15709 fi
15710 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15711
15712 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15713 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15714 gl_next_as_first_directive='<'unistd.h'>'
15715 else
15716 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15717 gl_next_as_first_directive=$gl_cv_next_unistd_h
15718 fi
15719 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15720
15721
15722
15723
15724 if test $ac_cv_header_unistd_h = yes; then
15725 HAVE_UNISTD_H=1
15726 else
15727 HAVE_UNISTD_H=0
15728 fi
15729
15730
15731
15732
15733 # Code from module warn-on-use:
15734 # End of code from modules
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744 gltests_libdeps=
15745 gltests_ltlibdeps=
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755 gl_source_base='tests'
15756 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
15757
15758 gl_module_indicator_condition=$gltests_WITNESS
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768 LIBGNU_LIBDEPS="$gl_libdeps"
15769
15770 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15771
15772
15773
15774 # UNIX98 PTYs.
15775 for ac_func in grantpt
15776 do :
15777 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15778 if test "x$ac_cv_func_grantpt" = xyes; then :
15779 cat >>confdefs.h <<_ACEOF
15780 #define HAVE_GRANTPT 1
15781 _ACEOF
15782
15783 fi
15784 done
15785
15786
15787 # PTY-related GNU extensions.
15788 for ac_func in getpt
15789 do :
15790 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
15791 if test "x$ac_cv_func_getpt" = xyes; then :
15792 cat >>confdefs.h <<_ACEOF
15793 #define HAVE_GETPT 1
15794 _ACEOF
15795
15796 fi
15797 done
15798
15799
15800 # Check this now, so that we will NOT find the above functions in ncurses.
15801 # That is because we have not set up to link ncurses in lib-src.
15802 # It's better to believe a function is not available
15803 # than to expect to find it in ncurses.
15804 # Also we need tputs and friends to be able to build at all.
15805 have_tputs_et_al=true
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15807 $as_echo_n "checking for library containing tputs... " >&6; }
15808 if ${ac_cv_search_tputs+:} false; then :
15809 $as_echo_n "(cached) " >&6
15810 else
15811 ac_func_search_save_LIBS=$LIBS
15812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15813 /* end confdefs.h. */
15814
15815 /* Override any GCC internal prototype to avoid an error.
15816 Use char because int might match the return type of a GCC
15817 builtin and then its argument prototype would still apply. */
15818 #ifdef __cplusplus
15819 extern "C"
15820 #endif
15821 char tputs ();
15822 int
15823 main ()
15824 {
15825 return tputs ();
15826 ;
15827 return 0;
15828 }
15829 _ACEOF
15830 for ac_lib in '' ncurses terminfo termcap; do
15831 if test -z "$ac_lib"; then
15832 ac_res="none required"
15833 else
15834 ac_res=-l$ac_lib
15835 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15836 fi
15837 if ac_fn_c_try_link "$LINENO"; then :
15838 ac_cv_search_tputs=$ac_res
15839 fi
15840 rm -f core conftest.err conftest.$ac_objext \
15841 conftest$ac_exeext
15842 if ${ac_cv_search_tputs+:} false; then :
15843 break
15844 fi
15845 done
15846 if ${ac_cv_search_tputs+:} false; then :
15847
15848 else
15849 ac_cv_search_tputs=no
15850 fi
15851 rm conftest.$ac_ext
15852 LIBS=$ac_func_search_save_LIBS
15853 fi
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15855 $as_echo "$ac_cv_search_tputs" >&6; }
15856 ac_res=$ac_cv_search_tputs
15857 if test "$ac_res" != no; then :
15858 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15859
15860 else
15861 have_tputs_et_al=false
15862 fi
15863
15864 if test "$have_tputs_et_al" != true; then
15865 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
15866 Maybe some development libraries/packages are missing? Try installing
15867 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15868 fi
15869 # Must define this when any termcap library is found.
15870
15871 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15872
15873 ## FIXME This was the cpp logic, but I am not sure it is right.
15874 ## The above test has not necessarily found libncurses.
15875 HAVE_LIBNCURSES=yes
15876
15877 ## Use terminfo instead of termcap?
15878 ## Note only system files NOT using terminfo are:
15879 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15880 ## darwin|gnu without ncurses.
15881 TERMINFO=no
15882 LIBS_TERMCAP=
15883 case "$opsys" in
15884 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15885 ## hpux10-20: Use the system provided termcap(3) library.
15886 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15887 ## is necessary. Otherwise Emacs dumps core when run -nw.
15888 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15889
15890 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15891 ## The ncurses library has been moved out of the System framework in
15892 ## Mac OS X 10.2. So if configure detects it, set the command-line
15893 ## option to use it.
15894 darwin|gnu*)
15895 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15896 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15897 TERMINFO=yes
15898 LIBS_TERMCAP="-lncurses"
15899 fi
15900 ;;
15901
15902 freebsd)
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15904 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15905 if ${emacs_cv_freebsd_terminfo+:} false; then :
15906 $as_echo_n "(cached) " >&6
15907 else
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15910 #include <osreldate.h>
15911 int
15912 main ()
15913 {
15914 #if __FreeBSD_version < 400000
15915 fail;
15916 #endif
15917
15918 ;
15919 return 0;
15920 }
15921 _ACEOF
15922 if ac_fn_c_try_link "$LINENO"; then :
15923 emacs_cv_freebsd_terminfo=yes
15924 else
15925 emacs_cv_freebsd_terminfo=no
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext \
15928 conftest$ac_exeext conftest.$ac_ext
15929 fi
15930
15931
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15933 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15934
15935 if test $emacs_cv_freebsd_terminfo = yes; then
15936 TERMINFO=yes
15937 LIBS_TERMCAP="-lncurses"
15938 else
15939 LIBS_TERMCAP="-ltermcap"
15940 fi
15941 ;;
15942
15943 netbsd)
15944 if test $ac_cv_search_tputs = -lterminfo; then
15945 TERMINFO=yes
15946 LIBS_TERMCAP="-lterminfo"
15947 else
15948 LIBS_TERMCAP="-ltermcap"
15949 fi
15950 ;;
15951
15952 esac
15953
15954 case "$opsys" in
15955 ## hpux: Make sure we get select from libc rather than from libcurses
15956 ## because libcurses on HPUX 10.10 has a broken version of select.
15957 ## We used to use -lc -lcurses, but this may be cleaner.
15958 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15959
15960 openbsd) LIBS_TERMCAP="-lncurses" ;;
15961
15962 ## Must use system termcap, if we use any termcap. It does special things.
15963 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15964 esac
15965
15966 TERMCAP_OBJ=tparam.o
15967 if test $TERMINFO = yes; then
15968
15969 $as_echo "#define TERMINFO 1" >>confdefs.h
15970
15971
15972 ## Default used to be -ltermcap. Add a case above if need something else.
15973 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15974
15975 TERMCAP_OBJ=terminfo.o
15976 fi
15977
15978
15979
15980
15981 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15982 resolv=no
15983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15984 /* end confdefs.h. */
15985 #include <netinet/in.h>
15986 #include <arpa/nameser.h>
15987 #include <resolv.h>
15988 int
15989 main ()
15990 {
15991 return res_init();
15992 ;
15993 return 0;
15994 }
15995 _ACEOF
15996 if ac_fn_c_try_link "$LINENO"; then :
15997 have_res_init=yes
15998 else
15999 have_res_init=no
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext \
16002 conftest$ac_exeext conftest.$ac_ext
16003 if test "$have_res_init" = no; then
16004 OLIBS="$LIBS"
16005 LIBS="$LIBS -lresolv"
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
16007 $as_echo_n "checking for res_init with -lresolv... " >&6; }
16008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h. */
16010 #include <netinet/in.h>
16011 #include <arpa/nameser.h>
16012 #include <resolv.h>
16013 int
16014 main ()
16015 {
16016 return res_init();
16017 ;
16018 return 0;
16019 }
16020 _ACEOF
16021 if ac_fn_c_try_link "$LINENO"; then :
16022 have_res_init=yes
16023 else
16024 have_res_init=no
16025 fi
16026 rm -f core conftest.err conftest.$ac_objext \
16027 conftest$ac_exeext conftest.$ac_ext
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
16029 $as_echo "$have_res_init" >&6; }
16030 if test "$have_res_init" = yes ; then
16031 resolv=yes
16032 fi
16033 LIBS="$OLIBS"
16034 fi
16035
16036 if test "$have_res_init" = yes; then
16037
16038 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
16039
16040 fi
16041
16042 # Do we need the Hesiod library to provide the support routines?
16043 LIBHESIOD=
16044 if test "$with_hesiod" != no ; then
16045 # Don't set $LIBS here -- see comments above. FIXME which comments?
16046 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
16047 if test "x$ac_cv_func_res_send" = xyes; then :
16048
16049 else
16050 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
16051 if test "x$ac_cv_func___res_send" = xyes; then :
16052
16053 else
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
16055 $as_echo_n "checking for res_send in -lresolv... " >&6; }
16056 if ${ac_cv_lib_resolv_res_send+:} false; then :
16057 $as_echo_n "(cached) " >&6
16058 else
16059 ac_check_lib_save_LIBS=$LIBS
16060 LIBS="-lresolv $LIBS"
16061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16062 /* end confdefs.h. */
16063
16064 /* Override any GCC internal prototype to avoid an error.
16065 Use char because int might match the return type of a GCC
16066 builtin and then its argument prototype would still apply. */
16067 #ifdef __cplusplus
16068 extern "C"
16069 #endif
16070 char res_send ();
16071 int
16072 main ()
16073 {
16074 return res_send ();
16075 ;
16076 return 0;
16077 }
16078 _ACEOF
16079 if ac_fn_c_try_link "$LINENO"; then :
16080 ac_cv_lib_resolv_res_send=yes
16081 else
16082 ac_cv_lib_resolv_res_send=no
16083 fi
16084 rm -f core conftest.err conftest.$ac_objext \
16085 conftest$ac_exeext conftest.$ac_ext
16086 LIBS=$ac_check_lib_save_LIBS
16087 fi
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
16089 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
16090 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
16091 resolv=yes
16092 else
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
16094 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
16095 if ${ac_cv_lib_resolv___res_send+:} false; then :
16096 $as_echo_n "(cached) " >&6
16097 else
16098 ac_check_lib_save_LIBS=$LIBS
16099 LIBS="-lresolv $LIBS"
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16102
16103 /* Override any GCC internal prototype to avoid an error.
16104 Use char because int might match the return type of a GCC
16105 builtin and then its argument prototype would still apply. */
16106 #ifdef __cplusplus
16107 extern "C"
16108 #endif
16109 char __res_send ();
16110 int
16111 main ()
16112 {
16113 return __res_send ();
16114 ;
16115 return 0;
16116 }
16117 _ACEOF
16118 if ac_fn_c_try_link "$LINENO"; then :
16119 ac_cv_lib_resolv___res_send=yes
16120 else
16121 ac_cv_lib_resolv___res_send=no
16122 fi
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125 LIBS=$ac_check_lib_save_LIBS
16126 fi
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
16128 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
16129 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
16130 resolv=yes
16131 fi
16132
16133 fi
16134
16135 fi
16136
16137 fi
16138
16139 if test "$resolv" = yes ; then
16140 RESOLVLIB=-lresolv
16141 else
16142 RESOLVLIB=
16143 fi
16144 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
16145 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
16146
16147 else
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
16149 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
16150 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
16151 $as_echo_n "(cached) " >&6
16152 else
16153 ac_check_lib_save_LIBS=$LIBS
16154 LIBS="-lhesiod $RESOLVLIB $LIBS"
16155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16156 /* end confdefs.h. */
16157
16158 /* Override any GCC internal prototype to avoid an error.
16159 Use char because int might match the return type of a GCC
16160 builtin and then its argument prototype would still apply. */
16161 #ifdef __cplusplus
16162 extern "C"
16163 #endif
16164 char hes_getmailhost ();
16165 int
16166 main ()
16167 {
16168 return hes_getmailhost ();
16169 ;
16170 return 0;
16171 }
16172 _ACEOF
16173 if ac_fn_c_try_link "$LINENO"; then :
16174 ac_cv_lib_hesiod_hes_getmailhost=yes
16175 else
16176 ac_cv_lib_hesiod_hes_getmailhost=no
16177 fi
16178 rm -f core conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180 LIBS=$ac_check_lib_save_LIBS
16181 fi
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16183 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
16184 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
16185 hesiod=yes
16186 else
16187 :
16188 fi
16189
16190 fi
16191
16192
16193 if test x"$hesiod" = xyes; then
16194
16195 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
16196
16197 LIBHESIOD=-lhesiod
16198 fi
16199 fi
16200
16201
16202 # Do we need libresolv (due to res_init or Hesiod)?
16203 if test "$resolv" = yes ; then
16204
16205 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
16206
16207 LIBRESOLV=-lresolv
16208 else
16209 LIBRESOLV=
16210 fi
16211
16212
16213 # These tell us which Kerberos-related libraries to use.
16214 COM_ERRLIB=
16215 CRYPTOLIB=
16216 KRB5LIB=
16217 DESLIB=
16218 KRB4LIB=
16219
16220 if test "${with_kerberos}" != no; then
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
16222 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
16223 if ${ac_cv_lib_com_err_com_err+:} false; then :
16224 $as_echo_n "(cached) " >&6
16225 else
16226 ac_check_lib_save_LIBS=$LIBS
16227 LIBS="-lcom_err $LIBS"
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230
16231 /* Override any GCC internal prototype to avoid an error.
16232 Use char because int might match the return type of a GCC
16233 builtin and then its argument prototype would still apply. */
16234 #ifdef __cplusplus
16235 extern "C"
16236 #endif
16237 char com_err ();
16238 int
16239 main ()
16240 {
16241 return com_err ();
16242 ;
16243 return 0;
16244 }
16245 _ACEOF
16246 if ac_fn_c_try_link "$LINENO"; then :
16247 ac_cv_lib_com_err_com_err=yes
16248 else
16249 ac_cv_lib_com_err_com_err=no
16250 fi
16251 rm -f core conftest.err conftest.$ac_objext \
16252 conftest$ac_exeext conftest.$ac_ext
16253 LIBS=$ac_check_lib_save_LIBS
16254 fi
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
16256 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
16257 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
16258 have_com_err=yes
16259 else
16260 have_com_err=no
16261 fi
16262
16263 if test $have_com_err = yes; then
16264 COM_ERRLIB=-lcom_err
16265 LIBS="$COM_ERRLIB $LIBS"
16266
16267 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
16268
16269 fi
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
16271 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
16272 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
16273 $as_echo_n "(cached) " >&6
16274 else
16275 ac_check_lib_save_LIBS=$LIBS
16276 LIBS="-lcrypto $LIBS"
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279
16280 /* Override any GCC internal prototype to avoid an error.
16281 Use char because int might match the return type of a GCC
16282 builtin and then its argument prototype would still apply. */
16283 #ifdef __cplusplus
16284 extern "C"
16285 #endif
16286 char mit_des_cbc_encrypt ();
16287 int
16288 main ()
16289 {
16290 return mit_des_cbc_encrypt ();
16291 ;
16292 return 0;
16293 }
16294 _ACEOF
16295 if ac_fn_c_try_link "$LINENO"; then :
16296 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
16297 else
16298 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
16299 fi
16300 rm -f core conftest.err conftest.$ac_objext \
16301 conftest$ac_exeext conftest.$ac_ext
16302 LIBS=$ac_check_lib_save_LIBS
16303 fi
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16305 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
16306 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
16307 have_crypto=yes
16308 else
16309 have_crypto=no
16310 fi
16311
16312 if test $have_crypto = yes; then
16313 CRYPTOLIB=-lcrypto
16314 LIBS="$CRYPTOLIB $LIBS"
16315
16316 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16317
16318 fi
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16320 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
16321 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
16322 $as_echo_n "(cached) " >&6
16323 else
16324 ac_check_lib_save_LIBS=$LIBS
16325 LIBS="-lk5crypto $LIBS"
16326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327 /* end confdefs.h. */
16328
16329 /* Override any GCC internal prototype to avoid an error.
16330 Use char because int might match the return type of a GCC
16331 builtin and then its argument prototype would still apply. */
16332 #ifdef __cplusplus
16333 extern "C"
16334 #endif
16335 char mit_des_cbc_encrypt ();
16336 int
16337 main ()
16338 {
16339 return mit_des_cbc_encrypt ();
16340 ;
16341 return 0;
16342 }
16343 _ACEOF
16344 if ac_fn_c_try_link "$LINENO"; then :
16345 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
16346 else
16347 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
16348 fi
16349 rm -f core conftest.err conftest.$ac_objext \
16350 conftest$ac_exeext conftest.$ac_ext
16351 LIBS=$ac_check_lib_save_LIBS
16352 fi
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16354 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
16355 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
16356 have_k5crypto=yes
16357 else
16358 have_k5crypto=no
16359 fi
16360
16361 if test $have_k5crypto = yes; then
16362 CRYPTOLIB=-lk5crypto
16363 LIBS="$CRYPTOLIB $LIBS"
16364
16365 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16366
16367 fi
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16369 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16370 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
16371 $as_echo_n "(cached) " >&6
16372 else
16373 ac_check_lib_save_LIBS=$LIBS
16374 LIBS="-lkrb5 $LIBS"
16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16376 /* end confdefs.h. */
16377
16378 /* Override any GCC internal prototype to avoid an error.
16379 Use char because int might match the return type of a GCC
16380 builtin and then its argument prototype would still apply. */
16381 #ifdef __cplusplus
16382 extern "C"
16383 #endif
16384 char krb5_init_context ();
16385 int
16386 main ()
16387 {
16388 return krb5_init_context ();
16389 ;
16390 return 0;
16391 }
16392 _ACEOF
16393 if ac_fn_c_try_link "$LINENO"; then :
16394 ac_cv_lib_krb5_krb5_init_context=yes
16395 else
16396 ac_cv_lib_krb5_krb5_init_context=no
16397 fi
16398 rm -f core conftest.err conftest.$ac_objext \
16399 conftest$ac_exeext conftest.$ac_ext
16400 LIBS=$ac_check_lib_save_LIBS
16401 fi
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16403 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16404 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
16405 have_krb5=yes
16406 else
16407 have_krb5=no
16408 fi
16409
16410 if test $have_krb5=yes; then
16411 KRB5LIB=-lkrb5
16412 LIBS="$KRB5LIB $LIBS"
16413
16414 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16415
16416 fi
16417 if test "${with_kerberos5}" = no; then
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16419 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16420 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
16421 $as_echo_n "(cached) " >&6
16422 else
16423 ac_check_lib_save_LIBS=$LIBS
16424 LIBS="-ldes425 $LIBS"
16425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16426 /* end confdefs.h. */
16427
16428 /* Override any GCC internal prototype to avoid an error.
16429 Use char because int might match the return type of a GCC
16430 builtin and then its argument prototype would still apply. */
16431 #ifdef __cplusplus
16432 extern "C"
16433 #endif
16434 char des_cbc_encrypt ();
16435 int
16436 main ()
16437 {
16438 return des_cbc_encrypt ();
16439 ;
16440 return 0;
16441 }
16442 _ACEOF
16443 if ac_fn_c_try_link "$LINENO"; then :
16444 ac_cv_lib_des425_des_cbc_encrypt=yes
16445 else
16446 ac_cv_lib_des425_des_cbc_encrypt=no
16447 fi
16448 rm -f core conftest.err conftest.$ac_objext \
16449 conftest$ac_exeext conftest.$ac_ext
16450 LIBS=$ac_check_lib_save_LIBS
16451 fi
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16453 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16454 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
16455 have_des425=yes
16456 else
16457 have_des425=no
16458 fi
16459
16460 if test $have_des425 = yes; then
16461 DESLIB=-ldes425
16462 LIBS="$DESLIB $LIBS"
16463
16464 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16465
16466 else
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16468 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16469 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-ldes $LIBS"
16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16476
16477 /* Override any GCC internal prototype to avoid an error.
16478 Use char because int might match the return type of a GCC
16479 builtin and then its argument prototype would still apply. */
16480 #ifdef __cplusplus
16481 extern "C"
16482 #endif
16483 char des_cbc_encrypt ();
16484 int
16485 main ()
16486 {
16487 return des_cbc_encrypt ();
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 if ac_fn_c_try_link "$LINENO"; then :
16493 ac_cv_lib_des_des_cbc_encrypt=yes
16494 else
16495 ac_cv_lib_des_des_cbc_encrypt=no
16496 fi
16497 rm -f core conftest.err conftest.$ac_objext \
16498 conftest$ac_exeext conftest.$ac_ext
16499 LIBS=$ac_check_lib_save_LIBS
16500 fi
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16502 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16503 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16504 have_des=yes
16505 else
16506 have_des=no
16507 fi
16508
16509 if test $have_des = yes; then
16510 DESLIB=-ldes
16511 LIBS="$DESLIB $LIBS"
16512
16513 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16514
16515 fi
16516 fi
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16518 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16519 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
16520 $as_echo_n "(cached) " >&6
16521 else
16522 ac_check_lib_save_LIBS=$LIBS
16523 LIBS="-lkrb4 $LIBS"
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16526
16527 /* Override any GCC internal prototype to avoid an error.
16528 Use char because int might match the return type of a GCC
16529 builtin and then its argument prototype would still apply. */
16530 #ifdef __cplusplus
16531 extern "C"
16532 #endif
16533 char krb_get_cred ();
16534 int
16535 main ()
16536 {
16537 return krb_get_cred ();
16538 ;
16539 return 0;
16540 }
16541 _ACEOF
16542 if ac_fn_c_try_link "$LINENO"; then :
16543 ac_cv_lib_krb4_krb_get_cred=yes
16544 else
16545 ac_cv_lib_krb4_krb_get_cred=no
16546 fi
16547 rm -f core conftest.err conftest.$ac_objext \
16548 conftest$ac_exeext conftest.$ac_ext
16549 LIBS=$ac_check_lib_save_LIBS
16550 fi
16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16552 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16553 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
16554 have_krb4=yes
16555 else
16556 have_krb4=no
16557 fi
16558
16559 if test $have_krb4 = yes; then
16560 KRB4LIB=-lkrb4
16561 LIBS="$KRB4LIB $LIBS"
16562
16563 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16564
16565 else
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16567 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16568 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
16569 $as_echo_n "(cached) " >&6
16570 else
16571 ac_check_lib_save_LIBS=$LIBS
16572 LIBS="-lkrb $LIBS"
16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16574 /* end confdefs.h. */
16575
16576 /* Override any GCC internal prototype to avoid an error.
16577 Use char because int might match the return type of a GCC
16578 builtin and then its argument prototype would still apply. */
16579 #ifdef __cplusplus
16580 extern "C"
16581 #endif
16582 char krb_get_cred ();
16583 int
16584 main ()
16585 {
16586 return krb_get_cred ();
16587 ;
16588 return 0;
16589 }
16590 _ACEOF
16591 if ac_fn_c_try_link "$LINENO"; then :
16592 ac_cv_lib_krb_krb_get_cred=yes
16593 else
16594 ac_cv_lib_krb_krb_get_cred=no
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext \
16597 conftest$ac_exeext conftest.$ac_ext
16598 LIBS=$ac_check_lib_save_LIBS
16599 fi
16600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16601 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16602 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
16603 have_krb=yes
16604 else
16605 have_krb=no
16606 fi
16607
16608 if test $have_krb = yes; then
16609 KRB4LIB=-lkrb
16610 LIBS="$KRB4LIB $LIBS"
16611
16612 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16613
16614 fi
16615 fi
16616 fi
16617
16618 if test "${with_kerberos5}" != no; then
16619 for ac_header in krb5.h
16620 do :
16621 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16622 if test "x$ac_cv_header_krb5_h" = xyes; then :
16623 cat >>confdefs.h <<_ACEOF
16624 #define HAVE_KRB5_H 1
16625 _ACEOF
16626 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16627 "
16628 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
16629
16630 cat >>confdefs.h <<_ACEOF
16631 #define HAVE_KRB5_ERROR_TEXT 1
16632 _ACEOF
16633
16634
16635 fi
16636 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16637 "
16638 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
16639
16640 cat >>confdefs.h <<_ACEOF
16641 #define HAVE_KRB5_ERROR_E_TEXT 1
16642 _ACEOF
16643
16644
16645 fi
16646
16647 fi
16648
16649 done
16650
16651 else
16652 for ac_header in des.h
16653 do :
16654 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16655 if test "x$ac_cv_header_des_h" = xyes; then :
16656 cat >>confdefs.h <<_ACEOF
16657 #define HAVE_DES_H 1
16658 _ACEOF
16659
16660 else
16661 for ac_header in kerberosIV/des.h
16662 do :
16663 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16664 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
16665 cat >>confdefs.h <<_ACEOF
16666 #define HAVE_KERBEROSIV_DES_H 1
16667 _ACEOF
16668
16669 else
16670 for ac_header in kerberos/des.h
16671 do :
16672 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16673 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
16674 cat >>confdefs.h <<_ACEOF
16675 #define HAVE_KERBEROS_DES_H 1
16676 _ACEOF
16677
16678 fi
16679
16680 done
16681
16682 fi
16683
16684 done
16685
16686 fi
16687
16688 done
16689
16690 for ac_header in krb.h
16691 do :
16692 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16693 if test "x$ac_cv_header_krb_h" = xyes; then :
16694 cat >>confdefs.h <<_ACEOF
16695 #define HAVE_KRB_H 1
16696 _ACEOF
16697
16698 else
16699 for ac_header in kerberosIV/krb.h
16700 do :
16701 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16702 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
16703 cat >>confdefs.h <<_ACEOF
16704 #define HAVE_KERBEROSIV_KRB_H 1
16705 _ACEOF
16706
16707 else
16708 for ac_header in kerberos/krb.h
16709 do :
16710 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16711 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
16712 cat >>confdefs.h <<_ACEOF
16713 #define HAVE_KERBEROS_KRB_H 1
16714 _ACEOF
16715
16716 fi
16717
16718 done
16719
16720 fi
16721
16722 done
16723
16724 fi
16725
16726 done
16727
16728 fi
16729 for ac_header in com_err.h
16730 do :
16731 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16732 if test "x$ac_cv_header_com_err_h" = xyes; then :
16733 cat >>confdefs.h <<_ACEOF
16734 #define HAVE_COM_ERR_H 1
16735 _ACEOF
16736
16737 fi
16738
16739 done
16740
16741 fi
16742
16743
16744
16745
16746
16747
16748
16749 # Solaris requires -lintl if you want strerror (which calls dgettext)
16750 # to return localized messages.
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16752 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16753 if ${ac_cv_lib_intl_dgettext+:} false; then :
16754 $as_echo_n "(cached) " >&6
16755 else
16756 ac_check_lib_save_LIBS=$LIBS
16757 LIBS="-lintl $LIBS"
16758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* end confdefs.h. */
16760
16761 /* Override any GCC internal prototype to avoid an error.
16762 Use char because int might match the return type of a GCC
16763 builtin and then its argument prototype would still apply. */
16764 #ifdef __cplusplus
16765 extern "C"
16766 #endif
16767 char dgettext ();
16768 int
16769 main ()
16770 {
16771 return dgettext ();
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_c_try_link "$LINENO"; then :
16777 ac_cv_lib_intl_dgettext=yes
16778 else
16779 ac_cv_lib_intl_dgettext=no
16780 fi
16781 rm -f core conftest.err conftest.$ac_objext \
16782 conftest$ac_exeext conftest.$ac_ext
16783 LIBS=$ac_check_lib_save_LIBS
16784 fi
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16786 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16787 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
16788 cat >>confdefs.h <<_ACEOF
16789 #define HAVE_LIBINTL 1
16790 _ACEOF
16791
16792 LIBS="-lintl $LIBS"
16793
16794 fi
16795
16796
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16798 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16799 if ${emacs_cv_localtime_cache+:} false; then :
16800 $as_echo_n "(cached) " >&6
16801 else
16802 if test x$ac_cv_func_tzset = xyes; then
16803 if test "$cross_compiling" = yes; then :
16804 # If we have tzset, assume the worst when cross-compiling.
16805 emacs_cv_localtime_cache=yes
16806 else
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h. */
16809 #include <time.h>
16810 char TZ_GMT0[] = "TZ=GMT0";
16811 char TZ_PST8[] = "TZ=PST8";
16812 main()
16813 {
16814 time_t now = time ((time_t *) 0);
16815 int hour_GMT0, hour_unset;
16816 if (putenv (TZ_GMT0) != 0)
16817 exit (1);
16818 hour_GMT0 = localtime (&now)->tm_hour;
16819 unsetenv("TZ");
16820 hour_unset = localtime (&now)->tm_hour;
16821 if (putenv (TZ_PST8) != 0)
16822 exit (1);
16823 if (localtime (&now)->tm_hour == hour_GMT0)
16824 exit (1);
16825 unsetenv("TZ");
16826 if (localtime (&now)->tm_hour != hour_unset)
16827 exit (1);
16828 exit (0);
16829 }
16830 _ACEOF
16831 if ac_fn_c_try_run "$LINENO"; then :
16832 emacs_cv_localtime_cache=no
16833 else
16834 emacs_cv_localtime_cache=yes
16835 fi
16836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16837 conftest.$ac_objext conftest.beam conftest.$ac_ext
16838 fi
16839
16840 else
16841 # If we lack tzset, report that localtime does not cache TZ,
16842 # since we can't invalidate the cache if we don't have tzset.
16843 emacs_cv_localtime_cache=no
16844 fi
16845 fi
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16847 $as_echo "$emacs_cv_localtime_cache" >&6; }
16848 if test $emacs_cv_localtime_cache = yes; then
16849
16850 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16851
16852 fi
16853
16854 if test "x$HAVE_TIMEVAL" = xyes; then
16855 for ac_func in gettimeofday
16856 do :
16857 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16858 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16859 cat >>confdefs.h <<_ACEOF
16860 #define HAVE_GETTIMEOFDAY 1
16861 _ACEOF
16862
16863 fi
16864 done
16865
16866 if test $ac_cv_func_gettimeofday = yes; then
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16868 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16869 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
16870 $as_echo_n "(cached) " >&6
16871 else
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16874
16875 #ifdef TIME_WITH_SYS_TIME
16876 #include <sys/time.h>
16877 #include <time.h>
16878 #else
16879 #ifdef HAVE_SYS_TIME_H
16880 #include <sys/time.h>
16881 #else
16882 #include <time.h>
16883 #endif
16884 #endif
16885 int
16886 main ()
16887 {
16888 struct timeval time;
16889 gettimeofday (&time, 0);
16890 ;
16891 return 0;
16892 }
16893 _ACEOF
16894 if ac_fn_c_try_compile "$LINENO"; then :
16895 emacs_cv_gettimeofday_two_arguments=yes
16896 else
16897 emacs_cv_gettimeofday_two_arguments=no
16898 fi
16899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16900 fi
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16902 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16903 if test $emacs_cv_gettimeofday_two_arguments = no; then
16904
16905 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16906
16907 fi
16908 fi
16909 fi
16910
16911 ok_so_far=yes
16912 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16913 if test "x$ac_cv_func_socket" = xyes; then :
16914
16915 else
16916 ok_so_far=no
16917 fi
16918
16919 if test $ok_so_far = yes; then
16920 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16921 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16922
16923 else
16924 ok_so_far=no
16925 fi
16926
16927
16928 fi
16929 if test $ok_so_far = yes; then
16930 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16931 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16932
16933 else
16934 ok_so_far=no
16935 fi
16936
16937
16938 fi
16939 if test $ok_so_far = yes; then
16940
16941 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16942
16943 fi
16944
16945 if test -f /usr/lpp/X11/bin/smt.exp; then
16946
16947 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16948
16949 fi
16950
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16952 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16953 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16955 $as_echo "yes" >&6; }
16956
16957 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16958
16959 else
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16961 $as_echo "no" >&6; }
16962 fi
16963
16964 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16965 if test "x$ac_cv_type_pid_t" = xyes; then :
16966
16967 else
16968
16969 cat >>confdefs.h <<_ACEOF
16970 #define pid_t int
16971 _ACEOF
16972
16973 fi
16974
16975 for ac_header in vfork.h
16976 do :
16977 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16978 if test "x$ac_cv_header_vfork_h" = xyes; then :
16979 cat >>confdefs.h <<_ACEOF
16980 #define HAVE_VFORK_H 1
16981 _ACEOF
16982
16983 fi
16984
16985 done
16986
16987 for ac_func in fork vfork
16988 do :
16989 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16990 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16991 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16992 cat >>confdefs.h <<_ACEOF
16993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16994 _ACEOF
16995
16996 fi
16997 done
16998
16999 if test "x$ac_cv_func_fork" = xyes; then
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17001 $as_echo_n "checking for working fork... " >&6; }
17002 if ${ac_cv_func_fork_works+:} false; then :
17003 $as_echo_n "(cached) " >&6
17004 else
17005 if test "$cross_compiling" = yes; then :
17006 ac_cv_func_fork_works=cross
17007 else
17008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17009 /* end confdefs.h. */
17010 $ac_includes_default
17011 int
17012 main ()
17013 {
17014
17015 /* By Ruediger Kuhlmann. */
17016 return fork () < 0;
17017
17018 ;
17019 return 0;
17020 }
17021 _ACEOF
17022 if ac_fn_c_try_run "$LINENO"; then :
17023 ac_cv_func_fork_works=yes
17024 else
17025 ac_cv_func_fork_works=no
17026 fi
17027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17028 conftest.$ac_objext conftest.beam conftest.$ac_ext
17029 fi
17030
17031 fi
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17033 $as_echo "$ac_cv_func_fork_works" >&6; }
17034
17035 else
17036 ac_cv_func_fork_works=$ac_cv_func_fork
17037 fi
17038 if test "x$ac_cv_func_fork_works" = xcross; then
17039 case $host in
17040 *-*-amigaos* | *-*-msdosdjgpp*)
17041 # Override, as these systems have only a dummy fork() stub
17042 ac_cv_func_fork_works=no
17043 ;;
17044 *)
17045 ac_cv_func_fork_works=yes
17046 ;;
17047 esac
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17049 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17050 fi
17051 ac_cv_func_vfork_works=$ac_cv_func_vfork
17052 if test "x$ac_cv_func_vfork" = xyes; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17054 $as_echo_n "checking for working vfork... " >&6; }
17055 if ${ac_cv_func_vfork_works+:} false; then :
17056 $as_echo_n "(cached) " >&6
17057 else
17058 if test "$cross_compiling" = yes; then :
17059 ac_cv_func_vfork_works=cross
17060 else
17061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17062 /* end confdefs.h. */
17063 /* Thanks to Paul Eggert for this test. */
17064 $ac_includes_default
17065 #include <sys/wait.h>
17066 #ifdef HAVE_VFORK_H
17067 # include <vfork.h>
17068 #endif
17069 /* On some sparc systems, changes by the child to local and incoming
17070 argument registers are propagated back to the parent. The compiler
17071 is told about this with #include <vfork.h>, but some compilers
17072 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17073 static variable whose address is put into a register that is
17074 clobbered by the vfork. */
17075 static void
17076 #ifdef __cplusplus
17077 sparc_address_test (int arg)
17078 # else
17079 sparc_address_test (arg) int arg;
17080 #endif
17081 {
17082 static pid_t child;
17083 if (!child) {
17084 child = vfork ();
17085 if (child < 0) {
17086 perror ("vfork");
17087 _exit(2);
17088 }
17089 if (!child) {
17090 arg = getpid();
17091 write(-1, "", 0);
17092 _exit (arg);
17093 }
17094 }
17095 }
17096
17097 int
17098 main ()
17099 {
17100 pid_t parent = getpid ();
17101 pid_t child;
17102
17103 sparc_address_test (0);
17104
17105 child = vfork ();
17106
17107 if (child == 0) {
17108 /* Here is another test for sparc vfork register problems. This
17109 test uses lots of local variables, at least as many local
17110 variables as main has allocated so far including compiler
17111 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17112 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17113 reuse the register of parent for one of the local variables,
17114 since it will think that parent can't possibly be used any more
17115 in this routine. Assigning to the local variable will thus
17116 munge parent in the parent process. */
17117 pid_t
17118 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17119 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17120 /* Convince the compiler that p..p7 are live; otherwise, it might
17121 use the same hardware register for all 8 local variables. */
17122 if (p != p1 || p != p2 || p != p3 || p != p4
17123 || p != p5 || p != p6 || p != p7)
17124 _exit(1);
17125
17126 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17127 from child file descriptors. If the child closes a descriptor
17128 before it execs or exits, this munges the parent's descriptor
17129 as well. Test for this by closing stdout in the child. */
17130 _exit(close(fileno(stdout)) != 0);
17131 } else {
17132 int status;
17133 struct stat st;
17134
17135 while (wait(&status) != child)
17136 ;
17137 return (
17138 /* Was there some problem with vforking? */
17139 child < 0
17140
17141 /* Did the child fail? (This shouldn't happen.) */
17142 || status
17143
17144 /* Did the vfork/compiler bug occur? */
17145 || parent != getpid()
17146
17147 /* Did the file descriptor bug occur? */
17148 || fstat(fileno(stdout), &st) != 0
17149 );
17150 }
17151 }
17152 _ACEOF
17153 if ac_fn_c_try_run "$LINENO"; then :
17154 ac_cv_func_vfork_works=yes
17155 else
17156 ac_cv_func_vfork_works=no
17157 fi
17158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17159 conftest.$ac_objext conftest.beam conftest.$ac_ext
17160 fi
17161
17162 fi
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17164 $as_echo "$ac_cv_func_vfork_works" >&6; }
17165
17166 fi;
17167 if test "x$ac_cv_func_fork_works" = xcross; then
17168 ac_cv_func_vfork_works=$ac_cv_func_vfork
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17170 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17171 fi
17172
17173 if test "x$ac_cv_func_vfork_works" = xyes; then
17174
17175 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17176
17177 else
17178
17179 $as_echo "#define vfork fork" >>confdefs.h
17180
17181 fi
17182 if test "x$ac_cv_func_fork_works" = xyes; then
17183
17184 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17185
17186 fi
17187
17188
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
17190 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
17191 if ${emacs_cv_langinfo_codeset+:} false; then :
17192 $as_echo_n "(cached) " >&6
17193 else
17194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17195 /* end confdefs.h. */
17196 #include <langinfo.h>
17197 int
17198 main ()
17199 {
17200 char* cs = nl_langinfo(CODESET);
17201 ;
17202 return 0;
17203 }
17204 _ACEOF
17205 if ac_fn_c_try_link "$LINENO"; then :
17206 emacs_cv_langinfo_codeset=yes
17207 else
17208 emacs_cv_langinfo_codeset=no
17209 fi
17210 rm -f core conftest.err conftest.$ac_objext \
17211 conftest$ac_exeext conftest.$ac_ext
17212
17213 fi
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
17215 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
17216 if test $emacs_cv_langinfo_codeset = yes; then
17217
17218 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
17219
17220 fi
17221
17222 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17223 if test "x$ac_cv_type_size_t" = xyes; then :
17224
17225 cat >>confdefs.h <<_ACEOF
17226 #define HAVE_SIZE_T 1
17227 _ACEOF
17228
17229
17230 fi
17231
17232
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17234 $as_echo_n "checking for mbstate_t... " >&6; }
17235 if ${ac_cv_type_mbstate_t+:} false; then :
17236 $as_echo_n "(cached) " >&6
17237 else
17238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17239 /* end confdefs.h. */
17240 $ac_includes_default
17241 # include <wchar.h>
17242 int
17243 main ()
17244 {
17245 mbstate_t x; return sizeof x;
17246 ;
17247 return 0;
17248 }
17249 _ACEOF
17250 if ac_fn_c_try_compile "$LINENO"; then :
17251 ac_cv_type_mbstate_t=yes
17252 else
17253 ac_cv_type_mbstate_t=no
17254 fi
17255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17256 fi
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17258 $as_echo "$ac_cv_type_mbstate_t" >&6; }
17259 if test $ac_cv_type_mbstate_t = yes; then
17260
17261 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17262
17263 else
17264
17265 $as_echo "#define mbstate_t int" >>confdefs.h
17266
17267 fi
17268
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
17270 $as_echo_n "checking for C restricted array declarations... " >&6; }
17271 if ${emacs_cv_c_restrict_arr+:} false; then :
17272 $as_echo_n "(cached) " >&6
17273 else
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17276 void fred (int x[__restrict]);
17277 int
17278 main ()
17279 {
17280
17281 ;
17282 return 0;
17283 }
17284 _ACEOF
17285 if ac_fn_c_try_compile "$LINENO"; then :
17286 emacs_cv_c_restrict_arr=yes
17287 else
17288 emacs_cv_c_restrict_arr=no
17289 fi
17290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291 fi
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
17293 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
17294 if test "$emacs_cv_c_restrict_arr" = yes; then
17295
17296 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
17297
17298 fi
17299
17300
17301
17302 # Set up the CFLAGS for real compilation, so we can substitute it.
17303 CFLAGS="$REAL_CFLAGS"
17304 CPPFLAGS="$REAL_CPPFLAGS"
17305
17306 ## Hack to detect a buggy GCC version.
17307 if test "x$GCC" = xyes \
17308 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17309 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17310 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17311 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17312 fi
17313
17314 version=$PACKAGE_VERSION
17315
17316 ### Specify what sort of things we'll be editing into Makefile and config.h.
17317 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17318
17319
17320 ## Unused?
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17342 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17343 ## end of LIBX_BASE, but nothing ever set it.
17344
17345
17346
17347
17348 ## Used in lwlib/Makefile.in.
17349
17350 if test -n "${machfile}"; then
17351 M_FILE="\$(srcdir)/${machfile}"
17352 else
17353 M_FILE=
17354 fi
17355 S_FILE="\$(srcdir)/${opsysfile}"
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366 cat >>confdefs.h <<_ACEOF
17367 #define EMACS_CONFIGURATION "${canonical}"
17368 _ACEOF
17369
17370
17371 cat >>confdefs.h <<_ACEOF
17372 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17373 _ACEOF
17374
17375 if test -n "$machfile"; then
17376
17377 cat >>confdefs.h <<_ACEOF
17378 #define config_machfile "${machfile}"
17379 _ACEOF
17380
17381 fi
17382
17383 cat >>confdefs.h <<_ACEOF
17384 #define config_opsysfile "${opsysfile}"
17385 _ACEOF
17386
17387
17388 XMENU_OBJ=
17389 XOBJ=
17390 FONT_OBJ=
17391 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17392
17393 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17394
17395 XMENU_OBJ=xmenu.o
17396 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17397 FONT_OBJ=xfont.o
17398 if test "$HAVE_XFT" = "yes"; then
17399 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17400 elif test "$HAVE_FREETYPE" = "yes"; then
17401 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17402 fi
17403
17404 fi
17405
17406
17407
17408
17409 WIDGET_OBJ=
17410 MOTIF_LIBW=
17411 if test "${USE_X_TOOLKIT}" != "none" ; then
17412 WIDGET_OBJ=widget.o
17413
17414 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17415
17416 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17417
17418 $as_echo "#define USE_LUCID 1" >>confdefs.h
17419
17420 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17421
17422 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17423
17424 MOTIF_LIBW=-lXm
17425 case "$opsys" in
17426 gnu-linux)
17427 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17428 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17429 ;;
17430
17431 unixware)
17432 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17433 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17434 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17435 ;;
17436
17437 aix4-2)
17438 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17439 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17440 ;;
17441 esac
17442 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17443 fi
17444 fi
17445
17446
17447 TOOLKIT_LIBW=
17448 case "$USE_X_TOOLKIT" in
17449 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17450 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17451 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17452 esac
17453
17454
17455 if test "$USE_X_TOOLKIT" = "none"; then
17456 LIBXT_OTHER="\$(LIBXSM)"
17457 OLDXMENU_TARGET="really-oldXMenu"
17458 else
17459 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17460 OLDXMENU_TARGET="really-lwlib"
17461 fi
17462
17463
17464 ## The X Menu stuff is present in the X10 distribution, but missing
17465 ## from X11. If we have X10, just use the installed library;
17466 ## otherwise, use our own copy.
17467 if test "${HAVE_X11}" = "yes" ; then
17468
17469 $as_echo "#define HAVE_X11 1" >>confdefs.h
17470
17471
17472 if test "$USE_X_TOOLKIT" = "none"; then
17473 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17474 else
17475 OLDXMENU="\${lwlibdir}/liblw.a"
17476 fi
17477 LIBXMENU="\$(OLDXMENU)"
17478 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17479 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17480 else
17481 ## For a syntactically valid Makefile; not actually used for anything.
17482 ## See comments in src/Makefile.in.
17483 OLDXMENU=nothing
17484 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17485 if test "${HAVE_X_WINDOWS}" = "yes"; then
17486 LIBXMENU="-lXMenu"
17487 else
17488 LIBXMENU=
17489 fi
17490 LIBX_OTHER=
17491 OLDXMENU_DEPS=
17492 fi
17493
17494 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17495 OLDXMENU_TARGET=
17496 OLDXMENU=nothing
17497 LIBXMENU=
17498 OLDXMENU_DEPS=
17499 fi
17500
17501
17502
17503
17504
17505
17506
17507 if test "${HAVE_MENUS}" = "yes" ; then
17508
17509 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17510
17511 fi
17512
17513 if test "${GNU_MALLOC}" = "yes" ; then
17514
17515 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17516
17517 fi
17518
17519 RALLOC_OBJ=
17520 if test "${REL_ALLOC}" = "yes" ; then
17521
17522 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17523
17524
17525 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17526 fi
17527
17528
17529 if test "$opsys" = "cygwin"; then
17530 CYGWIN_OBJ="sheap.o"
17531 ## Cygwin differs because of its unexec().
17532 PRE_ALLOC_OBJ=
17533 POST_ALLOC_OBJ=lastfile.o
17534 else
17535 CYGWIN_OBJ=
17536 PRE_ALLOC_OBJ=lastfile.o
17537 POST_ALLOC_OBJ=
17538 fi
17539
17540
17541
17542
17543
17544 case "$opsys" in
17545 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17546
17547 darwin)
17548 ## The -headerpad option tells ld (see man page) to leave room at the
17549 ## end of the header for adding load commands. Needed for dumping.
17550 ## 0x690 is the total size of 30 segment load commands (at 56
17551 ## each); under Cocoa 31 commands are required.
17552 if test "$HAVE_NS" = "yes"; then
17553 libs_nsgui="-framework AppKit"
17554 headerpad_extra=6C8
17555 else
17556 libs_nsgui=
17557 headerpad_extra=690
17558 fi
17559 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17560
17561 ## This is here because src/Makefile.in did some extra fiddling around
17562 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17563 ## #ifndef LD_SWITCH_SYSTEM
17564 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17565 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17566 ## not using gcc, darwin system not on an alpha (ie darwin, since
17567 ## darwin + alpha does not occur).
17568 ## Because this was done in src/Makefile.in, the resulting part of
17569 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17570 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17571 ## rather than LD_SWITCH_SYSTEM.
17572 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17573 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17574 ;;
17575
17576 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17577 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17578 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17579 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17580 ## had different values in configure (in ac_link) and src/Makefile.in.
17581 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17582 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17583
17584 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17585 esac
17586
17587 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17588 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17589 fi
17590
17591
17592
17593
17594 LD_FIRSTFLAG=
17595 ORDINARY_LINK=
17596 case "$opsys" in
17597 ## gnu: GNU needs its own crt0.
17598 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17599
17600 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17601 ## library search parth, i.e. it won't search /usr/lib for libc and
17602 ## friends. Using -nostartfiles instead avoids this problem, and
17603 ## will also work on earlier NetBSD releases.
17604 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17605
17606 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17607 ## MkLinux/LinuxPPC needs this.
17608 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17609 gnu-*)
17610 case "$machine" in
17611 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17612 esac
17613 ;;
17614 esac
17615
17616
17617 if test "x$ORDINARY_LINK" = "xyes"; then
17618
17619 LD_FIRSTFLAG=""
17620
17621 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17622
17623
17624 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17625 ## freebsd, gnu-* not on macppc|ibms390x.
17626 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17627
17628 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17629 ## places that are difficult to figure out at make time. Fortunately,
17630 ## these same versions allow you to pass arbitrary flags on to the
17631 ## linker, so there is no reason not to use it as a linker.
17632 ##
17633 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17634 ## searching for libraries in its internal directories, so we have to
17635 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17636 LD_FIRSTFLAG="-nostdlib"
17637 fi
17638
17639 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17640 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17641
17642
17643
17644
17645 ## FIXME? The logic here is not precisely the same as that above.
17646 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17647 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17648 LIB_GCC=
17649 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17650
17651 case "$opsys" in
17652 freebsd|netbsd|openbsd) LIB_GCC= ;;
17653
17654 gnu-*)
17655 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17656 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17657 case $host_cpu in
17658 arm*)
17659 LIB_GCC="-lgcc_s"
17660 ;;
17661 *)
17662 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17663 ## immediately undefine it again and redefine it to empty.
17664 ## Was the C_SWITCH_X_SITE part really necessary?
17665 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17666 LIB_GCC=
17667 ;;
17668 esac
17669 ;;
17670
17671 ## Ask GCC where to find libgcc.a.
17672 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17673 esac
17674 fi
17675
17676
17677 TOOLTIP_SUPPORT=
17678 WINDOW_SUPPORT=
17679 ## If we're using X11/GNUstep, define some consequences.
17680 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17681
17682 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17683
17684
17685 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17686
17687 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17688 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17689
17690 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17691 test "$HAVE_X_WINDOWS" = "yes" && \
17692 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17693
17694 fi
17695
17696
17697
17698
17699
17700
17701
17702 #### Report on what we decided to do.
17703 #### Report GTK as a toolkit, even if it doesn't use Xt.
17704 #### It makes printing result more understandable as using GTK sets
17705 #### toolkit_scroll_bars to yes by default.
17706 if test "${HAVE_GTK}" = "yes"; then
17707 USE_X_TOOLKIT=GTK
17708 fi
17709
17710 and_machfile=
17711 if test -n "$machfile"; then
17712 and_machfile=" and \`${machfile}'"
17713 fi
17714
17715 echo "
17716 Configured for \`${canonical}'.
17717
17718 Where should the build process find the source code? ${srcdir}
17719 What operating system and machine description files should Emacs use?
17720 \`${opsysfile}'${and_machfile}
17721 What compiler should emacs be built with? ${CC} ${CFLAGS}
17722 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17723 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17724 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17725 What window system should Emacs use? ${window_system}
17726 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17727
17728 if test -n "${x_includes}"; then
17729 echo " Where do we find X Windows header files? ${x_includes}"
17730 else
17731 echo " Where do we find X Windows header files? Standard dirs"
17732 fi
17733 if test -n "${x_libraries}"; then
17734 echo " Where do we find X Windows libraries? ${x_libraries}"
17735 else
17736 echo " Where do we find X Windows libraries? Standard dirs"
17737 fi
17738
17739 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17740 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17741 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17742 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17743 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17744 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17745 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17746 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17747
17748 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17749 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17750 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17751 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17752 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17753 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17754
17755 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17756 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17757 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17758 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17759
17760 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17761 echo
17762
17763 if test $USE_XASSERTS = yes; then
17764 echo " Compiling with asserts turned on."
17765 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17766 fi
17767
17768 echo
17769
17770 if test "$HAVE_NS" = "yes"; then
17771 echo
17772 echo "You must run \"make install\" in order to test the built application.
17773 The installed application will go to nextstep/Emacs.app and can be
17774 run or moved from there."
17775 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17776 echo "The application will be fully self-contained."
17777 else
17778 echo "The lisp resources for the application will be installed under ${prefix}.
17779 You may need to run \"make install\" with sudo. The application will fail
17780 to run if these resources are not installed."
17781 fi
17782 echo
17783 fi
17784
17785
17786 # Remove any trailing slashes in these variables.
17787 test "${prefix}" != NONE &&
17788 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17789 test "${exec_prefix}" != NONE &&
17790 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17791
17792 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"
17793
17794 ac_config_commands="$ac_config_commands default"
17795
17796 cat >confcache <<\_ACEOF
17797 # This file is a shell script that caches the results of configure
17798 # tests run on this system so they can be shared between configure
17799 # scripts and configure runs, see configure's option --config-cache.
17800 # It is not useful on other systems. If it contains results you don't
17801 # want to keep, you may remove or edit it.
17802 #
17803 # config.status only pays attention to the cache file if you give it
17804 # the --recheck option to rerun configure.
17805 #
17806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17808 # following values.
17809
17810 _ACEOF
17811
17812 # The following way of writing the cache mishandles newlines in values,
17813 # but we know of no workaround that is simple, portable, and efficient.
17814 # So, we kill variables containing newlines.
17815 # Ultrix sh set writes to stderr and can't be redirected directly,
17816 # and sets the high bit in the cache file unless we assign to the vars.
17817 (
17818 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17819 eval ac_val=\$$ac_var
17820 case $ac_val in #(
17821 *${as_nl}*)
17822 case $ac_var in #(
17823 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17824 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17825 esac
17826 case $ac_var in #(
17827 _ | IFS | as_nl) ;; #(
17828 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17829 *) { eval $ac_var=; unset $ac_var;} ;;
17830 esac ;;
17831 esac
17832 done
17833
17834 (set) 2>&1 |
17835 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17836 *${as_nl}ac_space=\ *)
17837 # `set' does not quote correctly, so add quotes: double-quote
17838 # substitution turns \\\\ into \\, and sed turns \\ into \.
17839 sed -n \
17840 "s/'/'\\\\''/g;
17841 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17842 ;; #(
17843 *)
17844 # `set' quotes correctly as required by POSIX, so do not add quotes.
17845 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17846 ;;
17847 esac |
17848 sort
17849 ) |
17850 sed '
17851 /^ac_cv_env_/b end
17852 t clear
17853 :clear
17854 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17855 t end
17856 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17857 :end' >>confcache
17858 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17859 if test -w "$cache_file"; then
17860 if test "x$cache_file" != "x/dev/null"; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17862 $as_echo "$as_me: updating cache $cache_file" >&6;}
17863 if test ! -f "$cache_file" || test -h "$cache_file"; then
17864 cat confcache >"$cache_file"
17865 else
17866 case $cache_file in #(
17867 */* | ?:*)
17868 mv -f confcache "$cache_file"$$ &&
17869 mv -f "$cache_file"$$ "$cache_file" ;; #(
17870 *)
17871 mv -f confcache "$cache_file" ;;
17872 esac
17873 fi
17874 fi
17875 else
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17877 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17878 fi
17879 fi
17880 rm -f confcache
17881
17882 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17883 # Let make expand exec_prefix.
17884 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17885
17886 DEFS=-DHAVE_CONFIG_H
17887
17888 ac_libobjs=
17889 ac_ltlibobjs=
17890 U=
17891 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17892 # 1. Remove the extension, and $U if already installed.
17893 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17894 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17895 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17896 # will be set to the directory where LIBOBJS objects are built.
17897 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17898 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17899 done
17900 LIBOBJS=$ac_libobjs
17901
17902 LTLIBOBJS=$ac_ltlibobjs
17903
17904
17905 if test -n "$EXEEXT"; then
17906 am__EXEEXT_TRUE=
17907 am__EXEEXT_FALSE='#'
17908 else
17909 am__EXEEXT_TRUE='#'
17910 am__EXEEXT_FALSE=
17911 fi
17912
17913 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17914 as_fn_error $? "conditional \"AMDEP\" was never defined.
17915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17916 fi
17917 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17918 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17920 fi
17921
17922 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17923 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17925 fi
17926
17927 gl_libobjs=
17928 gl_ltlibobjs=
17929 if test -n "$gl_LIBOBJS"; then
17930 # Remove the extension.
17931 sed_drop_objext='s/\.o$//;s/\.obj$//'
17932 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17933 gl_libobjs="$gl_libobjs $i.$ac_objext"
17934 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17935 done
17936 fi
17937 gl_LIBOBJS=$gl_libobjs
17938
17939 gl_LTLIBOBJS=$gl_ltlibobjs
17940
17941
17942
17943 gltests_libobjs=
17944 gltests_ltlibobjs=
17945 if test -n "$gltests_LIBOBJS"; then
17946 # Remove the extension.
17947 sed_drop_objext='s/\.o$//;s/\.obj$//'
17948 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17949 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17950 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17951 done
17952 fi
17953 gltests_LIBOBJS=$gltests_libobjs
17954
17955 gltests_LTLIBOBJS=$gltests_ltlibobjs
17956
17957
17958
17959 : "${CONFIG_STATUS=./config.status}"
17960 ac_write_fail=0
17961 ac_clean_files_save=$ac_clean_files
17962 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17964 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17965 as_write_fail=0
17966 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17967 #! $SHELL
17968 # Generated by $as_me.
17969 # Run this file to recreate the current configuration.
17970 # Compiler output produced by configure, useful for debugging
17971 # configure, is in config.log if it exists.
17972
17973 debug=false
17974 ac_cs_recheck=false
17975 ac_cs_silent=false
17976
17977 SHELL=\${CONFIG_SHELL-$SHELL}
17978 export SHELL
17979 _ASEOF
17980 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17981 ## -------------------- ##
17982 ## M4sh Initialization. ##
17983 ## -------------------- ##
17984
17985 # Be more Bourne compatible
17986 DUALCASE=1; export DUALCASE # for MKS sh
17987 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17988 emulate sh
17989 NULLCMD=:
17990 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17991 # is contrary to our usage. Disable this feature.
17992 alias -g '${1+"$@"}'='"$@"'
17993 setopt NO_GLOB_SUBST
17994 else
17995 case `(set -o) 2>/dev/null` in #(
17996 *posix*) :
17997 set -o posix ;; #(
17998 *) :
17999 ;;
18000 esac
18001 fi
18002
18003
18004 as_nl='
18005 '
18006 export as_nl
18007 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18008 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18009 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18010 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18011 # Prefer a ksh shell builtin over an external printf program on Solaris,
18012 # but without wasting forks for bash or zsh.
18013 if test -z "$BASH_VERSION$ZSH_VERSION" \
18014 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18015 as_echo='print -r --'
18016 as_echo_n='print -rn --'
18017 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18018 as_echo='printf %s\n'
18019 as_echo_n='printf %s'
18020 else
18021 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18022 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18023 as_echo_n='/usr/ucb/echo -n'
18024 else
18025 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18026 as_echo_n_body='eval
18027 arg=$1;
18028 case $arg in #(
18029 *"$as_nl"*)
18030 expr "X$arg" : "X\\(.*\\)$as_nl";
18031 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18032 esac;
18033 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18034 '
18035 export as_echo_n_body
18036 as_echo_n='sh -c $as_echo_n_body as_echo'
18037 fi
18038 export as_echo_body
18039 as_echo='sh -c $as_echo_body as_echo'
18040 fi
18041
18042 # The user is always right.
18043 if test "${PATH_SEPARATOR+set}" != set; then
18044 PATH_SEPARATOR=:
18045 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18046 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18047 PATH_SEPARATOR=';'
18048 }
18049 fi
18050
18051
18052 # IFS
18053 # We need space, tab and new line, in precisely that order. Quoting is
18054 # there to prevent editors from complaining about space-tab.
18055 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18056 # splitting by setting IFS to empty value.)
18057 IFS=" "" $as_nl"
18058
18059 # Find who we are. Look in the path if we contain no directory separator.
18060 as_myself=
18061 case $0 in #((
18062 *[\\/]* ) as_myself=$0 ;;
18063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18064 for as_dir in $PATH
18065 do
18066 IFS=$as_save_IFS
18067 test -z "$as_dir" && as_dir=.
18068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18069 done
18070 IFS=$as_save_IFS
18071
18072 ;;
18073 esac
18074 # We did not find ourselves, most probably we were run as `sh COMMAND'
18075 # in which case we are not to be found in the path.
18076 if test "x$as_myself" = x; then
18077 as_myself=$0
18078 fi
18079 if test ! -f "$as_myself"; then
18080 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18081 exit 1
18082 fi
18083
18084 # Unset variables that we do not need and which cause bugs (e.g. in
18085 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18086 # suppresses any "Segmentation fault" message there. '((' could
18087 # trigger a bug in pdksh 5.2.14.
18088 for as_var in BASH_ENV ENV MAIL MAILPATH
18089 do eval test x\${$as_var+set} = xset \
18090 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18091 done
18092 PS1='$ '
18093 PS2='> '
18094 PS4='+ '
18095
18096 # NLS nuisances.
18097 LC_ALL=C
18098 export LC_ALL
18099 LANGUAGE=C
18100 export LANGUAGE
18101
18102 # CDPATH.
18103 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18104
18105
18106 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18107 # ----------------------------------------
18108 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18109 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18110 # script with STATUS, using 1 if that was 0.
18111 as_fn_error ()
18112 {
18113 as_status=$1; test $as_status -eq 0 && as_status=1
18114 if test "$4"; then
18115 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18116 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18117 fi
18118 $as_echo "$as_me: error: $2" >&2
18119 as_fn_exit $as_status
18120 } # as_fn_error
18121
18122
18123 # as_fn_set_status STATUS
18124 # -----------------------
18125 # Set $? to STATUS, without forking.
18126 as_fn_set_status ()
18127 {
18128 return $1
18129 } # as_fn_set_status
18130
18131 # as_fn_exit STATUS
18132 # -----------------
18133 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18134 as_fn_exit ()
18135 {
18136 set +e
18137 as_fn_set_status $1
18138 exit $1
18139 } # as_fn_exit
18140
18141 # as_fn_unset VAR
18142 # ---------------
18143 # Portably unset VAR.
18144 as_fn_unset ()
18145 {
18146 { eval $1=; unset $1;}
18147 }
18148 as_unset=as_fn_unset
18149 # as_fn_append VAR VALUE
18150 # ----------------------
18151 # Append the text in VALUE to the end of the definition contained in VAR. Take
18152 # advantage of any shell optimizations that allow amortized linear growth over
18153 # repeated appends, instead of the typical quadratic growth present in naive
18154 # implementations.
18155 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18156 eval 'as_fn_append ()
18157 {
18158 eval $1+=\$2
18159 }'
18160 else
18161 as_fn_append ()
18162 {
18163 eval $1=\$$1\$2
18164 }
18165 fi # as_fn_append
18166
18167 # as_fn_arith ARG...
18168 # ------------------
18169 # Perform arithmetic evaluation on the ARGs, and store the result in the
18170 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18171 # must be portable across $(()) and expr.
18172 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18173 eval 'as_fn_arith ()
18174 {
18175 as_val=$(( $* ))
18176 }'
18177 else
18178 as_fn_arith ()
18179 {
18180 as_val=`expr "$@" || test $? -eq 1`
18181 }
18182 fi # as_fn_arith
18183
18184
18185 if expr a : '\(a\)' >/dev/null 2>&1 &&
18186 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18187 as_expr=expr
18188 else
18189 as_expr=false
18190 fi
18191
18192 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18193 as_basename=basename
18194 else
18195 as_basename=false
18196 fi
18197
18198 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18199 as_dirname=dirname
18200 else
18201 as_dirname=false
18202 fi
18203
18204 as_me=`$as_basename -- "$0" ||
18205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18206 X"$0" : 'X\(//\)$' \| \
18207 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18208 $as_echo X/"$0" |
18209 sed '/^.*\/\([^/][^/]*\)\/*$/{
18210 s//\1/
18211 q
18212 }
18213 /^X\/\(\/\/\)$/{
18214 s//\1/
18215 q
18216 }
18217 /^X\/\(\/\).*/{
18218 s//\1/
18219 q
18220 }
18221 s/.*/./; q'`
18222
18223 # Avoid depending upon Character Ranges.
18224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18227 as_cr_digits='0123456789'
18228 as_cr_alnum=$as_cr_Letters$as_cr_digits
18229
18230 ECHO_C= ECHO_N= ECHO_T=
18231 case `echo -n x` in #(((((
18232 -n*)
18233 case `echo 'xy\c'` in
18234 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18235 xy) ECHO_C='\c';;
18236 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18237 ECHO_T=' ';;
18238 esac;;
18239 *)
18240 ECHO_N='-n';;
18241 esac
18242
18243 rm -f conf$$ conf$$.exe conf$$.file
18244 if test -d conf$$.dir; then
18245 rm -f conf$$.dir/conf$$.file
18246 else
18247 rm -f conf$$.dir
18248 mkdir conf$$.dir 2>/dev/null
18249 fi
18250 if (echo >conf$$.file) 2>/dev/null; then
18251 if ln -s conf$$.file conf$$ 2>/dev/null; then
18252 as_ln_s='ln -s'
18253 # ... but there are two gotchas:
18254 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18255 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18256 # In both cases, we have to default to `cp -p'.
18257 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18258 as_ln_s='cp -p'
18259 elif ln conf$$.file conf$$ 2>/dev/null; then
18260 as_ln_s=ln
18261 else
18262 as_ln_s='cp -p'
18263 fi
18264 else
18265 as_ln_s='cp -p'
18266 fi
18267 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18268 rmdir conf$$.dir 2>/dev/null
18269
18270
18271 # as_fn_mkdir_p
18272 # -------------
18273 # Create "$as_dir" as a directory, including parents if necessary.
18274 as_fn_mkdir_p ()
18275 {
18276
18277 case $as_dir in #(
18278 -*) as_dir=./$as_dir;;
18279 esac
18280 test -d "$as_dir" || eval $as_mkdir_p || {
18281 as_dirs=
18282 while :; do
18283 case $as_dir in #(
18284 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18285 *) as_qdir=$as_dir;;
18286 esac
18287 as_dirs="'$as_qdir' $as_dirs"
18288 as_dir=`$as_dirname -- "$as_dir" ||
18289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18290 X"$as_dir" : 'X\(//\)[^/]' \| \
18291 X"$as_dir" : 'X\(//\)$' \| \
18292 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18293 $as_echo X"$as_dir" |
18294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18295 s//\1/
18296 q
18297 }
18298 /^X\(\/\/\)[^/].*/{
18299 s//\1/
18300 q
18301 }
18302 /^X\(\/\/\)$/{
18303 s//\1/
18304 q
18305 }
18306 /^X\(\/\).*/{
18307 s//\1/
18308 q
18309 }
18310 s/.*/./; q'`
18311 test -d "$as_dir" && break
18312 done
18313 test -z "$as_dirs" || eval "mkdir $as_dirs"
18314 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18315
18316
18317 } # as_fn_mkdir_p
18318 if mkdir -p . 2>/dev/null; then
18319 as_mkdir_p='mkdir -p "$as_dir"'
18320 else
18321 test -d ./-p && rmdir ./-p
18322 as_mkdir_p=false
18323 fi
18324
18325 if test -x / >/dev/null 2>&1; then
18326 as_test_x='test -x'
18327 else
18328 if ls -dL / >/dev/null 2>&1; then
18329 as_ls_L_option=L
18330 else
18331 as_ls_L_option=
18332 fi
18333 as_test_x='
18334 eval sh -c '\''
18335 if test -d "$1"; then
18336 test -d "$1/.";
18337 else
18338 case $1 in #(
18339 -*)set "./$1";;
18340 esac;
18341 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18342 ???[sx]*):;;*)false;;esac;fi
18343 '\'' sh
18344 '
18345 fi
18346 as_executable_p=$as_test_x
18347
18348 # Sed expression to map a string onto a valid CPP name.
18349 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18350
18351 # Sed expression to map a string onto a valid variable name.
18352 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18353
18354
18355 exec 6>&1
18356 ## ----------------------------------- ##
18357 ## Main body of $CONFIG_STATUS script. ##
18358 ## ----------------------------------- ##
18359 _ASEOF
18360 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18361
18362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18363 # Save the log message, to keep $0 and so on meaningful, and to
18364 # report actual input values of CONFIG_FILES etc. instead of their
18365 # values after options handling.
18366 ac_log="
18367 This file was extended by emacs $as_me 24.0.50, which was
18368 generated by GNU Autoconf 2.68. Invocation command line was
18369
18370 CONFIG_FILES = $CONFIG_FILES
18371 CONFIG_HEADERS = $CONFIG_HEADERS
18372 CONFIG_LINKS = $CONFIG_LINKS
18373 CONFIG_COMMANDS = $CONFIG_COMMANDS
18374 $ $0 $@
18375
18376 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18377 "
18378
18379 _ACEOF
18380
18381 case $ac_config_files in *"
18382 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18383 esac
18384
18385 case $ac_config_headers in *"
18386 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18387 esac
18388
18389
18390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18391 # Files that config.status was made for.
18392 config_files="$ac_config_files"
18393 config_headers="$ac_config_headers"
18394 config_commands="$ac_config_commands"
18395
18396 _ACEOF
18397
18398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18399 ac_cs_usage="\
18400 \`$as_me' instantiates files and other configuration actions
18401 from templates according to the current configuration. Unless the files
18402 and actions are specified as TAGs, all are instantiated by default.
18403
18404 Usage: $0 [OPTION]... [TAG]...
18405
18406 -h, --help print this help, then exit
18407 -V, --version print version number and configuration settings, then exit
18408 --config print configuration, then exit
18409 -q, --quiet, --silent
18410 do not print progress messages
18411 -d, --debug don't remove temporary files
18412 --recheck update $as_me by reconfiguring in the same conditions
18413 --file=FILE[:TEMPLATE]
18414 instantiate the configuration file FILE
18415 --header=FILE[:TEMPLATE]
18416 instantiate the configuration header FILE
18417
18418 Configuration files:
18419 $config_files
18420
18421 Configuration headers:
18422 $config_headers
18423
18424 Configuration commands:
18425 $config_commands
18426
18427 Report bugs to the package provider."
18428
18429 _ACEOF
18430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18431 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18432 ac_cs_version="\\
18433 emacs config.status 24.0.50
18434 configured by $0, generated by GNU Autoconf 2.68,
18435 with options \\"\$ac_cs_config\\"
18436
18437 Copyright (C) 2010 Free Software Foundation, Inc.
18438 This config.status script is free software; the Free Software Foundation
18439 gives unlimited permission to copy, distribute and modify it."
18440
18441 ac_pwd='$ac_pwd'
18442 srcdir='$srcdir'
18443 INSTALL='$INSTALL'
18444 MKDIR_P='$MKDIR_P'
18445 AWK='$AWK'
18446 test -n "\$AWK" || AWK=awk
18447 _ACEOF
18448
18449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18450 # The default lists apply if the user does not specify any file.
18451 ac_need_defaults=:
18452 while test $# != 0
18453 do
18454 case $1 in
18455 --*=?*)
18456 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18457 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18458 ac_shift=:
18459 ;;
18460 --*=)
18461 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18462 ac_optarg=
18463 ac_shift=:
18464 ;;
18465 *)
18466 ac_option=$1
18467 ac_optarg=$2
18468 ac_shift=shift
18469 ;;
18470 esac
18471
18472 case $ac_option in
18473 # Handling of the options.
18474 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18475 ac_cs_recheck=: ;;
18476 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18477 $as_echo "$ac_cs_version"; exit ;;
18478 --config | --confi | --conf | --con | --co | --c )
18479 $as_echo "$ac_cs_config"; exit ;;
18480 --debug | --debu | --deb | --de | --d | -d )
18481 debug=: ;;
18482 --file | --fil | --fi | --f )
18483 $ac_shift
18484 case $ac_optarg in
18485 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18486 '') as_fn_error $? "missing file argument" ;;
18487 esac
18488 as_fn_append CONFIG_FILES " '$ac_optarg'"
18489 ac_need_defaults=false;;
18490 --header | --heade | --head | --hea )
18491 $ac_shift
18492 case $ac_optarg in
18493 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18494 esac
18495 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18496 ac_need_defaults=false;;
18497 --he | --h)
18498 # Conflict between --help and --header
18499 as_fn_error $? "ambiguous option: \`$1'
18500 Try \`$0 --help' for more information.";;
18501 --help | --hel | -h )
18502 $as_echo "$ac_cs_usage"; exit ;;
18503 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18504 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18505 ac_cs_silent=: ;;
18506
18507 # This is an error.
18508 -*) as_fn_error $? "unrecognized option: \`$1'
18509 Try \`$0 --help' for more information." ;;
18510
18511 *) as_fn_append ac_config_targets " $1"
18512 ac_need_defaults=false ;;
18513
18514 esac
18515 shift
18516 done
18517
18518 ac_configure_extra_args=
18519
18520 if $ac_cs_silent; then
18521 exec 6>/dev/null
18522 ac_configure_extra_args="$ac_configure_extra_args --silent"
18523 fi
18524
18525 _ACEOF
18526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18527 if \$ac_cs_recheck; then
18528 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18529 shift
18530 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18531 CONFIG_SHELL='$SHELL'
18532 export CONFIG_SHELL
18533 exec "\$@"
18534 fi
18535
18536 _ACEOF
18537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18538 exec 5>>config.log
18539 {
18540 echo
18541 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18542 ## Running $as_me. ##
18543 _ASBOX
18544 $as_echo "$ac_log"
18545 } >&5
18546
18547 _ACEOF
18548 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18549 #
18550 # INIT-COMMANDS
18551 #
18552 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18553 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18554
18555 _ACEOF
18556
18557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18558
18559 # Handling of arguments.
18560 for ac_config_target in $ac_config_targets
18561 do
18562 case $ac_config_target in
18563 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18564 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18565 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18566 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18567 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18568 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18569 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18570 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18571 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18572 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18573 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18574 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18575 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18576 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18577 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
18578 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18579
18580 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18581 esac
18582 done
18583
18584
18585 # If the user did not use the arguments to specify the items to instantiate,
18586 # then the envvar interface is used. Set only those that are not.
18587 # We use the long form for the default assignment because of an extremely
18588 # bizarre bug on SunOS 4.1.3.
18589 if $ac_need_defaults; then
18590 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18591 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18592 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18593 fi
18594
18595 # Have a temporary directory for convenience. Make it in the build tree
18596 # simply because there is no reason against having it here, and in addition,
18597 # creating and moving files from /tmp can sometimes cause problems.
18598 # Hook for its removal unless debugging.
18599 # Note that there is a small window in which the directory will not be cleaned:
18600 # after its creation but before its name has been assigned to `$tmp'.
18601 $debug ||
18602 {
18603 tmp= ac_tmp=
18604 trap 'exit_status=$?
18605 : "${ac_tmp:=$tmp}"
18606 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18607 ' 0
18608 trap 'as_fn_exit 1' 1 2 13 15
18609 }
18610 # Create a (secure) tmp directory for tmp files.
18611
18612 {
18613 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18614 test -d "$tmp"
18615 } ||
18616 {
18617 tmp=./conf$$-$RANDOM
18618 (umask 077 && mkdir "$tmp")
18619 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18620 ac_tmp=$tmp
18621
18622 # Set up the scripts for CONFIG_FILES section.
18623 # No need to generate them if there are no CONFIG_FILES.
18624 # This happens for instance with `./config.status config.h'.
18625 if test -n "$CONFIG_FILES"; then
18626
18627 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18628 ac_cs_awk_getline=:
18629 ac_cs_awk_pipe_init=
18630 ac_cs_awk_read_file='
18631 while ((getline aline < (F[key])) > 0)
18632 print(aline)
18633 close(F[key])'
18634 ac_cs_awk_pipe_fini=
18635 else
18636 ac_cs_awk_getline=false
18637 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18638 ac_cs_awk_read_file='
18639 print "|#_!!_#|"
18640 print "cat " F[key] " &&"
18641 '$ac_cs_awk_pipe_init
18642 # The final `:' finishes the AND list.
18643 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18644 fi
18645 ac_cr=`echo X | tr X '\015'`
18646 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18647 # But we know of no other shell where ac_cr would be empty at this
18648 # point, so we can use a bashism as a fallback.
18649 if test "x$ac_cr" = x; then
18650 eval ac_cr=\$\'\\r\'
18651 fi
18652 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18653 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18654 ac_cs_awk_cr='\\r'
18655 else
18656 ac_cs_awk_cr=$ac_cr
18657 fi
18658
18659 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18660 _ACEOF
18661
18662 # Create commands to substitute file output variables.
18663 {
18664 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18665 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18666 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18667 echo "_ACAWK" &&
18668 echo "_ACEOF"
18669 } >conf$$files.sh &&
18670 . ./conf$$files.sh ||
18671 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18672 rm -f conf$$files.sh
18673
18674 {
18675 echo "cat >conf$$subs.awk <<_ACEOF" &&
18676 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18677 echo "_ACEOF"
18678 } >conf$$subs.sh ||
18679 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18680 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18681 ac_delim='%!_!# '
18682 for ac_last_try in false false false false false :; do
18683 . ./conf$$subs.sh ||
18684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18685
18686 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18687 if test $ac_delim_n = $ac_delim_num; then
18688 break
18689 elif $ac_last_try; then
18690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18691 else
18692 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18693 fi
18694 done
18695 rm -f conf$$subs.sh
18696
18697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18698 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18699 _ACEOF
18700 sed -n '
18701 h
18702 s/^/S["/; s/!.*/"]=/
18703 p
18704 g
18705 s/^[^!]*!//
18706 :repl
18707 t repl
18708 s/'"$ac_delim"'$//
18709 t delim
18710 :nl
18711 h
18712 s/\(.\{148\}\)..*/\1/
18713 t more1
18714 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18715 p
18716 n
18717 b repl
18718 :more1
18719 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18720 p
18721 g
18722 s/.\{148\}//
18723 t nl
18724 :delim
18725 h
18726 s/\(.\{148\}\)..*/\1/
18727 t more2
18728 s/["\\]/\\&/g; s/^/"/; s/$/"/
18729 p
18730 b
18731 :more2
18732 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18733 p
18734 g
18735 s/.\{148\}//
18736 t delim
18737 ' <conf$$subs.awk | sed '
18738 /^[^""]/{
18739 N
18740 s/\n//
18741 }
18742 ' >>$CONFIG_STATUS || ac_write_fail=1
18743 rm -f conf$$subs.awk
18744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18745 _ACAWK
18746 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18747 for (key in S) S_is_set[key] = 1
18748 FS = "\a"
18749 \$ac_cs_awk_pipe_init
18750 }
18751 {
18752 line = $ 0
18753 nfields = split(line, field, "@")
18754 substed = 0
18755 len = length(field[1])
18756 for (i = 2; i < nfields; i++) {
18757 key = field[i]
18758 keylen = length(key)
18759 if (S_is_set[key]) {
18760 value = S[key]
18761 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18762 len += length(value) + length(field[++i])
18763 substed = 1
18764 } else
18765 len += 1 + keylen
18766 }
18767 if (nfields == 3 && !substed) {
18768 key = field[2]
18769 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18770 \$ac_cs_awk_read_file
18771 next
18772 }
18773 }
18774 print line
18775 }
18776 \$ac_cs_awk_pipe_fini
18777 _ACAWK
18778 _ACEOF
18779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18780 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18781 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18782 else
18783 cat
18784 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18785 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18786 _ACEOF
18787
18788 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18789 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18790 # trailing colons and then remove the whole line if VPATH becomes empty
18791 # (actually we leave an empty line to preserve line numbers).
18792 if test "x$srcdir" = x.; then
18793 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18794 h
18795 s///
18796 s/^/:/
18797 s/[ ]*$/:/
18798 s/:\$(srcdir):/:/g
18799 s/:\${srcdir}:/:/g
18800 s/:@srcdir@:/:/g
18801 s/^:*//
18802 s/:*$//
18803 x
18804 s/\(=[ ]*\).*/\1/
18805 G
18806 s/\n//
18807 s/^[^=]*=[ ]*$//
18808 }'
18809 fi
18810
18811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18812 fi # test -n "$CONFIG_FILES"
18813
18814 # Set up the scripts for CONFIG_HEADERS section.
18815 # No need to generate them if there are no CONFIG_HEADERS.
18816 # This happens for instance with `./config.status Makefile'.
18817 if test -n "$CONFIG_HEADERS"; then
18818 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18819 BEGIN {
18820 _ACEOF
18821
18822 # Transform confdefs.h into an awk script `defines.awk', embedded as
18823 # here-document in config.status, that substitutes the proper values into
18824 # config.h.in to produce config.h.
18825
18826 # Create a delimiter string that does not exist in confdefs.h, to ease
18827 # handling of long lines.
18828 ac_delim='%!_!# '
18829 for ac_last_try in false false :; do
18830 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18831 if test -z "$ac_tt"; then
18832 break
18833 elif $ac_last_try; then
18834 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18835 else
18836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18837 fi
18838 done
18839
18840 # For the awk script, D is an array of macro values keyed by name,
18841 # likewise P contains macro parameters if any. Preserve backslash
18842 # newline sequences.
18843
18844 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18845 sed -n '
18846 s/.\{148\}/&'"$ac_delim"'/g
18847 t rset
18848 :rset
18849 s/^[ ]*#[ ]*define[ ][ ]*/ /
18850 t def
18851 d
18852 :def
18853 s/\\$//
18854 t bsnl
18855 s/["\\]/\\&/g
18856 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18857 D["\1"]=" \3"/p
18858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18859 d
18860 :bsnl
18861 s/["\\]/\\&/g
18862 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18863 D["\1"]=" \3\\\\\\n"\\/p
18864 t cont
18865 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18866 t cont
18867 d
18868 :cont
18869 n
18870 s/.\{148\}/&'"$ac_delim"'/g
18871 t clear
18872 :clear
18873 s/\\$//
18874 t bsnlc
18875 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18876 d
18877 :bsnlc
18878 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18879 b cont
18880 ' <confdefs.h | sed '
18881 s/'"$ac_delim"'/"\\\
18882 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18883
18884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18885 for (key in D) D_is_set[key] = 1
18886 FS = "\a"
18887 }
18888 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18889 line = \$ 0
18890 split(line, arg, " ")
18891 if (arg[1] == "#") {
18892 defundef = arg[2]
18893 mac1 = arg[3]
18894 } else {
18895 defundef = substr(arg[1], 2)
18896 mac1 = arg[2]
18897 }
18898 split(mac1, mac2, "(") #)
18899 macro = mac2[1]
18900 prefix = substr(line, 1, index(line, defundef) - 1)
18901 if (D_is_set[macro]) {
18902 # Preserve the white space surrounding the "#".
18903 print prefix "define", macro P[macro] D[macro]
18904 next
18905 } else {
18906 # Replace #undef with comments. This is necessary, for example,
18907 # in the case of _POSIX_SOURCE, which is predefined and required
18908 # on some systems where configure will not decide to define it.
18909 if (defundef == "undef") {
18910 print "/*", prefix defundef, macro, "*/"
18911 next
18912 }
18913 }
18914 }
18915 { print }
18916 _ACAWK
18917 _ACEOF
18918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18919 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18920 fi # test -n "$CONFIG_HEADERS"
18921
18922
18923 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18924 shift
18925 for ac_tag
18926 do
18927 case $ac_tag in
18928 :[FHLC]) ac_mode=$ac_tag; continue;;
18929 esac
18930 case $ac_mode$ac_tag in
18931 :[FHL]*:*);;
18932 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18933 :[FH]-) ac_tag=-:-;;
18934 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18935 esac
18936 ac_save_IFS=$IFS
18937 IFS=:
18938 set x $ac_tag
18939 IFS=$ac_save_IFS
18940 shift
18941 ac_file=$1
18942 shift
18943
18944 case $ac_mode in
18945 :L) ac_source=$1;;
18946 :[FH])
18947 ac_file_inputs=
18948 for ac_f
18949 do
18950 case $ac_f in
18951 -) ac_f="$ac_tmp/stdin";;
18952 *) # Look for the file first in the build tree, then in the source tree
18953 # (if the path is not absolute). The absolute path cannot be DOS-style,
18954 # because $ac_f cannot contain `:'.
18955 test -f "$ac_f" ||
18956 case $ac_f in
18957 [\\/$]*) false;;
18958 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18959 esac ||
18960 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18961 esac
18962 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18963 as_fn_append ac_file_inputs " '$ac_f'"
18964 done
18965
18966 # Let's still pretend it is `configure' which instantiates (i.e., don't
18967 # use $as_me), people would be surprised to read:
18968 # /* config.h. Generated by config.status. */
18969 configure_input='Generated from '`
18970 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18971 `' by configure.'
18972 if test x"$ac_file" != x-; then
18973 configure_input="$ac_file. $configure_input"
18974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18975 $as_echo "$as_me: creating $ac_file" >&6;}
18976 fi
18977 # Neutralize special characters interpreted by sed in replacement strings.
18978 case $configure_input in #(
18979 *\&* | *\|* | *\\* )
18980 ac_sed_conf_input=`$as_echo "$configure_input" |
18981 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18982 *) ac_sed_conf_input=$configure_input;;
18983 esac
18984
18985 case $ac_tag in
18986 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18988 esac
18989 ;;
18990 esac
18991
18992 ac_dir=`$as_dirname -- "$ac_file" ||
18993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18994 X"$ac_file" : 'X\(//\)[^/]' \| \
18995 X"$ac_file" : 'X\(//\)$' \| \
18996 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18997 $as_echo X"$ac_file" |
18998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18999 s//\1/
19000 q
19001 }
19002 /^X\(\/\/\)[^/].*/{
19003 s//\1/
19004 q
19005 }
19006 /^X\(\/\/\)$/{
19007 s//\1/
19008 q
19009 }
19010 /^X\(\/\).*/{
19011 s//\1/
19012 q
19013 }
19014 s/.*/./; q'`
19015 as_dir="$ac_dir"; as_fn_mkdir_p
19016 ac_builddir=.
19017
19018 case "$ac_dir" in
19019 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19020 *)
19021 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19022 # A ".." for each directory in $ac_dir_suffix.
19023 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19024 case $ac_top_builddir_sub in
19025 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19026 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19027 esac ;;
19028 esac
19029 ac_abs_top_builddir=$ac_pwd
19030 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19031 # for backward compatibility:
19032 ac_top_builddir=$ac_top_build_prefix
19033
19034 case $srcdir in
19035 .) # We are building in place.
19036 ac_srcdir=.
19037 ac_top_srcdir=$ac_top_builddir_sub
19038 ac_abs_top_srcdir=$ac_pwd ;;
19039 [\\/]* | ?:[\\/]* ) # Absolute name.
19040 ac_srcdir=$srcdir$ac_dir_suffix;
19041 ac_top_srcdir=$srcdir
19042 ac_abs_top_srcdir=$srcdir ;;
19043 *) # Relative name.
19044 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19045 ac_top_srcdir=$ac_top_build_prefix$srcdir
19046 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19047 esac
19048 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19049
19050
19051 case $ac_mode in
19052 :F)
19053 #
19054 # CONFIG_FILE
19055 #
19056
19057 case $INSTALL in
19058 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19059 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19060 esac
19061 ac_MKDIR_P=$MKDIR_P
19062 case $MKDIR_P in
19063 [\\/$]* | ?:[\\/]* ) ;;
19064 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19065 esac
19066 _ACEOF
19067
19068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19069 # If the template does not know about datarootdir, expand it.
19070 # FIXME: This hack should be removed a few years after 2.60.
19071 ac_datarootdir_hack=; ac_datarootdir_seen=
19072 ac_sed_dataroot='
19073 /datarootdir/ {
19074 p
19075 q
19076 }
19077 /@datadir@/p
19078 /@docdir@/p
19079 /@infodir@/p
19080 /@localedir@/p
19081 /@mandir@/p'
19082 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19083 *datarootdir*) ac_datarootdir_seen=yes;;
19084 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19086 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19087 _ACEOF
19088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19089 ac_datarootdir_hack='
19090 s&@datadir@&$datadir&g
19091 s&@docdir@&$docdir&g
19092 s&@infodir@&$infodir&g
19093 s&@localedir@&$localedir&g
19094 s&@mandir@&$mandir&g
19095 s&\\\${datarootdir}&$datarootdir&g' ;;
19096 esac
19097 _ACEOF
19098
19099 # Neutralize VPATH when `$srcdir' = `.'.
19100 # Shell code in configure.ac might set extrasub.
19101 # FIXME: do we really want to maintain this feature?
19102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19103 ac_sed_extra="$ac_vpsub
19104 $extrasub
19105 _ACEOF
19106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19107 :t
19108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19109 s|@configure_input@|$ac_sed_conf_input|;t t
19110 s&@top_builddir@&$ac_top_builddir_sub&;t t
19111 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19112 s&@srcdir@&$ac_srcdir&;t t
19113 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19114 s&@top_srcdir@&$ac_top_srcdir&;t t
19115 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19116 s&@builddir@&$ac_builddir&;t t
19117 s&@abs_builddir@&$ac_abs_builddir&;t t
19118 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19119 s&@INSTALL@&$ac_INSTALL&;t t
19120 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19121 $ac_datarootdir_hack
19122 "
19123 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19124 if $ac_cs_awk_getline; then
19125 $AWK -f "$ac_tmp/subs.awk"
19126 else
19127 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19128 fi \
19129 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19130
19131 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19132 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19134 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19136 which seems to be undefined. Please make sure it is defined" >&5
19137 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19138 which seems to be undefined. Please make sure it is defined" >&2;}
19139
19140 rm -f "$ac_tmp/stdin"
19141 case $ac_file in
19142 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19143 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19144 esac \
19145 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19146 ;;
19147 :H)
19148 #
19149 # CONFIG_HEADER
19150 #
19151 if test x"$ac_file" != x-; then
19152 {
19153 $as_echo "/* $configure_input */" \
19154 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19155 } >"$ac_tmp/config.h" \
19156 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19157 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19159 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19160 else
19161 rm -f "$ac_file"
19162 mv "$ac_tmp/config.h" "$ac_file" \
19163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19164 fi
19165 else
19166 $as_echo "/* $configure_input */" \
19167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19168 || as_fn_error $? "could not create -" "$LINENO" 5
19169 fi
19170 # Compute "$ac_file"'s index in $config_headers.
19171 _am_arg="$ac_file"
19172 _am_stamp_count=1
19173 for _am_header in $config_headers :; do
19174 case $_am_header in
19175 $_am_arg | $_am_arg:* )
19176 break ;;
19177 * )
19178 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19179 esac
19180 done
19181 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19182 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19183 X"$_am_arg" : 'X\(//\)[^/]' \| \
19184 X"$_am_arg" : 'X\(//\)$' \| \
19185 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19186 $as_echo X"$_am_arg" |
19187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19188 s//\1/
19189 q
19190 }
19191 /^X\(\/\/\)[^/].*/{
19192 s//\1/
19193 q
19194 }
19195 /^X\(\/\/\)$/{
19196 s//\1/
19197 q
19198 }
19199 /^X\(\/\).*/{
19200 s//\1/
19201 q
19202 }
19203 s/.*/./; q'`/stamp-h$_am_stamp_count
19204 ;;
19205
19206 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19207 $as_echo "$as_me: executing $ac_file commands" >&6;}
19208 ;;
19209 esac
19210
19211
19212 case $ac_file$ac_mode in
19213 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19214 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19215 # are listed without --file. Let's play safe and only enable the eval
19216 # if we detect the quoting.
19217 case $CONFIG_FILES in
19218 *\'*) eval set x "$CONFIG_FILES" ;;
19219 *) set x $CONFIG_FILES ;;
19220 esac
19221 shift
19222 for mf
19223 do
19224 # Strip MF so we end up with the name of the file.
19225 mf=`echo "$mf" | sed -e 's/:.*$//'`
19226 # Check whether this is an Automake generated Makefile or not.
19227 # We used to match only the files named `Makefile.in', but
19228 # some people rename them; so instead we look at the file content.
19229 # Grep'ing the first line is not enough: some people post-process
19230 # each Makefile.in and add a new line on top of each file to say so.
19231 # Grep'ing the whole file is not good either: AIX grep has a line
19232 # limit of 2048, but all sed's we know have understand at least 4000.
19233 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19234 dirpart=`$as_dirname -- "$mf" ||
19235 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19236 X"$mf" : 'X\(//\)[^/]' \| \
19237 X"$mf" : 'X\(//\)$' \| \
19238 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19239 $as_echo X"$mf" |
19240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19241 s//\1/
19242 q
19243 }
19244 /^X\(\/\/\)[^/].*/{
19245 s//\1/
19246 q
19247 }
19248 /^X\(\/\/\)$/{
19249 s//\1/
19250 q
19251 }
19252 /^X\(\/\).*/{
19253 s//\1/
19254 q
19255 }
19256 s/.*/./; q'`
19257 else
19258 continue
19259 fi
19260 # Extract the definition of DEPDIR, am__include, and am__quote
19261 # from the Makefile without running `make'.
19262 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19263 test -z "$DEPDIR" && continue
19264 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19265 test -z "am__include" && continue
19266 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19267 # When using ansi2knr, U may be empty or an underscore; expand it
19268 U=`sed -n 's/^U = //p' < "$mf"`
19269 # Find all dependency output files, they are included files with
19270 # $(DEPDIR) in their names. We invoke sed twice because it is the
19271 # simplest approach to changing $(DEPDIR) to its actual value in the
19272 # expansion.
19273 for file in `sed -n "
19274 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19275 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19276 # Make sure the directory exists.
19277 test -f "$dirpart/$file" && continue
19278 fdir=`$as_dirname -- "$file" ||
19279 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19280 X"$file" : 'X\(//\)[^/]' \| \
19281 X"$file" : 'X\(//\)$' \| \
19282 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19283 $as_echo X"$file" |
19284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19285 s//\1/
19286 q
19287 }
19288 /^X\(\/\/\)[^/].*/{
19289 s//\1/
19290 q
19291 }
19292 /^X\(\/\/\)$/{
19293 s//\1/
19294 q
19295 }
19296 /^X\(\/\).*/{
19297 s//\1/
19298 q
19299 }
19300 s/.*/./; q'`
19301 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19302 # echo "creating $dirpart/$file"
19303 echo '# dummy' > "$dirpart/$file"
19304 done
19305 done
19306 }
19307 ;;
19308 "default":C)
19309
19310 ### Make the necessary directories, if they don't exist.
19311 for dir in etc lisp ; do
19312 test -d ${dir} || mkdir ${dir}
19313 done
19314
19315 echo creating src/epaths.h
19316 ${MAKE-make} epaths-force
19317
19318 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19319 echo creating src/.gdbinit
19320 echo source $srcdir/src/.gdbinit > src/.gdbinit
19321 fi
19322
19323 ;;
19324
19325 esac
19326 done # for ac_tag
19327
19328
19329 as_fn_exit 0
19330 _ACEOF
19331 ac_clean_files=$ac_clean_files_save
19332
19333 test $ac_write_fail = 0 ||
19334 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19335
19336
19337 # configure is writing to config.log, and then calls config.status.
19338 # config.status does its own redirection, appending to config.log.
19339 # Unfortunately, on DOS this fails, as config.log is still kept open
19340 # by configure, so config.status won't be able to write to it; its
19341 # output is simply discarded. So we exec the FD to /dev/null,
19342 # effectively closing config.log, so it can be properly (re)opened and
19343 # appended to by config.status. When coming back to configure, we
19344 # need to make the FD available again.
19345 if test "$no_create" != yes; then
19346 ac_cs_success=:
19347 ac_config_status_args=
19348 test "$silent" = yes &&
19349 ac_config_status_args="$ac_config_status_args --quiet"
19350 exec 5>/dev/null
19351 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19352 exec 5>>config.log
19353 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19354 # would make configure fail if this is the last instruction.
19355 $ac_cs_success || as_fn_exit 1
19356 fi
19357 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19359 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19360 fi
19361