Merge from mainline.
[bpt/emacs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for emacs 24.0.50.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151 esac
152 fi
153 "
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168 exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243 fi
244 exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262 { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271 return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342 else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359 else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469 *)
470 ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494 else
495 as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
539
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545 #
546 # Initializations.
547 #
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
556
557 # Identity of this package.
558 PACKAGE_NAME='emacs'
559 PACKAGE_TARNAME='emacs'
560 PACKAGE_VERSION='24.0.50'
561 PACKAGE_STRING='emacs 24.0.50'
562 PACKAGE_BUGREPORT=''
563 PACKAGE_URL=''
564
565 ac_unique_file="src/lisp.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_header_list=
603 gl_getopt_required=POSIX
604 gl_getopt_required=POSIX
605 ac_func_list=
606 ac_subst_vars='gltests_LTLIBOBJS
607 gltests_LIBOBJS
608 gl_LTLIBOBJS
609 gl_LIBOBJS
610 am__EXEEXT_FALSE
611 am__EXEEXT_TRUE
612 LTLIBOBJS
613 LIBOBJS
614 WINDOW_SUPPORT
615 TOOLTIP_SUPPORT
616 MOUSE_SUPPORT
617 LIB_GCC
618 LD_FIRSTFLAG
619 LD_SWITCH_SYSTEM_TEMACS
620 POST_ALLOC_OBJ
621 PRE_ALLOC_OBJ
622 CYGWIN_OBJ
623 RALLOC_OBJ
624 OLDXMENU_DEPS
625 LIBX_OTHER
626 LIBXMENU
627 OLDXMENU
628 OLDXMENU_TARGET
629 LIBXT_OTHER
630 TOOLKIT_LIBW
631 WIDGET_OBJ
632 XOBJ
633 XMENU_OBJ
634 FONT_OBJ
635 OTHER_FILES
636 GNU_OBJC_CFLAGS
637 ns_appsrc
638 ns_appresdir
639 ns_appbindir
640 ns_appdir
641 S_FILE
642 M_FILE
643 X_TOOLKIT_TYPE
644 C_SWITCH_X_SYSTEM
645 C_SWITCH_X_SITE
646 LD_SWITCH_X_SITE
647 gameuser
648 gamedir
649 bitmapdir
650 archlibdir
651 etcdir
652 x_default_search_path
653 lisppath
654 locallisppath
655 lispdir
656 srcdir
657 canonical
658 configuration
659 version
660 KRB4LIB
661 DESLIB
662 KRB5LIB
663 CRYPTOLIB
664 COM_ERRLIB
665 LIBRESOLV
666 LIBHESIOD
667 TERMCAP_OBJ
668 LIBS_TERMCAP
669 LIBGNU_LTLIBDEPS
670 LIBGNU_LIBDEPS
671 gltests_WITNESS
672 HAVE_UNISTD_H
673 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
674 NEXT_UNISTD_H
675 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
676 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
677 TIME_H_DEFINES_STRUCT_TIMESPEC
678 NEXT_AS_FIRST_DIRECTIVE_TIME_H
679 NEXT_TIME_H
680 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
681 NEXT_STDLIB_H
682 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
683 NEXT_STDDEF_H
684 STDDEF_H
685 HAVE_WCHAR_T
686 REPLACE_NULL
687 HAVE__BOOL
688 STDBOOL_H
689 APPLE_UNIVERSAL_BUILD
690 REPLACE_TIMEGM
691 REPLACE_NANOSLEEP
692 REPLACE_MKTIME
693 REPLACE_LOCALTIME_R
694 HAVE_TIMEGM
695 HAVE_STRPTIME
696 HAVE_NANOSLEEP
697 HAVE_DECL_LOCALTIME_R
698 GNULIB_TIME_R
699 GNULIB_TIMEGM
700 GNULIB_STRPTIME
701 GNULIB_NANOSLEEP
702 GNULIB_MKTIME
703 LTLIBINTL
704 LIBINTL
705 GETOPT_H
706 HAVE_GETOPT_H
707 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
708 NEXT_GETOPT_H
709 PRAGMA_COLUMNS
710 PRAGMA_SYSTEM_HEADER
711 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
712 INCLUDE_NEXT
713 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
714 UNISTD_H_HAVE_WINSOCK2_H
715 REPLACE_WRITE
716 REPLACE_USLEEP
717 REPLACE_UNLINKAT
718 REPLACE_UNLINK
719 REPLACE_TTYNAME_R
720 REPLACE_SYMLINK
721 REPLACE_SLEEP
722 REPLACE_RMDIR
723 REPLACE_READLINK
724 REPLACE_PWRITE
725 REPLACE_PREAD
726 REPLACE_LSEEK
727 REPLACE_LINKAT
728 REPLACE_LINK
729 REPLACE_LCHOWN
730 REPLACE_GETPAGESIZE
731 REPLACE_GETGROUPS
732 REPLACE_GETLOGIN_R
733 REPLACE_GETDOMAINNAME
734 REPLACE_GETCWD
735 REPLACE_FCHOWNAT
736 REPLACE_DUP2
737 REPLACE_DUP
738 REPLACE_CLOSE
739 REPLACE_CHOWN
740 HAVE_SYS_PARAM_H
741 HAVE_OS_H
742 HAVE_DECL_TTYNAME_R
743 HAVE_DECL_GETUSERSHELL
744 HAVE_DECL_GETPAGESIZE
745 HAVE_DECL_GETLOGIN_R
746 HAVE_DECL_GETDOMAINNAME
747 HAVE_DECL_FCHDIR
748 HAVE_DECL_ENVIRON
749 HAVE_USLEEP
750 HAVE_UNLINKAT
751 HAVE_SYMLINKAT
752 HAVE_SYMLINK
753 HAVE_SLEEP
754 HAVE_READLINKAT
755 HAVE_READLINK
756 HAVE_PWRITE
757 HAVE_PREAD
758 HAVE_PIPE2
759 HAVE_PIPE
760 HAVE_LINKAT
761 HAVE_LINK
762 HAVE_LCHOWN
763 HAVE_GETPAGESIZE
764 HAVE_GETLOGIN
765 HAVE_GETHOSTNAME
766 HAVE_GETGROUPS
767 HAVE_GETDTABLESIZE
768 HAVE_FTRUNCATE
769 HAVE_FSYNC
770 HAVE_FCHOWNAT
771 HAVE_FCHDIR
772 HAVE_FACCESSAT
773 HAVE_EUIDACCESS
774 HAVE_DUP3
775 HAVE_DUP2
776 HAVE_CHOWN
777 GNULIB_WRITE
778 GNULIB_USLEEP
779 GNULIB_UNLINKAT
780 GNULIB_UNLINK
781 GNULIB_UNISTD_H_SIGPIPE
782 GNULIB_UNISTD_H_GETOPT
783 GNULIB_TTYNAME_R
784 GNULIB_SYMLINKAT
785 GNULIB_SYMLINK
786 GNULIB_SLEEP
787 GNULIB_RMDIR
788 GNULIB_READLINKAT
789 GNULIB_READLINK
790 GNULIB_PWRITE
791 GNULIB_PREAD
792 GNULIB_PIPE2
793 GNULIB_PIPE
794 GNULIB_LSEEK
795 GNULIB_LINKAT
796 GNULIB_LINK
797 GNULIB_LCHOWN
798 GNULIB_GETUSERSHELL
799 GNULIB_GETPAGESIZE
800 GNULIB_GETLOGIN_R
801 GNULIB_GETLOGIN
802 GNULIB_GETHOSTNAME
803 GNULIB_GETGROUPS
804 GNULIB_GETDTABLESIZE
805 GNULIB_GETDOMAINNAME
806 GNULIB_GETCWD
807 GNULIB_FTRUNCATE
808 GNULIB_FSYNC
809 GNULIB_FCHOWNAT
810 GNULIB_FCHDIR
811 GNULIB_FACCESSAT
812 GNULIB_EUIDACCESS
813 GNULIB_ENVIRON
814 GNULIB_DUP3
815 GNULIB_DUP2
816 GNULIB_CLOSE
817 GNULIB_CHOWN
818 GETLOADAVG_LIBS
819 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_OBJC_OBJ
930 NS_OBJ
931 TEMACS_LDFLAGS2
932 LD_SWITCH_X_SITE_AUX_RPATH
933 LD_SWITCH_X_SITE_AUX
934 XMKMF
935 DEPFLAGS
936 MKDEPDIR
937 CFLAGS_SOUND
938 ALSA_LIBS
939 ALSA_CFLAGS
940 PKG_CONFIG
941 LIBSOUND
942 START_FILES
943 LIB_MATH
944 CRT_DIR
945 LIBS_SYSTEM
946 C_SWITCH_SYSTEM
947 UNEXEC_OBJ
948 C_SWITCH_MACHINE
949 LD_SWITCH_SYSTEM
950 CANNOT_DUMP
951 HAVE_MAKEINFO
952 GZIP_PROG
953 INSTALL_INFO
954 C_WARNINGS_SWITCH
955 EGREP
956 GREP
957 CPP
958 RANLIB
959 am__fastdepCC_FALSE
960 am__fastdepCC_TRUE
961 CCDEPMODE
962 AMDEPBACKSLASH
963 AMDEP_FALSE
964 AMDEP_TRUE
965 am__quote
966 am__include
967 DEPDIR
968 OBJEXT
969 EXEEXT
970 ac_ct_CC
971 CPPFLAGS
972 LDFLAGS
973 CFLAGS
974 CC
975 host_os
976 host_vendor
977 host_cpu
978 host
979 build_os
980 build_vendor
981 build_cpu
982 build
983 PROFILING_CFLAGS
984 MAINT
985 GZIP_INFO
986 am__untar
987 am__tar
988 AMTAR
989 am__leading_dot
990 SET_MAKE
991 AWK
992 mkdir_p
993 MKDIR_P
994 INSTALL_STRIP_PROGRAM
995 STRIP
996 install_sh
997 MAKEINFO
998 AUTOHEADER
999 AUTOMAKE
1000 AUTOCONF
1001 ACLOCAL
1002 VERSION
1003 PACKAGE
1004 CYGPATH_W
1005 am__isrc
1006 INSTALL_DATA
1007 INSTALL_SCRIPT
1008 INSTALL_PROGRAM
1009 target_alias
1010 host_alias
1011 build_alias
1012 LIBS
1013 ECHO_T
1014 ECHO_N
1015 ECHO_C
1016 DEFS
1017 mandir
1018 localedir
1019 libdir
1020 psdir
1021 pdfdir
1022 dvidir
1023 htmldir
1024 infodir
1025 docdir
1026 oldincludedir
1027 includedir
1028 localstatedir
1029 sharedstatedir
1030 sysconfdir
1031 datadir
1032 datarootdir
1033 libexecdir
1034 sbindir
1035 bindir
1036 program_transform_name
1037 prefix
1038 exec_prefix
1039 PACKAGE_URL
1040 PACKAGE_BUGREPORT
1041 PACKAGE_STRING
1042 PACKAGE_VERSION
1043 PACKAGE_TARNAME
1044 PACKAGE_NAME
1045 PATH_SEPARATOR
1046 SHELL'
1047 ac_subst_files='deps_frag
1048 ns_frag'
1049 ac_user_opts='
1050 enable_option_checking
1051 with_pop
1052 with_kerberos
1053 with_kerberos5
1054 with_hesiod
1055 with_mmdf
1056 with_mail_unlink
1057 with_mailhost
1058 with_sound
1059 with_sync_input
1060 with_x_toolkit
1061 with_xpm
1062 with_jpeg
1063 with_tiff
1064 with_gif
1065 with_png
1066 with_rsvg
1067 with_xml2
1068 with_imagemagick
1069 with_xft
1070 with_libotf
1071 with_m17n_flt
1072 with_toolkit_scroll_bars
1073 with_xaw3d
1074 with_xim
1075 with_ns
1076 with_gpm
1077 with_dbus
1078 with_gconf
1079 with_selinux
1080 with_gnutls
1081 with_makeinfo
1082 with_compress_info
1083 with_pkg_config_prog
1084 with_crt_dir
1085 with_gameuser
1086 with_gnustep_conf
1087 enable_ns_self_contained
1088 enable_asserts
1089 enable_maintainer_mode
1090 enable_locallisppath
1091 enable_checking
1092 enable_use_lisp_union_type
1093 enable_profiling
1094 enable_autodepend
1095 enable_dependency_tracking
1096 enable_largefile
1097 with_x
1098 '
1099 ac_precious_vars='build_alias
1100 host_alias
1101 target_alias
1102 CC
1103 CFLAGS
1104 LDFLAGS
1105 LIBS
1106 CPPFLAGS
1107 CPP
1108 XMKMF'
1109
1110
1111 # Initialize some variables set by options.
1112 ac_init_help=
1113 ac_init_version=false
1114 ac_unrecognized_opts=
1115 ac_unrecognized_sep=
1116 # The variables have the same names as the options, with
1117 # dashes changed to underlines.
1118 cache_file=/dev/null
1119 exec_prefix=NONE
1120 no_create=
1121 no_recursion=
1122 prefix=NONE
1123 program_prefix=NONE
1124 program_suffix=NONE
1125 program_transform_name=s,x,x,
1126 silent=
1127 site=
1128 srcdir=
1129 verbose=
1130 x_includes=NONE
1131 x_libraries=NONE
1132
1133 # Installation directory options.
1134 # These are left unexpanded so users can "make install exec_prefix=/foo"
1135 # and all the variables that are supposed to be based on exec_prefix
1136 # by default will actually change.
1137 # Use braces instead of parens because sh, perl, etc. also accept them.
1138 # (The list follows the same order as the GNU Coding Standards.)
1139 bindir='${exec_prefix}/bin'
1140 sbindir='${exec_prefix}/sbin'
1141 libexecdir='${exec_prefix}/libexec'
1142 datarootdir='${prefix}/share'
1143 datadir='${datarootdir}'
1144 sysconfdir='${prefix}/etc'
1145 sharedstatedir='${prefix}/com'
1146 localstatedir='${prefix}/var'
1147 includedir='${prefix}/include'
1148 oldincludedir='/usr/include'
1149 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1150 infodir='${datarootdir}/info'
1151 htmldir='${docdir}'
1152 dvidir='${docdir}'
1153 pdfdir='${docdir}'
1154 psdir='${docdir}'
1155 libdir='${exec_prefix}/lib'
1156 localedir='${datarootdir}/locale'
1157 mandir='${datarootdir}/man'
1158
1159 ac_prev=
1160 ac_dashdash=
1161 for ac_option
1162 do
1163 # If the previous option needs an argument, assign it.
1164 if test -n "$ac_prev"; then
1165 eval $ac_prev=\$ac_option
1166 ac_prev=
1167 continue
1168 fi
1169
1170 case $ac_option in
1171 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1172 *=) ac_optarg= ;;
1173 *) ac_optarg=yes ;;
1174 esac
1175
1176 # Accept the important Cygnus configure options, so we can diagnose typos.
1177
1178 case $ac_dashdash$ac_option in
1179 --)
1180 ac_dashdash=yes ;;
1181
1182 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1183 ac_prev=bindir ;;
1184 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1185 bindir=$ac_optarg ;;
1186
1187 -build | --build | --buil | --bui | --bu)
1188 ac_prev=build_alias ;;
1189 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1190 build_alias=$ac_optarg ;;
1191
1192 -cache-file | --cache-file | --cache-fil | --cache-fi \
1193 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1194 ac_prev=cache_file ;;
1195 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1196 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1197 cache_file=$ac_optarg ;;
1198
1199 --config-cache | -C)
1200 cache_file=config.cache ;;
1201
1202 -datadir | --datadir | --datadi | --datad)
1203 ac_prev=datadir ;;
1204 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1205 datadir=$ac_optarg ;;
1206
1207 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1208 | --dataroo | --dataro | --datar)
1209 ac_prev=datarootdir ;;
1210 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1211 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1212 datarootdir=$ac_optarg ;;
1213
1214 -disable-* | --disable-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid feature name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "enable_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval enable_$ac_useropt=no ;;
1229
1230 -docdir | --docdir | --docdi | --doc | --do)
1231 ac_prev=docdir ;;
1232 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1233 docdir=$ac_optarg ;;
1234
1235 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1236 ac_prev=dvidir ;;
1237 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1238 dvidir=$ac_optarg ;;
1239
1240 -enable-* | --enable-*)
1241 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1244 as_fn_error $? "invalid feature name: $ac_useropt"
1245 ac_useropt_orig=$ac_useropt
1246 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1248 *"
1249 "enable_$ac_useropt"
1250 "*) ;;
1251 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1252 ac_unrecognized_sep=', ';;
1253 esac
1254 eval enable_$ac_useropt=\$ac_optarg ;;
1255
1256 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1257 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1258 | --exec | --exe | --ex)
1259 ac_prev=exec_prefix ;;
1260 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1261 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1262 | --exec=* | --exe=* | --ex=*)
1263 exec_prefix=$ac_optarg ;;
1264
1265 -gas | --gas | --ga | --g)
1266 # Obsolete; use --with-gas.
1267 with_gas=yes ;;
1268
1269 -help | --help | --hel | --he | -h)
1270 ac_init_help=long ;;
1271 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1272 ac_init_help=recursive ;;
1273 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1274 ac_init_help=short ;;
1275
1276 -host | --host | --hos | --ho)
1277 ac_prev=host_alias ;;
1278 -host=* | --host=* | --hos=* | --ho=*)
1279 host_alias=$ac_optarg ;;
1280
1281 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1282 ac_prev=htmldir ;;
1283 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1284 | --ht=*)
1285 htmldir=$ac_optarg ;;
1286
1287 -includedir | --includedir | --includedi | --included | --include \
1288 | --includ | --inclu | --incl | --inc)
1289 ac_prev=includedir ;;
1290 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1291 | --includ=* | --inclu=* | --incl=* | --inc=*)
1292 includedir=$ac_optarg ;;
1293
1294 -infodir | --infodir | --infodi | --infod | --info | --inf)
1295 ac_prev=infodir ;;
1296 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1297 infodir=$ac_optarg ;;
1298
1299 -libdir | --libdir | --libdi | --libd)
1300 ac_prev=libdir ;;
1301 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1302 libdir=$ac_optarg ;;
1303
1304 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1305 | --libexe | --libex | --libe)
1306 ac_prev=libexecdir ;;
1307 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1308 | --libexe=* | --libex=* | --libe=*)
1309 libexecdir=$ac_optarg ;;
1310
1311 -localedir | --localedir | --localedi | --localed | --locale)
1312 ac_prev=localedir ;;
1313 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1314 localedir=$ac_optarg ;;
1315
1316 -localstatedir | --localstatedir | --localstatedi | --localstated \
1317 | --localstate | --localstat | --localsta | --localst | --locals)
1318 ac_prev=localstatedir ;;
1319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1320 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1321 localstatedir=$ac_optarg ;;
1322
1323 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1324 ac_prev=mandir ;;
1325 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1326 mandir=$ac_optarg ;;
1327
1328 -nfp | --nfp | --nf)
1329 # Obsolete; use --without-fp.
1330 with_fp=no ;;
1331
1332 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1333 | --no-cr | --no-c | -n)
1334 no_create=yes ;;
1335
1336 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1337 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1338 no_recursion=yes ;;
1339
1340 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1341 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1342 | --oldin | --oldi | --old | --ol | --o)
1343 ac_prev=oldincludedir ;;
1344 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1345 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1346 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1347 oldincludedir=$ac_optarg ;;
1348
1349 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1350 ac_prev=prefix ;;
1351 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1352 prefix=$ac_optarg ;;
1353
1354 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1355 | --program-pre | --program-pr | --program-p)
1356 ac_prev=program_prefix ;;
1357 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1358 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1359 program_prefix=$ac_optarg ;;
1360
1361 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1362 | --program-suf | --program-su | --program-s)
1363 ac_prev=program_suffix ;;
1364 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1365 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1366 program_suffix=$ac_optarg ;;
1367
1368 -program-transform-name | --program-transform-name \
1369 | --program-transform-nam | --program-transform-na \
1370 | --program-transform-n | --program-transform- \
1371 | --program-transform | --program-transfor \
1372 | --program-transfo | --program-transf \
1373 | --program-trans | --program-tran \
1374 | --progr-tra | --program-tr | --program-t)
1375 ac_prev=program_transform_name ;;
1376 -program-transform-name=* | --program-transform-name=* \
1377 | --program-transform-nam=* | --program-transform-na=* \
1378 | --program-transform-n=* | --program-transform-=* \
1379 | --program-transform=* | --program-transfor=* \
1380 | --program-transfo=* | --program-transf=* \
1381 | --program-trans=* | --program-tran=* \
1382 | --progr-tra=* | --program-tr=* | --program-t=*)
1383 program_transform_name=$ac_optarg ;;
1384
1385 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1386 ac_prev=pdfdir ;;
1387 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1388 pdfdir=$ac_optarg ;;
1389
1390 -psdir | --psdir | --psdi | --psd | --ps)
1391 ac_prev=psdir ;;
1392 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1393 psdir=$ac_optarg ;;
1394
1395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1396 | -silent | --silent | --silen | --sile | --sil)
1397 silent=yes ;;
1398
1399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1400 ac_prev=sbindir ;;
1401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1402 | --sbi=* | --sb=*)
1403 sbindir=$ac_optarg ;;
1404
1405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1407 | --sharedst | --shareds | --shared | --share | --shar \
1408 | --sha | --sh)
1409 ac_prev=sharedstatedir ;;
1410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1413 | --sha=* | --sh=*)
1414 sharedstatedir=$ac_optarg ;;
1415
1416 -site | --site | --sit)
1417 ac_prev=site ;;
1418 -site=* | --site=* | --sit=*)
1419 site=$ac_optarg ;;
1420
1421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1422 ac_prev=srcdir ;;
1423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1424 srcdir=$ac_optarg ;;
1425
1426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1427 | --syscon | --sysco | --sysc | --sys | --sy)
1428 ac_prev=sysconfdir ;;
1429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1431 sysconfdir=$ac_optarg ;;
1432
1433 -target | --target | --targe | --targ | --tar | --ta | --t)
1434 ac_prev=target_alias ;;
1435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1436 target_alias=$ac_optarg ;;
1437
1438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1439 verbose=yes ;;
1440
1441 -version | --version | --versio | --versi | --vers | -V)
1442 ac_init_version=: ;;
1443
1444 -with-* | --with-*)
1445 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1446 # Reject names that are not valid shell variable names.
1447 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1448 as_fn_error $? "invalid package name: $ac_useropt"
1449 ac_useropt_orig=$ac_useropt
1450 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1451 case $ac_user_opts in
1452 *"
1453 "with_$ac_useropt"
1454 "*) ;;
1455 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1456 ac_unrecognized_sep=', ';;
1457 esac
1458 eval with_$ac_useropt=\$ac_optarg ;;
1459
1460 -without-* | --without-*)
1461 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1462 # Reject names that are not valid shell variable names.
1463 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1464 as_fn_error $? "invalid package name: $ac_useropt"
1465 ac_useropt_orig=$ac_useropt
1466 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1467 case $ac_user_opts in
1468 *"
1469 "with_$ac_useropt"
1470 "*) ;;
1471 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1472 ac_unrecognized_sep=', ';;
1473 esac
1474 eval with_$ac_useropt=no ;;
1475
1476 --x)
1477 # Obsolete; use --with-x.
1478 with_x=yes ;;
1479
1480 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1481 | --x-incl | --x-inc | --x-in | --x-i)
1482 ac_prev=x_includes ;;
1483 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1484 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1485 x_includes=$ac_optarg ;;
1486
1487 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1488 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1489 ac_prev=x_libraries ;;
1490 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1491 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1492 x_libraries=$ac_optarg ;;
1493
1494 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1495 Try \`$0 --help' for more information"
1496 ;;
1497
1498 *=*)
1499 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1500 # Reject names that are not valid shell variable names.
1501 case $ac_envvar in #(
1502 '' | [0-9]* | *[!_$as_cr_alnum]* )
1503 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1504 esac
1505 eval $ac_envvar=\$ac_optarg
1506 export $ac_envvar ;;
1507
1508 *)
1509 # FIXME: should be removed in autoconf 3.0.
1510 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1511 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1512 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1513 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1514 ;;
1515
1516 esac
1517 done
1518
1519 if test -n "$ac_prev"; then
1520 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1521 as_fn_error $? "missing argument to $ac_option"
1522 fi
1523
1524 if test -n "$ac_unrecognized_opts"; then
1525 case $enable_option_checking in
1526 no) ;;
1527 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1528 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1529 esac
1530 fi
1531
1532 # Check all directory arguments for consistency.
1533 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1534 datadir sysconfdir sharedstatedir localstatedir includedir \
1535 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1536 libdir localedir mandir
1537 do
1538 eval ac_val=\$$ac_var
1539 # Remove trailing slashes.
1540 case $ac_val in
1541 */ )
1542 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1543 eval $ac_var=\$ac_val;;
1544 esac
1545 # Be sure to have absolute directory names.
1546 case $ac_val in
1547 [\\/$]* | ?:[\\/]* ) continue;;
1548 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1549 esac
1550 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1551 done
1552
1553 # There might be people who depend on the old broken behavior: `$host'
1554 # used to hold the argument of --host etc.
1555 # FIXME: To remove some day.
1556 build=$build_alias
1557 host=$host_alias
1558 target=$target_alias
1559
1560 # FIXME: To remove some day.
1561 if test "x$host_alias" != x; then
1562 if test "x$build_alias" = x; then
1563 cross_compiling=maybe
1564 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1565 If a cross compiler is detected then cross compile mode will be used" >&2
1566 elif test "x$build_alias" != "x$host_alias"; then
1567 cross_compiling=yes
1568 fi
1569 fi
1570
1571 ac_tool_prefix=
1572 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1573
1574 test "$silent" = yes && exec 6>/dev/null
1575
1576
1577 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1578 ac_ls_di=`ls -di .` &&
1579 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1580 as_fn_error $? "working directory cannot be determined"
1581 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1582 as_fn_error $? "pwd does not report name of working directory"
1583
1584
1585 # Find the source files, if location was not specified.
1586 if test -z "$srcdir"; then
1587 ac_srcdir_defaulted=yes
1588 # Try the directory containing this script, then the parent directory.
1589 ac_confdir=`$as_dirname -- "$as_myself" ||
1590 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1591 X"$as_myself" : 'X\(//\)[^/]' \| \
1592 X"$as_myself" : 'X\(//\)$' \| \
1593 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1594 $as_echo X"$as_myself" |
1595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1596 s//\1/
1597 q
1598 }
1599 /^X\(\/\/\)[^/].*/{
1600 s//\1/
1601 q
1602 }
1603 /^X\(\/\/\)$/{
1604 s//\1/
1605 q
1606 }
1607 /^X\(\/\).*/{
1608 s//\1/
1609 q
1610 }
1611 s/.*/./; q'`
1612 srcdir=$ac_confdir
1613 if test ! -r "$srcdir/$ac_unique_file"; then
1614 srcdir=..
1615 fi
1616 else
1617 ac_srcdir_defaulted=no
1618 fi
1619 if test ! -r "$srcdir/$ac_unique_file"; then
1620 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1621 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1622 fi
1623 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1624 ac_abs_confdir=`(
1625 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1626 pwd)`
1627 # When building in place, set srcdir=.
1628 if test "$ac_abs_confdir" = "$ac_pwd"; then
1629 srcdir=.
1630 fi
1631 # Remove unnecessary trailing slashes from srcdir.
1632 # Double slashes in file names in object file debugging info
1633 # mess up M-x gdb in Emacs.
1634 case $srcdir in
1635 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1636 esac
1637 for ac_var in $ac_precious_vars; do
1638 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1639 eval ac_env_${ac_var}_value=\$${ac_var}
1640 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1641 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1642 done
1643
1644 #
1645 # Report the --help message.
1646 #
1647 if test "$ac_init_help" = "long"; then
1648 # Omit some internal or obsolete options to make the list less imposing.
1649 # This message is too long to be a string in the A/UX 3.1 sh.
1650 cat <<_ACEOF
1651 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1652
1653 Usage: $0 [OPTION]... [VAR=VALUE]...
1654
1655 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1656 VAR=VALUE. See below for descriptions of some of the useful variables.
1657
1658 Defaults for the options are specified in brackets.
1659
1660 Configuration:
1661 -h, --help display this help and exit
1662 --help=short display options specific to this package
1663 --help=recursive display the short help of all the included packages
1664 -V, --version display version information and exit
1665 -q, --quiet, --silent do not print \`checking ...' messages
1666 --cache-file=FILE cache test results in FILE [disabled]
1667 -C, --config-cache alias for \`--cache-file=config.cache'
1668 -n, --no-create do not create output files
1669 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1670
1671 Installation directories:
1672 --prefix=PREFIX install architecture-independent files in PREFIX
1673 [$ac_default_prefix]
1674 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1675 [PREFIX]
1676
1677 By default, \`make install' will install all the files in
1678 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1679 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1680 for instance \`--prefix=\$HOME'.
1681
1682 For better control, use the options below.
1683
1684 Fine tuning of the installation directories:
1685 --bindir=DIR user executables [EPREFIX/bin]
1686 --sbindir=DIR system admin executables [EPREFIX/sbin]
1687 --libexecdir=DIR program executables [EPREFIX/libexec]
1688 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1689 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1690 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1691 --libdir=DIR object code libraries [EPREFIX/lib]
1692 --includedir=DIR C header files [PREFIX/include]
1693 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1694 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1695 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1696 --infodir=DIR info documentation [DATAROOTDIR/info]
1697 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1698 --mandir=DIR man documentation [DATAROOTDIR/man]
1699 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1700 --htmldir=DIR html documentation [DOCDIR]
1701 --dvidir=DIR dvi documentation [DOCDIR]
1702 --pdfdir=DIR pdf documentation [DOCDIR]
1703 --psdir=DIR ps documentation [DOCDIR]
1704 _ACEOF
1705
1706 cat <<\_ACEOF
1707
1708 Program names:
1709 --program-prefix=PREFIX prepend PREFIX to installed program names
1710 --program-suffix=SUFFIX append SUFFIX to installed program names
1711 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1712
1713 X features:
1714 --x-includes=DIR X include files are in DIR
1715 --x-libraries=DIR X library files are in DIR
1716
1717 System types:
1718 --build=BUILD configure for building on BUILD [guessed]
1719 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1720 _ACEOF
1721 fi
1722
1723 if test -n "$ac_init_help"; then
1724 case $ac_init_help in
1725 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1726 esac
1727 cat <<\_ACEOF
1728
1729 Optional Features:
1730 --disable-option-checking ignore unrecognized --enable/--with options
1731 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1732 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1733 --disable-ns-self-contained
1734 disable self contained build under NeXTstep
1735 --enable-asserts compile code with asserts enabled
1736 --enable-maintainer-mode
1737 enable make rules and dependencies not useful (and
1738 sometimes confusing) to the casual installer
1739 --enable-locallisppath=PATH
1740 directories Emacs should search for lisp files
1741 specific to this site
1742 --enable-checking[=LIST]
1743 enable expensive run-time checks. With LIST, enable
1744 only specific categories of checks. Categories are:
1745 all,yes,no. Flags are: stringbytes, stringoverrun,
1746 stringfreelist, xmallocoverrun, conslist
1747 --enable-use-lisp-union-type
1748 use a union for the Lisp_Object data type. This is
1749 only useful for development for catching certain
1750 types of bugs.
1751 --enable-profiling build emacs with profiling support. This might not
1752 work on all platforms
1753 --enable-autodepend automatically generate dependencies to .h-files.
1754 Requires GNU Make and Gcc. Enabled if GNU Make and
1755 Gcc is found
1756 --disable-dependency-tracking speeds up one-time build
1757 --enable-dependency-tracking do not reject slow dependency extractors
1758 --disable-largefile omit support for large files
1759
1760 Optional Packages:
1761 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1762 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1763 --without-pop don't support POP mail retrieval with movemail
1764 --with-kerberos support Kerberos-authenticated POP
1765 --with-kerberos5 support Kerberos version 5 authenticated POP
1766 --with-hesiod support Hesiod to get the POP server host
1767 --with-mmdf support MMDF mailboxes
1768 --with-mail-unlink unlink, rather than empty, mail spool after reading
1769 --with-mailhost=HOSTNAME
1770 string giving default POP mail host
1771 --without-sound don't compile with sound support
1772 --without-sync-input process async input synchronously
1773 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1774 lucid or athena, motif, no)
1775 --without-xpm don't compile with XPM image support
1776 --without-jpeg don't compile with JPEG image support
1777 --without-tiff don't compile with TIFF image support
1778 --without-gif don't compile with GIF image support
1779 --without-png don't compile with PNG image support
1780 --without-rsvg don't compile with SVG image support
1781 --without-xml2 don't compile with XML parsing support
1782 --without-imagemagick don't compile with ImageMagick image support
1783 --without-xft don't use XFT for anti aliased fonts
1784 --without-libotf don't use libotf for OpenType font support
1785 --without-m17n-flt don't use m17n-flt for text shaping
1786 --without-toolkit-scroll-bars
1787 don't use Motif or Xaw3d scroll bars
1788 --without-xaw3d don't use Xaw3d
1789 --without-xim don't use X11 XIM
1790 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1791 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1792 console
1793 --without-dbus don't compile with D-Bus support
1794 --without-gconf don't compile with GConf support
1795 --without-selinux don't compile with SELinux support
1796 --without-gnutls don't use -lgnutls for SSL/TLS support
1797 --without-makeinfo don't require makeinfo for building manuals
1798 --without-compress-info don't compress the installed Info pages
1799 --with-pkg-config-prog=PATH
1800 path to pkg-config for finding GTK and librsvg
1801 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1802 /usr/lib, or /usr/lib64 on some platforms.
1803 --with-gameuser=USER user for shared game score files
1804 --with-gnustep-conf=PATH
1805 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1806 or /etc/GNUstep/GNUstep.conf
1807 --with-x use the X Window System
1808
1809 Some influential environment variables:
1810 CC C compiler command
1811 CFLAGS C compiler flags
1812 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1813 nonstandard directory <lib dir>
1814 LIBS libraries to pass to the linker, e.g. -l<library>
1815 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1816 you have headers in a nonstandard directory <include dir>
1817 CPP C preprocessor
1818 XMKMF Path to xmkmf, Makefile generator for X Window System
1819
1820 Use these variables to override the choices made by `configure' or to help
1821 it to find libraries and programs with nonstandard names/locations.
1822
1823 Report bugs to the package provider.
1824 _ACEOF
1825 ac_status=$?
1826 fi
1827
1828 if test "$ac_init_help" = "recursive"; then
1829 # If there are subdirs, report their specific --help.
1830 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1831 test -d "$ac_dir" ||
1832 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1833 continue
1834 ac_builddir=.
1835
1836 case "$ac_dir" in
1837 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1838 *)
1839 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1840 # A ".." for each directory in $ac_dir_suffix.
1841 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1842 case $ac_top_builddir_sub in
1843 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1844 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1845 esac ;;
1846 esac
1847 ac_abs_top_builddir=$ac_pwd
1848 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1849 # for backward compatibility:
1850 ac_top_builddir=$ac_top_build_prefix
1851
1852 case $srcdir in
1853 .) # We are building in place.
1854 ac_srcdir=.
1855 ac_top_srcdir=$ac_top_builddir_sub
1856 ac_abs_top_srcdir=$ac_pwd ;;
1857 [\\/]* | ?:[\\/]* ) # Absolute name.
1858 ac_srcdir=$srcdir$ac_dir_suffix;
1859 ac_top_srcdir=$srcdir
1860 ac_abs_top_srcdir=$srcdir ;;
1861 *) # Relative name.
1862 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1863 ac_top_srcdir=$ac_top_build_prefix$srcdir
1864 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1865 esac
1866 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1867
1868 cd "$ac_dir" || { ac_status=$?; continue; }
1869 # Check for guested configure.
1870 if test -f "$ac_srcdir/configure.gnu"; then
1871 echo &&
1872 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1873 elif test -f "$ac_srcdir/configure"; then
1874 echo &&
1875 $SHELL "$ac_srcdir/configure" --help=recursive
1876 else
1877 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1878 fi || ac_status=$?
1879 cd "$ac_pwd" || { ac_status=$?; break; }
1880 done
1881 fi
1882
1883 test -n "$ac_init_help" && exit $ac_status
1884 if $ac_init_version; then
1885 cat <<\_ACEOF
1886 emacs configure 24.0.50
1887 generated by GNU Autoconf 2.68
1888
1889 Copyright (C) 2010 Free Software Foundation, Inc.
1890 This configure script is free software; the Free Software Foundation
1891 gives unlimited permission to copy, distribute and modify it.
1892 _ACEOF
1893 exit
1894 fi
1895
1896 ## ------------------------ ##
1897 ## Autoconf initialization. ##
1898 ## ------------------------ ##
1899
1900 # ac_fn_c_try_compile LINENO
1901 # --------------------------
1902 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_c_try_compile ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 rm -f conftest.$ac_objext
1907 if { { ac_try="$ac_compile"
1908 case "(($ac_try" in
1909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1911 esac
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_compile") 2>conftest.err
1915 ac_status=$?
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1920 fi
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_c_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest.$ac_objext; then :
1926 ac_retval=0
1927 else
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 ac_retval=1
1932 fi
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1935
1936 } # ac_fn_c_try_compile
1937
1938 # ac_fn_c_try_cpp LINENO
1939 # ----------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1941 ac_fn_c_try_cpp ()
1942 {
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_cpp conftest.$ac_ext"
1945 case "(($ac_try" in
1946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1947 *) ac_try_echo=$ac_try;;
1948 esac
1949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1952 ac_status=$?
1953 if test -s conftest.err; then
1954 grep -v '^ *+' conftest.err >conftest.er1
1955 cat conftest.er1 >&5
1956 mv -f conftest.er1 conftest.err
1957 fi
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } > conftest.i && {
1960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1962 }; then :
1963 ac_retval=0
1964 else
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968 ac_retval=1
1969 fi
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status $ac_retval
1972
1973 } # ac_fn_c_try_cpp
1974
1975 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1978 # the include files in INCLUDES and setting the cache variable VAR
1979 # accordingly.
1980 ac_fn_c_check_header_mongrel ()
1981 {
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if eval \${$3+:} false; then :
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1988 fi
1989 eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 else
1993 # Is the header compilable?
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1995 $as_echo_n "checking $2 usability... " >&6; }
1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
1998 $4
1999 #include <$2>
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_header_compiler=yes
2003 else
2004 ac_header_compiler=no
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2008 $as_echo "$ac_header_compiler" >&6; }
2009
2010 # Is the header present?
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2012 $as_echo_n "checking $2 presence... " >&6; }
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_cpp "$LINENO"; then :
2018 ac_header_preproc=yes
2019 else
2020 ac_header_preproc=no
2021 fi
2022 rm -f conftest.err conftest.i conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2024 $as_echo "$ac_header_preproc" >&6; }
2025
2026 # So? What about this header?
2027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2028 yes:no: )
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2030 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ;;
2034 no:yes:* )
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2036 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2038 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2040 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2042 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045 ;;
2046 esac
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 eval "$3=\$ac_header_compiler"
2053 fi
2054 eval ac_res=\$$3
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057 fi
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060 } # ac_fn_c_check_header_mongrel
2061
2062 # ac_fn_c_try_run LINENO
2063 # ----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2066 ac_fn_c_try_run ()
2067 {
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 if { { ac_try="$ac_link"
2070 case "(($ac_try" in
2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2073 esac
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2077 ac_status=$?
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082 *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2087 ac_status=$?
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2090 ac_retval=0
2091 else
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.$ac_ext >&5
2095
2096 ac_retval=$ac_status
2097 fi
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status $ac_retval
2101
2102 } # ac_fn_c_try_run
2103
2104 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2105 # -------------------------------------------------------
2106 # Tests whether HEADER exists and can be compiled using the include files in
2107 # INCLUDES, setting the cache variable VAR accordingly.
2108 ac_fn_c_check_header_compile ()
2109 {
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \${$3+:} false; then :
2114 $as_echo_n "(cached) " >&6
2115 else
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 $4
2119 #include <$2>
2120 _ACEOF
2121 if ac_fn_c_try_compile "$LINENO"; then :
2122 eval "$3=yes"
2123 else
2124 eval "$3=no"
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2132
2133 } # ac_fn_c_check_header_compile
2134
2135 # ac_fn_c_try_link LINENO
2136 # -----------------------
2137 # Try to link conftest.$ac_ext, and return whether this succeeded.
2138 ac_fn_c_try_link ()
2139 {
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 rm -f conftest.$ac_objext conftest$ac_exeext
2142 if { { ac_try="$ac_link"
2143 case "(($ac_try" in
2144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2145 *) ac_try_echo=$ac_try;;
2146 esac
2147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2148 $as_echo "$ac_try_echo"; } >&5
2149 (eval "$ac_link") 2>conftest.err
2150 ac_status=$?
2151 if test -s conftest.err; then
2152 grep -v '^ *+' conftest.err >conftest.er1
2153 cat conftest.er1 >&5
2154 mv -f conftest.er1 conftest.err
2155 fi
2156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2157 test $ac_status = 0; } && {
2158 test -z "$ac_c_werror_flag" ||
2159 test ! -s conftest.err
2160 } && test -s conftest$ac_exeext && {
2161 test "$cross_compiling" = yes ||
2162 $as_test_x conftest$ac_exeext
2163 }; then :
2164 ac_retval=0
2165 else
2166 $as_echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 ac_retval=1
2170 fi
2171 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2172 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2173 # interfere with the next link command; also delete a directory that is
2174 # left behind by Apple's compiler. We do this before executing the actions.
2175 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 as_fn_set_status $ac_retval
2178
2179 } # ac_fn_c_try_link
2180
2181 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2182 # ---------------------------------------------
2183 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2184 # accordingly.
2185 ac_fn_c_check_decl ()
2186 {
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 as_decl_name=`echo $2|sed 's/ *(.*//'`
2189 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2191 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2192 if eval \${$3+:} false; then :
2193 $as_echo_n "(cached) " >&6
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 $4
2198 int
2199 main ()
2200 {
2201 #ifndef $as_decl_name
2202 #ifdef __cplusplus
2203 (void) $as_decl_use;
2204 #else
2205 (void) $as_decl_name;
2206 #endif
2207 #endif
2208
2209 ;
2210 return 0;
2211 }
2212 _ACEOF
2213 if ac_fn_c_try_compile "$LINENO"; then :
2214 eval "$3=yes"
2215 else
2216 eval "$3=no"
2217 fi
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 fi
2220 eval ac_res=\$$3
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2224
2225 } # ac_fn_c_check_decl
2226
2227 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2228 # ----------------------------------------------
2229 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2230 ac_fn_c_check_header_preproc ()
2231 {
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if eval \${$3+:} false; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 #include <$2>
2241 _ACEOF
2242 if ac_fn_c_try_cpp "$LINENO"; then :
2243 eval "$3=yes"
2244 else
2245 eval "$3=no"
2246 fi
2247 rm -f conftest.err conftest.i conftest.$ac_ext
2248 fi
2249 eval ac_res=\$$3
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253
2254 } # ac_fn_c_check_header_preproc
2255
2256 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2257 # ----------------------------------------------------
2258 # Tries to find if the field MEMBER exists in type AGGR, after including
2259 # INCLUDES, setting cache variable VAR accordingly.
2260 ac_fn_c_check_member ()
2261 {
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2264 $as_echo_n "checking for $2.$3... " >&6; }
2265 if eval \${$4+:} false; then :
2266 $as_echo_n "(cached) " >&6
2267 else
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2270 $5
2271 int
2272 main ()
2273 {
2274 static $2 ac_aggr;
2275 if (ac_aggr.$3)
2276 return 0;
2277 ;
2278 return 0;
2279 }
2280 _ACEOF
2281 if ac_fn_c_try_compile "$LINENO"; then :
2282 eval "$4=yes"
2283 else
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2286 $5
2287 int
2288 main ()
2289 {
2290 static $2 ac_aggr;
2291 if (sizeof ac_aggr.$3)
2292 return 0;
2293 ;
2294 return 0;
2295 }
2296 _ACEOF
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298 eval "$4=yes"
2299 else
2300 eval "$4=no"
2301 fi
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 fi
2304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 fi
2306 eval ac_res=\$$4
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2308 $as_echo "$ac_res" >&6; }
2309 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2310
2311 } # ac_fn_c_check_member
2312
2313 # ac_fn_c_check_func LINENO FUNC VAR
2314 # ----------------------------------
2315 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2316 ac_fn_c_check_func ()
2317 {
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2320 $as_echo_n "checking for $2... " >&6; }
2321 if eval \${$3+:} false; then :
2322 $as_echo_n "(cached) " >&6
2323 else
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2326 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2327 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2328 #define $2 innocuous_$2
2329
2330 /* System header to define __stub macros and hopefully few prototypes,
2331 which can conflict with char $2 (); below.
2332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2333 <limits.h> exists even on freestanding compilers. */
2334
2335 #ifdef __STDC__
2336 # include <limits.h>
2337 #else
2338 # include <assert.h>
2339 #endif
2340
2341 #undef $2
2342
2343 /* Override any GCC internal prototype to avoid an error.
2344 Use char because int might match the return type of a GCC
2345 builtin and then its argument prototype would still apply. */
2346 #ifdef __cplusplus
2347 extern "C"
2348 #endif
2349 char $2 ();
2350 /* The GNU C library defines this for functions which it implements
2351 to always fail with ENOSYS. Some functions are actually named
2352 something starting with __ and the normal name is an alias. */
2353 #if defined __stub_$2 || defined __stub___$2
2354 choke me
2355 #endif
2356
2357 int
2358 main ()
2359 {
2360 return $2 ();
2361 ;
2362 return 0;
2363 }
2364 _ACEOF
2365 if ac_fn_c_try_link "$LINENO"; then :
2366 eval "$3=yes"
2367 else
2368 eval "$3=no"
2369 fi
2370 rm -f core conftest.err conftest.$ac_objext \
2371 conftest$ac_exeext conftest.$ac_ext
2372 fi
2373 eval ac_res=\$$3
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2375 $as_echo "$ac_res" >&6; }
2376 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2377
2378 } # ac_fn_c_check_func
2379
2380 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2381 # -------------------------------------------
2382 # Tests whether TYPE exists after having included INCLUDES, setting cache
2383 # variable VAR accordingly.
2384 ac_fn_c_check_type ()
2385 {
2386 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2388 $as_echo_n "checking for $2... " >&6; }
2389 if eval \${$3+:} false; then :
2390 $as_echo_n "(cached) " >&6
2391 else
2392 eval "$3=no"
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2395 $4
2396 int
2397 main ()
2398 {
2399 if (sizeof ($2))
2400 return 0;
2401 ;
2402 return 0;
2403 }
2404 _ACEOF
2405 if ac_fn_c_try_compile "$LINENO"; then :
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2408 $4
2409 int
2410 main ()
2411 {
2412 if (sizeof (($2)))
2413 return 0;
2414 ;
2415 return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419
2420 else
2421 eval "$3=yes"
2422 fi
2423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2424 fi
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 fi
2427 eval ac_res=\$$3
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2429 $as_echo "$ac_res" >&6; }
2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2431
2432 } # ac_fn_c_check_type
2433 cat >config.log <<_ACEOF
2434 This file contains any messages produced by compilers while
2435 running configure, to aid debugging if configure makes a mistake.
2436
2437 It was created by emacs $as_me 24.0.50, which was
2438 generated by GNU Autoconf 2.68. Invocation command line was
2439
2440 $ $0 $@
2441
2442 _ACEOF
2443 exec 5>>config.log
2444 {
2445 cat <<_ASUNAME
2446 ## --------- ##
2447 ## Platform. ##
2448 ## --------- ##
2449
2450 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2455
2456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2458
2459 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2460 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2461 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2462 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2463 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2464 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2465 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2466
2467 _ASUNAME
2468
2469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2470 for as_dir in $PATH
2471 do
2472 IFS=$as_save_IFS
2473 test -z "$as_dir" && as_dir=.
2474 $as_echo "PATH: $as_dir"
2475 done
2476 IFS=$as_save_IFS
2477
2478 } >&5
2479
2480 cat >&5 <<_ACEOF
2481
2482
2483 ## ----------- ##
2484 ## Core tests. ##
2485 ## ----------- ##
2486
2487 _ACEOF
2488
2489
2490 # Keep a trace of the command line.
2491 # Strip out --no-create and --no-recursion so they do not pile up.
2492 # Strip out --silent because we don't want to record it for future runs.
2493 # Also quote any args containing shell meta-characters.
2494 # Make two passes to allow for proper duplicate-argument suppression.
2495 ac_configure_args=
2496 ac_configure_args0=
2497 ac_configure_args1=
2498 ac_must_keep_next=false
2499 for ac_pass in 1 2
2500 do
2501 for ac_arg
2502 do
2503 case $ac_arg in
2504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2506 | -silent | --silent | --silen | --sile | --sil)
2507 continue ;;
2508 *\'*)
2509 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2510 esac
2511 case $ac_pass in
2512 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2513 2)
2514 as_fn_append ac_configure_args1 " '$ac_arg'"
2515 if test $ac_must_keep_next = true; then
2516 ac_must_keep_next=false # Got value, back to normal.
2517 else
2518 case $ac_arg in
2519 *=* | --config-cache | -C | -disable-* | --disable-* \
2520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2522 | -with-* | --with-* | -without-* | --without-* | --x)
2523 case "$ac_configure_args0 " in
2524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2525 esac
2526 ;;
2527 -* ) ac_must_keep_next=true ;;
2528 esac
2529 fi
2530 as_fn_append ac_configure_args " '$ac_arg'"
2531 ;;
2532 esac
2533 done
2534 done
2535 { ac_configure_args0=; unset ac_configure_args0;}
2536 { ac_configure_args1=; unset ac_configure_args1;}
2537
2538 # When interrupted or exit'd, cleanup temporary files, and complete
2539 # config.log. We remove comments because anyway the quotes in there
2540 # would cause problems or look ugly.
2541 # WARNING: Use '\'' to represent an apostrophe within the trap.
2542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2543 trap 'exit_status=$?
2544 # Save into config.log some information that might help in debugging.
2545 {
2546 echo
2547
2548 $as_echo "## ---------------- ##
2549 ## Cache variables. ##
2550 ## ---------------- ##"
2551 echo
2552 # The following way of writing the cache mishandles newlines in values,
2553 (
2554 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2555 eval ac_val=\$$ac_var
2556 case $ac_val in #(
2557 *${as_nl}*)
2558 case $ac_var in #(
2559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2561 esac
2562 case $ac_var in #(
2563 _ | IFS | as_nl) ;; #(
2564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2565 *) { eval $ac_var=; unset $ac_var;} ;;
2566 esac ;;
2567 esac
2568 done
2569 (set) 2>&1 |
2570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2571 *${as_nl}ac_space=\ *)
2572 sed -n \
2573 "s/'\''/'\''\\\\'\'''\''/g;
2574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2575 ;; #(
2576 *)
2577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2578 ;;
2579 esac |
2580 sort
2581 )
2582 echo
2583
2584 $as_echo "## ----------------- ##
2585 ## Output variables. ##
2586 ## ----------------- ##"
2587 echo
2588 for ac_var in $ac_subst_vars
2589 do
2590 eval ac_val=\$$ac_var
2591 case $ac_val in
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593 esac
2594 $as_echo "$ac_var='\''$ac_val'\''"
2595 done | sort
2596 echo
2597
2598 if test -n "$ac_subst_files"; then
2599 $as_echo "## ------------------- ##
2600 ## File substitutions. ##
2601 ## ------------------- ##"
2602 echo
2603 for ac_var in $ac_subst_files
2604 do
2605 eval ac_val=\$$ac_var
2606 case $ac_val in
2607 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2608 esac
2609 $as_echo "$ac_var='\''$ac_val'\''"
2610 done | sort
2611 echo
2612 fi
2613
2614 if test -s confdefs.h; then
2615 $as_echo "## ----------- ##
2616 ## confdefs.h. ##
2617 ## ----------- ##"
2618 echo
2619 cat confdefs.h
2620 echo
2621 fi
2622 test "$ac_signal" != 0 &&
2623 $as_echo "$as_me: caught signal $ac_signal"
2624 $as_echo "$as_me: exit $exit_status"
2625 } >&5
2626 rm -f core *.core core.conftest.* &&
2627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2628 exit $exit_status
2629 ' 0
2630 for ac_signal in 1 2 13 15; do
2631 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2632 done
2633 ac_signal=0
2634
2635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2636 rm -f -r conftest* confdefs.h
2637
2638 $as_echo "/* confdefs.h */" > confdefs.h
2639
2640 # Predefined preprocessor variables.
2641
2642 cat >>confdefs.h <<_ACEOF
2643 #define PACKAGE_NAME "$PACKAGE_NAME"
2644 _ACEOF
2645
2646 cat >>confdefs.h <<_ACEOF
2647 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2648 _ACEOF
2649
2650 cat >>confdefs.h <<_ACEOF
2651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2652 _ACEOF
2653
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE_STRING "$PACKAGE_STRING"
2656 _ACEOF
2657
2658 cat >>confdefs.h <<_ACEOF
2659 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2660 _ACEOF
2661
2662 cat >>confdefs.h <<_ACEOF
2663 #define PACKAGE_URL "$PACKAGE_URL"
2664 _ACEOF
2665
2666
2667 # Let the site file select an alternate cache file if it wants to.
2668 # Prefer an explicitly selected file to automatically selected ones.
2669 ac_site_file1=NONE
2670 ac_site_file2=NONE
2671 if test -n "$CONFIG_SITE"; then
2672 # We do not want a PATH search for config.site.
2673 case $CONFIG_SITE in #((
2674 -*) ac_site_file1=./$CONFIG_SITE;;
2675 */*) ac_site_file1=$CONFIG_SITE;;
2676 *) ac_site_file1=./$CONFIG_SITE;;
2677 esac
2678 elif test "x$prefix" != xNONE; then
2679 ac_site_file1=$prefix/share/config.site
2680 ac_site_file2=$prefix/etc/config.site
2681 else
2682 ac_site_file1=$ac_default_prefix/share/config.site
2683 ac_site_file2=$ac_default_prefix/etc/config.site
2684 fi
2685 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2686 do
2687 test "x$ac_site_file" = xNONE && continue
2688 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2690 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2691 sed 's/^/| /' "$ac_site_file" >&5
2692 . "$ac_site_file" \
2693 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695 as_fn_error $? "failed to load site script $ac_site_file
2696 See \`config.log' for more details" "$LINENO" 5; }
2697 fi
2698 done
2699
2700 if test -r "$cache_file"; then
2701 # Some versions of bash will fail to source /dev/null (special files
2702 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2703 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2705 $as_echo "$as_me: loading cache $cache_file" >&6;}
2706 case $cache_file in
2707 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2708 *) . "./$cache_file";;
2709 esac
2710 fi
2711 else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2713 $as_echo "$as_me: creating cache $cache_file" >&6;}
2714 >$cache_file
2715 fi
2716
2717 as_fn_append ac_header_list " stdlib.h"
2718 as_fn_append ac_header_list " unistd.h"
2719 as_fn_append ac_header_list " sys/param.h"
2720 gl_getopt_required=GNU
2721 as_fn_append ac_header_list " getopt.h"
2722 as_fn_append ac_func_list " alarm"
2723 as_fn_append ac_func_list " tzset"
2724 as_fn_append ac_header_list " sys/time.h"
2725 as_fn_append ac_func_list " localtime_r"
2726 # Check that the precious variables saved in the cache have kept the same
2727 # value.
2728 ac_cache_corrupted=false
2729 for ac_var in $ac_precious_vars; do
2730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2731 eval ac_new_set=\$ac_env_${ac_var}_set
2732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2733 eval ac_new_val=\$ac_env_${ac_var}_value
2734 case $ac_old_set,$ac_new_set in
2735 set,)
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2737 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2738 ac_cache_corrupted=: ;;
2739 ,set)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2741 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2742 ac_cache_corrupted=: ;;
2743 ,);;
2744 *)
2745 if test "x$ac_old_val" != "x$ac_new_val"; then
2746 # differences in whitespace do not lead to failure.
2747 ac_old_val_w=`echo x $ac_old_val`
2748 ac_new_val_w=`echo x $ac_new_val`
2749 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2751 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2752 ac_cache_corrupted=:
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2755 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2756 eval $ac_var=\$ac_old_val
2757 fi
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2759 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2761 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2762 fi;;
2763 esac
2764 # Pass precious variables to config.status.
2765 if test "$ac_new_set" = set; then
2766 case $ac_new_val in
2767 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2768 *) ac_arg=$ac_var=$ac_new_val ;;
2769 esac
2770 case " $ac_configure_args " in
2771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2772 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2773 esac
2774 fi
2775 done
2776 if $ac_cache_corrupted; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2780 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2781 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2782 fi
2783 ## -------------------- ##
2784 ## Main body of script. ##
2785 ## -------------------- ##
2786
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792
2793
2794 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2795
2796
2797 am__api_version='1.11'
2798
2799 ac_aux_dir=
2800 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2801 if test -f "$ac_dir/install-sh"; then
2802 ac_aux_dir=$ac_dir
2803 ac_install_sh="$ac_aux_dir/install-sh -c"
2804 break
2805 elif test -f "$ac_dir/install.sh"; then
2806 ac_aux_dir=$ac_dir
2807 ac_install_sh="$ac_aux_dir/install.sh -c"
2808 break
2809 elif test -f "$ac_dir/shtool"; then
2810 ac_aux_dir=$ac_dir
2811 ac_install_sh="$ac_aux_dir/shtool install -c"
2812 break
2813 fi
2814 done
2815 if test -z "$ac_aux_dir"; then
2816 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2817 fi
2818
2819 # These three variables are undocumented and unsupported,
2820 # and are intended to be withdrawn in a future Autoconf release.
2821 # They can cause serious problems if a builder's source tree is in a directory
2822 # whose full name contains unusual characters.
2823 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2824 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2825 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2826
2827
2828 # Find a good install program. We prefer a C program (faster),
2829 # so one script is as good as another. But avoid the broken or
2830 # incompatible versions:
2831 # SysV /etc/install, /usr/sbin/install
2832 # SunOS /usr/etc/install
2833 # IRIX /sbin/install
2834 # AIX /bin/install
2835 # AmigaOS /C/install, which installs bootblocks on floppy discs
2836 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2837 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2838 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2839 # OS/2's system install, which has a completely different semantic
2840 # ./install, which can be erroneously created by make from ./install.sh.
2841 # Reject install programs that cannot install multiple files.
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2843 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2844 if test -z "$INSTALL"; then
2845 if ${ac_cv_path_install+:} false; then :
2846 $as_echo_n "(cached) " >&6
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2850 do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 # Account for people who put trailing slashes in PATH elements.
2854 case $as_dir/ in #((
2855 ./ | .// | /[cC]/* | \
2856 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2857 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2858 /usr/ucb/* ) ;;
2859 *)
2860 # OSF1 and SCO ODT 3.0 have their own names for install.
2861 # Don't use installbsd from OSF since it installs stuff as root
2862 # by default.
2863 for ac_prog in ginstall scoinst install; do
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2866 if test $ac_prog = install &&
2867 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # AIX install. It has an incompatible calling convention.
2869 :
2870 elif test $ac_prog = install &&
2871 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2872 # program-specific install script used by HP pwplus--don't use.
2873 :
2874 else
2875 rm -rf conftest.one conftest.two conftest.dir
2876 echo one > conftest.one
2877 echo two > conftest.two
2878 mkdir conftest.dir
2879 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2880 test -s conftest.one && test -s conftest.two &&
2881 test -s conftest.dir/conftest.one &&
2882 test -s conftest.dir/conftest.two
2883 then
2884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2885 break 3
2886 fi
2887 fi
2888 fi
2889 done
2890 done
2891 ;;
2892 esac
2893
2894 done
2895 IFS=$as_save_IFS
2896
2897 rm -rf conftest.one conftest.two conftest.dir
2898
2899 fi
2900 if test "${ac_cv_path_install+set}" = set; then
2901 INSTALL=$ac_cv_path_install
2902 else
2903 # As a last resort, use the slow shell script. Don't cache a
2904 # value for INSTALL within a source directory, because that will
2905 # break other packages using the cache if that directory is
2906 # removed, or if the value is a relative name.
2907 INSTALL=$ac_install_sh
2908 fi
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2911 $as_echo "$INSTALL" >&6; }
2912
2913 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2914 # It thinks the first close brace ends the variable substitution.
2915 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2916
2917 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2918
2919 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2920
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2922 $as_echo_n "checking whether build environment is sane... " >&6; }
2923 # Just in case
2924 sleep 1
2925 echo timestamp > conftest.file
2926 # Reject unsafe characters in $srcdir or the absolute working directory
2927 # name. Accept space and tab only in the latter.
2928 am_lf='
2929 '
2930 case `pwd` in
2931 *[\\\"\#\$\&\'\`$am_lf]*)
2932 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2933 esac
2934 case $srcdir in
2935 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2936 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2937 esac
2938
2939 # Do `set' in a subshell so we don't clobber the current shell's
2940 # arguments. Must try -L first in case configure is actually a
2941 # symlink; some systems play weird games with the mod time of symlinks
2942 # (eg FreeBSD returns the mod time of the symlink's containing
2943 # directory).
2944 if (
2945 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2946 if test "$*" = "X"; then
2947 # -L didn't work.
2948 set X `ls -t "$srcdir/configure" conftest.file`
2949 fi
2950 rm -f conftest.file
2951 if test "$*" != "X $srcdir/configure conftest.file" \
2952 && test "$*" != "X conftest.file $srcdir/configure"; then
2953
2954 # If neither matched, then we have a broken ls. This can happen
2955 # if, for instance, CONFIG_SHELL is bash and it inherits a
2956 # broken ls alias from the environment. This has actually
2957 # happened. Such a system could not be considered "sane".
2958 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2959 alias in your environment" "$LINENO" 5
2960 fi
2961
2962 test "$2" = conftest.file
2963 )
2964 then
2965 # Ok.
2966 :
2967 else
2968 as_fn_error $? "newly created file is older than distributed files!
2969 Check your system clock" "$LINENO" 5
2970 fi
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 test "$program_prefix" != NONE &&
2974 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2975 # Use a double $ so make ignores it.
2976 test "$program_suffix" != NONE &&
2977 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2978 # Double any \ or $.
2979 # By default was `s,x,x', remove it if useless.
2980 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2981 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2982
2983 # expand $ac_aux_dir to an absolute path
2984 am_aux_dir=`cd $ac_aux_dir && pwd`
2985
2986 if test x"${MISSING+set}" != xset; then
2987 case $am_aux_dir in
2988 *\ * | *\ *)
2989 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2990 *)
2991 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2992 esac
2993 fi
2994 # Use eval to expand $SHELL
2995 if eval "$MISSING --run true"; then
2996 am_missing_run="$MISSING --run "
2997 else
2998 am_missing_run=
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3000 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3001 fi
3002
3003 if test x"${install_sh}" != xset; then
3004 case $am_aux_dir in
3005 *\ * | *\ *)
3006 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3007 *)
3008 install_sh="\${SHELL} $am_aux_dir/install-sh"
3009 esac
3010 fi
3011
3012 # Installed binaries are usually stripped using `strip' when the user
3013 # run `make install-strip'. However `strip' might not be the right
3014 # tool to use in cross-compilation environments, therefore Automake
3015 # will honor the `STRIP' environment variable to overrule this program.
3016 if test "$cross_compiling" != no; then
3017 if test -n "$ac_tool_prefix"; then
3018 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3019 set dummy ${ac_tool_prefix}strip; ac_word=$2
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 $as_echo_n "checking for $ac_word... " >&6; }
3022 if ${ac_cv_prog_STRIP+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 if test -n "$STRIP"; then
3026 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_exec_ext in '' $ac_executable_extensions; do
3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3035 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 break 2
3038 fi
3039 done
3040 done
3041 IFS=$as_save_IFS
3042
3043 fi
3044 fi
3045 STRIP=$ac_cv_prog_STRIP
3046 if test -n "$STRIP"; then
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3048 $as_echo "$STRIP" >&6; }
3049 else
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3051 $as_echo "no" >&6; }
3052 fi
3053
3054
3055 fi
3056 if test -z "$ac_cv_prog_STRIP"; then
3057 ac_ct_STRIP=$STRIP
3058 # Extract the first word of "strip", so it can be a program name with args.
3059 set dummy strip; ac_word=$2
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3061 $as_echo_n "checking for $ac_word... " >&6; }
3062 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3063 $as_echo_n "(cached) " >&6
3064 else
3065 if test -n "$ac_ct_STRIP"; then
3066 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3067 else
3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3069 for as_dir in $PATH
3070 do
3071 IFS=$as_save_IFS
3072 test -z "$as_dir" && as_dir=.
3073 for ac_exec_ext in '' $ac_executable_extensions; do
3074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3075 ac_cv_prog_ac_ct_STRIP="strip"
3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3077 break 2
3078 fi
3079 done
3080 done
3081 IFS=$as_save_IFS
3082
3083 fi
3084 fi
3085 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3086 if test -n "$ac_ct_STRIP"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3088 $as_echo "$ac_ct_STRIP" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3092 fi
3093
3094 if test "x$ac_ct_STRIP" = x; then
3095 STRIP=":"
3096 else
3097 case $cross_compiling:$ac_tool_warned in
3098 yes:)
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3101 ac_tool_warned=yes ;;
3102 esac
3103 STRIP=$ac_ct_STRIP
3104 fi
3105 else
3106 STRIP="$ac_cv_prog_STRIP"
3107 fi
3108
3109 fi
3110 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3111
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3113 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3114 if test -z "$MKDIR_P"; then
3115 if ${ac_cv_path_mkdir+:} false; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3120 do
3121 IFS=$as_save_IFS
3122 test -z "$as_dir" && as_dir=.
3123 for ac_prog in mkdir gmkdir; do
3124 for ac_exec_ext in '' $ac_executable_extensions; do
3125 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3126 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3127 'mkdir (GNU coreutils) '* | \
3128 'mkdir (coreutils) '* | \
3129 'mkdir (fileutils) '4.1*)
3130 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3131 break 3;;
3132 esac
3133 done
3134 done
3135 done
3136 IFS=$as_save_IFS
3137
3138 fi
3139
3140 test -d ./--version && rmdir ./--version
3141 if test "${ac_cv_path_mkdir+set}" = set; then
3142 MKDIR_P="$ac_cv_path_mkdir -p"
3143 else
3144 # As a last resort, use the slow shell script. Don't cache a
3145 # value for MKDIR_P within a source directory, because that will
3146 # break other packages using the cache if that directory is
3147 # removed, or if the value is a relative name.
3148 MKDIR_P="$ac_install_sh -d"
3149 fi
3150 fi
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3152 $as_echo "$MKDIR_P" >&6; }
3153
3154
3155 mkdir_p="$MKDIR_P"
3156 case $mkdir_p in
3157 [\\/$]* | ?:[\\/]*) ;;
3158 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3159 esac
3160
3161 for ac_prog in gawk mawk nawk awk
3162 do
3163 # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_AWK+:} false; then :
3168 $as_echo_n "(cached) " >&6
3169 else
3170 if test -n "$AWK"; then
3171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176 IFS=$as_save_IFS
3177 test -z "$as_dir" && as_dir=.
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3180 ac_cv_prog_AWK="$ac_prog"
3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182 break 2
3183 fi
3184 done
3185 done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 AWK=$ac_cv_prog_AWK
3191 if test -n "$AWK"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3193 $as_echo "$AWK" >&6; }
3194 else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200 test -n "$AWK" && break
3201 done
3202
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3204 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3205 set x ${MAKE-make}
3206 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3207 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 cat >conftest.make <<\_ACEOF
3211 SHELL = /bin/sh
3212 all:
3213 @echo '@@@%%%=$(MAKE)=@@@%%%'
3214 _ACEOF
3215 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3216 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3217 *@@@%%%=?*=@@@%%%*)
3218 eval ac_cv_prog_make_${ac_make}_set=yes;;
3219 *)
3220 eval ac_cv_prog_make_${ac_make}_set=no;;
3221 esac
3222 rm -f conftest.make
3223 fi
3224 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227 SET_MAKE=
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 SET_MAKE="MAKE=${MAKE-make}"
3232 fi
3233
3234 rm -rf .tst 2>/dev/null
3235 mkdir .tst 2>/dev/null
3236 if test -d .tst; then
3237 am__leading_dot=.
3238 else
3239 am__leading_dot=_
3240 fi
3241 rmdir .tst 2>/dev/null
3242
3243 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3244 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3245 # is not polluted with repeated "-I."
3246 am__isrc=' -I$(srcdir)'
3247 # test to see if srcdir already configured
3248 if test -f $srcdir/config.status; then
3249 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3250 fi
3251 fi
3252
3253 # test whether we have cygpath
3254 if test -z "$CYGPATH_W"; then
3255 if (cygpath --version) >/dev/null 2>/dev/null; then
3256 CYGPATH_W='cygpath -w'
3257 else
3258 CYGPATH_W=echo
3259 fi
3260 fi
3261
3262
3263 # Define the identity of the package.
3264 PACKAGE='emacs'
3265 VERSION='24.0.50'
3266
3267
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE "$PACKAGE"
3270 _ACEOF
3271
3272
3273 cat >>confdefs.h <<_ACEOF
3274 #define VERSION "$VERSION"
3275 _ACEOF
3276
3277 # Some tools Automake needs.
3278
3279 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3280
3281
3282 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3283
3284
3285 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3286
3287
3288 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3289
3290
3291 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3292
3293 # We need awk for the "check" target. The system "awk" is bad on
3294 # some platforms.
3295 # Always define AMTAR for backward compatibility.
3296
3297 AMTAR=${AMTAR-"${am_missing_run}tar"}
3298
3299 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3300
3301
3302
3303
3304
3305
3306
3307
3308 lispdir='${datadir}/emacs/${version}/lisp'
3309 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3310 '${datadir}/emacs/site-lisp'
3311 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3312 etcdir='${datadir}/emacs/${version}/etc'
3313 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3314 docdir='${datadir}/emacs/${version}/etc'
3315 gamedir='${localstatedir}/games/emacs'
3316
3317
3318
3319
3320 # Check whether --with-pop was given.
3321 if test "${with_pop+set}" = set; then :
3322 withval=$with_pop;
3323 else
3324 with_pop=yes
3325 fi
3326
3327 if test "$with_pop" = yes; then
3328 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3329
3330 fi
3331
3332
3333 # Check whether --with-kerberos was given.
3334 if test "${with_kerberos+set}" = set; then :
3335 withval=$with_kerberos;
3336 else
3337 with_kerberos=no
3338 fi
3339
3340 if test "$with_kerberos" != no; then
3341 $as_echo "#define KERBEROS 1" >>confdefs.h
3342
3343 fi
3344
3345
3346 # Check whether --with-kerberos5 was given.
3347 if test "${with_kerberos5+set}" = set; then :
3348 withval=$with_kerberos5;
3349 else
3350 with_kerberos5=no
3351 fi
3352
3353 if test "${with_kerberos5}" != no; then
3354 if test "${with_kerberos}" = no; then
3355 with_kerberos=yes
3356 $as_echo "#define KERBEROS 1" >>confdefs.h
3357
3358 fi
3359
3360 $as_echo "#define KERBEROS5 1" >>confdefs.h
3361
3362 fi
3363
3364
3365 # Check whether --with-hesiod was given.
3366 if test "${with_hesiod+set}" = set; then :
3367 withval=$with_hesiod;
3368 else
3369 with_hesiod=no
3370 fi
3371
3372 if test "$with_hesiod" != no; then
3373
3374 $as_echo "#define HESIOD 1" >>confdefs.h
3375
3376 fi
3377
3378
3379 # Check whether --with-mmdf was given.
3380 if test "${with_mmdf+set}" = set; then :
3381 withval=$with_mmdf;
3382 else
3383 with_mmdf=no
3384 fi
3385
3386 if test "$with_mmdf" != no; then
3387
3388 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3389
3390 fi
3391
3392
3393 # Check whether --with-mail-unlink was given.
3394 if test "${with_mail_unlink+set}" = set; then :
3395 withval=$with_mail_unlink;
3396 else
3397 with_mail_unlink=no
3398 fi
3399
3400 if test "$with_mail_unlink" != no; then
3401
3402 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3403
3404 fi
3405
3406
3407 # Check whether --with-mailhost was given.
3408 if test "${with_mailhost+set}" = set; then :
3409 withval=$with_mailhost;
3410 cat >>confdefs.h <<_ACEOF
3411 #define MAILHOST "$withval"
3412 _ACEOF
3413
3414 fi
3415
3416
3417
3418 # Check whether --with-sound was given.
3419 if test "${with_sound+set}" = set; then :
3420 withval=$with_sound;
3421 else
3422 with_sound=yes
3423 fi
3424
3425
3426
3427 # Check whether --with-sync-input was given.
3428 if test "${with_sync_input+set}" = set; then :
3429 withval=$with_sync_input;
3430 else
3431 with_sync_input=yes
3432 fi
3433
3434 if test "$with_sync_input" = yes; then
3435
3436 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3437
3438 fi
3439
3440
3441 # Check whether --with-x-toolkit was given.
3442 if test "${with_x_toolkit+set}" = set; then :
3443 withval=$with_x_toolkit; case "${withval}" in
3444 y | ye | yes ) val=gtk ;;
3445 n | no ) val=no ;;
3446 l | lu | luc | luci | lucid ) val=lucid ;;
3447 a | at | ath | athe | athen | athena ) val=athena ;;
3448 m | mo | mot | moti | motif ) val=motif ;;
3449 g | gt | gtk ) val=gtk ;;
3450 gtk3 ) val=gtk3 ;;
3451 * )
3452 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3453 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3454 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3455 ;;
3456 esac
3457 with_x_toolkit=$val
3458
3459 fi
3460
3461
3462
3463 # Check whether --with-xpm was given.
3464 if test "${with_xpm+set}" = set; then :
3465 withval=$with_xpm;
3466 else
3467 with_xpm=yes
3468 fi
3469
3470
3471 # Check whether --with-jpeg was given.
3472 if test "${with_jpeg+set}" = set; then :
3473 withval=$with_jpeg;
3474 else
3475 with_jpeg=yes
3476 fi
3477
3478
3479 # Check whether --with-tiff was given.
3480 if test "${with_tiff+set}" = set; then :
3481 withval=$with_tiff;
3482 else
3483 with_tiff=yes
3484 fi
3485
3486
3487 # Check whether --with-gif was given.
3488 if test "${with_gif+set}" = set; then :
3489 withval=$with_gif;
3490 else
3491 with_gif=yes
3492 fi
3493
3494
3495 # Check whether --with-png was given.
3496 if test "${with_png+set}" = set; then :
3497 withval=$with_png;
3498 else
3499 with_png=yes
3500 fi
3501
3502
3503 # Check whether --with-rsvg was given.
3504 if test "${with_rsvg+set}" = set; then :
3505 withval=$with_rsvg;
3506 else
3507 with_rsvg=yes
3508 fi
3509
3510
3511 # Check whether --with-xml2 was given.
3512 if test "${with_xml2+set}" = set; then :
3513 withval=$with_xml2;
3514 else
3515 with_xml2=yes
3516 fi
3517
3518
3519 # Check whether --with-imagemagick was given.
3520 if test "${with_imagemagick+set}" = set; then :
3521 withval=$with_imagemagick;
3522 else
3523 with_imagemagick=yes
3524 fi
3525
3526
3527
3528 # Check whether --with-xft was given.
3529 if test "${with_xft+set}" = set; then :
3530 withval=$with_xft;
3531 else
3532 with_xft=yes
3533 fi
3534
3535
3536 # Check whether --with-libotf was given.
3537 if test "${with_libotf+set}" = set; then :
3538 withval=$with_libotf;
3539 else
3540 with_libotf=yes
3541 fi
3542
3543
3544 # Check whether --with-m17n-flt was given.
3545 if test "${with_m17n_flt+set}" = set; then :
3546 withval=$with_m17n_flt;
3547 else
3548 with_m17n_flt=yes
3549 fi
3550
3551
3552
3553 # Check whether --with-toolkit-scroll-bars was given.
3554 if test "${with_toolkit_scroll_bars+set}" = set; then :
3555 withval=$with_toolkit_scroll_bars;
3556 else
3557 with_toolkit_scroll_bars=yes
3558 fi
3559
3560
3561 # Check whether --with-xaw3d was given.
3562 if test "${with_xaw3d+set}" = set; then :
3563 withval=$with_xaw3d;
3564 else
3565 with_xaw3d=yes
3566 fi
3567
3568
3569 # Check whether --with-xim was given.
3570 if test "${with_xim+set}" = set; then :
3571 withval=$with_xim;
3572 else
3573 with_xim=yes
3574 fi
3575
3576
3577 # Check whether --with-ns was given.
3578 if test "${with_ns+set}" = set; then :
3579 withval=$with_ns;
3580 else
3581 with_ns=no
3582 fi
3583
3584
3585
3586 # Check whether --with-gpm was given.
3587 if test "${with_gpm+set}" = set; then :
3588 withval=$with_gpm;
3589 else
3590 with_gpm=yes
3591 fi
3592
3593
3594 # Check whether --with-dbus was given.
3595 if test "${with_dbus+set}" = set; then :
3596 withval=$with_dbus;
3597 else
3598 with_dbus=yes
3599 fi
3600
3601
3602 # Check whether --with-gconf was given.
3603 if test "${with_gconf+set}" = set; then :
3604 withval=$with_gconf;
3605 else
3606 with_gconf=yes
3607 fi
3608
3609
3610 # Check whether --with-selinux was given.
3611 if test "${with_selinux+set}" = set; then :
3612 withval=$with_selinux;
3613 else
3614 with_selinux=yes
3615 fi
3616
3617
3618 # Check whether --with-gnutls was given.
3619 if test "${with_gnutls+set}" = set; then :
3620 withval=$with_gnutls;
3621 else
3622 with_gnutls=yes
3623 fi
3624
3625
3626 ## For the times when you want to build Emacs but don't have
3627 ## a suitable makeinfo, and can live without the manuals.
3628
3629 # Check whether --with-makeinfo was given.
3630 if test "${with_makeinfo+set}" = set; then :
3631 withval=$with_makeinfo;
3632 else
3633 with_makeinfo=yes
3634 fi
3635
3636
3637 ## This is an option because I do not know if all info/man support
3638 ## compressed files, nor how to test if they do so.
3639
3640 # Check whether --with-compress-info was given.
3641 if test "${with_compress_info+set}" = set; then :
3642 withval=$with_compress_info;
3643 else
3644 with_compress_info=yes
3645 fi
3646
3647 if test $with_compress_info = yes; then
3648 GZIP_INFO=yes
3649 else
3650 GZIP_INFO=
3651 fi
3652
3653
3654
3655 # Check whether --with-pkg-config-prog was given.
3656 if test "${with_pkg_config_prog+set}" = set; then :
3657 withval=$with_pkg_config_prog;
3658 fi
3659
3660 if test "X${with_pkg_config_prog}" != X; then
3661 if test "${with_pkg_config_prog}" != yes; then
3662 PKG_CONFIG="${with_pkg_config_prog}"
3663 fi
3664 fi
3665
3666 CRT_DIR=
3667
3668 # Check whether --with-crt-dir was given.
3669 if test "${with_crt_dir+set}" = set; then :
3670 withval=$with_crt_dir;
3671 fi
3672
3673 CRT_DIR="${with_crt_dir}"
3674
3675
3676 # Check whether --with-gameuser was given.
3677 if test "${with_gameuser+set}" = set; then :
3678 withval=$with_gameuser;
3679 fi
3680
3681 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3682 && gameuser="${with_gameuser}"
3683 test "X$gameuser" = X && gameuser=games
3684
3685
3686 # Check whether --with-gnustep-conf was given.
3687 if test "${with_gnustep_conf+set}" = set; then :
3688 withval=$with_gnustep_conf;
3689 fi
3690
3691 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3692 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3693 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3694 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3695
3696 # Check whether --enable-ns-self-contained was given.
3697 if test "${enable_ns_self_contained+set}" = set; then :
3698 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3699 else
3700 EN_NS_SELF_CONTAINED=yes
3701 fi
3702
3703
3704 # Check whether --enable-asserts was given.
3705 if test "${enable_asserts+set}" = set; then :
3706 enableval=$enable_asserts; USE_XASSERTS=$enableval
3707 else
3708 USE_XASSERTS=no
3709 fi
3710
3711
3712 # Check whether --enable-maintainer-mode was given.
3713 if test "${enable_maintainer_mode+set}" = set; then :
3714 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3715 else
3716 USE_MAINTAINER_MODE=no
3717 fi
3718
3719 if test $USE_MAINTAINER_MODE = yes; then
3720 MAINT=
3721 else
3722 MAINT=#
3723 fi
3724
3725
3726 # Check whether --enable-locallisppath was given.
3727 if test "${enable_locallisppath+set}" = set; then :
3728 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3729 locallisppath=
3730 elif test "${enableval}" != "yes"; then
3731 locallisppath=${enableval}
3732 fi
3733 fi
3734
3735
3736 # Check whether --enable-checking was given.
3737 if test "${enable_checking+set}" = set; then :
3738 enableval=$enable_checking; ac_checking_flags="${enableval}"
3739 fi
3740
3741 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3742 for check in $ac_checking_flags
3743 do
3744 case $check in
3745 # these set all the flags to specific states
3746 yes) ac_enable_checking=1 ;;
3747 no) ac_enable_checking= ;
3748 ac_gc_check_stringbytes= ;
3749 ac_gc_check_string_overrun= ;
3750 ac_gc_check_string_free_list= ;
3751 ac_xmalloc_overrun= ;
3752 ac_gc_check_cons_list= ;;
3753 all) ac_enable_checking=1 ;
3754 ac_gc_check_stringbytes=1 ;
3755 ac_gc_check_string_overrun=1 ;
3756 ac_gc_check_string_free_list=1 ;
3757 ac_xmalloc_overrun=1 ;
3758 ac_gc_check_cons_list=1 ;;
3759 # these enable particular checks
3760 stringbytes) ac_gc_check_stringbytes=1 ;;
3761 stringoverrun) ac_gc_check_string_overrun=1 ;;
3762 stringfreelist) ac_gc_check_string_free_list=1 ;;
3763 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3764 conslist) ac_gc_check_cons_list=1 ;;
3765 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3766 esac
3767 done
3768 IFS="$ac_save_IFS"
3769
3770 if test x$ac_enable_checking != x ; then
3771
3772 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3773
3774 fi
3775 if test x$ac_gc_check_stringbytes != x ; then
3776
3777 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3778
3779 fi
3780 if test x$ac_gc_check_stringoverrun != x ; then
3781
3782 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3783
3784 fi
3785 if test x$ac_gc_check_string_free_list != x ; then
3786
3787 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3788
3789 fi
3790 if test x$ac_xmalloc_overrun != x ; then
3791
3792 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3793
3794 fi
3795 if test x$ac_gc_check_cons_list != x ; then
3796
3797 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3798
3799 fi
3800
3801 # Check whether --enable-use-lisp-union-type was given.
3802 if test "${enable_use_lisp_union_type+set}" = set; then :
3803 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3804
3805 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3806
3807 fi
3808 fi
3809
3810
3811
3812 # Check whether --enable-profiling was given.
3813 if test "${enable_profiling+set}" = set; then :
3814 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3815 fi
3816
3817 if test x$ac_enable_profiling != x ; then
3818 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3819 else
3820 PROFILING_CFLAGS=
3821 fi
3822
3823
3824 # Check whether --enable-autodepend was given.
3825 if test "${enable_autodepend+set}" = set; then :
3826 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3827 else
3828 ac_enable_autodepend=yes
3829 fi
3830
3831
3832 #### Make srcdir absolute, if it isn't already. It's important to
3833 #### avoid running the path through pwd unnecessarily, since pwd can
3834 #### give you automounter prefixes, which can go away. We do all this
3835 #### so Emacs can find its files when run uninstalled.
3836 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3837 unset CDPATH
3838 case "${srcdir}" in
3839 /* ) ;;
3840 . )
3841 ## We may be able to use the $PWD environment variable to make this
3842 ## absolute. But sometimes PWD is inaccurate.
3843 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3844 ## but that tested only for a well-formed and valid PWD,
3845 ## it did not object when PWD was well-formed and valid but just wrong.
3846 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3847 then
3848 srcdir="$PWD"
3849 else
3850 srcdir="`(cd ${srcdir}; pwd)`"
3851 fi
3852 ;;
3853 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3854 esac
3855
3856 #### Check if the source directory already has a configured system in it.
3857 if test `pwd` != `(cd ${srcdir} && pwd)` \
3858 && test -f "${srcdir}/src/config.h" ; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3860 as a build directory right now; it has been configured in its own
3861 right. To configure in another directory as well, you MUST
3862 use GNU make. If you do not have GNU make, then you must
3863 now do \`make distclean' in ${srcdir},
3864 and then run $0 again." >&5
3865 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3866 as a build directory right now; it has been configured in its own
3867 right. To configure in another directory as well, you MUST
3868 use GNU make. If you do not have GNU make, then you must
3869 now do \`make distclean' in ${srcdir},
3870 and then run $0 again." >&2;}
3871 fi
3872
3873 #### Given the configuration name, set machfile and opsysfile to the
3874 #### names of the m/*.h and s/*.h files we should use.
3875
3876 ### Canonicalize the configuration name.
3877
3878 # Make sure we can run config.sub.
3879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3880 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3881
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3883 $as_echo_n "checking build system type... " >&6; }
3884 if ${ac_cv_build+:} false; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 ac_build_alias=$build_alias
3888 test "x$ac_build_alias" = x &&
3889 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3890 test "x$ac_build_alias" = x &&
3891 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3892 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3893 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3894
3895 fi
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3897 $as_echo "$ac_cv_build" >&6; }
3898 case $ac_cv_build in
3899 *-*-*) ;;
3900 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3901 esac
3902 build=$ac_cv_build
3903 ac_save_IFS=$IFS; IFS='-'
3904 set x $ac_cv_build
3905 shift
3906 build_cpu=$1
3907 build_vendor=$2
3908 shift; shift
3909 # Remember, the first character of IFS is used to create $*,
3910 # except with old shells:
3911 build_os=$*
3912 IFS=$ac_save_IFS
3913 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3914
3915
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3917 $as_echo_n "checking host system type... " >&6; }
3918 if ${ac_cv_host+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 if test "x$host_alias" = x; then
3922 ac_cv_host=$ac_cv_build
3923 else
3924 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3926 fi
3927
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3930 $as_echo "$ac_cv_host" >&6; }
3931 case $ac_cv_host in
3932 *-*-*) ;;
3933 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3934 esac
3935 host=$ac_cv_host
3936 ac_save_IFS=$IFS; IFS='-'
3937 set x $ac_cv_host
3938 shift
3939 host_cpu=$1
3940 host_vendor=$2
3941 shift; shift
3942 # Remember, the first character of IFS is used to create $*,
3943 # except with old shells:
3944 host_os=$*
3945 IFS=$ac_save_IFS
3946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3947
3948
3949 canonical=$host
3950 configuration=${host_alias-${build_alias-$host}}
3951
3952
3953
3954 ### If you add support for a new configuration, add code to this
3955 ### switch statement to recognize your configuration name and select
3956 ### the appropriate operating system and machine description files.
3957
3958 ### You would hope that you could choose an m/*.h file pretty much
3959 ### based on the machine portion of the configuration name, and an s/*.h
3960 ### file based on the operating system portion. However, it turns out
3961 ### that each m/*.h file is pretty manufacturer-specific - for
3962 ### example mips.h is MIPS
3963 ### So we basically have to have a special case for each
3964 ### configuration name.
3965 ###
3966 ### As far as handling version numbers on operating systems is
3967 ### concerned, make sure things will fail in a fixable way. If
3968 ### /etc/MACHINES doesn't say anything about version numbers, be
3969 ### prepared to handle anything reasonably. If version numbers
3970 ### matter, be sure /etc/MACHINES says something about it.
3971
3972 machine='' opsys='' unported=no
3973 case "${canonical}" in
3974
3975 ## GNU/Linux ports
3976 *-*-linux-gnu*)
3977 opsys=gnu-linux
3978 case ${canonical} in
3979 alpha*) machine=alpha ;;
3980 s390-*) machine=ibms390 ;;
3981 s390x-*) machine=ibms390x ;;
3982 powerpc*) machine=macppc ;;
3983 sparc*) machine=sparc ;;
3984 ia64*) machine=ia64 ;;
3985 m68k*) machine=m68k ;;
3986 x86_64*) machine=amdx86-64 ;;
3987 esac
3988 ;;
3989
3990 ## FreeBSD ports
3991 *-*-freebsd* )
3992 opsys=freebsd
3993 case "${canonical}" in
3994 alpha*) machine=alpha ;;
3995 amd64-*|x86_64-*) machine=amdx86-64 ;;
3996 ia64-*) machine=ia64 ;;
3997 i[3456]86-*) machine=intel386 ;;
3998 powerpc-*) machine=macppc ;;
3999 sparc-*) machine=sparc ;;
4000 sparc64-*) machine=sparc ;;
4001 esac
4002 ;;
4003
4004 ## FreeBSD kernel + glibc based userland
4005 *-*-kfreebsd*gnu* )
4006 opsys=gnu-kfreebsd
4007 case "${canonical}" in
4008 alpha*) machine=alpha ;;
4009 amd64-*|x86_64-*) machine=amdx86-64 ;;
4010 ia64-*) machine=ia64 ;;
4011 i[3456]86-*) machine=intel386 ;;
4012 powerpc-*) machine=macppc ;;
4013 sparc-*) machine=sparc ;;
4014 sparc64-*) machine=sparc ;;
4015 esac
4016 ;;
4017
4018 ## NetBSD ports
4019 *-*-netbsd* )
4020 opsys=netbsd
4021 case "${canonical}" in
4022 alpha*) machine=alpha ;;
4023 x86_64-*) machine=amdx86-64 ;;
4024 i[3456]86-*) machine=intel386 ;;
4025 m68k-*) machine=m68k ;;
4026 powerpc-*) machine=macppc ;;
4027 sparc*-) machine=sparc ;;
4028 vax-*) machine=vax ;;
4029 esac
4030 ;;
4031
4032 ## OpenBSD ports
4033 *-*-openbsd* )
4034 opsys=openbsd
4035 case "${canonical}" in
4036 alpha*) machine=alpha ;;
4037 x86_64-*) machine=amdx86-64 ;;
4038 i386-*) machine=intel386 ;;
4039 powerpc-*) machine=macppc ;;
4040 sparc*) machine=sparc ;;
4041 vax-*) machine=vax ;;
4042 esac
4043 ;;
4044
4045 ## Apple Darwin / Mac OS X
4046 *-apple-darwin* )
4047 case "${canonical}" in
4048 i[3456]86-* ) machine=intel386 ;;
4049 powerpc-* ) machine=macppc ;;
4050 x86_64-* ) machine=amdx86-64 ;;
4051 * ) unported=yes ;;
4052 esac
4053 opsys=darwin
4054 # Define CPP as follows to make autoconf work correctly.
4055 CPP="${CC-cc} -E -no-cpp-precomp"
4056 # Use fink packages if available.
4057 if test -d /sw/include && test -d /sw/lib; then
4058 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
4059 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4060 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4061 fi
4062 ;;
4063
4064 ## HP 9000 series 700 and 800, running HP/UX
4065 hppa*-hp-hpux10.2* )
4066 opsys=hpux10-20
4067 ;;
4068 hppa*-hp-hpux1[1-9]* )
4069 opsys=hpux11
4070 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4071 ;;
4072
4073 ia64*-hp-hpux1[1-9]* )
4074 machine=hp800 opsys=hpux11
4075 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4076 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4077 CANNOT_DUMP=yes
4078 ;;
4079
4080 hppa*-*-linux-gnu* )
4081 machine=hp800 opsys=gnu-linux
4082 ;;
4083
4084 ## IBM machines
4085 rs6000-ibm-aix4.[23]* )
4086 machine=ibmrs6000 opsys=aix4-2
4087 ;;
4088 powerpc-ibm-aix4.[23]* )
4089 machine=ibmrs6000 opsys=aix4-2
4090 ;;
4091 rs6000-ibm-aix[56]* )
4092 machine=ibmrs6000 opsys=aix4-2
4093 ;;
4094 powerpc-ibm-aix[56]* )
4095 machine=ibmrs6000 opsys=aix4-2
4096 ;;
4097
4098 ## Silicon Graphics machines
4099 ## Iris 4D
4100 mips-sgi-irix6.5 )
4101 machine=iris4d opsys=irix6-5
4102 # Without defining _LANGUAGE_C, things get masked out in the headers
4103 # so that, for instance, grepping for `free' in stdlib.h fails and
4104 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4105 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4106 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4107 ;;
4108
4109 ## Suns
4110 *-sun-solaris* \
4111 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4112 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4113 case "${canonical}" in
4114 i[3456]86-*-* ) machine=intel386 ;;
4115 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4116 sparc* ) machine=sparc ;;
4117 * ) unported=yes ;;
4118 esac
4119 case "${canonical}" in
4120 *-sunos5.6* | *-solaris2.6* )
4121 opsys=sol2-6
4122 NON_GNU_CPP=/usr/ccs/lib/cpp
4123 RANLIB="ar -ts"
4124 ;;
4125 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4126 opsys=sol2-6
4127 emacs_check_sunpro_c=yes
4128 NON_GNU_CPP=/usr/ccs/lib/cpp
4129 ;;
4130 *-sunos5* | *-solaris* )
4131 opsys=sol2-10
4132 emacs_check_sunpro_c=yes
4133 NON_GNU_CPP=/usr/ccs/lib/cpp
4134 ;;
4135 esac
4136 ## Watch out for a compiler that we know will not work.
4137 case "${canonical}" in
4138 *-solaris* | *-sunos5* )
4139 if [ "x$CC" = x/usr/ucb/cc ]; then
4140 ## /usr/ucb/cc doesn't work;
4141 ## we should find some other compiler that does work.
4142 unset CC
4143 fi
4144 ;;
4145 *) ;;
4146 esac
4147 ;;
4148
4149 ## Intel 386 machines where we don't care about the manufacturer.
4150 i[3456]86-*-* )
4151 machine=intel386
4152 case "${canonical}" in
4153 *-cygwin ) opsys=cygwin ;;
4154 *-darwin* ) opsys=darwin
4155 CPP="${CC-cc} -E -no-cpp-precomp"
4156 ;;
4157 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4158 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4159 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4160 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4161 esac
4162 ;;
4163
4164 * )
4165 unported=yes
4166 ;;
4167 esac
4168
4169 ### If the code above didn't choose an operating system, just choose
4170 ### an operating system based on the configuration name. You really
4171 ### only want to use this when you have no idea what the right
4172 ### operating system is; if you know what operating systems a machine
4173 ### runs, it's cleaner to make it explicit in the case statement
4174 ### above.
4175 if test x"${opsys}" = x; then
4176 case "${canonical}" in
4177 *-gnu* ) opsys=gnu ;;
4178 * )
4179 unported=yes
4180 ;;
4181 esac
4182 fi
4183
4184
4185
4186 if test $unported = yes; then
4187 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4188 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4189 fi
4190
4191 if test -n "$machine"; then
4192 machfile="m/${machine}.h"
4193 else
4194 machfile=
4195 fi
4196 opsysfile="s/${opsys}.h"
4197
4198
4199 #### Choose a compiler.
4200 test -n "$CC" && cc_specified=yes
4201
4202 # Save the value of CFLAGS that the user specified.
4203 SPECIFIED_CFLAGS="$CFLAGS"
4204
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210 if test -n "$ac_tool_prefix"; then
4211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4214 $as_echo_n "checking for $ac_word... " >&6; }
4215 if ${ac_cv_prog_CC+:} false; then :
4216 $as_echo_n "(cached) " >&6
4217 else
4218 if test -n "$CC"; then
4219 ac_cv_prog_CC="$CC" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224 IFS=$as_save_IFS
4225 test -z "$as_dir" && as_dir=.
4226 for ac_exec_ext in '' $ac_executable_extensions; do
4227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 break 2
4231 fi
4232 done
4233 done
4234 IFS=$as_save_IFS
4235
4236 fi
4237 fi
4238 CC=$ac_cv_prog_CC
4239 if test -n "$CC"; then
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4241 $as_echo "$CC" >&6; }
4242 else
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4244 $as_echo "no" >&6; }
4245 fi
4246
4247
4248 fi
4249 if test -z "$ac_cv_prog_CC"; then
4250 ac_ct_CC=$CC
4251 # Extract the first word of "gcc", so it can be a program name with args.
4252 set dummy gcc; ac_word=$2
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4254 $as_echo_n "checking for $ac_word... " >&6; }
4255 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4256 $as_echo_n "(cached) " >&6
4257 else
4258 if test -n "$ac_ct_CC"; then
4259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_ac_ct_CC="gcc"
4269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4271 fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276 fi
4277 fi
4278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4279 if test -n "$ac_ct_CC"; then
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4281 $as_echo "$ac_ct_CC" >&6; }
4282 else
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4284 $as_echo "no" >&6; }
4285 fi
4286
4287 if test "x$ac_ct_CC" = x; then
4288 CC=""
4289 else
4290 case $cross_compiling:$ac_tool_warned in
4291 yes:)
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4294 ac_tool_warned=yes ;;
4295 esac
4296 CC=$ac_ct_CC
4297 fi
4298 else
4299 CC="$ac_cv_prog_CC"
4300 fi
4301
4302 if test -z "$CC"; then
4303 if test -n "$ac_tool_prefix"; then
4304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4305 set dummy ${ac_tool_prefix}cc; ac_word=$2
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 $as_echo_n "checking for $ac_word... " >&6; }
4308 if ${ac_cv_prog_CC+:} false; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -n "$CC"; then
4312 ac_cv_prog_CC="$CC" # Let the user override the test.
4313 else
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH
4316 do
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4321 ac_cv_prog_CC="${ac_tool_prefix}cc"
4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 break 2
4324 fi
4325 done
4326 done
4327 IFS=$as_save_IFS
4328
4329 fi
4330 fi
4331 CC=$ac_cv_prog_CC
4332 if test -n "$CC"; then
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4334 $as_echo "$CC" >&6; }
4335 else
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4337 $as_echo "no" >&6; }
4338 fi
4339
4340
4341 fi
4342 fi
4343 if test -z "$CC"; then
4344 # Extract the first word of "cc", so it can be a program name with args.
4345 set dummy cc; ac_word=$2
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4347 $as_echo_n "checking for $ac_word... " >&6; }
4348 if ${ac_cv_prog_CC+:} false; then :
4349 $as_echo_n "(cached) " >&6
4350 else
4351 if test -n "$CC"; then
4352 ac_cv_prog_CC="$CC" # Let the user override the test.
4353 else
4354 ac_prog_rejected=no
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4363 ac_prog_rejected=yes
4364 continue
4365 fi
4366 ac_cv_prog_CC="cc"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4368 break 2
4369 fi
4370 done
4371 done
4372 IFS=$as_save_IFS
4373
4374 if test $ac_prog_rejected = yes; then
4375 # We found a bogon in the path, so make sure we never use it.
4376 set dummy $ac_cv_prog_CC
4377 shift
4378 if test $# != 0; then
4379 # We chose a different compiler from the bogus one.
4380 # However, it has the same basename, so the bogon will be chosen
4381 # first if we set CC to just the basename; use the full file name.
4382 shift
4383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4384 fi
4385 fi
4386 fi
4387 fi
4388 CC=$ac_cv_prog_CC
4389 if test -n "$CC"; then
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4391 $as_echo "$CC" >&6; }
4392 else
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4394 $as_echo "no" >&6; }
4395 fi
4396
4397
4398 fi
4399 if test -z "$CC"; then
4400 if test -n "$ac_tool_prefix"; then
4401 for ac_prog in cl.exe
4402 do
4403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_CC+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 if test -n "$CC"; then
4411 ac_cv_prog_CC="$CC" # Let the user override the test.
4412 else
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_exec_ext in '' $ac_executable_extensions; do
4419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 break 2
4423 fi
4424 done
4425 done
4426 IFS=$as_save_IFS
4427
4428 fi
4429 fi
4430 CC=$ac_cv_prog_CC
4431 if test -n "$CC"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4433 $as_echo "$CC" >&6; }
4434 else
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4437 fi
4438
4439
4440 test -n "$CC" && break
4441 done
4442 fi
4443 if test -z "$CC"; then
4444 ac_ct_CC=$CC
4445 for ac_prog in cl.exe
4446 do
4447 # Extract the first word of "$ac_prog", so it can be a program name with args.
4448 set dummy $ac_prog; ac_word=$2
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4450 $as_echo_n "checking for $ac_word... " >&6; }
4451 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454 if test -n "$ac_ct_CC"; then
4455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4456 else
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_prog_ac_ct_CC="$ac_prog"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472 fi
4473 fi
4474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4475 if test -n "$ac_ct_CC"; then
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4477 $as_echo "$ac_ct_CC" >&6; }
4478 else
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4480 $as_echo "no" >&6; }
4481 fi
4482
4483
4484 test -n "$ac_ct_CC" && break
4485 done
4486
4487 if test "x$ac_ct_CC" = x; then
4488 CC=""
4489 else
4490 case $cross_compiling:$ac_tool_warned in
4491 yes:)
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4494 ac_tool_warned=yes ;;
4495 esac
4496 CC=$ac_ct_CC
4497 fi
4498 fi
4499
4500 fi
4501
4502
4503 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error $? "no acceptable C compiler found in \$PATH
4506 See \`config.log' for more details" "$LINENO" 5; }
4507
4508 # Provide some information about the compiler.
4509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4510 set X $ac_compile
4511 ac_compiler=$2
4512 for ac_option in --version -v -V -qversion; do
4513 { { ac_try="$ac_compiler $ac_option >&5"
4514 case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4517 esac
4518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519 $as_echo "$ac_try_echo"; } >&5
4520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4521 ac_status=$?
4522 if test -s conftest.err; then
4523 sed '10a\
4524 ... rest of stderr output deleted ...
4525 10q' conftest.err >conftest.er1
4526 cat conftest.er1 >&5
4527 fi
4528 rm -f conftest.er1 conftest.err
4529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4530 test $ac_status = 0; }
4531 done
4532
4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4534 /* end confdefs.h. */
4535
4536 int
4537 main ()
4538 {
4539
4540 ;
4541 return 0;
4542 }
4543 _ACEOF
4544 ac_clean_files_save=$ac_clean_files
4545 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4546 # Try to create an executable without -o first, disregard a.out.
4547 # It will help us diagnose broken compilers, and finding out an intuition
4548 # of exeext.
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4550 $as_echo_n "checking whether the C compiler works... " >&6; }
4551 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4552
4553 # The possible output files:
4554 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4555
4556 ac_rmfiles=
4557 for ac_file in $ac_files
4558 do
4559 case $ac_file in
4560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4561 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4562 esac
4563 done
4564 rm -f $ac_rmfiles
4565
4566 if { { ac_try="$ac_link_default"
4567 case "(($ac_try" in
4568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4570 esac
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link_default") 2>&5
4574 ac_status=$?
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4578 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4579 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4580 # so that the user can short-circuit this test for compilers unknown to
4581 # Autoconf.
4582 for ac_file in $ac_files ''
4583 do
4584 test -f "$ac_file" || continue
4585 case $ac_file in
4586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4587 ;;
4588 [ab].out )
4589 # We found the default executable, but exeext='' is most
4590 # certainly right.
4591 break;;
4592 *.* )
4593 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4594 then :; else
4595 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4596 fi
4597 # We set ac_cv_exeext here because the later test for it is not
4598 # safe: cross compilers may not add the suffix if given an `-o'
4599 # argument, so we may need to know it at that point already.
4600 # Even if this section looks crufty: it has the advantage of
4601 # actually working.
4602 break;;
4603 * )
4604 break;;
4605 esac
4606 done
4607 test "$ac_cv_exeext" = no && ac_cv_exeext=
4608
4609 else
4610 ac_file=''
4611 fi
4612 if test -z "$ac_file"; then :
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4615 $as_echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4620 as_fn_error 77 "C compiler cannot create executables
4621 See \`config.log' for more details" "$LINENO" 5; }
4622 else
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4624 $as_echo "yes" >&6; }
4625 fi
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4627 $as_echo_n "checking for C compiler default output file name... " >&6; }
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4629 $as_echo "$ac_file" >&6; }
4630 ac_exeext=$ac_cv_exeext
4631
4632 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4633 ac_clean_files=$ac_clean_files_save
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4635 $as_echo_n "checking for suffix of executables... " >&6; }
4636 if { { ac_try="$ac_link"
4637 case "(($ac_try" in
4638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639 *) ac_try_echo=$ac_try;;
4640 esac
4641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4642 $as_echo "$ac_try_echo"; } >&5
4643 (eval "$ac_link") 2>&5
4644 ac_status=$?
4645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4646 test $ac_status = 0; }; then :
4647 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4648 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4649 # work properly (i.e., refer to `conftest.exe'), while it won't with
4650 # `rm'.
4651 for ac_file in conftest.exe conftest conftest.*; do
4652 test -f "$ac_file" || continue
4653 case $ac_file in
4654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4655 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4656 break;;
4657 * ) break;;
4658 esac
4659 done
4660 else
4661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4663 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4664 See \`config.log' for more details" "$LINENO" 5; }
4665 fi
4666 rm -f conftest conftest$ac_cv_exeext
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4668 $as_echo "$ac_cv_exeext" >&6; }
4669
4670 rm -f conftest.$ac_ext
4671 EXEEXT=$ac_cv_exeext
4672 ac_exeext=$EXEEXT
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #include <stdio.h>
4676 int
4677 main ()
4678 {
4679 FILE *f = fopen ("conftest.out", "w");
4680 return ferror (f) || fclose (f) != 0;
4681
4682 ;
4683 return 0;
4684 }
4685 _ACEOF
4686 ac_clean_files="$ac_clean_files conftest.out"
4687 # Check that the compiler produces executables we can run. If not, either
4688 # the compiler is broken, or we cross compile.
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4690 $as_echo_n "checking whether we are cross compiling... " >&6; }
4691 if test "$cross_compiling" != yes; then
4692 { { ac_try="$ac_link"
4693 case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4698 $as_echo "$ac_try_echo"; } >&5
4699 (eval "$ac_link") 2>&5
4700 ac_status=$?
4701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4702 test $ac_status = 0; }
4703 if { ac_try='./conftest$ac_cv_exeext'
4704 { { case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707 esac
4708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4709 $as_echo "$ac_try_echo"; } >&5
4710 (eval "$ac_try") 2>&5
4711 ac_status=$?
4712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4713 test $ac_status = 0; }; }; then
4714 cross_compiling=no
4715 else
4716 if test "$cross_compiling" = maybe; then
4717 cross_compiling=yes
4718 else
4719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4721 as_fn_error $? "cannot run C compiled programs.
4722 If you meant to cross compile, use \`--host'.
4723 See \`config.log' for more details" "$LINENO" 5; }
4724 fi
4725 fi
4726 fi
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4728 $as_echo "$cross_compiling" >&6; }
4729
4730 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4731 ac_clean_files=$ac_clean_files_save
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4733 $as_echo_n "checking for suffix of object files... " >&6; }
4734 if ${ac_cv_objext+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738 /* end confdefs.h. */
4739
4740 int
4741 main ()
4742 {
4743
4744 ;
4745 return 0;
4746 }
4747 _ACEOF
4748 rm -f conftest.o conftest.obj
4749 if { { ac_try="$ac_compile"
4750 case "(($ac_try" in
4751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4752 *) ac_try_echo=$ac_try;;
4753 esac
4754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4755 $as_echo "$ac_try_echo"; } >&5
4756 (eval "$ac_compile") 2>&5
4757 ac_status=$?
4758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4759 test $ac_status = 0; }; then :
4760 for ac_file in conftest.o conftest.obj conftest.*; do
4761 test -f "$ac_file" || continue;
4762 case $ac_file in
4763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4764 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4765 break;;
4766 esac
4767 done
4768 else
4769 $as_echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4773 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4774 as_fn_error $? "cannot compute suffix of object files: cannot compile
4775 See \`config.log' for more details" "$LINENO" 5; }
4776 fi
4777 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4780 $as_echo "$ac_cv_objext" >&6; }
4781 OBJEXT=$ac_cv_objext
4782 ac_objext=$OBJEXT
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4784 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4785 if ${ac_cv_c_compiler_gnu+:} false; then :
4786 $as_echo_n "(cached) " >&6
4787 else
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790
4791 int
4792 main ()
4793 {
4794 #ifndef __GNUC__
4795 choke me
4796 #endif
4797
4798 ;
4799 return 0;
4800 }
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_compiler_gnu=yes
4804 else
4805 ac_compiler_gnu=no
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4809
4810 fi
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4812 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4813 if test $ac_compiler_gnu = yes; then
4814 GCC=yes
4815 else
4816 GCC=
4817 fi
4818 ac_test_CFLAGS=${CFLAGS+set}
4819 ac_save_CFLAGS=$CFLAGS
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4821 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4822 if ${ac_cv_prog_cc_g+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 ac_save_c_werror_flag=$ac_c_werror_flag
4826 ac_c_werror_flag=yes
4827 ac_cv_prog_cc_g=no
4828 CFLAGS="-g"
4829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4830 /* end confdefs.h. */
4831
4832 int
4833 main ()
4834 {
4835
4836 ;
4837 return 0;
4838 }
4839 _ACEOF
4840 if ac_fn_c_try_compile "$LINENO"; then :
4841 ac_cv_prog_cc_g=yes
4842 else
4843 CFLAGS=""
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846
4847 int
4848 main ()
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856
4857 else
4858 ac_c_werror_flag=$ac_save_c_werror_flag
4859 CFLAGS="-g"
4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4861 /* end confdefs.h. */
4862
4863 int
4864 main ()
4865 {
4866
4867 ;
4868 return 0;
4869 }
4870 _ACEOF
4871 if ac_fn_c_try_compile "$LINENO"; then :
4872 ac_cv_prog_cc_g=yes
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 ac_c_werror_flag=$ac_save_c_werror_flag
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4882 $as_echo "$ac_cv_prog_cc_g" >&6; }
4883 if test "$ac_test_CFLAGS" = set; then
4884 CFLAGS=$ac_save_CFLAGS
4885 elif test $ac_cv_prog_cc_g = yes; then
4886 if test "$GCC" = yes; then
4887 CFLAGS="-g -O2"
4888 else
4889 CFLAGS="-g"
4890 fi
4891 else
4892 if test "$GCC" = yes; then
4893 CFLAGS="-O2"
4894 else
4895 CFLAGS=
4896 fi
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4899 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4900 if ${ac_cv_prog_cc_c89+:} false; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 ac_cv_prog_cc_c89=no
4904 ac_save_CC=$CC
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 #include <stdarg.h>
4908 #include <stdio.h>
4909 #include <sys/types.h>
4910 #include <sys/stat.h>
4911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4912 struct buf { int x; };
4913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4914 static char *e (p, i)
4915 char **p;
4916 int i;
4917 {
4918 return p[i];
4919 }
4920 static char *f (char * (*g) (char **, int), char **p, ...)
4921 {
4922 char *s;
4923 va_list v;
4924 va_start (v,p);
4925 s = g (p, va_arg (v,int));
4926 va_end (v);
4927 return s;
4928 }
4929
4930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4931 function prototypes and stuff, but not '\xHH' hex character constants.
4932 These don't provoke an error unfortunately, instead are silently treated
4933 as 'x'. The following induces an error, until -std is added to get
4934 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4935 array size at least. It's necessary to write '\x00'==0 to get something
4936 that's true only with -std. */
4937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4938
4939 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4940 inside strings and character constants. */
4941 #define FOO(x) 'x'
4942 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4943
4944 int test (int i, double x);
4945 struct s1 {int (*f) (int a);};
4946 struct s2 {int (*f) (double a);};
4947 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4948 int argc;
4949 char **argv;
4950 int
4951 main ()
4952 {
4953 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4959 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4960 do
4961 CC="$ac_save_CC $ac_arg"
4962 if ac_fn_c_try_compile "$LINENO"; then :
4963 ac_cv_prog_cc_c89=$ac_arg
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext
4966 test "x$ac_cv_prog_cc_c89" != "xno" && break
4967 done
4968 rm -f conftest.$ac_ext
4969 CC=$ac_save_CC
4970
4971 fi
4972 # AC_CACHE_VAL
4973 case "x$ac_cv_prog_cc_c89" in
4974 x)
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4976 $as_echo "none needed" >&6; } ;;
4977 xno)
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4979 $as_echo "unsupported" >&6; } ;;
4980 *)
4981 CC="$CC $ac_cv_prog_cc_c89"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4983 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4984 esac
4985 if test "x$ac_cv_prog_cc_c89" != xno; then :
4986
4987 fi
4988
4989 ac_ext=c
4990 ac_cpp='$CPP $CPPFLAGS'
4991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4994 DEPDIR="${am__leading_dot}deps"
4995
4996 ac_config_commands="$ac_config_commands depfiles"
4997
4998
4999 am_make=${MAKE-make}
5000 cat > confinc << 'END'
5001 am__doit:
5002 @echo this is the am__doit target
5003 .PHONY: am__doit
5004 END
5005 # If we don't find an include directive, just comment out the code.
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5007 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5008 am__include="#"
5009 am__quote=
5010 _am_result=none
5011 # First try GNU make style include.
5012 echo "include confinc" > confmf
5013 # Ignore all kinds of additional output from `make'.
5014 case `$am_make -s -f confmf 2> /dev/null` in #(
5015 *the\ am__doit\ target*)
5016 am__include=include
5017 am__quote=
5018 _am_result=GNU
5019 ;;
5020 esac
5021 # Now try BSD make style include.
5022 if test "$am__include" = "#"; then
5023 echo '.include "confinc"' > confmf
5024 case `$am_make -s -f confmf 2> /dev/null` in #(
5025 *the\ am__doit\ target*)
5026 am__include=.include
5027 am__quote="\""
5028 _am_result=BSD
5029 ;;
5030 esac
5031 fi
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5035 $as_echo "$_am_result" >&6; }
5036 rm -f confinc confmf
5037
5038 # Check whether --enable-dependency-tracking was given.
5039 if test "${enable_dependency_tracking+set}" = set; then :
5040 enableval=$enable_dependency_tracking;
5041 fi
5042
5043 if test "x$enable_dependency_tracking" != xno; then
5044 am_depcomp="$ac_aux_dir/depcomp"
5045 AMDEPBACKSLASH='\'
5046 fi
5047 if test "x$enable_dependency_tracking" != xno; then
5048 AMDEP_TRUE=
5049 AMDEP_FALSE='#'
5050 else
5051 AMDEP_TRUE='#'
5052 AMDEP_FALSE=
5053 fi
5054
5055
5056
5057 depcc="$CC" am_compiler_list=
5058
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5060 $as_echo_n "checking dependency style of $depcc... " >&6; }
5061 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5065 # We make a subdir and do the tests there. Otherwise we can end up
5066 # making bogus files that we don't know about and never remove. For
5067 # instance it was reported that on HP-UX the gcc test will end up
5068 # making a dummy file named `D' -- because `-MD' means `put the output
5069 # in D'.
5070 mkdir conftest.dir
5071 # Copy depcomp to subdir because otherwise we won't find it if we're
5072 # using a relative directory.
5073 cp "$am_depcomp" conftest.dir
5074 cd conftest.dir
5075 # We will build objects and dependencies in a subdirectory because
5076 # it helps to detect inapplicable dependency modes. For instance
5077 # both Tru64's cc and ICC support -MD to output dependencies as a
5078 # side effect of compilation, but ICC will put the dependencies in
5079 # the current directory while Tru64 will put them in the object
5080 # directory.
5081 mkdir sub
5082
5083 am_cv_CC_dependencies_compiler_type=none
5084 if test "$am_compiler_list" = ""; then
5085 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5086 fi
5087 am__universal=false
5088 case " $depcc " in #(
5089 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5090 esac
5091
5092 for depmode in $am_compiler_list; do
5093 # Setup a source with many dependencies, because some compilers
5094 # like to wrap large dependency lists on column 80 (with \), and
5095 # we should not choose a depcomp mode which is confused by this.
5096 #
5097 # We need to recreate these files for each test, as the compiler may
5098 # overwrite some of them when testing with obscure command lines.
5099 # This happens at least with the AIX C compiler.
5100 : > sub/conftest.c
5101 for i in 1 2 3 4 5 6; do
5102 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5103 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5104 # Solaris 8's {/usr,}/bin/sh.
5105 touch sub/conftst$i.h
5106 done
5107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5108
5109 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5110 # mode. It turns out that the SunPro C++ compiler does not properly
5111 # handle `-M -o', and we need to detect this. Also, some Intel
5112 # versions had trouble with output in subdirs
5113 am__obj=sub/conftest.${OBJEXT-o}
5114 am__minus_obj="-o $am__obj"
5115 case $depmode in
5116 gcc)
5117 # This depmode causes a compiler race in universal mode.
5118 test "$am__universal" = false || continue
5119 ;;
5120 nosideeffect)
5121 # after this tag, mechanisms are not by side-effect, so they'll
5122 # only be used when explicitly requested
5123 if test "x$enable_dependency_tracking" = xyes; then
5124 continue
5125 else
5126 break
5127 fi
5128 ;;
5129 msvisualcpp | msvcmsys)
5130 # This compiler won't grok `-c -o', but also, the minuso test has
5131 # not run yet. These depmodes are late enough in the game, and
5132 # so weak that their functioning should not be impacted.
5133 am__obj=conftest.${OBJEXT-o}
5134 am__minus_obj=
5135 ;;
5136 none) break ;;
5137 esac
5138 if depmode=$depmode \
5139 source=sub/conftest.c object=$am__obj \
5140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5141 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5142 >/dev/null 2>conftest.err &&
5143 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5145 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5147 # icc doesn't choke on unknown options, it will just issue warnings
5148 # or remarks (even with -Werror). So we grep stderr for any message
5149 # that says an option was ignored or not supported.
5150 # When given -MP, icc 7.0 and 7.1 complain thusly:
5151 # icc: Command line warning: ignoring option '-M'; no argument required
5152 # The diagnosis changed in icc 8.0:
5153 # icc: Command line remark: option '-MP' not supported
5154 if (grep 'ignoring option' conftest.err ||
5155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5156 am_cv_CC_dependencies_compiler_type=$depmode
5157 break
5158 fi
5159 fi
5160 done
5161
5162 cd ..
5163 rm -rf conftest.dir
5164 else
5165 am_cv_CC_dependencies_compiler_type=none
5166 fi
5167
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5170 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5171 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5172
5173 if
5174 test "x$enable_dependency_tracking" != xno \
5175 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5176 am__fastdepCC_TRUE=
5177 am__fastdepCC_FALSE='#'
5178 else
5179 am__fastdepCC_TRUE='#'
5180 am__fastdepCC_FALSE=
5181 fi
5182
5183
5184 if test "x$CC" != xcc; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5186 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5189 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5190 fi
5191 set dummy $CC; ac_cc=`$as_echo "$2" |
5192 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5193 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5198
5199 int
5200 main ()
5201 {
5202
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 # Make sure it works both with $CC and with simple cc.
5208 # We do the test twice because some compilers refuse to overwrite an
5209 # existing .o file with -o, though they will create one.
5210 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5211 rm -f conftest2.*
5212 if { { case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215 esac
5216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5217 $as_echo "$ac_try_echo"; } >&5
5218 (eval "$ac_try") 2>&5
5219 ac_status=$?
5220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5221 test $ac_status = 0; } &&
5222 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5227 $as_echo "$ac_try_echo"; } >&5
5228 (eval "$ac_try") 2>&5
5229 ac_status=$?
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; };
5232 then
5233 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5234 if test "x$CC" != xcc; then
5235 # Test first that cc exists at all.
5236 if { ac_try='cc -c conftest.$ac_ext >&5'
5237 { { case "(($ac_try" in
5238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5240 esac
5241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5242 $as_echo "$ac_try_echo"; } >&5
5243 (eval "$ac_try") 2>&5
5244 ac_status=$?
5245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5246 test $ac_status = 0; }; }; then
5247 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5248 rm -f conftest2.*
5249 if { { case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252 esac
5253 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5254 $as_echo "$ac_try_echo"; } >&5
5255 (eval "$ac_try") 2>&5
5256 ac_status=$?
5257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5258 test $ac_status = 0; } &&
5259 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262 esac
5263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5264 $as_echo "$ac_try_echo"; } >&5
5265 (eval "$ac_try") 2>&5
5266 ac_status=$?
5267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5268 test $ac_status = 0; };
5269 then
5270 # cc works too.
5271 :
5272 else
5273 # cc exists but doesn't like -o.
5274 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5275 fi
5276 fi
5277 fi
5278 else
5279 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5280 fi
5281 rm -f core conftest*
5282
5283 fi
5284 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5286 $as_echo "yes" >&6; }
5287 else
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5289 $as_echo "no" >&6; }
5290
5291 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5292
5293 fi
5294
5295 # FIXME: we rely on the cache variable name because
5296 # there is no other way.
5297 set dummy $CC
5298 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5299 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5300 if test "$am_t" != yes; then
5301 # Losing compiler, so override with the script.
5302 # FIXME: It is wrong to rewrite CC.
5303 # But if we don't then we get into trouble of one sort or another.
5304 # A longer-term fix would be to have automake use am__CC in this case,
5305 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5306 CC="$am_aux_dir/compile $CC"
5307 fi
5308
5309
5310
5311 # Initialize gnulib right after verifying that the C compiler works.
5312 if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5314 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5316 $as_echo_n "checking for $ac_word... " >&6; }
5317 if ${ac_cv_prog_RANLIB+:} false; then :
5318 $as_echo_n "(cached) " >&6
5319 else
5320 if test -n "$RANLIB"; then
5321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5322 else
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5325 do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5330 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5333 fi
5334 done
5335 done
5336 IFS=$as_save_IFS
5337
5338 fi
5339 fi
5340 RANLIB=$ac_cv_prog_RANLIB
5341 if test -n "$RANLIB"; then
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5343 $as_echo "$RANLIB" >&6; }
5344 else
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5346 $as_echo "no" >&6; }
5347 fi
5348
5349
5350 fi
5351 if test -z "$ac_cv_prog_RANLIB"; then
5352 ac_ct_RANLIB=$RANLIB
5353 # Extract the first word of "ranlib", so it can be a program name with args.
5354 set dummy ranlib; ac_word=$2
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; }
5357 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 if test -n "$ac_ct_RANLIB"; then
5361 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5362 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH
5365 do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_ac_ct_RANLIB="ranlib"
5371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2
5373 fi
5374 done
5375 done
5376 IFS=$as_save_IFS
5377
5378 fi
5379 fi
5380 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5381 if test -n "$ac_ct_RANLIB"; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5383 $as_echo "$ac_ct_RANLIB" >&6; }
5384 else
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389 if test "x$ac_ct_RANLIB" = x; then
5390 RANLIB=":"
5391 else
5392 case $cross_compiling:$ac_tool_warned in
5393 yes:)
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5396 ac_tool_warned=yes ;;
5397 esac
5398 RANLIB=$ac_ct_RANLIB
5399 fi
5400 else
5401 RANLIB="$ac_cv_prog_RANLIB"
5402 fi
5403
5404
5405 ac_ext=c
5406 ac_cpp='$CPP $CPPFLAGS'
5407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5411 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5412 # On Suns, sometimes $CPP names a directory.
5413 if test -n "$CPP" && test -d "$CPP"; then
5414 CPP=
5415 fi
5416 if test -z "$CPP"; then
5417 if ${ac_cv_prog_CPP+:} false; then :
5418 $as_echo_n "(cached) " >&6
5419 else
5420 # Double quotes because CPP needs to be expanded
5421 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5422 do
5423 ac_preproc_ok=false
5424 for ac_c_preproc_warn_flag in '' yes
5425 do
5426 # Use a header file that comes with gcc, so configuring glibc
5427 # with a fresh cross-compiler works.
5428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5429 # <limits.h> exists even on freestanding compilers.
5430 # On the NeXT, cc -E runs the code through the compiler's parser,
5431 # not just through cpp. "Syntax error" is here to catch this case.
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434 #ifdef __STDC__
5435 # include <limits.h>
5436 #else
5437 # include <assert.h>
5438 #endif
5439 Syntax error
5440 _ACEOF
5441 if ac_fn_c_try_cpp "$LINENO"; then :
5442
5443 else
5444 # Broken: fails on valid input.
5445 continue
5446 fi
5447 rm -f conftest.err conftest.i conftest.$ac_ext
5448
5449 # OK, works on sane cases. Now check whether nonexistent headers
5450 # can be detected and how.
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 #include <ac_nonexistent.h>
5454 _ACEOF
5455 if ac_fn_c_try_cpp "$LINENO"; then :
5456 # Broken: success on invalid input.
5457 continue
5458 else
5459 # Passes both tests.
5460 ac_preproc_ok=:
5461 break
5462 fi
5463 rm -f conftest.err conftest.i conftest.$ac_ext
5464
5465 done
5466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5467 rm -f conftest.i conftest.err conftest.$ac_ext
5468 if $ac_preproc_ok; then :
5469 break
5470 fi
5471
5472 done
5473 ac_cv_prog_CPP=$CPP
5474
5475 fi
5476 CPP=$ac_cv_prog_CPP
5477 else
5478 ac_cv_prog_CPP=$CPP
5479 fi
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5481 $as_echo "$CPP" >&6; }
5482 ac_preproc_ok=false
5483 for ac_c_preproc_warn_flag in '' yes
5484 do
5485 # Use a header file that comes with gcc, so configuring glibc
5486 # with a fresh cross-compiler works.
5487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5488 # <limits.h> exists even on freestanding compilers.
5489 # On the NeXT, cc -E runs the code through the compiler's parser,
5490 # not just through cpp. "Syntax error" is here to catch this case.
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493 #ifdef __STDC__
5494 # include <limits.h>
5495 #else
5496 # include <assert.h>
5497 #endif
5498 Syntax error
5499 _ACEOF
5500 if ac_fn_c_try_cpp "$LINENO"; then :
5501
5502 else
5503 # Broken: fails on valid input.
5504 continue
5505 fi
5506 rm -f conftest.err conftest.i conftest.$ac_ext
5507
5508 # OK, works on sane cases. Now check whether nonexistent headers
5509 # can be detected and how.
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512 #include <ac_nonexistent.h>
5513 _ACEOF
5514 if ac_fn_c_try_cpp "$LINENO"; then :
5515 # Broken: success on invalid input.
5516 continue
5517 else
5518 # Passes both tests.
5519 ac_preproc_ok=:
5520 break
5521 fi
5522 rm -f conftest.err conftest.i conftest.$ac_ext
5523
5524 done
5525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5526 rm -f conftest.i conftest.err conftest.$ac_ext
5527 if $ac_preproc_ok; then :
5528
5529 else
5530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5532 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5533 See \`config.log' for more details" "$LINENO" 5; }
5534 fi
5535
5536 ac_ext=c
5537 ac_cpp='$CPP $CPPFLAGS'
5538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5541
5542
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5544 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5545 if ${ac_cv_path_GREP+:} false; then :
5546 $as_echo_n "(cached) " >&6
5547 else
5548 if test -z "$GREP"; then
5549 ac_path_GREP_found=false
5550 # Loop through the user's path and test for each of PROGNAME-LIST
5551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5553 do
5554 IFS=$as_save_IFS
5555 test -z "$as_dir" && as_dir=.
5556 for ac_prog in grep ggrep; do
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5559 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5560 # Check for GNU ac_path_GREP and select it if it is found.
5561 # Check for GNU $ac_path_GREP
5562 case `"$ac_path_GREP" --version 2>&1` in
5563 *GNU*)
5564 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5565 *)
5566 ac_count=0
5567 $as_echo_n 0123456789 >"conftest.in"
5568 while :
5569 do
5570 cat "conftest.in" "conftest.in" >"conftest.tmp"
5571 mv "conftest.tmp" "conftest.in"
5572 cp "conftest.in" "conftest.nl"
5573 $as_echo 'GREP' >> "conftest.nl"
5574 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5576 as_fn_arith $ac_count + 1 && ac_count=$as_val
5577 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5578 # Best one so far, save it but keep looking for a better one
5579 ac_cv_path_GREP="$ac_path_GREP"
5580 ac_path_GREP_max=$ac_count
5581 fi
5582 # 10*(2^10) chars as input seems more than enough
5583 test $ac_count -gt 10 && break
5584 done
5585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5586 esac
5587
5588 $ac_path_GREP_found && break 3
5589 done
5590 done
5591 done
5592 IFS=$as_save_IFS
5593 if test -z "$ac_cv_path_GREP"; then
5594 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5595 fi
5596 else
5597 ac_cv_path_GREP=$GREP
5598 fi
5599
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5602 $as_echo "$ac_cv_path_GREP" >&6; }
5603 GREP="$ac_cv_path_GREP"
5604
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5607 $as_echo_n "checking for egrep... " >&6; }
5608 if ${ac_cv_path_EGREP+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5612 then ac_cv_path_EGREP="$GREP -E"
5613 else
5614 if test -z "$EGREP"; then
5615 ac_path_EGREP_found=false
5616 # Loop through the user's path and test for each of PROGNAME-LIST
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5619 do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_prog in egrep; do
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5625 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5626 # Check for GNU ac_path_EGREP and select it if it is found.
5627 # Check for GNU $ac_path_EGREP
5628 case `"$ac_path_EGREP" --version 2>&1` in
5629 *GNU*)
5630 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5631 *)
5632 ac_count=0
5633 $as_echo_n 0123456789 >"conftest.in"
5634 while :
5635 do
5636 cat "conftest.in" "conftest.in" >"conftest.tmp"
5637 mv "conftest.tmp" "conftest.in"
5638 cp "conftest.in" "conftest.nl"
5639 $as_echo 'EGREP' >> "conftest.nl"
5640 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5642 as_fn_arith $ac_count + 1 && ac_count=$as_val
5643 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5644 # Best one so far, save it but keep looking for a better one
5645 ac_cv_path_EGREP="$ac_path_EGREP"
5646 ac_path_EGREP_max=$ac_count
5647 fi
5648 # 10*(2^10) chars as input seems more than enough
5649 test $ac_count -gt 10 && break
5650 done
5651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5652 esac
5653
5654 $ac_path_EGREP_found && break 3
5655 done
5656 done
5657 done
5658 IFS=$as_save_IFS
5659 if test -z "$ac_cv_path_EGREP"; then
5660 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5661 fi
5662 else
5663 ac_cv_path_EGREP=$EGREP
5664 fi
5665
5666 fi
5667 fi
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5669 $as_echo "$ac_cv_path_EGREP" >&6; }
5670 EGREP="$ac_cv_path_EGREP"
5671
5672
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5674 $as_echo_n "checking for ANSI C header files... " >&6; }
5675 if ${ac_cv_header_stdc+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 #include <stdlib.h>
5681 #include <stdarg.h>
5682 #include <string.h>
5683 #include <float.h>
5684
5685 int
5686 main ()
5687 {
5688
5689 ;
5690 return 0;
5691 }
5692 _ACEOF
5693 if ac_fn_c_try_compile "$LINENO"; then :
5694 ac_cv_header_stdc=yes
5695 else
5696 ac_cv_header_stdc=no
5697 fi
5698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5699
5700 if test $ac_cv_header_stdc = yes; then
5701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703 /* end confdefs.h. */
5704 #include <string.h>
5705
5706 _ACEOF
5707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5708 $EGREP "memchr" >/dev/null 2>&1; then :
5709
5710 else
5711 ac_cv_header_stdc=no
5712 fi
5713 rm -f conftest*
5714
5715 fi
5716
5717 if test $ac_cv_header_stdc = yes; then
5718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 #include <stdlib.h>
5722
5723 _ACEOF
5724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5725 $EGREP "free" >/dev/null 2>&1; then :
5726
5727 else
5728 ac_cv_header_stdc=no
5729 fi
5730 rm -f conftest*
5731
5732 fi
5733
5734 if test $ac_cv_header_stdc = yes; then
5735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5736 if test "$cross_compiling" = yes; then :
5737 :
5738 else
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740 /* end confdefs.h. */
5741 #include <ctype.h>
5742 #include <stdlib.h>
5743 #if ((' ' & 0x0FF) == 0x020)
5744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5746 #else
5747 # define ISLOWER(c) \
5748 (('a' <= (c) && (c) <= 'i') \
5749 || ('j' <= (c) && (c) <= 'r') \
5750 || ('s' <= (c) && (c) <= 'z'))
5751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5752 #endif
5753
5754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5755 int
5756 main ()
5757 {
5758 int i;
5759 for (i = 0; i < 256; i++)
5760 if (XOR (islower (i), ISLOWER (i))
5761 || toupper (i) != TOUPPER (i))
5762 return 2;
5763 return 0;
5764 }
5765 _ACEOF
5766 if ac_fn_c_try_run "$LINENO"; then :
5767
5768 else
5769 ac_cv_header_stdc=no
5770 fi
5771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5772 conftest.$ac_objext conftest.beam conftest.$ac_ext
5773 fi
5774
5775 fi
5776 fi
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5778 $as_echo "$ac_cv_header_stdc" >&6; }
5779 if test $ac_cv_header_stdc = yes; then
5780
5781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5782
5783 fi
5784
5785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5786 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5787 inttypes.h stdint.h unistd.h
5788 do :
5789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5790 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5791 "
5792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5793 cat >>confdefs.h <<_ACEOF
5794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5795 _ACEOF
5796
5797 fi
5798
5799 done
5800
5801
5802
5803
5804
5805 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5806 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5807 MINIX=yes
5808 else
5809 MINIX=
5810 fi
5811
5812
5813 if test "$MINIX" = yes; then
5814
5815 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5816
5817
5818 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5819
5820
5821 $as_echo "#define _MINIX 1" >>confdefs.h
5822
5823 fi
5824
5825 case "$host_os" in
5826 hpux*)
5827
5828 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5829
5830 ;;
5831 esac
5832
5833
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5835 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5836 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841
5842 # define __EXTENSIONS__ 1
5843 $ac_includes_default
5844 int
5845 main ()
5846 {
5847
5848 ;
5849 return 0;
5850 }
5851 _ACEOF
5852 if ac_fn_c_try_compile "$LINENO"; then :
5853 ac_cv_safe_to_define___extensions__=yes
5854 else
5855 ac_cv_safe_to_define___extensions__=no
5856 fi
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 fi
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5860 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5861 test $ac_cv_safe_to_define___extensions__ = yes &&
5862 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5863
5864 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5865
5866 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5867
5868 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5869
5870 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881 # Code from module arg-nonnull:
5882 # Code from module c++defs:
5883 # Code from module dtoastr:
5884 # Code from module extensions:
5885
5886 # Code from module getloadavg:
5887 # Code from module getopt-gnu:
5888 # Code from module getopt-posix:
5889 # Code from module gettext-h:
5890 # Code from module ignore-value:
5891 # Code from module include_next:
5892 # Code from module intprops:
5893 # Code from module mktime:
5894 # Code from module multiarch:
5895 # Code from module stdbool:
5896 # Code from module stddef:
5897 # Code from module stdlib:
5898 # Code from module strftime:
5899 # Code from module time:
5900 # Code from module time_r:
5901 # Code from module unistd:
5902 # Code from module warn-on-use:
5903
5904
5905 # On Suns, sometimes $CPP names a directory.
5906 if test -n "$CPP" && test -d "$CPP"; then
5907 CPP=
5908 fi
5909
5910 ## If not using gcc, and on Solaris, and no CPP specified, see if
5911 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5912 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5913 test x"$CPP" = x; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5915 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5916 if ${emacs_cv_sunpro_c+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921
5922 int
5923 main ()
5924 {
5925 #ifndef __SUNPRO_C
5926 fail;
5927 #endif
5928
5929 ;
5930 return 0;
5931 }
5932 _ACEOF
5933 if ac_fn_c_try_link "$LINENO"; then :
5934 emacs_cv_sunpro_c=yes
5935 else
5936 emacs_cv_sunpro_c=no
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext \
5939 conftest$ac_exeext conftest.$ac_ext
5940 fi
5941
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5943 $as_echo "$emacs_cv_sunpro_c" >&6; }
5944
5945 if test x"$emacs_cv_sunpro_c" = xyes; then
5946 NON_GNU_CPP="$CC -E -Xs"
5947 fi
5948 fi
5949
5950 #### Some systems specify a CPP to use unless we are using GCC.
5951 #### Now that we know whether we are using GCC, we can decide whether
5952 #### to use that one.
5953 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5954 then
5955 CPP="$NON_GNU_CPP"
5956 fi
5957
5958 #### Some systems specify a CC to use unless we are using GCC.
5959 #### Now that we know whether we are using GCC, we can decide whether
5960 #### to use that one.
5961 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5962 test x$cc_specified != xyes
5963 then
5964 CC="$NON_GNU_CC"
5965 fi
5966
5967 if test x$GCC = xyes; then
5968 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5969 else
5970 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5971 fi
5972
5973 ### Use -Wno-pointer-sign if the compiler supports it
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5975 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5976 SAVE_CFLAGS="$CFLAGS"
5977 CFLAGS="$CFLAGS -Wno-pointer-sign"
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980
5981 int
5982 main ()
5983 {
5984
5985 ;
5986 return 0;
5987 }
5988 _ACEOF
5989 if ac_fn_c_try_compile "$LINENO"; then :
5990 has_option=yes
5991 else
5992 has_option=no
5993 fi
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 if test $has_option = yes; then
5996 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5999 $as_echo "$has_option" >&6; }
6000 CFLAGS="$SAVE_CFLAGS"
6001 unset has_option
6002 unset SAVE_CFLAGS
6003
6004 ### Use -Wdeclaration-after-statement if the compiler supports it
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
6006 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
6007 SAVE_CFLAGS="$CFLAGS"
6008 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011
6012 int
6013 main ()
6014 {
6015
6016 ;
6017 return 0;
6018 }
6019 _ACEOF
6020 if ac_fn_c_try_compile "$LINENO"; then :
6021 has_option=yes
6022 else
6023 has_option=no
6024 fi
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 if test $has_option = yes; then
6027 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
6028 fi
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6030 $as_echo "$has_option" >&6; }
6031 CFLAGS="$SAVE_CFLAGS"
6032 unset has_option
6033 unset SAVE_CFLAGS
6034
6035 ### Use -Wold-style-definition if the compiler supports it
6036 # This can be removed when conversion to standard C is finished.
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
6038 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
6039 SAVE_CFLAGS="$CFLAGS"
6040 CFLAGS="$CFLAGS -Wold-style-definition"
6041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6043
6044 int
6045 main ()
6046 {
6047
6048 ;
6049 return 0;
6050 }
6051 _ACEOF
6052 if ac_fn_c_try_compile "$LINENO"; then :
6053 has_option=yes
6054 else
6055 has_option=no
6056 fi
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058 if test $has_option = yes; then
6059 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6062 $as_echo "$has_option" >&6; }
6063 CFLAGS="$SAVE_CFLAGS"
6064 unset has_option
6065 unset SAVE_CFLAGS
6066
6067 ### Use -Wimplicit-function-declaration if the compiler supports it
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6069 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6070 SAVE_CFLAGS="$CFLAGS"
6071 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074
6075 int
6076 main ()
6077 {
6078
6079 ;
6080 return 0;
6081 }
6082 _ACEOF
6083 if ac_fn_c_try_compile "$LINENO"; then :
6084 has_option=yes
6085 else
6086 has_option=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6089 if test $has_option = yes; then
6090 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6091 fi
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6093 $as_echo "$has_option" >&6; }
6094 CFLAGS="$SAVE_CFLAGS"
6095 unset has_option
6096 unset SAVE_CFLAGS
6097
6098
6099
6100
6101 #### Some other nice autoconf tests.
6102
6103 ac_ext=c
6104 ac_cpp='$CPP $CPPFLAGS'
6105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6109 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6110 # On Suns, sometimes $CPP names a directory.
6111 if test -n "$CPP" && test -d "$CPP"; then
6112 CPP=
6113 fi
6114 if test -z "$CPP"; then
6115 if ${ac_cv_prog_CPP+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 # Double quotes because CPP needs to be expanded
6119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6120 do
6121 ac_preproc_ok=false
6122 for ac_c_preproc_warn_flag in '' yes
6123 do
6124 # Use a header file that comes with gcc, so configuring glibc
6125 # with a fresh cross-compiler works.
6126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6127 # <limits.h> exists even on freestanding compilers.
6128 # On the NeXT, cc -E runs the code through the compiler's parser,
6129 # not just through cpp. "Syntax error" is here to catch this case.
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h. */
6132 #ifdef __STDC__
6133 # include <limits.h>
6134 #else
6135 # include <assert.h>
6136 #endif
6137 Syntax error
6138 _ACEOF
6139 if ac_fn_c_try_cpp "$LINENO"; then :
6140
6141 else
6142 # Broken: fails on valid input.
6143 continue
6144 fi
6145 rm -f conftest.err conftest.i conftest.$ac_ext
6146
6147 # OK, works on sane cases. Now check whether nonexistent headers
6148 # can be detected and how.
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 #include <ac_nonexistent.h>
6152 _ACEOF
6153 if ac_fn_c_try_cpp "$LINENO"; then :
6154 # Broken: success on invalid input.
6155 continue
6156 else
6157 # Passes both tests.
6158 ac_preproc_ok=:
6159 break
6160 fi
6161 rm -f conftest.err conftest.i conftest.$ac_ext
6162
6163 done
6164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6165 rm -f conftest.i conftest.err conftest.$ac_ext
6166 if $ac_preproc_ok; then :
6167 break
6168 fi
6169
6170 done
6171 ac_cv_prog_CPP=$CPP
6172
6173 fi
6174 CPP=$ac_cv_prog_CPP
6175 else
6176 ac_cv_prog_CPP=$CPP
6177 fi
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6179 $as_echo "$CPP" >&6; }
6180 ac_preproc_ok=false
6181 for ac_c_preproc_warn_flag in '' yes
6182 do
6183 # Use a header file that comes with gcc, so configuring glibc
6184 # with a fresh cross-compiler works.
6185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6186 # <limits.h> exists even on freestanding compilers.
6187 # On the NeXT, cc -E runs the code through the compiler's parser,
6188 # not just through cpp. "Syntax error" is here to catch this case.
6189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 /* end confdefs.h. */
6191 #ifdef __STDC__
6192 # include <limits.h>
6193 #else
6194 # include <assert.h>
6195 #endif
6196 Syntax error
6197 _ACEOF
6198 if ac_fn_c_try_cpp "$LINENO"; then :
6199
6200 else
6201 # Broken: fails on valid input.
6202 continue
6203 fi
6204 rm -f conftest.err conftest.i conftest.$ac_ext
6205
6206 # OK, works on sane cases. Now check whether nonexistent headers
6207 # can be detected and how.
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 #include <ac_nonexistent.h>
6211 _ACEOF
6212 if ac_fn_c_try_cpp "$LINENO"; then :
6213 # Broken: success on invalid input.
6214 continue
6215 else
6216 # Passes both tests.
6217 ac_preproc_ok=:
6218 break
6219 fi
6220 rm -f conftest.err conftest.i conftest.$ac_ext
6221
6222 done
6223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6224 rm -f conftest.i conftest.err conftest.$ac_ext
6225 if $ac_preproc_ok; then :
6226
6227 else
6228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6230 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6231 See \`config.log' for more details" "$LINENO" 5; }
6232 fi
6233
6234 ac_ext=c
6235 ac_cpp='$CPP $CPPFLAGS'
6236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6239
6240
6241 if test "x$RANLIB" = x; then
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_RANLIB+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 if test -n "$RANLIB"; then
6251 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256 IFS=$as_save_IFS
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 break 2
6263 fi
6264 done
6265 done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 RANLIB=$ac_cv_prog_RANLIB
6271 if test -n "$RANLIB"; then
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6273 $as_echo "$RANLIB" >&6; }
6274 else
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279
6280 fi
6281 if test -z "$ac_cv_prog_RANLIB"; then
6282 ac_ct_RANLIB=$RANLIB
6283 # Extract the first word of "ranlib", so it can be a program name with args.
6284 set dummy ranlib; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if test -n "$ac_ct_RANLIB"; then
6291 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296 IFS=$as_save_IFS
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_ac_ct_RANLIB="ranlib"
6301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 break 2
6303 fi
6304 done
6305 done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6311 if test -n "$ac_ct_RANLIB"; then
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6313 $as_echo "$ac_ct_RANLIB" >&6; }
6314 else
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319 if test "x$ac_ct_RANLIB" = x; then
6320 RANLIB=":"
6321 else
6322 case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326 ac_tool_warned=yes ;;
6327 esac
6328 RANLIB=$ac_ct_RANLIB
6329 fi
6330 else
6331 RANLIB="$ac_cv_prog_RANLIB"
6332 fi
6333
6334 fi
6335
6336 ## Although we're running on an amd64 kernel, we're actually compiling for
6337 ## the x86 architecture. The user should probably have provided an
6338 ## explicit --build to `configure', but if everything else than the kernel
6339 ## is running in i386 mode, we can help them out.
6340 if test "$machine" = "amdx86-64"; then
6341 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6342 if test "x$ac_cv_have_decl_i386" = xyes; then :
6343
6344 fi
6345
6346 if test "$ac_cv_have_decl_i386" = "yes"; then
6347 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6348 machine=intel386
6349 machfile="m/${machine}.h"
6350 fi
6351 fi
6352
6353 # Extract the first word of "install-info", so it can be a program name with args.
6354 set dummy install-info; ac_word=$2
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356 $as_echo_n "checking for $ac_word... " >&6; }
6357 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359 else
6360 case $INSTALL_INFO in
6361 [\\/]* | ?:[\\/]*)
6362 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6363 ;;
6364 *)
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6375 fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380 ;;
6381 esac
6382 fi
6383 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6384 if test -n "$INSTALL_INFO"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6386 $as_echo "$INSTALL_INFO" >&6; }
6387 else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6390 fi
6391
6392
6393 # Extract the first word of "install-info", so it can be a program name with args.
6394 set dummy install-info; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6398 $as_echo_n "(cached) " >&6
6399 else
6400 case $INSTALL_INFO in
6401 [\\/]* | ?:[\\/]*)
6402 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6403 ;;
6404 *)
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in /usr/sbin
6407 do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6412 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420 ;;
6421 esac
6422 fi
6423 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6424 if test -n "$INSTALL_INFO"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6426 $as_echo "$INSTALL_INFO" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432
6433 # Extract the first word of "install-info", so it can be a program name with args.
6434 set dummy install-info; ac_word=$2
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
6440 case $INSTALL_INFO in
6441 [\\/]* | ?:[\\/]*)
6442 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6443 ;;
6444 *)
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in /sbin
6447 do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6461 ;;
6462 esac
6463 fi
6464 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6465 if test -n "$INSTALL_INFO"; then
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6467 $as_echo "$INSTALL_INFO" >&6; }
6468 else
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6470 $as_echo "no" >&6; }
6471 fi
6472
6473
6474 # Extract the first word of "gzip", so it can be a program name with args.
6475 set dummy gzip; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_path_GZIP_PROG+:} false; then :
6479 $as_echo_n "(cached) " >&6
6480 else
6481 case $GZIP_PROG in
6482 [\\/]* | ?:[\\/]*)
6483 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6484 ;;
6485 *)
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499 IFS=$as_save_IFS
6500
6501 ;;
6502 esac
6503 fi
6504 GZIP_PROG=$ac_cv_path_GZIP_PROG
6505 if test -n "$GZIP_PROG"; then
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6507 $as_echo "$GZIP_PROG" >&6; }
6508 else
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512
6513
6514
6515
6516 ## Need makeinfo >= 4.6 (?) to build the manuals.
6517 # Extract the first word of "makeinfo", so it can be a program name with args.
6518 set dummy makeinfo; ac_word=$2
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 $as_echo_n "checking for $ac_word... " >&6; }
6521 if ${ac_cv_path_MAKEINFO+:} false; then :
6522 $as_echo_n "(cached) " >&6
6523 else
6524 case $MAKEINFO in
6525 [\\/]* | ?:[\\/]*)
6526 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6527 ;;
6528 *)
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540 done
6541 done
6542 IFS=$as_save_IFS
6543
6544 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6545 ;;
6546 esac
6547 fi
6548 MAKEINFO=$ac_cv_path_MAKEINFO
6549 if test -n "$MAKEINFO"; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6551 $as_echo "$MAKEINFO" >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6554 $as_echo "no" >&6; }
6555 fi
6556
6557
6558 if test "$MAKEINFO" != "no" && \
6559 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
6560 MAKEINFO=no
6561 fi
6562
6563 ## Makeinfo is unusual. For a released Emacs, the manuals are
6564 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6565 ## therefore in the category of "special tools" not normally required, which
6566 ## configure does not have to check for (eg autoconf itself).
6567 ## In a Bazaar checkout on the other hand, the manuals are not included.
6568 ## So makeinfo is a requirement to build from Bazaar, and configure
6569 ## should test for it as it does for any other build requirement.
6570 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6571 ## with pre-built manuals, from a Bazaar checkout.
6572 HAVE_MAKEINFO=yes
6573
6574 if test "$MAKEINFO" = "no"; then
6575 MAKEINFO=makeinfo
6576 if test "x${with_makeinfo}" = "xno"; then
6577 HAVE_MAKEINFO=no
6578 elif test ! -e $srcdir/info/emacs; then
6579 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6580 source tree does not seem to have pre-built manuals in the \`info' directory.
6581 Either install a suitable version of makeinfo, or re-run configure
6582 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6583 fi
6584 fi
6585
6586
6587
6588 if test x$GCC = xyes; then
6589 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6590 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6591 else
6592 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6593 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6594 fi
6595
6596
6597 late_LDFLAGS=$LDFLAGS
6598 if test x$GCC = xyes; then
6599 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6600 else
6601 LDFLAGS="$LDFLAGS -znocombreloc"
6602 fi
6603
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6605 $as_echo_n "checking for -znocombreloc... " >&6; }
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608
6609 int
6610 main ()
6611 {
6612
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_c_try_link "$LINENO"; then :
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6619 $as_echo "yes" >&6; }
6620 else
6621 LDFLAGS=$late_LDFLAGS
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 $as_echo "no" >&6; }
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
6627
6628
6629 # The value of CPP is a quoted variable reference, so we need to do this
6630 # to get its actual value...
6631 CPP=`eval "echo $CPP"`
6632
6633
6634 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6635 case "$opsys" in
6636 your-opsys-here) CANNOT_DUMP=yes ;;
6637 esac
6638
6639 test "$CANNOT_DUMP" = "yes" && \
6640
6641 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6642
6643
6644
6645
6646
6647 UNEXEC_OBJ=unexelf.o
6648 case "$opsys" in
6649 # MSDOS uses unexcoff.o
6650 # MSWindows uses unexw32.o
6651 aix4-2)
6652 UNEXEC_OBJ=unexaix.o
6653 ;;
6654 cygwin)
6655 UNEXEC_OBJ=unexcw.o
6656 ;;
6657 darwin)
6658 UNEXEC_OBJ=unexmacosx.o
6659 ;;
6660 hpux10-20 | hpux11)
6661 UNEXEC_OBJ=unexhp9k800.o
6662 ;;
6663 sol2-10)
6664 # Use the Solaris dldump() function, called from unexsol.c, to dump
6665 # emacs, instead of the generic ELF dump code found in unexelf.c.
6666 # The resulting binary has a complete symbol table, and is better
6667 # for debugging and other observability tools (debuggers, pstack, etc).
6668 #
6669 # If you encounter a problem using dldump(), please consider sending
6670 # a message to the OpenSolaris tools-linking mailing list:
6671 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6672 #
6673 # It is likely that dldump() works with older Solaris too, but this has
6674 # not been tested, so for now this change is for Solaris 10 or newer.
6675 UNEXEC_OBJ=unexsol.o
6676 ;;
6677 esac
6678
6679 LD_SWITCH_SYSTEM=
6680 case "$opsys" in
6681 freebsd)
6682 ## Let `ld' find image libs and similar things in /usr/local/lib.
6683 ## The system compiler, GCC, has apparently been modified to not
6684 ## look there, contrary to what a stock GCC would do.
6685 LD_SWITCH_SYSTEM=-L/usr/local/lib
6686 ;;
6687
6688 gnu-linux)
6689 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6690 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6691 ;;
6692
6693 netbsd)
6694 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6695 ;;
6696
6697 openbsd)
6698 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6699 ## otherwise Emacs dumps core on elf systems.
6700 LD_SWITCH_SYSTEM="-Z"
6701 ;;
6702 esac
6703
6704
6705 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6706
6707 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6708 ## which has not been defined yet. When this was handled with cpp,
6709 ## it was expanded to null when configure sourced the s/*.h file.
6710 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6711 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6712 ## (or somesuch), but because it is supposed to go at the _front_
6713 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6714 ## Compare with the gnu-linux case below, which added to the end
6715 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6716 ## LD_SWITCH_SYSTEM_TEMACS.
6717 case "$opsys" in
6718 netbsd|openbsd)
6719 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6720 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6721 esac
6722
6723
6724 C_SWITCH_MACHINE=
6725 if test "$machine" = "alpha"; then
6726 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6727 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6728
6729 fi
6730
6731 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6732 ## With ELF, make sure that all common symbols get allocated to in the
6733 ## data section. Otherwise, the dump of temacs may miss variables in
6734 ## the shared library that have been initialized. For example, with
6735 ## GNU libc, __malloc_initialized would normally be resolved to the
6736 ## shared library's .bss section, which is fatal.
6737 if test "x$GCC" = "xyes"; then
6738 C_SWITCH_MACHINE="-fno-common"
6739 else
6740 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6741 fi
6742 else
6743 UNEXEC_OBJ=unexalpha.o
6744 fi
6745 fi
6746
6747
6748
6749
6750 C_SWITCH_SYSTEM=
6751 ## Some programs in src produce warnings saying certain subprograms
6752 ## are too complex and need a MAXMEM value greater than 2000 for
6753 ## additional optimization. --nils@exp-math.uni-essen.de
6754 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6755 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6756 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6757 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6758
6759
6760
6761 LIBS_SYSTEM=
6762 case "$opsys" in
6763 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6764 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6765
6766 freebsd) LIBS_SYSTEM="-lutil" ;;
6767
6768 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6769
6770 sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;;
6771
6772 ## Motif needs -lgen.
6773 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6774 esac
6775
6776
6777
6778 ### Make sure subsequent tests use flags consistent with the build flags.
6779
6780 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6781 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6782 else
6783 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6784 fi
6785
6786 # Check whether --enable-largefile was given.
6787 if test "${enable_largefile+set}" = set; then :
6788 enableval=$enable_largefile;
6789 fi
6790
6791 if test "$enable_largefile" != no; then
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6794 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6795 if ${ac_cv_sys_largefile_CC+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 ac_cv_sys_largefile_CC=no
6799 if test "$GCC" != yes; then
6800 ac_save_CC=$CC
6801 while :; do
6802 # IRIX 6.2 and later do not support large files by default,
6803 # so use the C compiler's -n32 option if that helps.
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 #include <sys/types.h>
6807 /* Check that off_t can represent 2**63 - 1 correctly.
6808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6809 since some C++ compilers masquerading as C compilers
6810 incorrectly reject 9223372036854775807. */
6811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6813 && LARGE_OFF_T % 2147483647 == 1)
6814 ? 1 : -1];
6815 int
6816 main ()
6817 {
6818
6819 ;
6820 return 0;
6821 }
6822 _ACEOF
6823 if ac_fn_c_try_compile "$LINENO"; then :
6824 break
6825 fi
6826 rm -f core conftest.err conftest.$ac_objext
6827 CC="$CC -n32"
6828 if ac_fn_c_try_compile "$LINENO"; then :
6829 ac_cv_sys_largefile_CC=' -n32'; break
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext
6832 break
6833 done
6834 CC=$ac_save_CC
6835 rm -f conftest.$ac_ext
6836 fi
6837 fi
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6839 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6840 if test "$ac_cv_sys_largefile_CC" != no; then
6841 CC=$CC$ac_cv_sys_largefile_CC
6842 fi
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6845 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6846 if ${ac_cv_sys_file_offset_bits+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 while :; do
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851 /* end confdefs.h. */
6852 #include <sys/types.h>
6853 /* Check that off_t can represent 2**63 - 1 correctly.
6854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6855 since some C++ compilers masquerading as C compilers
6856 incorrectly reject 9223372036854775807. */
6857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6859 && LARGE_OFF_T % 2147483647 == 1)
6860 ? 1 : -1];
6861 int
6862 main ()
6863 {
6864
6865 ;
6866 return 0;
6867 }
6868 _ACEOF
6869 if ac_fn_c_try_compile "$LINENO"; then :
6870 ac_cv_sys_file_offset_bits=no; break
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874 /* end confdefs.h. */
6875 #define _FILE_OFFSET_BITS 64
6876 #include <sys/types.h>
6877 /* Check that off_t can represent 2**63 - 1 correctly.
6878 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6879 since some C++ compilers masquerading as C compilers
6880 incorrectly reject 9223372036854775807. */
6881 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6882 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6883 && LARGE_OFF_T % 2147483647 == 1)
6884 ? 1 : -1];
6885 int
6886 main ()
6887 {
6888
6889 ;
6890 return 0;
6891 }
6892 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"; then :
6894 ac_cv_sys_file_offset_bits=64; break
6895 fi
6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 ac_cv_sys_file_offset_bits=unknown
6898 break
6899 done
6900 fi
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6902 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6903 case $ac_cv_sys_file_offset_bits in #(
6904 no | unknown) ;;
6905 *)
6906 cat >>confdefs.h <<_ACEOF
6907 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6908 _ACEOF
6909 ;;
6910 esac
6911 rm -rf conftest*
6912 if test $ac_cv_sys_file_offset_bits = unknown; then
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6914 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6915 if ${ac_cv_sys_large_files+:} false; then :
6916 $as_echo_n "(cached) " >&6
6917 else
6918 while :; do
6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6921 #include <sys/types.h>
6922 /* Check that off_t can represent 2**63 - 1 correctly.
6923 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6924 since some C++ compilers masquerading as C compilers
6925 incorrectly reject 9223372036854775807. */
6926 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6927 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6928 && LARGE_OFF_T % 2147483647 == 1)
6929 ? 1 : -1];
6930 int
6931 main ()
6932 {
6933
6934 ;
6935 return 0;
6936 }
6937 _ACEOF
6938 if ac_fn_c_try_compile "$LINENO"; then :
6939 ac_cv_sys_large_files=no; break
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 #define _LARGE_FILES 1
6945 #include <sys/types.h>
6946 /* Check that off_t can represent 2**63 - 1 correctly.
6947 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6948 since some C++ compilers masquerading as C compilers
6949 incorrectly reject 9223372036854775807. */
6950 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6951 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6952 && LARGE_OFF_T % 2147483647 == 1)
6953 ? 1 : -1];
6954 int
6955 main ()
6956 {
6957
6958 ;
6959 return 0;
6960 }
6961 _ACEOF
6962 if ac_fn_c_try_compile "$LINENO"; then :
6963 ac_cv_sys_large_files=1; break
6964 fi
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 ac_cv_sys_large_files=unknown
6967 break
6968 done
6969 fi
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6971 $as_echo "$ac_cv_sys_large_files" >&6; }
6972 case $ac_cv_sys_large_files in #(
6973 no | unknown) ;;
6974 *)
6975 cat >>confdefs.h <<_ACEOF
6976 #define _LARGE_FILES $ac_cv_sys_large_files
6977 _ACEOF
6978 ;;
6979 esac
6980 rm -rf conftest*
6981 fi
6982 fi
6983
6984
6985
6986 ## If user specified a crt-dir, use that unconditionally.
6987 if test "X$CRT_DIR" = "X"; then
6988
6989 case "$canonical" in
6990 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6991 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6992 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6993 ## For anything else (eg /usr/lib32), it is up the user to specify
6994 ## the location (bug#5655).
6995 ## Test for crtn.o, not just the directory, because sometimes the
6996 ## directory exists but does not have the relevant files (bug#1287).
6997 ## FIXME better to test for binary compatibility somehow.
6998 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6999 ;;
7000
7001 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
7002 esac
7003
7004 case "$opsys" in
7005 hpux10-20) CRT_DIR=/lib ;;
7006 esac
7007
7008 ## Default is /usr/lib.
7009 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
7010
7011 else
7012
7013 ## Some platforms don't use any of these files, so it is not
7014 ## appropriate to put this test outside the if block.
7015 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
7016 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
7017
7018 fi
7019
7020
7021
7022 LIB_MATH=-lm
7023 LIB_STANDARD=
7024 START_FILES=
7025
7026 case $opsys in
7027 cygwin )
7028 LIB_MATH=
7029 START_FILES='pre-crt0.o'
7030 ;;
7031 darwin )
7032 ## Adding -lm confuses the dynamic linker, so omit it.
7033 LIB_MATH=
7034 START_FILES='pre-crt0.o'
7035 ;;
7036 freebsd )
7037 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7038 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7039 ;;
7040 gnu-linux | gnu-kfreebsd )
7041 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
7042 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
7043 ;;
7044 hpux10-20 | hpux11 )
7045 LIB_STANDARD=-lc
7046 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
7047 ;;
7048 netbsd | openbsd )
7049 if test -f $CRT_DIR/crti.o; then
7050 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
7051 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
7052 else
7053 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
7054 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
7055 fi
7056 ;;
7057 esac
7058
7059
7060
7061
7062
7063
7064
7065 if test "${with_sound}" != "no"; then
7066 # Sound support for GNU/Linux and the free BSDs.
7067 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7068 do :
7069 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7070 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7071 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7072 cat >>confdefs.h <<_ACEOF
7073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7074 _ACEOF
7075 have_sound_header=yes
7076 fi
7077
7078 done
7079
7080 # Emulation library used on NetBSD.
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7082 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7083 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 ac_check_lib_save_LIBS=$LIBS
7087 LIBS="-lossaudio $LIBS"
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7090
7091 /* Override any GCC internal prototype to avoid an error.
7092 Use char because int might match the return type of a GCC
7093 builtin and then its argument prototype would still apply. */
7094 #ifdef __cplusplus
7095 extern "C"
7096 #endif
7097 char _oss_ioctl ();
7098 int
7099 main ()
7100 {
7101 return _oss_ioctl ();
7102 ;
7103 return 0;
7104 }
7105 _ACEOF
7106 if ac_fn_c_try_link "$LINENO"; then :
7107 ac_cv_lib_ossaudio__oss_ioctl=yes
7108 else
7109 ac_cv_lib_ossaudio__oss_ioctl=no
7110 fi
7111 rm -f core conftest.err conftest.$ac_objext \
7112 conftest$ac_exeext conftest.$ac_ext
7113 LIBS=$ac_check_lib_save_LIBS
7114 fi
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7116 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7117 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7118 LIBSOUND=-lossaudio
7119 else
7120 LIBSOUND=
7121 fi
7122
7123
7124
7125 ALSA_REQUIRED=1.0.0
7126 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7127
7128 succeeded=no
7129
7130 # Extract the first word of "pkg-config", so it can be a program name with args.
7131 set dummy pkg-config; ac_word=$2
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7133 $as_echo_n "checking for $ac_word... " >&6; }
7134 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7135 $as_echo_n "(cached) " >&6
7136 else
7137 case $PKG_CONFIG in
7138 [\\/]* | ?:[\\/]*)
7139 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7140 ;;
7141 *)
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7144 do
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7158 ;;
7159 esac
7160 fi
7161 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7162 if test -n "$PKG_CONFIG"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7164 $as_echo "$PKG_CONFIG" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170
7171
7172 if test "$PKG_CONFIG" = "no" ; then
7173 HAVE_ALSA=no
7174 else
7175 PKG_CONFIG_MIN_VERSION=0.9.0
7176 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7178 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7179
7180 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7182 $as_echo "yes" >&6; }
7183 succeeded=yes
7184
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7186 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7187 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7189 $as_echo "$ALSA_CFLAGS" >&6; }
7190
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7192 $as_echo_n "checking ALSA_LIBS... " >&6; }
7193 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7195 $as_echo "$ALSA_LIBS" >&6; }
7196 else
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7198 $as_echo "no" >&6; }
7199 ALSA_CFLAGS=""
7200 ALSA_LIBS=""
7201 ## If we have a custom action on failure, don't print errors, but
7202 ## do set a variable so people can do so.
7203 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7204
7205 fi
7206
7207
7208
7209 else
7210 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7211 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7212 fi
7213 fi
7214
7215 if test $succeeded = yes; then
7216 HAVE_ALSA=yes
7217 else
7218 HAVE_ALSA=no
7219 fi
7220
7221 if test $HAVE_ALSA = yes; then
7222 SAVE_CFLAGS="$CFLAGS"
7223 SAVE_LDFLAGS="$LDFLAGS"
7224 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7225 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #include <asoundlib.h>
7229 int
7230 main ()
7231 {
7232 snd_lib_error_set_handler (0);
7233 ;
7234 return 0;
7235 }
7236 _ACEOF
7237 if ac_fn_c_try_compile "$LINENO"; then :
7238 emacs_alsa_normal=yes
7239 else
7240 emacs_alsa_normal=no
7241 fi
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 if test "$emacs_alsa_normal" != yes; then
7244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7245 /* end confdefs.h. */
7246 #include <alsa/asoundlib.h>
7247 int
7248 main ()
7249 {
7250 snd_lib_error_set_handler (0);
7251 ;
7252 return 0;
7253 }
7254 _ACEOF
7255 if ac_fn_c_try_compile "$LINENO"; then :
7256 emacs_alsa_subdir=yes
7257 else
7258 emacs_alsa_subdir=no
7259 fi
7260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 if test "$emacs_alsa_subdir" != yes; then
7262 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7263 fi
7264 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7265 fi
7266
7267 CFLAGS="$SAVE_CFLAGS"
7268 LDFLAGS="$SAVE_LDFLAGS"
7269 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7270 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7271
7272 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7273
7274 fi
7275
7276 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7277 case "$opsys" in
7278 gnu-linux|freebsd|netbsd)
7279
7280 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7281
7282 ;;
7283 esac
7284 fi
7285
7286
7287 fi
7288
7289 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7290 linux/version.h sys/systeminfo.h limits.h \
7291 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7292 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7293 sys/utsname.h pwd.h utmp.h dirent.h util.h
7294 do :
7295 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7298 cat >>confdefs.h <<_ACEOF
7299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7300 _ACEOF
7301
7302 fi
7303
7304 done
7305
7306
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7308 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7310 /* end confdefs.h. */
7311 #include <sys/personality.h>
7312 int
7313 main ()
7314 {
7315 personality (PER_LINUX32)
7316 ;
7317 return 0;
7318 }
7319 _ACEOF
7320 if ac_fn_c_try_compile "$LINENO"; then :
7321 emacs_cv_personality_linux32=yes
7322 else
7323 emacs_cv_personality_linux32=no
7324 fi
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7327 $as_echo "$emacs_cv_personality_linux32" >&6; }
7328
7329 if test $emacs_cv_personality_linux32 = yes; then
7330
7331 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7332
7333 fi
7334
7335 for ac_header in term.h
7336 do :
7337 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7338 if test "x$ac_cv_header_term_h" = xyes; then :
7339 cat >>confdefs.h <<_ACEOF
7340 #define HAVE_TERM_H 1
7341 _ACEOF
7342
7343 fi
7344
7345 done
7346
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7348 $as_echo_n "checking for ANSI C header files... " >&6; }
7349 if ${ac_cv_header_stdc+:} false; then :
7350 $as_echo_n "(cached) " >&6
7351 else
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354 #include <stdlib.h>
7355 #include <stdarg.h>
7356 #include <string.h>
7357 #include <float.h>
7358
7359 int
7360 main ()
7361 {
7362
7363 ;
7364 return 0;
7365 }
7366 _ACEOF
7367 if ac_fn_c_try_compile "$LINENO"; then :
7368 ac_cv_header_stdc=yes
7369 else
7370 ac_cv_header_stdc=no
7371 fi
7372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373
7374 if test $ac_cv_header_stdc = yes; then
7375 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7378 #include <string.h>
7379
7380 _ACEOF
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382 $EGREP "memchr" >/dev/null 2>&1; then :
7383
7384 else
7385 ac_cv_header_stdc=no
7386 fi
7387 rm -f conftest*
7388
7389 fi
7390
7391 if test $ac_cv_header_stdc = yes; then
7392 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 #include <stdlib.h>
7396
7397 _ACEOF
7398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7399 $EGREP "free" >/dev/null 2>&1; then :
7400
7401 else
7402 ac_cv_header_stdc=no
7403 fi
7404 rm -f conftest*
7405
7406 fi
7407
7408 if test $ac_cv_header_stdc = yes; then
7409 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7410 if test "$cross_compiling" = yes; then :
7411 :
7412 else
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414 /* end confdefs.h. */
7415 #include <ctype.h>
7416 #include <stdlib.h>
7417 #if ((' ' & 0x0FF) == 0x020)
7418 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7419 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7420 #else
7421 # define ISLOWER(c) \
7422 (('a' <= (c) && (c) <= 'i') \
7423 || ('j' <= (c) && (c) <= 'r') \
7424 || ('s' <= (c) && (c) <= 'z'))
7425 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7426 #endif
7427
7428 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7429 int
7430 main ()
7431 {
7432 int i;
7433 for (i = 0; i < 256; i++)
7434 if (XOR (islower (i), ISLOWER (i))
7435 || toupper (i) != TOUPPER (i))
7436 return 2;
7437 return 0;
7438 }
7439 _ACEOF
7440 if ac_fn_c_try_run "$LINENO"; then :
7441
7442 else
7443 ac_cv_header_stdc=no
7444 fi
7445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7446 conftest.$ac_objext conftest.beam conftest.$ac_ext
7447 fi
7448
7449 fi
7450 fi
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7452 $as_echo "$ac_cv_header_stdc" >&6; }
7453 if test $ac_cv_header_stdc = yes; then
7454
7455 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7456
7457 fi
7458
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7460 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7461 if ${ac_cv_header_time+:} false; then :
7462 $as_echo_n "(cached) " >&6
7463 else
7464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h. */
7466 #include <sys/types.h>
7467 #include <sys/time.h>
7468 #include <time.h>
7469
7470 int
7471 main ()
7472 {
7473 if ((struct tm *) 0)
7474 return 0;
7475 ;
7476 return 0;
7477 }
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480 ac_cv_header_time=yes
7481 else
7482 ac_cv_header_time=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 fi
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7487 $as_echo "$ac_cv_header_time" >&6; }
7488 if test $ac_cv_header_time = yes; then
7489
7490 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7491
7492 fi
7493
7494 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7495 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7496 ac_have_decl=1
7497 else
7498 ac_have_decl=0
7499 fi
7500
7501 cat >>confdefs.h <<_ACEOF
7502 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7503 _ACEOF
7504
7505 if test $ac_cv_have_decl_sys_siglist != yes; then
7506 # For Tru64, at least:
7507 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7508 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7509 ac_have_decl=1
7510 else
7511 ac_have_decl=0
7512 fi
7513
7514 cat >>confdefs.h <<_ACEOF
7515 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7516 _ACEOF
7517
7518 if test $ac_cv_have_decl___sys_siglist = yes; then
7519
7520 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7521
7522 fi
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7525 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7526 if ${ac_cv_header_sys_wait_h+:} false; then :
7527 $as_echo_n "(cached) " >&6
7528 else
7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7530 /* end confdefs.h. */
7531 #include <sys/types.h>
7532 #include <sys/wait.h>
7533 #ifndef WEXITSTATUS
7534 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7535 #endif
7536 #ifndef WIFEXITED
7537 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7538 #endif
7539
7540 int
7541 main ()
7542 {
7543 int s;
7544 wait (&s);
7545 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7546 ;
7547 return 0;
7548 }
7549 _ACEOF
7550 if ac_fn_c_try_compile "$LINENO"; then :
7551 ac_cv_header_sys_wait_h=yes
7552 else
7553 ac_cv_header_sys_wait_h=no
7554 fi
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7556 fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7558 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7559 if test $ac_cv_header_sys_wait_h = yes; then
7560
7561 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7562
7563 fi
7564
7565
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7567 $as_echo_n "checking for struct utimbuf... " >&6; }
7568 if ${emacs_cv_struct_utimbuf+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 #ifdef TIME_WITH_SYS_TIME
7574 #include <sys/time.h>
7575 #include <time.h>
7576 #else
7577 #ifdef HAVE_SYS_TIME_H
7578 #include <sys/time.h>
7579 #else
7580 #include <time.h>
7581 #endif
7582 #endif
7583 #ifdef HAVE_UTIME_H
7584 #include <utime.h>
7585 #endif
7586 int
7587 main ()
7588 {
7589 static struct utimbuf x; x.actime = x.modtime;
7590 ;
7591 return 0;
7592 }
7593 _ACEOF
7594 if ac_fn_c_try_compile "$LINENO"; then :
7595 emacs_cv_struct_utimbuf=yes
7596 else
7597 emacs_cv_struct_utimbuf=no
7598 fi
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 fi
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7602 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7603 if test $emacs_cv_struct_utimbuf = yes; then
7604
7605 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7606
7607 fi
7608
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7610 $as_echo_n "checking return type of signal handlers... " >&6; }
7611 if ${ac_cv_type_signal+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 #include <sys/types.h>
7617 #include <signal.h>
7618
7619 int
7620 main ()
7621 {
7622 return *(signal (0, 0)) (0) == 1;
7623 ;
7624 return 0;
7625 }
7626 _ACEOF
7627 if ac_fn_c_try_compile "$LINENO"; then :
7628 ac_cv_type_signal=int
7629 else
7630 ac_cv_type_signal=void
7631 fi
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 fi
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7635 $as_echo "$ac_cv_type_signal" >&6; }
7636
7637 cat >>confdefs.h <<_ACEOF
7638 #define RETSIGTYPE $ac_cv_type_signal
7639 _ACEOF
7640
7641
7642
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7644 $as_echo_n "checking for speed_t... " >&6; }
7645 if ${emacs_cv_speed_t+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647 else
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 #include <termios.h>
7651 int
7652 main ()
7653 {
7654 speed_t x = 1;
7655 ;
7656 return 0;
7657 }
7658 _ACEOF
7659 if ac_fn_c_try_compile "$LINENO"; then :
7660 emacs_cv_speed_t=yes
7661 else
7662 emacs_cv_speed_t=no
7663 fi
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 fi
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7667 $as_echo "$emacs_cv_speed_t" >&6; }
7668 if test $emacs_cv_speed_t = yes; then
7669
7670 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7671
7672 fi
7673
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7675 $as_echo_n "checking for struct timeval... " >&6; }
7676 if ${emacs_cv_struct_timeval+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #ifdef TIME_WITH_SYS_TIME
7682 #include <sys/time.h>
7683 #include <time.h>
7684 #else
7685 #ifdef HAVE_SYS_TIME_H
7686 #include <sys/time.h>
7687 #else
7688 #include <time.h>
7689 #endif
7690 #endif
7691 int
7692 main ()
7693 {
7694 static struct timeval x; x.tv_sec = x.tv_usec;
7695 ;
7696 return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"; then :
7700 emacs_cv_struct_timeval=yes
7701 else
7702 emacs_cv_struct_timeval=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7707 $as_echo "$emacs_cv_struct_timeval" >&6; }
7708 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7709 if test $emacs_cv_struct_timeval = yes; then
7710
7711 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7712
7713 fi
7714
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7716 $as_echo_n "checking for struct exception... " >&6; }
7717 if ${emacs_cv_struct_exception+:} false; then :
7718 $as_echo_n "(cached) " >&6
7719 else
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7722 #include <math.h>
7723 int
7724 main ()
7725 {
7726 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7727 ;
7728 return 0;
7729 }
7730 _ACEOF
7731 if ac_fn_c_try_compile "$LINENO"; then :
7732 emacs_cv_struct_exception=yes
7733 else
7734 emacs_cv_struct_exception=no
7735 fi
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737 fi
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7739 $as_echo "$emacs_cv_struct_exception" >&6; }
7740 HAVE_EXCEPTION=$emacs_cv_struct_exception
7741 if test $emacs_cv_struct_exception != yes; then
7742
7743 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7744
7745 fi
7746
7747 for ac_header in sys/socket.h
7748 do :
7749 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7750 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7751 cat >>confdefs.h <<_ACEOF
7752 #define HAVE_SYS_SOCKET_H 1
7753 _ACEOF
7754
7755 fi
7756
7757 done
7758
7759 for ac_header in net/if.h
7760 do :
7761 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7762 #if HAVE_SYS_SOCKET_H
7763 #include <sys/socket.h>
7764 #endif
7765 "
7766 if test "x$ac_cv_header_net_if_h" = xyes; then :
7767 cat >>confdefs.h <<_ACEOF
7768 #define HAVE_NET_IF_H 1
7769 _ACEOF
7770
7771 fi
7772
7773 done
7774
7775
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7777 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7778 if ${ac_cv_struct_tm+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780 else
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783 #include <sys/types.h>
7784 #include <time.h>
7785
7786 int
7787 main ()
7788 {
7789 struct tm tm;
7790 int *p = &tm.tm_sec;
7791 return !p;
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797 ac_cv_struct_tm=time.h
7798 else
7799 ac_cv_struct_tm=sys/time.h
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 fi
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7804 $as_echo "$ac_cv_struct_tm" >&6; }
7805 if test $ac_cv_struct_tm = sys/time.h; then
7806
7807 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7808
7809 fi
7810
7811 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7812 #include <$ac_cv_struct_tm>
7813
7814 "
7815 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7816
7817 cat >>confdefs.h <<_ACEOF
7818 #define HAVE_STRUCT_TM_TM_ZONE 1
7819 _ACEOF
7820
7821
7822 fi
7823
7824 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7825
7826 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7827
7828 else
7829 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7830 "
7831 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7832 ac_have_decl=1
7833 else
7834 ac_have_decl=0
7835 fi
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define HAVE_DECL_TZNAME $ac_have_decl
7839 _ACEOF
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7842 $as_echo_n "checking for tzname... " >&6; }
7843 if ${ac_cv_var_tzname+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #include <time.h>
7849 #if !HAVE_DECL_TZNAME
7850 extern char *tzname[];
7851 #endif
7852
7853 int
7854 main ()
7855 {
7856 return tzname[0][0];
7857 ;
7858 return 0;
7859 }
7860 _ACEOF
7861 if ac_fn_c_try_link "$LINENO"; then :
7862 ac_cv_var_tzname=yes
7863 else
7864 ac_cv_var_tzname=no
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext \
7867 conftest$ac_exeext conftest.$ac_ext
7868 fi
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7870 $as_echo "$ac_cv_var_tzname" >&6; }
7871 if test $ac_cv_var_tzname = yes; then
7872
7873 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7874
7875 fi
7876 fi
7877
7878 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7879 "
7880 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7881
7882 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7883
7884 fi
7885
7886 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7887 #if HAVE_SYS_SOCKET_H
7888 #include <sys/socket.h>
7889 #endif
7890 #if HAVE_NET_IF_H
7891 #include <net/if.h>
7892 #endif
7893 "
7894 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
7895
7896 cat >>confdefs.h <<_ACEOF
7897 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7898 _ACEOF
7899
7900
7901 fi
7902 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7903 #if HAVE_SYS_SOCKET_H
7904 #include <sys/socket.h>
7905 #endif
7906 #if HAVE_NET_IF_H
7907 #include <net/if.h>
7908 #endif
7909 "
7910 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
7911
7912 cat >>confdefs.h <<_ACEOF
7913 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7914 _ACEOF
7915
7916
7917 fi
7918 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7919 #if HAVE_SYS_SOCKET_H
7920 #include <sys/socket.h>
7921 #endif
7922 #if HAVE_NET_IF_H
7923 #include <net/if.h>
7924 #endif
7925 "
7926 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
7927
7928 cat >>confdefs.h <<_ACEOF
7929 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7930 _ACEOF
7931
7932
7933 fi
7934 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7935 #if HAVE_SYS_SOCKET_H
7936 #include <sys/socket.h>
7937 #endif
7938 #if HAVE_NET_IF_H
7939 #include <net/if.h>
7940 #endif
7941 "
7942 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
7943
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7946 _ACEOF
7947
7948
7949 fi
7950 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7951 #if HAVE_SYS_SOCKET_H
7952 #include <sys/socket.h>
7953 #endif
7954 #if HAVE_NET_IF_H
7955 #include <net/if.h>
7956 #endif
7957 "
7958 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
7959
7960 cat >>confdefs.h <<_ACEOF
7961 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7962 _ACEOF
7963
7964
7965 fi
7966
7967
7968
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7970 $as_echo_n "checking for function prototypes... " >&6; }
7971 if test "$ac_cv_prog_cc_c89" != no; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7973 $as_echo "yes" >&6; }
7974
7975 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7976
7977
7978 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7979
7980 else
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982 $as_echo "no" >&6; }
7983 fi
7984
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7986 $as_echo_n "checking for working volatile... " >&6; }
7987 if ${ac_cv_c_volatile+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992
7993 int
7994 main ()
7995 {
7996
7997 volatile int x;
7998 int * volatile y = (int *) 0;
7999 return !x && !y;
8000 ;
8001 return 0;
8002 }
8003 _ACEOF
8004 if ac_fn_c_try_compile "$LINENO"; then :
8005 ac_cv_c_volatile=yes
8006 else
8007 ac_cv_c_volatile=no
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
8012 $as_echo "$ac_cv_c_volatile" >&6; }
8013 if test $ac_cv_c_volatile = no; then
8014
8015 $as_echo "#define volatile /**/" >>confdefs.h
8016
8017 fi
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8020 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8021 if ${ac_cv_c_const+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026
8027 int
8028 main ()
8029 {
8030 /* FIXME: Include the comments suggested by Paul. */
8031 #ifndef __cplusplus
8032 /* Ultrix mips cc rejects this. */
8033 typedef int charset[2];
8034 const charset cs;
8035 /* SunOS 4.1.1 cc rejects this. */
8036 char const *const *pcpcc;
8037 char **ppc;
8038 /* NEC SVR4.0.2 mips cc rejects this. */
8039 struct point {int x, y;};
8040 static struct point const zero = {0,0};
8041 /* AIX XL C 1.02.0.0 rejects this.
8042 It does not let you subtract one const X* pointer from another in
8043 an arm of an if-expression whose if-part is not a constant
8044 expression */
8045 const char *g = "string";
8046 pcpcc = &g + (g ? g-g : 0);
8047 /* HPUX 7.0 cc rejects these. */
8048 ++pcpcc;
8049 ppc = (char**) pcpcc;
8050 pcpcc = (char const *const *) ppc;
8051 { /* SCO 3.2v4 cc rejects this. */
8052 char *t;
8053 char const *s = 0 ? (char *) 0 : (char const *) 0;
8054
8055 *t++ = 0;
8056 if (s) return 0;
8057 }
8058 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8059 int x[] = {25, 17};
8060 const int *foo = &x[0];
8061 ++foo;
8062 }
8063 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8064 typedef const int *iptr;
8065 iptr p = 0;
8066 ++p;
8067 }
8068 { /* AIX XL C 1.02.0.0 rejects this saying
8069 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8070 struct s { int j; const int *ap[3]; };
8071 struct s *b; b->j = 5;
8072 }
8073 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8074 const int foo = 10;
8075 if (!foo) return 0;
8076 }
8077 return !cs[0] && !zero.x;
8078 #endif
8079
8080 ;
8081 return 0;
8082 }
8083 _ACEOF
8084 if ac_fn_c_try_compile "$LINENO"; then :
8085 ac_cv_c_const=yes
8086 else
8087 ac_cv_c_const=no
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 fi
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8092 $as_echo "$ac_cv_c_const" >&6; }
8093 if test $ac_cv_c_const = no; then
8094
8095 $as_echo "#define const /**/" >>confdefs.h
8096
8097 fi
8098
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8100 $as_echo_n "checking for void * support... " >&6; }
8101 if ${emacs_cv_void_star+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106
8107 int
8108 main ()
8109 {
8110 void * foo;
8111 ;
8112 return 0;
8113 }
8114 _ACEOF
8115 if ac_fn_c_try_compile "$LINENO"; then :
8116 emacs_cv_void_star=yes
8117 else
8118 emacs_cv_void_star=no
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 fi
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8123 $as_echo "$emacs_cv_void_star" >&6; }
8124 if test $emacs_cv_void_star = yes; then
8125 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8126
8127 else
8128 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8129
8130 fi
8131
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8133 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8134 if ${ac_cv_c_bigendian+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 ac_cv_c_bigendian=unknown
8138 # See if we're dealing with a universal compiler.
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141 #ifndef __APPLE_CC__
8142 not a universal capable compiler
8143 #endif
8144 typedef int dummy;
8145
8146 _ACEOF
8147 if ac_fn_c_try_compile "$LINENO"; then :
8148
8149 # Check for potential -arch flags. It is not universal unless
8150 # there are at least two -arch flags with different values.
8151 ac_arch=
8152 ac_prev=
8153 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8154 if test -n "$ac_prev"; then
8155 case $ac_word in
8156 i?86 | x86_64 | ppc | ppc64)
8157 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8158 ac_arch=$ac_word
8159 else
8160 ac_cv_c_bigendian=universal
8161 break
8162 fi
8163 ;;
8164 esac
8165 ac_prev=
8166 elif test "x$ac_word" = "x-arch"; then
8167 ac_prev=arch
8168 fi
8169 done
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8172 if test $ac_cv_c_bigendian = unknown; then
8173 # See if sys/param.h defines the BYTE_ORDER macro.
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 #include <sys/types.h>
8177 #include <sys/param.h>
8178
8179 int
8180 main ()
8181 {
8182 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8183 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8184 && LITTLE_ENDIAN)
8185 bogus endian macros
8186 #endif
8187
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 if ac_fn_c_try_compile "$LINENO"; then :
8193 # It does; now see whether it defined to BIG_ENDIAN or not.
8194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8196 #include <sys/types.h>
8197 #include <sys/param.h>
8198
8199 int
8200 main ()
8201 {
8202 #if BYTE_ORDER != BIG_ENDIAN
8203 not big endian
8204 #endif
8205
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211 ac_cv_c_bigendian=yes
8212 else
8213 ac_cv_c_bigendian=no
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 fi
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219 if test $ac_cv_c_bigendian = unknown; then
8220 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h. */
8223 #include <limits.h>
8224
8225 int
8226 main ()
8227 {
8228 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8229 bogus endian macros
8230 #endif
8231
8232 ;
8233 return 0;
8234 }
8235 _ACEOF
8236 if ac_fn_c_try_compile "$LINENO"; then :
8237 # It does; now see whether it defined to _BIG_ENDIAN or not.
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239 /* end confdefs.h. */
8240 #include <limits.h>
8241
8242 int
8243 main ()
8244 {
8245 #ifndef _BIG_ENDIAN
8246 not big endian
8247 #endif
8248
8249 ;
8250 return 0;
8251 }
8252 _ACEOF
8253 if ac_fn_c_try_compile "$LINENO"; then :
8254 ac_cv_c_bigendian=yes
8255 else
8256 ac_cv_c_bigendian=no
8257 fi
8258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 fi
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 fi
8262 if test $ac_cv_c_bigendian = unknown; then
8263 # Compile a test program.
8264 if test "$cross_compiling" = yes; then :
8265 # Try to guess by grepping values from an object file.
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 short int ascii_mm[] =
8269 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8270 short int ascii_ii[] =
8271 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8272 int use_ascii (int i) {
8273 return ascii_mm[i] + ascii_ii[i];
8274 }
8275 short int ebcdic_ii[] =
8276 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8277 short int ebcdic_mm[] =
8278 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8279 int use_ebcdic (int i) {
8280 return ebcdic_mm[i] + ebcdic_ii[i];
8281 }
8282 extern int foo;
8283
8284 int
8285 main ()
8286 {
8287 return use_ascii (foo) == use_ebcdic (foo);
8288 ;
8289 return 0;
8290 }
8291 _ACEOF
8292 if ac_fn_c_try_compile "$LINENO"; then :
8293 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8294 ac_cv_c_bigendian=yes
8295 fi
8296 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8297 if test "$ac_cv_c_bigendian" = unknown; then
8298 ac_cv_c_bigendian=no
8299 else
8300 # finding both strings is unlikely to happen, but who knows?
8301 ac_cv_c_bigendian=unknown
8302 fi
8303 fi
8304 fi
8305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8306 else
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 $ac_includes_default
8310 int
8311 main ()
8312 {
8313
8314 /* Are we little or big endian? From Harbison&Steele. */
8315 union
8316 {
8317 long int l;
8318 char c[sizeof (long int)];
8319 } u;
8320 u.l = 1;
8321 return u.c[sizeof (long int) - 1] == 1;
8322
8323 ;
8324 return 0;
8325 }
8326 _ACEOF
8327 if ac_fn_c_try_run "$LINENO"; then :
8328 ac_cv_c_bigendian=no
8329 else
8330 ac_cv_c_bigendian=yes
8331 fi
8332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8333 conftest.$ac_objext conftest.beam conftest.$ac_ext
8334 fi
8335
8336 fi
8337 fi
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8339 $as_echo "$ac_cv_c_bigendian" >&6; }
8340 case $ac_cv_c_bigendian in #(
8341 yes)
8342 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8343 ;; #(
8344 no)
8345 ;; #(
8346 universal)
8347
8348 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8349
8350 ;; #(
8351 *)
8352 as_fn_error $? "unknown endianness
8353 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8354 esac
8355
8356
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8358 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8359 if ${emacs_cv_attribute_aligned+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8363 /* end confdefs.h. */
8364 char __attribute__ ((__aligned__ (1 << 3))) c;
8365 int
8366 main ()
8367 {
8368
8369 ;
8370 return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_compile "$LINENO"; then :
8374 emacs_cv_attribute_aligned=yes
8375 else
8376 emacs_cv_attribute_aligned=no
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 fi
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8381 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8382 if test $emacs_cv_attribute_aligned = yes; then
8383
8384 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8385
8386 fi
8387
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8389 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8390 set x ${MAKE-make}
8391 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8392 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat >conftest.make <<\_ACEOF
8396 SHELL = /bin/sh
8397 all:
8398 @echo '@@@%%%=$(MAKE)=@@@%%%'
8399 _ACEOF
8400 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8401 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8402 *@@@%%%=?*=@@@%%%*)
8403 eval ac_cv_prog_make_${ac_make}_set=yes;;
8404 *)
8405 eval ac_cv_prog_make_${ac_make}_set=no;;
8406 esac
8407 rm -f conftest.make
8408 fi
8409 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8411 $as_echo "yes" >&6; }
8412 SET_MAKE=
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 SET_MAKE="MAKE=${MAKE-make}"
8417 fi
8418
8419
8420 DEPFLAGS=
8421 MKDEPDIR=":"
8422 deps_frag=deps.mk
8423 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8425 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8426 HAVE_GNU_MAKE=no
8427 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8428 if test "x$testval" != x; then
8429 HAVE_GNU_MAKE=yes
8430 else
8431 ac_enable_autodepend=no
8432 fi
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8434 $as_echo "$HAVE_GNU_MAKE" >&6; }
8435 if test $HAVE_GNU_MAKE = yes; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8437 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8438 SAVE_CFLAGS="$CFLAGS"
8439 CFLAGS="$CFLAGS -MMD -MF deps.d"
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442
8443 int
8444 main ()
8445 {
8446
8447 ;
8448 return 0;
8449 }
8450 _ACEOF
8451 if ac_fn_c_try_compile "$LINENO"; then :
8452
8453 else
8454 ac_enable_autodepend=no
8455 fi
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 CFLAGS="$SAVE_CFLAGS"
8458 test -f deps.d || ac_enable_autodepend=no
8459 rm -rf deps.d
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8461 $as_echo "$ac_enable_autodepend" >&6; }
8462 fi
8463 if test $ac_enable_autodepend = yes; then
8464 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8465 ## In parallel builds, another make might create depdir between
8466 ## the first test and mkdir, so stick another test on the end.
8467 ## Or use mkinstalldirs? mkdir -p is not portable.
8468 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8469 deps_frag=autodeps.mk
8470 fi
8471 fi
8472 deps_frag=$srcdir/src/$deps_frag
8473
8474
8475
8476
8477
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8479 $as_echo_n "checking for long file names... " >&6; }
8480 if ${ac_cv_sys_long_file_names+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 ac_cv_sys_long_file_names=yes
8484 # Test for long file names in all the places we know might matter:
8485 # . the current directory, where building will happen
8486 # $prefix/lib where we will be installing things
8487 # $exec_prefix/lib likewise
8488 # $TMPDIR if set, where it might want to write temporary files
8489 # /tmp where it might want to write temporary files
8490 # /var/tmp likewise
8491 # /usr/tmp likewise
8492 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8493 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8494 # in the usual case where exec_prefix is '${prefix}'.
8495 case $ac_dir in #(
8496 . | /* | ?:[\\/]*) ;; #(
8497 *) continue;;
8498 esac
8499 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8500 ac_xdir=$ac_dir/cf$$
8501 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8502 ac_tf1=$ac_xdir/conftest9012345
8503 ac_tf2=$ac_xdir/conftest9012346
8504 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8505 ac_cv_sys_long_file_names=no
8506 rm -f -r "$ac_xdir" 2>/dev/null
8507 test $ac_cv_sys_long_file_names = no && break
8508 done
8509 fi
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8511 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8512 if test $ac_cv_sys_long_file_names = yes; then
8513
8514 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8515
8516 fi
8517
8518
8519 #### Choose a window system.
8520
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8522 $as_echo_n "checking for X... " >&6; }
8523
8524
8525 # Check whether --with-x was given.
8526 if test "${with_x+set}" = set; then :
8527 withval=$with_x;
8528 fi
8529
8530 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8531 if test "x$with_x" = xno; then
8532 # The user explicitly disabled X.
8533 have_x=disabled
8534 else
8535 case $x_includes,$x_libraries in #(
8536 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8537 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 # One or both of the vars are not set, and there is no cached value.
8541 ac_x_includes=no ac_x_libraries=no
8542 rm -f -r conftest.dir
8543 if mkdir conftest.dir; then
8544 cd conftest.dir
8545 cat >Imakefile <<'_ACEOF'
8546 incroot:
8547 @echo incroot='${INCROOT}'
8548 usrlibdir:
8549 @echo usrlibdir='${USRLIBDIR}'
8550 libdir:
8551 @echo libdir='${LIBDIR}'
8552 _ACEOF
8553 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8554 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8555 for ac_var in incroot usrlibdir libdir; do
8556 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8557 done
8558 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8559 for ac_extension in a so sl dylib la dll; do
8560 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8561 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8562 ac_im_usrlibdir=$ac_im_libdir; break
8563 fi
8564 done
8565 # Screen out bogus values from the imake configuration. They are
8566 # bogus both because they are the default anyway, and because
8567 # using them would break gcc on systems where it needs fixed includes.
8568 case $ac_im_incroot in
8569 /usr/include) ac_x_includes= ;;
8570 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8571 esac
8572 case $ac_im_usrlibdir in
8573 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8574 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8575 esac
8576 fi
8577 cd ..
8578 rm -f -r conftest.dir
8579 fi
8580
8581 # Standard set of common directories for X headers.
8582 # Check X11 before X11Rn because it is often a symlink to the current release.
8583 ac_x_header_dirs='
8584 /usr/X11/include
8585 /usr/X11R7/include
8586 /usr/X11R6/include
8587 /usr/X11R5/include
8588 /usr/X11R4/include
8589
8590 /usr/include/X11
8591 /usr/include/X11R7
8592 /usr/include/X11R6
8593 /usr/include/X11R5
8594 /usr/include/X11R4
8595
8596 /usr/local/X11/include
8597 /usr/local/X11R7/include
8598 /usr/local/X11R6/include
8599 /usr/local/X11R5/include
8600 /usr/local/X11R4/include
8601
8602 /usr/local/include/X11
8603 /usr/local/include/X11R7
8604 /usr/local/include/X11R6
8605 /usr/local/include/X11R5
8606 /usr/local/include/X11R4
8607
8608 /usr/X386/include
8609 /usr/x386/include
8610 /usr/XFree86/include/X11
8611
8612 /usr/include
8613 /usr/local/include
8614 /usr/unsupported/include
8615 /usr/athena/include
8616 /usr/local/x11r5/include
8617 /usr/lpp/Xamples/include
8618
8619 /usr/openwin/include
8620 /usr/openwin/share/include'
8621
8622 if test "$ac_x_includes" = no; then
8623 # Guess where to find include files, by looking for Xlib.h.
8624 # First, try using that file with no special directory specified.
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 #include <X11/Xlib.h>
8628 _ACEOF
8629 if ac_fn_c_try_cpp "$LINENO"; then :
8630 # We can compile using X headers with no special include directory.
8631 ac_x_includes=
8632 else
8633 for ac_dir in $ac_x_header_dirs; do
8634 if test -r "$ac_dir/X11/Xlib.h"; then
8635 ac_x_includes=$ac_dir
8636 break
8637 fi
8638 done
8639 fi
8640 rm -f conftest.err conftest.i conftest.$ac_ext
8641 fi # $ac_x_includes = no
8642
8643 if test "$ac_x_libraries" = no; then
8644 # Check for the libraries.
8645 # See if we find them without any special options.
8646 # Don't add to $LIBS permanently.
8647 ac_save_LIBS=$LIBS
8648 LIBS="-lX11 $LIBS"
8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8650 /* end confdefs.h. */
8651 #include <X11/Xlib.h>
8652 int
8653 main ()
8654 {
8655 XrmInitialize ()
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 if ac_fn_c_try_link "$LINENO"; then :
8661 LIBS=$ac_save_LIBS
8662 # We can link X programs with no special library path.
8663 ac_x_libraries=
8664 else
8665 LIBS=$ac_save_LIBS
8666 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8667 do
8668 # Don't even attempt the hair of trying to link an X program!
8669 for ac_extension in a so sl dylib la dll; do
8670 if test -r "$ac_dir/libX11.$ac_extension"; then
8671 ac_x_libraries=$ac_dir
8672 break 2
8673 fi
8674 done
8675 done
8676 fi
8677 rm -f core conftest.err conftest.$ac_objext \
8678 conftest$ac_exeext conftest.$ac_ext
8679 fi # $ac_x_libraries = no
8680
8681 case $ac_x_includes,$ac_x_libraries in #(
8682 no,* | *,no | *\'*)
8683 # Didn't find X, or a directory has "'" in its name.
8684 ac_cv_have_x="have_x=no";; #(
8685 *)
8686 # Record where we found X for the cache.
8687 ac_cv_have_x="have_x=yes\
8688 ac_x_includes='$ac_x_includes'\
8689 ac_x_libraries='$ac_x_libraries'"
8690 esac
8691 fi
8692 ;; #(
8693 *) have_x=yes;;
8694 esac
8695 eval "$ac_cv_have_x"
8696 fi # $with_x != no
8697
8698 if test "$have_x" != yes; then
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8700 $as_echo "$have_x" >&6; }
8701 no_x=yes
8702 else
8703 # If each of the values was on the command line, it overrides each guess.
8704 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8705 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8706 # Update the cache value to reflect the command line values.
8707 ac_cv_have_x="have_x=yes\
8708 ac_x_includes='$x_includes'\
8709 ac_x_libraries='$x_libraries'"
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8711 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8712 fi
8713
8714 if test "$no_x" = yes; then
8715 window_system=none
8716 else
8717 window_system=x11
8718 fi
8719
8720 ## Workaround for bug in autoconf <= 2.62.
8721 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8722 ## No need to do anything special for these standard directories.
8723 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8724
8725 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8726
8727 fi
8728
8729 LD_SWITCH_X_SITE_AUX=
8730 LD_SWITCH_X_SITE_AUX_RPATH=
8731 if test "${x_libraries}" != NONE; then
8732 if test -n "${x_libraries}"; then
8733 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8734 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8735 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8736 fi
8737 x_default_search_path=""
8738 x_search_path=${x_libraries}
8739 if test -z "${x_search_path}"; then
8740 x_search_path=/usr/lib
8741 fi
8742 for x_library in `echo ${x_search_path}: | \
8743 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8744 x_search_path="\
8745 ${x_library}/X11/%L/%T/%N%C%S:\
8746 ${x_library}/X11/%l/%T/%N%C%S:\
8747 ${x_library}/X11/%T/%N%C%S:\
8748 ${x_library}/X11/%L/%T/%N%S:\
8749 ${x_library}/X11/%l/%T/%N%S:\
8750 ${x_library}/X11/%T/%N%S"
8751 if test x"${x_default_search_path}" = x; then
8752 x_default_search_path=${x_search_path}
8753 else
8754 x_default_search_path="${x_search_path}:${x_default_search_path}"
8755 fi
8756 done
8757 fi
8758
8759
8760
8761 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8762 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8763 fi
8764
8765 if test x"${x_includes}" = x; then
8766 bitmapdir=/usr/include/X11/bitmaps
8767 else
8768 # accumulate include directories that have X11 bitmap subdirectories
8769 bmd_acc="dummyval"
8770 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8771 if test -d "${bmd}/X11/bitmaps"; then
8772 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8773 fi
8774 if test -d "${bmd}/bitmaps"; then
8775 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8776 fi
8777 done
8778 if test ${bmd_acc} != "dummyval"; then
8779 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8780 fi
8781 fi
8782
8783 HAVE_NS=no
8784 NS_IMPL_COCOA=no
8785 NS_IMPL_GNUSTEP=no
8786 tmp_CPPFLAGS="$CPPFLAGS"
8787 tmp_CFLAGS="$CFLAGS"
8788 CPPFLAGS="$CPPFLAGS -x objective-c"
8789 CFLAGS="$CFLAGS -x objective-c"
8790 TEMACS_LDFLAGS2="\${LDFLAGS}"
8791 if test "${with_ns}" != no; then
8792 if test "${opsys}" = darwin; then
8793 NS_IMPL_COCOA=yes
8794 ns_appdir=`pwd`/nextstep/Emacs.app
8795 ns_appbindir=${ns_appdir}/Contents/MacOS/
8796 ns_appresdir=${ns_appdir}/Contents/Resources
8797 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8798 elif test -f $GNUSTEP_CONFIG_FILE; then
8799 NS_IMPL_GNUSTEP=yes
8800 ns_appdir=`pwd`/nextstep/Emacs.app
8801 ns_appbindir=${ns_appdir}/
8802 ns_appresdir=${ns_appdir}/Resources
8803 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8804 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8805 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8806 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8807 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8808 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8809 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8810 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8811 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8812 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8813 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8814 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8815 LIB_STANDARD=
8816 START_FILES=
8817 TEMACS_LDFLAGS2=
8818 fi
8819 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8820 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8821 HAVE_NS=yes
8822 else
8823 as_fn_error $? "\`--with-ns' was specified, but the include
8824 files are missing or cannot be compiled." "$LINENO" 5
8825 fi
8826
8827
8828 NS_HAVE_NSINTEGER=yes
8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8830 /* end confdefs.h. */
8831 #include <Foundation/NSObjCRuntime.h>
8832 int
8833 main ()
8834 {
8835 NSInteger i;
8836 ;
8837 return 0;
8838 }
8839 _ACEOF
8840 if ac_fn_c_try_compile "$LINENO"; then :
8841 ns_have_nsinteger=yes
8842 else
8843 ns_have_nsinteger=no
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 if test $ns_have_nsinteger = no; then
8847 NS_HAVE_NSINTEGER=no
8848 fi
8849 fi
8850
8851
8852 ns_frag=/dev/null
8853 NS_OBJ=
8854 NS_OBJC_OBJ=
8855 NS_SUPPORT=
8856 if test "${HAVE_NS}" = yes; then
8857 window_system=nextstep
8858 with_xft=no
8859 # set up packaging dirs
8860 exec_prefix=${ns_appbindir}
8861 libexecdir=${ns_appbindir}/libexec
8862 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8863 prefix=${ns_appresdir}
8864 fi
8865 ns_frag=$srcdir/src/ns.mk
8866 NS_OBJ="fontset.o fringe.o image.o"
8867 NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.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
8878 case "${window_system}" in
8879 x11 )
8880 HAVE_X_WINDOWS=yes
8881 HAVE_X11=yes
8882 case "${with_x_toolkit}" in
8883 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8884 motif ) USE_X_TOOLKIT=MOTIF ;;
8885 gtk ) with_gtk=yes
8886 USE_X_TOOLKIT=none ;;
8887 gtk3 ) with_gtk3=yes
8888 USE_X_TOOLKIT=none ;;
8889 no ) USE_X_TOOLKIT=none ;;
8890 * ) USE_X_TOOLKIT=maybe ;;
8891 esac
8892 ;;
8893 nextstep | none )
8894 HAVE_X_WINDOWS=no
8895 HAVE_X11=no
8896 USE_X_TOOLKIT=none
8897 ;;
8898 esac
8899
8900 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8901 # Extract the first word of "X", so it can be a program name with args.
8902 set dummy X; ac_word=$2
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8904 $as_echo_n "checking for $ac_word... " >&6; }
8905 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907 else
8908 if test -n "$HAVE_XSERVER"; then
8909 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8910 else
8911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8912 for as_dir in $PATH
8913 do
8914 IFS=$as_save_IFS
8915 test -z "$as_dir" && as_dir=.
8916 for ac_exec_ext in '' $ac_executable_extensions; do
8917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8918 ac_cv_prog_HAVE_XSERVER="true"
8919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8920 break 2
8921 fi
8922 done
8923 done
8924 IFS=$as_save_IFS
8925
8926 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8927 fi
8928 fi
8929 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8930 if test -n "$HAVE_XSERVER"; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8932 $as_echo "$HAVE_XSERVER" >&6; }
8933 else
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8935 $as_echo "no" >&6; }
8936 fi
8937
8938
8939 if test "$HAVE_XSERVER" = true ||
8940 test -n "$DISPLAY" ||
8941 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8942 as_fn_error $? "You seem to be running X, but no X development libraries
8943 were found. You should install the relevant development files for X
8944 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8945 sure you have development files for image handling, i.e.
8946 tiff, gif, jpeg, png and xpm.
8947 If you are sure you want Emacs compiled without X window support, pass
8948 --without-x
8949 to configure." "$LINENO" 5
8950 fi
8951 fi
8952
8953 ### If we're using X11, we should use the X menu package.
8954 HAVE_MENUS=no
8955 case ${HAVE_X11} in
8956 yes ) HAVE_MENUS=yes ;;
8957 esac
8958
8959 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8960 # Assume not, until told otherwise.
8961 GNU_MALLOC=yes
8962 doug_lea_malloc=yes
8963 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8964 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
8965
8966 else
8967 doug_lea_malloc=no
8968 fi
8969
8970 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8971 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
8972
8973 else
8974 doug_lea_malloc=no
8975 fi
8976
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8978 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8979 if ${emacs_cv_var___after_morecore_hook+:} false; then :
8980 $as_echo_n "(cached) " >&6
8981 else
8982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8983 /* end confdefs.h. */
8984 extern void (* __after_morecore_hook)();
8985 int
8986 main ()
8987 {
8988 __after_morecore_hook = 0
8989 ;
8990 return 0;
8991 }
8992 _ACEOF
8993 if ac_fn_c_try_link "$LINENO"; then :
8994 emacs_cv_var___after_morecore_hook=yes
8995 else
8996 emacs_cv_var___after_morecore_hook=no
8997 fi
8998 rm -f core conftest.err conftest.$ac_objext \
8999 conftest$ac_exeext conftest.$ac_ext
9000 fi
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
9002 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
9003 if test $emacs_cv_var___after_morecore_hook = no; then
9004 doug_lea_malloc=no
9005 fi
9006
9007
9008 system_malloc=no
9009 case "$opsys" in
9010 ## darwin ld insists on the use of malloc routines in the System framework.
9011 darwin|sol2-10) system_malloc=yes ;;
9012 esac
9013
9014 if test "${system_malloc}" = "yes"; then
9015
9016 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
9017
9018 GNU_MALLOC=no
9019 GNU_MALLOC_reason="
9020 (The GNU allocators don't work with this system configuration.)"
9021 GMALLOC_OBJ=
9022 VMLIMIT_OBJ=
9023 else
9024 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
9025 VMLIMIT_OBJ=vm-limit.o
9026 fi
9027
9028
9029
9030 if test "$doug_lea_malloc" = "yes" ; then
9031 if test "$GNU_MALLOC" = yes ; then
9032 GNU_MALLOC_reason="
9033 (Using Doug Lea's new malloc from the GNU C Library.)"
9034 fi
9035
9036 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
9037
9038
9039 ## Use mmap directly for allocating larger buffers.
9040 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
9041 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
9042 ## Does the AC_FUNC_MMAP test below make this check unecessary?
9043 case "$opsys" in
9044 gnu*) REL_ALLOC=no ;;
9045 esac
9046 fi
9047
9048 if test x"${REL_ALLOC}" = x; then
9049 REL_ALLOC=${GNU_MALLOC}
9050 fi
9051
9052 use_mmap_for_buffers=no
9053 case "$opsys" in
9054 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
9055 esac
9056
9057
9058
9059
9060 for ac_header in $ac_header_list
9061 do :
9062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9063 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9064 "
9065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9066 cat >>confdefs.h <<_ACEOF
9067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9068 _ACEOF
9069
9070 fi
9071
9072 done
9073
9074
9075
9076
9077
9078
9079
9080
9081 for ac_func in getpagesize
9082 do :
9083 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9084 if test "x$ac_cv_func_getpagesize" = xyes; then :
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_GETPAGESIZE 1
9087 _ACEOF
9088
9089 fi
9090 done
9091
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9093 $as_echo_n "checking for working mmap... " >&6; }
9094 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9095 $as_echo_n "(cached) " >&6
9096 else
9097 if test "$cross_compiling" = yes; then :
9098 ac_cv_func_mmap_fixed_mapped=no
9099 else
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 $ac_includes_default
9103 /* malloc might have been renamed as rpl_malloc. */
9104 #undef malloc
9105
9106 /* Thanks to Mike Haertel and Jim Avera for this test.
9107 Here is a matrix of mmap possibilities:
9108 mmap private not fixed
9109 mmap private fixed at somewhere currently unmapped
9110 mmap private fixed at somewhere already mapped
9111 mmap shared not fixed
9112 mmap shared fixed at somewhere currently unmapped
9113 mmap shared fixed at somewhere already mapped
9114 For private mappings, we should verify that changes cannot be read()
9115 back from the file, nor mmap's back from the file at a different
9116 address. (There have been systems where private was not correctly
9117 implemented like the infamous i386 svr4.0, and systems where the
9118 VM page cache was not coherent with the file system buffer cache
9119 like early versions of FreeBSD and possibly contemporary NetBSD.)
9120 For shared mappings, we should conversely verify that changes get
9121 propagated back to all the places they're supposed to be.
9122
9123 Grep wants private fixed already mapped.
9124 The main things grep needs to know about mmap are:
9125 * does it exist and is it safe to write into the mmap'd area
9126 * how to use it (BSD variants) */
9127
9128 #include <fcntl.h>
9129 #include <sys/mman.h>
9130
9131 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9132 char *malloc ();
9133 #endif
9134
9135 /* This mess was copied from the GNU getpagesize.h. */
9136 #ifndef HAVE_GETPAGESIZE
9137 # ifdef _SC_PAGESIZE
9138 # define getpagesize() sysconf(_SC_PAGESIZE)
9139 # else /* no _SC_PAGESIZE */
9140 # ifdef HAVE_SYS_PARAM_H
9141 # include <sys/param.h>
9142 # ifdef EXEC_PAGESIZE
9143 # define getpagesize() EXEC_PAGESIZE
9144 # else /* no EXEC_PAGESIZE */
9145 # ifdef NBPG
9146 # define getpagesize() NBPG * CLSIZE
9147 # ifndef CLSIZE
9148 # define CLSIZE 1
9149 # endif /* no CLSIZE */
9150 # else /* no NBPG */
9151 # ifdef NBPC
9152 # define getpagesize() NBPC
9153 # else /* no NBPC */
9154 # ifdef PAGESIZE
9155 # define getpagesize() PAGESIZE
9156 # endif /* PAGESIZE */
9157 # endif /* no NBPC */
9158 # endif /* no NBPG */
9159 # endif /* no EXEC_PAGESIZE */
9160 # else /* no HAVE_SYS_PARAM_H */
9161 # define getpagesize() 8192 /* punt totally */
9162 # endif /* no HAVE_SYS_PARAM_H */
9163 # endif /* no _SC_PAGESIZE */
9164
9165 #endif /* no HAVE_GETPAGESIZE */
9166
9167 int
9168 main ()
9169 {
9170 char *data, *data2, *data3;
9171 const char *cdata2;
9172 int i, pagesize;
9173 int fd, fd2;
9174
9175 pagesize = getpagesize ();
9176
9177 /* First, make a file with some known garbage in it. */
9178 data = (char *) malloc (pagesize);
9179 if (!data)
9180 return 1;
9181 for (i = 0; i < pagesize; ++i)
9182 *(data + i) = rand ();
9183 umask (0);
9184 fd = creat ("conftest.mmap", 0600);
9185 if (fd < 0)
9186 return 2;
9187 if (write (fd, data, pagesize) != pagesize)
9188 return 3;
9189 close (fd);
9190
9191 /* Next, check that the tail of a page is zero-filled. File must have
9192 non-zero length, otherwise we risk SIGBUS for entire page. */
9193 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9194 if (fd2 < 0)
9195 return 4;
9196 cdata2 = "";
9197 if (write (fd2, cdata2, 1) != 1)
9198 return 5;
9199 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9200 if (data2 == MAP_FAILED)
9201 return 6;
9202 for (i = 0; i < pagesize; ++i)
9203 if (*(data2 + i))
9204 return 7;
9205 close (fd2);
9206 if (munmap (data2, pagesize))
9207 return 8;
9208
9209 /* Next, try to mmap the file at a fixed address which already has
9210 something else allocated at it. If we can, also make sure that
9211 we see the same garbage. */
9212 fd = open ("conftest.mmap", O_RDWR);
9213 if (fd < 0)
9214 return 9;
9215 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9216 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9217 return 10;
9218 for (i = 0; i < pagesize; ++i)
9219 if (*(data + i) != *(data2 + i))
9220 return 11;
9221
9222 /* Finally, make sure that changes to the mapped area do not
9223 percolate back to the file as seen by read(). (This is a bug on
9224 some variants of i386 svr4.0.) */
9225 for (i = 0; i < pagesize; ++i)
9226 *(data2 + i) = *(data2 + i) + 1;
9227 data3 = (char *) malloc (pagesize);
9228 if (!data3)
9229 return 12;
9230 if (read (fd, data3, pagesize) != pagesize)
9231 return 13;
9232 for (i = 0; i < pagesize; ++i)
9233 if (*(data + i) != *(data3 + i))
9234 return 14;
9235 close (fd);
9236 return 0;
9237 }
9238 _ACEOF
9239 if ac_fn_c_try_run "$LINENO"; then :
9240 ac_cv_func_mmap_fixed_mapped=yes
9241 else
9242 ac_cv_func_mmap_fixed_mapped=no
9243 fi
9244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9245 conftest.$ac_objext conftest.beam conftest.$ac_ext
9246 fi
9247
9248 fi
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9250 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9251 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9252
9253 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9254
9255 fi
9256 rm -f conftest.mmap conftest.txt
9257
9258 if test $use_mmap_for_buffers = yes; then
9259
9260 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9261
9262 REL_ALLOC=no
9263 fi
9264
9265 LIBS="$LIBS_SYSTEM $LIBS"
9266
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9268 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9269 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9270 $as_echo_n "(cached) " >&6
9271 else
9272 ac_check_lib_save_LIBS=$LIBS
9273 LIBS="-ldnet $LIBS"
9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9275 /* end confdefs.h. */
9276
9277 /* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9280 #ifdef __cplusplus
9281 extern "C"
9282 #endif
9283 char dnet_ntoa ();
9284 int
9285 main ()
9286 {
9287 return dnet_ntoa ();
9288 ;
9289 return 0;
9290 }
9291 _ACEOF
9292 if ac_fn_c_try_link "$LINENO"; then :
9293 ac_cv_lib_dnet_dnet_ntoa=yes
9294 else
9295 ac_cv_lib_dnet_dnet_ntoa=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
9299 LIBS=$ac_check_lib_save_LIBS
9300 fi
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9302 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9303 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9304 cat >>confdefs.h <<_ACEOF
9305 #define HAVE_LIBDNET 1
9306 _ACEOF
9307
9308 LIBS="-ldnet $LIBS"
9309
9310 fi
9311
9312
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9314 $as_echo_n "checking for main in -lXbsd... " >&6; }
9315 if ${ac_cv_lib_Xbsd_main+:} false; then :
9316 $as_echo_n "(cached) " >&6
9317 else
9318 ac_check_lib_save_LIBS=$LIBS
9319 LIBS="-lXbsd $LIBS"
9320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9321 /* end confdefs.h. */
9322
9323
9324 int
9325 main ()
9326 {
9327 return main ();
9328 ;
9329 return 0;
9330 }
9331 _ACEOF
9332 if ac_fn_c_try_link "$LINENO"; then :
9333 ac_cv_lib_Xbsd_main=yes
9334 else
9335 ac_cv_lib_Xbsd_main=no
9336 fi
9337 rm -f core conftest.err conftest.$ac_objext \
9338 conftest$ac_exeext conftest.$ac_ext
9339 LIBS=$ac_check_lib_save_LIBS
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9342 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9343 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9344 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9345 fi
9346
9347
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9349 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9350 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9351 $as_echo_n "(cached) " >&6
9352 else
9353 ac_check_lib_save_LIBS=$LIBS
9354 LIBS="-lpthreads $LIBS"
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357
9358 /* Override any GCC internal prototype to avoid an error.
9359 Use char because int might match the return type of a GCC
9360 builtin and then its argument prototype would still apply. */
9361 #ifdef __cplusplus
9362 extern "C"
9363 #endif
9364 char cma_open ();
9365 int
9366 main ()
9367 {
9368 return cma_open ();
9369 ;
9370 return 0;
9371 }
9372 _ACEOF
9373 if ac_fn_c_try_link "$LINENO"; then :
9374 ac_cv_lib_pthreads_cma_open=yes
9375 else
9376 ac_cv_lib_pthreads_cma_open=no
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext \
9379 conftest$ac_exeext conftest.$ac_ext
9380 LIBS=$ac_check_lib_save_LIBS
9381 fi
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9383 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9384 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9385 cat >>confdefs.h <<_ACEOF
9386 #define HAVE_LIBPTHREADS 1
9387 _ACEOF
9388
9389 LIBS="-lpthreads $LIBS"
9390
9391 fi
9392
9393
9394 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9395 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9396 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9397 ## added to LIBS in configure would never contain the pthreads part,
9398 ## but the value used in Makefiles might. FIXME?
9399 ##
9400 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9401 ## be harmless on older versions of X where it happens to exist.
9402 test "$opsys" = "aix4-2" && \
9403 test $ac_cv_lib_pthreads_cma_open = yes && \
9404 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9405
9406
9407 case ${host_os} in
9408 aix*)
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9410 $as_echo_n "checking for -bbigtoc option... " >&6; }
9411 if ${gdb_cv_bigtoc+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414
9415 case $GCC in
9416 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9417 *) gdb_cv_bigtoc=-bbigtoc ;;
9418 esac
9419
9420 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423
9424 int
9425 main ()
9426 {
9427 int i;
9428 ;
9429 return 0;
9430 }
9431 _ACEOF
9432 if ac_fn_c_try_link "$LINENO"; then :
9433
9434 else
9435 gdb_cv_bigtoc=
9436 fi
9437 rm -f core conftest.err conftest.$ac_objext \
9438 conftest$ac_exeext conftest.$ac_ext
9439
9440 fi
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9442 $as_echo "$gdb_cv_bigtoc" >&6; }
9443 ;;
9444 esac
9445
9446 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9447 # used for the tests that follow. We set them back to REAL_CFLAGS and
9448 # REAL_CPPFLAGS later on.
9449
9450 REAL_CFLAGS="$CFLAGS"
9451 REAL_CPPFLAGS="$CPPFLAGS"
9452
9453 if test "${HAVE_X11}" = "yes"; then
9454 DEFS="$C_SWITCH_X_SITE $DEFS"
9455 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9456 LIBS="-lX11 $LIBS"
9457 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9458 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9459
9460 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9461 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9462 # but it's more convenient here to set LD_RUN_PATH
9463 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9464 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9465 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9466 export LD_RUN_PATH
9467 fi
9468
9469 if test "${opsys}" = "gnu-linux"; then
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9471 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h. */
9474
9475 int
9476 main ()
9477 {
9478 XOpenDisplay ("foo");
9479 ;
9480 return 0;
9481 }
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"; then :
9484 xlinux_first_failure=no
9485 else
9486 xlinux_first_failure=yes
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
9490 if test "${xlinux_first_failure}" = "yes"; then
9491 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9492 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9493 OLD_CPPFLAGS="$CPPFLAGS"
9494 OLD_LIBS="$LIBS"
9495 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9496 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9497 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9498 LIBS="$LIBS -b i486-linuxaout"
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501
9502 int
9503 main ()
9504 {
9505 XOpenDisplay ("foo");
9506 ;
9507 return 0;
9508 }
9509 _ACEOF
9510 if ac_fn_c_try_link "$LINENO"; then :
9511 xlinux_second_failure=no
9512 else
9513 xlinux_second_failure=yes
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext \
9516 conftest$ac_exeext conftest.$ac_ext
9517 if test "${xlinux_second_failure}" = "yes"; then
9518 # If we get the same failure with -b, there is no use adding -b.
9519 # So take it out. This plays safe.
9520 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9521 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9522 CPPFLAGS="$OLD_CPPFLAGS"
9523 LIBS="$OLD_LIBS"
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9528 $as_echo "yes" >&6; }
9529 fi
9530 else
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9533 fi
9534 fi
9535
9536 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9537 # header files included from there.
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9539 $as_echo_n "checking for Xkb... " >&6; }
9540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 #include <X11/Xlib.h>
9543 #include <X11/XKBlib.h>
9544 int
9545 main ()
9546 {
9547 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9548 ;
9549 return 0;
9550 }
9551 _ACEOF
9552 if ac_fn_c_try_link "$LINENO"; then :
9553 emacs_xkb=yes
9554 else
9555 emacs_xkb=no
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext \
9558 conftest$ac_exeext conftest.$ac_ext
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9560 $as_echo "$emacs_xkb" >&6; }
9561 if test $emacs_xkb = yes; then
9562
9563 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9564
9565 fi
9566
9567 for ac_func in XrmSetDatabase XScreenResourceString \
9568 XScreenNumberOfScreen XSetWMProtocols
9569 do :
9570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9571 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9572 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9573 cat >>confdefs.h <<_ACEOF
9574 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9575 _ACEOF
9576
9577 fi
9578 done
9579
9580 fi
9581
9582 if test "${window_system}" = "x11"; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9584 $as_echo_n "checking X11 version 6... " >&6; }
9585 if ${emacs_cv_x11_version_6+:} false; then :
9586 $as_echo_n "(cached) " >&6
9587 else
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9590 #include <X11/Xlib.h>
9591 int
9592 main ()
9593 {
9594 #if XlibSpecificationRelease < 6
9595 fail;
9596 #endif
9597
9598 ;
9599 return 0;
9600 }
9601 _ACEOF
9602 if ac_fn_c_try_link "$LINENO"; then :
9603 emacs_cv_x11_version_6=yes
9604 else
9605 emacs_cv_x11_version_6=no
9606 fi
9607 rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
9609 fi
9610
9611 if test $emacs_cv_x11_version_6 = yes; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9613 $as_echo "6 or newer" >&6; }
9614
9615 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9616
9617
9618 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9619
9620 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9621 ## XIM support.
9622 case "$opsys" in
9623 sol2-*) : ;;
9624 *)
9625 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9626
9627 ;;
9628 esac
9629 else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9631 $as_echo "before 6" >&6; }
9632 fi
9633 fi
9634
9635
9636 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9637 HAVE_RSVG=no
9638 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9639 if test "${with_rsvg}" != "no"; then
9640 RSVG_REQUIRED=2.11.0
9641 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9642
9643
9644 succeeded=no
9645
9646 # Extract the first word of "pkg-config", so it can be a program name with args.
9647 set dummy pkg-config; ac_word=$2
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9649 $as_echo_n "checking for $ac_word... " >&6; }
9650 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652 else
9653 case $PKG_CONFIG in
9654 [\\/]* | ?:[\\/]*)
9655 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9656 ;;
9657 *)
9658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9659 for as_dir in $PATH
9660 do
9661 IFS=$as_save_IFS
9662 test -z "$as_dir" && as_dir=.
9663 for ac_exec_ext in '' $ac_executable_extensions; do
9664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9665 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9667 break 2
9668 fi
9669 done
9670 done
9671 IFS=$as_save_IFS
9672
9673 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9674 ;;
9675 esac
9676 fi
9677 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9678 if test -n "$PKG_CONFIG"; then
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9680 $as_echo "$PKG_CONFIG" >&6; }
9681 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9684 fi
9685
9686
9687
9688 if test "$PKG_CONFIG" = "no" ; then
9689 :
9690 else
9691 PKG_CONFIG_MIN_VERSION=0.9.0
9692 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9694 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9695
9696 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9698 $as_echo "yes" >&6; }
9699 succeeded=yes
9700
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9702 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9703 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9705 $as_echo "$RSVG_CFLAGS" >&6; }
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9708 $as_echo_n "checking RSVG_LIBS... " >&6; }
9709 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9711 $as_echo "$RSVG_LIBS" >&6; }
9712 else
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714 $as_echo "no" >&6; }
9715 RSVG_CFLAGS=""
9716 RSVG_LIBS=""
9717 ## If we have a custom action on failure, don't print errors, but
9718 ## do set a variable so people can do so.
9719 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9720
9721 fi
9722
9723
9724
9725 else
9726 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9727 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9728 fi
9729 fi
9730
9731 if test $succeeded = yes; then
9732 HAVE_RSVG=yes
9733 else
9734 :
9735 fi
9736
9737
9738
9739
9740 if test $HAVE_RSVG = yes; then
9741
9742 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9743
9744 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9745 LIBS="$RSVG_LIBS $LIBS"
9746 fi
9747 fi
9748 fi
9749
9750 HAVE_IMAGEMAGICK=no
9751 if test "${HAVE_X11}" = "yes"; then
9752 if test "${with_imagemagick}" != "no"; then
9753 IMAGEMAGICK_MODULE="Wand"
9754
9755 succeeded=no
9756
9757 # Extract the first word of "pkg-config", so it can be a program name with args.
9758 set dummy pkg-config; ac_word=$2
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9760 $as_echo_n "checking for $ac_word... " >&6; }
9761 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 case $PKG_CONFIG in
9765 [\\/]* | ?:[\\/]*)
9766 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9767 ;;
9768 *)
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in $PATH
9771 do
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9776 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9779 fi
9780 done
9781 done
9782 IFS=$as_save_IFS
9783
9784 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9785 ;;
9786 esac
9787 fi
9788 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9789 if test -n "$PKG_CONFIG"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9791 $as_echo "$PKG_CONFIG" >&6; }
9792 else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794 $as_echo "no" >&6; }
9795 fi
9796
9797
9798
9799 if test "$PKG_CONFIG" = "no" ; then
9800 :
9801 else
9802 PKG_CONFIG_MIN_VERSION=0.9.0
9803 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9805 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9806
9807 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9809 $as_echo "yes" >&6; }
9810 succeeded=yes
9811
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9813 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9814 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9816 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9817
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9819 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9820 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9822 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9823 else
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9826 IMAGEMAGICK_CFLAGS=""
9827 IMAGEMAGICK_LIBS=""
9828 ## If we have a custom action on failure, don't print errors, but
9829 ## do set a variable so people can do so.
9830 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9831
9832 fi
9833
9834
9835
9836 else
9837 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9838 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9839 fi
9840 fi
9841
9842 if test $succeeded = yes; then
9843 HAVE_IMAGEMAGICK=yes
9844 else
9845 :
9846 fi
9847
9848
9849
9850
9851 if test $HAVE_IMAGEMAGICK = yes; then
9852
9853 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9854
9855 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9856 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9857 for ac_func in MagickExportImagePixels
9858 do :
9859 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9860 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
9861 cat >>confdefs.h <<_ACEOF
9862 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9863 _ACEOF
9864
9865 fi
9866 done
9867
9868 fi
9869 fi
9870 fi
9871
9872
9873 HAVE_GTK=no
9874 if test "${with_gtk3}" = "yes"; then
9875 GLIB_REQUIRED=2.6
9876 GTK_REQUIRED=2.90
9877 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9878
9879
9880 succeeded=no
9881
9882 # Extract the first word of "pkg-config", so it can be a program name with args.
9883 set dummy pkg-config; ac_word=$2
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885 $as_echo_n "checking for $ac_word... " >&6; }
9886 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9887 $as_echo_n "(cached) " >&6
9888 else
9889 case $PKG_CONFIG in
9890 [\\/]* | ?:[\\/]*)
9891 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9892 ;;
9893 *)
9894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895 for as_dir in $PATH
9896 do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9904 fi
9905 done
9906 done
9907 IFS=$as_save_IFS
9908
9909 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9910 ;;
9911 esac
9912 fi
9913 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9914 if test -n "$PKG_CONFIG"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9916 $as_echo "$PKG_CONFIG" >&6; }
9917 else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919 $as_echo "no" >&6; }
9920 fi
9921
9922
9923
9924 if test "$PKG_CONFIG" = "no" ; then
9925 pkg_check_gtk=no
9926 else
9927 PKG_CONFIG_MIN_VERSION=0.9.0
9928 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9930 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9931
9932 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9934 $as_echo "yes" >&6; }
9935 succeeded=yes
9936
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9938 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9939 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9941 $as_echo "$GTK_CFLAGS" >&6; }
9942
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9944 $as_echo_n "checking GTK_LIBS... " >&6; }
9945 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9947 $as_echo "$GTK_LIBS" >&6; }
9948 else
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9951 GTK_CFLAGS=""
9952 GTK_LIBS=""
9953 ## If we have a custom action on failure, don't print errors, but
9954 ## do set a variable so people can do so.
9955 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9956
9957 fi
9958
9959
9960
9961 else
9962 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9963 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9964 fi
9965 fi
9966
9967 if test $succeeded = yes; then
9968 pkg_check_gtk=yes
9969 else
9970 pkg_check_gtk=no
9971 fi
9972
9973 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9974 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9975 fi
9976 fi
9977
9978 if test "$pkg_check_gtk" != "yes"; then
9979 HAVE_GTK=no
9980 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9981 GLIB_REQUIRED=2.6
9982 GTK_REQUIRED=2.6
9983 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9984
9985
9986 succeeded=no
9987
9988 # Extract the first word of "pkg-config", so it can be a program name with args.
9989 set dummy pkg-config; ac_word=$2
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9991 $as_echo_n "checking for $ac_word... " >&6; }
9992 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 case $PKG_CONFIG in
9996 [\\/]* | ?:[\\/]*)
9997 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9998 ;;
9999 *)
10000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10001 for as_dir in $PATH
10002 do
10003 IFS=$as_save_IFS
10004 test -z "$as_dir" && as_dir=.
10005 for ac_exec_ext in '' $ac_executable_extensions; do
10006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10007 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10009 break 2
10010 fi
10011 done
10012 done
10013 IFS=$as_save_IFS
10014
10015 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10016 ;;
10017 esac
10018 fi
10019 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10020 if test -n "$PKG_CONFIG"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10022 $as_echo "$PKG_CONFIG" >&6; }
10023 else
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10026 fi
10027
10028
10029
10030 if test "$PKG_CONFIG" = "no" ; then
10031 pkg_check_gtk=no
10032 else
10033 PKG_CONFIG_MIN_VERSION=0.9.0
10034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
10036 $as_echo_n "checking for $GTK_MODULES... " >&6; }
10037
10038 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10040 $as_echo "yes" >&6; }
10041 succeeded=yes
10042
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
10044 $as_echo_n "checking GTK_CFLAGS... " >&6; }
10045 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
10047 $as_echo "$GTK_CFLAGS" >&6; }
10048
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
10050 $as_echo_n "checking GTK_LIBS... " >&6; }
10051 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
10053 $as_echo "$GTK_LIBS" >&6; }
10054 else
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10056 $as_echo "no" >&6; }
10057 GTK_CFLAGS=""
10058 GTK_LIBS=""
10059 ## If we have a custom action on failure, don't print errors, but
10060 ## do set a variable so people can do so.
10061 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10062
10063 fi
10064
10065
10066
10067 else
10068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10070 fi
10071 fi
10072
10073 if test $succeeded = yes; then
10074 pkg_check_gtk=yes
10075 else
10076 pkg_check_gtk=no
10077 fi
10078
10079 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10080 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10081 fi
10082 fi
10083 fi
10084
10085 GTK_OBJ=
10086 if test x"$pkg_check_gtk" = xyes; then
10087
10088
10089
10090 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10091 CFLAGS="$CFLAGS $GTK_CFLAGS"
10092 LIBS="$GTK_LIBS $LIBS"
10093 GTK_COMPILES=no
10094 for ac_func in gtk_main
10095 do :
10096 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10097 if test "x$ac_cv_func_gtk_main" = xyes; then :
10098 cat >>confdefs.h <<_ACEOF
10099 #define HAVE_GTK_MAIN 1
10100 _ACEOF
10101 GTK_COMPILES=yes
10102 fi
10103 done
10104
10105 if test "${GTK_COMPILES}" != "yes"; then
10106 if test "$USE_X_TOOLKIT" != "maybe"; then
10107 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10108 fi
10109 else
10110 HAVE_GTK=yes
10111
10112 $as_echo "#define USE_GTK 1" >>confdefs.h
10113
10114 GTK_OBJ=gtkutil.o
10115 USE_X_TOOLKIT=none
10116 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10117 :
10118 else
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10120 closing open displays. This is no problem if you just use
10121 one display, but if you use more than one and close one of them
10122 Emacs may crash." >&5
10123 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10124 closing open displays. This is no problem if you just use
10125 one display, but if you use more than one and close one of them
10126 Emacs may crash." >&2;}
10127 sleep 3
10128 fi
10129 fi
10130
10131 fi
10132
10133
10134
10135 if test "${HAVE_GTK}" = "yes"; then
10136
10137 if test "$with_toolkit_scroll_bars" != no; then
10138 with_toolkit_scroll_bars=yes
10139 fi
10140
10141 HAVE_GTK_FILE_SELECTION=no
10142 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10143 #include <gtk/gtk.h>
10144 "
10145 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10146 HAVE_GTK_FILE_SELECTION=yes
10147 else
10148 HAVE_GTK_FILE_SELECTION=no
10149 fi
10150
10151 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10152 for ac_func in gtk_file_selection_new
10153 do :
10154 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10155 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10156 cat >>confdefs.h <<_ACEOF
10157 #define HAVE_GTK_FILE_SELECTION_NEW 1
10158 _ACEOF
10159
10160 fi
10161 done
10162
10163 fi
10164
10165 HAVE_GTK_AND_PTHREAD=no
10166 for ac_header in pthread.h
10167 do :
10168 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10169 if test "x$ac_cv_header_pthread_h" = xyes; then :
10170 cat >>confdefs.h <<_ACEOF
10171 #define HAVE_PTHREAD_H 1
10172 _ACEOF
10173
10174 fi
10175
10176 done
10177
10178 if test "$ac_cv_header_pthread_h"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10180 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10181 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10182 $as_echo_n "(cached) " >&6
10183 else
10184 ac_check_lib_save_LIBS=$LIBS
10185 LIBS="-lpthread $LIBS"
10186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10187 /* end confdefs.h. */
10188
10189 /* Override any GCC internal prototype to avoid an error.
10190 Use char because int might match the return type of a GCC
10191 builtin and then its argument prototype would still apply. */
10192 #ifdef __cplusplus
10193 extern "C"
10194 #endif
10195 char pthread_self ();
10196 int
10197 main ()
10198 {
10199 return pthread_self ();
10200 ;
10201 return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_link "$LINENO"; then :
10205 ac_cv_lib_pthread_pthread_self=yes
10206 else
10207 ac_cv_lib_pthread_pthread_self=no
10208 fi
10209 rm -f core conftest.err conftest.$ac_objext \
10210 conftest$ac_exeext conftest.$ac_ext
10211 LIBS=$ac_check_lib_save_LIBS
10212 fi
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10214 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10215 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10216 HAVE_GTK_AND_PTHREAD=yes
10217 fi
10218
10219 fi
10220 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10221 case "${canonical}" in
10222 *-hpux*) ;;
10223 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10224 esac
10225
10226 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10227
10228 fi
10229
10230 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10231 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10232 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10233 gtk_orientable_set_orientation
10234 do :
10235 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10236 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10237 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10238 cat >>confdefs.h <<_ACEOF
10239 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10240 _ACEOF
10241
10242 fi
10243 done
10244
10245
10246 fi
10247
10248 HAVE_DBUS=no
10249 DBUS_OBJ=
10250 if test "${with_dbus}" = "yes"; then
10251
10252 succeeded=no
10253
10254 # Extract the first word of "pkg-config", so it can be a program name with args.
10255 set dummy pkg-config; ac_word=$2
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10257 $as_echo_n "checking for $ac_word... " >&6; }
10258 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10259 $as_echo_n "(cached) " >&6
10260 else
10261 case $PKG_CONFIG in
10262 [\\/]* | ?:[\\/]*)
10263 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10264 ;;
10265 *)
10266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267 for as_dir in $PATH
10268 do
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10273 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10275 break 2
10276 fi
10277 done
10278 done
10279 IFS=$as_save_IFS
10280
10281 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10282 ;;
10283 esac
10284 fi
10285 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10286 if test -n "$PKG_CONFIG"; then
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10288 $as_echo "$PKG_CONFIG" >&6; }
10289 else
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291 $as_echo "no" >&6; }
10292 fi
10293
10294
10295
10296 if test "$PKG_CONFIG" = "no" ; then
10297 HAVE_DBUS=no
10298 else
10299 PKG_CONFIG_MIN_VERSION=0.9.0
10300 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10302 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10303
10304 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10306 $as_echo "yes" >&6; }
10307 succeeded=yes
10308
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10310 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10311 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10313 $as_echo "$DBUS_CFLAGS" >&6; }
10314
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10316 $as_echo_n "checking DBUS_LIBS... " >&6; }
10317 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10319 $as_echo "$DBUS_LIBS" >&6; }
10320 else
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322 $as_echo "no" >&6; }
10323 DBUS_CFLAGS=""
10324 DBUS_LIBS=""
10325 ## If we have a custom action on failure, don't print errors, but
10326 ## do set a variable so people can do so.
10327 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10328
10329 fi
10330
10331
10332
10333 else
10334 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10335 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10336 fi
10337 fi
10338
10339 if test $succeeded = yes; then
10340 HAVE_DBUS=yes
10341 else
10342 HAVE_DBUS=no
10343 fi
10344
10345 if test "$HAVE_DBUS" = yes; then
10346 LIBS="$LIBS $DBUS_LIBS"
10347
10348 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10349
10350 for ac_func in dbus_watch_get_unix_fd
10351 do :
10352 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10353 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10354 cat >>confdefs.h <<_ACEOF
10355 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10356 _ACEOF
10357
10358 fi
10359 done
10360
10361 DBUS_OBJ=dbusbind.o
10362 fi
10363 fi
10364
10365
10366 HAVE_GCONF=no
10367 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10368
10369 succeeded=no
10370
10371 # Extract the first word of "pkg-config", so it can be a program name with args.
10372 set dummy pkg-config; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10376 $as_echo_n "(cached) " >&6
10377 else
10378 case $PKG_CONFIG in
10379 [\\/]* | ?:[\\/]*)
10380 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10381 ;;
10382 *)
10383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10384 for as_dir in $PATH
10385 do
10386 IFS=$as_save_IFS
10387 test -z "$as_dir" && as_dir=.
10388 for ac_exec_ext in '' $ac_executable_extensions; do
10389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10390 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10392 break 2
10393 fi
10394 done
10395 done
10396 IFS=$as_save_IFS
10397
10398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10399 ;;
10400 esac
10401 fi
10402 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10403 if test -n "$PKG_CONFIG"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10405 $as_echo "$PKG_CONFIG" >&6; }
10406 else
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10409 fi
10410
10411
10412
10413 if test "$PKG_CONFIG" = "no" ; then
10414 HAVE_GCONF=no
10415 else
10416 PKG_CONFIG_MIN_VERSION=0.9.0
10417 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10419 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10420
10421 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10423 $as_echo "yes" >&6; }
10424 succeeded=yes
10425
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10427 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10428 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10430 $as_echo "$GCONF_CFLAGS" >&6; }
10431
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10433 $as_echo_n "checking GCONF_LIBS... " >&6; }
10434 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10436 $as_echo "$GCONF_LIBS" >&6; }
10437 else
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439 $as_echo "no" >&6; }
10440 GCONF_CFLAGS=""
10441 GCONF_LIBS=""
10442 ## If we have a custom action on failure, don't print errors, but
10443 ## do set a variable so people can do so.
10444 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10445
10446 fi
10447
10448
10449
10450 else
10451 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10452 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10453 fi
10454 fi
10455
10456 if test $succeeded = yes; then
10457 HAVE_GCONF=yes
10458 else
10459 HAVE_GCONF=no
10460 fi
10461
10462 if test "$HAVE_GCONF" = yes; then
10463
10464 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10465
10466 for ac_func in g_type_init
10467 do :
10468 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10469 if test "x$ac_cv_func_g_type_init" = xyes; then :
10470 cat >>confdefs.h <<_ACEOF
10471 #define HAVE_G_TYPE_INIT 1
10472 _ACEOF
10473
10474 fi
10475 done
10476
10477 fi
10478 fi
10479
10480 HAVE_LIBSELINUX=no
10481 LIBSELINUX_LIBS=
10482 if test "${with_selinux}" = "yes"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10484 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10485 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10486 $as_echo_n "(cached) " >&6
10487 else
10488 ac_check_lib_save_LIBS=$LIBS
10489 LIBS="-lselinux $LIBS"
10490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10491 /* end confdefs.h. */
10492
10493 /* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10496 #ifdef __cplusplus
10497 extern "C"
10498 #endif
10499 char lgetfilecon ();
10500 int
10501 main ()
10502 {
10503 return lgetfilecon ();
10504 ;
10505 return 0;
10506 }
10507 _ACEOF
10508 if ac_fn_c_try_link "$LINENO"; then :
10509 ac_cv_lib_selinux_lgetfilecon=yes
10510 else
10511 ac_cv_lib_selinux_lgetfilecon=no
10512 fi
10513 rm -f core conftest.err conftest.$ac_objext \
10514 conftest$ac_exeext conftest.$ac_ext
10515 LIBS=$ac_check_lib_save_LIBS
10516 fi
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10518 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10519 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10520 HAVE_LIBSELINUX=yes
10521 else
10522 HAVE_LIBSELINUX=no
10523 fi
10524
10525 if test "$HAVE_LIBSELINUX" = yes; then
10526
10527 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10528
10529 LIBSELINUX_LIBS=-lselinux
10530 fi
10531 fi
10532
10533
10534 HAVE_GNUTLS=no
10535 if test "${with_gnutls}" = "yes" ; then
10536
10537 succeeded=no
10538
10539 # Extract the first word of "pkg-config", so it can be a program name with args.
10540 set dummy pkg-config; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 case $PKG_CONFIG in
10547 [\\/]* | ?:[\\/]*)
10548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10549 ;;
10550 *)
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10553 do
10554 IFS=$as_save_IFS
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560 break 2
10561 fi
10562 done
10563 done
10564 IFS=$as_save_IFS
10565
10566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10567 ;;
10568 esac
10569 fi
10570 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10571 if test -n "$PKG_CONFIG"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10573 $as_echo "$PKG_CONFIG" >&6; }
10574 else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576 $as_echo "no" >&6; }
10577 fi
10578
10579
10580
10581 if test "$PKG_CONFIG" = "no" ; then
10582 HAVE_GNUTLS=no
10583 else
10584 PKG_CONFIG_MIN_VERSION=0.9.0
10585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10587 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10588
10589 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10591 $as_echo "yes" >&6; }
10592 succeeded=yes
10593
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10595 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10596 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10598 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10599
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10601 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10602 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10604 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10605 else
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10607 $as_echo "no" >&6; }
10608 LIBGNUTLS_CFLAGS=""
10609 LIBGNUTLS_LIBS=""
10610 ## If we have a custom action on failure, don't print errors, but
10611 ## do set a variable so people can do so.
10612 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10613
10614 fi
10615
10616
10617
10618 else
10619 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10620 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10621 fi
10622 fi
10623
10624 if test $succeeded = yes; then
10625 HAVE_GNUTLS=yes
10626 else
10627 HAVE_GNUTLS=no
10628 fi
10629
10630 if test "${HAVE_GNUTLS}" = "yes"; then
10631
10632 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10633
10634 fi
10635 fi
10636
10637
10638
10639 HAVE_XAW3D=no
10640 LUCID_LIBW=
10641 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10642 if test "$with_xaw3d" != no; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10644 $as_echo_n "checking for xaw3d... " >&6; }
10645 if ${emacs_cv_xaw3d+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10650
10651 #include <X11/Intrinsic.h>
10652 #include <X11/Xaw3d/Simple.h>
10653 int
10654 main ()
10655 {
10656
10657 ;
10658 return 0;
10659 }
10660 _ACEOF
10661 if ac_fn_c_try_link "$LINENO"; then :
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10663 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10664 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 ac_check_lib_save_LIBS=$LIBS
10668 LIBS="-lXaw3d $LIBS"
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671
10672 /* Override any GCC internal prototype to avoid an error.
10673 Use char because int might match the return type of a GCC
10674 builtin and then its argument prototype would still apply. */
10675 #ifdef __cplusplus
10676 extern "C"
10677 #endif
10678 char XawScrollbarSetThumb ();
10679 int
10680 main ()
10681 {
10682 return XawScrollbarSetThumb ();
10683 ;
10684 return 0;
10685 }
10686 _ACEOF
10687 if ac_fn_c_try_link "$LINENO"; then :
10688 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10689 else
10690 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10691 fi
10692 rm -f core conftest.err conftest.$ac_objext \
10693 conftest$ac_exeext conftest.$ac_ext
10694 LIBS=$ac_check_lib_save_LIBS
10695 fi
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10697 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10698 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
10699 emacs_cv_xaw3d=yes
10700 else
10701 emacs_cv_xaw3d=no
10702 fi
10703
10704 else
10705 emacs_cv_xaw3d=no
10706 fi
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 fi
10710
10711 else
10712 emacs_cv_xaw3d=no
10713 fi
10714 if test $emacs_cv_xaw3d = yes; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10716 $as_echo "yes; using Lucid toolkit" >&6; }
10717 USE_X_TOOLKIT=LUCID
10718 HAVE_XAW3D=yes
10719 LUCID_LIBW=-lXaw3d
10720
10721 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10722
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10727 $as_echo_n "checking for libXaw... " >&6; }
10728 if ${emacs_cv_xaw+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733
10734 #include <X11/Intrinsic.h>
10735 #include <X11/Xaw/Simple.h>
10736 int
10737 main ()
10738 {
10739
10740 ;
10741 return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"; then :
10745 emacs_cv_xaw=yes
10746 else
10747 emacs_cv_xaw=no
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext \
10750 conftest$ac_exeext conftest.$ac_ext
10751 fi
10752
10753 if test $emacs_cv_xaw = yes; then
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10755 $as_echo "yes; using Lucid toolkit" >&6; }
10756 USE_X_TOOLKIT=LUCID
10757 LUCID_LIBW=-lXaw
10758 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10759 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10760 else
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10762 $as_echo "no; do not use toolkit by default" >&6; }
10763 USE_X_TOOLKIT=none
10764 fi
10765 fi
10766 fi
10767
10768 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10769
10770 LIBXTR6=
10771 if test "${USE_X_TOOLKIT}" != "none"; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10773 $as_echo_n "checking X11 toolkit version... " >&6; }
10774 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10775 $as_echo_n "(cached) " >&6
10776 else
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779 #include <X11/Intrinsic.h>
10780 int
10781 main ()
10782 {
10783 #if XtSpecificationRelease < 6
10784 fail;
10785 #endif
10786
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 if ac_fn_c_try_link "$LINENO"; then :
10792 emacs_cv_x11_toolkit_version_6=yes
10793 else
10794 emacs_cv_x11_toolkit_version_6=no
10795 fi
10796 rm -f core conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10798 fi
10799
10800 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10801 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10803 $as_echo "6 or newer" >&6; }
10804
10805 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10806
10807 LIBXTR6="-lSM -lICE"
10808 case "$opsys" in
10809 ## Use libw.a along with X11R6 Xt.
10810 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10811 esac
10812 else
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10814 $as_echo "before 6" >&6; }
10815 fi
10816
10817 OLDLIBS="$LIBS"
10818 if test x$HAVE_X11XTR6 = xyes; then
10819 LIBS="-lXt -lSM -lICE $LIBS"
10820 else
10821 LIBS="-lXt $LIBS"
10822 fi
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10824 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10825 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
10826 $as_echo_n "(cached) " >&6
10827 else
10828 ac_check_lib_save_LIBS=$LIBS
10829 LIBS="-lXmu $LIBS"
10830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h. */
10832
10833 /* Override any GCC internal prototype to avoid an error.
10834 Use char because int might match the return type of a GCC
10835 builtin and then its argument prototype would still apply. */
10836 #ifdef __cplusplus
10837 extern "C"
10838 #endif
10839 char XmuConvertStandardSelection ();
10840 int
10841 main ()
10842 {
10843 return XmuConvertStandardSelection ();
10844 ;
10845 return 0;
10846 }
10847 _ACEOF
10848 if ac_fn_c_try_link "$LINENO"; then :
10849 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10850 else
10851 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext \
10854 conftest$ac_exeext conftest.$ac_ext
10855 LIBS=$ac_check_lib_save_LIBS
10856 fi
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10858 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10859 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
10860 cat >>confdefs.h <<_ACEOF
10861 #define HAVE_LIBXMU 1
10862 _ACEOF
10863
10864 LIBS="-lXmu $LIBS"
10865
10866 fi
10867
10868 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10869 fi
10870
10871
10872 LIBXMU=-lXmu
10873 case $opsys in
10874 ## These systems don't supply Xmu.
10875 hpux* | aix4-2 )
10876 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10877 ;;
10878 esac
10879
10880
10881 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10882 if test "${HAVE_X11}" = "yes"; then
10883 if test "${USE_X_TOOLKIT}" != "none"; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10885 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10886 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 ac_check_lib_save_LIBS=$LIBS
10890 LIBS="-lXext $LIBS"
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893
10894 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */
10897 #ifdef __cplusplus
10898 extern "C"
10899 #endif
10900 char XShapeQueryExtension ();
10901 int
10902 main ()
10903 {
10904 return XShapeQueryExtension ();
10905 ;
10906 return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_link "$LINENO"; then :
10910 ac_cv_lib_Xext_XShapeQueryExtension=yes
10911 else
10912 ac_cv_lib_Xext_XShapeQueryExtension=no
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext \
10915 conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10917 fi
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10919 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10920 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10921 cat >>confdefs.h <<_ACEOF
10922 #define HAVE_LIBXEXT 1
10923 _ACEOF
10924
10925 LIBS="-lXext $LIBS"
10926
10927 fi
10928
10929 fi
10930 fi
10931
10932 LIBXP=
10933 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10935 $as_echo_n "checking for Motif version 2.1... " >&6; }
10936 if ${emacs_cv_motif_version_2_1+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938 else
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941 #include <Xm/Xm.h>
10942 int
10943 main ()
10944 {
10945 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10946 int x = 5;
10947 #else
10948 Motif version prior to 2.1.
10949 #endif
10950 ;
10951 return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_compile "$LINENO"; then :
10955 emacs_cv_motif_version_2_1=yes
10956 else
10957 emacs_cv_motif_version_2_1=no
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10960 fi
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10962 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10963 if test $emacs_cv_motif_version_2_1 = yes; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10965 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10966 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
10967 $as_echo_n "(cached) " >&6
10968 else
10969 ac_check_lib_save_LIBS=$LIBS
10970 LIBS="-lXp $LIBS"
10971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10972 /* end confdefs.h. */
10973
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char XpCreateContext ();
10981 int
10982 main ()
10983 {
10984 return XpCreateContext ();
10985 ;
10986 return 0;
10987 }
10988 _ACEOF
10989 if ac_fn_c_try_link "$LINENO"; then :
10990 ac_cv_lib_Xp_XpCreateContext=yes
10991 else
10992 ac_cv_lib_Xp_XpCreateContext=no
10993 fi
10994 rm -f core conftest.err conftest.$ac_objext \
10995 conftest$ac_exeext conftest.$ac_ext
10996 LIBS=$ac_check_lib_save_LIBS
10997 fi
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10999 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
11000 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
11001 LIBXP=-lXp
11002 fi
11003
11004 else
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
11006 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
11007 if ${emacs_cv_lesstif+:} false; then :
11008 $as_echo_n "(cached) " >&6
11009 else
11010 # We put this in CFLAGS temporarily to precede other -I options
11011 # that might be in CFLAGS temporarily.
11012 # We put this in CPPFLAGS where it precedes the other -I options.
11013 OLD_CPPFLAGS=$CPPFLAGS
11014 OLD_CFLAGS=$CFLAGS
11015 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11016 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11018 /* end confdefs.h. */
11019 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11020 int
11021 main ()
11022 {
11023 int x = 5;
11024 ;
11025 return 0;
11026 }
11027 _ACEOF
11028 if ac_fn_c_try_compile "$LINENO"; then :
11029 emacs_cv_lesstif=yes
11030 else
11031 emacs_cv_lesstif=no
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034 fi
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
11036 $as_echo "$emacs_cv_lesstif" >&6; }
11037 if test $emacs_cv_lesstif = yes; then
11038 # Make sure this -I option remains in CPPFLAGS after it is set
11039 # back to REAL_CPPFLAGS.
11040 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11041 # have those other -I options anyway. Ultimately, having this
11042 # directory ultimately in CPPFLAGS will be enough.
11043 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11044 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11045 else
11046 CFLAGS=$OLD_CFLAGS
11047 CPPFLAGS=$OLD_CPPFLAGS
11048 fi
11049 fi
11050 fi
11051
11052
11053 USE_TOOLKIT_SCROLL_BARS=no
11054 if test "${with_toolkit_scroll_bars}" != "no"; then
11055 if test "${USE_X_TOOLKIT}" != "none"; then
11056 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11057 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11058
11059 HAVE_XAW3D=no
11060 USE_TOOLKIT_SCROLL_BARS=yes
11061 elif test "${HAVE_XAW3D}" = "yes"; then
11062 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11063
11064 USE_TOOLKIT_SCROLL_BARS=yes
11065 fi
11066 elif test "${HAVE_GTK}" = "yes"; then
11067 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11068
11069 USE_TOOLKIT_SCROLL_BARS=yes
11070 elif test "${HAVE_NS}" = "yes"; then
11071 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11072
11073 USE_TOOLKIT_SCROLL_BARS=yes
11074 fi
11075 fi
11076
11077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11078 /* end confdefs.h. */
11079
11080 #include <X11/Xlib.h>
11081 #include <X11/Xresource.h>
11082 int
11083 main ()
11084 {
11085 XIMProc callback;
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_compile "$LINENO"; then :
11091 HAVE_XIM=yes
11092
11093 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11094
11095 else
11096 HAVE_XIM=no
11097 fi
11098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11099
11100
11101 if test "${with_xim}" != "no"; then
11102
11103 $as_echo "#define USE_XIM 1" >>confdefs.h
11104
11105 fi
11106
11107
11108 if test "${HAVE_XIM}" != "no"; then
11109 late_CFLAGS=$CFLAGS
11110 if test "$GCC" = yes; then
11111 CFLAGS="$CFLAGS --pedantic-errors"
11112 fi
11113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11114 /* end confdefs.h. */
11115
11116 #include <X11/Xlib.h>
11117 #include <X11/Xresource.h>
11118 int
11119 main ()
11120 {
11121 Display *display;
11122 XrmDatabase db;
11123 char *res_name;
11124 char *res_class;
11125 XIMProc callback;
11126 XPointer *client_data;
11127 #ifndef __GNUC__
11128 /* If we're not using GCC, it's probably not XFree86, and this is
11129 probably right, but we can't use something like --pedantic-errors. */
11130 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11131 char*, XIMProc, XPointer*);
11132 #endif
11133 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11134 client_data);
11135 ;
11136 return 0;
11137 }
11138 _ACEOF
11139 if ac_fn_c_try_compile "$LINENO"; then :
11140 emacs_cv_arg6_star=yes
11141 fi
11142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143 if test "$emacs_cv_arg6_star" = yes; then
11144 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11145
11146 else
11147 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11148
11149 fi
11150 CFLAGS=$late_CFLAGS
11151 fi
11152
11153 ### Start of font-backend (under any platform) section.
11154 # (nothing here yet -- this is a placeholder)
11155 ### End of font-backend (under any platform) section.
11156
11157 ### Start of font-backend (under X11) section.
11158 if test "${HAVE_X11}" = "yes"; then
11159
11160 succeeded=no
11161
11162 # Extract the first word of "pkg-config", so it can be a program name with args.
11163 set dummy pkg-config; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11167 $as_echo_n "(cached) " >&6
11168 else
11169 case $PKG_CONFIG in
11170 [\\/]* | ?:[\\/]*)
11171 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11172 ;;
11173 *)
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11176 do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183 break 2
11184 fi
11185 done
11186 done
11187 IFS=$as_save_IFS
11188
11189 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11190 ;;
11191 esac
11192 fi
11193 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11194 if test -n "$PKG_CONFIG"; then
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11196 $as_echo "$PKG_CONFIG" >&6; }
11197 else
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11200 fi
11201
11202
11203
11204 if test "$PKG_CONFIG" = "no" ; then
11205 HAVE_FC=no
11206 else
11207 PKG_CONFIG_MIN_VERSION=0.9.0
11208 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11210 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11211
11212 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11214 $as_echo "yes" >&6; }
11215 succeeded=yes
11216
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11218 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11219 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11221 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11222
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11224 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11225 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11227 $as_echo "$FONTCONFIG_LIBS" >&6; }
11228 else
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230 $as_echo "no" >&6; }
11231 FONTCONFIG_CFLAGS=""
11232 FONTCONFIG_LIBS=""
11233 ## If we have a custom action on failure, don't print errors, but
11234 ## do set a variable so people can do so.
11235 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11236
11237 fi
11238
11239
11240
11241 else
11242 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11243 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11244 fi
11245 fi
11246
11247 if test $succeeded = yes; then
11248 HAVE_FC=yes
11249 else
11250 HAVE_FC=no
11251 fi
11252
11253
11254 ## Use -lXft if available, unless `--with-xft=no'.
11255 HAVE_XFT=maybe
11256 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11257 with_xft="no";
11258 fi
11259 if test "x${with_xft}" != "xno"; then
11260
11261
11262 succeeded=no
11263
11264 # Extract the first word of "pkg-config", so it can be a program name with args.
11265 set dummy pkg-config; ac_word=$2
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267 $as_echo_n "checking for $ac_word... " >&6; }
11268 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11269 $as_echo_n "(cached) " >&6
11270 else
11271 case $PKG_CONFIG in
11272 [\\/]* | ?:[\\/]*)
11273 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11274 ;;
11275 *)
11276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11277 for as_dir in $PATH
11278 do
11279 IFS=$as_save_IFS
11280 test -z "$as_dir" && as_dir=.
11281 for ac_exec_ext in '' $ac_executable_extensions; do
11282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11283 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 break 2
11286 fi
11287 done
11288 done
11289 IFS=$as_save_IFS
11290
11291 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11292 ;;
11293 esac
11294 fi
11295 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11296 if test -n "$PKG_CONFIG"; then
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11298 $as_echo "$PKG_CONFIG" >&6; }
11299 else
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301 $as_echo "no" >&6; }
11302 fi
11303
11304
11305
11306 if test "$PKG_CONFIG" = "no" ; then
11307 HAVE_XFT=no
11308 else
11309 PKG_CONFIG_MIN_VERSION=0.9.0
11310 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11312 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11313
11314 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11316 $as_echo "yes" >&6; }
11317 succeeded=yes
11318
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11320 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11321 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11323 $as_echo "$XFT_CFLAGS" >&6; }
11324
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11326 $as_echo_n "checking XFT_LIBS... " >&6; }
11327 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11329 $as_echo "$XFT_LIBS" >&6; }
11330 else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11333 XFT_CFLAGS=""
11334 XFT_LIBS=""
11335 ## If we have a custom action on failure, don't print errors, but
11336 ## do set a variable so people can do so.
11337 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11338
11339 fi
11340
11341
11342
11343 else
11344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11346 fi
11347 fi
11348
11349 if test $succeeded = yes; then
11350 :
11351 else
11352 HAVE_XFT=no
11353 fi
11354
11355 ## Because xftfont.c uses XRenderQueryExtension, we also
11356 ## need to link to -lXrender.
11357 HAVE_XRENDER=no
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11359 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11360 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-lXrender $LIBS"
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11371 #ifdef __cplusplus
11372 extern "C"
11373 #endif
11374 char XRenderQueryExtension ();
11375 int
11376 main ()
11377 {
11378 return XRenderQueryExtension ();
11379 ;
11380 return 0;
11381 }
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11385 else
11386 ac_cv_lib_Xrender_XRenderQueryExtension=no
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_lib_save_LIBS
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11393 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11394 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11395 HAVE_XRENDER=yes
11396 fi
11397
11398 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11399 OLD_CPPFLAGS="$CPPFLAGS"
11400 OLD_CFLAGS="$CFLAGS"
11401 OLD_LIBS="$LIBS"
11402 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11403 CFLAGS="$CFLAGS $XFT_CFLAGS"
11404 XFT_LIBS="-lXrender $XFT_LIBS"
11405 LIBS="$XFT_LIBS $LIBS"
11406 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11407 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11409 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11410 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11411 $as_echo_n "(cached) " >&6
11412 else
11413 ac_check_lib_save_LIBS=$LIBS
11414 LIBS="-lXft $XFT_LIBS $LIBS"
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417
11418 /* Override any GCC internal prototype to avoid an error.
11419 Use char because int might match the return type of a GCC
11420 builtin and then its argument prototype would still apply. */
11421 #ifdef __cplusplus
11422 extern "C"
11423 #endif
11424 char XftFontOpen ();
11425 int
11426 main ()
11427 {
11428 return XftFontOpen ();
11429 ;
11430 return 0;
11431 }
11432 _ACEOF
11433 if ac_fn_c_try_link "$LINENO"; then :
11434 ac_cv_lib_Xft_XftFontOpen=yes
11435 else
11436 ac_cv_lib_Xft_XftFontOpen=no
11437 fi
11438 rm -f core conftest.err conftest.$ac_objext \
11439 conftest$ac_exeext conftest.$ac_ext
11440 LIBS=$ac_check_lib_save_LIBS
11441 fi
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11443 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11444 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11445 HAVE_XFT=yes
11446 fi
11447
11448 fi
11449
11450
11451
11452 if test "${HAVE_XFT}" = "yes"; then
11453
11454 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11455
11456
11457 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11458 else
11459 CPPFLAGS="$OLD_CPPFLAGS"
11460 CFLAGS="$OLD_CFLAGS"
11461 LIBS="$OLD_LIBS"
11462 fi # "${HAVE_XFT}" = "yes"
11463 fi # "$HAVE_XFT" != no
11464 fi # "x${with_xft}" != "xno"
11465
11466 if test "$HAVE_XFT" != "yes"; then
11467 HAVE_XFT=no
11468 fi
11469
11470 ## We used to allow building with FreeType and without Xft.
11471 ## However, the ftx font backend driver is not in good shape.
11472 HAVE_FREETYPE=$HAVE_XFT
11473
11474 HAVE_LIBOTF=no
11475 if test "${HAVE_FREETYPE}" = "yes"; then
11476
11477 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11478
11479 if test "${with_libotf}" != "no"; then
11480
11481 succeeded=no
11482
11483 # Extract the first word of "pkg-config", so it can be a program name with args.
11484 set dummy pkg-config; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11488 $as_echo_n "(cached) " >&6
11489 else
11490 case $PKG_CONFIG in
11491 [\\/]* | ?:[\\/]*)
11492 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11493 ;;
11494 *)
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11497 do
11498 IFS=$as_save_IFS
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11502 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 break 2
11505 fi
11506 done
11507 done
11508 IFS=$as_save_IFS
11509
11510 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11511 ;;
11512 esac
11513 fi
11514 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11515 if test -n "$PKG_CONFIG"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11517 $as_echo "$PKG_CONFIG" >&6; }
11518 else
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11521 fi
11522
11523
11524
11525 if test "$PKG_CONFIG" = "no" ; then
11526 HAVE_LIBOTF=no
11527 else
11528 PKG_CONFIG_MIN_VERSION=0.9.0
11529 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11531 $as_echo_n "checking for libotf... " >&6; }
11532
11533 if $PKG_CONFIG --exists "libotf" 2>&5; then
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11535 $as_echo "yes" >&6; }
11536 succeeded=yes
11537
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11539 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11540 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11542 $as_echo "$LIBOTF_CFLAGS" >&6; }
11543
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11545 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11546 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11548 $as_echo "$LIBOTF_LIBS" >&6; }
11549 else
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11551 $as_echo "no" >&6; }
11552 LIBOTF_CFLAGS=""
11553 LIBOTF_LIBS=""
11554 ## If we have a custom action on failure, don't print errors, but
11555 ## do set a variable so people can do so.
11556 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11557
11558 fi
11559
11560
11561
11562 else
11563 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11564 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11565 fi
11566 fi
11567
11568 if test $succeeded = yes; then
11569 HAVE_LIBOTF=yes
11570 else
11571 HAVE_LIBOTF=no
11572 fi
11573
11574 if test "$HAVE_LIBOTF" = "yes"; then
11575
11576 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11577
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11579 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11580 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 ac_check_lib_save_LIBS=$LIBS
11584 LIBS="-lotf $LIBS"
11585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11586 /* end confdefs.h. */
11587
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 char OTF_get_variation_glyphs ();
11595 int
11596 main ()
11597 {
11598 return OTF_get_variation_glyphs ();
11599 ;
11600 return 0;
11601 }
11602 _ACEOF
11603 if ac_fn_c_try_link "$LINENO"; then :
11604 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11605 else
11606 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext \
11609 conftest$ac_exeext conftest.$ac_ext
11610 LIBS=$ac_check_lib_save_LIBS
11611 fi
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11613 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11614 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11615 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11616 else
11617 HAVE_OTF_GET_VARIATION_GLYPHS=no
11618 fi
11619
11620 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11621
11622 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11623
11624 fi
11625 fi
11626 fi
11627 fi
11628
11629 HAVE_M17N_FLT=no
11630 if test "${HAVE_LIBOTF}" = yes; then
11631 if test "${with_m17n_flt}" != "no"; then
11632
11633 succeeded=no
11634
11635 # Extract the first word of "pkg-config", so it can be a program name with args.
11636 set dummy pkg-config; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 case $PKG_CONFIG in
11643 [\\/]* | ?:[\\/]*)
11644 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11645 ;;
11646 *)
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11649 do
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11654 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11657 fi
11658 done
11659 done
11660 IFS=$as_save_IFS
11661
11662 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11663 ;;
11664 esac
11665 fi
11666 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11667 if test -n "$PKG_CONFIG"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11669 $as_echo "$PKG_CONFIG" >&6; }
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11673 fi
11674
11675
11676
11677 if test "$PKG_CONFIG" = "no" ; then
11678 HAVE_M17N_FLT=no
11679 else
11680 PKG_CONFIG_MIN_VERSION=0.9.0
11681 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11683 $as_echo_n "checking for m17n-flt... " >&6; }
11684
11685 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11687 $as_echo "yes" >&6; }
11688 succeeded=yes
11689
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11691 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11692 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11694 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11695
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11697 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11698 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11700 $as_echo "$M17N_FLT_LIBS" >&6; }
11701 else
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703 $as_echo "no" >&6; }
11704 M17N_FLT_CFLAGS=""
11705 M17N_FLT_LIBS=""
11706 ## If we have a custom action on failure, don't print errors, but
11707 ## do set a variable so people can do so.
11708 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11709
11710 fi
11711
11712
11713
11714 else
11715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11717 fi
11718 fi
11719
11720 if test $succeeded = yes; then
11721 HAVE_M17N_FLT=yes
11722 else
11723 HAVE_M17N_FLT=no
11724 fi
11725
11726 if test "$HAVE_M17N_FLT" = "yes"; then
11727
11728 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11729
11730 fi
11731 fi
11732 fi
11733 else
11734 HAVE_XFT=no
11735 HAVE_FREETYPE=no
11736 HAVE_LIBOTF=no
11737 HAVE_M17N_FLT=no
11738 fi
11739
11740 ### End of font-backend (under X11) section.
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751 ### Use -lXpm if available, unless `--with-xpm=no'.
11752 HAVE_XPM=no
11753 LIBXPM=
11754 if test "${HAVE_X11}" = "yes"; then
11755 if test "${with_xpm}" != "no"; then
11756 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11757 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11759 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11760 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 ac_check_lib_save_LIBS=$LIBS
11764 LIBS="-lXpm -lX11 $LIBS"
11765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11766 /* end confdefs.h. */
11767
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 char XpmReadFileToPixmap ();
11775 int
11776 main ()
11777 {
11778 return XpmReadFileToPixmap ();
11779 ;
11780 return 0;
11781 }
11782 _ACEOF
11783 if ac_fn_c_try_link "$LINENO"; then :
11784 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11785 else
11786 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11787 fi
11788 rm -f core conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790 LIBS=$ac_check_lib_save_LIBS
11791 fi
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11793 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11794 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11795 HAVE_XPM=yes
11796 fi
11797
11798 fi
11799
11800
11801 if test "${HAVE_XPM}" = "yes"; then
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11803 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11806 #include "X11/xpm.h"
11807 #ifndef XpmReturnAllocPixels
11808 no_return_alloc_pixels
11809 #endif
11810
11811 _ACEOF
11812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11813 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11814 HAVE_XPM=no
11815 else
11816 HAVE_XPM=yes
11817 fi
11818 rm -f conftest*
11819
11820
11821 if test "${HAVE_XPM}" = "yes"; then
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 $as_echo "yes" >&6; }
11824 else
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 $as_echo "no" >&6; }
11827 fi
11828 fi
11829 fi
11830
11831 if test "${HAVE_XPM}" = "yes"; then
11832
11833 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11834
11835 LIBXPM=-lXpm
11836 fi
11837 fi
11838
11839
11840 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11841 HAVE_JPEG=no
11842 LIBJPEG=
11843 if test "${HAVE_X11}" = "yes"; then
11844 if test "${with_jpeg}" != "no"; then
11845 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11846 if test "x$ac_cv_header_jerror_h" = xyes; then :
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11848 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11849 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
11850 $as_echo_n "(cached) " >&6
11851 else
11852 ac_check_lib_save_LIBS=$LIBS
11853 LIBS="-ljpeg $LIBS"
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856
11857 /* Override any GCC internal prototype to avoid an error.
11858 Use char because int might match the return type of a GCC
11859 builtin and then its argument prototype would still apply. */
11860 #ifdef __cplusplus
11861 extern "C"
11862 #endif
11863 char jpeg_destroy_compress ();
11864 int
11865 main ()
11866 {
11867 return jpeg_destroy_compress ();
11868 ;
11869 return 0;
11870 }
11871 _ACEOF
11872 if ac_fn_c_try_link "$LINENO"; then :
11873 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11874 else
11875 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11876 fi
11877 rm -f core conftest.err conftest.$ac_objext \
11878 conftest$ac_exeext conftest.$ac_ext
11879 LIBS=$ac_check_lib_save_LIBS
11880 fi
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11882 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11883 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
11884 HAVE_JPEG=yes
11885 fi
11886
11887 fi
11888
11889
11890 fi
11891
11892 if test "${HAVE_JPEG}" = "yes"; then
11893 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11894
11895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896 /* end confdefs.h. */
11897 #include <jpeglib.h>
11898 version=JPEG_LIB_VERSION
11899
11900 _ACEOF
11901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11902 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11903 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11904
11905 else
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11907 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11908 HAVE_JPEG=no
11909 fi
11910 rm -f conftest*
11911
11912 fi
11913 if test "${HAVE_JPEG}" = "yes"; then
11914 LIBJPEG=-ljpeg
11915 fi
11916 fi
11917
11918
11919 ### Use -lpng if available, unless `--with-png=no'.
11920 HAVE_PNG=no
11921 LIBPNG=
11922 if test "${HAVE_X11}" = "yes"; then
11923 if test "${with_png}" != "no"; then
11924 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11925 # in /usr/include/libpng.
11926 for ac_header in png.h libpng/png.h
11927 do :
11928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11929 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11931 cat >>confdefs.h <<_ACEOF
11932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11933 _ACEOF
11934
11935 fi
11936
11937 done
11938
11939 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11941 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11942 if ${ac_cv_lib_png_png_get_channels+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 ac_check_lib_save_LIBS=$LIBS
11946 LIBS="-lpng -lz -lm $LIBS"
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11949
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11953 #ifdef __cplusplus
11954 extern "C"
11955 #endif
11956 char png_get_channels ();
11957 int
11958 main ()
11959 {
11960 return png_get_channels ();
11961 ;
11962 return 0;
11963 }
11964 _ACEOF
11965 if ac_fn_c_try_link "$LINENO"; then :
11966 ac_cv_lib_png_png_get_channels=yes
11967 else
11968 ac_cv_lib_png_png_get_channels=no
11969 fi
11970 rm -f core conftest.err conftest.$ac_objext \
11971 conftest$ac_exeext conftest.$ac_ext
11972 LIBS=$ac_check_lib_save_LIBS
11973 fi
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11975 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11976 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
11977 HAVE_PNG=yes
11978 fi
11979
11980 fi
11981 fi
11982
11983 if test "${HAVE_PNG}" = "yes"; then
11984
11985 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11986
11987 LIBPNG="-lpng -lz -lm"
11988 fi
11989 fi
11990
11991
11992 ### Use -ltiff if available, unless `--with-tiff=no'.
11993 HAVE_TIFF=no
11994 LIBTIFF=
11995 if test "${HAVE_X11}" = "yes"; then
11996 if test "${with_tiff}" != "no"; then
11997 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11998 if test "x$ac_cv_header_tiffio_h" = xyes; then :
11999 tifflibs="-lz -lm"
12000 # At least one tiff package requires the jpeg library.
12001 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
12003 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
12004 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007 ac_check_lib_save_LIBS=$LIBS
12008 LIBS="-ltiff $tifflibs $LIBS"
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 char TIFFGetVersion ();
12019 int
12020 main ()
12021 {
12022 return TIFFGetVersion ();
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 if ac_fn_c_try_link "$LINENO"; then :
12028 ac_cv_lib_tiff_TIFFGetVersion=yes
12029 else
12030 ac_cv_lib_tiff_TIFFGetVersion=no
12031 fi
12032 rm -f core conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034 LIBS=$ac_check_lib_save_LIBS
12035 fi
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
12037 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
12038 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
12039 HAVE_TIFF=yes
12040 fi
12041
12042 fi
12043
12044
12045 fi
12046
12047 if test "${HAVE_TIFF}" = "yes"; then
12048
12049 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
12050
12051 LIBTIFF=-ltiff
12052 fi
12053 fi
12054
12055
12056 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
12057 HAVE_GIF=no
12058 LIBGIF=
12059 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
12060 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
12061 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
12062 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12063 # Earlier versions can crash Emacs.
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12065 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12066 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
12067 $as_echo_n "(cached) " >&6
12068 else
12069 ac_check_lib_save_LIBS=$LIBS
12070 LIBS="-lgif $LIBS"
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply. */
12077 #ifdef __cplusplus
12078 extern "C"
12079 #endif
12080 char EGifPutExtensionLast ();
12081 int
12082 main ()
12083 {
12084 return EGifPutExtensionLast ();
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 if ac_fn_c_try_link "$LINENO"; then :
12090 ac_cv_lib_gif_EGifPutExtensionLast=yes
12091 else
12092 ac_cv_lib_gif_EGifPutExtensionLast=no
12093 fi
12094 rm -f core conftest.err conftest.$ac_objext \
12095 conftest$ac_exeext conftest.$ac_ext
12096 LIBS=$ac_check_lib_save_LIBS
12097 fi
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12099 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12100 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
12101 HAVE_GIF=yes
12102 else
12103 HAVE_GIF=maybe
12104 fi
12105
12106 fi
12107
12108
12109
12110 if test "$HAVE_GIF" = yes; then
12111 LIBGIF=-lgif
12112 elif test "$HAVE_GIF" = maybe; then
12113 # If gif_lib.h but no libgif, try libungif.
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12115 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12116 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-lungif $LIBS"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12123
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char EGifPutExtensionLast ();
12131 int
12132 main ()
12133 {
12134 return EGifPutExtensionLast ();
12135 ;
12136 return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12141 else
12142 ac_cv_lib_ungif_EGifPutExtensionLast=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12149 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12150 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12151 HAVE_GIF=yes
12152 else
12153 HAVE_GIF=no
12154 fi
12155
12156 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12157 fi
12158
12159 if test "${HAVE_GIF}" = "yes"; then
12160
12161 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12162
12163 fi
12164 fi
12165
12166
12167 if test "${HAVE_X11}" = "yes"; then
12168 MISSING=""
12169 WITH_NO=""
12170 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12171 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12172 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12173 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12174 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12175 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12176 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12177 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12178 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12179 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12180
12181 if test "X${MISSING}" != X; then
12182 as_fn_error $? "The following required libraries were not found:
12183 $MISSING
12184 Maybe some development libraries/packages are missing?
12185 If you don't want to link with them give
12186 $WITH_NO
12187 as options to configure" "$LINENO" 5
12188 fi
12189 fi
12190
12191 ### Use -lgpm if available, unless `--with-gpm=no'.
12192 HAVE_GPM=no
12193 LIBGPM=
12194 MOUSE_SUPPORT=
12195 if test "${with_gpm}" != "no"; then
12196 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12197 if test "x$ac_cv_header_gpm_h" = xyes; then :
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12199 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12200 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202 else
12203 ac_check_lib_save_LIBS=$LIBS
12204 LIBS="-lgpm $LIBS"
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207
12208 /* Override any GCC internal prototype to avoid an error.
12209 Use char because int might match the return type of a GCC
12210 builtin and then its argument prototype would still apply. */
12211 #ifdef __cplusplus
12212 extern "C"
12213 #endif
12214 char Gpm_Open ();
12215 int
12216 main ()
12217 {
12218 return Gpm_Open ();
12219 ;
12220 return 0;
12221 }
12222 _ACEOF
12223 if ac_fn_c_try_link "$LINENO"; then :
12224 ac_cv_lib_gpm_Gpm_Open=yes
12225 else
12226 ac_cv_lib_gpm_Gpm_Open=no
12227 fi
12228 rm -f core conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230 LIBS=$ac_check_lib_save_LIBS
12231 fi
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12233 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12234 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12235 HAVE_GPM=yes
12236 fi
12237
12238 fi
12239
12240
12241
12242 if test "${HAVE_GPM}" = "yes"; then
12243
12244 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12245
12246 LIBGPM=-lgpm
12247 ## May be reset below.
12248 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12249 fi
12250 fi
12251
12252
12253 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12254 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12255
12256 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12257
12258 fi
12259
12260
12261
12262 C_SWITCH_X_SYSTEM=
12263 ### Use NeXTstep API to implement GUI.
12264 if test "${HAVE_NS}" = "yes"; then
12265
12266 $as_echo "#define HAVE_NS 1" >>confdefs.h
12267
12268 if test "${NS_IMPL_COCOA}" = "yes"; then
12269
12270 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12271
12272 GNU_OBJC_CFLAGS=
12273 fi
12274 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12275
12276 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12277
12278 # See also .m.o rule in Makefile.in */
12279 # FIXME: are all these flags really needed? Document here why. */
12280 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12281 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12282 fi
12283 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12284
12285 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12286
12287 fi
12288 # We also have mouse menus.
12289 HAVE_MENUS=yes
12290 OTHER_FILES=ns-app
12291 fi
12292
12293
12294 ### Use session management (-lSM -lICE) if available
12295 HAVE_X_SM=no
12296 LIBXSM=
12297 if test "${HAVE_X11}" = "yes"; then
12298 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12299 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12301 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12302 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 ac_check_lib_save_LIBS=$LIBS
12306 LIBS="-lSM -lICE $LIBS"
12307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12308 /* end confdefs.h. */
12309
12310 /* Override any GCC internal prototype to avoid an error.
12311 Use char because int might match the return type of a GCC
12312 builtin and then its argument prototype would still apply. */
12313 #ifdef __cplusplus
12314 extern "C"
12315 #endif
12316 char SmcOpenConnection ();
12317 int
12318 main ()
12319 {
12320 return SmcOpenConnection ();
12321 ;
12322 return 0;
12323 }
12324 _ACEOF
12325 if ac_fn_c_try_link "$LINENO"; then :
12326 ac_cv_lib_SM_SmcOpenConnection=yes
12327 else
12328 ac_cv_lib_SM_SmcOpenConnection=no
12329 fi
12330 rm -f core conftest.err conftest.$ac_objext \
12331 conftest$ac_exeext conftest.$ac_ext
12332 LIBS=$ac_check_lib_save_LIBS
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12335 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12336 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12337 HAVE_X_SM=yes
12338 fi
12339
12340 fi
12341
12342
12343
12344 if test "${HAVE_X_SM}" = "yes"; then
12345
12346 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12347
12348 LIBXSM="-lSM -lICE"
12349 case "$LIBS" in
12350 *-lSM*) ;;
12351 *) LIBS="$LIBXSM $LIBS" ;;
12352 esac
12353 fi
12354 fi
12355
12356
12357 ### Use libxml (-lxml2) if available
12358 if test "${with_xml2}" != "no"; then
12359 ### I'm not sure what the version number should be, so I just guessed.
12360
12361 succeeded=no
12362
12363 # Extract the first word of "pkg-config", so it can be a program name with args.
12364 set dummy pkg-config; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 case $PKG_CONFIG in
12371 [\\/]* | ?:[\\/]*)
12372 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12373 ;;
12374 *)
12375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12376 for as_dir in $PATH
12377 do
12378 IFS=$as_save_IFS
12379 test -z "$as_dir" && as_dir=.
12380 for ac_exec_ext in '' $ac_executable_extensions; do
12381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12382 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12384 break 2
12385 fi
12386 done
12387 done
12388 IFS=$as_save_IFS
12389
12390 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12391 ;;
12392 esac
12393 fi
12394 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12395 if test -n "$PKG_CONFIG"; then
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12397 $as_echo "$PKG_CONFIG" >&6; }
12398 else
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400 $as_echo "no" >&6; }
12401 fi
12402
12403
12404
12405 if test "$PKG_CONFIG" = "no" ; then
12406 HAVE_LIBXML2=no
12407 else
12408 PKG_CONFIG_MIN_VERSION=0.9.0
12409 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12411 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12412
12413 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12415 $as_echo "yes" >&6; }
12416 succeeded=yes
12417
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12419 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12420 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12422 $as_echo "$LIBXML2_CFLAGS" >&6; }
12423
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12425 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12426 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12428 $as_echo "$LIBXML2_LIBS" >&6; }
12429 else
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12431 $as_echo "no" >&6; }
12432 LIBXML2_CFLAGS=""
12433 LIBXML2_LIBS=""
12434 ## If we have a custom action on failure, don't print errors, but
12435 ## do set a variable so people can do so.
12436 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12437
12438 fi
12439
12440
12441
12442 else
12443 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12444 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12445 fi
12446 fi
12447
12448 if test $succeeded = yes; then
12449 HAVE_LIBXML2=yes
12450 else
12451 HAVE_LIBXML2=no
12452 fi
12453
12454 if test "${HAVE_LIBXML2}" = "yes"; then
12455 LIBS="$LIBXML2_LIBS $LIBS"
12456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12457 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12458 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12459 $as_echo_n "(cached) " >&6
12460 else
12461 ac_check_lib_save_LIBS=$LIBS
12462 LIBS="-lxml2 $LIBS"
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h. */
12465
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12469 #ifdef __cplusplus
12470 extern "C"
12471 #endif
12472 char htmlReadMemory ();
12473 int
12474 main ()
12475 {
12476 return htmlReadMemory ();
12477 ;
12478 return 0;
12479 }
12480 _ACEOF
12481 if ac_fn_c_try_link "$LINENO"; then :
12482 ac_cv_lib_xml2_htmlReadMemory=yes
12483 else
12484 ac_cv_lib_xml2_htmlReadMemory=no
12485 fi
12486 rm -f core conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
12488 LIBS=$ac_check_lib_save_LIBS
12489 fi
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12491 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12492 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12493 HAVE_LIBXML2=yes
12494 else
12495 HAVE_LIBXML2=no
12496 fi
12497
12498 if test "${HAVE_LIBXML2}" = "yes"; then
12499
12500 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12501
12502 else
12503 LIBXML2_LIBS=""
12504 LIBXML2_CFLAGS=""
12505 fi
12506 fi
12507 fi
12508
12509
12510
12511 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12513 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12514 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12518 /* end confdefs.h. */
12519 #include <netdb.h>
12520 int
12521 main ()
12522 {
12523 return h_errno;
12524 ;
12525 return 0;
12526 }
12527 _ACEOF
12528 if ac_fn_c_try_link "$LINENO"; then :
12529 emacs_cv_netdb_declares_h_errno=yes
12530 else
12531 emacs_cv_netdb_declares_h_errno=no
12532 fi
12533 rm -f core conftest.err conftest.$ac_objext \
12534 conftest$ac_exeext conftest.$ac_ext
12535 fi
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12537 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12538 if test $emacs_cv_netdb_declares_h_errno = yes; then
12539
12540 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12541
12542 fi
12543
12544 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12545 if test "x$ac_cv_type_size_t" = xyes; then :
12546
12547 else
12548
12549 cat >>confdefs.h <<_ACEOF
12550 #define size_t unsigned int
12551 _ACEOF
12552
12553 fi
12554
12555 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12556 # for constant arguments. Useless!
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12558 $as_echo_n "checking for working alloca.h... " >&6; }
12559 if ${ac_cv_working_alloca_h+:} false; then :
12560 $as_echo_n "(cached) " >&6
12561 else
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12564 #include <alloca.h>
12565 int
12566 main ()
12567 {
12568 char *p = (char *) alloca (2 * sizeof (int));
12569 if (p) return 0;
12570 ;
12571 return 0;
12572 }
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575 ac_cv_working_alloca_h=yes
12576 else
12577 ac_cv_working_alloca_h=no
12578 fi
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 fi
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12583 $as_echo "$ac_cv_working_alloca_h" >&6; }
12584 if test $ac_cv_working_alloca_h = yes; then
12585
12586 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12587
12588 fi
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12591 $as_echo_n "checking for alloca... " >&6; }
12592 if ${ac_cv_func_alloca_works+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 #ifdef __GNUC__
12598 # define alloca __builtin_alloca
12599 #else
12600 # ifdef _MSC_VER
12601 # include <malloc.h>
12602 # define alloca _alloca
12603 # else
12604 # ifdef HAVE_ALLOCA_H
12605 # include <alloca.h>
12606 # else
12607 # ifdef _AIX
12608 #pragma alloca
12609 # else
12610 # ifndef alloca /* predefined by HP cc +Olibcalls */
12611 void *alloca (size_t);
12612 # endif
12613 # endif
12614 # endif
12615 # endif
12616 #endif
12617
12618 int
12619 main ()
12620 {
12621 char *p = (char *) alloca (1);
12622 if (p) return 0;
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"; then :
12628 ac_cv_func_alloca_works=yes
12629 else
12630 ac_cv_func_alloca_works=no
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext \
12633 conftest$ac_exeext conftest.$ac_ext
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12636 $as_echo "$ac_cv_func_alloca_works" >&6; }
12637
12638 if test $ac_cv_func_alloca_works = yes; then
12639
12640 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12641
12642 else
12643 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12644 # that cause trouble. Some versions do not even contain alloca or
12645 # contain a buggy version. If you still want to use their alloca,
12646 # use ar to extract alloca.o from them instead of compiling alloca.c.
12647
12648 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12649
12650 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12651
12652
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12654 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12655 if ${ac_cv_os_cray+:} false; then :
12656 $as_echo_n "(cached) " >&6
12657 else
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12660 #if defined CRAY && ! defined CRAY2
12661 webecray
12662 #else
12663 wenotbecray
12664 #endif
12665
12666 _ACEOF
12667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12668 $EGREP "webecray" >/dev/null 2>&1; then :
12669 ac_cv_os_cray=yes
12670 else
12671 ac_cv_os_cray=no
12672 fi
12673 rm -f conftest*
12674
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12677 $as_echo "$ac_cv_os_cray" >&6; }
12678 if test $ac_cv_os_cray = yes; then
12679 for ac_func in _getb67 GETB67 getb67; do
12680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12682 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12683
12684 cat >>confdefs.h <<_ACEOF
12685 #define CRAY_STACKSEG_END $ac_func
12686 _ACEOF
12687
12688 break
12689 fi
12690
12691 done
12692 fi
12693
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12695 $as_echo_n "checking stack direction for C alloca... " >&6; }
12696 if ${ac_cv_c_stack_direction+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 if test "$cross_compiling" = yes; then :
12700 ac_cv_c_stack_direction=0
12701 else
12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12703 /* end confdefs.h. */
12704 $ac_includes_default
12705 int
12706 find_stack_direction ()
12707 {
12708 static char *addr = 0;
12709 auto char dummy;
12710 if (addr == 0)
12711 {
12712 addr = &dummy;
12713 return find_stack_direction ();
12714 }
12715 else
12716 return (&dummy > addr) ? 1 : -1;
12717 }
12718
12719 int
12720 main ()
12721 {
12722 return find_stack_direction () < 0;
12723 }
12724 _ACEOF
12725 if ac_fn_c_try_run "$LINENO"; then :
12726 ac_cv_c_stack_direction=1
12727 else
12728 ac_cv_c_stack_direction=-1
12729 fi
12730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12731 conftest.$ac_objext conftest.beam conftest.$ac_ext
12732 fi
12733
12734 fi
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12736 $as_echo "$ac_cv_c_stack_direction" >&6; }
12737 cat >>confdefs.h <<_ACEOF
12738 #define STACK_DIRECTION $ac_cv_c_stack_direction
12739 _ACEOF
12740
12741
12742 fi
12743
12744
12745 if test x"$ac_cv_func_alloca_works" != xyes; then
12746 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12747 fi
12748
12749 # fmod, logb, and frexp are found in -lm on most systems.
12750 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12752 $as_echo_n "checking for sqrt in -lm... " >&6; }
12753 if ${ac_cv_lib_m_sqrt+:} false; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-lm $LIBS"
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760
12761 /* Override any GCC internal prototype to avoid an error.
12762 Use char because int might match the return type of a GCC
12763 builtin and then its argument prototype would still apply. */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 char sqrt ();
12768 int
12769 main ()
12770 {
12771 return sqrt ();
12772 ;
12773 return 0;
12774 }
12775 _ACEOF
12776 if ac_fn_c_try_link "$LINENO"; then :
12777 ac_cv_lib_m_sqrt=yes
12778 else
12779 ac_cv_lib_m_sqrt=no
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext \
12782 conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12786 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12787 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12788 cat >>confdefs.h <<_ACEOF
12789 #define HAVE_LIBM 1
12790 _ACEOF
12791
12792 LIBS="-lm $LIBS"
12793
12794 fi
12795
12796
12797 # Check for mail-locking functions in a "mail" library. Probably this should
12798 # have the same check as for liblockfile below.
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12800 $as_echo_n "checking for maillock in -lmail... " >&6; }
12801 if ${ac_cv_lib_mail_maillock+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 ac_check_lib_save_LIBS=$LIBS
12805 LIBS="-lmail $LIBS"
12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12807 /* end confdefs.h. */
12808
12809 /* Override any GCC internal prototype to avoid an error.
12810 Use char because int might match the return type of a GCC
12811 builtin and then its argument prototype would still apply. */
12812 #ifdef __cplusplus
12813 extern "C"
12814 #endif
12815 char maillock ();
12816 int
12817 main ()
12818 {
12819 return maillock ();
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_link "$LINENO"; then :
12825 ac_cv_lib_mail_maillock=yes
12826 else
12827 ac_cv_lib_mail_maillock=no
12828 fi
12829 rm -f core conftest.err conftest.$ac_objext \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12832 fi
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12834 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12835 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
12836 have_mail=yes
12837 else
12838 have_mail=no
12839 fi
12840
12841 if test $have_mail = yes; then
12842 LIBS_MAIL=-lmail
12843 LIBS="$LIBS_MAIL $LIBS"
12844
12845 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12846
12847 else
12848 LIBS_MAIL=
12849 fi
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12851 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12852 if ${ac_cv_lib_lockfile_maillock+:} false; then :
12853 $as_echo_n "(cached) " >&6
12854 else
12855 ac_check_lib_save_LIBS=$LIBS
12856 LIBS="-llockfile $LIBS"
12857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12858 /* end confdefs.h. */
12859
12860 /* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12863 #ifdef __cplusplus
12864 extern "C"
12865 #endif
12866 char maillock ();
12867 int
12868 main ()
12869 {
12870 return maillock ();
12871 ;
12872 return 0;
12873 }
12874 _ACEOF
12875 if ac_fn_c_try_link "$LINENO"; then :
12876 ac_cv_lib_lockfile_maillock=yes
12877 else
12878 ac_cv_lib_lockfile_maillock=no
12879 fi
12880 rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12882 LIBS=$ac_check_lib_save_LIBS
12883 fi
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12885 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12886 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
12887 have_lockfile=yes
12888 else
12889 have_lockfile=no
12890 fi
12891
12892 if test $have_lockfile = yes; then
12893 LIBS_MAIL=-llockfile
12894 LIBS="$LIBS_MAIL $LIBS"
12895
12896 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12897
12898 else
12899 # If we have the shared liblockfile, assume we must use it for mail
12900 # locking (e.g. Debian). If we couldn't link against liblockfile
12901 # (no liblockfile.a installed), ensure that we don't need to.
12902 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12903 set dummy liblockfile.so; ac_word=$2
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905 $as_echo_n "checking for $ac_word... " >&6; }
12906 if ${ac_cv_prog_liblockfile+:} false; then :
12907 $as_echo_n "(cached) " >&6
12908 else
12909 if test -n "$liblockfile"; then
12910 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12911 else
12912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12914 for as_dir in $as_dummy
12915 do
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
12919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12920 ac_cv_prog_liblockfile="yes"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12923 fi
12924 done
12925 done
12926 IFS=$as_save_IFS
12927
12928 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12929 fi
12930 fi
12931 liblockfile=$ac_cv_prog_liblockfile
12932 if test -n "$liblockfile"; then
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12934 $as_echo "$liblockfile" >&6; }
12935 else
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12937 $as_echo "no" >&6; }
12938 fi
12939
12940
12941 if test $ac_cv_prog_liblockfile = yes; then
12942 as_fn_error $? "Shared liblockfile found but can't link against it.
12943 This probably means that movemail could lose mail.
12944 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12945 fi
12946 fi
12947 for ac_func in touchlock
12948 do :
12949 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12950 if test "x$ac_cv_func_touchlock" = xyes; then :
12951 cat >>confdefs.h <<_ACEOF
12952 #define HAVE_TOUCHLOCK 1
12953 _ACEOF
12954
12955 fi
12956 done
12957
12958 for ac_header in maillock.h
12959 do :
12960 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12961 if test "x$ac_cv_header_maillock_h" = xyes; then :
12962 cat >>confdefs.h <<_ACEOF
12963 #define HAVE_MAILLOCK_H 1
12964 _ACEOF
12965
12966 fi
12967
12968 done
12969
12970
12971
12972 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12973 ## interlock access to the mail spool. The alternative is a lock file named
12974 ## /usr/spool/mail/$USER.lock.
12975 mail_lock=no
12976 case "$opsys" in
12977 aix4-2) mail_lock="lockf" ;;
12978
12979 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12980
12981 ## On GNU/Linux systems, both methods are used by various mail programs.
12982 ## I assume most people are using newer mailers that have heard of flock.
12983 ## Change this if you need to.
12984 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12985 ## configure gets the right answers, and that means *NOT* using flock.
12986 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12987 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12988 ## Debian maintainer hasn't provided a clean fix for Emacs.
12989 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12990 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12991 ## correct logic. -- fx
12992 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12993 ## liblockfile is a Free Software replacement for libmail, used on
12994 ## Debian systems and elsewhere. -rfr.
12995 gnu-*)
12996 mail_lock="flock"
12997 if test $have_mail = yes || test $have_lockfile = yes; then
12998 test $ac_cv_header_maillock_h = yes && mail_lock=no
12999 fi
13000 ;;
13001 esac
13002
13003 BLESSMAIL_TARGET=
13004 case "$mail_lock" in
13005 flock)
13006 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
13007 ;;
13008
13009 lockf)
13010 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
13011 ;;
13012
13013 *) BLESSMAIL_TARGET="need-blessmail" ;;
13014 esac
13015
13016
13017
13018 for ac_func in gethostname getdomainname dup2 \
13019 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
13020 random lrand48 logb frexp fmod rint cbrt ftime setsid \
13021 strerror fpathconf select euidaccess getpagesize tzset setlocale \
13022 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
13023 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
13024 sendto recvfrom getsockopt setsockopt getsockname getpeername \
13025 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
13026 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
13027 cfmakeraw cfsetspeed isnan copysign __executable_start
13028 do :
13029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13031 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13032 cat >>confdefs.h <<_ACEOF
13033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13034 _ACEOF
13035
13036 fi
13037 done
13038
13039
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
13041 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
13042 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
13043 $as_echo_n "(cached) " >&6
13044 else
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047
13048 int
13049 main ()
13050 {
13051 __builtin_unwind_init ();
13052 ;
13053 return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"; then :
13057 emacs_cv_func___builtin_unwind_init=yes
13058 else
13059 emacs_cv_func___builtin_unwind_init=no
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
13063 fi
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13065 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13066 if test $emacs_cv_func___builtin_unwind_init = yes; then
13067
13068 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13069
13070 fi
13071
13072 for ac_header in sys/un.h
13073 do :
13074 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13075 if test "x$ac_cv_header_sys_un_h" = xyes; then :
13076 cat >>confdefs.h <<_ACEOF
13077 #define HAVE_SYS_UN_H 1
13078 _ACEOF
13079
13080 fi
13081
13082 done
13083
13084
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13086 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13087 if ${ac_cv_sys_largefile_source+:} false; then :
13088 $as_echo_n "(cached) " >&6
13089 else
13090 while :; do
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 #include <sys/types.h> /* for off_t */
13094 #include <stdio.h>
13095 int
13096 main ()
13097 {
13098 int (*fp) (FILE *, off_t, int) = fseeko;
13099 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13100 ;
13101 return 0;
13102 }
13103 _ACEOF
13104 if ac_fn_c_try_link "$LINENO"; then :
13105 ac_cv_sys_largefile_source=no; break
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext \
13108 conftest$ac_exeext conftest.$ac_ext
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 #define _LARGEFILE_SOURCE 1
13112 #include <sys/types.h> /* for off_t */
13113 #include <stdio.h>
13114 int
13115 main ()
13116 {
13117 int (*fp) (FILE *, off_t, int) = fseeko;
13118 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13119 ;
13120 return 0;
13121 }
13122 _ACEOF
13123 if ac_fn_c_try_link "$LINENO"; then :
13124 ac_cv_sys_largefile_source=1; break
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 ac_cv_sys_largefile_source=unknown
13129 break
13130 done
13131 fi
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13133 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13134 case $ac_cv_sys_largefile_source in #(
13135 no | unknown) ;;
13136 *)
13137 cat >>confdefs.h <<_ACEOF
13138 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13139 _ACEOF
13140 ;;
13141 esac
13142 rm -rf conftest*
13143
13144 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13145 # in glibc 2.1.3, but that breaks too many other things.
13146 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13147 if test $ac_cv_sys_largefile_source != unknown; then
13148
13149 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13150
13151 fi
13152
13153
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13155 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13156 if ${ac_cv_func_getpgrp_void+:} false; then :
13157 $as_echo_n "(cached) " >&6
13158 else
13159 # Use it with a single arg.
13160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 /* end confdefs.h. */
13162 $ac_includes_default
13163 int
13164 main ()
13165 {
13166 getpgrp (0);
13167 ;
13168 return 0;
13169 }
13170 _ACEOF
13171 if ac_fn_c_try_compile "$LINENO"; then :
13172 ac_cv_func_getpgrp_void=no
13173 else
13174 ac_cv_func_getpgrp_void=yes
13175 fi
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177
13178 fi
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13180 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13181 if test $ac_cv_func_getpgrp_void = yes; then
13182
13183 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13184
13185 fi
13186
13187
13188 # Configure gnulib.
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199 LIBC_FATAL_STDERR_=1
13200 export LIBC_FATAL_STDERR_
13201
13202
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13204 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13205 if ${gl_cv_func_c99_strtold+:} false; then :
13206 $as_echo_n "(cached) " >&6
13207 else
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 /* On HP-UX before 11.23, strtold returns a struct instead of
13211 long double. Reject implementations like that, by requiring
13212 compatibility with the C99 prototype. */
13213 #include <stdlib.h>
13214 static long double (*p) (char const *, char **) = strtold;
13215 static long double
13216 test (char const *nptr, char **endptr)
13217 {
13218 long double r;
13219 r = strtold (nptr, endptr);
13220 return r;
13221 }
13222 int
13223 main ()
13224 {
13225 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13226 ;
13227 return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_link "$LINENO"; then :
13231 gl_cv_func_c99_strtold=yes
13232 else
13233 gl_cv_func_c99_strtold=no
13234 fi
13235 rm -f core conftest.err conftest.$ac_objext \
13236 conftest$ac_exeext conftest.$ac_ext
13237 fi
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13239 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13240 if test $gl_cv_func_c99_strtold = yes; then
13241
13242 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13243
13244 fi
13245
13246
13247 GNULIB__EXIT=0;
13248 GNULIB_ATOLL=0;
13249 GNULIB_CALLOC_POSIX=0;
13250 GNULIB_CANONICALIZE_FILE_NAME=0;
13251 GNULIB_GETLOADAVG=0;
13252 GNULIB_GETSUBOPT=0;
13253 GNULIB_GRANTPT=0;
13254 GNULIB_MALLOC_POSIX=0;
13255 GNULIB_MKDTEMP=0;
13256 GNULIB_MKOSTEMP=0;
13257 GNULIB_MKOSTEMPS=0;
13258 GNULIB_MKSTEMP=0;
13259 GNULIB_MKSTEMPS=0;
13260 GNULIB_PTSNAME=0;
13261 GNULIB_PUTENV=0;
13262 GNULIB_RANDOM_R=0;
13263 GNULIB_REALLOC_POSIX=0;
13264 GNULIB_REALPATH=0;
13265 GNULIB_RPMATCH=0;
13266 GNULIB_SETENV=0;
13267 GNULIB_STRTOD=0;
13268 GNULIB_STRTOLL=0;
13269 GNULIB_STRTOULL=0;
13270 GNULIB_SYSTEM_POSIX=0;
13271 GNULIB_UNLOCKPT=0;
13272 GNULIB_UNSETENV=0;
13273 HAVE__EXIT=1;
13274 HAVE_ATOLL=1;
13275 HAVE_CANONICALIZE_FILE_NAME=1;
13276 HAVE_DECL_GETLOADAVG=1;
13277 HAVE_GETSUBOPT=1;
13278 HAVE_GRANTPT=1;
13279 HAVE_MKDTEMP=1;
13280 HAVE_MKOSTEMP=1;
13281 HAVE_MKOSTEMPS=1;
13282 HAVE_MKSTEMP=1;
13283 HAVE_MKSTEMPS=1;
13284 HAVE_PTSNAME=1;
13285 HAVE_RANDOM_H=1;
13286 HAVE_RANDOM_R=1;
13287 HAVE_REALPATH=1;
13288 HAVE_RPMATCH=1;
13289 HAVE_SETENV=1;
13290 HAVE_DECL_SETENV=1;
13291 HAVE_STRTOD=1;
13292 HAVE_STRTOLL=1;
13293 HAVE_STRTOULL=1;
13294 HAVE_STRUCT_RANDOM_DATA=1;
13295 HAVE_SYS_LOADAVG_H=0;
13296 HAVE_UNLOCKPT=1;
13297 HAVE_DECL_UNSETENV=1;
13298 REPLACE_CALLOC=0;
13299 REPLACE_CANONICALIZE_FILE_NAME=0;
13300 REPLACE_MALLOC=0;
13301 REPLACE_MKSTEMP=0;
13302 REPLACE_PUTENV=0;
13303 REPLACE_REALLOC=0;
13304 REPLACE_REALPATH=0;
13305 REPLACE_SETENV=0;
13306 REPLACE_STRTOD=0;
13307 REPLACE_UNSETENV=0;
13308
13309
13310 GNULIB_CHOWN=0;
13311 GNULIB_CLOSE=0;
13312 GNULIB_DUP2=0;
13313 GNULIB_DUP3=0;
13314 GNULIB_ENVIRON=0;
13315 GNULIB_EUIDACCESS=0;
13316 GNULIB_FACCESSAT=0;
13317 GNULIB_FCHDIR=0;
13318 GNULIB_FCHOWNAT=0;
13319 GNULIB_FSYNC=0;
13320 GNULIB_FTRUNCATE=0;
13321 GNULIB_GETCWD=0;
13322 GNULIB_GETDOMAINNAME=0;
13323 GNULIB_GETDTABLESIZE=0;
13324 GNULIB_GETGROUPS=0;
13325 GNULIB_GETHOSTNAME=0;
13326 GNULIB_GETLOGIN=0;
13327 GNULIB_GETLOGIN_R=0;
13328 GNULIB_GETPAGESIZE=0;
13329 GNULIB_GETUSERSHELL=0;
13330 GNULIB_LCHOWN=0;
13331 GNULIB_LINK=0;
13332 GNULIB_LINKAT=0;
13333 GNULIB_LSEEK=0;
13334 GNULIB_PIPE=0;
13335 GNULIB_PIPE2=0;
13336 GNULIB_PREAD=0;
13337 GNULIB_PWRITE=0;
13338 GNULIB_READLINK=0;
13339 GNULIB_READLINKAT=0;
13340 GNULIB_RMDIR=0;
13341 GNULIB_SLEEP=0;
13342 GNULIB_SYMLINK=0;
13343 GNULIB_SYMLINKAT=0;
13344 GNULIB_TTYNAME_R=0;
13345 GNULIB_UNISTD_H_GETOPT=0;
13346 GNULIB_UNISTD_H_SIGPIPE=0;
13347 GNULIB_UNLINK=0;
13348 GNULIB_UNLINKAT=0;
13349 GNULIB_USLEEP=0;
13350 GNULIB_WRITE=0;
13351 HAVE_CHOWN=1;
13352 HAVE_DUP2=1;
13353 HAVE_DUP3=1;
13354 HAVE_EUIDACCESS=1;
13355 HAVE_FACCESSAT=1;
13356 HAVE_FCHDIR=1;
13357 HAVE_FCHOWNAT=1;
13358 HAVE_FSYNC=1;
13359 HAVE_FTRUNCATE=1;
13360 HAVE_GETDTABLESIZE=1;
13361 HAVE_GETGROUPS=1;
13362 HAVE_GETHOSTNAME=1;
13363 HAVE_GETLOGIN=1;
13364 HAVE_GETPAGESIZE=1;
13365 HAVE_LCHOWN=1;
13366 HAVE_LINK=1;
13367 HAVE_LINKAT=1;
13368 HAVE_PIPE=1;
13369 HAVE_PIPE2=1;
13370 HAVE_PREAD=1;
13371 HAVE_PWRITE=1;
13372 HAVE_READLINK=1;
13373 HAVE_READLINKAT=1;
13374 HAVE_SLEEP=1;
13375 HAVE_SYMLINK=1;
13376 HAVE_SYMLINKAT=1;
13377 HAVE_UNLINKAT=1;
13378 HAVE_USLEEP=1;
13379 HAVE_DECL_ENVIRON=1;
13380 HAVE_DECL_FCHDIR=1;
13381 HAVE_DECL_GETDOMAINNAME=1;
13382 HAVE_DECL_GETLOGIN_R=1;
13383 HAVE_DECL_GETPAGESIZE=1;
13384 HAVE_DECL_GETUSERSHELL=1;
13385 HAVE_DECL_TTYNAME_R=1;
13386 HAVE_OS_H=0;
13387 HAVE_SYS_PARAM_H=0;
13388 REPLACE_CHOWN=0;
13389 REPLACE_CLOSE=0;
13390 REPLACE_DUP=0;
13391 REPLACE_DUP2=0;
13392 REPLACE_FCHOWNAT=0;
13393 REPLACE_GETCWD=0;
13394 REPLACE_GETDOMAINNAME=0;
13395 REPLACE_GETLOGIN_R=0;
13396 REPLACE_GETGROUPS=0;
13397 REPLACE_GETPAGESIZE=0;
13398 REPLACE_LCHOWN=0;
13399 REPLACE_LINK=0;
13400 REPLACE_LINKAT=0;
13401 REPLACE_LSEEK=0;
13402 REPLACE_PREAD=0;
13403 REPLACE_PWRITE=0;
13404 REPLACE_READLINK=0;
13405 REPLACE_RMDIR=0;
13406 REPLACE_SLEEP=0;
13407 REPLACE_SYMLINK=0;
13408 REPLACE_TTYNAME_R=0;
13409 REPLACE_UNLINK=0;
13410 REPLACE_UNLINKAT=0;
13411 REPLACE_USLEEP=0;
13412 REPLACE_WRITE=0;
13413 UNISTD_H_HAVE_WINSOCK2_H=0;
13414 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13415
13416
13417
13418
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13420 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13421 if ${gl_cv_have_include_next+:} false; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 rm -rf conftestd1a conftestd1b conftestd2
13425 mkdir conftestd1a conftestd1b conftestd2
13426 cat <<EOF > conftestd1a/conftest.h
13427 #define DEFINED_IN_CONFTESTD1
13428 #include_next <conftest.h>
13429 #ifdef DEFINED_IN_CONFTESTD2
13430 int foo;
13431 #else
13432 #error "include_next doesn't work"
13433 #endif
13434 EOF
13435 cat <<EOF > conftestd1b/conftest.h
13436 #define DEFINED_IN_CONFTESTD1
13437 #include <stdio.h>
13438 #include_next <conftest.h>
13439 #ifdef DEFINED_IN_CONFTESTD2
13440 int foo;
13441 #else
13442 #error "include_next doesn't work"
13443 #endif
13444 EOF
13445 cat <<EOF > conftestd2/conftest.h
13446 #ifndef DEFINED_IN_CONFTESTD1
13447 #error "include_next test doesn't work"
13448 #endif
13449 #define DEFINED_IN_CONFTESTD2
13450 EOF
13451 gl_save_CPPFLAGS="$CPPFLAGS"
13452 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455 #include <conftest.h>
13456 _ACEOF
13457 if ac_fn_c_try_compile "$LINENO"; then :
13458 gl_cv_have_include_next=yes
13459 else
13460 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13462 /* end confdefs.h. */
13463 #include <conftest.h>
13464 _ACEOF
13465 if ac_fn_c_try_compile "$LINENO"; then :
13466 gl_cv_have_include_next=buggy
13467 else
13468 gl_cv_have_include_next=no
13469 fi
13470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13471
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474 CPPFLAGS="$gl_save_CPPFLAGS"
13475 rm -rf conftestd1a conftestd1b conftestd2
13476
13477 fi
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13479 $as_echo "$gl_cv_have_include_next" >&6; }
13480 PRAGMA_SYSTEM_HEADER=
13481 if test $gl_cv_have_include_next = yes; then
13482 INCLUDE_NEXT=include_next
13483 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13484 if test -n "$GCC"; then
13485 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13486 fi
13487 else
13488 if test $gl_cv_have_include_next = buggy; then
13489 INCLUDE_NEXT=include
13490 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13491 else
13492 INCLUDE_NEXT=include
13493 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13494 fi
13495 fi
13496
13497
13498
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13500 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13501 if ${gl_cv_pragma_columns+:} false; then :
13502 $as_echo_n "(cached) " >&6
13503 else
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13506
13507 #ifdef __TANDEM
13508 choke me
13509 #endif
13510
13511 _ACEOF
13512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13513 $EGREP "choke me" >/dev/null 2>&1; then :
13514 gl_cv_pragma_columns=yes
13515 else
13516 gl_cv_pragma_columns=no
13517 fi
13518 rm -f conftest*
13519
13520
13521 fi
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13523 $as_echo "$gl_cv_pragma_columns" >&6; }
13524 if test $gl_cv_pragma_columns = yes; then
13525 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13526 else
13527 PRAGMA_COLUMNS=
13528 fi
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546 if test $gl_cv_have_include_next = yes; then
13547 gl_cv_next_getopt_h='<'getopt.h'>'
13548 else
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13550 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13551 if ${gl_cv_next_getopt_h+:} false; then :
13552 $as_echo_n "(cached) " >&6
13553 else
13554
13555 if test $ac_cv_header_getopt_h = yes; then
13556
13557
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13560 #include <getopt.h>
13561
13562 _ACEOF
13563 case "$host_os" in
13564 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13565 *) gl_absname_cpp="$ac_cpp" ;;
13566 esac
13567 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13568 sed -n '\#/getopt.h#{
13569 s#.*"\(.*/getopt.h\)".*#\1#
13570 s#^/[^/]#//&#
13571 p
13572 q
13573 }'`'"'
13574 else
13575 gl_cv_next_getopt_h='<'getopt.h'>'
13576 fi
13577
13578
13579 fi
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13581 $as_echo "$gl_cv_next_getopt_h" >&6; }
13582 fi
13583 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13584
13585 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13586 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13587 gl_next_as_first_directive='<'getopt.h'>'
13588 else
13589 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13590 gl_next_as_first_directive=$gl_cv_next_getopt_h
13591 fi
13592 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13593
13594
13595
13596
13597 if test $ac_cv_header_getopt_h = yes; then
13598 HAVE_GETOPT_H=1
13599 else
13600 HAVE_GETOPT_H=0
13601 fi
13602
13603
13604 gl_replace_getopt=
13605
13606 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13607 for ac_header in getopt.h
13608 do :
13609 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13610 if test "x$ac_cv_header_getopt_h" = xyes; then :
13611 cat >>confdefs.h <<_ACEOF
13612 #define HAVE_GETOPT_H 1
13613 _ACEOF
13614
13615 else
13616 gl_replace_getopt=yes
13617 fi
13618
13619 done
13620
13621 fi
13622
13623 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13624 for ac_func in getopt_long_only
13625 do :
13626 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13627 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13628 cat >>confdefs.h <<_ACEOF
13629 #define HAVE_GETOPT_LONG_ONLY 1
13630 _ACEOF
13631
13632 else
13633 gl_replace_getopt=yes
13634 fi
13635 done
13636
13637 fi
13638
13639 if test -z "$gl_replace_getopt"; then
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13641 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
13642 if ${gl_cv_func_getopt_posix+:} false; then :
13643 $as_echo_n "(cached) " >&6
13644 else
13645
13646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13647 /* end confdefs.h. */
13648 #include <unistd.h>
13649 int
13650 main ()
13651 {
13652 int *p = &optreset; return optreset;
13653 ;
13654 return 0;
13655 }
13656 _ACEOF
13657 if ac_fn_c_try_compile "$LINENO"; then :
13658 gl_optind_min=1
13659 else
13660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h. */
13662 #include <getopt.h>
13663 int
13664 main ()
13665 {
13666 return !getopt_clip;
13667 ;
13668 return 0;
13669 }
13670 _ACEOF
13671 if ac_fn_c_try_compile "$LINENO"; then :
13672 gl_optind_min=1
13673 else
13674 gl_optind_min=0
13675 fi
13676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13677 fi
13678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13679
13680 gl_save_CPPFLAGS=$CPPFLAGS
13681 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
13682 if test "$cross_compiling" = yes; then :
13683 case "$host_os" in
13684 mingw*) gl_cv_func_getopt_posix="guessing no";;
13685 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
13686 *) gl_cv_func_getopt_posix="guessing yes";;
13687 esac
13688
13689 else
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692
13693 #include <unistd.h>
13694 #include <stdlib.h>
13695 #include <string.h>
13696
13697 int
13698 main ()
13699 {
13700 {
13701 int argc = 0;
13702 char *argv[10];
13703 int c;
13704
13705 argv[argc++] = "program";
13706 argv[argc++] = "-a";
13707 argv[argc++] = "foo";
13708 argv[argc++] = "bar";
13709 argv[argc] = NULL;
13710 optind = OPTIND_MIN;
13711 opterr = 0;
13712
13713 c = getopt (argc, argv, "ab");
13714 if (!(c == 'a'))
13715 return 1;
13716 c = getopt (argc, argv, "ab");
13717 if (!(c == -1))
13718 return 2;
13719 if (!(optind == 2))
13720 return 3;
13721 }
13722 /* Some internal state exists at this point. */
13723 {
13724 int argc = 0;
13725 char *argv[10];
13726 int c;
13727
13728 argv[argc++] = "program";
13729 argv[argc++] = "donald";
13730 argv[argc++] = "-p";
13731 argv[argc++] = "billy";
13732 argv[argc++] = "duck";
13733 argv[argc++] = "-a";
13734 argv[argc++] = "bar";
13735 argv[argc] = NULL;
13736 optind = OPTIND_MIN;
13737 opterr = 0;
13738
13739 c = getopt (argc, argv, "+abp:q:");
13740 if (!(c == -1))
13741 return 4;
13742 if (!(strcmp (argv[0], "program") == 0))
13743 return 5;
13744 if (!(strcmp (argv[1], "donald") == 0))
13745 return 6;
13746 if (!(strcmp (argv[2], "-p") == 0))
13747 return 7;
13748 if (!(strcmp (argv[3], "billy") == 0))
13749 return 8;
13750 if (!(strcmp (argv[4], "duck") == 0))
13751 return 9;
13752 if (!(strcmp (argv[5], "-a") == 0))
13753 return 10;
13754 if (!(strcmp (argv[6], "bar") == 0))
13755 return 11;
13756 if (!(optind == 1))
13757 return 12;
13758 }
13759 /* Detect MacOS 10.5, AIX 7.1 bug. */
13760 {
13761 char *argv[3] = { "program", "-ab", NULL };
13762 optind = OPTIND_MIN;
13763 opterr = 0;
13764 if (getopt (2, argv, "ab:") != 'a')
13765 return 13;
13766 if (getopt (2, argv, "ab:") != '?')
13767 return 14;
13768 if (optopt != 'b')
13769 return 15;
13770 if (optind != 2)
13771 return 16;
13772 }
13773
13774 return 0;
13775 }
13776
13777 _ACEOF
13778 if ac_fn_c_try_run "$LINENO"; then :
13779 gl_cv_func_getopt_posix=yes
13780 else
13781 gl_cv_func_getopt_posix=no
13782 fi
13783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13784 conftest.$ac_objext conftest.beam conftest.$ac_ext
13785 fi
13786
13787 CPPFLAGS=$gl_save_CPPFLAGS
13788
13789 fi
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13791 $as_echo "$gl_cv_func_getopt_posix" >&6; }
13792 case "$gl_cv_func_getopt_posix" in
13793 *no) gl_replace_getopt=yes ;;
13794 esac
13795 fi
13796
13797 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13799 $as_echo_n "checking for working GNU getopt function... " >&6; }
13800 if ${gl_cv_func_getopt_gnu+:} false; then :
13801 $as_echo_n "(cached) " >&6
13802 else
13803 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13804 # optstring is necessary for programs like m4 that have POSIX-mandated
13805 # semantics for supporting options interspersed with files.
13806 # Also, since getopt_long is a GNU extension, we require optind=0.
13807 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13808 # so take care to revert to the correct (non-)export state.
13809 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13810 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13811 xx) gl_had_POSIXLY_CORRECT=exported ;;
13812 x) gl_had_POSIXLY_CORRECT=yes ;;
13813 *) gl_had_POSIXLY_CORRECT= ;;
13814 esac
13815 POSIXLY_CORRECT=1
13816 export POSIXLY_CORRECT
13817 if test "$cross_compiling" = yes; then :
13818 case $host_os:$ac_cv_have_decl_optreset in
13819 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
13820 *:yes) gl_cv_func_getopt_gnu=no;;
13821 *) gl_cv_func_getopt_gnu=yes;;
13822 esac
13823
13824 else
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 #include <getopt.h>
13828 #include <stddef.h>
13829 #include <string.h>
13830
13831 int
13832 main ()
13833 {
13834
13835 int result = 0;
13836 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
13837 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
13838 OSF/1 5.1, Solaris 10. */
13839 {
13840 char *myargv[3];
13841 myargv[0] = "conftest";
13842 myargv[1] = "-+";
13843 myargv[2] = 0;
13844 opterr = 0;
13845 if (getopt (2, myargv, "+a") != '?')
13846 result |= 1;
13847 }
13848 /* This code succeeds on glibc 2.8, mingw,
13849 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
13850 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
13851 {
13852 char *argv[] = { "program", "-p", "foo", "bar", NULL };
13853
13854 optind = 1;
13855 if (getopt (4, argv, "p::") != 'p')
13856 result |= 2;
13857 else if (optarg != NULL)
13858 result |= 4;
13859 else if (getopt (4, argv, "p::") != -1)
13860 result |= 6;
13861 else if (optind != 2)
13862 result |= 8;
13863 }
13864 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
13865 {
13866 char *argv[] = { "program", "foo", "-p", NULL };
13867 optind = 0;
13868 if (getopt (3, argv, "-p") != 1)
13869 result |= 16;
13870 else if (getopt (3, argv, "-p") != 'p')
13871 result |= 32;
13872 }
13873 /* This code fails on glibc 2.11. */
13874 {
13875 char *argv[] = { "program", "-b", "-a", NULL };
13876 optind = opterr = 0;
13877 if (getopt (3, argv, "+:a:b") != 'b')
13878 result |= 64;
13879 else if (getopt (3, argv, "+:a:b") != ':')
13880 result |= 64;
13881 }
13882 return result;
13883
13884 ;
13885 return 0;
13886 }
13887 _ACEOF
13888 if ac_fn_c_try_run "$LINENO"; then :
13889 gl_cv_func_getopt_gnu=yes
13890 else
13891 gl_cv_func_getopt_gnu=no
13892 fi
13893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13894 conftest.$ac_objext conftest.beam conftest.$ac_ext
13895 fi
13896
13897 case $gl_had_POSIXLY_CORRECT in
13898 exported) ;;
13899 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
13900 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
13901 esac
13902
13903 fi
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13905 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
13906 if test "$gl_cv_func_getopt_gnu" = "no"; then
13907 gl_replace_getopt=yes
13908 fi
13909 fi
13910
13911 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
13912 if test "x$ac_cv_have_decl_getenv" = xyes; then :
13913 ac_have_decl=1
13914 else
13915 ac_have_decl=0
13916 fi
13917
13918 cat >>confdefs.h <<_ACEOF
13919 #define HAVE_DECL_GETENV $ac_have_decl
13920 _ACEOF
13921
13922
13923
13924
13925
13926
13927 if test -n "$gl_replace_getopt"; then :
13928
13929
13930
13931 GETOPT_H=getopt.h
13932
13933 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
13934
13935
13936
13937 GNULIB_UNISTD_H_GETOPT=1
13938
13939
13940
13941
13942
13943
13944
13945
13946 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13957
13958
13959
13960
13961
13962
13963 fi
13964
13965
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13967 $as_echo_n "checking for inline... " >&6; }
13968 if ${ac_cv_c_inline+:} false; then :
13969 $as_echo_n "(cached) " >&6
13970 else
13971 ac_cv_c_inline=no
13972 for ac_kw in inline __inline__ __inline; do
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 #ifndef __cplusplus
13976 typedef int foo_t;
13977 static $ac_kw foo_t static_foo () {return 0; }
13978 $ac_kw foo_t foo () {return 0; }
13979 #endif
13980
13981 _ACEOF
13982 if ac_fn_c_try_compile "$LINENO"; then :
13983 ac_cv_c_inline=$ac_kw
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 test "$ac_cv_c_inline" != no && break
13987 done
13988
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13991 $as_echo "$ac_cv_c_inline" >&6; }
13992
13993 case $ac_cv_c_inline in
13994 inline | yes) ;;
13995 *)
13996 case $ac_cv_c_inline in
13997 no) ac_val=;;
13998 *) ac_val=$ac_cv_c_inline;;
13999 esac
14000 cat >>confdefs.h <<_ACEOF
14001 #ifndef __cplusplus
14002 #define inline $ac_val
14003 #endif
14004 _ACEOF
14005 ;;
14006 esac
14007
14008
14009 GNULIB_MKTIME=0;
14010 GNULIB_NANOSLEEP=0;
14011 GNULIB_STRPTIME=0;
14012 GNULIB_TIMEGM=0;
14013 GNULIB_TIME_R=0;
14014 HAVE_DECL_LOCALTIME_R=1;
14015 HAVE_NANOSLEEP=1;
14016 HAVE_STRPTIME=1;
14017 HAVE_TIMEGM=1;
14018 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14019 REPLACE_MKTIME=GNULIB_PORTCHECK;
14020 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14021 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14022
14023
14024
14025
14026 for ac_func in $ac_func_list
14027 do :
14028 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14029 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14030 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14031 cat >>confdefs.h <<_ACEOF
14032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14033 _ACEOF
14034
14035 fi
14036 done
14037
14038
14039
14040
14041 gl_cv_c_multiarch=no
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 #ifndef __APPLE_CC__
14045 not a universal capable compiler
14046 #endif
14047 typedef int dummy;
14048
14049 _ACEOF
14050 if ac_fn_c_try_compile "$LINENO"; then :
14051
14052 arch=
14053 prev=
14054 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14055 if test -n "$prev"; then
14056 case $word in
14057 i?86 | x86_64 | ppc | ppc64)
14058 if test -z "$arch" || test "$arch" = "$word"; then
14059 arch="$word"
14060 else
14061 gl_cv_c_multiarch=yes
14062 fi
14063 ;;
14064 esac
14065 prev=
14066 else
14067 if test "x$word" = "x-arch"; then
14068 prev=arch
14069 fi
14070 fi
14071 done
14072
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14075 if test $gl_cv_c_multiarch = yes; then
14076 APPLE_UNIVERSAL_BUILD=1
14077 else
14078 APPLE_UNIVERSAL_BUILD=0
14079 fi
14080
14081
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14083 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14084 if ${ac_cv_header_stdbool_h+:} false; then :
14085 $as_echo_n "(cached) " >&6
14086 else
14087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14088 /* end confdefs.h. */
14089
14090 #include <stdbool.h>
14091 #ifndef bool
14092 "error: bool is not defined"
14093 #endif
14094 #ifndef false
14095 "error: false is not defined"
14096 #endif
14097 #if false
14098 "error: false is not 0"
14099 #endif
14100 #ifndef true
14101 "error: true is not defined"
14102 #endif
14103 #if true != 1
14104 "error: true is not 1"
14105 #endif
14106 #ifndef __bool_true_false_are_defined
14107 "error: __bool_true_false_are_defined is not defined"
14108 #endif
14109
14110 struct s { _Bool s: 1; _Bool t; } s;
14111
14112 char a[true == 1 ? 1 : -1];
14113 char b[false == 0 ? 1 : -1];
14114 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14115 char d[(bool) 0.5 == true ? 1 : -1];
14116 /* See body of main program for 'e'. */
14117 char f[(_Bool) 0.0 == false ? 1 : -1];
14118 char g[true];
14119 char h[sizeof (_Bool)];
14120 char i[sizeof s.t];
14121 enum { j = false, k = true, l = false * true, m = true * 256 };
14122 /* The following fails for
14123 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14124 _Bool n[m];
14125 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14126 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14127 /* Catch a bug in an HP-UX C compiler. See
14128 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14129 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14130 */
14131 _Bool q = true;
14132 _Bool *pq = &q;
14133
14134 int
14135 main ()
14136 {
14137
14138 bool e = &s;
14139 *pq |= q;
14140 *pq |= ! q;
14141 /* Refer to every declared value, to avoid compiler optimizations. */
14142 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14143 + !m + !n + !o + !p + !q + !pq);
14144
14145 ;
14146 return 0;
14147 }
14148 _ACEOF
14149 if ac_fn_c_try_compile "$LINENO"; then :
14150 ac_cv_header_stdbool_h=yes
14151 else
14152 ac_cv_header_stdbool_h=no
14153 fi
14154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155 fi
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14157 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14158 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14159 if test "x$ac_cv_type__Bool" = xyes; then :
14160
14161 cat >>confdefs.h <<_ACEOF
14162 #define HAVE__BOOL 1
14163 _ACEOF
14164
14165
14166 fi
14167
14168
14169
14170 REPLACE_NULL=0;
14171 HAVE_WCHAR_T=1;
14172 STDDEF_H='';
14173
14174
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14176 $as_echo_n "checking for wchar_t... " >&6; }
14177 if ${gt_cv_c_wchar_t+:} false; then :
14178 $as_echo_n "(cached) " >&6
14179 else
14180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181 /* end confdefs.h. */
14182 #include <stddef.h>
14183 wchar_t foo = (wchar_t)'\0';
14184 int
14185 main ()
14186 {
14187
14188 ;
14189 return 0;
14190 }
14191 _ACEOF
14192 if ac_fn_c_try_compile "$LINENO"; then :
14193 gt_cv_c_wchar_t=yes
14194 else
14195 gt_cv_c_wchar_t=no
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198 fi
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14200 $as_echo "$gt_cv_c_wchar_t" >&6; }
14201 if test $gt_cv_c_wchar_t = yes; then
14202
14203 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14204
14205 fi
14206
14207
14208 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14209 "
14210 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14211
14212 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14213
14214 fi
14215
14216
14217
14218
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14220 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14221 if ${ac_cv_c_restrict+:} false; then :
14222 $as_echo_n "(cached) " >&6
14223 else
14224 ac_cv_c_restrict=no
14225 # The order here caters to the fact that C++ does not require restrict.
14226 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 typedef int * int_ptr;
14230 int foo (int_ptr $ac_kw ip) {
14231 return ip[0];
14232 }
14233 int
14234 main ()
14235 {
14236 int s[1];
14237 int * $ac_kw t = s;
14238 t[0] = 0;
14239 return foo(t)
14240 ;
14241 return 0;
14242 }
14243 _ACEOF
14244 if ac_fn_c_try_compile "$LINENO"; then :
14245 ac_cv_c_restrict=$ac_kw
14246 fi
14247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248 test "$ac_cv_c_restrict" != no && break
14249 done
14250
14251 fi
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14253 $as_echo "$ac_cv_c_restrict" >&6; }
14254
14255 case $ac_cv_c_restrict in
14256 restrict) ;;
14257 no) $as_echo "#define restrict /**/" >>confdefs.h
14258 ;;
14259 *) cat >>confdefs.h <<_ACEOF
14260 #define restrict $ac_cv_c_restrict
14261 _ACEOF
14262 ;;
14263 esac
14264
14265
14266
14267
14268
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14270 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14271 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14272 $as_echo_n "(cached) " >&6
14273 else
14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h. */
14276 #include <time.h>
14277
14278 int
14279 main ()
14280 {
14281 static struct timespec x; x.tv_sec = x.tv_nsec;
14282 ;
14283 return 0;
14284 }
14285 _ACEOF
14286 if ac_fn_c_try_compile "$LINENO"; then :
14287 gl_cv_sys_struct_timespec_in_time_h=yes
14288 else
14289 gl_cv_sys_struct_timespec_in_time_h=no
14290 fi
14291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14292 fi
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14294 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14295
14296 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14297 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14298 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14299 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14300 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14301 else
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14303 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14304 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14305 $as_echo_n "(cached) " >&6
14306 else
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14309 #include <sys/time.h>
14310
14311 int
14312 main ()
14313 {
14314 static struct timespec x; x.tv_sec = x.tv_nsec;
14315 ;
14316 return 0;
14317 }
14318 _ACEOF
14319 if ac_fn_c_try_compile "$LINENO"; then :
14320 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14321 else
14322 gl_cv_sys_struct_timespec_in_sys_time_h=no
14323 fi
14324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14325 fi
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14327 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14328 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14329 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14330 else
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14332 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14333 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14334 $as_echo_n "(cached) " >&6
14335 else
14336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h. */
14338 #include <pthread.h>
14339
14340 int
14341 main ()
14342 {
14343 static struct timespec x; x.tv_sec = x.tv_nsec;
14344 ;
14345 return 0;
14346 }
14347 _ACEOF
14348 if ac_fn_c_try_compile "$LINENO"; then :
14349 gl_cv_sys_struct_timespec_in_pthread_h=yes
14350 else
14351 gl_cv_sys_struct_timespec_in_pthread_h=no
14352 fi
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14354 fi
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14356 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14357 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14358 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14359 fi
14360 fi
14361 fi
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377 if test $gl_cv_have_include_next = yes; then
14378 gl_cv_next_time_h='<'time.h'>'
14379 else
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14381 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14382 if ${gl_cv_next_time_h+:} false; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14388 #include <time.h>
14389
14390 _ACEOF
14391 case "$host_os" in
14392 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14393 *) gl_absname_cpp="$ac_cpp" ;;
14394 esac
14395 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14396 sed -n '\#/time.h#{
14397 s#.*"\(.*/time.h\)".*#\1#
14398 s#^/[^/]#//&#
14399 p
14400 q
14401 }'`'"'
14402
14403
14404 fi
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14406 $as_echo "$gl_cv_next_time_h" >&6; }
14407 fi
14408 NEXT_TIME_H=$gl_cv_next_time_h
14409
14410 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14412 gl_next_as_first_directive='<'time.h'>'
14413 else
14414 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14415 gl_next_as_first_directive=$gl_cv_next_time_h
14416 fi
14417 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14418
14419
14420
14421
14422
14423
14424 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14425 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14426 ac_have_decl=1
14427 else
14428 ac_have_decl=0
14429 fi
14430
14431 cat >>confdefs.h <<_ACEOF
14432 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14433 _ACEOF
14434
14435
14436
14437
14438 if false; then
14439 GL_COND_LIBTOOL_TRUE=
14440 GL_COND_LIBTOOL_FALSE='#'
14441 else
14442 GL_COND_LIBTOOL_TRUE='#'
14443 GL_COND_LIBTOOL_FALSE=
14444 fi
14445
14446 gl_cond_libtool=false
14447 gl_libdeps=
14448 gl_ltlibdeps=
14449 gl_m4_base='m4'
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459 gl_source_base='lib'
14460 # Code from module arg-nonnull:
14461 # Code from module c++defs:
14462 # Code from module dtoastr:
14463
14464 # Code from module extensions:
14465 # Code from module getloadavg:
14466
14467
14468 # Persuade glibc <stdlib.h> to declare getloadavg().
14469
14470
14471 gl_have_func=no # yes means we've found a way to get the load average.
14472
14473 # Make sure getloadavg.c is where it belongs, at configure-time.
14474 test -f "$srcdir/$gl_source_base/getloadavg.c" ||
14475 as_fn_error $? "$srcdir/$gl_source_base/getloadavg.c is missing" "$LINENO" 5
14476
14477 gl_save_LIBS=$LIBS
14478
14479 # Check for getloadavg, but be sure not to touch the cache variable.
14480 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
14481 if test "x$ac_cv_func_getloadavg" = xyes; then :
14482 exit 0
14483 else
14484 exit 1
14485 fi
14486 ) && gl_have_func=yes
14487
14488 # On HPUX9, an unprivileged user can get load averages through this function.
14489 for ac_func in pstat_getdynamic
14490 do :
14491 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
14492 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
14493 cat >>confdefs.h <<_ACEOF
14494 #define HAVE_PSTAT_GETDYNAMIC 1
14495 _ACEOF
14496
14497 fi
14498 done
14499
14500
14501 # Solaris has libkstat which does not require root.
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
14503 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
14504 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
14505 $as_echo_n "(cached) " >&6
14506 else
14507 ac_check_lib_save_LIBS=$LIBS
14508 LIBS="-lkstat $LIBS"
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14511
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char kstat_open ();
14519 int
14520 main ()
14521 {
14522 return kstat_open ();
14523 ;
14524 return 0;
14525 }
14526 _ACEOF
14527 if ac_fn_c_try_link "$LINENO"; then :
14528 ac_cv_lib_kstat_kstat_open=yes
14529 else
14530 ac_cv_lib_kstat_kstat_open=no
14531 fi
14532 rm -f core conftest.err conftest.$ac_objext \
14533 conftest$ac_exeext conftest.$ac_ext
14534 LIBS=$ac_check_lib_save_LIBS
14535 fi
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
14537 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
14538 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
14539 cat >>confdefs.h <<_ACEOF
14540 #define HAVE_LIBKSTAT 1
14541 _ACEOF
14542
14543 LIBS="-lkstat $LIBS"
14544
14545 fi
14546
14547 test $ac_cv_lib_kstat_kstat_open = yes && gl_have_func=yes
14548
14549 # AIX has libperfstat which does not require root
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5
14551 $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; }
14552 if ${ac_cv_lib_perfstat_perfstat_cpu_total+:} false; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 ac_check_lib_save_LIBS=$LIBS
14556 LIBS="-lperfstat $LIBS"
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559
14560 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */
14563 #ifdef __cplusplus
14564 extern "C"
14565 #endif
14566 char perfstat_cpu_total ();
14567 int
14568 main ()
14569 {
14570 return perfstat_cpu_total ();
14571 ;
14572 return 0;
14573 }
14574 _ACEOF
14575 if ac_fn_c_try_link "$LINENO"; then :
14576 ac_cv_lib_perfstat_perfstat_cpu_total=yes
14577 else
14578 ac_cv_lib_perfstat_perfstat_cpu_total=no
14579 fi
14580 rm -f core conftest.err conftest.$ac_objext \
14581 conftest$ac_exeext conftest.$ac_ext
14582 LIBS=$ac_check_lib_save_LIBS
14583 fi
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5
14585 $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; }
14586 if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = xyes; then :
14587 cat >>confdefs.h <<_ACEOF
14588 #define HAVE_LIBPERFSTAT 1
14589 _ACEOF
14590
14591 LIBS="-lperfstat $LIBS"
14592
14593 fi
14594
14595 test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_have_func=yes
14596
14597 # Some systems with -lutil have (and need) -lkvm as well, some do not.
14598 # On Solaris, -lkvm requires nlist from -lelf, so check that first
14599 # to get the right answer into the cache.
14600 # For kstat on solaris, we need to test for libelf and libkvm to force the
14601 # definition of SVR4 below.
14602 if test $gl_have_func = no; then
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
14604 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
14605 if ${ac_cv_lib_elf_elf_begin+:} false; then :
14606 $as_echo_n "(cached) " >&6
14607 else
14608 ac_check_lib_save_LIBS=$LIBS
14609 LIBS="-lelf $LIBS"
14610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14611 /* end confdefs.h. */
14612
14613 /* Override any GCC internal prototype to avoid an error.
14614 Use char because int might match the return type of a GCC
14615 builtin and then its argument prototype would still apply. */
14616 #ifdef __cplusplus
14617 extern "C"
14618 #endif
14619 char elf_begin ();
14620 int
14621 main ()
14622 {
14623 return elf_begin ();
14624 ;
14625 return 0;
14626 }
14627 _ACEOF
14628 if ac_fn_c_try_link "$LINENO"; then :
14629 ac_cv_lib_elf_elf_begin=yes
14630 else
14631 ac_cv_lib_elf_elf_begin=no
14632 fi
14633 rm -f core conftest.err conftest.$ac_objext \
14634 conftest$ac_exeext conftest.$ac_ext
14635 LIBS=$ac_check_lib_save_LIBS
14636 fi
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
14638 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
14639 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
14640 LIBS="-lelf $LIBS"
14641 fi
14642
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
14644 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
14645 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
14646 $as_echo_n "(cached) " >&6
14647 else
14648 ac_check_lib_save_LIBS=$LIBS
14649 LIBS="-lkvm $LIBS"
14650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14651 /* end confdefs.h. */
14652
14653 /* Override any GCC internal prototype to avoid an error.
14654 Use char because int might match the return type of a GCC
14655 builtin and then its argument prototype would still apply. */
14656 #ifdef __cplusplus
14657 extern "C"
14658 #endif
14659 char kvm_open ();
14660 int
14661 main ()
14662 {
14663 return kvm_open ();
14664 ;
14665 return 0;
14666 }
14667 _ACEOF
14668 if ac_fn_c_try_link "$LINENO"; then :
14669 ac_cv_lib_kvm_kvm_open=yes
14670 else
14671 ac_cv_lib_kvm_kvm_open=no
14672 fi
14673 rm -f core conftest.err conftest.$ac_objext \
14674 conftest$ac_exeext conftest.$ac_ext
14675 LIBS=$ac_check_lib_save_LIBS
14676 fi
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
14678 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
14679 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
14680 LIBS="-lkvm $LIBS"
14681 fi
14682
14683 # Check for the 4.4BSD definition of getloadavg.
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
14685 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
14686 if ${ac_cv_lib_util_getloadavg+:} false; then :
14687 $as_echo_n "(cached) " >&6
14688 else
14689 ac_check_lib_save_LIBS=$LIBS
14690 LIBS="-lutil $LIBS"
14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692 /* end confdefs.h. */
14693
14694 /* Override any GCC internal prototype to avoid an error.
14695 Use char because int might match the return type of a GCC
14696 builtin and then its argument prototype would still apply. */
14697 #ifdef __cplusplus
14698 extern "C"
14699 #endif
14700 char getloadavg ();
14701 int
14702 main ()
14703 {
14704 return getloadavg ();
14705 ;
14706 return 0;
14707 }
14708 _ACEOF
14709 if ac_fn_c_try_link "$LINENO"; then :
14710 ac_cv_lib_util_getloadavg=yes
14711 else
14712 ac_cv_lib_util_getloadavg=no
14713 fi
14714 rm -f core conftest.err conftest.$ac_objext \
14715 conftest$ac_exeext conftest.$ac_ext
14716 LIBS=$ac_check_lib_save_LIBS
14717 fi
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
14719 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
14720 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
14721 LIBS="-lutil $LIBS" gl_have_func=yes gl_cv_func_getloadavg_setgid=yes
14722 fi
14723
14724 fi
14725
14726 if test $gl_have_func = no; then
14727 # There is a commonly available library for RS/6000 AIX.
14728 # Since it is not a standard part of AIX, it might be installed locally.
14729 gl_getloadavg_LIBS=$LIBS
14730 LIBS="-L/usr/local/lib $LIBS"
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
14732 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
14733 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
14734 $as_echo_n "(cached) " >&6
14735 else
14736 ac_check_lib_save_LIBS=$LIBS
14737 LIBS="-lgetloadavg $LIBS"
14738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739 /* end confdefs.h. */
14740
14741 /* Override any GCC internal prototype to avoid an error.
14742 Use char because int might match the return type of a GCC
14743 builtin and then its argument prototype would still apply. */
14744 #ifdef __cplusplus
14745 extern "C"
14746 #endif
14747 char getloadavg ();
14748 int
14749 main ()
14750 {
14751 return getloadavg ();
14752 ;
14753 return 0;
14754 }
14755 _ACEOF
14756 if ac_fn_c_try_link "$LINENO"; then :
14757 ac_cv_lib_getloadavg_getloadavg=yes
14758 else
14759 ac_cv_lib_getloadavg_getloadavg=no
14760 fi
14761 rm -f core conftest.err conftest.$ac_objext \
14762 conftest$ac_exeext conftest.$ac_ext
14763 LIBS=$ac_check_lib_save_LIBS
14764 fi
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
14766 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
14767 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
14768 LIBS="-lgetloadavg $LIBS"
14769 else
14770 LIBS=$gl_getloadavg_LIBS
14771 fi
14772
14773 fi
14774
14775 # Make sure it is really in the library, if we think we found it,
14776 # otherwise set up the replacement function.
14777 for ac_func in getloadavg
14778 do :
14779 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
14780 if test "x$ac_cv_func_getloadavg" = xyes; then :
14781 cat >>confdefs.h <<_ACEOF
14782 #define HAVE_GETLOADAVG 1
14783 _ACEOF
14784
14785 else
14786
14787
14788
14789
14790
14791
14792
14793
14794 gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext"
14795
14796
14797 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
14798
14799 # Figure out what our getloadavg.c needs.
14800 gl_have_func=no
14801 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
14802 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
14803 gl_have_func=yes
14804
14805 $as_echo "#define DGUX 1" >>confdefs.h
14806
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
14808 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
14809 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812 ac_check_lib_save_LIBS=$LIBS
14813 LIBS="-ldgc $LIBS"
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14820 #ifdef __cplusplus
14821 extern "C"
14822 #endif
14823 char dg_sys_info ();
14824 int
14825 main ()
14826 {
14827 return dg_sys_info ();
14828 ;
14829 return 0;
14830 }
14831 _ACEOF
14832 if ac_fn_c_try_link "$LINENO"; then :
14833 ac_cv_lib_dgc_dg_sys_info=yes
14834 else
14835 ac_cv_lib_dgc_dg_sys_info=no
14836 fi
14837 rm -f core conftest.err conftest.$ac_objext \
14838 conftest$ac_exeext conftest.$ac_ext
14839 LIBS=$ac_check_lib_save_LIBS
14840 fi
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
14842 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
14843 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
14844 cat >>confdefs.h <<_ACEOF
14845 #define HAVE_LIBDGC 1
14846 _ACEOF
14847
14848 LIBS="-ldgc $LIBS"
14849
14850 fi
14851
14852 fi
14853
14854
14855
14856 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
14857 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
14858 # Irix 4.0.5F has the header but not the library.
14859 if test $gl_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
14860 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
14861 gl_have_func=yes
14862
14863 $as_echo "#define SVR4 1" >>confdefs.h
14864
14865 fi
14866
14867 if test $gl_have_func = no; then
14868 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
14869 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
14870 gl_have_func=yes
14871
14872 $as_echo "#define UMAX 1" >>confdefs.h
14873
14874
14875 $as_echo "#define UMAX4_3 1" >>confdefs.h
14876
14877 fi
14878
14879
14880 fi
14881
14882 if test $gl_have_func = no; then
14883 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
14884 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
14885 gl_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
14886
14887 fi
14888
14889
14890 fi
14891
14892 if test $gl_have_func = no; then
14893 for ac_header in mach/mach.h
14894 do :
14895 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
14896 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
14897 cat >>confdefs.h <<_ACEOF
14898 #define HAVE_MACH_MACH_H 1
14899 _ACEOF
14900
14901 fi
14902
14903 done
14904
14905 fi
14906
14907 for ac_header in nlist.h
14908 do :
14909 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
14910 if test "x$ac_cv_header_nlist_h" = xyes; then :
14911 cat >>confdefs.h <<_ACEOF
14912 #define HAVE_NLIST_H 1
14913 _ACEOF
14914 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
14915 "
14916 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
14917
14918 cat >>confdefs.h <<_ACEOF
14919 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
14920 _ACEOF
14921
14922
14923 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
14924
14925 fi
14926
14927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14928 /* end confdefs.h. */
14929 #include <nlist.h>
14930 int
14931 main ()
14932 {
14933 struct nlist x;
14934 #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME
14935 x.n_un.n_name = "";
14936 #else
14937 x.n_name = "";
14938 #endif
14939 ;
14940 return 0;
14941 }
14942 _ACEOF
14943 if ac_fn_c_try_link "$LINENO"; then :
14944
14945 $as_echo "#define N_NAME_POINTER 1" >>confdefs.h
14946
14947 fi
14948 rm -f core conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14950
14951 fi
14952
14953 done
14954
14955 fi
14956 done
14957
14958
14959 # Some definitions of getloadavg require that the program be installed setgid.
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
14961 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
14962 if ${gl_cv_func_getloadavg_setgid+:} false; then :
14963 $as_echo_n "(cached) " >&6
14964 else
14965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 #define CONFIGURING_GETLOADAVG
14968 #include "$srcdir/$gl_source_base/getloadavg.c"
14969 #ifdef LDAV_PRIVILEGED
14970 Yowza Am I SETGID yet
14971 #endif
14972
14973 _ACEOF
14974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14975 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
14976 gl_cv_func_getloadavg_setgid=yes
14977 else
14978 gl_cv_func_getloadavg_setgid=no
14979 fi
14980 rm -f conftest*
14981
14982 fi
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getloadavg_setgid" >&5
14984 $as_echo "$gl_cv_func_getloadavg_setgid" >&6; }
14985 if test $gl_cv_func_getloadavg_setgid = yes; then
14986 NEED_SETGID=true
14987
14988 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
14989
14990 else
14991 NEED_SETGID=false
14992 fi
14993
14994 if test $gl_cv_func_getloadavg_setgid = yes; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
14996 $as_echo_n "checking group of /dev/kmem... " >&6; }
14997 if ${gl_cv_group_kmem+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
15001 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
15002 # If we got an error (system does not support symlinks), try without -L.
15003 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
15004 gl_cv_group_kmem=`echo $ac_ls_output \
15005 | sed -ne 's/[ ][ ]*/ /g
15006 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/
15007 / /s/.* //;p'`
15008
15009 fi
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_group_kmem" >&5
15011 $as_echo "$gl_cv_group_kmem" >&6; }
15012 KMEM_GROUP=$gl_cv_group_kmem
15013 fi
15014 if test "x$gl_save_LIBS" = x; then
15015 GETLOADAVG_LIBS=$LIBS
15016 else
15017 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"`
15018 fi
15019 LIBS=$gl_save_LIBS
15020
15021
15022 # Test whether the system declares getloadavg. Solaris has the function
15023 # but declares it in <sys/loadavg.h>, not <stdlib.h>.
15024 for ac_header in sys/loadavg.h
15025 do :
15026 ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
15027 if test "x$ac_cv_header_sys_loadavg_h" = xyes; then :
15028 cat >>confdefs.h <<_ACEOF
15029 #define HAVE_SYS_LOADAVG_H 1
15030 _ACEOF
15031
15032 fi
15033
15034 done
15035
15036 if test $ac_cv_header_sys_loadavg_h = yes; then
15037 HAVE_SYS_LOADAVG_H=1
15038 else
15039 HAVE_SYS_LOADAVG_H=0
15040 fi
15041 ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H
15042 # include <sys/loadavg.h>
15043 #endif
15044 #include <stdlib.h>
15045 "
15046 if test "x$ac_cv_have_decl_getloadavg" = xyes; then :
15047
15048 else
15049 HAVE_DECL_GETLOADAVG=0
15050 fi
15051
15052
15053
15054
15055
15056 GNULIB_GETLOADAVG=1
15057
15058
15059
15060 # Code from module getopt-gnu:
15061
15062
15063
15064
15065
15066
15067 # Code from module getopt-posix:
15068
15069
15070
15071
15072
15073 if test -n "$gl_replace_getopt"; then :
15074
15075
15076
15077 GETOPT_H=getopt.h
15078
15079 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
15080
15081
15082
15083 GNULIB_UNISTD_H_GETOPT=1
15084
15085
15086
15087
15088
15089
15090
15091
15092 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15103
15104
15105
15106
15107
15108
15109 fi
15110
15111
15112 # Code from module gettext-h:
15113
15114
15115 # Code from module ignore-value:
15116
15117 # Code from module include_next:
15118 # Code from module intprops:
15119 # Code from module mktime:
15120
15121
15122
15123
15124
15125 if test $APPLE_UNIVERSAL_BUILD = 1; then
15126 # A universal build on Apple MacOS X platforms.
15127 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
15128 # But we need a configuration result that is valid in both modes.
15129 ac_cv_func_working_mktime=no
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
15132 $as_echo_n "checking for working mktime... " >&6; }
15133 if ${ac_cv_func_working_mktime+:} false; then :
15134 $as_echo_n "(cached) " >&6
15135 else
15136 if test "$cross_compiling" = yes; then :
15137 ac_cv_func_working_mktime=no
15138 else
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15141 /* Test program from Paul Eggert and Tony Leneis. */
15142 #include <limits.h>
15143 #include <stdlib.h>
15144 #include <time.h>
15145
15146 #ifdef HAVE_UNISTD_H
15147 # include <unistd.h>
15148 #endif
15149
15150 #ifndef HAVE_ALARM
15151 # define alarm(X) /* empty */
15152 #endif
15153
15154 /* Work around redefinition to rpl_putenv by other config tests. */
15155 #undef putenv
15156
15157 static time_t time_t_max;
15158 static time_t time_t_min;
15159
15160 /* Values we'll use to set the TZ environment variable. */
15161 static char *tz_strings[] = {
15162 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15163 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15164 };
15165 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15166
15167 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15168 Based on a problem report from Andreas Jaeger. */
15169 static int
15170 spring_forward_gap ()
15171 {
15172 /* glibc (up to about 1998-10-07) failed this test. */
15173 struct tm tm;
15174
15175 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15176 instead of "TZ=America/Vancouver" in order to detect the bug even
15177 on systems that don't support the Olson extension, or don't have the
15178 full zoneinfo tables installed. */
15179 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15180
15181 tm.tm_year = 98;
15182 tm.tm_mon = 3;
15183 tm.tm_mday = 5;
15184 tm.tm_hour = 2;
15185 tm.tm_min = 0;
15186 tm.tm_sec = 0;
15187 tm.tm_isdst = -1;
15188 return mktime (&tm) != (time_t) -1;
15189 }
15190
15191 static int
15192 mktime_test1 (time_t now)
15193 {
15194 struct tm *lt;
15195 return ! (lt = localtime (&now)) || mktime (lt) == now;
15196 }
15197
15198 static int
15199 mktime_test (time_t now)
15200 {
15201 return (mktime_test1 (now)
15202 && mktime_test1 ((time_t) (time_t_max - now))
15203 && mktime_test1 ((time_t) (time_t_min + now)));
15204 }
15205
15206 static int
15207 irix_6_4_bug ()
15208 {
15209 /* Based on code from Ariel Faigon. */
15210 struct tm tm;
15211 tm.tm_year = 96;
15212 tm.tm_mon = 3;
15213 tm.tm_mday = 0;
15214 tm.tm_hour = 0;
15215 tm.tm_min = 0;
15216 tm.tm_sec = 0;
15217 tm.tm_isdst = -1;
15218 mktime (&tm);
15219 return tm.tm_mon == 2 && tm.tm_mday == 31;
15220 }
15221
15222 static int
15223 bigtime_test (int j)
15224 {
15225 struct tm tm;
15226 time_t now;
15227 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15228 now = mktime (&tm);
15229 if (now != (time_t) -1)
15230 {
15231 struct tm *lt = localtime (&now);
15232 if (! (lt
15233 && lt->tm_year == tm.tm_year
15234 && lt->tm_mon == tm.tm_mon
15235 && lt->tm_mday == tm.tm_mday
15236 && lt->tm_hour == tm.tm_hour
15237 && lt->tm_min == tm.tm_min
15238 && lt->tm_sec == tm.tm_sec
15239 && lt->tm_yday == tm.tm_yday
15240 && lt->tm_wday == tm.tm_wday
15241 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15242 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15243 return 0;
15244 }
15245 return 1;
15246 }
15247
15248 static int
15249 year_2050_test ()
15250 {
15251 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15252 ignoring leap seconds. */
15253 unsigned long int answer = 2527315200UL;
15254
15255 struct tm tm;
15256 time_t t;
15257 tm.tm_year = 2050 - 1900;
15258 tm.tm_mon = 2 - 1;
15259 tm.tm_mday = 1;
15260 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15261 tm.tm_isdst = -1;
15262
15263 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15264 instead of "TZ=America/Vancouver" in order to detect the bug even
15265 on systems that don't support the Olson extension, or don't have the
15266 full zoneinfo tables installed. */
15267 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15268
15269 t = mktime (&tm);
15270
15271 /* Check that the result is either a failure, or close enough
15272 to the correct answer that we can assume the discrepancy is
15273 due to leap seconds. */
15274 return (t == (time_t) -1
15275 || (0 < t && answer - 120 <= t && t <= answer + 120));
15276 }
15277
15278 int
15279 main ()
15280 {
15281 int result = 0;
15282 time_t t, delta;
15283 int i, j;
15284 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15285 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15286
15287 /* This test makes some buggy mktime implementations loop.
15288 Give up after 60 seconds; a mktime slower than that
15289 isn't worth using anyway. */
15290 alarm (60);
15291
15292 time_t_max = (! time_t_signed
15293 ? (time_t) -1
15294 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15295 * 2 + 1));
15296 time_t_min = (! time_t_signed
15297 ? (time_t) 0
15298 : time_t_signed_magnitude
15299 ? ~ (time_t) 0
15300 : ~ time_t_max);
15301
15302 delta = time_t_max / 997; /* a suitable prime number */
15303 for (i = 0; i < N_STRINGS; i++)
15304 {
15305 if (tz_strings[i])
15306 putenv (tz_strings[i]);
15307
15308 for (t = 0; t <= time_t_max - delta; t += delta)
15309 if (! mktime_test (t))
15310 result |= 1;
15311 if (! (mktime_test ((time_t) 1)
15312 && mktime_test ((time_t) (60 * 60))
15313 && mktime_test ((time_t) (60 * 60 * 24))))
15314 result |= 2;
15315
15316 for (j = 1; ; j <<= 1)
15317 if (! bigtime_test (j))
15318 result |= 4;
15319 else if (INT_MAX / 2 < j)
15320 break;
15321 if (! bigtime_test (INT_MAX))
15322 result |= 8;
15323 }
15324 if (! irix_6_4_bug ())
15325 result |= 16;
15326 if (! spring_forward_gap ())
15327 result |= 32;
15328 if (! year_2050_test ())
15329 result |= 64;
15330 return result;
15331 }
15332 _ACEOF
15333 if ac_fn_c_try_run "$LINENO"; then :
15334 ac_cv_func_working_mktime=yes
15335 else
15336 ac_cv_func_working_mktime=no
15337 fi
15338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15339 conftest.$ac_objext conftest.beam conftest.$ac_ext
15340 fi
15341
15342 fi
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15344 $as_echo "$ac_cv_func_working_mktime" >&6; }
15345 if test $ac_cv_func_working_mktime = no; then
15346
15347
15348
15349
15350
15351
15352
15353
15354 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
15355
15356 fi
15357
15358 if test $ac_cv_func_working_mktime = no; then
15359 REPLACE_MKTIME=1
15360
15361
15362
15363 else
15364 REPLACE_MKTIME=0
15365 fi
15366
15367
15368
15369
15370 GNULIB_MKTIME=1
15371
15372
15373
15374 # Code from module multiarch:
15375
15376 # Code from module stdbool:
15377
15378
15379
15380 # Define two additional variables used in the Makefile substitution.
15381
15382 if test "$ac_cv_header_stdbool_h" = yes; then
15383 STDBOOL_H=''
15384 else
15385 STDBOOL_H='stdbool.h'
15386 fi
15387
15388
15389 if test "$ac_cv_type__Bool" = yes; then
15390 HAVE__BOOL=1
15391 else
15392 HAVE__BOOL=0
15393 fi
15394
15395
15396 # Code from module stddef:
15397
15398
15399
15400 if test $gt_cv_c_wchar_t = no; then
15401 HAVE_WCHAR_T=0
15402 STDDEF_H=stddef.h
15403 fi
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15405 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15406 if ${gl_cv_decl_null_works+:} false; then :
15407 $as_echo_n "(cached) " >&6
15408 else
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 #include <stddef.h>
15412 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15413
15414 int
15415 main ()
15416 {
15417
15418 ;
15419 return 0;
15420 }
15421 _ACEOF
15422 if ac_fn_c_try_compile "$LINENO"; then :
15423 gl_cv_decl_null_works=yes
15424 else
15425 gl_cv_decl_null_works=no
15426 fi
15427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15428 fi
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15430 $as_echo "$gl_cv_decl_null_works" >&6; }
15431 if test $gl_cv_decl_null_works = no; then
15432 REPLACE_NULL=1
15433 STDDEF_H=stddef.h
15434 fi
15435 if test -n "$STDDEF_H"; then
15436
15437
15438
15439
15440
15441
15442
15443
15444 if test $gl_cv_have_include_next = yes; then
15445 gl_cv_next_stddef_h='<'stddef.h'>'
15446 else
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15448 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15449 if ${gl_cv_next_stddef_h+:} false; then :
15450 $as_echo_n "(cached) " >&6
15451 else
15452
15453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15454 /* end confdefs.h. */
15455 #include <stddef.h>
15456
15457 _ACEOF
15458 case "$host_os" in
15459 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15460 *) gl_absname_cpp="$ac_cpp" ;;
15461 esac
15462 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15463 sed -n '\#/stddef.h#{
15464 s#.*"\(.*/stddef.h\)".*#\1#
15465 s#^/[^/]#//&#
15466 p
15467 q
15468 }'`'"'
15469
15470
15471 fi
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15473 $as_echo "$gl_cv_next_stddef_h" >&6; }
15474 fi
15475 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15476
15477 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15478 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15479 gl_next_as_first_directive='<'stddef.h'>'
15480 else
15481 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15482 gl_next_as_first_directive=$gl_cv_next_stddef_h
15483 fi
15484 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15485
15486
15487
15488
15489 fi
15490
15491 # Code from module stdlib:
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502 if test $gl_cv_have_include_next = yes; then
15503 gl_cv_next_stdlib_h='<'stdlib.h'>'
15504 else
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15506 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
15507 if ${gl_cv_next_stdlib_h+:} false; then :
15508 $as_echo_n "(cached) " >&6
15509 else
15510
15511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512 /* end confdefs.h. */
15513 #include <stdlib.h>
15514
15515 _ACEOF
15516 case "$host_os" in
15517 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15518 *) gl_absname_cpp="$ac_cpp" ;;
15519 esac
15520 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15521 sed -n '\#/stdlib.h#{
15522 s#.*"\(.*/stdlib.h\)".*#\1#
15523 s#^/[^/]#//&#
15524 p
15525 q
15526 }'`'"'
15527
15528
15529 fi
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15531 $as_echo "$gl_cv_next_stdlib_h" >&6; }
15532 fi
15533 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15534
15535 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15536 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15537 gl_next_as_first_directive='<'stdlib.h'>'
15538 else
15539 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15540 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15541 fi
15542 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15543
15544
15545
15546
15547
15548
15549
15550 # Code from module strftime:
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
15562
15563
15564 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15565
15566
15567
15568
15569
15570
15571
15572 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15573
15574
15575
15576 # Code from module time:
15577
15578
15579
15580 # Code from module time_r:
15581
15582
15583
15584
15585
15586
15587
15588 if test $ac_cv_have_decl_localtime_r = no; then
15589 HAVE_DECL_LOCALTIME_R=0
15590 fi
15591
15592
15593 if test $ac_cv_func_localtime_r = yes; then
15594 HAVE_LOCALTIME_R=1
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15596 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15597 if ${gl_cv_time_r_posix+:} false; then :
15598 $as_echo_n "(cached) " >&6
15599 else
15600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15601 /* end confdefs.h. */
15602 #include <time.h>
15603 int
15604 main ()
15605 {
15606 /* We don't need to append 'restrict's to the argument types,
15607 even though the POSIX signature has the 'restrict's,
15608 since C99 says they can't affect type compatibility. */
15609 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15610 if (ptr) return 0;
15611 /* Check the return type is a pointer.
15612 On HP-UX 10 it is 'int'. */
15613 *localtime_r (0, 0);
15614 ;
15615 return 0;
15616 }
15617
15618 _ACEOF
15619 if ac_fn_c_try_compile "$LINENO"; then :
15620 gl_cv_time_r_posix=yes
15621 else
15622 gl_cv_time_r_posix=no
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625
15626 fi
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15628 $as_echo "$gl_cv_time_r_posix" >&6; }
15629 if test $gl_cv_time_r_posix = yes; then
15630 REPLACE_LOCALTIME_R=0
15631 else
15632 REPLACE_LOCALTIME_R=1
15633 fi
15634 else
15635 HAVE_LOCALTIME_R=0
15636 fi
15637 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15638
15639
15640
15641
15642
15643
15644
15645
15646 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15647
15648
15649 :
15650
15651 fi
15652
15653
15654
15655
15656 GNULIB_TIME_R=1
15657
15658
15659
15660 # Code from module unistd:
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674 if test $gl_cv_have_include_next = yes; then
15675 gl_cv_next_unistd_h='<'unistd.h'>'
15676 else
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15678 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15679 if ${gl_cv_next_unistd_h+:} false; then :
15680 $as_echo_n "(cached) " >&6
15681 else
15682
15683 if test $ac_cv_header_unistd_h = yes; then
15684
15685
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15688 #include <unistd.h>
15689
15690 _ACEOF
15691 case "$host_os" in
15692 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15693 *) gl_absname_cpp="$ac_cpp" ;;
15694 esac
15695 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15696 sed -n '\#/unistd.h#{
15697 s#.*"\(.*/unistd.h\)".*#\1#
15698 s#^/[^/]#//&#
15699 p
15700 q
15701 }'`'"'
15702 else
15703 gl_cv_next_unistd_h='<'unistd.h'>'
15704 fi
15705
15706
15707 fi
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15709 $as_echo "$gl_cv_next_unistd_h" >&6; }
15710 fi
15711 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15712
15713 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15714 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15715 gl_next_as_first_directive='<'unistd.h'>'
15716 else
15717 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15718 gl_next_as_first_directive=$gl_cv_next_unistd_h
15719 fi
15720 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15721
15722
15723
15724
15725 if test $ac_cv_header_unistd_h = yes; then
15726 HAVE_UNISTD_H=1
15727 else
15728 HAVE_UNISTD_H=0
15729 fi
15730
15731
15732
15733
15734 # Code from module warn-on-use:
15735 # End of code from modules
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745 gltests_libdeps=
15746 gltests_ltlibdeps=
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756 gl_source_base='tests'
15757 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
15758
15759 gl_module_indicator_condition=$gltests_WITNESS
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769 LIBGNU_LIBDEPS="$gl_libdeps"
15770
15771 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15772
15773
15774
15775 # UNIX98 PTYs.
15776 for ac_func in grantpt
15777 do :
15778 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15779 if test "x$ac_cv_func_grantpt" = xyes; then :
15780 cat >>confdefs.h <<_ACEOF
15781 #define HAVE_GRANTPT 1
15782 _ACEOF
15783
15784 fi
15785 done
15786
15787
15788 # PTY-related GNU extensions.
15789 for ac_func in getpt
15790 do :
15791 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
15792 if test "x$ac_cv_func_getpt" = xyes; then :
15793 cat >>confdefs.h <<_ACEOF
15794 #define HAVE_GETPT 1
15795 _ACEOF
15796
15797 fi
15798 done
15799
15800
15801 # Check this now, so that we will NOT find the above functions in ncurses.
15802 # That is because we have not set up to link ncurses in lib-src.
15803 # It's better to believe a function is not available
15804 # than to expect to find it in ncurses.
15805 # Also we need tputs and friends to be able to build at all.
15806 have_tputs_et_al=true
15807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15808 $as_echo_n "checking for library containing tputs... " >&6; }
15809 if ${ac_cv_search_tputs+:} false; then :
15810 $as_echo_n "(cached) " >&6
15811 else
15812 ac_func_search_save_LIBS=$LIBS
15813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15814 /* end confdefs.h. */
15815
15816 /* Override any GCC internal prototype to avoid an error.
15817 Use char because int might match the return type of a GCC
15818 builtin and then its argument prototype would still apply. */
15819 #ifdef __cplusplus
15820 extern "C"
15821 #endif
15822 char tputs ();
15823 int
15824 main ()
15825 {
15826 return tputs ();
15827 ;
15828 return 0;
15829 }
15830 _ACEOF
15831 for ac_lib in '' ncurses terminfo termcap; do
15832 if test -z "$ac_lib"; then
15833 ac_res="none required"
15834 else
15835 ac_res=-l$ac_lib
15836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15837 fi
15838 if ac_fn_c_try_link "$LINENO"; then :
15839 ac_cv_search_tputs=$ac_res
15840 fi
15841 rm -f core conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext
15843 if ${ac_cv_search_tputs+:} false; then :
15844 break
15845 fi
15846 done
15847 if ${ac_cv_search_tputs+:} false; then :
15848
15849 else
15850 ac_cv_search_tputs=no
15851 fi
15852 rm conftest.$ac_ext
15853 LIBS=$ac_func_search_save_LIBS
15854 fi
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15856 $as_echo "$ac_cv_search_tputs" >&6; }
15857 ac_res=$ac_cv_search_tputs
15858 if test "$ac_res" != no; then :
15859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15860
15861 else
15862 have_tputs_et_al=false
15863 fi
15864
15865 if test "$have_tputs_et_al" != true; then
15866 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
15867 Maybe some development libraries/packages are missing? Try installing
15868 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15869 fi
15870 # Must define this when any termcap library is found.
15871
15872 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15873
15874 ## FIXME This was the cpp logic, but I am not sure it is right.
15875 ## The above test has not necessarily found libncurses.
15876 HAVE_LIBNCURSES=yes
15877
15878 ## Use terminfo instead of termcap?
15879 ## Note only system files NOT using terminfo are:
15880 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15881 ## darwin|gnu without ncurses.
15882 TERMINFO=no
15883 LIBS_TERMCAP=
15884 case "$opsys" in
15885 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15886 ## hpux10-20: Use the system provided termcap(3) library.
15887 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15888 ## is necessary. Otherwise Emacs dumps core when run -nw.
15889 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15890
15891 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15892 ## The ncurses library has been moved out of the System framework in
15893 ## Mac OS X 10.2. So if configure detects it, set the command-line
15894 ## option to use it.
15895 darwin|gnu*)
15896 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15897 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15898 TERMINFO=yes
15899 LIBS_TERMCAP="-lncurses"
15900 fi
15901 ;;
15902
15903 freebsd)
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15905 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15906 if ${emacs_cv_freebsd_terminfo+:} false; then :
15907 $as_echo_n "(cached) " >&6
15908 else
15909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910 /* end confdefs.h. */
15911 #include <osreldate.h>
15912 int
15913 main ()
15914 {
15915 #if __FreeBSD_version < 400000
15916 fail;
15917 #endif
15918
15919 ;
15920 return 0;
15921 }
15922 _ACEOF
15923 if ac_fn_c_try_link "$LINENO"; then :
15924 emacs_cv_freebsd_terminfo=yes
15925 else
15926 emacs_cv_freebsd_terminfo=no
15927 fi
15928 rm -f core conftest.err conftest.$ac_objext \
15929 conftest$ac_exeext conftest.$ac_ext
15930 fi
15931
15932
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15934 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15935
15936 if test $emacs_cv_freebsd_terminfo = yes; then
15937 TERMINFO=yes
15938 LIBS_TERMCAP="-lncurses"
15939 else
15940 LIBS_TERMCAP="-ltermcap"
15941 fi
15942 ;;
15943
15944 netbsd)
15945 if test $ac_cv_search_tputs = -lterminfo; then
15946 TERMINFO=yes
15947 LIBS_TERMCAP="-lterminfo"
15948 else
15949 LIBS_TERMCAP="-ltermcap"
15950 fi
15951 ;;
15952
15953 esac
15954
15955 case "$opsys" in
15956 ## hpux: Make sure we get select from libc rather than from libcurses
15957 ## because libcurses on HPUX 10.10 has a broken version of select.
15958 ## We used to use -lc -lcurses, but this may be cleaner.
15959 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15960
15961 openbsd) LIBS_TERMCAP="-lncurses" ;;
15962
15963 ## Must use system termcap, if we use any termcap. It does special things.
15964 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15965 esac
15966
15967 TERMCAP_OBJ=tparam.o
15968 if test $TERMINFO = yes; then
15969
15970 $as_echo "#define TERMINFO 1" >>confdefs.h
15971
15972
15973 ## Default used to be -ltermcap. Add a case above if need something else.
15974 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15975
15976 TERMCAP_OBJ=terminfo.o
15977 fi
15978
15979
15980
15981
15982 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15983 resolv=no
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986 #include <netinet/in.h>
15987 #include <arpa/nameser.h>
15988 #include <resolv.h>
15989 int
15990 main ()
15991 {
15992 return res_init();
15993 ;
15994 return 0;
15995 }
15996 _ACEOF
15997 if ac_fn_c_try_link "$LINENO"; then :
15998 have_res_init=yes
15999 else
16000 have_res_init=no
16001 fi
16002 rm -f core conftest.err conftest.$ac_objext \
16003 conftest$ac_exeext conftest.$ac_ext
16004 if test "$have_res_init" = no; then
16005 OLIBS="$LIBS"
16006 LIBS="$LIBS -lresolv"
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
16008 $as_echo_n "checking for res_init with -lresolv... " >&6; }
16009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16010 /* end confdefs.h. */
16011 #include <netinet/in.h>
16012 #include <arpa/nameser.h>
16013 #include <resolv.h>
16014 int
16015 main ()
16016 {
16017 return res_init();
16018 ;
16019 return 0;
16020 }
16021 _ACEOF
16022 if ac_fn_c_try_link "$LINENO"; then :
16023 have_res_init=yes
16024 else
16025 have_res_init=no
16026 fi
16027 rm -f core conftest.err conftest.$ac_objext \
16028 conftest$ac_exeext conftest.$ac_ext
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
16030 $as_echo "$have_res_init" >&6; }
16031 if test "$have_res_init" = yes ; then
16032 resolv=yes
16033 fi
16034 LIBS="$OLIBS"
16035 fi
16036
16037 if test "$have_res_init" = yes; then
16038
16039 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
16040
16041 fi
16042
16043 # Do we need the Hesiod library to provide the support routines?
16044 LIBHESIOD=
16045 if test "$with_hesiod" != no ; then
16046 # Don't set $LIBS here -- see comments above. FIXME which comments?
16047 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
16048 if test "x$ac_cv_func_res_send" = xyes; then :
16049
16050 else
16051 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
16052 if test "x$ac_cv_func___res_send" = xyes; then :
16053
16054 else
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
16056 $as_echo_n "checking for res_send in -lresolv... " >&6; }
16057 if ${ac_cv_lib_resolv_res_send+:} false; then :
16058 $as_echo_n "(cached) " >&6
16059 else
16060 ac_check_lib_save_LIBS=$LIBS
16061 LIBS="-lresolv $LIBS"
16062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h. */
16064
16065 /* Override any GCC internal prototype to avoid an error.
16066 Use char because int might match the return type of a GCC
16067 builtin and then its argument prototype would still apply. */
16068 #ifdef __cplusplus
16069 extern "C"
16070 #endif
16071 char res_send ();
16072 int
16073 main ()
16074 {
16075 return res_send ();
16076 ;
16077 return 0;
16078 }
16079 _ACEOF
16080 if ac_fn_c_try_link "$LINENO"; then :
16081 ac_cv_lib_resolv_res_send=yes
16082 else
16083 ac_cv_lib_resolv_res_send=no
16084 fi
16085 rm -f core conftest.err conftest.$ac_objext \
16086 conftest$ac_exeext conftest.$ac_ext
16087 LIBS=$ac_check_lib_save_LIBS
16088 fi
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
16090 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
16091 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
16092 resolv=yes
16093 else
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
16095 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
16096 if ${ac_cv_lib_resolv___res_send+:} false; then :
16097 $as_echo_n "(cached) " >&6
16098 else
16099 ac_check_lib_save_LIBS=$LIBS
16100 LIBS="-lresolv $LIBS"
16101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16102 /* end confdefs.h. */
16103
16104 /* Override any GCC internal prototype to avoid an error.
16105 Use char because int might match the return type of a GCC
16106 builtin and then its argument prototype would still apply. */
16107 #ifdef __cplusplus
16108 extern "C"
16109 #endif
16110 char __res_send ();
16111 int
16112 main ()
16113 {
16114 return __res_send ();
16115 ;
16116 return 0;
16117 }
16118 _ACEOF
16119 if ac_fn_c_try_link "$LINENO"; then :
16120 ac_cv_lib_resolv___res_send=yes
16121 else
16122 ac_cv_lib_resolv___res_send=no
16123 fi
16124 rm -f core conftest.err conftest.$ac_objext \
16125 conftest$ac_exeext conftest.$ac_ext
16126 LIBS=$ac_check_lib_save_LIBS
16127 fi
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
16129 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
16130 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
16131 resolv=yes
16132 fi
16133
16134 fi
16135
16136 fi
16137
16138 fi
16139
16140 if test "$resolv" = yes ; then
16141 RESOLVLIB=-lresolv
16142 else
16143 RESOLVLIB=
16144 fi
16145 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
16146 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
16147
16148 else
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
16150 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
16151 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
16152 $as_echo_n "(cached) " >&6
16153 else
16154 ac_check_lib_save_LIBS=$LIBS
16155 LIBS="-lhesiod $RESOLVLIB $LIBS"
16156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158
16159 /* Override any GCC internal prototype to avoid an error.
16160 Use char because int might match the return type of a GCC
16161 builtin and then its argument prototype would still apply. */
16162 #ifdef __cplusplus
16163 extern "C"
16164 #endif
16165 char hes_getmailhost ();
16166 int
16167 main ()
16168 {
16169 return hes_getmailhost ();
16170 ;
16171 return 0;
16172 }
16173 _ACEOF
16174 if ac_fn_c_try_link "$LINENO"; then :
16175 ac_cv_lib_hesiod_hes_getmailhost=yes
16176 else
16177 ac_cv_lib_hesiod_hes_getmailhost=no
16178 fi
16179 rm -f core conftest.err conftest.$ac_objext \
16180 conftest$ac_exeext conftest.$ac_ext
16181 LIBS=$ac_check_lib_save_LIBS
16182 fi
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
16184 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
16185 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
16186 hesiod=yes
16187 else
16188 :
16189 fi
16190
16191 fi
16192
16193
16194 if test x"$hesiod" = xyes; then
16195
16196 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
16197
16198 LIBHESIOD=-lhesiod
16199 fi
16200 fi
16201
16202
16203 # Do we need libresolv (due to res_init or Hesiod)?
16204 if test "$resolv" = yes ; then
16205
16206 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
16207
16208 LIBRESOLV=-lresolv
16209 else
16210 LIBRESOLV=
16211 fi
16212
16213
16214 # These tell us which Kerberos-related libraries to use.
16215 COM_ERRLIB=
16216 CRYPTOLIB=
16217 KRB5LIB=
16218 DESLIB=
16219 KRB4LIB=
16220
16221 if test "${with_kerberos}" != no; then
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
16223 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
16224 if ${ac_cv_lib_com_err_com_err+:} false; then :
16225 $as_echo_n "(cached) " >&6
16226 else
16227 ac_check_lib_save_LIBS=$LIBS
16228 LIBS="-lcom_err $LIBS"
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16231
16232 /* Override any GCC internal prototype to avoid an error.
16233 Use char because int might match the return type of a GCC
16234 builtin and then its argument prototype would still apply. */
16235 #ifdef __cplusplus
16236 extern "C"
16237 #endif
16238 char com_err ();
16239 int
16240 main ()
16241 {
16242 return com_err ();
16243 ;
16244 return 0;
16245 }
16246 _ACEOF
16247 if ac_fn_c_try_link "$LINENO"; then :
16248 ac_cv_lib_com_err_com_err=yes
16249 else
16250 ac_cv_lib_com_err_com_err=no
16251 fi
16252 rm -f core conftest.err conftest.$ac_objext \
16253 conftest$ac_exeext conftest.$ac_ext
16254 LIBS=$ac_check_lib_save_LIBS
16255 fi
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
16257 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
16258 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
16259 have_com_err=yes
16260 else
16261 have_com_err=no
16262 fi
16263
16264 if test $have_com_err = yes; then
16265 COM_ERRLIB=-lcom_err
16266 LIBS="$COM_ERRLIB $LIBS"
16267
16268 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
16269
16270 fi
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
16272 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
16273 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
16274 $as_echo_n "(cached) " >&6
16275 else
16276 ac_check_lib_save_LIBS=$LIBS
16277 LIBS="-lcrypto $LIBS"
16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16279 /* end confdefs.h. */
16280
16281 /* Override any GCC internal prototype to avoid an error.
16282 Use char because int might match the return type of a GCC
16283 builtin and then its argument prototype would still apply. */
16284 #ifdef __cplusplus
16285 extern "C"
16286 #endif
16287 char mit_des_cbc_encrypt ();
16288 int
16289 main ()
16290 {
16291 return mit_des_cbc_encrypt ();
16292 ;
16293 return 0;
16294 }
16295 _ACEOF
16296 if ac_fn_c_try_link "$LINENO"; then :
16297 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
16298 else
16299 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
16300 fi
16301 rm -f core conftest.err conftest.$ac_objext \
16302 conftest$ac_exeext conftest.$ac_ext
16303 LIBS=$ac_check_lib_save_LIBS
16304 fi
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16306 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
16307 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
16308 have_crypto=yes
16309 else
16310 have_crypto=no
16311 fi
16312
16313 if test $have_crypto = yes; then
16314 CRYPTOLIB=-lcrypto
16315 LIBS="$CRYPTOLIB $LIBS"
16316
16317 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16318
16319 fi
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16321 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
16322 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
16323 $as_echo_n "(cached) " >&6
16324 else
16325 ac_check_lib_save_LIBS=$LIBS
16326 LIBS="-lk5crypto $LIBS"
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16329
16330 /* Override any GCC internal prototype to avoid an error.
16331 Use char because int might match the return type of a GCC
16332 builtin and then its argument prototype would still apply. */
16333 #ifdef __cplusplus
16334 extern "C"
16335 #endif
16336 char mit_des_cbc_encrypt ();
16337 int
16338 main ()
16339 {
16340 return mit_des_cbc_encrypt ();
16341 ;
16342 return 0;
16343 }
16344 _ACEOF
16345 if ac_fn_c_try_link "$LINENO"; then :
16346 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
16347 else
16348 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
16349 fi
16350 rm -f core conftest.err conftest.$ac_objext \
16351 conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16353 fi
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16355 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
16356 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
16357 have_k5crypto=yes
16358 else
16359 have_k5crypto=no
16360 fi
16361
16362 if test $have_k5crypto = yes; then
16363 CRYPTOLIB=-lk5crypto
16364 LIBS="$CRYPTOLIB $LIBS"
16365
16366 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16367
16368 fi
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16370 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16371 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
16372 $as_echo_n "(cached) " >&6
16373 else
16374 ac_check_lib_save_LIBS=$LIBS
16375 LIBS="-lkrb5 $LIBS"
16376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16377 /* end confdefs.h. */
16378
16379 /* Override any GCC internal prototype to avoid an error.
16380 Use char because int might match the return type of a GCC
16381 builtin and then its argument prototype would still apply. */
16382 #ifdef __cplusplus
16383 extern "C"
16384 #endif
16385 char krb5_init_context ();
16386 int
16387 main ()
16388 {
16389 return krb5_init_context ();
16390 ;
16391 return 0;
16392 }
16393 _ACEOF
16394 if ac_fn_c_try_link "$LINENO"; then :
16395 ac_cv_lib_krb5_krb5_init_context=yes
16396 else
16397 ac_cv_lib_krb5_krb5_init_context=no
16398 fi
16399 rm -f core conftest.err conftest.$ac_objext \
16400 conftest$ac_exeext conftest.$ac_ext
16401 LIBS=$ac_check_lib_save_LIBS
16402 fi
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16404 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16405 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
16406 have_krb5=yes
16407 else
16408 have_krb5=no
16409 fi
16410
16411 if test $have_krb5=yes; then
16412 KRB5LIB=-lkrb5
16413 LIBS="$KRB5LIB $LIBS"
16414
16415 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16416
16417 fi
16418 if test "${with_kerberos5}" = no; then
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16420 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16421 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
16422 $as_echo_n "(cached) " >&6
16423 else
16424 ac_check_lib_save_LIBS=$LIBS
16425 LIBS="-ldes425 $LIBS"
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428
16429 /* Override any GCC internal prototype to avoid an error.
16430 Use char because int might match the return type of a GCC
16431 builtin and then its argument prototype would still apply. */
16432 #ifdef __cplusplus
16433 extern "C"
16434 #endif
16435 char des_cbc_encrypt ();
16436 int
16437 main ()
16438 {
16439 return des_cbc_encrypt ();
16440 ;
16441 return 0;
16442 }
16443 _ACEOF
16444 if ac_fn_c_try_link "$LINENO"; then :
16445 ac_cv_lib_des425_des_cbc_encrypt=yes
16446 else
16447 ac_cv_lib_des425_des_cbc_encrypt=no
16448 fi
16449 rm -f core conftest.err conftest.$ac_objext \
16450 conftest$ac_exeext conftest.$ac_ext
16451 LIBS=$ac_check_lib_save_LIBS
16452 fi
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16454 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16455 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
16456 have_des425=yes
16457 else
16458 have_des425=no
16459 fi
16460
16461 if test $have_des425 = yes; then
16462 DESLIB=-ldes425
16463 LIBS="$DESLIB $LIBS"
16464
16465 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16466
16467 else
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16469 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16470 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16471 $as_echo_n "(cached) " >&6
16472 else
16473 ac_check_lib_save_LIBS=$LIBS
16474 LIBS="-ldes $LIBS"
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16481 #ifdef __cplusplus
16482 extern "C"
16483 #endif
16484 char des_cbc_encrypt ();
16485 int
16486 main ()
16487 {
16488 return des_cbc_encrypt ();
16489 ;
16490 return 0;
16491 }
16492 _ACEOF
16493 if ac_fn_c_try_link "$LINENO"; then :
16494 ac_cv_lib_des_des_cbc_encrypt=yes
16495 else
16496 ac_cv_lib_des_des_cbc_encrypt=no
16497 fi
16498 rm -f core conftest.err conftest.$ac_objext \
16499 conftest$ac_exeext conftest.$ac_ext
16500 LIBS=$ac_check_lib_save_LIBS
16501 fi
16502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16503 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16504 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16505 have_des=yes
16506 else
16507 have_des=no
16508 fi
16509
16510 if test $have_des = yes; then
16511 DESLIB=-ldes
16512 LIBS="$DESLIB $LIBS"
16513
16514 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16515
16516 fi
16517 fi
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16519 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16520 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
16521 $as_echo_n "(cached) " >&6
16522 else
16523 ac_check_lib_save_LIBS=$LIBS
16524 LIBS="-lkrb4 $LIBS"
16525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16526 /* end confdefs.h. */
16527
16528 /* Override any GCC internal prototype to avoid an error.
16529 Use char because int might match the return type of a GCC
16530 builtin and then its argument prototype would still apply. */
16531 #ifdef __cplusplus
16532 extern "C"
16533 #endif
16534 char krb_get_cred ();
16535 int
16536 main ()
16537 {
16538 return krb_get_cred ();
16539 ;
16540 return 0;
16541 }
16542 _ACEOF
16543 if ac_fn_c_try_link "$LINENO"; then :
16544 ac_cv_lib_krb4_krb_get_cred=yes
16545 else
16546 ac_cv_lib_krb4_krb_get_cred=no
16547 fi
16548 rm -f core conftest.err conftest.$ac_objext \
16549 conftest$ac_exeext conftest.$ac_ext
16550 LIBS=$ac_check_lib_save_LIBS
16551 fi
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16553 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16554 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
16555 have_krb4=yes
16556 else
16557 have_krb4=no
16558 fi
16559
16560 if test $have_krb4 = yes; then
16561 KRB4LIB=-lkrb4
16562 LIBS="$KRB4LIB $LIBS"
16563
16564 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16565
16566 else
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16568 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16569 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
16570 $as_echo_n "(cached) " >&6
16571 else
16572 ac_check_lib_save_LIBS=$LIBS
16573 LIBS="-lkrb $LIBS"
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16576
16577 /* Override any GCC internal prototype to avoid an error.
16578 Use char because int might match the return type of a GCC
16579 builtin and then its argument prototype would still apply. */
16580 #ifdef __cplusplus
16581 extern "C"
16582 #endif
16583 char krb_get_cred ();
16584 int
16585 main ()
16586 {
16587 return krb_get_cred ();
16588 ;
16589 return 0;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_link "$LINENO"; then :
16593 ac_cv_lib_krb_krb_get_cred=yes
16594 else
16595 ac_cv_lib_krb_krb_get_cred=no
16596 fi
16597 rm -f core conftest.err conftest.$ac_objext \
16598 conftest$ac_exeext conftest.$ac_ext
16599 LIBS=$ac_check_lib_save_LIBS
16600 fi
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16602 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16603 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
16604 have_krb=yes
16605 else
16606 have_krb=no
16607 fi
16608
16609 if test $have_krb = yes; then
16610 KRB4LIB=-lkrb
16611 LIBS="$KRB4LIB $LIBS"
16612
16613 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16614
16615 fi
16616 fi
16617 fi
16618
16619 if test "${with_kerberos5}" != no; then
16620 for ac_header in krb5.h
16621 do :
16622 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16623 if test "x$ac_cv_header_krb5_h" = xyes; then :
16624 cat >>confdefs.h <<_ACEOF
16625 #define HAVE_KRB5_H 1
16626 _ACEOF
16627 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16628 "
16629 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
16630
16631 cat >>confdefs.h <<_ACEOF
16632 #define HAVE_KRB5_ERROR_TEXT 1
16633 _ACEOF
16634
16635
16636 fi
16637 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16638 "
16639 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
16640
16641 cat >>confdefs.h <<_ACEOF
16642 #define HAVE_KRB5_ERROR_E_TEXT 1
16643 _ACEOF
16644
16645
16646 fi
16647
16648 fi
16649
16650 done
16651
16652 else
16653 for ac_header in des.h
16654 do :
16655 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16656 if test "x$ac_cv_header_des_h" = xyes; then :
16657 cat >>confdefs.h <<_ACEOF
16658 #define HAVE_DES_H 1
16659 _ACEOF
16660
16661 else
16662 for ac_header in kerberosIV/des.h
16663 do :
16664 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16665 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
16666 cat >>confdefs.h <<_ACEOF
16667 #define HAVE_KERBEROSIV_DES_H 1
16668 _ACEOF
16669
16670 else
16671 for ac_header in kerberos/des.h
16672 do :
16673 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16674 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
16675 cat >>confdefs.h <<_ACEOF
16676 #define HAVE_KERBEROS_DES_H 1
16677 _ACEOF
16678
16679 fi
16680
16681 done
16682
16683 fi
16684
16685 done
16686
16687 fi
16688
16689 done
16690
16691 for ac_header in krb.h
16692 do :
16693 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16694 if test "x$ac_cv_header_krb_h" = xyes; then :
16695 cat >>confdefs.h <<_ACEOF
16696 #define HAVE_KRB_H 1
16697 _ACEOF
16698
16699 else
16700 for ac_header in kerberosIV/krb.h
16701 do :
16702 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16703 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
16704 cat >>confdefs.h <<_ACEOF
16705 #define HAVE_KERBEROSIV_KRB_H 1
16706 _ACEOF
16707
16708 else
16709 for ac_header in kerberos/krb.h
16710 do :
16711 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16712 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
16713 cat >>confdefs.h <<_ACEOF
16714 #define HAVE_KERBEROS_KRB_H 1
16715 _ACEOF
16716
16717 fi
16718
16719 done
16720
16721 fi
16722
16723 done
16724
16725 fi
16726
16727 done
16728
16729 fi
16730 for ac_header in com_err.h
16731 do :
16732 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16733 if test "x$ac_cv_header_com_err_h" = xyes; then :
16734 cat >>confdefs.h <<_ACEOF
16735 #define HAVE_COM_ERR_H 1
16736 _ACEOF
16737
16738 fi
16739
16740 done
16741
16742 fi
16743
16744
16745
16746
16747
16748
16749
16750 # Solaris requires -lintl if you want strerror (which calls dgettext)
16751 # to return localized messages.
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16753 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16754 if ${ac_cv_lib_intl_dgettext+:} false; then :
16755 $as_echo_n "(cached) " >&6
16756 else
16757 ac_check_lib_save_LIBS=$LIBS
16758 LIBS="-lintl $LIBS"
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16761
16762 /* Override any GCC internal prototype to avoid an error.
16763 Use char because int might match the return type of a GCC
16764 builtin and then its argument prototype would still apply. */
16765 #ifdef __cplusplus
16766 extern "C"
16767 #endif
16768 char dgettext ();
16769 int
16770 main ()
16771 {
16772 return dgettext ();
16773 ;
16774 return 0;
16775 }
16776 _ACEOF
16777 if ac_fn_c_try_link "$LINENO"; then :
16778 ac_cv_lib_intl_dgettext=yes
16779 else
16780 ac_cv_lib_intl_dgettext=no
16781 fi
16782 rm -f core conftest.err conftest.$ac_objext \
16783 conftest$ac_exeext conftest.$ac_ext
16784 LIBS=$ac_check_lib_save_LIBS
16785 fi
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16787 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16788 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
16789 cat >>confdefs.h <<_ACEOF
16790 #define HAVE_LIBINTL 1
16791 _ACEOF
16792
16793 LIBS="-lintl $LIBS"
16794
16795 fi
16796
16797
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16799 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16800 if ${emacs_cv_localtime_cache+:} false; then :
16801 $as_echo_n "(cached) " >&6
16802 else
16803 if test x$ac_cv_func_tzset = xyes; then
16804 if test "$cross_compiling" = yes; then :
16805 # If we have tzset, assume the worst when cross-compiling.
16806 emacs_cv_localtime_cache=yes
16807 else
16808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16809 /* end confdefs.h. */
16810 #include <time.h>
16811 char TZ_GMT0[] = "TZ=GMT0";
16812 char TZ_PST8[] = "TZ=PST8";
16813 main()
16814 {
16815 time_t now = time ((time_t *) 0);
16816 int hour_GMT0, hour_unset;
16817 if (putenv (TZ_GMT0) != 0)
16818 exit (1);
16819 hour_GMT0 = localtime (&now)->tm_hour;
16820 unsetenv("TZ");
16821 hour_unset = localtime (&now)->tm_hour;
16822 if (putenv (TZ_PST8) != 0)
16823 exit (1);
16824 if (localtime (&now)->tm_hour == hour_GMT0)
16825 exit (1);
16826 unsetenv("TZ");
16827 if (localtime (&now)->tm_hour != hour_unset)
16828 exit (1);
16829 exit (0);
16830 }
16831 _ACEOF
16832 if ac_fn_c_try_run "$LINENO"; then :
16833 emacs_cv_localtime_cache=no
16834 else
16835 emacs_cv_localtime_cache=yes
16836 fi
16837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16838 conftest.$ac_objext conftest.beam conftest.$ac_ext
16839 fi
16840
16841 else
16842 # If we lack tzset, report that localtime does not cache TZ,
16843 # since we can't invalidate the cache if we don't have tzset.
16844 emacs_cv_localtime_cache=no
16845 fi
16846 fi
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16848 $as_echo "$emacs_cv_localtime_cache" >&6; }
16849 if test $emacs_cv_localtime_cache = yes; then
16850
16851 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16852
16853 fi
16854
16855 if test "x$HAVE_TIMEVAL" = xyes; then
16856 for ac_func in gettimeofday
16857 do :
16858 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16859 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16860 cat >>confdefs.h <<_ACEOF
16861 #define HAVE_GETTIMEOFDAY 1
16862 _ACEOF
16863
16864 fi
16865 done
16866
16867 if test $ac_cv_func_gettimeofday = yes; then
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16869 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16870 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
16871 $as_echo_n "(cached) " >&6
16872 else
16873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16874 /* end confdefs.h. */
16875
16876 #ifdef TIME_WITH_SYS_TIME
16877 #include <sys/time.h>
16878 #include <time.h>
16879 #else
16880 #ifdef HAVE_SYS_TIME_H
16881 #include <sys/time.h>
16882 #else
16883 #include <time.h>
16884 #endif
16885 #endif
16886 int
16887 main ()
16888 {
16889 struct timeval time;
16890 gettimeofday (&time, 0);
16891 ;
16892 return 0;
16893 }
16894 _ACEOF
16895 if ac_fn_c_try_compile "$LINENO"; then :
16896 emacs_cv_gettimeofday_two_arguments=yes
16897 else
16898 emacs_cv_gettimeofday_two_arguments=no
16899 fi
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16901 fi
16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16903 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16904 if test $emacs_cv_gettimeofday_two_arguments = no; then
16905
16906 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16907
16908 fi
16909 fi
16910 fi
16911
16912 ok_so_far=yes
16913 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16914 if test "x$ac_cv_func_socket" = xyes; then :
16915
16916 else
16917 ok_so_far=no
16918 fi
16919
16920 if test $ok_so_far = yes; then
16921 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16922 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16923
16924 else
16925 ok_so_far=no
16926 fi
16927
16928
16929 fi
16930 if test $ok_so_far = yes; then
16931 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16932 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16933
16934 else
16935 ok_so_far=no
16936 fi
16937
16938
16939 fi
16940 if test $ok_so_far = yes; then
16941
16942 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16943
16944 fi
16945
16946 if test -f /usr/lpp/X11/bin/smt.exp; then
16947
16948 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16949
16950 fi
16951
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16953 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16954 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16956 $as_echo "yes" >&6; }
16957
16958 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16959
16960 else
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16962 $as_echo "no" >&6; }
16963 fi
16964
16965 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16966 if test "x$ac_cv_type_pid_t" = xyes; then :
16967
16968 else
16969
16970 cat >>confdefs.h <<_ACEOF
16971 #define pid_t int
16972 _ACEOF
16973
16974 fi
16975
16976 for ac_header in vfork.h
16977 do :
16978 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16979 if test "x$ac_cv_header_vfork_h" = xyes; then :
16980 cat >>confdefs.h <<_ACEOF
16981 #define HAVE_VFORK_H 1
16982 _ACEOF
16983
16984 fi
16985
16986 done
16987
16988 for ac_func in fork vfork
16989 do :
16990 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16991 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16992 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16993 cat >>confdefs.h <<_ACEOF
16994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16995 _ACEOF
16996
16997 fi
16998 done
16999
17000 if test "x$ac_cv_func_fork" = xyes; then
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
17002 $as_echo_n "checking for working fork... " >&6; }
17003 if ${ac_cv_func_fork_works+:} false; then :
17004 $as_echo_n "(cached) " >&6
17005 else
17006 if test "$cross_compiling" = yes; then :
17007 ac_cv_func_fork_works=cross
17008 else
17009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17010 /* end confdefs.h. */
17011 $ac_includes_default
17012 int
17013 main ()
17014 {
17015
17016 /* By Ruediger Kuhlmann. */
17017 return fork () < 0;
17018
17019 ;
17020 return 0;
17021 }
17022 _ACEOF
17023 if ac_fn_c_try_run "$LINENO"; then :
17024 ac_cv_func_fork_works=yes
17025 else
17026 ac_cv_func_fork_works=no
17027 fi
17028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17029 conftest.$ac_objext conftest.beam conftest.$ac_ext
17030 fi
17031
17032 fi
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
17034 $as_echo "$ac_cv_func_fork_works" >&6; }
17035
17036 else
17037 ac_cv_func_fork_works=$ac_cv_func_fork
17038 fi
17039 if test "x$ac_cv_func_fork_works" = xcross; then
17040 case $host in
17041 *-*-amigaos* | *-*-msdosdjgpp*)
17042 # Override, as these systems have only a dummy fork() stub
17043 ac_cv_func_fork_works=no
17044 ;;
17045 *)
17046 ac_cv_func_fork_works=yes
17047 ;;
17048 esac
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17050 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17051 fi
17052 ac_cv_func_vfork_works=$ac_cv_func_vfork
17053 if test "x$ac_cv_func_vfork" = xyes; then
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
17055 $as_echo_n "checking for working vfork... " >&6; }
17056 if ${ac_cv_func_vfork_works+:} false; then :
17057 $as_echo_n "(cached) " >&6
17058 else
17059 if test "$cross_compiling" = yes; then :
17060 ac_cv_func_vfork_works=cross
17061 else
17062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17063 /* end confdefs.h. */
17064 /* Thanks to Paul Eggert for this test. */
17065 $ac_includes_default
17066 #include <sys/wait.h>
17067 #ifdef HAVE_VFORK_H
17068 # include <vfork.h>
17069 #endif
17070 /* On some sparc systems, changes by the child to local and incoming
17071 argument registers are propagated back to the parent. The compiler
17072 is told about this with #include <vfork.h>, but some compilers
17073 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17074 static variable whose address is put into a register that is
17075 clobbered by the vfork. */
17076 static void
17077 #ifdef __cplusplus
17078 sparc_address_test (int arg)
17079 # else
17080 sparc_address_test (arg) int arg;
17081 #endif
17082 {
17083 static pid_t child;
17084 if (!child) {
17085 child = vfork ();
17086 if (child < 0) {
17087 perror ("vfork");
17088 _exit(2);
17089 }
17090 if (!child) {
17091 arg = getpid();
17092 write(-1, "", 0);
17093 _exit (arg);
17094 }
17095 }
17096 }
17097
17098 int
17099 main ()
17100 {
17101 pid_t parent = getpid ();
17102 pid_t child;
17103
17104 sparc_address_test (0);
17105
17106 child = vfork ();
17107
17108 if (child == 0) {
17109 /* Here is another test for sparc vfork register problems. This
17110 test uses lots of local variables, at least as many local
17111 variables as main has allocated so far including compiler
17112 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17113 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17114 reuse the register of parent for one of the local variables,
17115 since it will think that parent can't possibly be used any more
17116 in this routine. Assigning to the local variable will thus
17117 munge parent in the parent process. */
17118 pid_t
17119 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17120 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17121 /* Convince the compiler that p..p7 are live; otherwise, it might
17122 use the same hardware register for all 8 local variables. */
17123 if (p != p1 || p != p2 || p != p3 || p != p4
17124 || p != p5 || p != p6 || p != p7)
17125 _exit(1);
17126
17127 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17128 from child file descriptors. If the child closes a descriptor
17129 before it execs or exits, this munges the parent's descriptor
17130 as well. Test for this by closing stdout in the child. */
17131 _exit(close(fileno(stdout)) != 0);
17132 } else {
17133 int status;
17134 struct stat st;
17135
17136 while (wait(&status) != child)
17137 ;
17138 return (
17139 /* Was there some problem with vforking? */
17140 child < 0
17141
17142 /* Did the child fail? (This shouldn't happen.) */
17143 || status
17144
17145 /* Did the vfork/compiler bug occur? */
17146 || parent != getpid()
17147
17148 /* Did the file descriptor bug occur? */
17149 || fstat(fileno(stdout), &st) != 0
17150 );
17151 }
17152 }
17153 _ACEOF
17154 if ac_fn_c_try_run "$LINENO"; then :
17155 ac_cv_func_vfork_works=yes
17156 else
17157 ac_cv_func_vfork_works=no
17158 fi
17159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17160 conftest.$ac_objext conftest.beam conftest.$ac_ext
17161 fi
17162
17163 fi
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
17165 $as_echo "$ac_cv_func_vfork_works" >&6; }
17166
17167 fi;
17168 if test "x$ac_cv_func_fork_works" = xcross; then
17169 ac_cv_func_vfork_works=$ac_cv_func_vfork
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17171 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17172 fi
17173
17174 if test "x$ac_cv_func_vfork_works" = xyes; then
17175
17176 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
17177
17178 else
17179
17180 $as_echo "#define vfork fork" >>confdefs.h
17181
17182 fi
17183 if test "x$ac_cv_func_fork_works" = xyes; then
17184
17185 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
17186
17187 fi
17188
17189
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
17191 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
17192 if ${emacs_cv_langinfo_codeset+:} false; then :
17193 $as_echo_n "(cached) " >&6
17194 else
17195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17196 /* end confdefs.h. */
17197 #include <langinfo.h>
17198 int
17199 main ()
17200 {
17201 char* cs = nl_langinfo(CODESET);
17202 ;
17203 return 0;
17204 }
17205 _ACEOF
17206 if ac_fn_c_try_link "$LINENO"; then :
17207 emacs_cv_langinfo_codeset=yes
17208 else
17209 emacs_cv_langinfo_codeset=no
17210 fi
17211 rm -f core conftest.err conftest.$ac_objext \
17212 conftest$ac_exeext conftest.$ac_ext
17213
17214 fi
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
17216 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
17217 if test $emacs_cv_langinfo_codeset = yes; then
17218
17219 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
17220
17221 fi
17222
17223 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17224 if test "x$ac_cv_type_size_t" = xyes; then :
17225
17226 cat >>confdefs.h <<_ACEOF
17227 #define HAVE_SIZE_T 1
17228 _ACEOF
17229
17230
17231 fi
17232
17233
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
17235 $as_echo_n "checking for mbstate_t... " >&6; }
17236 if ${ac_cv_type_mbstate_t+:} false; then :
17237 $as_echo_n "(cached) " >&6
17238 else
17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17241 $ac_includes_default
17242 # include <wchar.h>
17243 int
17244 main ()
17245 {
17246 mbstate_t x; return sizeof x;
17247 ;
17248 return 0;
17249 }
17250 _ACEOF
17251 if ac_fn_c_try_compile "$LINENO"; then :
17252 ac_cv_type_mbstate_t=yes
17253 else
17254 ac_cv_type_mbstate_t=no
17255 fi
17256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17257 fi
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
17259 $as_echo "$ac_cv_type_mbstate_t" >&6; }
17260 if test $ac_cv_type_mbstate_t = yes; then
17261
17262 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
17263
17264 else
17265
17266 $as_echo "#define mbstate_t int" >>confdefs.h
17267
17268 fi
17269
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
17271 $as_echo_n "checking for C restricted array declarations... " >&6; }
17272 if ${emacs_cv_c_restrict_arr+:} false; then :
17273 $as_echo_n "(cached) " >&6
17274 else
17275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17276 /* end confdefs.h. */
17277 void fred (int x[__restrict]);
17278 int
17279 main ()
17280 {
17281
17282 ;
17283 return 0;
17284 }
17285 _ACEOF
17286 if ac_fn_c_try_compile "$LINENO"; then :
17287 emacs_cv_c_restrict_arr=yes
17288 else
17289 emacs_cv_c_restrict_arr=no
17290 fi
17291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17292 fi
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
17294 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
17295 if test "$emacs_cv_c_restrict_arr" = yes; then
17296
17297 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
17298
17299 fi
17300
17301
17302
17303 # Set up the CFLAGS for real compilation, so we can substitute it.
17304 CFLAGS="$REAL_CFLAGS"
17305 CPPFLAGS="$REAL_CPPFLAGS"
17306
17307 ## Hack to detect a buggy GCC version.
17308 if test "x$GCC" = xyes \
17309 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17310 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17311 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17312 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17313 fi
17314
17315 version=$PACKAGE_VERSION
17316
17317 ### Specify what sort of things we'll be editing into Makefile and config.h.
17318 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17319
17320
17321 ## Unused?
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17343 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17344 ## end of LIBX_BASE, but nothing ever set it.
17345
17346
17347
17348
17349 ## Used in lwlib/Makefile.in.
17350
17351 if test -n "${machfile}"; then
17352 M_FILE="\$(srcdir)/${machfile}"
17353 else
17354 M_FILE=
17355 fi
17356 S_FILE="\$(srcdir)/${opsysfile}"
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367 cat >>confdefs.h <<_ACEOF
17368 #define EMACS_CONFIGURATION "${canonical}"
17369 _ACEOF
17370
17371
17372 cat >>confdefs.h <<_ACEOF
17373 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17374 _ACEOF
17375
17376 if test -n "$machfile"; then
17377
17378 cat >>confdefs.h <<_ACEOF
17379 #define config_machfile "${machfile}"
17380 _ACEOF
17381
17382 fi
17383
17384 cat >>confdefs.h <<_ACEOF
17385 #define config_opsysfile "${opsysfile}"
17386 _ACEOF
17387
17388
17389 XMENU_OBJ=
17390 XOBJ=
17391 FONT_OBJ=
17392 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17393
17394 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17395
17396 XMENU_OBJ=xmenu.o
17397 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17398 FONT_OBJ=xfont.o
17399 if test "$HAVE_XFT" = "yes"; then
17400 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17401 elif test "$HAVE_FREETYPE" = "yes"; then
17402 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17403 fi
17404
17405 fi
17406
17407
17408
17409
17410 WIDGET_OBJ=
17411 MOTIF_LIBW=
17412 if test "${USE_X_TOOLKIT}" != "none" ; then
17413 WIDGET_OBJ=widget.o
17414
17415 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17416
17417 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17418
17419 $as_echo "#define USE_LUCID 1" >>confdefs.h
17420
17421 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17422
17423 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17424
17425 MOTIF_LIBW=-lXm
17426 case "$opsys" in
17427 gnu-linux)
17428 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17429 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17430 ;;
17431
17432 unixware)
17433 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17434 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17435 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17436 ;;
17437
17438 aix4-2)
17439 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17440 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17441 ;;
17442 esac
17443 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17444 fi
17445 fi
17446
17447
17448 TOOLKIT_LIBW=
17449 case "$USE_X_TOOLKIT" in
17450 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17451 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17452 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17453 esac
17454
17455
17456 if test "$USE_X_TOOLKIT" = "none"; then
17457 LIBXT_OTHER="\$(LIBXSM)"
17458 OLDXMENU_TARGET="really-oldXMenu"
17459 else
17460 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17461 OLDXMENU_TARGET="really-lwlib"
17462 fi
17463
17464
17465 ## The X Menu stuff is present in the X10 distribution, but missing
17466 ## from X11. If we have X10, just use the installed library;
17467 ## otherwise, use our own copy.
17468 if test "${HAVE_X11}" = "yes" ; then
17469
17470 $as_echo "#define HAVE_X11 1" >>confdefs.h
17471
17472
17473 if test "$USE_X_TOOLKIT" = "none"; then
17474 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17475 else
17476 OLDXMENU="\${lwlibdir}/liblw.a"
17477 fi
17478 LIBXMENU="\$(OLDXMENU)"
17479 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17480 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17481 else
17482 ## For a syntactically valid Makefile; not actually used for anything.
17483 ## See comments in src/Makefile.in.
17484 OLDXMENU=nothing
17485 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17486 if test "${HAVE_X_WINDOWS}" = "yes"; then
17487 LIBXMENU="-lXMenu"
17488 else
17489 LIBXMENU=
17490 fi
17491 LIBX_OTHER=
17492 OLDXMENU_DEPS=
17493 fi
17494
17495 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17496 OLDXMENU_TARGET=
17497 OLDXMENU=nothing
17498 LIBXMENU=
17499 OLDXMENU_DEPS=
17500 fi
17501
17502
17503
17504
17505
17506
17507
17508 if test "${HAVE_MENUS}" = "yes" ; then
17509
17510 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17511
17512 fi
17513
17514 if test "${GNU_MALLOC}" = "yes" ; then
17515
17516 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17517
17518 fi
17519
17520 RALLOC_OBJ=
17521 if test "${REL_ALLOC}" = "yes" ; then
17522
17523 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17524
17525
17526 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17527 fi
17528
17529
17530 if test "$opsys" = "cygwin"; then
17531 CYGWIN_OBJ="sheap.o"
17532 ## Cygwin differs because of its unexec().
17533 PRE_ALLOC_OBJ=
17534 POST_ALLOC_OBJ=lastfile.o
17535 else
17536 CYGWIN_OBJ=
17537 PRE_ALLOC_OBJ=lastfile.o
17538 POST_ALLOC_OBJ=
17539 fi
17540
17541
17542
17543
17544
17545 case "$opsys" in
17546 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17547
17548 darwin)
17549 ## The -headerpad option tells ld (see man page) to leave room at the
17550 ## end of the header for adding load commands. Needed for dumping.
17551 ## 0x690 is the total size of 30 segment load commands (at 56
17552 ## each); under Cocoa 31 commands are required.
17553 if test "$HAVE_NS" = "yes"; then
17554 libs_nsgui="-framework AppKit"
17555 headerpad_extra=6C8
17556 else
17557 libs_nsgui=
17558 headerpad_extra=690
17559 fi
17560 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17561
17562 ## This is here because src/Makefile.in did some extra fiddling around
17563 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17564 ## #ifndef LD_SWITCH_SYSTEM
17565 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17566 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17567 ## not using gcc, darwin system not on an alpha (ie darwin, since
17568 ## darwin + alpha does not occur).
17569 ## Because this was done in src/Makefile.in, the resulting part of
17570 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17571 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17572 ## rather than LD_SWITCH_SYSTEM.
17573 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17574 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17575 ;;
17576
17577 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17578 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17579 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17580 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17581 ## had different values in configure (in ac_link) and src/Makefile.in.
17582 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17583 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17584
17585 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17586 esac
17587
17588 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17589 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17590 fi
17591
17592
17593
17594
17595 LD_FIRSTFLAG=
17596 ORDINARY_LINK=
17597 case "$opsys" in
17598 ## gnu: GNU needs its own crt0.
17599 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17600
17601 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17602 ## library search parth, i.e. it won't search /usr/lib for libc and
17603 ## friends. Using -nostartfiles instead avoids this problem, and
17604 ## will also work on earlier NetBSD releases.
17605 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17606
17607 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17608 ## MkLinux/LinuxPPC needs this.
17609 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17610 gnu-*)
17611 case "$machine" in
17612 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17613 esac
17614 ;;
17615 esac
17616
17617
17618 if test "x$ORDINARY_LINK" = "xyes"; then
17619
17620 LD_FIRSTFLAG=""
17621
17622 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17623
17624
17625 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17626 ## freebsd, gnu-* not on macppc|ibms390x.
17627 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17628
17629 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17630 ## places that are difficult to figure out at make time. Fortunately,
17631 ## these same versions allow you to pass arbitrary flags on to the
17632 ## linker, so there is no reason not to use it as a linker.
17633 ##
17634 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17635 ## searching for libraries in its internal directories, so we have to
17636 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17637 LD_FIRSTFLAG="-nostdlib"
17638 fi
17639
17640 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17641 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17642
17643
17644
17645
17646 ## FIXME? The logic here is not precisely the same as that above.
17647 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17648 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17649 LIB_GCC=
17650 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17651
17652 case "$opsys" in
17653 freebsd|netbsd|openbsd) LIB_GCC= ;;
17654
17655 gnu-*)
17656 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17657 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17658 case $host_cpu in
17659 arm*)
17660 LIB_GCC="-lgcc_s"
17661 ;;
17662 *)
17663 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17664 ## immediately undefine it again and redefine it to empty.
17665 ## Was the C_SWITCH_X_SITE part really necessary?
17666 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17667 LIB_GCC=
17668 ;;
17669 esac
17670 ;;
17671
17672 ## Ask GCC where to find libgcc.a.
17673 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17674 esac
17675 fi
17676
17677
17678 TOOLTIP_SUPPORT=
17679 WINDOW_SUPPORT=
17680 ## If we're using X11/GNUstep, define some consequences.
17681 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17682
17683 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17684
17685
17686 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17687
17688 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17689 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17690
17691 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17692 test "$HAVE_X_WINDOWS" = "yes" && \
17693 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17694
17695 fi
17696
17697
17698
17699
17700
17701
17702
17703 #### Report on what we decided to do.
17704 #### Report GTK as a toolkit, even if it doesn't use Xt.
17705 #### It makes printing result more understandable as using GTK sets
17706 #### toolkit_scroll_bars to yes by default.
17707 if test "${HAVE_GTK}" = "yes"; then
17708 USE_X_TOOLKIT=GTK
17709 fi
17710
17711 and_machfile=
17712 if test -n "$machfile"; then
17713 and_machfile=" and \`${machfile}'"
17714 fi
17715
17716 echo "
17717 Configured for \`${canonical}'.
17718
17719 Where should the build process find the source code? ${srcdir}
17720 What operating system and machine description files should Emacs use?
17721 \`${opsysfile}'${and_machfile}
17722 What compiler should emacs be built with? ${CC} ${CFLAGS}
17723 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17724 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17725 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17726 What window system should Emacs use? ${window_system}
17727 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17728
17729 if test -n "${x_includes}"; then
17730 echo " Where do we find X Windows header files? ${x_includes}"
17731 else
17732 echo " Where do we find X Windows header files? Standard dirs"
17733 fi
17734 if test -n "${x_libraries}"; then
17735 echo " Where do we find X Windows libraries? ${x_libraries}"
17736 else
17737 echo " Where do we find X Windows libraries? Standard dirs"
17738 fi
17739
17740 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17741 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17742 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17743 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17744 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17745 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17746 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17747 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17748
17749 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17750 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17751 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17752 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17753 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17754 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17755
17756 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17757 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17758 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17759 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17760
17761 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17762 echo
17763
17764 if test $USE_XASSERTS = yes; then
17765 echo " Compiling with asserts turned on."
17766 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17767 fi
17768
17769 echo
17770
17771 if test "$HAVE_NS" = "yes"; then
17772 echo
17773 echo "You must run \"make install\" in order to test the built application.
17774 The installed application will go to nextstep/Emacs.app and can be
17775 run or moved from there."
17776 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17777 echo "The application will be fully self-contained."
17778 else
17779 echo "The lisp resources for the application will be installed under ${prefix}.
17780 You may need to run \"make install\" with sudo. The application will fail
17781 to run if these resources are not installed."
17782 fi
17783 echo
17784 fi
17785
17786
17787 # Remove any trailing slashes in these variables.
17788 test "${prefix}" != NONE &&
17789 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17790 test "${exec_prefix}" != NONE &&
17791 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17792
17793 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"
17794
17795 ac_config_commands="$ac_config_commands default"
17796
17797 cat >confcache <<\_ACEOF
17798 # This file is a shell script that caches the results of configure
17799 # tests run on this system so they can be shared between configure
17800 # scripts and configure runs, see configure's option --config-cache.
17801 # It is not useful on other systems. If it contains results you don't
17802 # want to keep, you may remove or edit it.
17803 #
17804 # config.status only pays attention to the cache file if you give it
17805 # the --recheck option to rerun configure.
17806 #
17807 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17808 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17809 # following values.
17810
17811 _ACEOF
17812
17813 # The following way of writing the cache mishandles newlines in values,
17814 # but we know of no workaround that is simple, portable, and efficient.
17815 # So, we kill variables containing newlines.
17816 # Ultrix sh set writes to stderr and can't be redirected directly,
17817 # and sets the high bit in the cache file unless we assign to the vars.
17818 (
17819 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17820 eval ac_val=\$$ac_var
17821 case $ac_val in #(
17822 *${as_nl}*)
17823 case $ac_var in #(
17824 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17826 esac
17827 case $ac_var in #(
17828 _ | IFS | as_nl) ;; #(
17829 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17830 *) { eval $ac_var=; unset $ac_var;} ;;
17831 esac ;;
17832 esac
17833 done
17834
17835 (set) 2>&1 |
17836 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17837 *${as_nl}ac_space=\ *)
17838 # `set' does not quote correctly, so add quotes: double-quote
17839 # substitution turns \\\\ into \\, and sed turns \\ into \.
17840 sed -n \
17841 "s/'/'\\\\''/g;
17842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17843 ;; #(
17844 *)
17845 # `set' quotes correctly as required by POSIX, so do not add quotes.
17846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17847 ;;
17848 esac |
17849 sort
17850 ) |
17851 sed '
17852 /^ac_cv_env_/b end
17853 t clear
17854 :clear
17855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17856 t end
17857 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17858 :end' >>confcache
17859 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17860 if test -w "$cache_file"; then
17861 if test "x$cache_file" != "x/dev/null"; then
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17863 $as_echo "$as_me: updating cache $cache_file" >&6;}
17864 if test ! -f "$cache_file" || test -h "$cache_file"; then
17865 cat confcache >"$cache_file"
17866 else
17867 case $cache_file in #(
17868 */* | ?:*)
17869 mv -f confcache "$cache_file"$$ &&
17870 mv -f "$cache_file"$$ "$cache_file" ;; #(
17871 *)
17872 mv -f confcache "$cache_file" ;;
17873 esac
17874 fi
17875 fi
17876 else
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17878 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17879 fi
17880 fi
17881 rm -f confcache
17882
17883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17884 # Let make expand exec_prefix.
17885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17886
17887 DEFS=-DHAVE_CONFIG_H
17888
17889 ac_libobjs=
17890 ac_ltlibobjs=
17891 U=
17892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17893 # 1. Remove the extension, and $U if already installed.
17894 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17895 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17896 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17897 # will be set to the directory where LIBOBJS objects are built.
17898 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17899 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17900 done
17901 LIBOBJS=$ac_libobjs
17902
17903 LTLIBOBJS=$ac_ltlibobjs
17904
17905
17906 if test -n "$EXEEXT"; then
17907 am__EXEEXT_TRUE=
17908 am__EXEEXT_FALSE='#'
17909 else
17910 am__EXEEXT_TRUE='#'
17911 am__EXEEXT_FALSE=
17912 fi
17913
17914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17915 as_fn_error $? "conditional \"AMDEP\" was never defined.
17916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17917 fi
17918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17919 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17921 fi
17922
17923 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17924 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17926 fi
17927
17928 gl_libobjs=
17929 gl_ltlibobjs=
17930 if test -n "$gl_LIBOBJS"; then
17931 # Remove the extension.
17932 sed_drop_objext='s/\.o$//;s/\.obj$//'
17933 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17934 gl_libobjs="$gl_libobjs $i.$ac_objext"
17935 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17936 done
17937 fi
17938 gl_LIBOBJS=$gl_libobjs
17939
17940 gl_LTLIBOBJS=$gl_ltlibobjs
17941
17942
17943
17944 gltests_libobjs=
17945 gltests_ltlibobjs=
17946 if test -n "$gltests_LIBOBJS"; then
17947 # Remove the extension.
17948 sed_drop_objext='s/\.o$//;s/\.obj$//'
17949 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17950 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17951 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17952 done
17953 fi
17954 gltests_LIBOBJS=$gltests_libobjs
17955
17956 gltests_LTLIBOBJS=$gltests_ltlibobjs
17957
17958
17959
17960 : "${CONFIG_STATUS=./config.status}"
17961 ac_write_fail=0
17962 ac_clean_files_save=$ac_clean_files
17963 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17965 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17966 as_write_fail=0
17967 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17968 #! $SHELL
17969 # Generated by $as_me.
17970 # Run this file to recreate the current configuration.
17971 # Compiler output produced by configure, useful for debugging
17972 # configure, is in config.log if it exists.
17973
17974 debug=false
17975 ac_cs_recheck=false
17976 ac_cs_silent=false
17977
17978 SHELL=\${CONFIG_SHELL-$SHELL}
17979 export SHELL
17980 _ASEOF
17981 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17982 ## -------------------- ##
17983 ## M4sh Initialization. ##
17984 ## -------------------- ##
17985
17986 # Be more Bourne compatible
17987 DUALCASE=1; export DUALCASE # for MKS sh
17988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17989 emulate sh
17990 NULLCMD=:
17991 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17992 # is contrary to our usage. Disable this feature.
17993 alias -g '${1+"$@"}'='"$@"'
17994 setopt NO_GLOB_SUBST
17995 else
17996 case `(set -o) 2>/dev/null` in #(
17997 *posix*) :
17998 set -o posix ;; #(
17999 *) :
18000 ;;
18001 esac
18002 fi
18003
18004
18005 as_nl='
18006 '
18007 export as_nl
18008 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18009 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18010 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18012 # Prefer a ksh shell builtin over an external printf program on Solaris,
18013 # but without wasting forks for bash or zsh.
18014 if test -z "$BASH_VERSION$ZSH_VERSION" \
18015 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18016 as_echo='print -r --'
18017 as_echo_n='print -rn --'
18018 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18019 as_echo='printf %s\n'
18020 as_echo_n='printf %s'
18021 else
18022 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18023 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18024 as_echo_n='/usr/ucb/echo -n'
18025 else
18026 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18027 as_echo_n_body='eval
18028 arg=$1;
18029 case $arg in #(
18030 *"$as_nl"*)
18031 expr "X$arg" : "X\\(.*\\)$as_nl";
18032 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18033 esac;
18034 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18035 '
18036 export as_echo_n_body
18037 as_echo_n='sh -c $as_echo_n_body as_echo'
18038 fi
18039 export as_echo_body
18040 as_echo='sh -c $as_echo_body as_echo'
18041 fi
18042
18043 # The user is always right.
18044 if test "${PATH_SEPARATOR+set}" != set; then
18045 PATH_SEPARATOR=:
18046 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18047 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18048 PATH_SEPARATOR=';'
18049 }
18050 fi
18051
18052
18053 # IFS
18054 # We need space, tab and new line, in precisely that order. Quoting is
18055 # there to prevent editors from complaining about space-tab.
18056 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18057 # splitting by setting IFS to empty value.)
18058 IFS=" "" $as_nl"
18059
18060 # Find who we are. Look in the path if we contain no directory separator.
18061 as_myself=
18062 case $0 in #((
18063 *[\\/]* ) as_myself=$0 ;;
18064 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18065 for as_dir in $PATH
18066 do
18067 IFS=$as_save_IFS
18068 test -z "$as_dir" && as_dir=.
18069 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18070 done
18071 IFS=$as_save_IFS
18072
18073 ;;
18074 esac
18075 # We did not find ourselves, most probably we were run as `sh COMMAND'
18076 # in which case we are not to be found in the path.
18077 if test "x$as_myself" = x; then
18078 as_myself=$0
18079 fi
18080 if test ! -f "$as_myself"; then
18081 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18082 exit 1
18083 fi
18084
18085 # Unset variables that we do not need and which cause bugs (e.g. in
18086 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18087 # suppresses any "Segmentation fault" message there. '((' could
18088 # trigger a bug in pdksh 5.2.14.
18089 for as_var in BASH_ENV ENV MAIL MAILPATH
18090 do eval test x\${$as_var+set} = xset \
18091 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18092 done
18093 PS1='$ '
18094 PS2='> '
18095 PS4='+ '
18096
18097 # NLS nuisances.
18098 LC_ALL=C
18099 export LC_ALL
18100 LANGUAGE=C
18101 export LANGUAGE
18102
18103 # CDPATH.
18104 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18105
18106
18107 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18108 # ----------------------------------------
18109 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18110 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18111 # script with STATUS, using 1 if that was 0.
18112 as_fn_error ()
18113 {
18114 as_status=$1; test $as_status -eq 0 && as_status=1
18115 if test "$4"; then
18116 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18117 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18118 fi
18119 $as_echo "$as_me: error: $2" >&2
18120 as_fn_exit $as_status
18121 } # as_fn_error
18122
18123
18124 # as_fn_set_status STATUS
18125 # -----------------------
18126 # Set $? to STATUS, without forking.
18127 as_fn_set_status ()
18128 {
18129 return $1
18130 } # as_fn_set_status
18131
18132 # as_fn_exit STATUS
18133 # -----------------
18134 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18135 as_fn_exit ()
18136 {
18137 set +e
18138 as_fn_set_status $1
18139 exit $1
18140 } # as_fn_exit
18141
18142 # as_fn_unset VAR
18143 # ---------------
18144 # Portably unset VAR.
18145 as_fn_unset ()
18146 {
18147 { eval $1=; unset $1;}
18148 }
18149 as_unset=as_fn_unset
18150 # as_fn_append VAR VALUE
18151 # ----------------------
18152 # Append the text in VALUE to the end of the definition contained in VAR. Take
18153 # advantage of any shell optimizations that allow amortized linear growth over
18154 # repeated appends, instead of the typical quadratic growth present in naive
18155 # implementations.
18156 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18157 eval 'as_fn_append ()
18158 {
18159 eval $1+=\$2
18160 }'
18161 else
18162 as_fn_append ()
18163 {
18164 eval $1=\$$1\$2
18165 }
18166 fi # as_fn_append
18167
18168 # as_fn_arith ARG...
18169 # ------------------
18170 # Perform arithmetic evaluation on the ARGs, and store the result in the
18171 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18172 # must be portable across $(()) and expr.
18173 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18174 eval 'as_fn_arith ()
18175 {
18176 as_val=$(( $* ))
18177 }'
18178 else
18179 as_fn_arith ()
18180 {
18181 as_val=`expr "$@" || test $? -eq 1`
18182 }
18183 fi # as_fn_arith
18184
18185
18186 if expr a : '\(a\)' >/dev/null 2>&1 &&
18187 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18188 as_expr=expr
18189 else
18190 as_expr=false
18191 fi
18192
18193 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18194 as_basename=basename
18195 else
18196 as_basename=false
18197 fi
18198
18199 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18200 as_dirname=dirname
18201 else
18202 as_dirname=false
18203 fi
18204
18205 as_me=`$as_basename -- "$0" ||
18206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18207 X"$0" : 'X\(//\)$' \| \
18208 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18209 $as_echo X/"$0" |
18210 sed '/^.*\/\([^/][^/]*\)\/*$/{
18211 s//\1/
18212 q
18213 }
18214 /^X\/\(\/\/\)$/{
18215 s//\1/
18216 q
18217 }
18218 /^X\/\(\/\).*/{
18219 s//\1/
18220 q
18221 }
18222 s/.*/./; q'`
18223
18224 # Avoid depending upon Character Ranges.
18225 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18226 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18227 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18228 as_cr_digits='0123456789'
18229 as_cr_alnum=$as_cr_Letters$as_cr_digits
18230
18231 ECHO_C= ECHO_N= ECHO_T=
18232 case `echo -n x` in #(((((
18233 -n*)
18234 case `echo 'xy\c'` in
18235 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18236 xy) ECHO_C='\c';;
18237 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18238 ECHO_T=' ';;
18239 esac;;
18240 *)
18241 ECHO_N='-n';;
18242 esac
18243
18244 rm -f conf$$ conf$$.exe conf$$.file
18245 if test -d conf$$.dir; then
18246 rm -f conf$$.dir/conf$$.file
18247 else
18248 rm -f conf$$.dir
18249 mkdir conf$$.dir 2>/dev/null
18250 fi
18251 if (echo >conf$$.file) 2>/dev/null; then
18252 if ln -s conf$$.file conf$$ 2>/dev/null; then
18253 as_ln_s='ln -s'
18254 # ... but there are two gotchas:
18255 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18256 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18257 # In both cases, we have to default to `cp -p'.
18258 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18259 as_ln_s='cp -p'
18260 elif ln conf$$.file conf$$ 2>/dev/null; then
18261 as_ln_s=ln
18262 else
18263 as_ln_s='cp -p'
18264 fi
18265 else
18266 as_ln_s='cp -p'
18267 fi
18268 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18269 rmdir conf$$.dir 2>/dev/null
18270
18271
18272 # as_fn_mkdir_p
18273 # -------------
18274 # Create "$as_dir" as a directory, including parents if necessary.
18275 as_fn_mkdir_p ()
18276 {
18277
18278 case $as_dir in #(
18279 -*) as_dir=./$as_dir;;
18280 esac
18281 test -d "$as_dir" || eval $as_mkdir_p || {
18282 as_dirs=
18283 while :; do
18284 case $as_dir in #(
18285 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18286 *) as_qdir=$as_dir;;
18287 esac
18288 as_dirs="'$as_qdir' $as_dirs"
18289 as_dir=`$as_dirname -- "$as_dir" ||
18290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18291 X"$as_dir" : 'X\(//\)[^/]' \| \
18292 X"$as_dir" : 'X\(//\)$' \| \
18293 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18294 $as_echo X"$as_dir" |
18295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18296 s//\1/
18297 q
18298 }
18299 /^X\(\/\/\)[^/].*/{
18300 s//\1/
18301 q
18302 }
18303 /^X\(\/\/\)$/{
18304 s//\1/
18305 q
18306 }
18307 /^X\(\/\).*/{
18308 s//\1/
18309 q
18310 }
18311 s/.*/./; q'`
18312 test -d "$as_dir" && break
18313 done
18314 test -z "$as_dirs" || eval "mkdir $as_dirs"
18315 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18316
18317
18318 } # as_fn_mkdir_p
18319 if mkdir -p . 2>/dev/null; then
18320 as_mkdir_p='mkdir -p "$as_dir"'
18321 else
18322 test -d ./-p && rmdir ./-p
18323 as_mkdir_p=false
18324 fi
18325
18326 if test -x / >/dev/null 2>&1; then
18327 as_test_x='test -x'
18328 else
18329 if ls -dL / >/dev/null 2>&1; then
18330 as_ls_L_option=L
18331 else
18332 as_ls_L_option=
18333 fi
18334 as_test_x='
18335 eval sh -c '\''
18336 if test -d "$1"; then
18337 test -d "$1/.";
18338 else
18339 case $1 in #(
18340 -*)set "./$1";;
18341 esac;
18342 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18343 ???[sx]*):;;*)false;;esac;fi
18344 '\'' sh
18345 '
18346 fi
18347 as_executable_p=$as_test_x
18348
18349 # Sed expression to map a string onto a valid CPP name.
18350 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18351
18352 # Sed expression to map a string onto a valid variable name.
18353 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18354
18355
18356 exec 6>&1
18357 ## ----------------------------------- ##
18358 ## Main body of $CONFIG_STATUS script. ##
18359 ## ----------------------------------- ##
18360 _ASEOF
18361 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18362
18363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18364 # Save the log message, to keep $0 and so on meaningful, and to
18365 # report actual input values of CONFIG_FILES etc. instead of their
18366 # values after options handling.
18367 ac_log="
18368 This file was extended by emacs $as_me 24.0.50, which was
18369 generated by GNU Autoconf 2.68. Invocation command line was
18370
18371 CONFIG_FILES = $CONFIG_FILES
18372 CONFIG_HEADERS = $CONFIG_HEADERS
18373 CONFIG_LINKS = $CONFIG_LINKS
18374 CONFIG_COMMANDS = $CONFIG_COMMANDS
18375 $ $0 $@
18376
18377 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18378 "
18379
18380 _ACEOF
18381
18382 case $ac_config_files in *"
18383 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18384 esac
18385
18386 case $ac_config_headers in *"
18387 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18388 esac
18389
18390
18391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18392 # Files that config.status was made for.
18393 config_files="$ac_config_files"
18394 config_headers="$ac_config_headers"
18395 config_commands="$ac_config_commands"
18396
18397 _ACEOF
18398
18399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18400 ac_cs_usage="\
18401 \`$as_me' instantiates files and other configuration actions
18402 from templates according to the current configuration. Unless the files
18403 and actions are specified as TAGs, all are instantiated by default.
18404
18405 Usage: $0 [OPTION]... [TAG]...
18406
18407 -h, --help print this help, then exit
18408 -V, --version print version number and configuration settings, then exit
18409 --config print configuration, then exit
18410 -q, --quiet, --silent
18411 do not print progress messages
18412 -d, --debug don't remove temporary files
18413 --recheck update $as_me by reconfiguring in the same conditions
18414 --file=FILE[:TEMPLATE]
18415 instantiate the configuration file FILE
18416 --header=FILE[:TEMPLATE]
18417 instantiate the configuration header FILE
18418
18419 Configuration files:
18420 $config_files
18421
18422 Configuration headers:
18423 $config_headers
18424
18425 Configuration commands:
18426 $config_commands
18427
18428 Report bugs to the package provider."
18429
18430 _ACEOF
18431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18432 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18433 ac_cs_version="\\
18434 emacs config.status 24.0.50
18435 configured by $0, generated by GNU Autoconf 2.68,
18436 with options \\"\$ac_cs_config\\"
18437
18438 Copyright (C) 2010 Free Software Foundation, Inc.
18439 This config.status script is free software; the Free Software Foundation
18440 gives unlimited permission to copy, distribute and modify it."
18441
18442 ac_pwd='$ac_pwd'
18443 srcdir='$srcdir'
18444 INSTALL='$INSTALL'
18445 MKDIR_P='$MKDIR_P'
18446 AWK='$AWK'
18447 test -n "\$AWK" || AWK=awk
18448 _ACEOF
18449
18450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18451 # The default lists apply if the user does not specify any file.
18452 ac_need_defaults=:
18453 while test $# != 0
18454 do
18455 case $1 in
18456 --*=?*)
18457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18458 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18459 ac_shift=:
18460 ;;
18461 --*=)
18462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18463 ac_optarg=
18464 ac_shift=:
18465 ;;
18466 *)
18467 ac_option=$1
18468 ac_optarg=$2
18469 ac_shift=shift
18470 ;;
18471 esac
18472
18473 case $ac_option in
18474 # Handling of the options.
18475 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18476 ac_cs_recheck=: ;;
18477 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18478 $as_echo "$ac_cs_version"; exit ;;
18479 --config | --confi | --conf | --con | --co | --c )
18480 $as_echo "$ac_cs_config"; exit ;;
18481 --debug | --debu | --deb | --de | --d | -d )
18482 debug=: ;;
18483 --file | --fil | --fi | --f )
18484 $ac_shift
18485 case $ac_optarg in
18486 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18487 '') as_fn_error $? "missing file argument" ;;
18488 esac
18489 as_fn_append CONFIG_FILES " '$ac_optarg'"
18490 ac_need_defaults=false;;
18491 --header | --heade | --head | --hea )
18492 $ac_shift
18493 case $ac_optarg in
18494 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18495 esac
18496 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18497 ac_need_defaults=false;;
18498 --he | --h)
18499 # Conflict between --help and --header
18500 as_fn_error $? "ambiguous option: \`$1'
18501 Try \`$0 --help' for more information.";;
18502 --help | --hel | -h )
18503 $as_echo "$ac_cs_usage"; exit ;;
18504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18505 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18506 ac_cs_silent=: ;;
18507
18508 # This is an error.
18509 -*) as_fn_error $? "unrecognized option: \`$1'
18510 Try \`$0 --help' for more information." ;;
18511
18512 *) as_fn_append ac_config_targets " $1"
18513 ac_need_defaults=false ;;
18514
18515 esac
18516 shift
18517 done
18518
18519 ac_configure_extra_args=
18520
18521 if $ac_cs_silent; then
18522 exec 6>/dev/null
18523 ac_configure_extra_args="$ac_configure_extra_args --silent"
18524 fi
18525
18526 _ACEOF
18527 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18528 if \$ac_cs_recheck; then
18529 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18530 shift
18531 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18532 CONFIG_SHELL='$SHELL'
18533 export CONFIG_SHELL
18534 exec "\$@"
18535 fi
18536
18537 _ACEOF
18538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18539 exec 5>>config.log
18540 {
18541 echo
18542 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18543 ## Running $as_me. ##
18544 _ASBOX
18545 $as_echo "$ac_log"
18546 } >&5
18547
18548 _ACEOF
18549 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18550 #
18551 # INIT-COMMANDS
18552 #
18553 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18554 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18555
18556 _ACEOF
18557
18558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18559
18560 # Handling of arguments.
18561 for ac_config_target in $ac_config_targets
18562 do
18563 case $ac_config_target in
18564 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18565 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18566 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18567 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18568 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18569 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18570 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18571 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18572 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18573 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18574 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18575 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18576 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18577 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18578 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
18579 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18580
18581 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18582 esac
18583 done
18584
18585
18586 # If the user did not use the arguments to specify the items to instantiate,
18587 # then the envvar interface is used. Set only those that are not.
18588 # We use the long form for the default assignment because of an extremely
18589 # bizarre bug on SunOS 4.1.3.
18590 if $ac_need_defaults; then
18591 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18592 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18593 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18594 fi
18595
18596 # Have a temporary directory for convenience. Make it in the build tree
18597 # simply because there is no reason against having it here, and in addition,
18598 # creating and moving files from /tmp can sometimes cause problems.
18599 # Hook for its removal unless debugging.
18600 # Note that there is a small window in which the directory will not be cleaned:
18601 # after its creation but before its name has been assigned to `$tmp'.
18602 $debug ||
18603 {
18604 tmp= ac_tmp=
18605 trap 'exit_status=$?
18606 : "${ac_tmp:=$tmp}"
18607 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18608 ' 0
18609 trap 'as_fn_exit 1' 1 2 13 15
18610 }
18611 # Create a (secure) tmp directory for tmp files.
18612
18613 {
18614 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18615 test -d "$tmp"
18616 } ||
18617 {
18618 tmp=./conf$$-$RANDOM
18619 (umask 077 && mkdir "$tmp")
18620 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18621 ac_tmp=$tmp
18622
18623 # Set up the scripts for CONFIG_FILES section.
18624 # No need to generate them if there are no CONFIG_FILES.
18625 # This happens for instance with `./config.status config.h'.
18626 if test -n "$CONFIG_FILES"; then
18627
18628 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18629 ac_cs_awk_getline=:
18630 ac_cs_awk_pipe_init=
18631 ac_cs_awk_read_file='
18632 while ((getline aline < (F[key])) > 0)
18633 print(aline)
18634 close(F[key])'
18635 ac_cs_awk_pipe_fini=
18636 else
18637 ac_cs_awk_getline=false
18638 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18639 ac_cs_awk_read_file='
18640 print "|#_!!_#|"
18641 print "cat " F[key] " &&"
18642 '$ac_cs_awk_pipe_init
18643 # The final `:' finishes the AND list.
18644 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18645 fi
18646 ac_cr=`echo X | tr X '\015'`
18647 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18648 # But we know of no other shell where ac_cr would be empty at this
18649 # point, so we can use a bashism as a fallback.
18650 if test "x$ac_cr" = x; then
18651 eval ac_cr=\$\'\\r\'
18652 fi
18653 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18655 ac_cs_awk_cr='\\r'
18656 else
18657 ac_cs_awk_cr=$ac_cr
18658 fi
18659
18660 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18661 _ACEOF
18662
18663 # Create commands to substitute file output variables.
18664 {
18665 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18666 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18667 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18668 echo "_ACAWK" &&
18669 echo "_ACEOF"
18670 } >conf$$files.sh &&
18671 . ./conf$$files.sh ||
18672 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18673 rm -f conf$$files.sh
18674
18675 {
18676 echo "cat >conf$$subs.awk <<_ACEOF" &&
18677 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18678 echo "_ACEOF"
18679 } >conf$$subs.sh ||
18680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18681 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18682 ac_delim='%!_!# '
18683 for ac_last_try in false false false false false :; do
18684 . ./conf$$subs.sh ||
18685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18686
18687 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18688 if test $ac_delim_n = $ac_delim_num; then
18689 break
18690 elif $ac_last_try; then
18691 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18692 else
18693 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18694 fi
18695 done
18696 rm -f conf$$subs.sh
18697
18698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18699 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18700 _ACEOF
18701 sed -n '
18702 h
18703 s/^/S["/; s/!.*/"]=/
18704 p
18705 g
18706 s/^[^!]*!//
18707 :repl
18708 t repl
18709 s/'"$ac_delim"'$//
18710 t delim
18711 :nl
18712 h
18713 s/\(.\{148\}\)..*/\1/
18714 t more1
18715 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18716 p
18717 n
18718 b repl
18719 :more1
18720 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18721 p
18722 g
18723 s/.\{148\}//
18724 t nl
18725 :delim
18726 h
18727 s/\(.\{148\}\)..*/\1/
18728 t more2
18729 s/["\\]/\\&/g; s/^/"/; s/$/"/
18730 p
18731 b
18732 :more2
18733 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18734 p
18735 g
18736 s/.\{148\}//
18737 t delim
18738 ' <conf$$subs.awk | sed '
18739 /^[^""]/{
18740 N
18741 s/\n//
18742 }
18743 ' >>$CONFIG_STATUS || ac_write_fail=1
18744 rm -f conf$$subs.awk
18745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18746 _ACAWK
18747 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18748 for (key in S) S_is_set[key] = 1
18749 FS = "\a"
18750 \$ac_cs_awk_pipe_init
18751 }
18752 {
18753 line = $ 0
18754 nfields = split(line, field, "@")
18755 substed = 0
18756 len = length(field[1])
18757 for (i = 2; i < nfields; i++) {
18758 key = field[i]
18759 keylen = length(key)
18760 if (S_is_set[key]) {
18761 value = S[key]
18762 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18763 len += length(value) + length(field[++i])
18764 substed = 1
18765 } else
18766 len += 1 + keylen
18767 }
18768 if (nfields == 3 && !substed) {
18769 key = field[2]
18770 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18771 \$ac_cs_awk_read_file
18772 next
18773 }
18774 }
18775 print line
18776 }
18777 \$ac_cs_awk_pipe_fini
18778 _ACAWK
18779 _ACEOF
18780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18781 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18782 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18783 else
18784 cat
18785 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18786 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18787 _ACEOF
18788
18789 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18790 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18791 # trailing colons and then remove the whole line if VPATH becomes empty
18792 # (actually we leave an empty line to preserve line numbers).
18793 if test "x$srcdir" = x.; then
18794 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18795 h
18796 s///
18797 s/^/:/
18798 s/[ ]*$/:/
18799 s/:\$(srcdir):/:/g
18800 s/:\${srcdir}:/:/g
18801 s/:@srcdir@:/:/g
18802 s/^:*//
18803 s/:*$//
18804 x
18805 s/\(=[ ]*\).*/\1/
18806 G
18807 s/\n//
18808 s/^[^=]*=[ ]*$//
18809 }'
18810 fi
18811
18812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18813 fi # test -n "$CONFIG_FILES"
18814
18815 # Set up the scripts for CONFIG_HEADERS section.
18816 # No need to generate them if there are no CONFIG_HEADERS.
18817 # This happens for instance with `./config.status Makefile'.
18818 if test -n "$CONFIG_HEADERS"; then
18819 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18820 BEGIN {
18821 _ACEOF
18822
18823 # Transform confdefs.h into an awk script `defines.awk', embedded as
18824 # here-document in config.status, that substitutes the proper values into
18825 # config.h.in to produce config.h.
18826
18827 # Create a delimiter string that does not exist in confdefs.h, to ease
18828 # handling of long lines.
18829 ac_delim='%!_!# '
18830 for ac_last_try in false false :; do
18831 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18832 if test -z "$ac_tt"; then
18833 break
18834 elif $ac_last_try; then
18835 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18836 else
18837 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18838 fi
18839 done
18840
18841 # For the awk script, D is an array of macro values keyed by name,
18842 # likewise P contains macro parameters if any. Preserve backslash
18843 # newline sequences.
18844
18845 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18846 sed -n '
18847 s/.\{148\}/&'"$ac_delim"'/g
18848 t rset
18849 :rset
18850 s/^[ ]*#[ ]*define[ ][ ]*/ /
18851 t def
18852 d
18853 :def
18854 s/\\$//
18855 t bsnl
18856 s/["\\]/\\&/g
18857 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18858 D["\1"]=" \3"/p
18859 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18860 d
18861 :bsnl
18862 s/["\\]/\\&/g
18863 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18864 D["\1"]=" \3\\\\\\n"\\/p
18865 t cont
18866 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18867 t cont
18868 d
18869 :cont
18870 n
18871 s/.\{148\}/&'"$ac_delim"'/g
18872 t clear
18873 :clear
18874 s/\\$//
18875 t bsnlc
18876 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18877 d
18878 :bsnlc
18879 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18880 b cont
18881 ' <confdefs.h | sed '
18882 s/'"$ac_delim"'/"\\\
18883 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18884
18885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18886 for (key in D) D_is_set[key] = 1
18887 FS = "\a"
18888 }
18889 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18890 line = \$ 0
18891 split(line, arg, " ")
18892 if (arg[1] == "#") {
18893 defundef = arg[2]
18894 mac1 = arg[3]
18895 } else {
18896 defundef = substr(arg[1], 2)
18897 mac1 = arg[2]
18898 }
18899 split(mac1, mac2, "(") #)
18900 macro = mac2[1]
18901 prefix = substr(line, 1, index(line, defundef) - 1)
18902 if (D_is_set[macro]) {
18903 # Preserve the white space surrounding the "#".
18904 print prefix "define", macro P[macro] D[macro]
18905 next
18906 } else {
18907 # Replace #undef with comments. This is necessary, for example,
18908 # in the case of _POSIX_SOURCE, which is predefined and required
18909 # on some systems where configure will not decide to define it.
18910 if (defundef == "undef") {
18911 print "/*", prefix defundef, macro, "*/"
18912 next
18913 }
18914 }
18915 }
18916 { print }
18917 _ACAWK
18918 _ACEOF
18919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18920 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18921 fi # test -n "$CONFIG_HEADERS"
18922
18923
18924 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18925 shift
18926 for ac_tag
18927 do
18928 case $ac_tag in
18929 :[FHLC]) ac_mode=$ac_tag; continue;;
18930 esac
18931 case $ac_mode$ac_tag in
18932 :[FHL]*:*);;
18933 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18934 :[FH]-) ac_tag=-:-;;
18935 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18936 esac
18937 ac_save_IFS=$IFS
18938 IFS=:
18939 set x $ac_tag
18940 IFS=$ac_save_IFS
18941 shift
18942 ac_file=$1
18943 shift
18944
18945 case $ac_mode in
18946 :L) ac_source=$1;;
18947 :[FH])
18948 ac_file_inputs=
18949 for ac_f
18950 do
18951 case $ac_f in
18952 -) ac_f="$ac_tmp/stdin";;
18953 *) # Look for the file first in the build tree, then in the source tree
18954 # (if the path is not absolute). The absolute path cannot be DOS-style,
18955 # because $ac_f cannot contain `:'.
18956 test -f "$ac_f" ||
18957 case $ac_f in
18958 [\\/$]*) false;;
18959 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18960 esac ||
18961 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18962 esac
18963 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18964 as_fn_append ac_file_inputs " '$ac_f'"
18965 done
18966
18967 # Let's still pretend it is `configure' which instantiates (i.e., don't
18968 # use $as_me), people would be surprised to read:
18969 # /* config.h. Generated by config.status. */
18970 configure_input='Generated from '`
18971 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18972 `' by configure.'
18973 if test x"$ac_file" != x-; then
18974 configure_input="$ac_file. $configure_input"
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18976 $as_echo "$as_me: creating $ac_file" >&6;}
18977 fi
18978 # Neutralize special characters interpreted by sed in replacement strings.
18979 case $configure_input in #(
18980 *\&* | *\|* | *\\* )
18981 ac_sed_conf_input=`$as_echo "$configure_input" |
18982 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18983 *) ac_sed_conf_input=$configure_input;;
18984 esac
18985
18986 case $ac_tag in
18987 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18989 esac
18990 ;;
18991 esac
18992
18993 ac_dir=`$as_dirname -- "$ac_file" ||
18994 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18995 X"$ac_file" : 'X\(//\)[^/]' \| \
18996 X"$ac_file" : 'X\(//\)$' \| \
18997 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18998 $as_echo X"$ac_file" |
18999 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19000 s//\1/
19001 q
19002 }
19003 /^X\(\/\/\)[^/].*/{
19004 s//\1/
19005 q
19006 }
19007 /^X\(\/\/\)$/{
19008 s//\1/
19009 q
19010 }
19011 /^X\(\/\).*/{
19012 s//\1/
19013 q
19014 }
19015 s/.*/./; q'`
19016 as_dir="$ac_dir"; as_fn_mkdir_p
19017 ac_builddir=.
19018
19019 case "$ac_dir" in
19020 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19021 *)
19022 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19023 # A ".." for each directory in $ac_dir_suffix.
19024 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19025 case $ac_top_builddir_sub in
19026 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19027 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19028 esac ;;
19029 esac
19030 ac_abs_top_builddir=$ac_pwd
19031 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19032 # for backward compatibility:
19033 ac_top_builddir=$ac_top_build_prefix
19034
19035 case $srcdir in
19036 .) # We are building in place.
19037 ac_srcdir=.
19038 ac_top_srcdir=$ac_top_builddir_sub
19039 ac_abs_top_srcdir=$ac_pwd ;;
19040 [\\/]* | ?:[\\/]* ) # Absolute name.
19041 ac_srcdir=$srcdir$ac_dir_suffix;
19042 ac_top_srcdir=$srcdir
19043 ac_abs_top_srcdir=$srcdir ;;
19044 *) # Relative name.
19045 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19046 ac_top_srcdir=$ac_top_build_prefix$srcdir
19047 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19048 esac
19049 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19050
19051
19052 case $ac_mode in
19053 :F)
19054 #
19055 # CONFIG_FILE
19056 #
19057
19058 case $INSTALL in
19059 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19060 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19061 esac
19062 ac_MKDIR_P=$MKDIR_P
19063 case $MKDIR_P in
19064 [\\/$]* | ?:[\\/]* ) ;;
19065 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19066 esac
19067 _ACEOF
19068
19069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19070 # If the template does not know about datarootdir, expand it.
19071 # FIXME: This hack should be removed a few years after 2.60.
19072 ac_datarootdir_hack=; ac_datarootdir_seen=
19073 ac_sed_dataroot='
19074 /datarootdir/ {
19075 p
19076 q
19077 }
19078 /@datadir@/p
19079 /@docdir@/p
19080 /@infodir@/p
19081 /@localedir@/p
19082 /@mandir@/p'
19083 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19084 *datarootdir*) ac_datarootdir_seen=yes;;
19085 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19087 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19088 _ACEOF
19089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19090 ac_datarootdir_hack='
19091 s&@datadir@&$datadir&g
19092 s&@docdir@&$docdir&g
19093 s&@infodir@&$infodir&g
19094 s&@localedir@&$localedir&g
19095 s&@mandir@&$mandir&g
19096 s&\\\${datarootdir}&$datarootdir&g' ;;
19097 esac
19098 _ACEOF
19099
19100 # Neutralize VPATH when `$srcdir' = `.'.
19101 # Shell code in configure.ac might set extrasub.
19102 # FIXME: do we really want to maintain this feature?
19103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19104 ac_sed_extra="$ac_vpsub
19105 $extrasub
19106 _ACEOF
19107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19108 :t
19109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19110 s|@configure_input@|$ac_sed_conf_input|;t t
19111 s&@top_builddir@&$ac_top_builddir_sub&;t t
19112 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19113 s&@srcdir@&$ac_srcdir&;t t
19114 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19115 s&@top_srcdir@&$ac_top_srcdir&;t t
19116 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19117 s&@builddir@&$ac_builddir&;t t
19118 s&@abs_builddir@&$ac_abs_builddir&;t t
19119 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19120 s&@INSTALL@&$ac_INSTALL&;t t
19121 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19122 $ac_datarootdir_hack
19123 "
19124 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19125 if $ac_cs_awk_getline; then
19126 $AWK -f "$ac_tmp/subs.awk"
19127 else
19128 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19129 fi \
19130 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19131
19132 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19133 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19134 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19135 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19137 which seems to be undefined. Please make sure it is defined" >&5
19138 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19139 which seems to be undefined. Please make sure it is defined" >&2;}
19140
19141 rm -f "$ac_tmp/stdin"
19142 case $ac_file in
19143 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19144 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19145 esac \
19146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19147 ;;
19148 :H)
19149 #
19150 # CONFIG_HEADER
19151 #
19152 if test x"$ac_file" != x-; then
19153 {
19154 $as_echo "/* $configure_input */" \
19155 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19156 } >"$ac_tmp/config.h" \
19157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19158 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19160 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19161 else
19162 rm -f "$ac_file"
19163 mv "$ac_tmp/config.h" "$ac_file" \
19164 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19165 fi
19166 else
19167 $as_echo "/* $configure_input */" \
19168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19169 || as_fn_error $? "could not create -" "$LINENO" 5
19170 fi
19171 # Compute "$ac_file"'s index in $config_headers.
19172 _am_arg="$ac_file"
19173 _am_stamp_count=1
19174 for _am_header in $config_headers :; do
19175 case $_am_header in
19176 $_am_arg | $_am_arg:* )
19177 break ;;
19178 * )
19179 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19180 esac
19181 done
19182 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19183 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19184 X"$_am_arg" : 'X\(//\)[^/]' \| \
19185 X"$_am_arg" : 'X\(//\)$' \| \
19186 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19187 $as_echo X"$_am_arg" |
19188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19189 s//\1/
19190 q
19191 }
19192 /^X\(\/\/\)[^/].*/{
19193 s//\1/
19194 q
19195 }
19196 /^X\(\/\/\)$/{
19197 s//\1/
19198 q
19199 }
19200 /^X\(\/\).*/{
19201 s//\1/
19202 q
19203 }
19204 s/.*/./; q'`/stamp-h$_am_stamp_count
19205 ;;
19206
19207 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19208 $as_echo "$as_me: executing $ac_file commands" >&6;}
19209 ;;
19210 esac
19211
19212
19213 case $ac_file$ac_mode in
19214 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19215 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19216 # are listed without --file. Let's play safe and only enable the eval
19217 # if we detect the quoting.
19218 case $CONFIG_FILES in
19219 *\'*) eval set x "$CONFIG_FILES" ;;
19220 *) set x $CONFIG_FILES ;;
19221 esac
19222 shift
19223 for mf
19224 do
19225 # Strip MF so we end up with the name of the file.
19226 mf=`echo "$mf" | sed -e 's/:.*$//'`
19227 # Check whether this is an Automake generated Makefile or not.
19228 # We used to match only the files named `Makefile.in', but
19229 # some people rename them; so instead we look at the file content.
19230 # Grep'ing the first line is not enough: some people post-process
19231 # each Makefile.in and add a new line on top of each file to say so.
19232 # Grep'ing the whole file is not good either: AIX grep has a line
19233 # limit of 2048, but all sed's we know have understand at least 4000.
19234 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19235 dirpart=`$as_dirname -- "$mf" ||
19236 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19237 X"$mf" : 'X\(//\)[^/]' \| \
19238 X"$mf" : 'X\(//\)$' \| \
19239 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19240 $as_echo X"$mf" |
19241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19242 s//\1/
19243 q
19244 }
19245 /^X\(\/\/\)[^/].*/{
19246 s//\1/
19247 q
19248 }
19249 /^X\(\/\/\)$/{
19250 s//\1/
19251 q
19252 }
19253 /^X\(\/\).*/{
19254 s//\1/
19255 q
19256 }
19257 s/.*/./; q'`
19258 else
19259 continue
19260 fi
19261 # Extract the definition of DEPDIR, am__include, and am__quote
19262 # from the Makefile without running `make'.
19263 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19264 test -z "$DEPDIR" && continue
19265 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19266 test -z "am__include" && continue
19267 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19268 # When using ansi2knr, U may be empty or an underscore; expand it
19269 U=`sed -n 's/^U = //p' < "$mf"`
19270 # Find all dependency output files, they are included files with
19271 # $(DEPDIR) in their names. We invoke sed twice because it is the
19272 # simplest approach to changing $(DEPDIR) to its actual value in the
19273 # expansion.
19274 for file in `sed -n "
19275 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19276 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19277 # Make sure the directory exists.
19278 test -f "$dirpart/$file" && continue
19279 fdir=`$as_dirname -- "$file" ||
19280 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19281 X"$file" : 'X\(//\)[^/]' \| \
19282 X"$file" : 'X\(//\)$' \| \
19283 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19284 $as_echo X"$file" |
19285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19286 s//\1/
19287 q
19288 }
19289 /^X\(\/\/\)[^/].*/{
19290 s//\1/
19291 q
19292 }
19293 /^X\(\/\/\)$/{
19294 s//\1/
19295 q
19296 }
19297 /^X\(\/\).*/{
19298 s//\1/
19299 q
19300 }
19301 s/.*/./; q'`
19302 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19303 # echo "creating $dirpart/$file"
19304 echo '# dummy' > "$dirpart/$file"
19305 done
19306 done
19307 }
19308 ;;
19309 "default":C)
19310
19311 ### Make the necessary directories, if they don't exist.
19312 for dir in etc lisp ; do
19313 test -d ${dir} || mkdir ${dir}
19314 done
19315
19316 echo creating src/epaths.h
19317 ${MAKE-make} epaths-force
19318
19319 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19320 echo creating src/.gdbinit
19321 echo source $srcdir/src/.gdbinit > src/.gdbinit
19322 fi
19323
19324 ;;
19325
19326 esac
19327 done # for ac_tag
19328
19329
19330 as_fn_exit 0
19331 _ACEOF
19332 ac_clean_files=$ac_clean_files_save
19333
19334 test $ac_write_fail = 0 ||
19335 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19336
19337
19338 # configure is writing to config.log, and then calls config.status.
19339 # config.status does its own redirection, appending to config.log.
19340 # Unfortunately, on DOS this fails, as config.log is still kept open
19341 # by configure, so config.status won't be able to write to it; its
19342 # output is simply discarded. So we exec the FD to /dev/null,
19343 # effectively closing config.log, so it can be properly (re)opened and
19344 # appended to by config.status. When coming back to configure, we
19345 # need to make the FD available again.
19346 if test "$no_create" != yes; then
19347 ac_cs_success=:
19348 ac_config_status_args=
19349 test "$silent" = yes &&
19350 ac_config_status_args="$ac_config_status_args --quiet"
19351 exec 5>/dev/null
19352 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19353 exec 5>>config.log
19354 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19355 # would make configure fail if this is the last instruction.
19356 $ac_cs_success || as_fn_exit 1
19357 fi
19358 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19360 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19361 fi
19362