Merge from emacs-23; up to 2010-05-26T14:19:15Z!monnier@iro.umontreal.ca.
[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_config_libobj_dir=src
603 ac_header_list=
604 gl_getopt_required=POSIX
605 gl_getopt_required=POSIX
606 ac_func_list=
607 ac_subst_vars='gltests_LTLIBOBJS
608 gltests_LIBOBJS
609 gl_LTLIBOBJS
610 gl_LIBOBJS
611 am__EXEEXT_FALSE
612 am__EXEEXT_TRUE
613 LTLIBOBJS
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_STDDEF_H
681 NEXT_STDDEF_H
682 STDDEF_H
683 HAVE_WCHAR_T
684 REPLACE_NULL
685 HAVE__BOOL
686 STDBOOL_H
687 APPLE_UNIVERSAL_BUILD
688 REPLACE_TIMEGM
689 REPLACE_NANOSLEEP
690 REPLACE_MKTIME
691 REPLACE_LOCALTIME_R
692 HAVE_TIMEGM
693 HAVE_STRPTIME
694 HAVE_NANOSLEEP
695 HAVE_DECL_LOCALTIME_R
696 GNULIB_TIME_R
697 GNULIB_TIMEGM
698 GNULIB_STRPTIME
699 GNULIB_NANOSLEEP
700 GNULIB_MKTIME
701 LTLIBINTL
702 LIBINTL
703 GETOPT_H
704 HAVE_GETOPT_H
705 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
706 NEXT_GETOPT_H
707 PRAGMA_COLUMNS
708 PRAGMA_SYSTEM_HEADER
709 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
710 INCLUDE_NEXT
711 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
712 UNISTD_H_HAVE_WINSOCK2_H
713 REPLACE_WRITE
714 REPLACE_USLEEP
715 REPLACE_UNLINKAT
716 REPLACE_UNLINK
717 REPLACE_TTYNAME_R
718 REPLACE_SYMLINK
719 REPLACE_SLEEP
720 REPLACE_RMDIR
721 REPLACE_READLINK
722 REPLACE_PWRITE
723 REPLACE_PREAD
724 REPLACE_LSEEK
725 REPLACE_LINKAT
726 REPLACE_LINK
727 REPLACE_LCHOWN
728 REPLACE_GETPAGESIZE
729 REPLACE_GETGROUPS
730 REPLACE_GETLOGIN_R
731 REPLACE_GETDOMAINNAME
732 REPLACE_GETCWD
733 REPLACE_FCHOWNAT
734 REPLACE_DUP2
735 REPLACE_DUP
736 REPLACE_CLOSE
737 REPLACE_CHOWN
738 HAVE_SYS_PARAM_H
739 HAVE_OS_H
740 HAVE_DECL_TTYNAME_R
741 HAVE_DECL_GETUSERSHELL
742 HAVE_DECL_GETPAGESIZE
743 HAVE_DECL_GETLOGIN_R
744 HAVE_DECL_GETDOMAINNAME
745 HAVE_DECL_FCHDIR
746 HAVE_DECL_ENVIRON
747 HAVE_USLEEP
748 HAVE_UNLINKAT
749 HAVE_SYMLINKAT
750 HAVE_SYMLINK
751 HAVE_SLEEP
752 HAVE_READLINKAT
753 HAVE_READLINK
754 HAVE_PWRITE
755 HAVE_PREAD
756 HAVE_PIPE2
757 HAVE_PIPE
758 HAVE_LINKAT
759 HAVE_LINK
760 HAVE_LCHOWN
761 HAVE_GETPAGESIZE
762 HAVE_GETLOGIN
763 HAVE_GETHOSTNAME
764 HAVE_GETGROUPS
765 HAVE_GETDTABLESIZE
766 HAVE_FTRUNCATE
767 HAVE_FSYNC
768 HAVE_FCHOWNAT
769 HAVE_FCHDIR
770 HAVE_FACCESSAT
771 HAVE_EUIDACCESS
772 HAVE_DUP3
773 HAVE_DUP2
774 HAVE_CHOWN
775 GNULIB_WRITE
776 GNULIB_USLEEP
777 GNULIB_UNLINKAT
778 GNULIB_UNLINK
779 GNULIB_UNISTD_H_SIGPIPE
780 GNULIB_UNISTD_H_GETOPT
781 GNULIB_TTYNAME_R
782 GNULIB_SYMLINKAT
783 GNULIB_SYMLINK
784 GNULIB_SLEEP
785 GNULIB_RMDIR
786 GNULIB_READLINKAT
787 GNULIB_READLINK
788 GNULIB_PWRITE
789 GNULIB_PREAD
790 GNULIB_PIPE2
791 GNULIB_PIPE
792 GNULIB_LSEEK
793 GNULIB_LINKAT
794 GNULIB_LINK
795 GNULIB_LCHOWN
796 GNULIB_GETUSERSHELL
797 GNULIB_GETPAGESIZE
798 GNULIB_GETLOGIN_R
799 GNULIB_GETLOGIN
800 GNULIB_GETHOSTNAME
801 GNULIB_GETGROUPS
802 GNULIB_GETDTABLESIZE
803 GNULIB_GETDOMAINNAME
804 GNULIB_GETCWD
805 GNULIB_FTRUNCATE
806 GNULIB_FSYNC
807 GNULIB_FCHOWNAT
808 GNULIB_FCHDIR
809 GNULIB_FACCESSAT
810 GNULIB_EUIDACCESS
811 GNULIB_ENVIRON
812 GNULIB_DUP3
813 GNULIB_DUP2
814 GNULIB_CLOSE
815 GNULIB_CHOWN
816 GL_COND_LIBTOOL_FALSE
817 GL_COND_LIBTOOL_TRUE
818 GETLOADAVG_LIBS
819 KMEM_GROUP
820 NEED_SETGID
821 LIBOBJS
822 BLESSMAIL_TARGET
823 LIBS_MAIL
824 liblockfile
825 ALLOCA
826 LIBXML2_LIBS
827 LIBXML2_CFLAGS
828 LIBXSM
829 LIBGPM
830 LIBGIF
831 LIBTIFF
832 LIBPNG
833 LIBJPEG
834 LIBXPM
835 FREETYPE_LIBS
836 FREETYPE_CFLAGS
837 M17N_FLT_LIBS
838 M17N_FLT_CFLAGS
839 LIBOTF_LIBS
840 LIBOTF_CFLAGS
841 XFT_LIBS
842 XFT_CFLAGS
843 FONTCONFIG_LIBS
844 FONTCONFIG_CFLAGS
845 LIBXMU
846 LIBXTR6
847 LIBGNUTLS_LIBS
848 LIBGNUTLS_CFLAGS
849 LIBSELINUX_LIBS
850 GCONF_LIBS
851 GCONF_CFLAGS
852 DBUS_OBJ
853 DBUS_LIBS
854 DBUS_CFLAGS
855 GTK_OBJ
856 GTK_LIBS
857 GTK_CFLAGS
858 IMAGEMAGICK_LIBS
859 IMAGEMAGICK_CFLAGS
860 RSVG_LIBS
861 RSVG_CFLAGS
862 VMLIMIT_OBJ
863 GMALLOC_OBJ
864 HAVE_XSERVER
865 LIB_STANDARD
866 NS_SUPPORT
867 NS_OBJ
868 TEMACS_LDFLAGS2
869 LD_SWITCH_X_SITE_AUX_RPATH
870 LD_SWITCH_X_SITE_AUX
871 XMKMF
872 DEPFLAGS
873 MKDEPDIR
874 CFLAGS_SOUND
875 ALSA_LIBS
876 ALSA_CFLAGS
877 PKG_CONFIG
878 LIBSOUND
879 START_FILES
880 LIB_MATH
881 CRT_DIR
882 LIBS_SYSTEM
883 C_SWITCH_SYSTEM
884 UNEXEC_OBJ
885 C_SWITCH_MACHINE
886 LD_SWITCH_SYSTEM
887 CANNOT_DUMP
888 HAVE_MAKEINFO
889 GZIP_PROG
890 INSTALL_INFO
891 C_WARNINGS_SWITCH
892 EGREP
893 GREP
894 CPP
895 RANLIB
896 am__fastdepCC_FALSE
897 am__fastdepCC_TRUE
898 CCDEPMODE
899 AMDEPBACKSLASH
900 AMDEP_FALSE
901 AMDEP_TRUE
902 am__quote
903 am__include
904 DEPDIR
905 OBJEXT
906 EXEEXT
907 ac_ct_CC
908 CPPFLAGS
909 LDFLAGS
910 CFLAGS
911 CC
912 host_os
913 host_vendor
914 host_cpu
915 host
916 build_os
917 build_vendor
918 build_cpu
919 build
920 PROFILING_CFLAGS
921 MAINT
922 GZIP_INFO
923 am__untar
924 am__tar
925 AMTAR
926 am__leading_dot
927 SET_MAKE
928 AWK
929 mkdir_p
930 MKDIR_P
931 INSTALL_STRIP_PROGRAM
932 STRIP
933 install_sh
934 MAKEINFO
935 AUTOHEADER
936 AUTOMAKE
937 AUTOCONF
938 ACLOCAL
939 VERSION
940 PACKAGE
941 CYGPATH_W
942 am__isrc
943 INSTALL_DATA
944 INSTALL_SCRIPT
945 INSTALL_PROGRAM
946 target_alias
947 host_alias
948 build_alias
949 LIBS
950 ECHO_T
951 ECHO_N
952 ECHO_C
953 DEFS
954 mandir
955 localedir
956 libdir
957 psdir
958 pdfdir
959 dvidir
960 htmldir
961 infodir
962 docdir
963 oldincludedir
964 includedir
965 localstatedir
966 sharedstatedir
967 sysconfdir
968 datadir
969 datarootdir
970 libexecdir
971 sbindir
972 bindir
973 program_transform_name
974 prefix
975 exec_prefix
976 PACKAGE_URL
977 PACKAGE_BUGREPORT
978 PACKAGE_STRING
979 PACKAGE_VERSION
980 PACKAGE_TARNAME
981 PACKAGE_NAME
982 PATH_SEPARATOR
983 SHELL'
984 ac_subst_files='deps_frag
985 ns_frag'
986 ac_user_opts='
987 enable_option_checking
988 with_pop
989 with_kerberos
990 with_kerberos5
991 with_hesiod
992 with_mmdf
993 with_mail_unlink
994 with_mailhost
995 with_sound
996 with_sync_input
997 with_x_toolkit
998 with_xpm
999 with_jpeg
1000 with_tiff
1001 with_gif
1002 with_png
1003 with_rsvg
1004 with_xml2
1005 with_imagemagick
1006 with_xft
1007 with_libotf
1008 with_m17n_flt
1009 with_toolkit_scroll_bars
1010 with_xaw3d
1011 with_xim
1012 with_ns
1013 with_gpm
1014 with_dbus
1015 with_gconf
1016 with_selinux
1017 with_gnutls
1018 with_makeinfo
1019 with_compress_info
1020 with_pkg_config_prog
1021 with_crt_dir
1022 with_gameuser
1023 with_gnustep_conf
1024 enable_ns_self_contained
1025 enable_asserts
1026 enable_maintainer_mode
1027 enable_locallisppath
1028 enable_checking
1029 enable_use_lisp_union_type
1030 enable_profiling
1031 enable_autodepend
1032 enable_dependency_tracking
1033 enable_largefile
1034 with_x
1035 '
1036 ac_precious_vars='build_alias
1037 host_alias
1038 target_alias
1039 CC
1040 CFLAGS
1041 LDFLAGS
1042 LIBS
1043 CPPFLAGS
1044 CPP
1045 CPPFLAGS
1046 CPP
1047 CPPFLAGS
1048 XMKMF'
1049
1050
1051 # Initialize some variables set by options.
1052 ac_init_help=
1053 ac_init_version=false
1054 ac_unrecognized_opts=
1055 ac_unrecognized_sep=
1056 # The variables have the same names as the options, with
1057 # dashes changed to underlines.
1058 cache_file=/dev/null
1059 exec_prefix=NONE
1060 no_create=
1061 no_recursion=
1062 prefix=NONE
1063 program_prefix=NONE
1064 program_suffix=NONE
1065 program_transform_name=s,x,x,
1066 silent=
1067 site=
1068 srcdir=
1069 verbose=
1070 x_includes=NONE
1071 x_libraries=NONE
1072
1073 # Installation directory options.
1074 # These are left unexpanded so users can "make install exec_prefix=/foo"
1075 # and all the variables that are supposed to be based on exec_prefix
1076 # by default will actually change.
1077 # Use braces instead of parens because sh, perl, etc. also accept them.
1078 # (The list follows the same order as the GNU Coding Standards.)
1079 bindir='${exec_prefix}/bin'
1080 sbindir='${exec_prefix}/sbin'
1081 libexecdir='${exec_prefix}/libexec'
1082 datarootdir='${prefix}/share'
1083 datadir='${datarootdir}'
1084 sysconfdir='${prefix}/etc'
1085 sharedstatedir='${prefix}/com'
1086 localstatedir='${prefix}/var'
1087 includedir='${prefix}/include'
1088 oldincludedir='/usr/include'
1089 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1090 infodir='${datarootdir}/info'
1091 htmldir='${docdir}'
1092 dvidir='${docdir}'
1093 pdfdir='${docdir}'
1094 psdir='${docdir}'
1095 libdir='${exec_prefix}/lib'
1096 localedir='${datarootdir}/locale'
1097 mandir='${datarootdir}/man'
1098
1099 ac_prev=
1100 ac_dashdash=
1101 for ac_option
1102 do
1103 # If the previous option needs an argument, assign it.
1104 if test -n "$ac_prev"; then
1105 eval $ac_prev=\$ac_option
1106 ac_prev=
1107 continue
1108 fi
1109
1110 case $ac_option in
1111 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1112 *=) ac_optarg= ;;
1113 *) ac_optarg=yes ;;
1114 esac
1115
1116 # Accept the important Cygnus configure options, so we can diagnose typos.
1117
1118 case $ac_dashdash$ac_option in
1119 --)
1120 ac_dashdash=yes ;;
1121
1122 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1123 ac_prev=bindir ;;
1124 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1125 bindir=$ac_optarg ;;
1126
1127 -build | --build | --buil | --bui | --bu)
1128 ac_prev=build_alias ;;
1129 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1130 build_alias=$ac_optarg ;;
1131
1132 -cache-file | --cache-file | --cache-fil | --cache-fi \
1133 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1134 ac_prev=cache_file ;;
1135 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1136 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1137 cache_file=$ac_optarg ;;
1138
1139 --config-cache | -C)
1140 cache_file=config.cache ;;
1141
1142 -datadir | --datadir | --datadi | --datad)
1143 ac_prev=datadir ;;
1144 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1145 datadir=$ac_optarg ;;
1146
1147 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1148 | --dataroo | --dataro | --datar)
1149 ac_prev=datarootdir ;;
1150 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1151 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1152 datarootdir=$ac_optarg ;;
1153
1154 -disable-* | --disable-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid feature name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "enable_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval enable_$ac_useropt=no ;;
1169
1170 -docdir | --docdir | --docdi | --doc | --do)
1171 ac_prev=docdir ;;
1172 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1173 docdir=$ac_optarg ;;
1174
1175 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1176 ac_prev=dvidir ;;
1177 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1178 dvidir=$ac_optarg ;;
1179
1180 -enable-* | --enable-*)
1181 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error $? "invalid feature name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189 "enable_$ac_useropt"
1190 "*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval enable_$ac_useropt=\$ac_optarg ;;
1195
1196 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1197 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1198 | --exec | --exe | --ex)
1199 ac_prev=exec_prefix ;;
1200 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1201 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1202 | --exec=* | --exe=* | --ex=*)
1203 exec_prefix=$ac_optarg ;;
1204
1205 -gas | --gas | --ga | --g)
1206 # Obsolete; use --with-gas.
1207 with_gas=yes ;;
1208
1209 -help | --help | --hel | --he | -h)
1210 ac_init_help=long ;;
1211 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1212 ac_init_help=recursive ;;
1213 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1214 ac_init_help=short ;;
1215
1216 -host | --host | --hos | --ho)
1217 ac_prev=host_alias ;;
1218 -host=* | --host=* | --hos=* | --ho=*)
1219 host_alias=$ac_optarg ;;
1220
1221 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222 ac_prev=htmldir ;;
1223 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224 | --ht=*)
1225 htmldir=$ac_optarg ;;
1226
1227 -includedir | --includedir | --includedi | --included | --include \
1228 | --includ | --inclu | --incl | --inc)
1229 ac_prev=includedir ;;
1230 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1231 | --includ=* | --inclu=* | --incl=* | --inc=*)
1232 includedir=$ac_optarg ;;
1233
1234 -infodir | --infodir | --infodi | --infod | --info | --inf)
1235 ac_prev=infodir ;;
1236 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1237 infodir=$ac_optarg ;;
1238
1239 -libdir | --libdir | --libdi | --libd)
1240 ac_prev=libdir ;;
1241 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1242 libdir=$ac_optarg ;;
1243
1244 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1245 | --libexe | --libex | --libe)
1246 ac_prev=libexecdir ;;
1247 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1248 | --libexe=* | --libex=* | --libe=*)
1249 libexecdir=$ac_optarg ;;
1250
1251 -localedir | --localedir | --localedi | --localed | --locale)
1252 ac_prev=localedir ;;
1253 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1254 localedir=$ac_optarg ;;
1255
1256 -localstatedir | --localstatedir | --localstatedi | --localstated \
1257 | --localstate | --localstat | --localsta | --localst | --locals)
1258 ac_prev=localstatedir ;;
1259 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1260 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1261 localstatedir=$ac_optarg ;;
1262
1263 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264 ac_prev=mandir ;;
1265 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1266 mandir=$ac_optarg ;;
1267
1268 -nfp | --nfp | --nf)
1269 # Obsolete; use --without-fp.
1270 with_fp=no ;;
1271
1272 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1273 | --no-cr | --no-c | -n)
1274 no_create=yes ;;
1275
1276 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1277 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1278 no_recursion=yes ;;
1279
1280 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1281 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1282 | --oldin | --oldi | --old | --ol | --o)
1283 ac_prev=oldincludedir ;;
1284 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1285 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1286 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1287 oldincludedir=$ac_optarg ;;
1288
1289 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290 ac_prev=prefix ;;
1291 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1292 prefix=$ac_optarg ;;
1293
1294 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1295 | --program-pre | --program-pr | --program-p)
1296 ac_prev=program_prefix ;;
1297 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1298 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1299 program_prefix=$ac_optarg ;;
1300
1301 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1302 | --program-suf | --program-su | --program-s)
1303 ac_prev=program_suffix ;;
1304 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1305 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1306 program_suffix=$ac_optarg ;;
1307
1308 -program-transform-name | --program-transform-name \
1309 | --program-transform-nam | --program-transform-na \
1310 | --program-transform-n | --program-transform- \
1311 | --program-transform | --program-transfor \
1312 | --program-transfo | --program-transf \
1313 | --program-trans | --program-tran \
1314 | --progr-tra | --program-tr | --program-t)
1315 ac_prev=program_transform_name ;;
1316 -program-transform-name=* | --program-transform-name=* \
1317 | --program-transform-nam=* | --program-transform-na=* \
1318 | --program-transform-n=* | --program-transform-=* \
1319 | --program-transform=* | --program-transfor=* \
1320 | --program-transfo=* | --program-transf=* \
1321 | --program-trans=* | --program-tran=* \
1322 | --progr-tra=* | --program-tr=* | --program-t=*)
1323 program_transform_name=$ac_optarg ;;
1324
1325 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326 ac_prev=pdfdir ;;
1327 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1328 pdfdir=$ac_optarg ;;
1329
1330 -psdir | --psdir | --psdi | --psd | --ps)
1331 ac_prev=psdir ;;
1332 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1333 psdir=$ac_optarg ;;
1334
1335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1336 | -silent | --silent | --silen | --sile | --sil)
1337 silent=yes ;;
1338
1339 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340 ac_prev=sbindir ;;
1341 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342 | --sbi=* | --sb=*)
1343 sbindir=$ac_optarg ;;
1344
1345 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1346 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1347 | --sharedst | --shareds | --shared | --share | --shar \
1348 | --sha | --sh)
1349 ac_prev=sharedstatedir ;;
1350 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1351 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1352 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353 | --sha=* | --sh=*)
1354 sharedstatedir=$ac_optarg ;;
1355
1356 -site | --site | --sit)
1357 ac_prev=site ;;
1358 -site=* | --site=* | --sit=*)
1359 site=$ac_optarg ;;
1360
1361 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362 ac_prev=srcdir ;;
1363 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1364 srcdir=$ac_optarg ;;
1365
1366 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1367 | --syscon | --sysco | --sysc | --sys | --sy)
1368 ac_prev=sysconfdir ;;
1369 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1370 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1371 sysconfdir=$ac_optarg ;;
1372
1373 -target | --target | --targe | --targ | --tar | --ta | --t)
1374 ac_prev=target_alias ;;
1375 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1376 target_alias=$ac_optarg ;;
1377
1378 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1379 verbose=yes ;;
1380
1381 -version | --version | --versio | --versi | --vers | -V)
1382 ac_init_version=: ;;
1383
1384 -with-* | --with-*)
1385 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1388 as_fn_error $? "invalid package name: $ac_useropt"
1389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1392 *"
1393 "with_$ac_useropt"
1394 "*) ;;
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1397 esac
1398 eval with_$ac_useropt=\$ac_optarg ;;
1399
1400 -without-* | --without-*)
1401 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1402 # Reject names that are not valid shell variable names.
1403 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1404 as_fn_error $? "invalid package name: $ac_useropt"
1405 ac_useropt_orig=$ac_useropt
1406 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1407 case $ac_user_opts in
1408 *"
1409 "with_$ac_useropt"
1410 "*) ;;
1411 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1412 ac_unrecognized_sep=', ';;
1413 esac
1414 eval with_$ac_useropt=no ;;
1415
1416 --x)
1417 # Obsolete; use --with-x.
1418 with_x=yes ;;
1419
1420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421 | --x-incl | --x-inc | --x-in | --x-i)
1422 ac_prev=x_includes ;;
1423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425 x_includes=$ac_optarg ;;
1426
1427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429 ac_prev=x_libraries ;;
1430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432 x_libraries=$ac_optarg ;;
1433
1434 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1435 Try \`$0 --help' for more information"
1436 ;;
1437
1438 *=*)
1439 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1440 # Reject names that are not valid shell variable names.
1441 case $ac_envvar in #(
1442 '' | [0-9]* | *[!_$as_cr_alnum]* )
1443 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1444 esac
1445 eval $ac_envvar=\$ac_optarg
1446 export $ac_envvar ;;
1447
1448 *)
1449 # FIXME: should be removed in autoconf 3.0.
1450 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1454 ;;
1455
1456 esac
1457 done
1458
1459 if test -n "$ac_prev"; then
1460 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461 as_fn_error $? "missing argument to $ac_option"
1462 fi
1463
1464 if test -n "$ac_unrecognized_opts"; then
1465 case $enable_option_checking in
1466 no) ;;
1467 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1468 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1469 esac
1470 fi
1471
1472 # Check all directory arguments for consistency.
1473 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1474 datadir sysconfdir sharedstatedir localstatedir includedir \
1475 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1476 libdir localedir mandir
1477 do
1478 eval ac_val=\$$ac_var
1479 # Remove trailing slashes.
1480 case $ac_val in
1481 */ )
1482 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1483 eval $ac_var=\$ac_val;;
1484 esac
1485 # Be sure to have absolute directory names.
1486 case $ac_val in
1487 [\\/$]* | ?:[\\/]* ) continue;;
1488 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1489 esac
1490 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1491 done
1492
1493 # There might be people who depend on the old broken behavior: `$host'
1494 # used to hold the argument of --host etc.
1495 # FIXME: To remove some day.
1496 build=$build_alias
1497 host=$host_alias
1498 target=$target_alias
1499
1500 # FIXME: To remove some day.
1501 if test "x$host_alias" != x; then
1502 if test "x$build_alias" = x; then
1503 cross_compiling=maybe
1504 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1505 If a cross compiler is detected then cross compile mode will be used" >&2
1506 elif test "x$build_alias" != "x$host_alias"; then
1507 cross_compiling=yes
1508 fi
1509 fi
1510
1511 ac_tool_prefix=
1512 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1513
1514 test "$silent" = yes && exec 6>/dev/null
1515
1516
1517 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1518 ac_ls_di=`ls -di .` &&
1519 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1520 as_fn_error $? "working directory cannot be determined"
1521 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1522 as_fn_error $? "pwd does not report name of working directory"
1523
1524
1525 # Find the source files, if location was not specified.
1526 if test -z "$srcdir"; then
1527 ac_srcdir_defaulted=yes
1528 # Try the directory containing this script, then the parent directory.
1529 ac_confdir=`$as_dirname -- "$as_myself" ||
1530 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1531 X"$as_myself" : 'X\(//\)[^/]' \| \
1532 X"$as_myself" : 'X\(//\)$' \| \
1533 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1534 $as_echo X"$as_myself" |
1535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1536 s//\1/
1537 q
1538 }
1539 /^X\(\/\/\)[^/].*/{
1540 s//\1/
1541 q
1542 }
1543 /^X\(\/\/\)$/{
1544 s//\1/
1545 q
1546 }
1547 /^X\(\/\).*/{
1548 s//\1/
1549 q
1550 }
1551 s/.*/./; q'`
1552 srcdir=$ac_confdir
1553 if test ! -r "$srcdir/$ac_unique_file"; then
1554 srcdir=..
1555 fi
1556 else
1557 ac_srcdir_defaulted=no
1558 fi
1559 if test ! -r "$srcdir/$ac_unique_file"; then
1560 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1561 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1562 fi
1563 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1564 ac_abs_confdir=`(
1565 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1566 pwd)`
1567 # When building in place, set srcdir=.
1568 if test "$ac_abs_confdir" = "$ac_pwd"; then
1569 srcdir=.
1570 fi
1571 # Remove unnecessary trailing slashes from srcdir.
1572 # Double slashes in file names in object file debugging info
1573 # mess up M-x gdb in Emacs.
1574 case $srcdir in
1575 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1576 esac
1577 for ac_var in $ac_precious_vars; do
1578 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1579 eval ac_env_${ac_var}_value=\$${ac_var}
1580 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1582 done
1583
1584 #
1585 # Report the --help message.
1586 #
1587 if test "$ac_init_help" = "long"; then
1588 # Omit some internal or obsolete options to make the list less imposing.
1589 # This message is too long to be a string in the A/UX 3.1 sh.
1590 cat <<_ACEOF
1591 \`configure' configures emacs 24.0.50 to adapt to many kinds of systems.
1592
1593 Usage: $0 [OPTION]... [VAR=VALUE]...
1594
1595 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1596 VAR=VALUE. See below for descriptions of some of the useful variables.
1597
1598 Defaults for the options are specified in brackets.
1599
1600 Configuration:
1601 -h, --help display this help and exit
1602 --help=short display options specific to this package
1603 --help=recursive display the short help of all the included packages
1604 -V, --version display version information and exit
1605 -q, --quiet, --silent do not print \`checking ...' messages
1606 --cache-file=FILE cache test results in FILE [disabled]
1607 -C, --config-cache alias for \`--cache-file=config.cache'
1608 -n, --no-create do not create output files
1609 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1610
1611 Installation directories:
1612 --prefix=PREFIX install architecture-independent files in PREFIX
1613 [$ac_default_prefix]
1614 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1615 [PREFIX]
1616
1617 By default, \`make install' will install all the files in
1618 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1619 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1620 for instance \`--prefix=\$HOME'.
1621
1622 For better control, use the options below.
1623
1624 Fine tuning of the installation directories:
1625 --bindir=DIR user executables [EPREFIX/bin]
1626 --sbindir=DIR system admin executables [EPREFIX/sbin]
1627 --libexecdir=DIR program executables [EPREFIX/libexec]
1628 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1629 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1630 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1631 --libdir=DIR object code libraries [EPREFIX/lib]
1632 --includedir=DIR C header files [PREFIX/include]
1633 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1634 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1635 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1636 --infodir=DIR info documentation [DATAROOTDIR/info]
1637 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1638 --mandir=DIR man documentation [DATAROOTDIR/man]
1639 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1640 --htmldir=DIR html documentation [DOCDIR]
1641 --dvidir=DIR dvi documentation [DOCDIR]
1642 --pdfdir=DIR pdf documentation [DOCDIR]
1643 --psdir=DIR ps documentation [DOCDIR]
1644 _ACEOF
1645
1646 cat <<\_ACEOF
1647
1648 Program names:
1649 --program-prefix=PREFIX prepend PREFIX to installed program names
1650 --program-suffix=SUFFIX append SUFFIX to installed program names
1651 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1652
1653 X features:
1654 --x-includes=DIR X include files are in DIR
1655 --x-libraries=DIR X library files are in DIR
1656
1657 System types:
1658 --build=BUILD configure for building on BUILD [guessed]
1659 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1660 _ACEOF
1661 fi
1662
1663 if test -n "$ac_init_help"; then
1664 case $ac_init_help in
1665 short | recursive ) echo "Configuration of emacs 24.0.50:";;
1666 esac
1667 cat <<\_ACEOF
1668
1669 Optional Features:
1670 --disable-option-checking ignore unrecognized --enable/--with options
1671 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1672 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1673 --disable-ns-self-contained
1674 disable self contained build under NeXTstep
1675 --enable-asserts compile code with asserts enabled
1676 --enable-maintainer-mode
1677 enable make rules and dependencies not useful (and
1678 sometimes confusing) to the casual installer
1679 --enable-locallisppath=PATH
1680 directories Emacs should search for lisp files
1681 specific to this site
1682 --enable-checking[=LIST]
1683 enable expensive run-time checks. With LIST, enable
1684 only specific categories of checks. Categories are:
1685 all,yes,no. Flags are: stringbytes, stringoverrun,
1686 stringfreelist, xmallocoverrun, conslist
1687 --enable-use-lisp-union-type
1688 use a union for the Lisp_Object data type. This is
1689 only useful for development for catching certain
1690 types of bugs.
1691 --enable-profiling build emacs with profiling support. This might not
1692 work on all platforms
1693 --enable-autodepend automatically generate dependencies to .h-files.
1694 Requires GNU Make and Gcc. Enabled if GNU Make and
1695 Gcc is found
1696 --disable-dependency-tracking speeds up one-time build
1697 --enable-dependency-tracking do not reject slow dependency extractors
1698 --disable-largefile omit support for large files
1699
1700 Optional Packages:
1701 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1702 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1703 --without-pop don't support POP mail retrieval with movemail
1704 --with-kerberos support Kerberos-authenticated POP
1705 --with-kerberos5 support Kerberos version 5 authenticated POP
1706 --with-hesiod support Hesiod to get the POP server host
1707 --with-mmdf support MMDF mailboxes
1708 --with-mail-unlink unlink, rather than empty, mail spool after reading
1709 --with-mailhost=HOSTNAME
1710 string giving default POP mail host
1711 --without-sound don't compile with sound support
1712 --without-sync-input process async input synchronously
1713 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk3,
1714 lucid or athena, motif, no)
1715 --without-xpm don't compile with XPM image support
1716 --without-jpeg don't compile with JPEG image support
1717 --without-tiff don't compile with TIFF image support
1718 --without-gif don't compile with GIF image support
1719 --without-png don't compile with PNG image support
1720 --without-rsvg don't compile with SVG image support
1721 --without-xml2 don't compile with XML parsing support
1722 --without-imagemagick don't compile with ImageMagick image support
1723 --without-xft don't use XFT for anti aliased fonts
1724 --without-libotf don't use libotf for OpenType font support
1725 --without-m17n-flt don't use m17n-flt for text shaping
1726 --without-toolkit-scroll-bars
1727 don't use Motif or Xaw3d scroll bars
1728 --without-xaw3d don't use Xaw3d
1729 --without-xim don't use X11 XIM
1730 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1731 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1732 console
1733 --without-dbus don't compile with D-Bus support
1734 --without-gconf don't compile with GConf support
1735 --without-selinux don't compile with SELinux support
1736 --without-gnutls don't use -lgnutls for SSL/TLS support
1737 --without-makeinfo don't require makeinfo for building manuals
1738 --without-compress-info don't compress the installed Info pages
1739 --with-pkg-config-prog=PATH
1740 path to pkg-config for finding GTK and librsvg
1741 --with-crt-dir=DIR directory containing crtn.o etc. The default is
1742 /usr/lib, or /usr/lib64 on some platforms.
1743 --with-gameuser=USER user for shared game score files
1744 --with-gnustep-conf=PATH
1745 path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE,
1746 or /etc/GNUstep/GNUstep.conf
1747 --with-x use the X Window System
1748
1749 Some influential environment variables:
1750 CC C compiler command
1751 CFLAGS C compiler flags
1752 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1753 nonstandard directory <lib dir>
1754 LIBS libraries to pass to the linker, e.g. -l<library>
1755 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1756 you have headers in a nonstandard directory <include dir>
1757 CPP C preprocessor
1758 XMKMF Path to xmkmf, Makefile generator for X Window System
1759
1760 Use these variables to override the choices made by `configure' or to help
1761 it to find libraries and programs with nonstandard names/locations.
1762
1763 Report bugs to the package provider.
1764 _ACEOF
1765 ac_status=$?
1766 fi
1767
1768 if test "$ac_init_help" = "recursive"; then
1769 # If there are subdirs, report their specific --help.
1770 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1771 test -d "$ac_dir" ||
1772 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1773 continue
1774 ac_builddir=.
1775
1776 case "$ac_dir" in
1777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1778 *)
1779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1780 # A ".." for each directory in $ac_dir_suffix.
1781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1782 case $ac_top_builddir_sub in
1783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1785 esac ;;
1786 esac
1787 ac_abs_top_builddir=$ac_pwd
1788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1789 # for backward compatibility:
1790 ac_top_builddir=$ac_top_build_prefix
1791
1792 case $srcdir in
1793 .) # We are building in place.
1794 ac_srcdir=.
1795 ac_top_srcdir=$ac_top_builddir_sub
1796 ac_abs_top_srcdir=$ac_pwd ;;
1797 [\\/]* | ?:[\\/]* ) # Absolute name.
1798 ac_srcdir=$srcdir$ac_dir_suffix;
1799 ac_top_srcdir=$srcdir
1800 ac_abs_top_srcdir=$srcdir ;;
1801 *) # Relative name.
1802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1803 ac_top_srcdir=$ac_top_build_prefix$srcdir
1804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1805 esac
1806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1807
1808 cd "$ac_dir" || { ac_status=$?; continue; }
1809 # Check for guested configure.
1810 if test -f "$ac_srcdir/configure.gnu"; then
1811 echo &&
1812 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1813 elif test -f "$ac_srcdir/configure"; then
1814 echo &&
1815 $SHELL "$ac_srcdir/configure" --help=recursive
1816 else
1817 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1818 fi || ac_status=$?
1819 cd "$ac_pwd" || { ac_status=$?; break; }
1820 done
1821 fi
1822
1823 test -n "$ac_init_help" && exit $ac_status
1824 if $ac_init_version; then
1825 cat <<\_ACEOF
1826 emacs configure 24.0.50
1827 generated by GNU Autoconf 2.68
1828
1829 Copyright (C) 2010 Free Software Foundation, Inc.
1830 This configure script is free software; the Free Software Foundation
1831 gives unlimited permission to copy, distribute and modify it.
1832 _ACEOF
1833 exit
1834 fi
1835
1836 ## ------------------------ ##
1837 ## Autoconf initialization. ##
1838 ## ------------------------ ##
1839
1840 # ac_fn_c_try_compile LINENO
1841 # --------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_compile ()
1844 {
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1860 fi
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1866 ac_retval=0
1867 else
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872 fi
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_compile
1877
1878 # ac_fn_c_try_cpp LINENO
1879 # ----------------------
1880 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_cpp ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_cpp conftest.$ac_ext"
1885 case "(($ac_try" in
1886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1888 esac
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1892 ac_status=$?
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1897 fi
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } > conftest.i && {
1900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1901 test ! -s conftest.err
1902 }; then :
1903 ac_retval=0
1904 else
1905 $as_echo "$as_me: failed program was:" >&5
1906 sed 's/^/| /' conftest.$ac_ext >&5
1907
1908 ac_retval=1
1909 fi
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 as_fn_set_status $ac_retval
1912
1913 } # ac_fn_c_try_cpp
1914
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1919 # accordingly.
1920 ac_fn_c_check_header_mongrel ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if eval \${$3+:} false; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928 fi
1929 eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1932 else
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1938 $4
1939 #include <$2>
1940 _ACEOF
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1943 else
1944 ac_header_compiler=no
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1949
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 #include <$2>
1956 _ACEOF
1957 if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1959 else
1960 ac_header_preproc=no
1961 fi
1962 rm -f conftest.err conftest.i conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1965
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 yes:no: )
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 ;;
1974 no:yes:* )
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 ;;
1986 esac
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if eval \${$3+:} false; then :
1990 $as_echo_n "(cached) " >&6
1991 else
1992 eval "$3=\$ac_header_compiler"
1993 fi
1994 eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 fi
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999
2000 } # ac_fn_c_check_header_mongrel
2001
2002 # ac_fn_c_try_run LINENO
2003 # ----------------------
2004 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2005 # that executables *can* be run.
2006 ac_fn_c_try_run ()
2007 {
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 if { { ac_try="$ac_link"
2010 case "(($ac_try" in
2011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2012 *) ac_try_echo=$ac_try;;
2013 esac
2014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2015 $as_echo "$ac_try_echo"; } >&5
2016 (eval "$ac_link") 2>&5
2017 ac_status=$?
2018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2019 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2020 { { case "(($ac_try" in
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2023 esac
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_try") 2>&5
2027 ac_status=$?
2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2029 test $ac_status = 0; }; }; then :
2030 ac_retval=0
2031 else
2032 $as_echo "$as_me: program exited with status $ac_status" >&5
2033 $as_echo "$as_me: failed program was:" >&5
2034 sed 's/^/| /' conftest.$ac_ext >&5
2035
2036 ac_retval=$ac_status
2037 fi
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 as_fn_set_status $ac_retval
2041
2042 } # ac_fn_c_try_run
2043
2044 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2045 # -------------------------------------------------------
2046 # Tests whether HEADER exists and can be compiled using the include files in
2047 # INCLUDES, setting the cache variable VAR accordingly.
2048 ac_fn_c_check_header_compile ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 $4
2059 #include <$2>
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$3=yes"
2063 else
2064 eval "$3=no"
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 fi
2068 eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070 $as_echo "$ac_res" >&6; }
2071 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072
2073 } # ac_fn_c_check_header_compile
2074
2075 # ac_fn_c_try_link LINENO
2076 # -----------------------
2077 # Try to link conftest.$ac_ext, and return whether this succeeded.
2078 ac_fn_c_try_link ()
2079 {
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 rm -f conftest.$ac_objext conftest$ac_exeext
2082 if { { ac_try="$ac_link"
2083 case "(($ac_try" in
2084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2085 *) ac_try_echo=$ac_try;;
2086 esac
2087 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2088 $as_echo "$ac_try_echo"; } >&5
2089 (eval "$ac_link") 2>conftest.err
2090 ac_status=$?
2091 if test -s conftest.err; then
2092 grep -v '^ *+' conftest.err >conftest.er1
2093 cat conftest.er1 >&5
2094 mv -f conftest.er1 conftest.err
2095 fi
2096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2097 test $ac_status = 0; } && {
2098 test -z "$ac_c_werror_flag" ||
2099 test ! -s conftest.err
2100 } && test -s conftest$ac_exeext && {
2101 test "$cross_compiling" = yes ||
2102 $as_test_x conftest$ac_exeext
2103 }; then :
2104 ac_retval=0
2105 else
2106 $as_echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2108
2109 ac_retval=1
2110 fi
2111 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2112 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2113 # interfere with the next link command; also delete a directory that is
2114 # left behind by Apple's compiler. We do this before executing the actions.
2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status $ac_retval
2118
2119 } # ac_fn_c_try_link
2120
2121 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2122 # ---------------------------------------------
2123 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2124 # accordingly.
2125 ac_fn_c_check_decl ()
2126 {
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 as_decl_name=`echo $2|sed 's/ *(.*//'`
2129 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2131 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2132 if eval \${$3+:} false; then :
2133 $as_echo_n "(cached) " >&6
2134 else
2135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $4
2138 int
2139 main ()
2140 {
2141 #ifndef $as_decl_name
2142 #ifdef __cplusplus
2143 (void) $as_decl_use;
2144 #else
2145 (void) $as_decl_name;
2146 #endif
2147 #endif
2148
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$3=yes"
2155 else
2156 eval "$3=no"
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 fi
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2164
2165 } # ac_fn_c_check_decl
2166
2167 # ac_fn_c_check_header_preproc LINENO HEADER VAR
2168 # ----------------------------------------------
2169 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
2170 ac_fn_c_check_header_preproc ()
2171 {
2172 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2174 $as_echo_n "checking for $2... " >&6; }
2175 if eval \${$3+:} false; then :
2176 $as_echo_n "(cached) " >&6
2177 else
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 #include <$2>
2181 _ACEOF
2182 if ac_fn_c_try_cpp "$LINENO"; then :
2183 eval "$3=yes"
2184 else
2185 eval "$3=no"
2186 fi
2187 rm -f conftest.err conftest.i conftest.$ac_ext
2188 fi
2189 eval ac_res=\$$3
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2191 $as_echo "$ac_res" >&6; }
2192 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2193
2194 } # ac_fn_c_check_header_preproc
2195
2196 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2197 # ----------------------------------------------------
2198 # Tries to find if the field MEMBER exists in type AGGR, after including
2199 # INCLUDES, setting cache variable VAR accordingly.
2200 ac_fn_c_check_member ()
2201 {
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2204 $as_echo_n "checking for $2.$3... " >&6; }
2205 if eval \${$4+:} false; then :
2206 $as_echo_n "(cached) " >&6
2207 else
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 $5
2211 int
2212 main ()
2213 {
2214 static $2 ac_aggr;
2215 if (ac_aggr.$3)
2216 return 0;
2217 ;
2218 return 0;
2219 }
2220 _ACEOF
2221 if ac_fn_c_try_compile "$LINENO"; then :
2222 eval "$4=yes"
2223 else
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $5
2227 int
2228 main ()
2229 {
2230 static $2 ac_aggr;
2231 if (sizeof ac_aggr.$3)
2232 return 0;
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 eval "$4=yes"
2239 else
2240 eval "$4=no"
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 fi
2244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 fi
2246 eval ac_res=\$$4
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250
2251 } # ac_fn_c_check_member
2252
2253 # ac_fn_c_check_func LINENO FUNC VAR
2254 # ----------------------------------
2255 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2256 ac_fn_c_check_func ()
2257 {
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260 $as_echo_n "checking for $2... " >&6; }
2261 if eval \${$3+:} false; then :
2262 $as_echo_n "(cached) " >&6
2263 else
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2268 #define $2 innocuous_$2
2269
2270 /* System header to define __stub macros and hopefully few prototypes,
2271 which can conflict with char $2 (); below.
2272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2273 <limits.h> exists even on freestanding compilers. */
2274
2275 #ifdef __STDC__
2276 # include <limits.h>
2277 #else
2278 # include <assert.h>
2279 #endif
2280
2281 #undef $2
2282
2283 /* Override any GCC internal prototype to avoid an error.
2284 Use char because int might match the return type of a GCC
2285 builtin and then its argument prototype would still apply. */
2286 #ifdef __cplusplus
2287 extern "C"
2288 #endif
2289 char $2 ();
2290 /* The GNU C library defines this for functions which it implements
2291 to always fail with ENOSYS. Some functions are actually named
2292 something starting with __ and the normal name is an alias. */
2293 #if defined __stub_$2 || defined __stub___$2
2294 choke me
2295 #endif
2296
2297 int
2298 main ()
2299 {
2300 return $2 ();
2301 ;
2302 return 0;
2303 }
2304 _ACEOF
2305 if ac_fn_c_try_link "$LINENO"; then :
2306 eval "$3=yes"
2307 else
2308 eval "$3=no"
2309 fi
2310 rm -f core conftest.err conftest.$ac_objext \
2311 conftest$ac_exeext conftest.$ac_ext
2312 fi
2313 eval ac_res=\$$3
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2315 $as_echo "$ac_res" >&6; }
2316 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317
2318 } # ac_fn_c_check_func
2319
2320 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2321 # -------------------------------------------
2322 # Tests whether TYPE exists after having included INCLUDES, setting cache
2323 # variable VAR accordingly.
2324 ac_fn_c_check_type ()
2325 {
2326 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2328 $as_echo_n "checking for $2... " >&6; }
2329 if eval \${$3+:} false; then :
2330 $as_echo_n "(cached) " >&6
2331 else
2332 eval "$3=no"
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334 /* end confdefs.h. */
2335 $4
2336 int
2337 main ()
2338 {
2339 if (sizeof ($2))
2340 return 0;
2341 ;
2342 return 0;
2343 }
2344 _ACEOF
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2348 $4
2349 int
2350 main ()
2351 {
2352 if (sizeof (($2)))
2353 return 0;
2354 ;
2355 return 0;
2356 }
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359
2360 else
2361 eval "$3=yes"
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 fi
2365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 fi
2367 eval ac_res=\$$3
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2369 $as_echo "$ac_res" >&6; }
2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2371
2372 } # ac_fn_c_check_type
2373 cat >config.log <<_ACEOF
2374 This file contains any messages produced by compilers while
2375 running configure, to aid debugging if configure makes a mistake.
2376
2377 It was created by emacs $as_me 24.0.50, which was
2378 generated by GNU Autoconf 2.68. Invocation command line was
2379
2380 $ $0 $@
2381
2382 _ACEOF
2383 exec 5>>config.log
2384 {
2385 cat <<_ASUNAME
2386 ## --------- ##
2387 ## Platform. ##
2388 ## --------- ##
2389
2390 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2391 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2392 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2393 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2394 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2395
2396 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2397 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2398
2399 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2400 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2401 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2402 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2403 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2404 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2405 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2406
2407 _ASUNAME
2408
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 $as_echo "PATH: $as_dir"
2415 done
2416 IFS=$as_save_IFS
2417
2418 } >&5
2419
2420 cat >&5 <<_ACEOF
2421
2422
2423 ## ----------- ##
2424 ## Core tests. ##
2425 ## ----------- ##
2426
2427 _ACEOF
2428
2429
2430 # Keep a trace of the command line.
2431 # Strip out --no-create and --no-recursion so they do not pile up.
2432 # Strip out --silent because we don't want to record it for future runs.
2433 # Also quote any args containing shell meta-characters.
2434 # Make two passes to allow for proper duplicate-argument suppression.
2435 ac_configure_args=
2436 ac_configure_args0=
2437 ac_configure_args1=
2438 ac_must_keep_next=false
2439 for ac_pass in 1 2
2440 do
2441 for ac_arg
2442 do
2443 case $ac_arg in
2444 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2445 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2446 | -silent | --silent | --silen | --sile | --sil)
2447 continue ;;
2448 *\'*)
2449 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2450 esac
2451 case $ac_pass in
2452 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2453 2)
2454 as_fn_append ac_configure_args1 " '$ac_arg'"
2455 if test $ac_must_keep_next = true; then
2456 ac_must_keep_next=false # Got value, back to normal.
2457 else
2458 case $ac_arg in
2459 *=* | --config-cache | -C | -disable-* | --disable-* \
2460 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2461 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2462 | -with-* | --with-* | -without-* | --without-* | --x)
2463 case "$ac_configure_args0 " in
2464 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2465 esac
2466 ;;
2467 -* ) ac_must_keep_next=true ;;
2468 esac
2469 fi
2470 as_fn_append ac_configure_args " '$ac_arg'"
2471 ;;
2472 esac
2473 done
2474 done
2475 { ac_configure_args0=; unset ac_configure_args0;}
2476 { ac_configure_args1=; unset ac_configure_args1;}
2477
2478 # When interrupted or exit'd, cleanup temporary files, and complete
2479 # config.log. We remove comments because anyway the quotes in there
2480 # would cause problems or look ugly.
2481 # WARNING: Use '\'' to represent an apostrophe within the trap.
2482 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2483 trap 'exit_status=$?
2484 # Save into config.log some information that might help in debugging.
2485 {
2486 echo
2487
2488 $as_echo "## ---------------- ##
2489 ## Cache variables. ##
2490 ## ---------------- ##"
2491 echo
2492 # The following way of writing the cache mishandles newlines in values,
2493 (
2494 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2495 eval ac_val=\$$ac_var
2496 case $ac_val in #(
2497 *${as_nl}*)
2498 case $ac_var in #(
2499 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2500 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2501 esac
2502 case $ac_var in #(
2503 _ | IFS | as_nl) ;; #(
2504 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2505 *) { eval $ac_var=; unset $ac_var;} ;;
2506 esac ;;
2507 esac
2508 done
2509 (set) 2>&1 |
2510 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2511 *${as_nl}ac_space=\ *)
2512 sed -n \
2513 "s/'\''/'\''\\\\'\'''\''/g;
2514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2515 ;; #(
2516 *)
2517 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2518 ;;
2519 esac |
2520 sort
2521 )
2522 echo
2523
2524 $as_echo "## ----------------- ##
2525 ## Output variables. ##
2526 ## ----------------- ##"
2527 echo
2528 for ac_var in $ac_subst_vars
2529 do
2530 eval ac_val=\$$ac_var
2531 case $ac_val in
2532 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2533 esac
2534 $as_echo "$ac_var='\''$ac_val'\''"
2535 done | sort
2536 echo
2537
2538 if test -n "$ac_subst_files"; then
2539 $as_echo "## ------------------- ##
2540 ## File substitutions. ##
2541 ## ------------------- ##"
2542 echo
2543 for ac_var in $ac_subst_files
2544 do
2545 eval ac_val=\$$ac_var
2546 case $ac_val in
2547 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2548 esac
2549 $as_echo "$ac_var='\''$ac_val'\''"
2550 done | sort
2551 echo
2552 fi
2553
2554 if test -s confdefs.h; then
2555 $as_echo "## ----------- ##
2556 ## confdefs.h. ##
2557 ## ----------- ##"
2558 echo
2559 cat confdefs.h
2560 echo
2561 fi
2562 test "$ac_signal" != 0 &&
2563 $as_echo "$as_me: caught signal $ac_signal"
2564 $as_echo "$as_me: exit $exit_status"
2565 } >&5
2566 rm -f core *.core core.conftest.* &&
2567 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2568 exit $exit_status
2569 ' 0
2570 for ac_signal in 1 2 13 15; do
2571 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2572 done
2573 ac_signal=0
2574
2575 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2576 rm -f -r conftest* confdefs.h
2577
2578 $as_echo "/* confdefs.h */" > confdefs.h
2579
2580 # Predefined preprocessor variables.
2581
2582 cat >>confdefs.h <<_ACEOF
2583 #define PACKAGE_NAME "$PACKAGE_NAME"
2584 _ACEOF
2585
2586 cat >>confdefs.h <<_ACEOF
2587 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2588 _ACEOF
2589
2590 cat >>confdefs.h <<_ACEOF
2591 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2592 _ACEOF
2593
2594 cat >>confdefs.h <<_ACEOF
2595 #define PACKAGE_STRING "$PACKAGE_STRING"
2596 _ACEOF
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2600 _ACEOF
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_URL "$PACKAGE_URL"
2604 _ACEOF
2605
2606
2607 # Let the site file select an alternate cache file if it wants to.
2608 # Prefer an explicitly selected file to automatically selected ones.
2609 ac_site_file1=NONE
2610 ac_site_file2=NONE
2611 if test -n "$CONFIG_SITE"; then
2612 # We do not want a PATH search for config.site.
2613 case $CONFIG_SITE in #((
2614 -*) ac_site_file1=./$CONFIG_SITE;;
2615 */*) ac_site_file1=$CONFIG_SITE;;
2616 *) ac_site_file1=./$CONFIG_SITE;;
2617 esac
2618 elif test "x$prefix" != xNONE; then
2619 ac_site_file1=$prefix/share/config.site
2620 ac_site_file2=$prefix/etc/config.site
2621 else
2622 ac_site_file1=$ac_default_prefix/share/config.site
2623 ac_site_file2=$ac_default_prefix/etc/config.site
2624 fi
2625 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2626 do
2627 test "x$ac_site_file" = xNONE && continue
2628 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2630 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2631 sed 's/^/| /' "$ac_site_file" >&5
2632 . "$ac_site_file" \
2633 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2635 as_fn_error $? "failed to load site script $ac_site_file
2636 See \`config.log' for more details" "$LINENO" 5; }
2637 fi
2638 done
2639
2640 if test -r "$cache_file"; then
2641 # Some versions of bash will fail to source /dev/null (special files
2642 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2643 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2645 $as_echo "$as_me: loading cache $cache_file" >&6;}
2646 case $cache_file in
2647 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2648 *) . "./$cache_file";;
2649 esac
2650 fi
2651 else
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2653 $as_echo "$as_me: creating cache $cache_file" >&6;}
2654 >$cache_file
2655 fi
2656
2657 as_fn_append ac_header_list " stdlib.h"
2658 as_fn_append ac_header_list " unistd.h"
2659 as_fn_append ac_header_list " sys/param.h"
2660 gl_getopt_required=GNU
2661 as_fn_append ac_header_list " getopt.h"
2662 as_fn_append ac_func_list " alarm"
2663 as_fn_append ac_func_list " tzset"
2664 as_fn_append ac_header_list " sys/time.h"
2665 as_fn_append ac_func_list " localtime_r"
2666 # Check that the precious variables saved in the cache have kept the same
2667 # value.
2668 ac_cache_corrupted=false
2669 for ac_var in $ac_precious_vars; do
2670 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2671 eval ac_new_set=\$ac_env_${ac_var}_set
2672 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2673 eval ac_new_val=\$ac_env_${ac_var}_value
2674 case $ac_old_set,$ac_new_set in
2675 set,)
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2677 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2678 ac_cache_corrupted=: ;;
2679 ,set)
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2681 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2682 ac_cache_corrupted=: ;;
2683 ,);;
2684 *)
2685 if test "x$ac_old_val" != "x$ac_new_val"; then
2686 # differences in whitespace do not lead to failure.
2687 ac_old_val_w=`echo x $ac_old_val`
2688 ac_new_val_w=`echo x $ac_new_val`
2689 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2691 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2692 ac_cache_corrupted=:
2693 else
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2695 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2696 eval $ac_var=\$ac_old_val
2697 fi
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2699 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2701 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2702 fi;;
2703 esac
2704 # Pass precious variables to config.status.
2705 if test "$ac_new_set" = set; then
2706 case $ac_new_val in
2707 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2708 *) ac_arg=$ac_var=$ac_new_val ;;
2709 esac
2710 case " $ac_configure_args " in
2711 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2712 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2713 esac
2714 fi
2715 done
2716 if $ac_cache_corrupted; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2718 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2720 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2721 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2722 fi
2723 ## -------------------- ##
2724 ## Main body of script. ##
2725 ## -------------------- ##
2726
2727 ac_ext=c
2728 ac_cpp='$CPP $CPPFLAGS'
2729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2732
2733
2734 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
2735
2736
2737 am__api_version='1.11'
2738
2739 ac_aux_dir=
2740 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2741 if test -f "$ac_dir/install-sh"; then
2742 ac_aux_dir=$ac_dir
2743 ac_install_sh="$ac_aux_dir/install-sh -c"
2744 break
2745 elif test -f "$ac_dir/install.sh"; then
2746 ac_aux_dir=$ac_dir
2747 ac_install_sh="$ac_aux_dir/install.sh -c"
2748 break
2749 elif test -f "$ac_dir/shtool"; then
2750 ac_aux_dir=$ac_dir
2751 ac_install_sh="$ac_aux_dir/shtool install -c"
2752 break
2753 fi
2754 done
2755 if test -z "$ac_aux_dir"; then
2756 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2757 fi
2758
2759 # These three variables are undocumented and unsupported,
2760 # and are intended to be withdrawn in a future Autoconf release.
2761 # They can cause serious problems if a builder's source tree is in a directory
2762 # whose full name contains unusual characters.
2763 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2764 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2765 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2766
2767
2768 # Find a good install program. We prefer a C program (faster),
2769 # so one script is as good as another. But avoid the broken or
2770 # incompatible versions:
2771 # SysV /etc/install, /usr/sbin/install
2772 # SunOS /usr/etc/install
2773 # IRIX /sbin/install
2774 # AIX /bin/install
2775 # AmigaOS /C/install, which installs bootblocks on floppy discs
2776 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2777 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2778 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2779 # OS/2's system install, which has a completely different semantic
2780 # ./install, which can be erroneously created by make from ./install.sh.
2781 # Reject install programs that cannot install multiple files.
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2783 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2784 if test -z "$INSTALL"; then
2785 if ${ac_cv_path_install+:} false; then :
2786 $as_echo_n "(cached) " >&6
2787 else
2788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
2793 # Account for people who put trailing slashes in PATH elements.
2794 case $as_dir/ in #((
2795 ./ | .// | /[cC]/* | \
2796 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2797 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2798 /usr/ucb/* ) ;;
2799 *)
2800 # OSF1 and SCO ODT 3.0 have their own names for install.
2801 # Don't use installbsd from OSF since it installs stuff as root
2802 # by default.
2803 for ac_prog in ginstall scoinst install; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2806 if test $ac_prog = install &&
2807 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2808 # AIX install. It has an incompatible calling convention.
2809 :
2810 elif test $ac_prog = install &&
2811 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812 # program-specific install script used by HP pwplus--don't use.
2813 :
2814 else
2815 rm -rf conftest.one conftest.two conftest.dir
2816 echo one > conftest.one
2817 echo two > conftest.two
2818 mkdir conftest.dir
2819 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2820 test -s conftest.one && test -s conftest.two &&
2821 test -s conftest.dir/conftest.one &&
2822 test -s conftest.dir/conftest.two
2823 then
2824 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2825 break 3
2826 fi
2827 fi
2828 fi
2829 done
2830 done
2831 ;;
2832 esac
2833
2834 done
2835 IFS=$as_save_IFS
2836
2837 rm -rf conftest.one conftest.two conftest.dir
2838
2839 fi
2840 if test "${ac_cv_path_install+set}" = set; then
2841 INSTALL=$ac_cv_path_install
2842 else
2843 # As a last resort, use the slow shell script. Don't cache a
2844 # value for INSTALL within a source directory, because that will
2845 # break other packages using the cache if that directory is
2846 # removed, or if the value is a relative name.
2847 INSTALL=$ac_install_sh
2848 fi
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2851 $as_echo "$INSTALL" >&6; }
2852
2853 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2854 # It thinks the first close brace ends the variable substitution.
2855 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2856
2857 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2858
2859 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2862 $as_echo_n "checking whether build environment is sane... " >&6; }
2863 # Just in case
2864 sleep 1
2865 echo timestamp > conftest.file
2866 # Reject unsafe characters in $srcdir or the absolute working directory
2867 # name. Accept space and tab only in the latter.
2868 am_lf='
2869 '
2870 case `pwd` in
2871 *[\\\"\#\$\&\'\`$am_lf]*)
2872 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2873 esac
2874 case $srcdir in
2875 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2876 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2877 esac
2878
2879 # Do `set' in a subshell so we don't clobber the current shell's
2880 # arguments. Must try -L first in case configure is actually a
2881 # symlink; some systems play weird games with the mod time of symlinks
2882 # (eg FreeBSD returns the mod time of the symlink's containing
2883 # directory).
2884 if (
2885 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2886 if test "$*" = "X"; then
2887 # -L didn't work.
2888 set X `ls -t "$srcdir/configure" conftest.file`
2889 fi
2890 rm -f conftest.file
2891 if test "$*" != "X $srcdir/configure conftest.file" \
2892 && test "$*" != "X conftest.file $srcdir/configure"; then
2893
2894 # If neither matched, then we have a broken ls. This can happen
2895 # if, for instance, CONFIG_SHELL is bash and it inherits a
2896 # broken ls alias from the environment. This has actually
2897 # happened. Such a system could not be considered "sane".
2898 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2899 alias in your environment" "$LINENO" 5
2900 fi
2901
2902 test "$2" = conftest.file
2903 )
2904 then
2905 # Ok.
2906 :
2907 else
2908 as_fn_error $? "newly created file is older than distributed files!
2909 Check your system clock" "$LINENO" 5
2910 fi
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2912 $as_echo "yes" >&6; }
2913 test "$program_prefix" != NONE &&
2914 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2915 # Use a double $ so make ignores it.
2916 test "$program_suffix" != NONE &&
2917 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2918 # Double any \ or $.
2919 # By default was `s,x,x', remove it if useless.
2920 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2921 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2922
2923 # expand $ac_aux_dir to an absolute path
2924 am_aux_dir=`cd $ac_aux_dir && pwd`
2925
2926 if test x"${MISSING+set}" != xset; then
2927 case $am_aux_dir in
2928 *\ * | *\ *)
2929 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2930 *)
2931 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2932 esac
2933 fi
2934 # Use eval to expand $SHELL
2935 if eval "$MISSING --run true"; then
2936 am_missing_run="$MISSING --run "
2937 else
2938 am_missing_run=
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2940 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2941 fi
2942
2943 if test x"${install_sh}" != xset; then
2944 case $am_aux_dir in
2945 *\ * | *\ *)
2946 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2947 *)
2948 install_sh="\${SHELL} $am_aux_dir/install-sh"
2949 esac
2950 fi
2951
2952 # Installed binaries are usually stripped using `strip' when the user
2953 # run `make install-strip'. However `strip' might not be the right
2954 # tool to use in cross-compilation environments, therefore Automake
2955 # will honor the `STRIP' environment variable to overrule this program.
2956 if test "$cross_compiling" != no; then
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959 set dummy ${ac_tool_prefix}strip; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_STRIP+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$STRIP"; then
2966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2975 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 STRIP=$ac_cv_prog_STRIP
2986 if test -n "$STRIP"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988 $as_echo "$STRIP" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994
2995 fi
2996 if test -z "$ac_cv_prog_STRIP"; then
2997 ac_ct_STRIP=$STRIP
2998 # Extract the first word of "strip", so it can be a program name with args.
2999 set dummy strip; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if test -n "$ac_ct_STRIP"; then
3006 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3015 ac_cv_prog_ac_ct_STRIP="strip"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3026 if test -n "$ac_ct_STRIP"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028 $as_echo "$ac_ct_STRIP" >&6; }
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034 if test "x$ac_ct_STRIP" = x; then
3035 STRIP=":"
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038 yes:)
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041 ac_tool_warned=yes ;;
3042 esac
3043 STRIP=$ac_ct_STRIP
3044 fi
3045 else
3046 STRIP="$ac_cv_prog_STRIP"
3047 fi
3048
3049 fi
3050 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3051
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3053 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3054 if test -z "$MKDIR_P"; then
3055 if ${ac_cv_path_mkdir+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3060 do
3061 IFS=$as_save_IFS
3062 test -z "$as_dir" && as_dir=.
3063 for ac_prog in mkdir gmkdir; do
3064 for ac_exec_ext in '' $ac_executable_extensions; do
3065 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3066 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3067 'mkdir (GNU coreutils) '* | \
3068 'mkdir (coreutils) '* | \
3069 'mkdir (fileutils) '4.1*)
3070 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3071 break 3;;
3072 esac
3073 done
3074 done
3075 done
3076 IFS=$as_save_IFS
3077
3078 fi
3079
3080 test -d ./--version && rmdir ./--version
3081 if test "${ac_cv_path_mkdir+set}" = set; then
3082 MKDIR_P="$ac_cv_path_mkdir -p"
3083 else
3084 # As a last resort, use the slow shell script. Don't cache a
3085 # value for MKDIR_P within a source directory, because that will
3086 # break other packages using the cache if that directory is
3087 # removed, or if the value is a relative name.
3088 MKDIR_P="$ac_install_sh -d"
3089 fi
3090 fi
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3092 $as_echo "$MKDIR_P" >&6; }
3093
3094
3095 mkdir_p="$MKDIR_P"
3096 case $mkdir_p in
3097 [\\/$]* | ?:[\\/]*) ;;
3098 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3099 esac
3100
3101 for ac_prog in gawk mawk nawk awk
3102 do
3103 # Extract the first word of "$ac_prog", so it can be a program name with args.
3104 set dummy $ac_prog; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_AWK+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$AWK"; then
3111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3120 ac_cv_prog_AWK="$ac_prog"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 AWK=$ac_cv_prog_AWK
3131 if test -n "$AWK"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3133 $as_echo "$AWK" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137 fi
3138
3139
3140 test -n "$AWK" && break
3141 done
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3145 set x ${MAKE-make}
3146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3147 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 cat >conftest.make <<\_ACEOF
3151 SHELL = /bin/sh
3152 all:
3153 @echo '@@@%%%=$(MAKE)=@@@%%%'
3154 _ACEOF
3155 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3157 *@@@%%%=?*=@@@%%%*)
3158 eval ac_cv_prog_make_${ac_make}_set=yes;;
3159 *)
3160 eval ac_cv_prog_make_${ac_make}_set=no;;
3161 esac
3162 rm -f conftest.make
3163 fi
3164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166 $as_echo "yes" >&6; }
3167 SET_MAKE=
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 SET_MAKE="MAKE=${MAKE-make}"
3172 fi
3173
3174 rm -rf .tst 2>/dev/null
3175 mkdir .tst 2>/dev/null
3176 if test -d .tst; then
3177 am__leading_dot=.
3178 else
3179 am__leading_dot=_
3180 fi
3181 rmdir .tst 2>/dev/null
3182
3183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3185 # is not polluted with repeated "-I."
3186 am__isrc=' -I$(srcdir)'
3187 # test to see if srcdir already configured
3188 if test -f $srcdir/config.status; then
3189 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3190 fi
3191 fi
3192
3193 # test whether we have cygpath
3194 if test -z "$CYGPATH_W"; then
3195 if (cygpath --version) >/dev/null 2>/dev/null; then
3196 CYGPATH_W='cygpath -w'
3197 else
3198 CYGPATH_W=echo
3199 fi
3200 fi
3201
3202
3203 # Define the identity of the package.
3204 PACKAGE='emacs'
3205 VERSION='24.0.50'
3206
3207
3208 cat >>confdefs.h <<_ACEOF
3209 #define PACKAGE "$PACKAGE"
3210 _ACEOF
3211
3212
3213 cat >>confdefs.h <<_ACEOF
3214 #define VERSION "$VERSION"
3215 _ACEOF
3216
3217 # Some tools Automake needs.
3218
3219 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220
3221
3222 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3223
3224
3225 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226
3227
3228 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3229
3230
3231 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3232
3233 # We need awk for the "check" target. The system "awk" is bad on
3234 # some platforms.
3235 # Always define AMTAR for backward compatibility.
3236
3237 AMTAR=${AMTAR-"${am_missing_run}tar"}
3238
3239 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3240
3241
3242
3243
3244
3245
3246
3247
3248 lispdir='${datadir}/emacs/${version}/lisp'
3249 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
3250 '${datadir}/emacs/site-lisp'
3251 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
3252 etcdir='${datadir}/emacs/${version}/etc'
3253 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
3254 docdir='${datadir}/emacs/${version}/etc'
3255 gamedir='${localstatedir}/games/emacs'
3256
3257
3258
3259
3260 # Check whether --with-pop was given.
3261 if test "${with_pop+set}" = set; then :
3262 withval=$with_pop;
3263 else
3264 with_pop=yes
3265 fi
3266
3267 if test "$with_pop" = yes; then
3268 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
3269
3270 fi
3271
3272
3273 # Check whether --with-kerberos was given.
3274 if test "${with_kerberos+set}" = set; then :
3275 withval=$with_kerberos;
3276 else
3277 with_kerberos=no
3278 fi
3279
3280 if test "$with_kerberos" != no; then
3281 $as_echo "#define KERBEROS 1" >>confdefs.h
3282
3283 fi
3284
3285
3286 # Check whether --with-kerberos5 was given.
3287 if test "${with_kerberos5+set}" = set; then :
3288 withval=$with_kerberos5;
3289 else
3290 with_kerberos5=no
3291 fi
3292
3293 if test "${with_kerberos5}" != no; then
3294 if test "${with_kerberos}" = no; then
3295 with_kerberos=yes
3296 $as_echo "#define KERBEROS 1" >>confdefs.h
3297
3298 fi
3299
3300 $as_echo "#define KERBEROS5 1" >>confdefs.h
3301
3302 fi
3303
3304
3305 # Check whether --with-hesiod was given.
3306 if test "${with_hesiod+set}" = set; then :
3307 withval=$with_hesiod;
3308 else
3309 with_hesiod=no
3310 fi
3311
3312 if test "$with_hesiod" != no; then
3313
3314 $as_echo "#define HESIOD 1" >>confdefs.h
3315
3316 fi
3317
3318
3319 # Check whether --with-mmdf was given.
3320 if test "${with_mmdf+set}" = set; then :
3321 withval=$with_mmdf;
3322 else
3323 with_mmdf=no
3324 fi
3325
3326 if test "$with_mmdf" != no; then
3327
3328 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
3329
3330 fi
3331
3332
3333 # Check whether --with-mail-unlink was given.
3334 if test "${with_mail_unlink+set}" = set; then :
3335 withval=$with_mail_unlink;
3336 else
3337 with_mail_unlink=no
3338 fi
3339
3340 if test "$with_mail_unlink" != no; then
3341
3342 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
3343
3344 fi
3345
3346
3347 # Check whether --with-mailhost was given.
3348 if test "${with_mailhost+set}" = set; then :
3349 withval=$with_mailhost;
3350 cat >>confdefs.h <<_ACEOF
3351 #define MAILHOST "$withval"
3352 _ACEOF
3353
3354 fi
3355
3356
3357
3358 # Check whether --with-sound was given.
3359 if test "${with_sound+set}" = set; then :
3360 withval=$with_sound;
3361 else
3362 with_sound=yes
3363 fi
3364
3365
3366
3367 # Check whether --with-sync-input was given.
3368 if test "${with_sync_input+set}" = set; then :
3369 withval=$with_sync_input;
3370 else
3371 with_sync_input=yes
3372 fi
3373
3374 if test "$with_sync_input" = yes; then
3375
3376 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
3377
3378 fi
3379
3380
3381 # Check whether --with-x-toolkit was given.
3382 if test "${with_x_toolkit+set}" = set; then :
3383 withval=$with_x_toolkit; case "${withval}" in
3384 y | ye | yes ) val=gtk ;;
3385 n | no ) val=no ;;
3386 l | lu | luc | luci | lucid ) val=lucid ;;
3387 a | at | ath | athe | athen | athena ) val=athena ;;
3388 m | mo | mot | moti | motif ) val=motif ;;
3389 g | gt | gtk ) val=gtk ;;
3390 gtk3 ) val=gtk3 ;;
3391 * )
3392 as_fn_error $? "\`--with-x-toolkit=$withval' is invalid;
3393 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk' or
3394 \`gtk3'. \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
3395 ;;
3396 esac
3397 with_x_toolkit=$val
3398
3399 fi
3400
3401
3402
3403 # Check whether --with-xpm was given.
3404 if test "${with_xpm+set}" = set; then :
3405 withval=$with_xpm;
3406 else
3407 with_xpm=yes
3408 fi
3409
3410
3411 # Check whether --with-jpeg was given.
3412 if test "${with_jpeg+set}" = set; then :
3413 withval=$with_jpeg;
3414 else
3415 with_jpeg=yes
3416 fi
3417
3418
3419 # Check whether --with-tiff was given.
3420 if test "${with_tiff+set}" = set; then :
3421 withval=$with_tiff;
3422 else
3423 with_tiff=yes
3424 fi
3425
3426
3427 # Check whether --with-gif was given.
3428 if test "${with_gif+set}" = set; then :
3429 withval=$with_gif;
3430 else
3431 with_gif=yes
3432 fi
3433
3434
3435 # Check whether --with-png was given.
3436 if test "${with_png+set}" = set; then :
3437 withval=$with_png;
3438 else
3439 with_png=yes
3440 fi
3441
3442
3443 # Check whether --with-rsvg was given.
3444 if test "${with_rsvg+set}" = set; then :
3445 withval=$with_rsvg;
3446 else
3447 with_rsvg=yes
3448 fi
3449
3450
3451 # Check whether --with-xml2 was given.
3452 if test "${with_xml2+set}" = set; then :
3453 withval=$with_xml2;
3454 else
3455 with_xml2=yes
3456 fi
3457
3458
3459 # Check whether --with-imagemagick was given.
3460 if test "${with_imagemagick+set}" = set; then :
3461 withval=$with_imagemagick;
3462 else
3463 with_imagemagick=yes
3464 fi
3465
3466
3467
3468 # Check whether --with-xft was given.
3469 if test "${with_xft+set}" = set; then :
3470 withval=$with_xft;
3471 else
3472 with_xft=yes
3473 fi
3474
3475
3476 # Check whether --with-libotf was given.
3477 if test "${with_libotf+set}" = set; then :
3478 withval=$with_libotf;
3479 else
3480 with_libotf=yes
3481 fi
3482
3483
3484 # Check whether --with-m17n-flt was given.
3485 if test "${with_m17n_flt+set}" = set; then :
3486 withval=$with_m17n_flt;
3487 else
3488 with_m17n_flt=yes
3489 fi
3490
3491
3492
3493 # Check whether --with-toolkit-scroll-bars was given.
3494 if test "${with_toolkit_scroll_bars+set}" = set; then :
3495 withval=$with_toolkit_scroll_bars;
3496 else
3497 with_toolkit_scroll_bars=yes
3498 fi
3499
3500
3501 # Check whether --with-xaw3d was given.
3502 if test "${with_xaw3d+set}" = set; then :
3503 withval=$with_xaw3d;
3504 else
3505 with_xaw3d=yes
3506 fi
3507
3508
3509 # Check whether --with-xim was given.
3510 if test "${with_xim+set}" = set; then :
3511 withval=$with_xim;
3512 else
3513 with_xim=yes
3514 fi
3515
3516
3517 # Check whether --with-ns was given.
3518 if test "${with_ns+set}" = set; then :
3519 withval=$with_ns;
3520 else
3521 with_ns=no
3522 fi
3523
3524
3525
3526 # Check whether --with-gpm was given.
3527 if test "${with_gpm+set}" = set; then :
3528 withval=$with_gpm;
3529 else
3530 with_gpm=yes
3531 fi
3532
3533
3534 # Check whether --with-dbus was given.
3535 if test "${with_dbus+set}" = set; then :
3536 withval=$with_dbus;
3537 else
3538 with_dbus=yes
3539 fi
3540
3541
3542 # Check whether --with-gconf was given.
3543 if test "${with_gconf+set}" = set; then :
3544 withval=$with_gconf;
3545 else
3546 with_gconf=yes
3547 fi
3548
3549
3550 # Check whether --with-selinux was given.
3551 if test "${with_selinux+set}" = set; then :
3552 withval=$with_selinux;
3553 else
3554 with_selinux=yes
3555 fi
3556
3557
3558 # Check whether --with-gnutls was given.
3559 if test "${with_gnutls+set}" = set; then :
3560 withval=$with_gnutls;
3561 else
3562 with_gnutls=yes
3563 fi
3564
3565
3566 ## For the times when you want to build Emacs but don't have
3567 ## a suitable makeinfo, and can live without the manuals.
3568
3569 # Check whether --with-makeinfo was given.
3570 if test "${with_makeinfo+set}" = set; then :
3571 withval=$with_makeinfo;
3572 else
3573 with_makeinfo=yes
3574 fi
3575
3576
3577 ## This is an option because I do not know if all info/man support
3578 ## compressed files, nor how to test if they do so.
3579
3580 # Check whether --with-compress-info was given.
3581 if test "${with_compress_info+set}" = set; then :
3582 withval=$with_compress_info;
3583 else
3584 with_compress_info=yes
3585 fi
3586
3587 if test $with_compress_info = yes; then
3588 GZIP_INFO=yes
3589 else
3590 GZIP_INFO=
3591 fi
3592
3593
3594
3595 # Check whether --with-pkg-config-prog was given.
3596 if test "${with_pkg_config_prog+set}" = set; then :
3597 withval=$with_pkg_config_prog;
3598 fi
3599
3600 if test "X${with_pkg_config_prog}" != X; then
3601 if test "${with_pkg_config_prog}" != yes; then
3602 PKG_CONFIG="${with_pkg_config_prog}"
3603 fi
3604 fi
3605
3606 CRT_DIR=
3607
3608 # Check whether --with-crt-dir was given.
3609 if test "${with_crt_dir+set}" = set; then :
3610 withval=$with_crt_dir;
3611 fi
3612
3613 CRT_DIR="${with_crt_dir}"
3614
3615
3616 # Check whether --with-gameuser was given.
3617 if test "${with_gameuser+set}" = set; then :
3618 withval=$with_gameuser;
3619 fi
3620
3621 test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \
3622 && gameuser="${with_gameuser}"
3623 test "X$gameuser" = X && gameuser=games
3624
3625
3626 # Check whether --with-gnustep-conf was given.
3627 if test "${with_gnustep_conf+set}" = set; then :
3628 withval=$with_gnustep_conf;
3629 fi
3630
3631 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
3632 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
3633 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
3634 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
3635
3636 # Check whether --enable-ns-self-contained was given.
3637 if test "${enable_ns_self_contained+set}" = set; then :
3638 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
3639 else
3640 EN_NS_SELF_CONTAINED=yes
3641 fi
3642
3643
3644 # Check whether --enable-asserts was given.
3645 if test "${enable_asserts+set}" = set; then :
3646 enableval=$enable_asserts; USE_XASSERTS=$enableval
3647 else
3648 USE_XASSERTS=no
3649 fi
3650
3651
3652 # Check whether --enable-maintainer-mode was given.
3653 if test "${enable_maintainer_mode+set}" = set; then :
3654 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3655 else
3656 USE_MAINTAINER_MODE=no
3657 fi
3658
3659 if test $USE_MAINTAINER_MODE = yes; then
3660 MAINT=
3661 else
3662 MAINT=#
3663 fi
3664
3665
3666 # Check whether --enable-locallisppath was given.
3667 if test "${enable_locallisppath+set}" = set; then :
3668 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
3669 locallisppath=
3670 elif test "${enableval}" != "yes"; then
3671 locallisppath=${enableval}
3672 fi
3673 fi
3674
3675
3676 # Check whether --enable-checking was given.
3677 if test "${enable_checking+set}" = set; then :
3678 enableval=$enable_checking; ac_checking_flags="${enableval}"
3679 fi
3680
3681 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
3682 for check in $ac_checking_flags
3683 do
3684 case $check in
3685 # these set all the flags to specific states
3686 yes) ac_enable_checking=1 ;;
3687 no) ac_enable_checking= ;
3688 ac_gc_check_stringbytes= ;
3689 ac_gc_check_string_overrun= ;
3690 ac_gc_check_string_free_list= ;
3691 ac_xmalloc_overrun= ;
3692 ac_gc_check_cons_list= ;;
3693 all) ac_enable_checking=1 ;
3694 ac_gc_check_stringbytes=1 ;
3695 ac_gc_check_string_overrun=1 ;
3696 ac_gc_check_string_free_list=1 ;
3697 ac_xmalloc_overrun=1 ;
3698 ac_gc_check_cons_list=1 ;;
3699 # these enable particular checks
3700 stringbytes) ac_gc_check_stringbytes=1 ;;
3701 stringoverrun) ac_gc_check_string_overrun=1 ;;
3702 stringfreelist) ac_gc_check_string_free_list=1 ;;
3703 xmallocoverrun) ac_xmalloc_overrun=1 ;;
3704 conslist) ac_gc_check_cons_list=1 ;;
3705 *) as_fn_error $? "unknown check category $check" "$LINENO" 5 ;;
3706 esac
3707 done
3708 IFS="$ac_save_IFS"
3709
3710 if test x$ac_enable_checking != x ; then
3711
3712 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
3713
3714 fi
3715 if test x$ac_gc_check_stringbytes != x ; then
3716
3717 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
3718
3719 fi
3720 if test x$ac_gc_check_stringoverrun != x ; then
3721
3722 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
3723
3724 fi
3725 if test x$ac_gc_check_string_free_list != x ; then
3726
3727 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
3728
3729 fi
3730 if test x$ac_xmalloc_overrun != x ; then
3731
3732 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
3733
3734 fi
3735 if test x$ac_gc_check_cons_list != x ; then
3736
3737 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
3738
3739 fi
3740
3741 # Check whether --enable-use-lisp-union-type was given.
3742 if test "${enable_use_lisp_union_type+set}" = set; then :
3743 enableval=$enable_use_lisp_union_type; if test "${enableval}" != "no"; then
3744
3745 $as_echo "#define USE_LISP_UNION_TYPE 1" >>confdefs.h
3746
3747 fi
3748 fi
3749
3750
3751
3752 # Check whether --enable-profiling was given.
3753 if test "${enable_profiling+set}" = set; then :
3754 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
3755 fi
3756
3757 if test x$ac_enable_profiling != x ; then
3758 PROFILING_CFLAGS="-DPROFILING=1 -pg"
3759 else
3760 PROFILING_CFLAGS=
3761 fi
3762
3763
3764 # Check whether --enable-autodepend was given.
3765 if test "${enable_autodepend+set}" = set; then :
3766 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
3767 else
3768 ac_enable_autodepend=yes
3769 fi
3770
3771
3772 #### Make srcdir absolute, if it isn't already. It's important to
3773 #### avoid running the path through pwd unnecessarily, since pwd can
3774 #### give you automounter prefixes, which can go away. We do all this
3775 #### so Emacs can find its files when run uninstalled.
3776 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
3777 unset CDPATH
3778 case "${srcdir}" in
3779 /* ) ;;
3780 . )
3781 ## We may be able to use the $PWD environment variable to make this
3782 ## absolute. But sometimes PWD is inaccurate.
3783 ## Note: we used to use ${PWD} at the end instead of `pwd`,
3784 ## but that tested only for a well-formed and valid PWD,
3785 ## it did not object when PWD was well-formed and valid but just wrong.
3786 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
3787 then
3788 srcdir="$PWD"
3789 else
3790 srcdir="`(cd ${srcdir}; pwd)`"
3791 fi
3792 ;;
3793 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
3794 esac
3795
3796 #### Check if the source directory already has a configured system in it.
3797 if test `pwd` != `(cd ${srcdir} && pwd)` \
3798 && test -f "${srcdir}/src/config.h" ; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
3800 as a build directory right now; it has been configured in its own
3801 right. To configure in another directory as well, you MUST
3802 use GNU make. If you do not have GNU make, then you must
3803 now do \`make distclean' in ${srcdir},
3804 and then run $0 again." >&5
3805 $as_echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
3806 as a build directory right now; it has been configured in its own
3807 right. To configure in another directory as well, you MUST
3808 use GNU make. If you do not have GNU make, then you must
3809 now do \`make distclean' in ${srcdir},
3810 and then run $0 again." >&2;}
3811 fi
3812
3813 #### Given the configuration name, set machfile and opsysfile to the
3814 #### names of the m/*.h and s/*.h files we should use.
3815
3816 ### Canonicalize the configuration name.
3817
3818 # Make sure we can run config.sub.
3819 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3820 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3821
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3823 $as_echo_n "checking build system type... " >&6; }
3824 if ${ac_cv_build+:} false; then :
3825 $as_echo_n "(cached) " >&6
3826 else
3827 ac_build_alias=$build_alias
3828 test "x$ac_build_alias" = x &&
3829 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3830 test "x$ac_build_alias" = x &&
3831 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3832 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3833 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3834
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3837 $as_echo "$ac_cv_build" >&6; }
3838 case $ac_cv_build in
3839 *-*-*) ;;
3840 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3841 esac
3842 build=$ac_cv_build
3843 ac_save_IFS=$IFS; IFS='-'
3844 set x $ac_cv_build
3845 shift
3846 build_cpu=$1
3847 build_vendor=$2
3848 shift; shift
3849 # Remember, the first character of IFS is used to create $*,
3850 # except with old shells:
3851 build_os=$*
3852 IFS=$ac_save_IFS
3853 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3854
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3857 $as_echo_n "checking host system type... " >&6; }
3858 if ${ac_cv_host+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test "x$host_alias" = x; then
3862 ac_cv_host=$ac_cv_build
3863 else
3864 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3865 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3866 fi
3867
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3870 $as_echo "$ac_cv_host" >&6; }
3871 case $ac_cv_host in
3872 *-*-*) ;;
3873 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3874 esac
3875 host=$ac_cv_host
3876 ac_save_IFS=$IFS; IFS='-'
3877 set x $ac_cv_host
3878 shift
3879 host_cpu=$1
3880 host_vendor=$2
3881 shift; shift
3882 # Remember, the first character of IFS is used to create $*,
3883 # except with old shells:
3884 host_os=$*
3885 IFS=$ac_save_IFS
3886 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3887
3888
3889 canonical=$host
3890 configuration=${host_alias-${build_alias-$host}}
3891
3892
3893
3894 ### If you add support for a new configuration, add code to this
3895 ### switch statement to recognize your configuration name and select
3896 ### the appropriate operating system and machine description files.
3897
3898 ### You would hope that you could choose an m/*.h file pretty much
3899 ### based on the machine portion of the configuration name, and an s/*.h
3900 ### file based on the operating system portion. However, it turns out
3901 ### that each m/*.h file is pretty manufacturer-specific - for
3902 ### example mips.h is MIPS
3903 ### So we basically have to have a special case for each
3904 ### configuration name.
3905 ###
3906 ### As far as handling version numbers on operating systems is
3907 ### concerned, make sure things will fail in a fixable way. If
3908 ### /etc/MACHINES doesn't say anything about version numbers, be
3909 ### prepared to handle anything reasonably. If version numbers
3910 ### matter, be sure /etc/MACHINES says something about it.
3911
3912 machine='' opsys='' unported=no
3913 case "${canonical}" in
3914
3915 ## GNU/Linux ports
3916 *-*-linux-gnu*)
3917 opsys=gnu-linux
3918 case ${canonical} in
3919 alpha*) machine=alpha ;;
3920 s390-*) machine=ibms390 ;;
3921 s390x-*) machine=ibms390x ;;
3922 powerpc*) machine=macppc ;;
3923 sparc*) machine=sparc ;;
3924 ia64*) machine=ia64 ;;
3925 m68k*) machine=m68k ;;
3926 x86_64*) machine=amdx86-64 ;;
3927 esac
3928 ;;
3929
3930 ## FreeBSD ports
3931 *-*-freebsd* )
3932 opsys=freebsd
3933 case "${canonical}" in
3934 alpha*) machine=alpha ;;
3935 amd64-*|x86_64-*) machine=amdx86-64 ;;
3936 ia64-*) machine=ia64 ;;
3937 i[3456]86-*) machine=intel386 ;;
3938 powerpc-*) machine=macppc ;;
3939 sparc-*) machine=sparc ;;
3940 sparc64-*) machine=sparc ;;
3941 esac
3942 ;;
3943
3944 ## FreeBSD kernel + glibc based userland
3945 *-*-kfreebsd*gnu* )
3946 opsys=gnu-kfreebsd
3947 case "${canonical}" in
3948 alpha*) machine=alpha ;;
3949 amd64-*|x86_64-*) machine=amdx86-64 ;;
3950 ia64-*) machine=ia64 ;;
3951 i[3456]86-*) machine=intel386 ;;
3952 powerpc-*) machine=macppc ;;
3953 sparc-*) machine=sparc ;;
3954 sparc64-*) machine=sparc ;;
3955 esac
3956 ;;
3957
3958 ## NetBSD ports
3959 *-*-netbsd* )
3960 opsys=netbsd
3961 case "${canonical}" in
3962 alpha*) machine=alpha ;;
3963 x86_64-*) machine=amdx86-64 ;;
3964 i[3456]86-*) machine=intel386 ;;
3965 m68k-*) machine=m68k ;;
3966 powerpc-*) machine=macppc ;;
3967 sparc*-) machine=sparc ;;
3968 vax-*) machine=vax ;;
3969 esac
3970 ;;
3971
3972 ## OpenBSD ports
3973 *-*-openbsd* )
3974 opsys=openbsd
3975 case "${canonical}" in
3976 alpha*) machine=alpha ;;
3977 x86_64-*) machine=amdx86-64 ;;
3978 i386-*) machine=intel386 ;;
3979 powerpc-*) machine=macppc ;;
3980 sparc*) machine=sparc ;;
3981 vax-*) machine=vax ;;
3982 esac
3983 ;;
3984
3985 ## Apple Darwin / Mac OS X
3986 *-apple-darwin* )
3987 case "${canonical}" in
3988 i[3456]86-* ) machine=intel386 ;;
3989 powerpc-* ) machine=macppc ;;
3990 x86_64-* ) machine=amdx86-64 ;;
3991 * ) unported=yes ;;
3992 esac
3993 opsys=darwin
3994 # Define CPP as follows to make autoconf work correctly.
3995 CPP="${CC-cc} -E -no-cpp-precomp"
3996 # Use fink packages if available.
3997 if test -d /sw/include && test -d /sw/lib; then
3998 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3999 CPP="${CPP} ${GCC_TEST_OPTIONS}"
4000 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
4001 fi
4002 ;;
4003
4004 ## HP 9000 series 700 and 800, running HP/UX
4005 hppa*-hp-hpux10.2* )
4006 opsys=hpux10-20
4007 ;;
4008 hppa*-hp-hpux1[1-9]* )
4009 opsys=hpux11
4010 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
4011 ;;
4012
4013 ia64*-hp-hpux1[1-9]* )
4014 machine=hp800 opsys=hpux11
4015 ## FIXME. Peter O'Gorman reports that dumping using unexelf.o doesn't
4016 ## work either: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6811
4017 CANNOT_DUMP=yes
4018 ;;
4019
4020 hppa*-*-linux-gnu* )
4021 machine=hp800 opsys=gnu-linux
4022 ;;
4023
4024 ## IBM machines
4025 rs6000-ibm-aix4.[23]* )
4026 machine=ibmrs6000 opsys=aix4-2
4027 ;;
4028 powerpc-ibm-aix4.[23]* )
4029 machine=ibmrs6000 opsys=aix4-2
4030 ;;
4031 rs6000-ibm-aix[56]* )
4032 machine=ibmrs6000 opsys=aix4-2
4033 ;;
4034 powerpc-ibm-aix[56]* )
4035 machine=ibmrs6000 opsys=aix4-2
4036 ;;
4037
4038 ## Silicon Graphics machines
4039 ## Iris 4D
4040 mips-sgi-irix6.5 )
4041 machine=iris4d opsys=irix6-5
4042 # Without defining _LANGUAGE_C, things get masked out in the headers
4043 # so that, for instance, grepping for `free' in stdlib.h fails and
4044 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
4045 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
4046 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
4047 ;;
4048
4049 ## Suns
4050 *-sun-solaris* \
4051 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \
4052 | x86_64-*-solaris2* | x86_64-*-sunos5*)
4053 case "${canonical}" in
4054 i[3456]86-*-* ) machine=intel386 ;;
4055 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
4056 sparc* ) machine=sparc ;;
4057 * ) unported=yes ;;
4058 esac
4059 case "${canonical}" in
4060 *-sunos5.6* | *-solaris2.6* )
4061 opsys=sol2-6
4062 NON_GNU_CPP=/usr/ccs/lib/cpp
4063 RANLIB="ar -ts"
4064 ;;
4065 *-sunos5.[7-9]* | *-solaris2.[7-9]* )
4066 opsys=sol2-6
4067 emacs_check_sunpro_c=yes
4068 NON_GNU_CPP=/usr/ccs/lib/cpp
4069 ;;
4070 *-sunos5* | *-solaris* )
4071 opsys=sol2-10
4072 emacs_check_sunpro_c=yes
4073 NON_GNU_CPP=/usr/ccs/lib/cpp
4074 ;;
4075 esac
4076 ## Watch out for a compiler that we know will not work.
4077 case "${canonical}" in
4078 *-solaris* | *-sunos5* )
4079 if [ "x$CC" = x/usr/ucb/cc ]; then
4080 ## /usr/ucb/cc doesn't work;
4081 ## we should find some other compiler that does work.
4082 unset CC
4083 fi
4084 ;;
4085 *) ;;
4086 esac
4087 ;;
4088
4089 ## Intel 386 machines where we don't care about the manufacturer.
4090 i[3456]86-*-* )
4091 machine=intel386
4092 case "${canonical}" in
4093 *-cygwin ) opsys=cygwin ;;
4094 *-darwin* ) opsys=darwin
4095 CPP="${CC-cc} -E -no-cpp-precomp"
4096 ;;
4097 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4098 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4099 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
4100 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
4101 esac
4102 ;;
4103
4104 * )
4105 unported=yes
4106 ;;
4107 esac
4108
4109 ### If the code above didn't choose an operating system, just choose
4110 ### an operating system based on the configuration name. You really
4111 ### only want to use this when you have no idea what the right
4112 ### operating system is; if you know what operating systems a machine
4113 ### runs, it's cleaner to make it explicit in the case statement
4114 ### above.
4115 if test x"${opsys}" = x; then
4116 case "${canonical}" in
4117 *-gnu* ) opsys=gnu ;;
4118 * )
4119 unported=yes
4120 ;;
4121 esac
4122 fi
4123
4124
4125
4126 if test $unported = yes; then
4127 as_fn_error $? "Emacs hasn't been ported to \`${canonical}' systems.
4128 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
4129 fi
4130
4131 if test -n "$machine"; then
4132 machfile="m/${machine}.h"
4133 else
4134 machfile=
4135 fi
4136 opsysfile="s/${opsys}.h"
4137
4138
4139 #### Choose a compiler.
4140 test -n "$CC" && cc_specified=yes
4141
4142 # Save the value of CFLAGS that the user specified.
4143 SPECIFIED_CFLAGS="$CFLAGS"
4144
4145 ac_ext=c
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 if test -n "$ac_tool_prefix"; then
4151 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4152 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_prog_CC+:} false; then :
4156 $as_echo_n "(cached) " >&6
4157 else
4158 if test -n "$CC"; then
4159 ac_cv_prog_CC="$CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172 done
4173 done
4174 IFS=$as_save_IFS
4175
4176 fi
4177 fi
4178 CC=$ac_cv_prog_CC
4179 if test -n "$CC"; then
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4181 $as_echo "$CC" >&6; }
4182 else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184 $as_echo "no" >&6; }
4185 fi
4186
4187
4188 fi
4189 if test -z "$ac_cv_prog_CC"; then
4190 ac_ct_CC=$CC
4191 # Extract the first word of "gcc", so it can be a program name with args.
4192 set dummy gcc; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 if test -n "$ac_ct_CC"; then
4199 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4203 do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_ac_ct_CC="gcc"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4211 fi
4212 done
4213 done
4214 IFS=$as_save_IFS
4215
4216 fi
4217 fi
4218 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4219 if test -n "$ac_ct_CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4221 $as_echo "$ac_ct_CC" >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4225 fi
4226
4227 if test "x$ac_ct_CC" = x; then
4228 CC=""
4229 else
4230 case $cross_compiling:$ac_tool_warned in
4231 yes:)
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4234 ac_tool_warned=yes ;;
4235 esac
4236 CC=$ac_ct_CC
4237 fi
4238 else
4239 CC="$ac_cv_prog_CC"
4240 fi
4241
4242 if test -z "$CC"; then
4243 if test -n "$ac_tool_prefix"; then
4244 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4245 set dummy ${ac_tool_prefix}cc; ac_word=$2
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 $as_echo_n "checking for $ac_word... " >&6; }
4248 if ${ac_cv_prog_CC+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 if test -n "$CC"; then
4252 ac_cv_prog_CC="$CC" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4261 ac_cv_prog_CC="${ac_tool_prefix}cc"
4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 fi
4270 fi
4271 CC=$ac_cv_prog_CC
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4275 else
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4278 fi
4279
4280
4281 fi
4282 fi
4283 if test -z "$CC"; then
4284 # Extract the first word of "cc", so it can be a program name with args.
4285 set dummy cc; ac_word=$2
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 $as_echo_n "checking for $ac_word... " >&6; }
4288 if ${ac_cv_prog_CC+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 if test -n "$CC"; then
4292 ac_cv_prog_CC="$CC" # Let the user override the test.
4293 else
4294 ac_prog_rejected=no
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4303 ac_prog_rejected=yes
4304 continue
4305 fi
4306 ac_cv_prog_CC="cc"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310 done
4311 done
4312 IFS=$as_save_IFS
4313
4314 if test $ac_prog_rejected = yes; then
4315 # We found a bogon in the path, so make sure we never use it.
4316 set dummy $ac_cv_prog_CC
4317 shift
4318 if test $# != 0; then
4319 # We chose a different compiler from the bogus one.
4320 # However, it has the same basename, so the bogon will be chosen
4321 # first if we set CC to just the basename; use the full file name.
4322 shift
4323 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4324 fi
4325 fi
4326 fi
4327 fi
4328 CC=$ac_cv_prog_CC
4329 if test -n "$CC"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4331 $as_echo "$CC" >&6; }
4332 else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4335 fi
4336
4337
4338 fi
4339 if test -z "$CC"; then
4340 if test -n "$ac_tool_prefix"; then
4341 for ac_prog in cl.exe
4342 do
4343 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4344 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4346 $as_echo_n "checking for $ac_word... " >&6; }
4347 if ${ac_cv_prog_CC+:} false; then :
4348 $as_echo_n "(cached) " >&6
4349 else
4350 if test -n "$CC"; then
4351 ac_cv_prog_CC="$CC" # Let the user override the test.
4352 else
4353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4354 for as_dir in $PATH
4355 do
4356 IFS=$as_save_IFS
4357 test -z "$as_dir" && as_dir=.
4358 for ac_exec_ext in '' $ac_executable_extensions; do
4359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4360 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 break 2
4363 fi
4364 done
4365 done
4366 IFS=$as_save_IFS
4367
4368 fi
4369 fi
4370 CC=$ac_cv_prog_CC
4371 if test -n "$CC"; then
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4373 $as_echo "$CC" >&6; }
4374 else
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4376 $as_echo "no" >&6; }
4377 fi
4378
4379
4380 test -n "$CC" && break
4381 done
4382 fi
4383 if test -z "$CC"; then
4384 ac_ct_CC=$CC
4385 for ac_prog in cl.exe
4386 do
4387 # Extract the first word of "$ac_prog", so it can be a program name with args.
4388 set dummy $ac_prog; ac_word=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if test -n "$ac_ct_CC"; then
4395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_ac_ct_CC="$ac_prog"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4406 break 2
4407 fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4415 if test -n "$ac_ct_CC"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4417 $as_echo "$ac_ct_CC" >&6; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 fi
4422
4423
4424 test -n "$ac_ct_CC" && break
4425 done
4426
4427 if test "x$ac_ct_CC" = x; then
4428 CC=""
4429 else
4430 case $cross_compiling:$ac_tool_warned in
4431 yes:)
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4434 ac_tool_warned=yes ;;
4435 esac
4436 CC=$ac_ct_CC
4437 fi
4438 fi
4439
4440 fi
4441
4442
4443 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4445 as_fn_error $? "no acceptable C compiler found in \$PATH
4446 See \`config.log' for more details" "$LINENO" 5; }
4447
4448 # Provide some information about the compiler.
4449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4450 set X $ac_compile
4451 ac_compiler=$2
4452 for ac_option in --version -v -V -qversion; do
4453 { { ac_try="$ac_compiler $ac_option >&5"
4454 case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459 $as_echo "$ac_try_echo"; } >&5
4460 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4461 ac_status=$?
4462 if test -s conftest.err; then
4463 sed '10a\
4464 ... rest of stderr output deleted ...
4465 10q' conftest.err >conftest.er1
4466 cat conftest.er1 >&5
4467 fi
4468 rm -f conftest.er1 conftest.err
4469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4470 test $ac_status = 0; }
4471 done
4472
4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* end confdefs.h. */
4475
4476 int
4477 main ()
4478 {
4479
4480 ;
4481 return 0;
4482 }
4483 _ACEOF
4484 ac_clean_files_save=$ac_clean_files
4485 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4486 # Try to create an executable without -o first, disregard a.out.
4487 # It will help us diagnose broken compilers, and finding out an intuition
4488 # of exeext.
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4490 $as_echo_n "checking whether the C compiler works... " >&6; }
4491 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4492
4493 # The possible output files:
4494 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4495
4496 ac_rmfiles=
4497 for ac_file in $ac_files
4498 do
4499 case $ac_file in
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4501 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4502 esac
4503 done
4504 rm -f $ac_rmfiles
4505
4506 if { { ac_try="$ac_link_default"
4507 case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4510 esac
4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 $as_echo "$ac_try_echo"; } >&5
4513 (eval "$ac_link_default") 2>&5
4514 ac_status=$?
4515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }; then :
4517 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4518 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4519 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4520 # so that the user can short-circuit this test for compilers unknown to
4521 # Autoconf.
4522 for ac_file in $ac_files ''
4523 do
4524 test -f "$ac_file" || continue
4525 case $ac_file in
4526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4527 ;;
4528 [ab].out )
4529 # We found the default executable, but exeext='' is most
4530 # certainly right.
4531 break;;
4532 *.* )
4533 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4534 then :; else
4535 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4536 fi
4537 # We set ac_cv_exeext here because the later test for it is not
4538 # safe: cross compilers may not add the suffix if given an `-o'
4539 # argument, so we may need to know it at that point already.
4540 # Even if this section looks crufty: it has the advantage of
4541 # actually working.
4542 break;;
4543 * )
4544 break;;
4545 esac
4546 done
4547 test "$ac_cv_exeext" = no && ac_cv_exeext=
4548
4549 else
4550 ac_file=''
4551 fi
4552 if test -z "$ac_file"; then :
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4555 $as_echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4557
4558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4560 as_fn_error 77 "C compiler cannot create executables
4561 See \`config.log' for more details" "$LINENO" 5; }
4562 else
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4564 $as_echo "yes" >&6; }
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4567 $as_echo_n "checking for C compiler default output file name... " >&6; }
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4569 $as_echo "$ac_file" >&6; }
4570 ac_exeext=$ac_cv_exeext
4571
4572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4573 ac_clean_files=$ac_clean_files_save
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4575 $as_echo_n "checking for suffix of executables... " >&6; }
4576 if { { ac_try="$ac_link"
4577 case "(($ac_try" in
4578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4579 *) ac_try_echo=$ac_try;;
4580 esac
4581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4582 $as_echo "$ac_try_echo"; } >&5
4583 (eval "$ac_link") 2>&5
4584 ac_status=$?
4585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }; then :
4587 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4588 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4589 # work properly (i.e., refer to `conftest.exe'), while it won't with
4590 # `rm'.
4591 for ac_file in conftest.exe conftest conftest.*; do
4592 test -f "$ac_file" || continue
4593 case $ac_file in
4594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4595 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4596 break;;
4597 * ) break;;
4598 esac
4599 done
4600 else
4601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4604 See \`config.log' for more details" "$LINENO" 5; }
4605 fi
4606 rm -f conftest conftest$ac_cv_exeext
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4608 $as_echo "$ac_cv_exeext" >&6; }
4609
4610 rm -f conftest.$ac_ext
4611 EXEEXT=$ac_cv_exeext
4612 ac_exeext=$EXEEXT
4613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4614 /* end confdefs.h. */
4615 #include <stdio.h>
4616 int
4617 main ()
4618 {
4619 FILE *f = fopen ("conftest.out", "w");
4620 return ferror (f) || fclose (f) != 0;
4621
4622 ;
4623 return 0;
4624 }
4625 _ACEOF
4626 ac_clean_files="$ac_clean_files conftest.out"
4627 # Check that the compiler produces executables we can run. If not, either
4628 # the compiler is broken, or we cross compile.
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4630 $as_echo_n "checking whether we are cross compiling... " >&6; }
4631 if test "$cross_compiling" != yes; then
4632 { { ac_try="$ac_link"
4633 case "(($ac_try" in
4634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4636 esac
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_link") 2>&5
4640 ac_status=$?
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }
4643 if { ac_try='./conftest$ac_cv_exeext'
4644 { { case "(($ac_try" in
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4647 esac
4648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4649 $as_echo "$ac_try_echo"; } >&5
4650 (eval "$ac_try") 2>&5
4651 ac_status=$?
4652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4653 test $ac_status = 0; }; }; then
4654 cross_compiling=no
4655 else
4656 if test "$cross_compiling" = maybe; then
4657 cross_compiling=yes
4658 else
4659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4661 as_fn_error $? "cannot run C compiled programs.
4662 If you meant to cross compile, use \`--host'.
4663 See \`config.log' for more details" "$LINENO" 5; }
4664 fi
4665 fi
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4668 $as_echo "$cross_compiling" >&6; }
4669
4670 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4671 ac_clean_files=$ac_clean_files_save
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4673 $as_echo_n "checking for suffix of object files... " >&6; }
4674 if ${ac_cv_objext+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679
4680 int
4681 main ()
4682 {
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 rm -f conftest.o conftest.obj
4689 if { { ac_try="$ac_compile"
4690 case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4693 esac
4694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4695 $as_echo "$ac_try_echo"; } >&5
4696 (eval "$ac_compile") 2>&5
4697 ac_status=$?
4698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4699 test $ac_status = 0; }; then :
4700 for ac_file in conftest.o conftest.obj conftest.*; do
4701 test -f "$ac_file" || continue;
4702 case $ac_file in
4703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4704 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4705 break;;
4706 esac
4707 done
4708 else
4709 $as_echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4711
4712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4714 as_fn_error $? "cannot compute suffix of object files: cannot compile
4715 See \`config.log' for more details" "$LINENO" 5; }
4716 fi
4717 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4718 fi
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4720 $as_echo "$ac_cv_objext" >&6; }
4721 OBJEXT=$ac_cv_objext
4722 ac_objext=$OBJEXT
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4724 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4725 if ${ac_cv_c_compiler_gnu+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 int
4732 main ()
4733 {
4734 #ifndef __GNUC__
4735 choke me
4736 #endif
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_compiler_gnu=yes
4744 else
4745 ac_compiler_gnu=no
4746 fi
4747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4748 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4749
4750 fi
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4752 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4753 if test $ac_compiler_gnu = yes; then
4754 GCC=yes
4755 else
4756 GCC=
4757 fi
4758 ac_test_CFLAGS=${CFLAGS+set}
4759 ac_save_CFLAGS=$CFLAGS
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4761 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4762 if ${ac_cv_prog_cc_g+:} false; then :
4763 $as_echo_n "(cached) " >&6
4764 else
4765 ac_save_c_werror_flag=$ac_c_werror_flag
4766 ac_c_werror_flag=yes
4767 ac_cv_prog_cc_g=no
4768 CFLAGS="-g"
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771
4772 int
4773 main ()
4774 {
4775
4776 ;
4777 return 0;
4778 }
4779 _ACEOF
4780 if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_cv_prog_cc_g=yes
4782 else
4783 CFLAGS=""
4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4785 /* end confdefs.h. */
4786
4787 int
4788 main ()
4789 {
4790
4791 ;
4792 return 0;
4793 }
4794 _ACEOF
4795 if ac_fn_c_try_compile "$LINENO"; then :
4796
4797 else
4798 ac_c_werror_flag=$ac_save_c_werror_flag
4799 CFLAGS="-g"
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802
4803 int
4804 main ()
4805 {
4806
4807 ;
4808 return 0;
4809 }
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812 ac_cv_prog_cc_g=yes
4813 fi
4814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815 fi
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 ac_c_werror_flag=$ac_save_c_werror_flag
4820 fi
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4822 $as_echo "$ac_cv_prog_cc_g" >&6; }
4823 if test "$ac_test_CFLAGS" = set; then
4824 CFLAGS=$ac_save_CFLAGS
4825 elif test $ac_cv_prog_cc_g = yes; then
4826 if test "$GCC" = yes; then
4827 CFLAGS="-g -O2"
4828 else
4829 CFLAGS="-g"
4830 fi
4831 else
4832 if test "$GCC" = yes; then
4833 CFLAGS="-O2"
4834 else
4835 CFLAGS=
4836 fi
4837 fi
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4840 if ${ac_cv_prog_cc_c89+:} false; then :
4841 $as_echo_n "(cached) " >&6
4842 else
4843 ac_cv_prog_cc_c89=no
4844 ac_save_CC=$CC
4845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4846 /* end confdefs.h. */
4847 #include <stdarg.h>
4848 #include <stdio.h>
4849 #include <sys/types.h>
4850 #include <sys/stat.h>
4851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4852 struct buf { int x; };
4853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4854 static char *e (p, i)
4855 char **p;
4856 int i;
4857 {
4858 return p[i];
4859 }
4860 static char *f (char * (*g) (char **, int), char **p, ...)
4861 {
4862 char *s;
4863 va_list v;
4864 va_start (v,p);
4865 s = g (p, va_arg (v,int));
4866 va_end (v);
4867 return s;
4868 }
4869
4870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4871 function prototypes and stuff, but not '\xHH' hex character constants.
4872 These don't provoke an error unfortunately, instead are silently treated
4873 as 'x'. The following induces an error, until -std is added to get
4874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4875 array size at least. It's necessary to write '\x00'==0 to get something
4876 that's true only with -std. */
4877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4878
4879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4880 inside strings and character constants. */
4881 #define FOO(x) 'x'
4882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4883
4884 int test (int i, double x);
4885 struct s1 {int (*f) (int a);};
4886 struct s2 {int (*f) (double a);};
4887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4888 int argc;
4889 char **argv;
4890 int
4891 main ()
4892 {
4893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4894 ;
4895 return 0;
4896 }
4897 _ACEOF
4898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4900 do
4901 CC="$ac_save_CC $ac_arg"
4902 if ac_fn_c_try_compile "$LINENO"; then :
4903 ac_cv_prog_cc_c89=$ac_arg
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext
4906 test "x$ac_cv_prog_cc_c89" != "xno" && break
4907 done
4908 rm -f conftest.$ac_ext
4909 CC=$ac_save_CC
4910
4911 fi
4912 # AC_CACHE_VAL
4913 case "x$ac_cv_prog_cc_c89" in
4914 x)
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4916 $as_echo "none needed" >&6; } ;;
4917 xno)
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4919 $as_echo "unsupported" >&6; } ;;
4920 *)
4921 CC="$CC $ac_cv_prog_cc_c89"
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4923 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4924 esac
4925 if test "x$ac_cv_prog_cc_c89" != xno; then :
4926
4927 fi
4928
4929 ac_ext=c
4930 ac_cpp='$CPP $CPPFLAGS'
4931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4934 DEPDIR="${am__leading_dot}deps"
4935
4936 ac_config_commands="$ac_config_commands depfiles"
4937
4938
4939 am_make=${MAKE-make}
4940 cat > confinc << 'END'
4941 am__doit:
4942 @echo this is the am__doit target
4943 .PHONY: am__doit
4944 END
4945 # If we don't find an include directive, just comment out the code.
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4947 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4948 am__include="#"
4949 am__quote=
4950 _am_result=none
4951 # First try GNU make style include.
4952 echo "include confinc" > confmf
4953 # Ignore all kinds of additional output from `make'.
4954 case `$am_make -s -f confmf 2> /dev/null` in #(
4955 *the\ am__doit\ target*)
4956 am__include=include
4957 am__quote=
4958 _am_result=GNU
4959 ;;
4960 esac
4961 # Now try BSD make style include.
4962 if test "$am__include" = "#"; then
4963 echo '.include "confinc"' > confmf
4964 case `$am_make -s -f confmf 2> /dev/null` in #(
4965 *the\ am__doit\ target*)
4966 am__include=.include
4967 am__quote="\""
4968 _am_result=BSD
4969 ;;
4970 esac
4971 fi
4972
4973
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4975 $as_echo "$_am_result" >&6; }
4976 rm -f confinc confmf
4977
4978 # Check whether --enable-dependency-tracking was given.
4979 if test "${enable_dependency_tracking+set}" = set; then :
4980 enableval=$enable_dependency_tracking;
4981 fi
4982
4983 if test "x$enable_dependency_tracking" != xno; then
4984 am_depcomp="$ac_aux_dir/depcomp"
4985 AMDEPBACKSLASH='\'
4986 fi
4987 if test "x$enable_dependency_tracking" != xno; then
4988 AMDEP_TRUE=
4989 AMDEP_FALSE='#'
4990 else
4991 AMDEP_TRUE='#'
4992 AMDEP_FALSE=
4993 fi
4994
4995
4996
4997 depcc="$CC" am_compiler_list=
4998
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5000 $as_echo_n "checking dependency style of $depcc... " >&6; }
5001 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5005 # We make a subdir and do the tests there. Otherwise we can end up
5006 # making bogus files that we don't know about and never remove. For
5007 # instance it was reported that on HP-UX the gcc test will end up
5008 # making a dummy file named `D' -- because `-MD' means `put the output
5009 # in D'.
5010 mkdir conftest.dir
5011 # Copy depcomp to subdir because otherwise we won't find it if we're
5012 # using a relative directory.
5013 cp "$am_depcomp" conftest.dir
5014 cd conftest.dir
5015 # We will build objects and dependencies in a subdirectory because
5016 # it helps to detect inapplicable dependency modes. For instance
5017 # both Tru64's cc and ICC support -MD to output dependencies as a
5018 # side effect of compilation, but ICC will put the dependencies in
5019 # the current directory while Tru64 will put them in the object
5020 # directory.
5021 mkdir sub
5022
5023 am_cv_CC_dependencies_compiler_type=none
5024 if test "$am_compiler_list" = ""; then
5025 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5026 fi
5027 am__universal=false
5028 case " $depcc " in #(
5029 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5030 esac
5031
5032 for depmode in $am_compiler_list; do
5033 # Setup a source with many dependencies, because some compilers
5034 # like to wrap large dependency lists on column 80 (with \), and
5035 # we should not choose a depcomp mode which is confused by this.
5036 #
5037 # We need to recreate these files for each test, as the compiler may
5038 # overwrite some of them when testing with obscure command lines.
5039 # This happens at least with the AIX C compiler.
5040 : > sub/conftest.c
5041 for i in 1 2 3 4 5 6; do
5042 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5044 # Solaris 8's {/usr,}/bin/sh.
5045 touch sub/conftst$i.h
5046 done
5047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5048
5049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5050 # mode. It turns out that the SunPro C++ compiler does not properly
5051 # handle `-M -o', and we need to detect this. Also, some Intel
5052 # versions had trouble with output in subdirs
5053 am__obj=sub/conftest.${OBJEXT-o}
5054 am__minus_obj="-o $am__obj"
5055 case $depmode in
5056 gcc)
5057 # This depmode causes a compiler race in universal mode.
5058 test "$am__universal" = false || continue
5059 ;;
5060 nosideeffect)
5061 # after this tag, mechanisms are not by side-effect, so they'll
5062 # only be used when explicitly requested
5063 if test "x$enable_dependency_tracking" = xyes; then
5064 continue
5065 else
5066 break
5067 fi
5068 ;;
5069 msvisualcpp | msvcmsys)
5070 # This compiler won't grok `-c -o', but also, the minuso test has
5071 # not run yet. These depmodes are late enough in the game, and
5072 # so weak that their functioning should not be impacted.
5073 am__obj=conftest.${OBJEXT-o}
5074 am__minus_obj=
5075 ;;
5076 none) break ;;
5077 esac
5078 if depmode=$depmode \
5079 source=sub/conftest.c object=$am__obj \
5080 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5081 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5082 >/dev/null 2>conftest.err &&
5083 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5084 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5085 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5086 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5087 # icc doesn't choke on unknown options, it will just issue warnings
5088 # or remarks (even with -Werror). So we grep stderr for any message
5089 # that says an option was ignored or not supported.
5090 # When given -MP, icc 7.0 and 7.1 complain thusly:
5091 # icc: Command line warning: ignoring option '-M'; no argument required
5092 # The diagnosis changed in icc 8.0:
5093 # icc: Command line remark: option '-MP' not supported
5094 if (grep 'ignoring option' conftest.err ||
5095 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5096 am_cv_CC_dependencies_compiler_type=$depmode
5097 break
5098 fi
5099 fi
5100 done
5101
5102 cd ..
5103 rm -rf conftest.dir
5104 else
5105 am_cv_CC_dependencies_compiler_type=none
5106 fi
5107
5108 fi
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5112
5113 if
5114 test "x$enable_dependency_tracking" != xno \
5115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5116 am__fastdepCC_TRUE=
5117 am__fastdepCC_FALSE='#'
5118 else
5119 am__fastdepCC_TRUE='#'
5120 am__fastdepCC_FALSE=
5121 fi
5122
5123
5124 if test "x$CC" != xcc; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5126 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5129 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5130 fi
5131 set dummy $CC; ac_cc=`$as_echo "$2" |
5132 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5133 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138
5139 int
5140 main ()
5141 {
5142
5143 ;
5144 return 0;
5145 }
5146 _ACEOF
5147 # Make sure it works both with $CC and with simple cc.
5148 # We do the test twice because some compilers refuse to overwrite an
5149 # existing .o file with -o, though they will create one.
5150 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5151 rm -f conftest2.*
5152 if { { case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155 esac
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_try") 2>&5
5159 ac_status=$?
5160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5161 test $ac_status = 0; } &&
5162 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165 esac
5166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_try") 2>&5
5169 ac_status=$?
5170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; };
5172 then
5173 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5174 if test "x$CC" != xcc; then
5175 # Test first that cc exists at all.
5176 if { ac_try='cc -c conftest.$ac_ext >&5'
5177 { { case "(($ac_try" in
5178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179 *) ac_try_echo=$ac_try;;
5180 esac
5181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5182 $as_echo "$ac_try_echo"; } >&5
5183 (eval "$ac_try") 2>&5
5184 ac_status=$?
5185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5186 test $ac_status = 0; }; }; then
5187 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5188 rm -f conftest2.*
5189 if { { case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5194 $as_echo "$ac_try_echo"; } >&5
5195 (eval "$ac_try") 2>&5
5196 ac_status=$?
5197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5198 test $ac_status = 0; } &&
5199 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201 *) ac_try_echo=$ac_try;;
5202 esac
5203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5204 $as_echo "$ac_try_echo"; } >&5
5205 (eval "$ac_try") 2>&5
5206 ac_status=$?
5207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5208 test $ac_status = 0; };
5209 then
5210 # cc works too.
5211 :
5212 else
5213 # cc exists but doesn't like -o.
5214 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5215 fi
5216 fi
5217 fi
5218 else
5219 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5220 fi
5221 rm -f core conftest*
5222
5223 fi
5224 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5226 $as_echo "yes" >&6; }
5227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230
5231 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5232
5233 fi
5234
5235 # FIXME: we rely on the cache variable name because
5236 # there is no other way.
5237 set dummy $CC
5238 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5239 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5240 if test "$am_t" != yes; then
5241 # Losing compiler, so override with the script.
5242 # FIXME: It is wrong to rewrite CC.
5243 # But if we don't then we get into trouble of one sort or another.
5244 # A longer-term fix would be to have automake use am__CC in this case,
5245 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5246 CC="$am_aux_dir/compile $CC"
5247 fi
5248
5249
5250
5251 # Initialize gnulib right after verifying that the C compiler works.
5252 if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_prog_RANLIB+:} false; then :
5258 $as_echo_n "(cached) " >&6
5259 else
5260 if test -n "$RANLIB"; then
5261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5272 break 2
5273 fi
5274 done
5275 done
5276 IFS=$as_save_IFS
5277
5278 fi
5279 fi
5280 RANLIB=$ac_cv_prog_RANLIB
5281 if test -n "$RANLIB"; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5283 $as_echo "$RANLIB" >&6; }
5284 else
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5286 $as_echo "no" >&6; }
5287 fi
5288
5289
5290 fi
5291 if test -z "$ac_cv_prog_RANLIB"; then
5292 ac_ct_RANLIB=$RANLIB
5293 # Extract the first word of "ranlib", so it can be a program name with args.
5294 set dummy ranlib; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$ac_ct_RANLIB"; then
5301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_ac_ct_RANLIB="ranlib"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314 done
5315 done
5316 IFS=$as_save_IFS
5317
5318 fi
5319 fi
5320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5321 if test -n "$ac_ct_RANLIB"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5323 $as_echo "$ac_ct_RANLIB" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5327 fi
5328
5329 if test "x$ac_ct_RANLIB" = x; then
5330 RANLIB=":"
5331 else
5332 case $cross_compiling:$ac_tool_warned in
5333 yes:)
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5336 ac_tool_warned=yes ;;
5337 esac
5338 RANLIB=$ac_ct_RANLIB
5339 fi
5340 else
5341 RANLIB="$ac_cv_prog_RANLIB"
5342 fi
5343
5344
5345 ac_ext=c
5346 ac_cpp='$CPP $CPPFLAGS'
5347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5351 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5352 # On Suns, sometimes $CPP names a directory.
5353 if test -n "$CPP" && test -d "$CPP"; then
5354 CPP=
5355 fi
5356 if test -z "$CPP"; then
5357 if ${ac_cv_prog_CPP+:} false; then :
5358 $as_echo_n "(cached) " >&6
5359 else
5360 # Double quotes because CPP needs to be expanded
5361 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5362 do
5363 ac_preproc_ok=false
5364 for ac_c_preproc_warn_flag in '' yes
5365 do
5366 # Use a header file that comes with gcc, so configuring glibc
5367 # with a fresh cross-compiler works.
5368 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5369 # <limits.h> exists even on freestanding compilers.
5370 # On the NeXT, cc -E runs the code through the compiler's parser,
5371 # not just through cpp. "Syntax error" is here to catch this case.
5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5373 /* end confdefs.h. */
5374 #ifdef __STDC__
5375 # include <limits.h>
5376 #else
5377 # include <assert.h>
5378 #endif
5379 Syntax error
5380 _ACEOF
5381 if ac_fn_c_try_cpp "$LINENO"; then :
5382
5383 else
5384 # Broken: fails on valid input.
5385 continue
5386 fi
5387 rm -f conftest.err conftest.i conftest.$ac_ext
5388
5389 # OK, works on sane cases. Now check whether nonexistent headers
5390 # can be detected and how.
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392 /* end confdefs.h. */
5393 #include <ac_nonexistent.h>
5394 _ACEOF
5395 if ac_fn_c_try_cpp "$LINENO"; then :
5396 # Broken: success on invalid input.
5397 continue
5398 else
5399 # Passes both tests.
5400 ac_preproc_ok=:
5401 break
5402 fi
5403 rm -f conftest.err conftest.i conftest.$ac_ext
5404
5405 done
5406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5407 rm -f conftest.i conftest.err conftest.$ac_ext
5408 if $ac_preproc_ok; then :
5409 break
5410 fi
5411
5412 done
5413 ac_cv_prog_CPP=$CPP
5414
5415 fi
5416 CPP=$ac_cv_prog_CPP
5417 else
5418 ac_cv_prog_CPP=$CPP
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5421 $as_echo "$CPP" >&6; }
5422 ac_preproc_ok=false
5423 for ac_c_preproc_warn_flag in '' yes
5424 do
5425 # Use a header file that comes with gcc, so configuring glibc
5426 # with a fresh cross-compiler works.
5427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5428 # <limits.h> exists even on freestanding compilers.
5429 # On the NeXT, cc -E runs the code through the compiler's parser,
5430 # not just through cpp. "Syntax error" is here to catch this case.
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433 #ifdef __STDC__
5434 # include <limits.h>
5435 #else
5436 # include <assert.h>
5437 #endif
5438 Syntax error
5439 _ACEOF
5440 if ac_fn_c_try_cpp "$LINENO"; then :
5441
5442 else
5443 # Broken: fails on valid input.
5444 continue
5445 fi
5446 rm -f conftest.err conftest.i conftest.$ac_ext
5447
5448 # OK, works on sane cases. Now check whether nonexistent headers
5449 # can be detected and how.
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 #include <ac_nonexistent.h>
5453 _ACEOF
5454 if ac_fn_c_try_cpp "$LINENO"; then :
5455 # Broken: success on invalid input.
5456 continue
5457 else
5458 # Passes both tests.
5459 ac_preproc_ok=:
5460 break
5461 fi
5462 rm -f conftest.err conftest.i conftest.$ac_ext
5463
5464 done
5465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5466 rm -f conftest.i conftest.err conftest.$ac_ext
5467 if $ac_preproc_ok; then :
5468
5469 else
5470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5472 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5473 See \`config.log' for more details" "$LINENO" 5; }
5474 fi
5475
5476 ac_ext=c
5477 ac_cpp='$CPP $CPPFLAGS'
5478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5481
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5484 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5485 if ${ac_cv_path_GREP+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -z "$GREP"; then
5489 ac_path_GREP_found=false
5490 # Loop through the user's path and test for each of PROGNAME-LIST
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5493 do
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_prog in grep ggrep; do
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5499 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5500 # Check for GNU ac_path_GREP and select it if it is found.
5501 # Check for GNU $ac_path_GREP
5502 case `"$ac_path_GREP" --version 2>&1` in
5503 *GNU*)
5504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5505 *)
5506 ac_count=0
5507 $as_echo_n 0123456789 >"conftest.in"
5508 while :
5509 do
5510 cat "conftest.in" "conftest.in" >"conftest.tmp"
5511 mv "conftest.tmp" "conftest.in"
5512 cp "conftest.in" "conftest.nl"
5513 $as_echo 'GREP' >> "conftest.nl"
5514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5516 as_fn_arith $ac_count + 1 && ac_count=$as_val
5517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5518 # Best one so far, save it but keep looking for a better one
5519 ac_cv_path_GREP="$ac_path_GREP"
5520 ac_path_GREP_max=$ac_count
5521 fi
5522 # 10*(2^10) chars as input seems more than enough
5523 test $ac_count -gt 10 && break
5524 done
5525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5526 esac
5527
5528 $ac_path_GREP_found && break 3
5529 done
5530 done
5531 done
5532 IFS=$as_save_IFS
5533 if test -z "$ac_cv_path_GREP"; then
5534 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5535 fi
5536 else
5537 ac_cv_path_GREP=$GREP
5538 fi
5539
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5542 $as_echo "$ac_cv_path_GREP" >&6; }
5543 GREP="$ac_cv_path_GREP"
5544
5545
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5547 $as_echo_n "checking for egrep... " >&6; }
5548 if ${ac_cv_path_EGREP+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5552 then ac_cv_path_EGREP="$GREP -E"
5553 else
5554 if test -z "$EGREP"; then
5555 ac_path_EGREP_found=false
5556 # Loop through the user's path and test for each of PROGNAME-LIST
5557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5559 do
5560 IFS=$as_save_IFS
5561 test -z "$as_dir" && as_dir=.
5562 for ac_prog in egrep; do
5563 for ac_exec_ext in '' $ac_executable_extensions; do
5564 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5565 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5566 # Check for GNU ac_path_EGREP and select it if it is found.
5567 # Check for GNU $ac_path_EGREP
5568 case `"$ac_path_EGREP" --version 2>&1` in
5569 *GNU*)
5570 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5571 *)
5572 ac_count=0
5573 $as_echo_n 0123456789 >"conftest.in"
5574 while :
5575 do
5576 cat "conftest.in" "conftest.in" >"conftest.tmp"
5577 mv "conftest.tmp" "conftest.in"
5578 cp "conftest.in" "conftest.nl"
5579 $as_echo 'EGREP' >> "conftest.nl"
5580 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5581 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5582 as_fn_arith $ac_count + 1 && ac_count=$as_val
5583 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5584 # Best one so far, save it but keep looking for a better one
5585 ac_cv_path_EGREP="$ac_path_EGREP"
5586 ac_path_EGREP_max=$ac_count
5587 fi
5588 # 10*(2^10) chars as input seems more than enough
5589 test $ac_count -gt 10 && break
5590 done
5591 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5592 esac
5593
5594 $ac_path_EGREP_found && break 3
5595 done
5596 done
5597 done
5598 IFS=$as_save_IFS
5599 if test -z "$ac_cv_path_EGREP"; then
5600 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5601 fi
5602 else
5603 ac_cv_path_EGREP=$EGREP
5604 fi
5605
5606 fi
5607 fi
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5609 $as_echo "$ac_cv_path_EGREP" >&6; }
5610 EGREP="$ac_cv_path_EGREP"
5611
5612
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5614 $as_echo_n "checking for ANSI C header files... " >&6; }
5615 if ${ac_cv_header_stdc+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620 #include <stdlib.h>
5621 #include <stdarg.h>
5622 #include <string.h>
5623 #include <float.h>
5624
5625 int
5626 main ()
5627 {
5628
5629 ;
5630 return 0;
5631 }
5632 _ACEOF
5633 if ac_fn_c_try_compile "$LINENO"; then :
5634 ac_cv_header_stdc=yes
5635 else
5636 ac_cv_header_stdc=no
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639
5640 if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5643 /* end confdefs.h. */
5644 #include <string.h>
5645
5646 _ACEOF
5647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5648 $EGREP "memchr" >/dev/null 2>&1; then :
5649
5650 else
5651 ac_cv_header_stdc=no
5652 fi
5653 rm -f conftest*
5654
5655 fi
5656
5657 if test $ac_cv_header_stdc = yes; then
5658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 #include <stdlib.h>
5662
5663 _ACEOF
5664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5665 $EGREP "free" >/dev/null 2>&1; then :
5666
5667 else
5668 ac_cv_header_stdc=no
5669 fi
5670 rm -f conftest*
5671
5672 fi
5673
5674 if test $ac_cv_header_stdc = yes; then
5675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5676 if test "$cross_compiling" = yes; then :
5677 :
5678 else
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h. */
5681 #include <ctype.h>
5682 #include <stdlib.h>
5683 #if ((' ' & 0x0FF) == 0x020)
5684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5686 #else
5687 # define ISLOWER(c) \
5688 (('a' <= (c) && (c) <= 'i') \
5689 || ('j' <= (c) && (c) <= 'r') \
5690 || ('s' <= (c) && (c) <= 'z'))
5691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5692 #endif
5693
5694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5695 int
5696 main ()
5697 {
5698 int i;
5699 for (i = 0; i < 256; i++)
5700 if (XOR (islower (i), ISLOWER (i))
5701 || toupper (i) != TOUPPER (i))
5702 return 2;
5703 return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_c_try_run "$LINENO"; then :
5707
5708 else
5709 ac_cv_header_stdc=no
5710 fi
5711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5712 conftest.$ac_objext conftest.beam conftest.$ac_ext
5713 fi
5714
5715 fi
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5718 $as_echo "$ac_cv_header_stdc" >&6; }
5719 if test $ac_cv_header_stdc = yes; then
5720
5721 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5722
5723 fi
5724
5725 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5726 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5727 inttypes.h stdint.h unistd.h
5728 do :
5729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5731 "
5732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5733 cat >>confdefs.h <<_ACEOF
5734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735 _ACEOF
5736
5737 fi
5738
5739 done
5740
5741
5742
5743
5744
5745 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5746 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5747 MINIX=yes
5748 else
5749 MINIX=
5750 fi
5751
5752
5753 if test "$MINIX" = yes; then
5754
5755 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5756
5757
5758 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5759
5760
5761 $as_echo "#define _MINIX 1" >>confdefs.h
5762
5763 fi
5764
5765 case "$host_os" in
5766 hpux*)
5767
5768 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5769
5770 ;;
5771 esac
5772
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5775 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5776 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5780 /* end confdefs.h. */
5781
5782 # define __EXTENSIONS__ 1
5783 $ac_includes_default
5784 int
5785 main ()
5786 {
5787
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 if ac_fn_c_try_compile "$LINENO"; then :
5793 ac_cv_safe_to_define___extensions__=yes
5794 else
5795 ac_cv_safe_to_define___extensions__=no
5796 fi
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 fi
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5800 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5801 test $ac_cv_safe_to_define___extensions__ = yes &&
5802 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5803
5804 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5805
5806 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5807
5808 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5809
5810 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 # Code from module arg-nonnull:
5822 # Code from module c++defs:
5823 # Code from module dtoastr:
5824 # Code from module extensions:
5825
5826 # Code from module getopt-gnu:
5827 # Code from module getopt-posix:
5828 # Code from module gettext-h:
5829 # Code from module ignore-value:
5830 # Code from module include_next:
5831 # Code from module intprops:
5832 # Code from module mktime:
5833 # Code from module multiarch:
5834 # Code from module stdbool:
5835 # Code from module stddef:
5836 # Code from module strftime:
5837 # Code from module time:
5838 # Code from module time_r:
5839 # Code from module unistd:
5840 # Code from module warn-on-use:
5841
5842
5843 # On Suns, sometimes $CPP names a directory.
5844 if test -n "$CPP" && test -d "$CPP"; then
5845 CPP=
5846 fi
5847
5848 ## If not using gcc, and on Solaris, and no CPP specified, see if
5849 ## using a Sun compiler, which needs -Xs to prevent whitespace.
5850 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
5851 test x"$CPP" = x; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
5853 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
5854 if ${emacs_cv_sunpro_c+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859
5860 int
5861 main ()
5862 {
5863 #ifndef __SUNPRO_C
5864 fail;
5865 #endif
5866
5867 ;
5868 return 0;
5869 }
5870 _ACEOF
5871 if ac_fn_c_try_link "$LINENO"; then :
5872 emacs_cv_sunpro_c=yes
5873 else
5874 emacs_cv_sunpro_c=no
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext \
5877 conftest$ac_exeext conftest.$ac_ext
5878 fi
5879
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
5881 $as_echo "$emacs_cv_sunpro_c" >&6; }
5882
5883 if test x"$emacs_cv_sunpro_c" = xyes; then
5884 NON_GNU_CPP="$CC -E -Xs"
5885 fi
5886 fi
5887
5888 #### Some systems specify a CPP to use unless we are using GCC.
5889 #### Now that we know whether we are using GCC, we can decide whether
5890 #### to use that one.
5891 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
5892 then
5893 CPP="$NON_GNU_CPP"
5894 fi
5895
5896 #### Some systems specify a CC to use unless we are using GCC.
5897 #### Now that we know whether we are using GCC, we can decide whether
5898 #### to use that one.
5899 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
5900 test x$cc_specified != xyes
5901 then
5902 CC="$NON_GNU_CC"
5903 fi
5904
5905 if test x$GCC = xyes; then
5906 test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS"
5907 else
5908 test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS"
5909 fi
5910
5911 ### Use -Wno-pointer-sign if the compiler supports it
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
5913 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
5914 SAVE_CFLAGS="$CFLAGS"
5915 CFLAGS="$CFLAGS -Wno-pointer-sign"
5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5917 /* end confdefs.h. */
5918
5919 int
5920 main ()
5921 {
5922
5923 ;
5924 return 0;
5925 }
5926 _ACEOF
5927 if ac_fn_c_try_compile "$LINENO"; then :
5928 has_option=yes
5929 else
5930 has_option=no
5931 fi
5932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5933 if test $has_option = yes; then
5934 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
5935 fi
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5937 $as_echo "$has_option" >&6; }
5938 CFLAGS="$SAVE_CFLAGS"
5939 unset has_option
5940 unset SAVE_CFLAGS
5941
5942 ### Use -Wdeclaration-after-statement if the compiler supports it
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
5944 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
5945 SAVE_CFLAGS="$CFLAGS"
5946 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948 /* end confdefs.h. */
5949
5950 int
5951 main ()
5952 {
5953
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 has_option=yes
5960 else
5961 has_option=no
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 if test $has_option = yes; then
5965 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5968 $as_echo "$has_option" >&6; }
5969 CFLAGS="$SAVE_CFLAGS"
5970 unset has_option
5971 unset SAVE_CFLAGS
5972
5973 ### Use -Wold-style-definition if the compiler supports it
5974 # This can be removed when conversion to standard C is finished.
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wold-style-definition" >&5
5976 $as_echo_n "checking whether gcc understands -Wold-style-definition... " >&6; }
5977 SAVE_CFLAGS="$CFLAGS"
5978 CFLAGS="$CFLAGS -Wold-style-definition"
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981
5982 int
5983 main ()
5984 {
5985
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_compile "$LINENO"; then :
5991 has_option=yes
5992 else
5993 has_option=no
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996 if test $has_option = yes; then
5997 C_WARNINGS_SWITCH="-Wold-style-definition $C_WARNINGS_SWITCH"
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6000 $as_echo "$has_option" >&6; }
6001 CFLAGS="$SAVE_CFLAGS"
6002 unset has_option
6003 unset SAVE_CFLAGS
6004
6005 ### Use -Wimplicit-function-declaration if the compiler supports it
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wimplicit-function-declaration" >&5
6007 $as_echo_n "checking whether gcc understands -Wimplicit-function-declaration... " >&6; }
6008 SAVE_CFLAGS="$CFLAGS"
6009 CFLAGS="$CFLAGS -Wimplicit-function-declaration"
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012
6013 int
6014 main ()
6015 {
6016
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 if ac_fn_c_try_compile "$LINENO"; then :
6022 has_option=yes
6023 else
6024 has_option=no
6025 fi
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 if test $has_option = yes; then
6028 C_WARNINGS_SWITCH="-Wimplicit-function-declaration $C_WARNINGS_SWITCH"
6029 fi
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
6031 $as_echo "$has_option" >&6; }
6032 CFLAGS="$SAVE_CFLAGS"
6033 unset has_option
6034 unset SAVE_CFLAGS
6035
6036
6037
6038
6039 #### Some other nice autoconf tests.
6040
6041 ac_ext=c
6042 ac_cpp='$CPP $CPPFLAGS'
6043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6047 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6048 # On Suns, sometimes $CPP names a directory.
6049 if test -n "$CPP" && test -d "$CPP"; then
6050 CPP=
6051 fi
6052 if test -z "$CPP"; then
6053 if ${ac_cv_prog_CPP+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 # Double quotes because CPP needs to be expanded
6057 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6058 do
6059 ac_preproc_ok=false
6060 for ac_c_preproc_warn_flag in '' yes
6061 do
6062 # Use a header file that comes with gcc, so configuring glibc
6063 # with a fresh cross-compiler works.
6064 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6065 # <limits.h> exists even on freestanding compilers.
6066 # On the NeXT, cc -E runs the code through the compiler's parser,
6067 # not just through cpp. "Syntax error" is here to catch this case.
6068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #ifdef __STDC__
6071 # include <limits.h>
6072 #else
6073 # include <assert.h>
6074 #endif
6075 Syntax error
6076 _ACEOF
6077 if ac_fn_c_try_cpp "$LINENO"; then :
6078
6079 else
6080 # Broken: fails on valid input.
6081 continue
6082 fi
6083 rm -f conftest.err conftest.i conftest.$ac_ext
6084
6085 # OK, works on sane cases. Now check whether nonexistent headers
6086 # can be detected and how.
6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6088 /* end confdefs.h. */
6089 #include <ac_nonexistent.h>
6090 _ACEOF
6091 if ac_fn_c_try_cpp "$LINENO"; then :
6092 # Broken: success on invalid input.
6093 continue
6094 else
6095 # Passes both tests.
6096 ac_preproc_ok=:
6097 break
6098 fi
6099 rm -f conftest.err conftest.i conftest.$ac_ext
6100
6101 done
6102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6103 rm -f conftest.i conftest.err conftest.$ac_ext
6104 if $ac_preproc_ok; then :
6105 break
6106 fi
6107
6108 done
6109 ac_cv_prog_CPP=$CPP
6110
6111 fi
6112 CPP=$ac_cv_prog_CPP
6113 else
6114 ac_cv_prog_CPP=$CPP
6115 fi
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6117 $as_echo "$CPP" >&6; }
6118 ac_preproc_ok=false
6119 for ac_c_preproc_warn_flag in '' yes
6120 do
6121 # Use a header file that comes with gcc, so configuring glibc
6122 # with a fresh cross-compiler works.
6123 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6124 # <limits.h> exists even on freestanding compilers.
6125 # On the NeXT, cc -E runs the code through the compiler's parser,
6126 # not just through cpp. "Syntax error" is here to catch this case.
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6129 #ifdef __STDC__
6130 # include <limits.h>
6131 #else
6132 # include <assert.h>
6133 #endif
6134 Syntax error
6135 _ACEOF
6136 if ac_fn_c_try_cpp "$LINENO"; then :
6137
6138 else
6139 # Broken: fails on valid input.
6140 continue
6141 fi
6142 rm -f conftest.err conftest.i conftest.$ac_ext
6143
6144 # OK, works on sane cases. Now check whether nonexistent headers
6145 # can be detected and how.
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6148 #include <ac_nonexistent.h>
6149 _ACEOF
6150 if ac_fn_c_try_cpp "$LINENO"; then :
6151 # Broken: success on invalid input.
6152 continue
6153 else
6154 # Passes both tests.
6155 ac_preproc_ok=:
6156 break
6157 fi
6158 rm -f conftest.err conftest.i conftest.$ac_ext
6159
6160 done
6161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6162 rm -f conftest.i conftest.err conftest.$ac_ext
6163 if $ac_preproc_ok; then :
6164
6165 else
6166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6168 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6169 See \`config.log' for more details" "$LINENO" 5; }
6170 fi
6171
6172 ac_ext=c
6173 ac_cpp='$CPP $CPPFLAGS'
6174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6177
6178
6179 if test "x$RANLIB" = x; then
6180 if test -n "$ac_tool_prefix"; then
6181 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_RANLIB+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$RANLIB"; then
6189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 RANLIB=$ac_cv_prog_RANLIB
6209 if test -n "$RANLIB"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6211 $as_echo "$RANLIB" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 fi
6219 if test -z "$ac_cv_prog_RANLIB"; then
6220 ac_ct_RANLIB=$RANLIB
6221 # Extract the first word of "ranlib", so it can be a program name with args.
6222 set dummy ranlib; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if test -n "$ac_ct_RANLIB"; then
6229 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238 ac_cv_prog_ac_ct_RANLIB="ranlib"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6249 if test -n "$ac_ct_RANLIB"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6251 $as_echo "$ac_ct_RANLIB" >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257 if test "x$ac_ct_RANLIB" = x; then
6258 RANLIB=":"
6259 else
6260 case $cross_compiling:$ac_tool_warned in
6261 yes:)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266 RANLIB=$ac_ct_RANLIB
6267 fi
6268 else
6269 RANLIB="$ac_cv_prog_RANLIB"
6270 fi
6271
6272 fi
6273
6274 ## Although we're running on an amd64 kernel, we're actually compiling for
6275 ## the x86 architecture. The user should probably have provided an
6276 ## explicit --build to `configure', but if everything else than the kernel
6277 ## is running in i386 mode, we can help them out.
6278 if test "$machine" = "amdx86-64"; then
6279 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default"
6280 if test "x$ac_cv_have_decl_i386" = xyes; then :
6281
6282 fi
6283
6284 if test "$ac_cv_have_decl_i386" = "yes"; then
6285 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
6286 machine=intel386
6287 machfile="m/${machine}.h"
6288 fi
6289 fi
6290
6291 # Extract the first word of "install-info", so it can be a program name with args.
6292 set dummy install-info; ac_word=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6296 $as_echo_n "(cached) " >&6
6297 else
6298 case $INSTALL_INFO in
6299 [\\/]* | ?:[\\/]*)
6300 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6301 ;;
6302 *)
6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6304 for as_dir in $PATH
6305 do
6306 IFS=$as_save_IFS
6307 test -z "$as_dir" && as_dir=.
6308 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6312 break 2
6313 fi
6314 done
6315 done
6316 IFS=$as_save_IFS
6317
6318 ;;
6319 esac
6320 fi
6321 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6322 if test -n "$INSTALL_INFO"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6324 $as_echo "$INSTALL_INFO" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329
6330
6331 # Extract the first word of "install-info", so it can be a program name with args.
6332 set dummy install-info; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 case $INSTALL_INFO in
6339 [\\/]* | ?:[\\/]*)
6340 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6341 ;;
6342 *)
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in /usr/sbin
6345 do
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6350 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6352 break 2
6353 fi
6354 done
6355 done
6356 IFS=$as_save_IFS
6357
6358 ;;
6359 esac
6360 fi
6361 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6362 if test -n "$INSTALL_INFO"; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6364 $as_echo "$INSTALL_INFO" >&6; }
6365 else
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6367 $as_echo "no" >&6; }
6368 fi
6369
6370
6371 # Extract the first word of "install-info", so it can be a program name with args.
6372 set dummy install-info; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_path_INSTALL_INFO+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 case $INSTALL_INFO in
6379 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
6381 ;;
6382 *)
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in /sbin
6385 do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394 done
6395 done
6396 IFS=$as_save_IFS
6397
6398 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
6399 ;;
6400 esac
6401 fi
6402 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
6403 if test -n "$INSTALL_INFO"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
6405 $as_echo "$INSTALL_INFO" >&6; }
6406 else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408 $as_echo "no" >&6; }
6409 fi
6410
6411
6412 # Extract the first word of "gzip", so it can be a program name with args.
6413 set dummy gzip; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_path_GZIP_PROG+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 case $GZIP_PROG in
6420 [\\/]* | ?:[\\/]*)
6421 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
6422 ;;
6423 *)
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433 break 2
6434 fi
6435 done
6436 done
6437 IFS=$as_save_IFS
6438
6439 ;;
6440 esac
6441 fi
6442 GZIP_PROG=$ac_cv_path_GZIP_PROG
6443 if test -n "$GZIP_PROG"; then
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
6445 $as_echo "$GZIP_PROG" >&6; }
6446 else
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448 $as_echo "no" >&6; }
6449 fi
6450
6451
6452
6453
6454 ## Need makeinfo >= 4.6 (?) to build the manuals.
6455 # Extract the first word of "makeinfo", so it can be a program name with args.
6456 set dummy makeinfo; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_path_MAKEINFO+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462 case $MAKEINFO in
6463 [\\/]* | ?:[\\/]*)
6464 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
6465 ;;
6466 *)
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
6483 ;;
6484 esac
6485 fi
6486 MAKEINFO=$ac_cv_path_MAKEINFO
6487 if test -n "$MAKEINFO"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
6489 $as_echo "$MAKEINFO" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495
6496 if test "$MAKEINFO" != "no" && \
6497 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
6498 MAKEINFO=no
6499 fi
6500
6501 ## Makeinfo is unusual. For a released Emacs, the manuals are
6502 ## pre-built, and not deleted by the normal clean rules. makeinfo is
6503 ## therefore in the category of "special tools" not normally required, which
6504 ## configure does not have to check for (eg autoconf itself).
6505 ## In a Bazaar checkout on the other hand, the manuals are not included.
6506 ## So makeinfo is a requirement to build from Bazaar, and configure
6507 ## should test for it as it does for any other build requirement.
6508 ## We use the presence of $srcdir/info/emacs to distinguish a release,
6509 ## with pre-built manuals, from a Bazaar checkout.
6510 HAVE_MAKEINFO=yes
6511
6512 if test "$MAKEINFO" = "no"; then
6513 MAKEINFO=makeinfo
6514 if test "x${with_makeinfo}" = "xno"; then
6515 HAVE_MAKEINFO=no
6516 elif test ! -e $srcdir/info/emacs; then
6517 as_fn_error $? "You do not seem to have makeinfo >= 4.6, and your
6518 source tree does not seem to have pre-built manuals in the \`info' directory.
6519 Either install a suitable version of makeinfo, or re-run configure
6520 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
6521 fi
6522 fi
6523
6524
6525
6526 if test x$GCC = xyes; then
6527 test "x$GCC_LINK_TEST_OPTIONS" != x && \
6528 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
6529 else
6530 test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \
6531 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
6532 fi
6533
6534
6535 late_LDFLAGS=$LDFLAGS
6536 if test x$GCC = xyes; then
6537 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
6538 else
6539 LDFLAGS="$LDFLAGS -znocombreloc"
6540 fi
6541
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
6543 $as_echo_n "checking for -znocombreloc... " >&6; }
6544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6545 /* end confdefs.h. */
6546
6547 int
6548 main ()
6549 {
6550
6551 ;
6552 return 0;
6553 }
6554 _ACEOF
6555 if ac_fn_c_try_link "$LINENO"; then :
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6557 $as_echo "yes" >&6; }
6558 else
6559 LDFLAGS=$late_LDFLAGS
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561 $as_echo "no" >&6; }
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext \
6564 conftest$ac_exeext conftest.$ac_ext
6565
6566
6567 # The value of CPP is a quoted variable reference, so we need to do this
6568 # to get its actual value...
6569 CPP=`eval "echo $CPP"`
6570
6571
6572 test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no
6573 case "$opsys" in
6574 your-opsys-here) CANNOT_DUMP=yes ;;
6575 esac
6576
6577 test "$CANNOT_DUMP" = "yes" && \
6578
6579 $as_echo "#define CANNOT_DUMP 1" >>confdefs.h
6580
6581
6582
6583
6584
6585 UNEXEC_OBJ=unexelf.o
6586 case "$opsys" in
6587 # MSDOS uses unexcoff.o
6588 # MSWindows uses unexw32.o
6589 aix4-2)
6590 UNEXEC_OBJ=unexaix.o
6591 ;;
6592 cygwin)
6593 UNEXEC_OBJ=unexcw.o
6594 ;;
6595 darwin)
6596 UNEXEC_OBJ=unexmacosx.o
6597 ;;
6598 hpux10-20 | hpux11)
6599 UNEXEC_OBJ=unexhp9k800.o
6600 ;;
6601 sol2-10)
6602 # Use the Solaris dldump() function, called from unexsol.c, to dump
6603 # emacs, instead of the generic ELF dump code found in unexelf.c.
6604 # The resulting binary has a complete symbol table, and is better
6605 # for debugging and other observability tools (debuggers, pstack, etc).
6606 #
6607 # If you encounter a problem using dldump(), please consider sending
6608 # a message to the OpenSolaris tools-linking mailing list:
6609 # http://mail.opensolaris.org/mailman/listinfo/tools-linking
6610 #
6611 # It is likely that dldump() works with older Solaris too, but this has
6612 # not been tested, so for now this change is for Solaris 10 or newer.
6613 UNEXEC_OBJ=unexsol.o
6614 ;;
6615 esac
6616
6617 LD_SWITCH_SYSTEM=
6618 case "$opsys" in
6619 freebsd)
6620 ## Let `ld' find image libs and similar things in /usr/local/lib.
6621 ## The system compiler, GCC, has apparently been modified to not
6622 ## look there, contrary to what a stock GCC would do.
6623 LD_SWITCH_SYSTEM=-L/usr/local/lib
6624 ;;
6625
6626 gnu-linux)
6627 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
6628 case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac
6629 ;;
6630
6631 netbsd)
6632 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
6633 ;;
6634
6635 openbsd)
6636 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
6637 ## otherwise Emacs dumps core on elf systems.
6638 LD_SWITCH_SYSTEM="-Z"
6639 ;;
6640 esac
6641
6642
6643 ac_link="$ac_link $LD_SWITCH_SYSTEM"
6644
6645 ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_AUX,
6646 ## which has not been defined yet. When this was handled with cpp,
6647 ## it was expanded to null when configure sourced the s/*.h file.
6648 ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles.
6649 ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS
6650 ## (or somesuch), but because it is supposed to go at the _front_
6651 ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way.
6652 ## Compare with the gnu-linux case below, which added to the end
6653 ## of LD_SWITCH_SYSTEM, and so can instead go at the front of
6654 ## LD_SWITCH_SYSTEM_TEMACS.
6655 case "$opsys" in
6656 netbsd|openbsd)
6657 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
6658 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
6659 esac
6660
6661
6662 C_SWITCH_MACHINE=
6663 if test "$machine" = "alpha"; then
6664 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default"
6665 if test "x$ac_cv_have_decl___ELF__" = xyes; then :
6666
6667 fi
6668
6669 if test "$ac_cv_have_decl___ELF__" = "yes"; then
6670 ## With ELF, make sure that all common symbols get allocated to in the
6671 ## data section. Otherwise, the dump of temacs may miss variables in
6672 ## the shared library that have been initialized. For example, with
6673 ## GNU libc, __malloc_initialized would normally be resolved to the
6674 ## shared library's .bss section, which is fatal.
6675 if test "x$GCC" = "xyes"; then
6676 C_SWITCH_MACHINE="-fno-common"
6677 else
6678 as_fn_error $? "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5
6679 fi
6680 else
6681 UNEXEC_OBJ=unexalpha.o
6682 fi
6683 fi
6684
6685
6686
6687
6688 C_SWITCH_SYSTEM=
6689 ## Some programs in src produce warnings saying certain subprograms
6690 ## are too complex and need a MAXMEM value greater than 2000 for
6691 ## additional optimization. --nils@exp-math.uni-essen.de
6692 test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \
6693 C_SWITCH_SYSTEM="-ma -qmaxmem=4000"
6694 ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems.
6695 ## It is redundant in glibc2, since we define _GNU_SOURCE.
6696
6697
6698
6699 LIBS_SYSTEM=
6700 case "$opsys" in
6701 ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2.
6702 aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;;
6703
6704 freebsd) LIBS_SYSTEM="-lutil" ;;
6705
6706 hpux*) LIBS_SYSTEM="-l:libdld.sl" ;;
6707
6708 sol2*) LIBS_SYSTEM="-lsocket -lnsl -lkstat" ;;
6709
6710 ## Motif needs -lgen.
6711 unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;;
6712 esac
6713
6714
6715
6716 ### Make sure subsequent tests use flags consistent with the build flags.
6717
6718 if test x"${OVERRIDE_CPPFLAGS}" != x; then
6719 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
6720 else
6721 CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS"
6722 fi
6723
6724
6725
6726 # Check whether --enable-largefile was given.
6727 if test "${enable_largefile+set}" = set; then :
6728 enableval=$enable_largefile;
6729 fi
6730
6731 if test "$enable_largefile" != no; then
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6734 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6735 if ${ac_cv_sys_largefile_CC+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 ac_cv_sys_largefile_CC=no
6739 if test "$GCC" != yes; then
6740 ac_save_CC=$CC
6741 while :; do
6742 # IRIX 6.2 and later do not support large files by default,
6743 # so use the C compiler's -n32 option if that helps.
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 #include <sys/types.h>
6747 /* Check that off_t can represent 2**63 - 1 correctly.
6748 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6749 since some C++ compilers masquerading as C compilers
6750 incorrectly reject 9223372036854775807. */
6751 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6752 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6753 && LARGE_OFF_T % 2147483647 == 1)
6754 ? 1 : -1];
6755 int
6756 main ()
6757 {
6758
6759 ;
6760 return 0;
6761 }
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 break
6765 fi
6766 rm -f core conftest.err conftest.$ac_objext
6767 CC="$CC -n32"
6768 if ac_fn_c_try_compile "$LINENO"; then :
6769 ac_cv_sys_largefile_CC=' -n32'; break
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext
6772 break
6773 done
6774 CC=$ac_save_CC
6775 rm -f conftest.$ac_ext
6776 fi
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6779 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6780 if test "$ac_cv_sys_largefile_CC" != no; then
6781 CC=$CC$ac_cv_sys_largefile_CC
6782 fi
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6785 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6786 if ${ac_cv_sys_file_offset_bits+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788 else
6789 while :; do
6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791 /* end confdefs.h. */
6792 #include <sys/types.h>
6793 /* Check that off_t can represent 2**63 - 1 correctly.
6794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6795 since some C++ compilers masquerading as C compilers
6796 incorrectly reject 9223372036854775807. */
6797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6799 && LARGE_OFF_T % 2147483647 == 1)
6800 ? 1 : -1];
6801 int
6802 main ()
6803 {
6804
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 if ac_fn_c_try_compile "$LINENO"; then :
6810 ac_cv_sys_file_offset_bits=no; break
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6815 #define _FILE_OFFSET_BITS 64
6816 #include <sys/types.h>
6817 /* Check that off_t can represent 2**63 - 1 correctly.
6818 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6819 since some C++ compilers masquerading as C compilers
6820 incorrectly reject 9223372036854775807. */
6821 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6822 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6823 && LARGE_OFF_T % 2147483647 == 1)
6824 ? 1 : -1];
6825 int
6826 main ()
6827 {
6828
6829 ;
6830 return 0;
6831 }
6832 _ACEOF
6833 if ac_fn_c_try_compile "$LINENO"; then :
6834 ac_cv_sys_file_offset_bits=64; break
6835 fi
6836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 ac_cv_sys_file_offset_bits=unknown
6838 break
6839 done
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6842 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6843 case $ac_cv_sys_file_offset_bits in #(
6844 no | unknown) ;;
6845 *)
6846 cat >>confdefs.h <<_ACEOF
6847 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6848 _ACEOF
6849 ;;
6850 esac
6851 rm -rf conftest*
6852 if test $ac_cv_sys_file_offset_bits = unknown; then
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6854 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6855 if ${ac_cv_sys_large_files+:} false; then :
6856 $as_echo_n "(cached) " >&6
6857 else
6858 while :; do
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 #include <sys/types.h>
6862 /* Check that off_t can represent 2**63 - 1 correctly.
6863 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6864 since some C++ compilers masquerading as C compilers
6865 incorrectly reject 9223372036854775807. */
6866 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6867 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6868 && LARGE_OFF_T % 2147483647 == 1)
6869 ? 1 : -1];
6870 int
6871 main ()
6872 {
6873
6874 ;
6875 return 0;
6876 }
6877 _ACEOF
6878 if ac_fn_c_try_compile "$LINENO"; then :
6879 ac_cv_sys_large_files=no; break
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 #define _LARGE_FILES 1
6885 #include <sys/types.h>
6886 /* Check that off_t can represent 2**63 - 1 correctly.
6887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6888 since some C++ compilers masquerading as C compilers
6889 incorrectly reject 9223372036854775807. */
6890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6892 && LARGE_OFF_T % 2147483647 == 1)
6893 ? 1 : -1];
6894 int
6895 main ()
6896 {
6897
6898 ;
6899 return 0;
6900 }
6901 _ACEOF
6902 if ac_fn_c_try_compile "$LINENO"; then :
6903 ac_cv_sys_large_files=1; break
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 ac_cv_sys_large_files=unknown
6907 break
6908 done
6909 fi
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6911 $as_echo "$ac_cv_sys_large_files" >&6; }
6912 case $ac_cv_sys_large_files in #(
6913 no | unknown) ;;
6914 *)
6915 cat >>confdefs.h <<_ACEOF
6916 #define _LARGE_FILES $ac_cv_sys_large_files
6917 _ACEOF
6918 ;;
6919 esac
6920 rm -rf conftest*
6921 fi
6922 fi
6923
6924
6925
6926 ## If user specified a crt-dir, use that unconditionally.
6927 if test "X$CRT_DIR" = "X"; then
6928
6929 case "$canonical" in
6930 x86_64-*-linux-gnu* | s390x-*-linux-gnu*)
6931 ## On x86-64 and s390x GNU/Linux distributions, the standard library
6932 ## can be in a variety of places. We only try /usr/lib64 and /usr/lib.
6933 ## For anything else (eg /usr/lib32), it is up the user to specify
6934 ## the location (bug#5655).
6935 ## Test for crtn.o, not just the directory, because sometimes the
6936 ## directory exists but does not have the relevant files (bug#1287).
6937 ## FIXME better to test for binary compatibility somehow.
6938 test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64
6939 ;;
6940
6941 powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;;
6942 esac
6943
6944 case "$opsys" in
6945 hpux10-20) CRT_DIR=/lib ;;
6946 esac
6947
6948 ## Default is /usr/lib.
6949 test "X$CRT_DIR" = "X" && CRT_DIR=/usr/lib
6950
6951 else
6952
6953 ## Some platforms don't use any of these files, so it is not
6954 ## appropriate to put this test outside the if block.
6955 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6956 as_fn_error $? "crt*.o not found in specified location." "$LINENO" 5
6957
6958 fi
6959
6960
6961
6962 LIB_MATH=-lm
6963 LIB_STANDARD=
6964 START_FILES=
6965
6966 case $opsys in
6967 cygwin )
6968 LIB_MATH=
6969 START_FILES='pre-crt0.o'
6970 ;;
6971 darwin )
6972 ## Adding -lm confuses the dynamic linker, so omit it.
6973 LIB_MATH=
6974 START_FILES='pre-crt0.o'
6975 ;;
6976 freebsd )
6977 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6978 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6979 ;;
6980 gnu-linux | gnu-kfreebsd )
6981 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
6982 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
6983 ;;
6984 hpux10-20 | hpux11 )
6985 LIB_STANDARD=-lc
6986 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
6987 ;;
6988 netbsd | openbsd )
6989 if test -f $CRT_DIR/crti.o; then
6990 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o'
6991 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o'
6992 else
6993 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
6994 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
6995 fi
6996 ;;
6997 esac
6998
6999
7000
7001
7002
7003
7004
7005 if test "${with_sound}" != "no"; then
7006 # Sound support for GNU/Linux and the free BSDs.
7007 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
7008 do :
7009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7010 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7011 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7012 cat >>confdefs.h <<_ACEOF
7013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7014 _ACEOF
7015 have_sound_header=yes
7016 fi
7017
7018 done
7019
7020 # Emulation library used on NetBSD.
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
7022 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
7023 if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 ac_check_lib_save_LIBS=$LIBS
7027 LIBS="-lossaudio $LIBS"
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030
7031 /* Override any GCC internal prototype to avoid an error.
7032 Use char because int might match the return type of a GCC
7033 builtin and then its argument prototype would still apply. */
7034 #ifdef __cplusplus
7035 extern "C"
7036 #endif
7037 char _oss_ioctl ();
7038 int
7039 main ()
7040 {
7041 return _oss_ioctl ();
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 if ac_fn_c_try_link "$LINENO"; then :
7047 ac_cv_lib_ossaudio__oss_ioctl=yes
7048 else
7049 ac_cv_lib_ossaudio__oss_ioctl=no
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053 LIBS=$ac_check_lib_save_LIBS
7054 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
7056 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
7057 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
7058 LIBSOUND=-lossaudio
7059 else
7060 LIBSOUND=
7061 fi
7062
7063
7064
7065 ALSA_REQUIRED=1.0.0
7066 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
7067
7068 succeeded=no
7069
7070 # Extract the first word of "pkg-config", so it can be a program name with args.
7071 set dummy pkg-config; ac_word=$2
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073 $as_echo_n "checking for $ac_word... " >&6; }
7074 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076 else
7077 case $PKG_CONFIG in
7078 [\\/]* | ?:[\\/]*)
7079 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7080 ;;
7081 *)
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7084 do
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7092 fi
7093 done
7094 done
7095 IFS=$as_save_IFS
7096
7097 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7098 ;;
7099 esac
7100 fi
7101 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7102 if test -n "$PKG_CONFIG"; then
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7104 $as_echo "$PKG_CONFIG" >&6; }
7105 else
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7108 fi
7109
7110
7111
7112 if test "$PKG_CONFIG" = "no" ; then
7113 HAVE_ALSA=no
7114 else
7115 PKG_CONFIG_MIN_VERSION=0.9.0
7116 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
7118 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
7119
7120 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7122 $as_echo "yes" >&6; }
7123 succeeded=yes
7124
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
7126 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
7127 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
7129 $as_echo "$ALSA_CFLAGS" >&6; }
7130
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
7132 $as_echo_n "checking ALSA_LIBS... " >&6; }
7133 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
7135 $as_echo "$ALSA_LIBS" >&6; }
7136 else
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 ALSA_CFLAGS=""
7140 ALSA_LIBS=""
7141 ## If we have a custom action on failure, don't print errors, but
7142 ## do set a variable so people can do so.
7143 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
7144
7145 fi
7146
7147
7148
7149 else
7150 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
7151 echo "*** See http://www.freedesktop.org/software/pkgconfig"
7152 fi
7153 fi
7154
7155 if test $succeeded = yes; then
7156 HAVE_ALSA=yes
7157 else
7158 HAVE_ALSA=no
7159 fi
7160
7161 if test $HAVE_ALSA = yes; then
7162 SAVE_CFLAGS="$CFLAGS"
7163 SAVE_LDFLAGS="$LDFLAGS"
7164 CFLAGS="$ALSA_CFLAGS $CFLAGS"
7165 LDFLAGS="$ALSA_LIBS $LDFLAGS"
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167 /* end confdefs.h. */
7168 #include <asoundlib.h>
7169 int
7170 main ()
7171 {
7172 snd_lib_error_set_handler (0);
7173 ;
7174 return 0;
7175 }
7176 _ACEOF
7177 if ac_fn_c_try_compile "$LINENO"; then :
7178 emacs_alsa_normal=yes
7179 else
7180 emacs_alsa_normal=no
7181 fi
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 if test "$emacs_alsa_normal" != yes; then
7184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h. */
7186 #include <alsa/asoundlib.h>
7187 int
7188 main ()
7189 {
7190 snd_lib_error_set_handler (0);
7191 ;
7192 return 0;
7193 }
7194 _ACEOF
7195 if ac_fn_c_try_compile "$LINENO"; then :
7196 emacs_alsa_subdir=yes
7197 else
7198 emacs_alsa_subdir=no
7199 fi
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 if test "$emacs_alsa_subdir" != yes; then
7202 as_fn_error $? "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
7203 fi
7204 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
7205 fi
7206
7207 CFLAGS="$SAVE_CFLAGS"
7208 LDFLAGS="$SAVE_LDFLAGS"
7209 LIBSOUND="$LIBSOUND $ALSA_LIBS"
7210 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
7211
7212 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
7213
7214 fi
7215
7216 if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then
7217 case "$opsys" in
7218 gnu-linux|freebsd|netbsd)
7219
7220 $as_echo "#define HAVE_SOUND 1" >>confdefs.h
7221
7222 ;;
7223 esac
7224 fi
7225
7226
7227 fi
7228
7229 for ac_header in sys/select.h sys/time.h unistd.h utime.h \
7230 linux/version.h sys/systeminfo.h limits.h \
7231 stdio_ext.h fcntl.h coff.h pty.h sys/mman.h \
7232 sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
7233 sys/utsname.h pwd.h utmp.h dirent.h util.h
7234 do :
7235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7236 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7237 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7238 cat >>confdefs.h <<_ACEOF
7239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7240 _ACEOF
7241
7242 fi
7243
7244 done
7245
7246
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
7248 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 #include <sys/personality.h>
7252 int
7253 main ()
7254 {
7255 personality (PER_LINUX32)
7256 ;
7257 return 0;
7258 }
7259 _ACEOF
7260 if ac_fn_c_try_compile "$LINENO"; then :
7261 emacs_cv_personality_linux32=yes
7262 else
7263 emacs_cv_personality_linux32=no
7264 fi
7265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
7267 $as_echo "$emacs_cv_personality_linux32" >&6; }
7268
7269 if test $emacs_cv_personality_linux32 = yes; then
7270
7271 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
7272
7273 fi
7274
7275 for ac_header in term.h
7276 do :
7277 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
7278 if test "x$ac_cv_header_term_h" = xyes; then :
7279 cat >>confdefs.h <<_ACEOF
7280 #define HAVE_TERM_H 1
7281 _ACEOF
7282
7283 fi
7284
7285 done
7286
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7288 $as_echo_n "checking for ANSI C header files... " >&6; }
7289 if ${ac_cv_header_stdc+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7294 #include <stdlib.h>
7295 #include <stdarg.h>
7296 #include <string.h>
7297 #include <float.h>
7298
7299 int
7300 main ()
7301 {
7302
7303 ;
7304 return 0;
7305 }
7306 _ACEOF
7307 if ac_fn_c_try_compile "$LINENO"; then :
7308 ac_cv_header_stdc=yes
7309 else
7310 ac_cv_header_stdc=no
7311 fi
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313
7314 if test $ac_cv_header_stdc = yes; then
7315 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 /* end confdefs.h. */
7318 #include <string.h>
7319
7320 _ACEOF
7321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7322 $EGREP "memchr" >/dev/null 2>&1; then :
7323
7324 else
7325 ac_cv_header_stdc=no
7326 fi
7327 rm -f conftest*
7328
7329 fi
7330
7331 if test $ac_cv_header_stdc = yes; then
7332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335 #include <stdlib.h>
7336
7337 _ACEOF
7338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7339 $EGREP "free" >/dev/null 2>&1; then :
7340
7341 else
7342 ac_cv_header_stdc=no
7343 fi
7344 rm -f conftest*
7345
7346 fi
7347
7348 if test $ac_cv_header_stdc = yes; then
7349 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7350 if test "$cross_compiling" = yes; then :
7351 :
7352 else
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 #include <ctype.h>
7356 #include <stdlib.h>
7357 #if ((' ' & 0x0FF) == 0x020)
7358 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7359 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7360 #else
7361 # define ISLOWER(c) \
7362 (('a' <= (c) && (c) <= 'i') \
7363 || ('j' <= (c) && (c) <= 'r') \
7364 || ('s' <= (c) && (c) <= 'z'))
7365 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7366 #endif
7367
7368 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7369 int
7370 main ()
7371 {
7372 int i;
7373 for (i = 0; i < 256; i++)
7374 if (XOR (islower (i), ISLOWER (i))
7375 || toupper (i) != TOUPPER (i))
7376 return 2;
7377 return 0;
7378 }
7379 _ACEOF
7380 if ac_fn_c_try_run "$LINENO"; then :
7381
7382 else
7383 ac_cv_header_stdc=no
7384 fi
7385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7386 conftest.$ac_objext conftest.beam conftest.$ac_ext
7387 fi
7388
7389 fi
7390 fi
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7392 $as_echo "$ac_cv_header_stdc" >&6; }
7393 if test $ac_cv_header_stdc = yes; then
7394
7395 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7396
7397 fi
7398
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7400 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7401 if ${ac_cv_header_time+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403 else
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 #include <sys/types.h>
7407 #include <sys/time.h>
7408 #include <time.h>
7409
7410 int
7411 main ()
7412 {
7413 if ((struct tm *) 0)
7414 return 0;
7415 ;
7416 return 0;
7417 }
7418 _ACEOF
7419 if ac_fn_c_try_compile "$LINENO"; then :
7420 ac_cv_header_time=yes
7421 else
7422 ac_cv_header_time=no
7423 fi
7424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7425 fi
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7427 $as_echo "$ac_cv_header_time" >&6; }
7428 if test $ac_cv_header_time = yes; then
7429
7430 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7431
7432 fi
7433
7434 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7435 if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
7436 ac_have_decl=1
7437 else
7438 ac_have_decl=0
7439 fi
7440
7441 cat >>confdefs.h <<_ACEOF
7442 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7443 _ACEOF
7444
7445 if test $ac_cv_have_decl_sys_siglist != yes; then
7446 # For Tru64, at least:
7447 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7448 if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
7449 ac_have_decl=1
7450 else
7451 ac_have_decl=0
7452 fi
7453
7454 cat >>confdefs.h <<_ACEOF
7455 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
7456 _ACEOF
7457
7458 if test $ac_cv_have_decl___sys_siglist = yes; then
7459
7460 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
7461
7462 fi
7463 fi
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7465 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7466 if ${ac_cv_header_sys_wait_h+:} false; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471 #include <sys/types.h>
7472 #include <sys/wait.h>
7473 #ifndef WEXITSTATUS
7474 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7475 #endif
7476 #ifndef WIFEXITED
7477 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7478 #endif
7479
7480 int
7481 main ()
7482 {
7483 int s;
7484 wait (&s);
7485 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7486 ;
7487 return 0;
7488 }
7489 _ACEOF
7490 if ac_fn_c_try_compile "$LINENO"; then :
7491 ac_cv_header_sys_wait_h=yes
7492 else
7493 ac_cv_header_sys_wait_h=no
7494 fi
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7496 fi
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7498 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7499 if test $ac_cv_header_sys_wait_h = yes; then
7500
7501 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7502
7503 fi
7504
7505
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7507 $as_echo_n "checking for struct utimbuf... " >&6; }
7508 if ${emacs_cv_struct_utimbuf+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 #ifdef TIME_WITH_SYS_TIME
7514 #include <sys/time.h>
7515 #include <time.h>
7516 #else
7517 #ifdef HAVE_SYS_TIME_H
7518 #include <sys/time.h>
7519 #else
7520 #include <time.h>
7521 #endif
7522 #endif
7523 #ifdef HAVE_UTIME_H
7524 #include <utime.h>
7525 #endif
7526 int
7527 main ()
7528 {
7529 static struct utimbuf x; x.actime = x.modtime;
7530 ;
7531 return 0;
7532 }
7533 _ACEOF
7534 if ac_fn_c_try_compile "$LINENO"; then :
7535 emacs_cv_struct_utimbuf=yes
7536 else
7537 emacs_cv_struct_utimbuf=no
7538 fi
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 fi
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7542 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7543 if test $emacs_cv_struct_utimbuf = yes; then
7544
7545 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7546
7547 fi
7548
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7550 $as_echo_n "checking return type of signal handlers... " >&6; }
7551 if ${ac_cv_type_signal+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 #include <sys/types.h>
7557 #include <signal.h>
7558
7559 int
7560 main ()
7561 {
7562 return *(signal (0, 0)) (0) == 1;
7563 ;
7564 return 0;
7565 }
7566 _ACEOF
7567 if ac_fn_c_try_compile "$LINENO"; then :
7568 ac_cv_type_signal=int
7569 else
7570 ac_cv_type_signal=void
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7573 fi
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7575 $as_echo "$ac_cv_type_signal" >&6; }
7576
7577 cat >>confdefs.h <<_ACEOF
7578 #define RETSIGTYPE $ac_cv_type_signal
7579 _ACEOF
7580
7581
7582
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7584 $as_echo_n "checking for speed_t... " >&6; }
7585 if ${emacs_cv_speed_t+:} false; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7590 #include <termios.h>
7591 int
7592 main ()
7593 {
7594 speed_t x = 1;
7595 ;
7596 return 0;
7597 }
7598 _ACEOF
7599 if ac_fn_c_try_compile "$LINENO"; then :
7600 emacs_cv_speed_t=yes
7601 else
7602 emacs_cv_speed_t=no
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 fi
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7607 $as_echo "$emacs_cv_speed_t" >&6; }
7608 if test $emacs_cv_speed_t = yes; then
7609
7610 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7611
7612 fi
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7615 $as_echo_n "checking for struct timeval... " >&6; }
7616 if ${emacs_cv_struct_timeval+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 #ifdef TIME_WITH_SYS_TIME
7622 #include <sys/time.h>
7623 #include <time.h>
7624 #else
7625 #ifdef HAVE_SYS_TIME_H
7626 #include <sys/time.h>
7627 #else
7628 #include <time.h>
7629 #endif
7630 #endif
7631 int
7632 main ()
7633 {
7634 static struct timeval x; x.tv_sec = x.tv_usec;
7635 ;
7636 return 0;
7637 }
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 emacs_cv_struct_timeval=yes
7641 else
7642 emacs_cv_struct_timeval=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 fi
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7647 $as_echo "$emacs_cv_struct_timeval" >&6; }
7648 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7649 if test $emacs_cv_struct_timeval = yes; then
7650
7651 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7652
7653 fi
7654
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7656 $as_echo_n "checking for struct exception... " >&6; }
7657 if ${emacs_cv_struct_exception+:} false; then :
7658 $as_echo_n "(cached) " >&6
7659 else
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662 #include <math.h>
7663 int
7664 main ()
7665 {
7666 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7667 ;
7668 return 0;
7669 }
7670 _ACEOF
7671 if ac_fn_c_try_compile "$LINENO"; then :
7672 emacs_cv_struct_exception=yes
7673 else
7674 emacs_cv_struct_exception=no
7675 fi
7676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7679 $as_echo "$emacs_cv_struct_exception" >&6; }
7680 HAVE_EXCEPTION=$emacs_cv_struct_exception
7681 if test $emacs_cv_struct_exception != yes; then
7682
7683 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7684
7685 fi
7686
7687 for ac_header in sys/socket.h
7688 do :
7689 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7690 if test "x$ac_cv_header_sys_socket_h" = xyes; then :
7691 cat >>confdefs.h <<_ACEOF
7692 #define HAVE_SYS_SOCKET_H 1
7693 _ACEOF
7694
7695 fi
7696
7697 done
7698
7699 for ac_header in net/if.h
7700 do :
7701 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7702 #if HAVE_SYS_SOCKET_H
7703 #include <sys/socket.h>
7704 #endif
7705 "
7706 if test "x$ac_cv_header_net_if_h" = xyes; then :
7707 cat >>confdefs.h <<_ACEOF
7708 #define HAVE_NET_IF_H 1
7709 _ACEOF
7710
7711 fi
7712
7713 done
7714
7715
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7717 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7718 if ${ac_cv_struct_tm+:} false; then :
7719 $as_echo_n "(cached) " >&6
7720 else
7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 /* end confdefs.h. */
7723 #include <sys/types.h>
7724 #include <time.h>
7725
7726 int
7727 main ()
7728 {
7729 struct tm tm;
7730 int *p = &tm.tm_sec;
7731 return !p;
7732 ;
7733 return 0;
7734 }
7735 _ACEOF
7736 if ac_fn_c_try_compile "$LINENO"; then :
7737 ac_cv_struct_tm=time.h
7738 else
7739 ac_cv_struct_tm=sys/time.h
7740 fi
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 fi
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7744 $as_echo "$ac_cv_struct_tm" >&6; }
7745 if test $ac_cv_struct_tm = sys/time.h; then
7746
7747 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
7748
7749 fi
7750
7751 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
7752 #include <$ac_cv_struct_tm>
7753
7754 "
7755 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
7756
7757 cat >>confdefs.h <<_ACEOF
7758 #define HAVE_STRUCT_TM_TM_ZONE 1
7759 _ACEOF
7760
7761
7762 fi
7763
7764 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7765
7766 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
7767
7768 else
7769 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
7770 "
7771 if test "x$ac_cv_have_decl_tzname" = xyes; then :
7772 ac_have_decl=1
7773 else
7774 ac_have_decl=0
7775 fi
7776
7777 cat >>confdefs.h <<_ACEOF
7778 #define HAVE_DECL_TZNAME $ac_have_decl
7779 _ACEOF
7780
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7782 $as_echo_n "checking for tzname... " >&6; }
7783 if ${ac_cv_var_tzname+:} false; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 #include <time.h>
7789 #if !HAVE_DECL_TZNAME
7790 extern char *tzname[];
7791 #endif
7792
7793 int
7794 main ()
7795 {
7796 return tzname[0][0];
7797 ;
7798 return 0;
7799 }
7800 _ACEOF
7801 if ac_fn_c_try_link "$LINENO"; then :
7802 ac_cv_var_tzname=yes
7803 else
7804 ac_cv_var_tzname=no
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext \
7807 conftest$ac_exeext conftest.$ac_ext
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7810 $as_echo "$ac_cv_var_tzname" >&6; }
7811 if test $ac_cv_var_tzname = yes; then
7812
7813 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
7814
7815 fi
7816 fi
7817
7818 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
7819 "
7820 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
7821
7822 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
7823
7824 fi
7825
7826 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
7827 #if HAVE_SYS_SOCKET_H
7828 #include <sys/socket.h>
7829 #endif
7830 #if HAVE_NET_IF_H
7831 #include <net/if.h>
7832 #endif
7833 "
7834 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = xyes; then :
7835
7836 cat >>confdefs.h <<_ACEOF
7837 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7838 _ACEOF
7839
7840
7841 fi
7842 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
7843 #if HAVE_SYS_SOCKET_H
7844 #include <sys/socket.h>
7845 #endif
7846 #if HAVE_NET_IF_H
7847 #include <net/if.h>
7848 #endif
7849 "
7850 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
7851
7852 cat >>confdefs.h <<_ACEOF
7853 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
7854 _ACEOF
7855
7856
7857 fi
7858 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
7859 #if HAVE_SYS_SOCKET_H
7860 #include <sys/socket.h>
7861 #endif
7862 #if HAVE_NET_IF_H
7863 #include <net/if.h>
7864 #endif
7865 "
7866 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = xyes; then :
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
7870 _ACEOF
7871
7872
7873 fi
7874 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
7875 #if HAVE_SYS_SOCKET_H
7876 #include <sys/socket.h>
7877 #endif
7878 #if HAVE_NET_IF_H
7879 #include <net/if.h>
7880 #endif
7881 "
7882 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = xyes; then :
7883
7884 cat >>confdefs.h <<_ACEOF
7885 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
7886 _ACEOF
7887
7888
7889 fi
7890 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
7891 #if HAVE_SYS_SOCKET_H
7892 #include <sys/socket.h>
7893 #endif
7894 #if HAVE_NET_IF_H
7895 #include <net/if.h>
7896 #endif
7897 "
7898 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = xyes; then :
7899
7900 cat >>confdefs.h <<_ACEOF
7901 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
7902 _ACEOF
7903
7904
7905 fi
7906
7907
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
7910 $as_echo_n "checking for function prototypes... " >&6; }
7911 if test "$ac_cv_prog_cc_c89" != no; then
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913 $as_echo "yes" >&6; }
7914
7915 $as_echo "#define PROTOTYPES 1" >>confdefs.h
7916
7917
7918 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
7919
7920 else
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7922 $as_echo "no" >&6; }
7923 fi
7924
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
7926 $as_echo_n "checking for working volatile... " >&6; }
7927 if ${ac_cv_c_volatile+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7932
7933 int
7934 main ()
7935 {
7936
7937 volatile int x;
7938 int * volatile y = (int *) 0;
7939 return !x && !y;
7940 ;
7941 return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 ac_cv_c_volatile=yes
7946 else
7947 ac_cv_c_volatile=no
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 fi
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
7952 $as_echo "$ac_cv_c_volatile" >&6; }
7953 if test $ac_cv_c_volatile = no; then
7954
7955 $as_echo "#define volatile /**/" >>confdefs.h
7956
7957 fi
7958
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7960 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
7961 if ${ac_cv_c_const+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966
7967 int
7968 main ()
7969 {
7970 /* FIXME: Include the comments suggested by Paul. */
7971 #ifndef __cplusplus
7972 /* Ultrix mips cc rejects this. */
7973 typedef int charset[2];
7974 const charset cs;
7975 /* SunOS 4.1.1 cc rejects this. */
7976 char const *const *pcpcc;
7977 char **ppc;
7978 /* NEC SVR4.0.2 mips cc rejects this. */
7979 struct point {int x, y;};
7980 static struct point const zero = {0,0};
7981 /* AIX XL C 1.02.0.0 rejects this.
7982 It does not let you subtract one const X* pointer from another in
7983 an arm of an if-expression whose if-part is not a constant
7984 expression */
7985 const char *g = "string";
7986 pcpcc = &g + (g ? g-g : 0);
7987 /* HPUX 7.0 cc rejects these. */
7988 ++pcpcc;
7989 ppc = (char**) pcpcc;
7990 pcpcc = (char const *const *) ppc;
7991 { /* SCO 3.2v4 cc rejects this. */
7992 char *t;
7993 char const *s = 0 ? (char *) 0 : (char const *) 0;
7994
7995 *t++ = 0;
7996 if (s) return 0;
7997 }
7998 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7999 int x[] = {25, 17};
8000 const int *foo = &x[0];
8001 ++foo;
8002 }
8003 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8004 typedef const int *iptr;
8005 iptr p = 0;
8006 ++p;
8007 }
8008 { /* AIX XL C 1.02.0.0 rejects this saying
8009 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8010 struct s { int j; const int *ap[3]; };
8011 struct s *b; b->j = 5;
8012 }
8013 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8014 const int foo = 10;
8015 if (!foo) return 0;
8016 }
8017 return !cs[0] && !zero.x;
8018 #endif
8019
8020 ;
8021 return 0;
8022 }
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"; then :
8025 ac_cv_c_const=yes
8026 else
8027 ac_cv_c_const=no
8028 fi
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 fi
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8032 $as_echo "$ac_cv_c_const" >&6; }
8033 if test $ac_cv_c_const = no; then
8034
8035 $as_echo "#define const /**/" >>confdefs.h
8036
8037 fi
8038
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
8040 $as_echo_n "checking for void * support... " >&6; }
8041 if ${emacs_cv_void_star+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8046
8047 int
8048 main ()
8049 {
8050 void * foo;
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_compile "$LINENO"; then :
8056 emacs_cv_void_star=yes
8057 else
8058 emacs_cv_void_star=no
8059 fi
8060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8061 fi
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
8063 $as_echo "$emacs_cv_void_star" >&6; }
8064 if test $emacs_cv_void_star = yes; then
8065 $as_echo "#define POINTER_TYPE void" >>confdefs.h
8066
8067 else
8068 $as_echo "#define POINTER_TYPE char" >>confdefs.h
8069
8070 fi
8071
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8073 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8074 if ${ac_cv_c_bigendian+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 ac_cv_c_bigendian=unknown
8078 # See if we're dealing with a universal compiler.
8079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8080 /* end confdefs.h. */
8081 #ifndef __APPLE_CC__
8082 not a universal capable compiler
8083 #endif
8084 typedef int dummy;
8085
8086 _ACEOF
8087 if ac_fn_c_try_compile "$LINENO"; then :
8088
8089 # Check for potential -arch flags. It is not universal unless
8090 # there are at least two -arch flags with different values.
8091 ac_arch=
8092 ac_prev=
8093 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8094 if test -n "$ac_prev"; then
8095 case $ac_word in
8096 i?86 | x86_64 | ppc | ppc64)
8097 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8098 ac_arch=$ac_word
8099 else
8100 ac_cv_c_bigendian=universal
8101 break
8102 fi
8103 ;;
8104 esac
8105 ac_prev=
8106 elif test "x$ac_word" = "x-arch"; then
8107 ac_prev=arch
8108 fi
8109 done
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8112 if test $ac_cv_c_bigendian = unknown; then
8113 # See if sys/param.h defines the BYTE_ORDER macro.
8114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 #include <sys/types.h>
8117 #include <sys/param.h>
8118
8119 int
8120 main ()
8121 {
8122 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8123 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8124 && LITTLE_ENDIAN)
8125 bogus endian macros
8126 #endif
8127
8128 ;
8129 return 0;
8130 }
8131 _ACEOF
8132 if ac_fn_c_try_compile "$LINENO"; then :
8133 # It does; now see whether it defined to BIG_ENDIAN or not.
8134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 #include <sys/types.h>
8137 #include <sys/param.h>
8138
8139 int
8140 main ()
8141 {
8142 #if BYTE_ORDER != BIG_ENDIAN
8143 not big endian
8144 #endif
8145
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_compile "$LINENO"; then :
8151 ac_cv_c_bigendian=yes
8152 else
8153 ac_cv_c_bigendian=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 fi
8159 if test $ac_cv_c_bigendian = unknown; then
8160 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 #include <limits.h>
8164
8165 int
8166 main ()
8167 {
8168 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8169 bogus endian macros
8170 #endif
8171
8172 ;
8173 return 0;
8174 }
8175 _ACEOF
8176 if ac_fn_c_try_compile "$LINENO"; then :
8177 # It does; now see whether it defined to _BIG_ENDIAN or not.
8178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8180 #include <limits.h>
8181
8182 int
8183 main ()
8184 {
8185 #ifndef _BIG_ENDIAN
8186 not big endian
8187 #endif
8188
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_compile "$LINENO"; then :
8194 ac_cv_c_bigendian=yes
8195 else
8196 ac_cv_c_bigendian=no
8197 fi
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 fi
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 fi
8202 if test $ac_cv_c_bigendian = unknown; then
8203 # Compile a test program.
8204 if test "$cross_compiling" = yes; then :
8205 # Try to guess by grepping values from an object file.
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8208 short int ascii_mm[] =
8209 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8210 short int ascii_ii[] =
8211 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8212 int use_ascii (int i) {
8213 return ascii_mm[i] + ascii_ii[i];
8214 }
8215 short int ebcdic_ii[] =
8216 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8217 short int ebcdic_mm[] =
8218 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8219 int use_ebcdic (int i) {
8220 return ebcdic_mm[i] + ebcdic_ii[i];
8221 }
8222 extern int foo;
8223
8224 int
8225 main ()
8226 {
8227 return use_ascii (foo) == use_ebcdic (foo);
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_compile "$LINENO"; then :
8233 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8234 ac_cv_c_bigendian=yes
8235 fi
8236 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8237 if test "$ac_cv_c_bigendian" = unknown; then
8238 ac_cv_c_bigendian=no
8239 else
8240 # finding both strings is unlikely to happen, but who knows?
8241 ac_cv_c_bigendian=unknown
8242 fi
8243 fi
8244 fi
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 else
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 $ac_includes_default
8250 int
8251 main ()
8252 {
8253
8254 /* Are we little or big endian? From Harbison&Steele. */
8255 union
8256 {
8257 long int l;
8258 char c[sizeof (long int)];
8259 } u;
8260 u.l = 1;
8261 return u.c[sizeof (long int) - 1] == 1;
8262
8263 ;
8264 return 0;
8265 }
8266 _ACEOF
8267 if ac_fn_c_try_run "$LINENO"; then :
8268 ac_cv_c_bigendian=no
8269 else
8270 ac_cv_c_bigendian=yes
8271 fi
8272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8273 conftest.$ac_objext conftest.beam conftest.$ac_ext
8274 fi
8275
8276 fi
8277 fi
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8279 $as_echo "$ac_cv_c_bigendian" >&6; }
8280 case $ac_cv_c_bigendian in #(
8281 yes)
8282 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8283 ;; #(
8284 no)
8285 ;; #(
8286 universal)
8287
8288 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8289
8290 ;; #(
8291 *)
8292 as_fn_error $? "unknown endianness
8293 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8294 esac
8295
8296
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__ ((__aligned__ (expr)))" >&5
8298 $as_echo_n "checking for __attribute__ ((__aligned__ (expr)))... " >&6; }
8299 if ${emacs_cv_attribute_aligned+:} false; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8303 /* end confdefs.h. */
8304 char __attribute__ ((__aligned__ (1 << 3))) c;
8305 int
8306 main ()
8307 {
8308
8309 ;
8310 return 0;
8311 }
8312 _ACEOF
8313 if ac_fn_c_try_compile "$LINENO"; then :
8314 emacs_cv_attribute_aligned=yes
8315 else
8316 emacs_cv_attribute_aligned=no
8317 fi
8318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8319 fi
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_attribute_aligned" >&5
8321 $as_echo "$emacs_cv_attribute_aligned" >&6; }
8322 if test $emacs_cv_attribute_aligned = yes; then
8323
8324 $as_echo "#define HAVE_ATTRIBUTE_ALIGNED 1" >>confdefs.h
8325
8326 fi
8327
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8329 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8330 set x ${MAKE-make}
8331 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8332 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334 else
8335 cat >conftest.make <<\_ACEOF
8336 SHELL = /bin/sh
8337 all:
8338 @echo '@@@%%%=$(MAKE)=@@@%%%'
8339 _ACEOF
8340 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8341 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8342 *@@@%%%=?*=@@@%%%*)
8343 eval ac_cv_prog_make_${ac_make}_set=yes;;
8344 *)
8345 eval ac_cv_prog_make_${ac_make}_set=no;;
8346 esac
8347 rm -f conftest.make
8348 fi
8349 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8351 $as_echo "yes" >&6; }
8352 SET_MAKE=
8353 else
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8356 SET_MAKE="MAKE=${MAKE-make}"
8357 fi
8358
8359
8360 DEPFLAGS=
8361 MKDEPDIR=":"
8362 deps_frag=deps.mk
8363 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
8365 $as_echo_n "checking whether we are using GNU Make... " >&6; }
8366 HAVE_GNU_MAKE=no
8367 testval=`make --version 2>/dev/null | grep 'GNU Make'`
8368 if test "x$testval" != x; then
8369 HAVE_GNU_MAKE=yes
8370 else
8371 ac_enable_autodepend=no
8372 fi
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
8374 $as_echo "$HAVE_GNU_MAKE" >&6; }
8375 if test $HAVE_GNU_MAKE = yes; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
8377 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
8378 SAVE_CFLAGS="$CFLAGS"
8379 CFLAGS="$CFLAGS -MMD -MF deps.d"
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382
8383 int
8384 main ()
8385 {
8386
8387 ;
8388 return 0;
8389 }
8390 _ACEOF
8391 if ac_fn_c_try_compile "$LINENO"; then :
8392
8393 else
8394 ac_enable_autodepend=no
8395 fi
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 CFLAGS="$SAVE_CFLAGS"
8398 test -f deps.d || ac_enable_autodepend=no
8399 rm -rf deps.d
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
8401 $as_echo "$ac_enable_autodepend" >&6; }
8402 fi
8403 if test $ac_enable_autodepend = yes; then
8404 DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d'
8405 ## In parallel builds, another make might create depdir between
8406 ## the first test and mkdir, so stick another test on the end.
8407 ## Or use mkinstalldirs? mkdir -p is not portable.
8408 MKDEPDIR='test -d ${DEPDIR} || mkdir ${DEPDIR} || test -d ${DEPDIR}'
8409 deps_frag=autodeps.mk
8410 fi
8411 fi
8412 deps_frag=$srcdir/src/$deps_frag
8413
8414
8415
8416
8417
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
8419 $as_echo_n "checking for long file names... " >&6; }
8420 if ${ac_cv_sys_long_file_names+:} false; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 ac_cv_sys_long_file_names=yes
8424 # Test for long file names in all the places we know might matter:
8425 # . the current directory, where building will happen
8426 # $prefix/lib where we will be installing things
8427 # $exec_prefix/lib likewise
8428 # $TMPDIR if set, where it might want to write temporary files
8429 # /tmp where it might want to write temporary files
8430 # /var/tmp likewise
8431 # /usr/tmp likewise
8432 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8433 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8434 # in the usual case where exec_prefix is '${prefix}'.
8435 case $ac_dir in #(
8436 . | /* | ?:[\\/]*) ;; #(
8437 *) continue;;
8438 esac
8439 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8440 ac_xdir=$ac_dir/cf$$
8441 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8442 ac_tf1=$ac_xdir/conftest9012345
8443 ac_tf2=$ac_xdir/conftest9012346
8444 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8445 ac_cv_sys_long_file_names=no
8446 rm -f -r "$ac_xdir" 2>/dev/null
8447 test $ac_cv_sys_long_file_names = no && break
8448 done
8449 fi
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
8451 $as_echo "$ac_cv_sys_long_file_names" >&6; }
8452 if test $ac_cv_sys_long_file_names = yes; then
8453
8454 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
8455
8456 fi
8457
8458
8459 #### Choose a window system.
8460
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8462 $as_echo_n "checking for X... " >&6; }
8463
8464
8465 # Check whether --with-x was given.
8466 if test "${with_x+set}" = set; then :
8467 withval=$with_x;
8468 fi
8469
8470 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8471 if test "x$with_x" = xno; then
8472 # The user explicitly disabled X.
8473 have_x=disabled
8474 else
8475 case $x_includes,$x_libraries in #(
8476 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8477 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 # One or both of the vars are not set, and there is no cached value.
8481 ac_x_includes=no ac_x_libraries=no
8482 rm -f -r conftest.dir
8483 if mkdir conftest.dir; then
8484 cd conftest.dir
8485 cat >Imakefile <<'_ACEOF'
8486 incroot:
8487 @echo incroot='${INCROOT}'
8488 usrlibdir:
8489 @echo usrlibdir='${USRLIBDIR}'
8490 libdir:
8491 @echo libdir='${LIBDIR}'
8492 _ACEOF
8493 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8494 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8495 for ac_var in incroot usrlibdir libdir; do
8496 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8497 done
8498 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8499 for ac_extension in a so sl dylib la dll; do
8500 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8501 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8502 ac_im_usrlibdir=$ac_im_libdir; break
8503 fi
8504 done
8505 # Screen out bogus values from the imake configuration. They are
8506 # bogus both because they are the default anyway, and because
8507 # using them would break gcc on systems where it needs fixed includes.
8508 case $ac_im_incroot in
8509 /usr/include) ac_x_includes= ;;
8510 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8511 esac
8512 case $ac_im_usrlibdir in
8513 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8514 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8515 esac
8516 fi
8517 cd ..
8518 rm -f -r conftest.dir
8519 fi
8520
8521 # Standard set of common directories for X headers.
8522 # Check X11 before X11Rn because it is often a symlink to the current release.
8523 ac_x_header_dirs='
8524 /usr/X11/include
8525 /usr/X11R7/include
8526 /usr/X11R6/include
8527 /usr/X11R5/include
8528 /usr/X11R4/include
8529
8530 /usr/include/X11
8531 /usr/include/X11R7
8532 /usr/include/X11R6
8533 /usr/include/X11R5
8534 /usr/include/X11R4
8535
8536 /usr/local/X11/include
8537 /usr/local/X11R7/include
8538 /usr/local/X11R6/include
8539 /usr/local/X11R5/include
8540 /usr/local/X11R4/include
8541
8542 /usr/local/include/X11
8543 /usr/local/include/X11R7
8544 /usr/local/include/X11R6
8545 /usr/local/include/X11R5
8546 /usr/local/include/X11R4
8547
8548 /usr/X386/include
8549 /usr/x386/include
8550 /usr/XFree86/include/X11
8551
8552 /usr/include
8553 /usr/local/include
8554 /usr/unsupported/include
8555 /usr/athena/include
8556 /usr/local/x11r5/include
8557 /usr/lpp/Xamples/include
8558
8559 /usr/openwin/include
8560 /usr/openwin/share/include'
8561
8562 if test "$ac_x_includes" = no; then
8563 # Guess where to find include files, by looking for Xlib.h.
8564 # First, try using that file with no special directory specified.
8565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8566 /* end confdefs.h. */
8567 #include <X11/Xlib.h>
8568 _ACEOF
8569 if ac_fn_c_try_cpp "$LINENO"; then :
8570 # We can compile using X headers with no special include directory.
8571 ac_x_includes=
8572 else
8573 for ac_dir in $ac_x_header_dirs; do
8574 if test -r "$ac_dir/X11/Xlib.h"; then
8575 ac_x_includes=$ac_dir
8576 break
8577 fi
8578 done
8579 fi
8580 rm -f conftest.err conftest.i conftest.$ac_ext
8581 fi # $ac_x_includes = no
8582
8583 if test "$ac_x_libraries" = no; then
8584 # Check for the libraries.
8585 # See if we find them without any special options.
8586 # Don't add to $LIBS permanently.
8587 ac_save_LIBS=$LIBS
8588 LIBS="-lX11 $LIBS"
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8591 #include <X11/Xlib.h>
8592 int
8593 main ()
8594 {
8595 XrmInitialize ()
8596 ;
8597 return 0;
8598 }
8599 _ACEOF
8600 if ac_fn_c_try_link "$LINENO"; then :
8601 LIBS=$ac_save_LIBS
8602 # We can link X programs with no special library path.
8603 ac_x_libraries=
8604 else
8605 LIBS=$ac_save_LIBS
8606 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8607 do
8608 # Don't even attempt the hair of trying to link an X program!
8609 for ac_extension in a so sl dylib la dll; do
8610 if test -r "$ac_dir/libX11.$ac_extension"; then
8611 ac_x_libraries=$ac_dir
8612 break 2
8613 fi
8614 done
8615 done
8616 fi
8617 rm -f core conftest.err conftest.$ac_objext \
8618 conftest$ac_exeext conftest.$ac_ext
8619 fi # $ac_x_libraries = no
8620
8621 case $ac_x_includes,$ac_x_libraries in #(
8622 no,* | *,no | *\'*)
8623 # Didn't find X, or a directory has "'" in its name.
8624 ac_cv_have_x="have_x=no";; #(
8625 *)
8626 # Record where we found X for the cache.
8627 ac_cv_have_x="have_x=yes\
8628 ac_x_includes='$ac_x_includes'\
8629 ac_x_libraries='$ac_x_libraries'"
8630 esac
8631 fi
8632 ;; #(
8633 *) have_x=yes;;
8634 esac
8635 eval "$ac_cv_have_x"
8636 fi # $with_x != no
8637
8638 if test "$have_x" != yes; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8640 $as_echo "$have_x" >&6; }
8641 no_x=yes
8642 else
8643 # If each of the values was on the command line, it overrides each guess.
8644 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8645 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8646 # Update the cache value to reflect the command line values.
8647 ac_cv_have_x="have_x=yes\
8648 ac_x_includes='$x_includes'\
8649 ac_x_libraries='$x_libraries'"
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8651 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8652 fi
8653
8654 if test "$no_x" = yes; then
8655 window_system=none
8656 else
8657 window_system=x11
8658 fi
8659
8660 ## Workaround for bug in autoconf <= 2.62.
8661 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
8662 ## No need to do anything special for these standard directories.
8663 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
8664
8665 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
8666
8667 fi
8668
8669 LD_SWITCH_X_SITE_AUX=
8670 LD_SWITCH_X_SITE_AUX_RPATH=
8671 if test "${x_libraries}" != NONE; then
8672 if test -n "${x_libraries}"; then
8673 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
8674 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
8675 LD_SWITCH_X_SITE_AUX_RPATH=`echo ${LD_SWITCH_X_SITE_AUX} | sed -e 's/-R/-Wl,-rpath,/'`
8676 fi
8677 x_default_search_path=""
8678 x_search_path=${x_libraries}
8679 if test -z "${x_search_path}"; then
8680 x_search_path=/usr/lib
8681 fi
8682 for x_library in `echo ${x_search_path}: | \
8683 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
8684 x_search_path="\
8685 ${x_library}/X11/%L/%T/%N%C%S:\
8686 ${x_library}/X11/%l/%T/%N%C%S:\
8687 ${x_library}/X11/%T/%N%C%S:\
8688 ${x_library}/X11/%L/%T/%N%S:\
8689 ${x_library}/X11/%l/%T/%N%S:\
8690 ${x_library}/X11/%T/%N%S"
8691 if test x"${x_default_search_path}" = x; then
8692 x_default_search_path=${x_search_path}
8693 else
8694 x_default_search_path="${x_search_path}:${x_default_search_path}"
8695 fi
8696 done
8697 fi
8698
8699
8700
8701 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
8702 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
8703 fi
8704
8705 if test x"${x_includes}" = x; then
8706 bitmapdir=/usr/include/X11/bitmaps
8707 else
8708 # accumulate include directories that have X11 bitmap subdirectories
8709 bmd_acc="dummyval"
8710 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
8711 if test -d "${bmd}/X11/bitmaps"; then
8712 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
8713 fi
8714 if test -d "${bmd}/bitmaps"; then
8715 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
8716 fi
8717 done
8718 if test ${bmd_acc} != "dummyval"; then
8719 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
8720 fi
8721 fi
8722
8723 HAVE_NS=no
8724 NS_IMPL_COCOA=no
8725 NS_IMPL_GNUSTEP=no
8726 tmp_CPPFLAGS="$CPPFLAGS"
8727 tmp_CFLAGS="$CFLAGS"
8728 CPPFLAGS="$CPPFLAGS -x objective-c"
8729 CFLAGS="$CFLAGS -x objective-c"
8730 TEMACS_LDFLAGS2="\${LDFLAGS}"
8731 if test "${with_ns}" != no; then
8732 if test "${opsys}" = darwin; then
8733 NS_IMPL_COCOA=yes
8734 ns_appdir=`pwd`/nextstep/Emacs.app
8735 ns_appbindir=${ns_appdir}/Contents/MacOS/
8736 ns_appresdir=${ns_appdir}/Contents/Resources
8737 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
8738 elif test -f $GNUSTEP_CONFIG_FILE; then
8739 NS_IMPL_GNUSTEP=yes
8740 ns_appdir=`pwd`/nextstep/Emacs.app
8741 ns_appbindir=${ns_appdir}/
8742 ns_appresdir=${ns_appdir}/Resources
8743 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
8744 GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)"
8745 GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)"
8746 GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)"
8747 GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)"
8748 test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \
8749 GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}"
8750 test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \
8751 GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}"
8752 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8753 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}"
8754 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}"
8755 LIB_STANDARD=
8756 START_FILES=
8757 TEMACS_LDFLAGS2=
8758 fi
8759 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
8760 if test "x$ac_cv_header_AppKit_AppKit_h" = xyes; then :
8761 HAVE_NS=yes
8762 else
8763 as_fn_error $? "\`--with-ns' was specified, but the include
8764 files are missing or cannot be compiled." "$LINENO" 5
8765 fi
8766
8767
8768 NS_HAVE_NSINTEGER=yes
8769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8770 /* end confdefs.h. */
8771 #include <Foundation/NSObjCRuntime.h>
8772 int
8773 main ()
8774 {
8775 NSInteger i;
8776 ;
8777 return 0;
8778 }
8779 _ACEOF
8780 if ac_fn_c_try_compile "$LINENO"; then :
8781 ns_have_nsinteger=yes
8782 else
8783 ns_have_nsinteger=no
8784 fi
8785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8786 if test $ns_have_nsinteger = no; then
8787 NS_HAVE_NSINTEGER=no
8788 fi
8789 fi
8790
8791
8792 ns_frag=/dev/null
8793 NS_OBJ=
8794 NS_SUPPORT=
8795 if test "${HAVE_NS}" = yes; then
8796 window_system=nextstep
8797 with_xft=no
8798 # set up packaging dirs
8799 exec_prefix=${ns_appbindir}
8800 libexecdir=${ns_appbindir}/libexec
8801 if test "${EN_NS_SELF_CONTAINED}" = yes; then
8802 prefix=${ns_appresdir}
8803 fi
8804 ns_frag=$srcdir/src/ns.mk
8805 NS_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o fontset.o fringe.o image.o"
8806 NS_SUPPORT="\${lispsource}/emacs-lisp/easymenu.elc \${lispsource}/term/ns-win.elc"
8807 fi
8808 CFLAGS="$tmp_CFLAGS"
8809 CPPFLAGS="$tmp_CPPFLAGS"
8810
8811
8812
8813
8814
8815 case "${window_system}" in
8816 x11 )
8817 HAVE_X_WINDOWS=yes
8818 HAVE_X11=yes
8819 case "${with_x_toolkit}" in
8820 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
8821 motif ) USE_X_TOOLKIT=MOTIF ;;
8822 gtk ) with_gtk=yes
8823 USE_X_TOOLKIT=none ;;
8824 gtk3 ) with_gtk3=yes
8825 USE_X_TOOLKIT=none ;;
8826 no ) USE_X_TOOLKIT=none ;;
8827 * ) USE_X_TOOLKIT=maybe ;;
8828 esac
8829 ;;
8830 nextstep | none )
8831 HAVE_X_WINDOWS=no
8832 HAVE_X11=no
8833 USE_X_TOOLKIT=none
8834 ;;
8835 esac
8836
8837 if test "$window_system" = none && test "X$with_x" != "Xno"; then
8838 # Extract the first word of "X", so it can be a program name with args.
8839 set dummy X; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_prog_HAVE_XSERVER+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 if test -n "$HAVE_XSERVER"; then
8846 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
8847 else
8848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 for as_dir in $PATH
8850 do
8851 IFS=$as_save_IFS
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8855 ac_cv_prog_HAVE_XSERVER="true"
8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857 break 2
8858 fi
8859 done
8860 done
8861 IFS=$as_save_IFS
8862
8863 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
8864 fi
8865 fi
8866 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
8867 if test -n "$HAVE_XSERVER"; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
8869 $as_echo "$HAVE_XSERVER" >&6; }
8870 else
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872 $as_echo "no" >&6; }
8873 fi
8874
8875
8876 if test "$HAVE_XSERVER" = true ||
8877 test -n "$DISPLAY" ||
8878 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
8879 as_fn_error $? "You seem to be running X, but no X development libraries
8880 were found. You should install the relevant development files for X
8881 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
8882 sure you have development files for image handling, i.e.
8883 tiff, gif, jpeg, png and xpm.
8884 If you are sure you want Emacs compiled without X window support, pass
8885 --without-x
8886 to configure." "$LINENO" 5
8887 fi
8888 fi
8889
8890 ### If we're using X11, we should use the X menu package.
8891 HAVE_MENUS=no
8892 case ${HAVE_X11} in
8893 yes ) HAVE_MENUS=yes ;;
8894 esac
8895
8896 # Do the opsystem or machine files prohibit the use of the GNU malloc?
8897 # Assume not, until told otherwise.
8898 GNU_MALLOC=yes
8899 doug_lea_malloc=yes
8900 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
8901 if test "x$ac_cv_func_malloc_get_state" = xyes; then :
8902
8903 else
8904 doug_lea_malloc=no
8905 fi
8906
8907 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
8908 if test "x$ac_cv_func_malloc_set_state" = xyes; then :
8909
8910 else
8911 doug_lea_malloc=no
8912 fi
8913
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
8915 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
8916 if ${emacs_cv_var___after_morecore_hook+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 extern void (* __after_morecore_hook)();
8922 int
8923 main ()
8924 {
8925 __after_morecore_hook = 0
8926 ;
8927 return 0;
8928 }
8929 _ACEOF
8930 if ac_fn_c_try_link "$LINENO"; then :
8931 emacs_cv_var___after_morecore_hook=yes
8932 else
8933 emacs_cv_var___after_morecore_hook=no
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext \
8936 conftest$ac_exeext conftest.$ac_ext
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
8939 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
8940 if test $emacs_cv_var___after_morecore_hook = no; then
8941 doug_lea_malloc=no
8942 fi
8943
8944
8945 system_malloc=no
8946 case "$opsys" in
8947 ## darwin ld insists on the use of malloc routines in the System framework.
8948 darwin|sol2-10) system_malloc=yes ;;
8949 esac
8950
8951 if test "${system_malloc}" = "yes"; then
8952
8953 $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h
8954
8955 GNU_MALLOC=no
8956 GNU_MALLOC_reason="
8957 (The GNU allocators don't work with this system configuration.)"
8958 GMALLOC_OBJ=
8959 VMLIMIT_OBJ=
8960 else
8961 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
8962 VMLIMIT_OBJ=vm-limit.o
8963 fi
8964
8965
8966
8967 if test "$doug_lea_malloc" = "yes" ; then
8968 if test "$GNU_MALLOC" = yes ; then
8969 GNU_MALLOC_reason="
8970 (Using Doug Lea's new malloc from the GNU C Library.)"
8971 fi
8972
8973 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
8974
8975
8976 ## Use mmap directly for allocating larger buffers.
8977 ## FIXME this comes from src/s/{gnu,gnu-linux}.h:
8978 ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif
8979 ## Does the AC_FUNC_MMAP test below make this check unecessary?
8980 case "$opsys" in
8981 gnu*) REL_ALLOC=no ;;
8982 esac
8983 fi
8984
8985 if test x"${REL_ALLOC}" = x; then
8986 REL_ALLOC=${GNU_MALLOC}
8987 fi
8988
8989 use_mmap_for_buffers=no
8990 case "$opsys" in
8991 freebsd|irix6-5) use_mmap_for_buffers=yes ;;
8992 esac
8993
8994
8995
8996
8997 for ac_header in $ac_header_list
8998 do :
8999 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9000 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9001 "
9002 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9003 cat >>confdefs.h <<_ACEOF
9004 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9005 _ACEOF
9006
9007 fi
9008
9009 done
9010
9011
9012
9013
9014
9015
9016
9017
9018 for ac_func in getpagesize
9019 do :
9020 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
9021 if test "x$ac_cv_func_getpagesize" = xyes; then :
9022 cat >>confdefs.h <<_ACEOF
9023 #define HAVE_GETPAGESIZE 1
9024 _ACEOF
9025
9026 fi
9027 done
9028
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
9030 $as_echo_n "checking for working mmap... " >&6; }
9031 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 if test "$cross_compiling" = yes; then :
9035 ac_cv_func_mmap_fixed_mapped=no
9036 else
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 $ac_includes_default
9040 /* malloc might have been renamed as rpl_malloc. */
9041 #undef malloc
9042
9043 /* Thanks to Mike Haertel and Jim Avera for this test.
9044 Here is a matrix of mmap possibilities:
9045 mmap private not fixed
9046 mmap private fixed at somewhere currently unmapped
9047 mmap private fixed at somewhere already mapped
9048 mmap shared not fixed
9049 mmap shared fixed at somewhere currently unmapped
9050 mmap shared fixed at somewhere already mapped
9051 For private mappings, we should verify that changes cannot be read()
9052 back from the file, nor mmap's back from the file at a different
9053 address. (There have been systems where private was not correctly
9054 implemented like the infamous i386 svr4.0, and systems where the
9055 VM page cache was not coherent with the file system buffer cache
9056 like early versions of FreeBSD and possibly contemporary NetBSD.)
9057 For shared mappings, we should conversely verify that changes get
9058 propagated back to all the places they're supposed to be.
9059
9060 Grep wants private fixed already mapped.
9061 The main things grep needs to know about mmap are:
9062 * does it exist and is it safe to write into the mmap'd area
9063 * how to use it (BSD variants) */
9064
9065 #include <fcntl.h>
9066 #include <sys/mman.h>
9067
9068 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9069 char *malloc ();
9070 #endif
9071
9072 /* This mess was copied from the GNU getpagesize.h. */
9073 #ifndef HAVE_GETPAGESIZE
9074 # ifdef _SC_PAGESIZE
9075 # define getpagesize() sysconf(_SC_PAGESIZE)
9076 # else /* no _SC_PAGESIZE */
9077 # ifdef HAVE_SYS_PARAM_H
9078 # include <sys/param.h>
9079 # ifdef EXEC_PAGESIZE
9080 # define getpagesize() EXEC_PAGESIZE
9081 # else /* no EXEC_PAGESIZE */
9082 # ifdef NBPG
9083 # define getpagesize() NBPG * CLSIZE
9084 # ifndef CLSIZE
9085 # define CLSIZE 1
9086 # endif /* no CLSIZE */
9087 # else /* no NBPG */
9088 # ifdef NBPC
9089 # define getpagesize() NBPC
9090 # else /* no NBPC */
9091 # ifdef PAGESIZE
9092 # define getpagesize() PAGESIZE
9093 # endif /* PAGESIZE */
9094 # endif /* no NBPC */
9095 # endif /* no NBPG */
9096 # endif /* no EXEC_PAGESIZE */
9097 # else /* no HAVE_SYS_PARAM_H */
9098 # define getpagesize() 8192 /* punt totally */
9099 # endif /* no HAVE_SYS_PARAM_H */
9100 # endif /* no _SC_PAGESIZE */
9101
9102 #endif /* no HAVE_GETPAGESIZE */
9103
9104 int
9105 main ()
9106 {
9107 char *data, *data2, *data3;
9108 const char *cdata2;
9109 int i, pagesize;
9110 int fd, fd2;
9111
9112 pagesize = getpagesize ();
9113
9114 /* First, make a file with some known garbage in it. */
9115 data = (char *) malloc (pagesize);
9116 if (!data)
9117 return 1;
9118 for (i = 0; i < pagesize; ++i)
9119 *(data + i) = rand ();
9120 umask (0);
9121 fd = creat ("conftest.mmap", 0600);
9122 if (fd < 0)
9123 return 2;
9124 if (write (fd, data, pagesize) != pagesize)
9125 return 3;
9126 close (fd);
9127
9128 /* Next, check that the tail of a page is zero-filled. File must have
9129 non-zero length, otherwise we risk SIGBUS for entire page. */
9130 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
9131 if (fd2 < 0)
9132 return 4;
9133 cdata2 = "";
9134 if (write (fd2, cdata2, 1) != 1)
9135 return 5;
9136 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
9137 if (data2 == MAP_FAILED)
9138 return 6;
9139 for (i = 0; i < pagesize; ++i)
9140 if (*(data2 + i))
9141 return 7;
9142 close (fd2);
9143 if (munmap (data2, pagesize))
9144 return 8;
9145
9146 /* Next, try to mmap the file at a fixed address which already has
9147 something else allocated at it. If we can, also make sure that
9148 we see the same garbage. */
9149 fd = open ("conftest.mmap", O_RDWR);
9150 if (fd < 0)
9151 return 9;
9152 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9153 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9154 return 10;
9155 for (i = 0; i < pagesize; ++i)
9156 if (*(data + i) != *(data2 + i))
9157 return 11;
9158
9159 /* Finally, make sure that changes to the mapped area do not
9160 percolate back to the file as seen by read(). (This is a bug on
9161 some variants of i386 svr4.0.) */
9162 for (i = 0; i < pagesize; ++i)
9163 *(data2 + i) = *(data2 + i) + 1;
9164 data3 = (char *) malloc (pagesize);
9165 if (!data3)
9166 return 12;
9167 if (read (fd, data3, pagesize) != pagesize)
9168 return 13;
9169 for (i = 0; i < pagesize; ++i)
9170 if (*(data + i) != *(data3 + i))
9171 return 14;
9172 close (fd);
9173 return 0;
9174 }
9175 _ACEOF
9176 if ac_fn_c_try_run "$LINENO"; then :
9177 ac_cv_func_mmap_fixed_mapped=yes
9178 else
9179 ac_cv_func_mmap_fixed_mapped=no
9180 fi
9181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9182 conftest.$ac_objext conftest.beam conftest.$ac_ext
9183 fi
9184
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
9187 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
9188 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9189
9190 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
9191
9192 fi
9193 rm -f conftest.mmap conftest.txt
9194
9195 if test $use_mmap_for_buffers = yes; then
9196
9197 $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h
9198
9199 REL_ALLOC=no
9200 fi
9201
9202 LIBS="$LIBS_SYSTEM $LIBS"
9203
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
9205 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
9206 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 ac_check_lib_save_LIBS=$LIBS
9210 LIBS="-ldnet $LIBS"
9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213
9214 /* Override any GCC internal prototype to avoid an error.
9215 Use char because int might match the return type of a GCC
9216 builtin and then its argument prototype would still apply. */
9217 #ifdef __cplusplus
9218 extern "C"
9219 #endif
9220 char dnet_ntoa ();
9221 int
9222 main ()
9223 {
9224 return dnet_ntoa ();
9225 ;
9226 return 0;
9227 }
9228 _ACEOF
9229 if ac_fn_c_try_link "$LINENO"; then :
9230 ac_cv_lib_dnet_dnet_ntoa=yes
9231 else
9232 ac_cv_lib_dnet_dnet_ntoa=no
9233 fi
9234 rm -f core conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 LIBS=$ac_check_lib_save_LIBS
9237 fi
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9239 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9240 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
9241 cat >>confdefs.h <<_ACEOF
9242 #define HAVE_LIBDNET 1
9243 _ACEOF
9244
9245 LIBS="-ldnet $LIBS"
9246
9247 fi
9248
9249
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
9251 $as_echo_n "checking for main in -lXbsd... " >&6; }
9252 if ${ac_cv_lib_Xbsd_main+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lXbsd $LIBS"
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259
9260
9261 int
9262 main ()
9263 {
9264 return main ();
9265 ;
9266 return 0;
9267 }
9268 _ACEOF
9269 if ac_fn_c_try_link "$LINENO"; then :
9270 ac_cv_lib_Xbsd_main=yes
9271 else
9272 ac_cv_lib_Xbsd_main=no
9273 fi
9274 rm -f core conftest.err conftest.$ac_objext \
9275 conftest$ac_exeext conftest.$ac_ext
9276 LIBS=$ac_check_lib_save_LIBS
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
9279 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
9280 if test "x$ac_cv_lib_Xbsd_main" = xyes; then :
9281 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
9282 fi
9283
9284
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
9286 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
9287 if ${ac_cv_lib_pthreads_cma_open+:} false; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 ac_check_lib_save_LIBS=$LIBS
9291 LIBS="-lpthreads $LIBS"
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294
9295 /* Override any GCC internal prototype to avoid an error.
9296 Use char because int might match the return type of a GCC
9297 builtin and then its argument prototype would still apply. */
9298 #ifdef __cplusplus
9299 extern "C"
9300 #endif
9301 char cma_open ();
9302 int
9303 main ()
9304 {
9305 return cma_open ();
9306 ;
9307 return 0;
9308 }
9309 _ACEOF
9310 if ac_fn_c_try_link "$LINENO"; then :
9311 ac_cv_lib_pthreads_cma_open=yes
9312 else
9313 ac_cv_lib_pthreads_cma_open=no
9314 fi
9315 rm -f core conftest.err conftest.$ac_objext \
9316 conftest$ac_exeext conftest.$ac_ext
9317 LIBS=$ac_check_lib_save_LIBS
9318 fi
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
9320 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
9321 if test "x$ac_cv_lib_pthreads_cma_open" = xyes; then :
9322 cat >>confdefs.h <<_ACEOF
9323 #define HAVE_LIBPTHREADS 1
9324 _ACEOF
9325
9326 LIBS="-lpthreads $LIBS"
9327
9328 fi
9329
9330
9331 ## Note: when using cpp in s/aix4.2.h, this definition depended on
9332 ## HAVE_LIBPTHREADS. That was not defined earlier in configure when
9333 ## the system file was sourced. Hence the value of LIBS_SYSTEM
9334 ## added to LIBS in configure would never contain the pthreads part,
9335 ## but the value used in Makefiles might. FIXME?
9336 ##
9337 ## -lpthreads seems to be necessary for Xlib in X11R6, and should
9338 ## be harmless on older versions of X where it happens to exist.
9339 test "$opsys" = "aix4-2" && \
9340 test $ac_cv_lib_pthreads_cma_open = yes && \
9341 LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads"
9342
9343
9344 case ${host_os} in
9345 aix*)
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
9347 $as_echo_n "checking for -bbigtoc option... " >&6; }
9348 if ${gdb_cv_bigtoc+:} false; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351
9352 case $GCC in
9353 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
9354 *) gdb_cv_bigtoc=-bbigtoc ;;
9355 esac
9356
9357 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h. */
9360
9361 int
9362 main ()
9363 {
9364 int i;
9365 ;
9366 return 0;
9367 }
9368 _ACEOF
9369 if ac_fn_c_try_link "$LINENO"; then :
9370
9371 else
9372 gdb_cv_bigtoc=
9373 fi
9374 rm -f core conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
9376
9377 fi
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
9379 $as_echo "$gdb_cv_bigtoc" >&6; }
9380 ;;
9381 esac
9382
9383 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
9384 # used for the tests that follow. We set them back to REAL_CFLAGS and
9385 # REAL_CPPFLAGS later on.
9386
9387 REAL_CFLAGS="$CFLAGS"
9388 REAL_CPPFLAGS="$CPPFLAGS"
9389
9390 if test "${HAVE_X11}" = "yes"; then
9391 DEFS="$C_SWITCH_X_SITE $DEFS"
9392 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
9393 LIBS="-lX11 $LIBS"
9394 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
9395 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
9396
9397 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
9398 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
9399 # but it's more convenient here to set LD_RUN_PATH
9400 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
9401 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
9402 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
9403 export LD_RUN_PATH
9404 fi
9405
9406 if test "${opsys}" = "gnu-linux"; then
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
9408 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9411
9412 int
9413 main ()
9414 {
9415 XOpenDisplay ("foo");
9416 ;
9417 return 0;
9418 }
9419 _ACEOF
9420 if ac_fn_c_try_link "$LINENO"; then :
9421 xlinux_first_failure=no
9422 else
9423 xlinux_first_failure=yes
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
9427 if test "${xlinux_first_failure}" = "yes"; then
9428 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
9429 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
9430 OLD_CPPFLAGS="$CPPFLAGS"
9431 OLD_LIBS="$LIBS"
9432 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
9433 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
9434 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
9435 LIBS="$LIBS -b i486-linuxaout"
9436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9437 /* end confdefs.h. */
9438
9439 int
9440 main ()
9441 {
9442 XOpenDisplay ("foo");
9443 ;
9444 return 0;
9445 }
9446 _ACEOF
9447 if ac_fn_c_try_link "$LINENO"; then :
9448 xlinux_second_failure=no
9449 else
9450 xlinux_second_failure=yes
9451 fi
9452 rm -f core conftest.err conftest.$ac_objext \
9453 conftest$ac_exeext conftest.$ac_ext
9454 if test "${xlinux_second_failure}" = "yes"; then
9455 # If we get the same failure with -b, there is no use adding -b.
9456 # So take it out. This plays safe.
9457 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
9458 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
9459 CPPFLAGS="$OLD_CPPFLAGS"
9460 LIBS="$OLD_LIBS"
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462 $as_echo "no" >&6; }
9463 else
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9465 $as_echo "yes" >&6; }
9466 fi
9467 else
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 $as_echo "no" >&6; }
9470 fi
9471 fi
9472
9473 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
9474 # header files included from there.
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
9476 $as_echo_n "checking for Xkb... " >&6; }
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 #include <X11/Xlib.h>
9480 #include <X11/XKBlib.h>
9481 int
9482 main ()
9483 {
9484 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
9485 ;
9486 return 0;
9487 }
9488 _ACEOF
9489 if ac_fn_c_try_link "$LINENO"; then :
9490 emacs_xkb=yes
9491 else
9492 emacs_xkb=no
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
9497 $as_echo "$emacs_xkb" >&6; }
9498 if test $emacs_xkb = yes; then
9499
9500 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
9501
9502 fi
9503
9504 for ac_func in XrmSetDatabase XScreenResourceString \
9505 XScreenNumberOfScreen XSetWMProtocols
9506 do :
9507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9509 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9510 cat >>confdefs.h <<_ACEOF
9511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9512 _ACEOF
9513
9514 fi
9515 done
9516
9517 fi
9518
9519 if test "${window_system}" = "x11"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
9521 $as_echo_n "checking X11 version 6... " >&6; }
9522 if ${emacs_cv_x11_version_6+:} false; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9526 /* end confdefs.h. */
9527 #include <X11/Xlib.h>
9528 int
9529 main ()
9530 {
9531 #if XlibSpecificationRelease < 6
9532 fail;
9533 #endif
9534
9535 ;
9536 return 0;
9537 }
9538 _ACEOF
9539 if ac_fn_c_try_link "$LINENO"; then :
9540 emacs_cv_x11_version_6=yes
9541 else
9542 emacs_cv_x11_version_6=no
9543 fi
9544 rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
9546 fi
9547
9548 if test $emacs_cv_x11_version_6 = yes; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
9550 $as_echo "6 or newer" >&6; }
9551
9552 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
9553
9554
9555 $as_echo "#define HAVE_X_I18N 1" >>confdefs.h
9556
9557 ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style
9558 ## XIM support.
9559 case "$opsys" in
9560 sol2-*) : ;;
9561 *)
9562 $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h
9563
9564 ;;
9565 esac
9566 else
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
9568 $as_echo "before 6" >&6; }
9569 fi
9570 fi
9571
9572
9573 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
9574 HAVE_RSVG=no
9575 if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
9576 if test "${with_rsvg}" != "no"; then
9577 RSVG_REQUIRED=2.11.0
9578 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
9579
9580
9581 succeeded=no
9582
9583 # Extract the first word of "pkg-config", so it can be a program name with args.
9584 set dummy pkg-config; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 case $PKG_CONFIG in
9591 [\\/]* | ?:[\\/]*)
9592 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9593 ;;
9594 *)
9595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9597 do
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9602 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 break 2
9605 fi
9606 done
9607 done
9608 IFS=$as_save_IFS
9609
9610 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9611 ;;
9612 esac
9613 fi
9614 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9615 if test -n "$PKG_CONFIG"; then
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9617 $as_echo "$PKG_CONFIG" >&6; }
9618 else
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620 $as_echo "no" >&6; }
9621 fi
9622
9623
9624
9625 if test "$PKG_CONFIG" = "no" ; then
9626 :
9627 else
9628 PKG_CONFIG_MIN_VERSION=0.9.0
9629 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
9631 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
9632
9633 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9635 $as_echo "yes" >&6; }
9636 succeeded=yes
9637
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
9639 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
9640 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
9642 $as_echo "$RSVG_CFLAGS" >&6; }
9643
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
9645 $as_echo_n "checking RSVG_LIBS... " >&6; }
9646 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
9648 $as_echo "$RSVG_LIBS" >&6; }
9649 else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9651 $as_echo "no" >&6; }
9652 RSVG_CFLAGS=""
9653 RSVG_LIBS=""
9654 ## If we have a custom action on failure, don't print errors, but
9655 ## do set a variable so people can do so.
9656 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
9657
9658 fi
9659
9660
9661
9662 else
9663 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9664 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9665 fi
9666 fi
9667
9668 if test $succeeded = yes; then
9669 HAVE_RSVG=yes
9670 else
9671 :
9672 fi
9673
9674
9675
9676
9677 if test $HAVE_RSVG = yes; then
9678
9679 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
9680
9681 CFLAGS="$CFLAGS $RSVG_CFLAGS"
9682 LIBS="$RSVG_LIBS $LIBS"
9683 fi
9684 fi
9685 fi
9686
9687 HAVE_IMAGEMAGICK=no
9688 if test "${HAVE_X11}" = "yes"; then
9689 if test "${with_imagemagick}" != "no"; then
9690 IMAGEMAGICK_MODULE="Wand"
9691
9692 succeeded=no
9693
9694 # Extract the first word of "pkg-config", so it can be a program name with args.
9695 set dummy pkg-config; ac_word=$2
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9697 $as_echo_n "checking for $ac_word... " >&6; }
9698 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9699 $as_echo_n "(cached) " >&6
9700 else
9701 case $PKG_CONFIG in
9702 [\\/]* | ?:[\\/]*)
9703 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9704 ;;
9705 *)
9706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9707 for as_dir in $PATH
9708 do
9709 IFS=$as_save_IFS
9710 test -z "$as_dir" && as_dir=.
9711 for ac_exec_ext in '' $ac_executable_extensions; do
9712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9713 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9715 break 2
9716 fi
9717 done
9718 done
9719 IFS=$as_save_IFS
9720
9721 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9722 ;;
9723 esac
9724 fi
9725 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9726 if test -n "$PKG_CONFIG"; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9728 $as_echo "$PKG_CONFIG" >&6; }
9729 else
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9731 $as_echo "no" >&6; }
9732 fi
9733
9734
9735
9736 if test "$PKG_CONFIG" = "no" ; then
9737 :
9738 else
9739 PKG_CONFIG_MIN_VERSION=0.9.0
9740 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5
9742 $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; }
9743
9744 if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9746 $as_echo "yes" >&6; }
9747 succeeded=yes
9748
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_CFLAGS" >&5
9750 $as_echo_n "checking IMAGEMAGICK_CFLAGS... " >&6; }
9751 IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_CFLAGS" >&5
9753 $as_echo "$IMAGEMAGICK_CFLAGS" >&6; }
9754
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking IMAGEMAGICK_LIBS" >&5
9756 $as_echo_n "checking IMAGEMAGICK_LIBS... " >&6; }
9757 IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE"|sed -e 's,///*,/,g'`
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMAGEMAGICK_LIBS" >&5
9759 $as_echo "$IMAGEMAGICK_LIBS" >&6; }
9760 else
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762 $as_echo "no" >&6; }
9763 IMAGEMAGICK_CFLAGS=""
9764 IMAGEMAGICK_LIBS=""
9765 ## If we have a custom action on failure, don't print errors, but
9766 ## do set a variable so people can do so.
9767 IMAGEMAGICK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$IMAGEMAGICK_MODULE"`
9768
9769 fi
9770
9771
9772
9773 else
9774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9776 fi
9777 fi
9778
9779 if test $succeeded = yes; then
9780 HAVE_IMAGEMAGICK=yes
9781 else
9782 :
9783 fi
9784
9785
9786
9787
9788 if test $HAVE_IMAGEMAGICK = yes; then
9789
9790 $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h
9791
9792 CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS"
9793 LIBS="$IMAGEMAGICK_LIBS $LIBS"
9794 for ac_func in MagickExportImagePixels
9795 do :
9796 ac_fn_c_check_func "$LINENO" "MagickExportImagePixels" "ac_cv_func_MagickExportImagePixels"
9797 if test "x$ac_cv_func_MagickExportImagePixels" = xyes; then :
9798 cat >>confdefs.h <<_ACEOF
9799 #define HAVE_MAGICKEXPORTIMAGEPIXELS 1
9800 _ACEOF
9801
9802 fi
9803 done
9804
9805 fi
9806 fi
9807 fi
9808
9809
9810 HAVE_GTK=no
9811 if test "${with_gtk3}" = "yes"; then
9812 GLIB_REQUIRED=2.6
9813 GTK_REQUIRED=2.90
9814 GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9815
9816
9817 succeeded=no
9818
9819 # Extract the first word of "pkg-config", so it can be a program name with args.
9820 set dummy pkg-config; ac_word=$2
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9822 $as_echo_n "checking for $ac_word... " >&6; }
9823 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 case $PKG_CONFIG in
9827 [\\/]* | ?:[\\/]*)
9828 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9829 ;;
9830 *)
9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832 for as_dir in $PATH
9833 do
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
9836 for ac_exec_ext in '' $ac_executable_extensions; do
9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9838 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9840 break 2
9841 fi
9842 done
9843 done
9844 IFS=$as_save_IFS
9845
9846 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9847 ;;
9848 esac
9849 fi
9850 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9851 if test -n "$PKG_CONFIG"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9853 $as_echo "$PKG_CONFIG" >&6; }
9854 else
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9857 fi
9858
9859
9860
9861 if test "$PKG_CONFIG" = "no" ; then
9862 pkg_check_gtk=no
9863 else
9864 PKG_CONFIG_MIN_VERSION=0.9.0
9865 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9867 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9868
9869 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9871 $as_echo "yes" >&6; }
9872 succeeded=yes
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9875 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9876 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9878 $as_echo "$GTK_CFLAGS" >&6; }
9879
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9881 $as_echo_n "checking GTK_LIBS... " >&6; }
9882 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9884 $as_echo "$GTK_LIBS" >&6; }
9885 else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9888 GTK_CFLAGS=""
9889 GTK_LIBS=""
9890 ## If we have a custom action on failure, don't print errors, but
9891 ## do set a variable so people can do so.
9892 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9893
9894 fi
9895
9896
9897
9898 else
9899 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9900 echo "*** See http://www.freedesktop.org/software/pkgconfig"
9901 fi
9902 fi
9903
9904 if test $succeeded = yes; then
9905 pkg_check_gtk=yes
9906 else
9907 pkg_check_gtk=no
9908 fi
9909
9910 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
9911 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
9912 fi
9913 fi
9914
9915 if test "$pkg_check_gtk" != "yes"; then
9916 HAVE_GTK=no
9917 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
9918 GLIB_REQUIRED=2.6
9919 GTK_REQUIRED=2.6
9920 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
9921
9922
9923 succeeded=no
9924
9925 # Extract the first word of "pkg-config", so it can be a program name with args.
9926 set dummy pkg-config; ac_word=$2
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9928 $as_echo_n "checking for $ac_word... " >&6; }
9929 if ${ac_cv_path_PKG_CONFIG+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 case $PKG_CONFIG in
9933 [\\/]* | ?:[\\/]*)
9934 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9935 ;;
9936 *)
9937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9938 for as_dir in $PATH
9939 do
9940 IFS=$as_save_IFS
9941 test -z "$as_dir" && as_dir=.
9942 for ac_exec_ext in '' $ac_executable_extensions; do
9943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9944 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9946 break 2
9947 fi
9948 done
9949 done
9950 IFS=$as_save_IFS
9951
9952 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9953 ;;
9954 esac
9955 fi
9956 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9957 if test -n "$PKG_CONFIG"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9959 $as_echo "$PKG_CONFIG" >&6; }
9960 else
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9963 fi
9964
9965
9966
9967 if test "$PKG_CONFIG" = "no" ; then
9968 pkg_check_gtk=no
9969 else
9970 PKG_CONFIG_MIN_VERSION=0.9.0
9971 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
9973 $as_echo_n "checking for $GTK_MODULES... " >&6; }
9974
9975 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9977 $as_echo "yes" >&6; }
9978 succeeded=yes
9979
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
9981 $as_echo_n "checking GTK_CFLAGS... " >&6; }
9982 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
9984 $as_echo "$GTK_CFLAGS" >&6; }
9985
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
9987 $as_echo_n "checking GTK_LIBS... " >&6; }
9988 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
9990 $as_echo "$GTK_LIBS" >&6; }
9991 else
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9993 $as_echo "no" >&6; }
9994 GTK_CFLAGS=""
9995 GTK_LIBS=""
9996 ## If we have a custom action on failure, don't print errors, but
9997 ## do set a variable so people can do so.
9998 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
9999
10000 fi
10001
10002
10003
10004 else
10005 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10006 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10007 fi
10008 fi
10009
10010 if test $succeeded = yes; then
10011 pkg_check_gtk=yes
10012 else
10013 pkg_check_gtk=no
10014 fi
10015
10016 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10017 as_fn_error $? "$GTK_PKG_ERRORS" "$LINENO" 5
10018 fi
10019 fi
10020 fi
10021
10022 GTK_OBJ=
10023 if test x"$pkg_check_gtk" = xyes; then
10024
10025
10026
10027 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10028 CFLAGS="$CFLAGS $GTK_CFLAGS"
10029 LIBS="$GTK_LIBS $LIBS"
10030 GTK_COMPILES=no
10031 for ac_func in gtk_main
10032 do :
10033 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
10034 if test "x$ac_cv_func_gtk_main" = xyes; then :
10035 cat >>confdefs.h <<_ACEOF
10036 #define HAVE_GTK_MAIN 1
10037 _ACEOF
10038 GTK_COMPILES=yes
10039 fi
10040 done
10041
10042 if test "${GTK_COMPILES}" != "yes"; then
10043 if test "$USE_X_TOOLKIT" != "maybe"; then
10044 as_fn_error $? "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
10045 fi
10046 else
10047 HAVE_GTK=yes
10048
10049 $as_echo "#define USE_GTK 1" >>confdefs.h
10050
10051 GTK_OBJ=gtkutil.o
10052 USE_X_TOOLKIT=none
10053 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10054 :
10055 else
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
10057 closing open displays. This is no problem if you just use
10058 one display, but if you use more than one and close one of them
10059 Emacs may crash." >&5
10060 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
10061 closing open displays. This is no problem if you just use
10062 one display, but if you use more than one and close one of them
10063 Emacs may crash." >&2;}
10064 sleep 3
10065 fi
10066 fi
10067
10068 fi
10069
10070
10071
10072 if test "${HAVE_GTK}" = "yes"; then
10073
10074 if test "$with_toolkit_scroll_bars" != no; then
10075 with_toolkit_scroll_bars=yes
10076 fi
10077
10078 HAVE_GTK_FILE_SELECTION=no
10079 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
10080 #include <gtk/gtk.h>
10081 "
10082 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = xyes; then :
10083 HAVE_GTK_FILE_SELECTION=yes
10084 else
10085 HAVE_GTK_FILE_SELECTION=no
10086 fi
10087
10088 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
10089 for ac_func in gtk_file_selection_new
10090 do :
10091 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
10092 if test "x$ac_cv_func_gtk_file_selection_new" = xyes; then :
10093 cat >>confdefs.h <<_ACEOF
10094 #define HAVE_GTK_FILE_SELECTION_NEW 1
10095 _ACEOF
10096
10097 fi
10098 done
10099
10100 fi
10101
10102 HAVE_GTK_AND_PTHREAD=no
10103 for ac_header in pthread.h
10104 do :
10105 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10106 if test "x$ac_cv_header_pthread_h" = xyes; then :
10107 cat >>confdefs.h <<_ACEOF
10108 #define HAVE_PTHREAD_H 1
10109 _ACEOF
10110
10111 fi
10112
10113 done
10114
10115 if test "$ac_cv_header_pthread_h"; then
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
10117 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
10118 if ${ac_cv_lib_pthread_pthread_self+:} false; then :
10119 $as_echo_n "(cached) " >&6
10120 else
10121 ac_check_lib_save_LIBS=$LIBS
10122 LIBS="-lpthread $LIBS"
10123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10124 /* end confdefs.h. */
10125
10126 /* Override any GCC internal prototype to avoid an error.
10127 Use char because int might match the return type of a GCC
10128 builtin and then its argument prototype would still apply. */
10129 #ifdef __cplusplus
10130 extern "C"
10131 #endif
10132 char pthread_self ();
10133 int
10134 main ()
10135 {
10136 return pthread_self ();
10137 ;
10138 return 0;
10139 }
10140 _ACEOF
10141 if ac_fn_c_try_link "$LINENO"; then :
10142 ac_cv_lib_pthread_pthread_self=yes
10143 else
10144 ac_cv_lib_pthread_pthread_self=no
10145 fi
10146 rm -f core conftest.err conftest.$ac_objext \
10147 conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_lib_save_LIBS
10149 fi
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
10151 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
10152 if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
10153 HAVE_GTK_AND_PTHREAD=yes
10154 fi
10155
10156 fi
10157 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10158 case "${canonical}" in
10159 *-hpux*) ;;
10160 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
10161 esac
10162
10163 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
10164
10165 fi
10166
10167 for ac_func in gtk_widget_get_window gtk_widget_set_has_window \
10168 gtk_dialog_get_action_area gtk_widget_get_sensitive \
10169 gtk_widget_get_mapped gtk_adjustment_get_page_size \
10170 gtk_orientable_set_orientation
10171 do :
10172 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10174 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10175 cat >>confdefs.h <<_ACEOF
10176 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10177 _ACEOF
10178
10179 fi
10180 done
10181
10182
10183 fi
10184
10185 HAVE_DBUS=no
10186 DBUS_OBJ=
10187 if test "${with_dbus}" = "yes"; then
10188
10189 succeeded=no
10190
10191 # Extract the first word of "pkg-config", so it can be a program name with args.
10192 set dummy pkg-config; ac_word=$2
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194 $as_echo_n "checking for $ac_word... " >&6; }
10195 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10196 $as_echo_n "(cached) " >&6
10197 else
10198 case $PKG_CONFIG in
10199 [\\/]* | ?:[\\/]*)
10200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10201 ;;
10202 *)
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10204 for as_dir in $PATH
10205 do
10206 IFS=$as_save_IFS
10207 test -z "$as_dir" && as_dir=.
10208 for ac_exec_ext in '' $ac_executable_extensions; do
10209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10210 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10212 break 2
10213 fi
10214 done
10215 done
10216 IFS=$as_save_IFS
10217
10218 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10219 ;;
10220 esac
10221 fi
10222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10223 if test -n "$PKG_CONFIG"; then
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10225 $as_echo "$PKG_CONFIG" >&6; }
10226 else
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228 $as_echo "no" >&6; }
10229 fi
10230
10231
10232
10233 if test "$PKG_CONFIG" = "no" ; then
10234 HAVE_DBUS=no
10235 else
10236 PKG_CONFIG_MIN_VERSION=0.9.0
10237 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
10239 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
10240
10241 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10243 $as_echo "yes" >&6; }
10244 succeeded=yes
10245
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
10247 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
10248 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
10250 $as_echo "$DBUS_CFLAGS" >&6; }
10251
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
10253 $as_echo_n "checking DBUS_LIBS... " >&6; }
10254 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
10256 $as_echo "$DBUS_LIBS" >&6; }
10257 else
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259 $as_echo "no" >&6; }
10260 DBUS_CFLAGS=""
10261 DBUS_LIBS=""
10262 ## If we have a custom action on failure, don't print errors, but
10263 ## do set a variable so people can do so.
10264 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
10265
10266 fi
10267
10268
10269
10270 else
10271 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10272 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10273 fi
10274 fi
10275
10276 if test $succeeded = yes; then
10277 HAVE_DBUS=yes
10278 else
10279 HAVE_DBUS=no
10280 fi
10281
10282 if test "$HAVE_DBUS" = yes; then
10283 LIBS="$LIBS $DBUS_LIBS"
10284
10285 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
10286
10287 for ac_func in dbus_watch_get_unix_fd
10288 do :
10289 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
10290 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = xyes; then :
10291 cat >>confdefs.h <<_ACEOF
10292 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
10293 _ACEOF
10294
10295 fi
10296 done
10297
10298 DBUS_OBJ=dbusbind.o
10299 fi
10300 fi
10301
10302
10303 HAVE_GCONF=no
10304 if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
10305
10306 succeeded=no
10307
10308 # Extract the first word of "pkg-config", so it can be a program name with args.
10309 set dummy pkg-config; ac_word=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311 $as_echo_n "checking for $ac_word... " >&6; }
10312 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10313 $as_echo_n "(cached) " >&6
10314 else
10315 case $PKG_CONFIG in
10316 [\\/]* | ?:[\\/]*)
10317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10318 ;;
10319 *)
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10322 do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
10325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10329 break 2
10330 fi
10331 done
10332 done
10333 IFS=$as_save_IFS
10334
10335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10336 ;;
10337 esac
10338 fi
10339 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10340 if test -n "$PKG_CONFIG"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10342 $as_echo "$PKG_CONFIG" >&6; }
10343 else
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10346 fi
10347
10348
10349
10350 if test "$PKG_CONFIG" = "no" ; then
10351 HAVE_GCONF=no
10352 else
10353 PKG_CONFIG_MIN_VERSION=0.9.0
10354 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
10356 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
10357
10358 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10360 $as_echo "yes" >&6; }
10361 succeeded=yes
10362
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
10364 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
10365 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
10367 $as_echo "$GCONF_CFLAGS" >&6; }
10368
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
10370 $as_echo_n "checking GCONF_LIBS... " >&6; }
10371 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
10373 $as_echo "$GCONF_LIBS" >&6; }
10374 else
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10377 GCONF_CFLAGS=""
10378 GCONF_LIBS=""
10379 ## If we have a custom action on failure, don't print errors, but
10380 ## do set a variable so people can do so.
10381 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.13"`
10382
10383 fi
10384
10385
10386
10387 else
10388 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10389 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10390 fi
10391 fi
10392
10393 if test $succeeded = yes; then
10394 HAVE_GCONF=yes
10395 else
10396 HAVE_GCONF=no
10397 fi
10398
10399 if test "$HAVE_GCONF" = yes; then
10400
10401 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
10402
10403 for ac_func in g_type_init
10404 do :
10405 ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init"
10406 if test "x$ac_cv_func_g_type_init" = xyes; then :
10407 cat >>confdefs.h <<_ACEOF
10408 #define HAVE_G_TYPE_INIT 1
10409 _ACEOF
10410
10411 fi
10412 done
10413
10414 fi
10415 fi
10416
10417 HAVE_LIBSELINUX=no
10418 LIBSELINUX_LIBS=
10419 if test "${with_selinux}" = "yes"; then
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
10421 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
10422 if ${ac_cv_lib_selinux_lgetfilecon+:} false; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 ac_check_lib_save_LIBS=$LIBS
10426 LIBS="-lselinux $LIBS"
10427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10428 /* end confdefs.h. */
10429
10430 /* Override any GCC internal prototype to avoid an error.
10431 Use char because int might match the return type of a GCC
10432 builtin and then its argument prototype would still apply. */
10433 #ifdef __cplusplus
10434 extern "C"
10435 #endif
10436 char lgetfilecon ();
10437 int
10438 main ()
10439 {
10440 return lgetfilecon ();
10441 ;
10442 return 0;
10443 }
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10446 ac_cv_lib_selinux_lgetfilecon=yes
10447 else
10448 ac_cv_lib_selinux_lgetfilecon=no
10449 fi
10450 rm -f core conftest.err conftest.$ac_objext \
10451 conftest$ac_exeext conftest.$ac_ext
10452 LIBS=$ac_check_lib_save_LIBS
10453 fi
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
10455 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
10456 if test "x$ac_cv_lib_selinux_lgetfilecon" = xyes; then :
10457 HAVE_LIBSELINUX=yes
10458 else
10459 HAVE_LIBSELINUX=no
10460 fi
10461
10462 if test "$HAVE_LIBSELINUX" = yes; then
10463
10464 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
10465
10466 LIBSELINUX_LIBS=-lselinux
10467 fi
10468 fi
10469
10470
10471 HAVE_GNUTLS=no
10472 if test "${with_gnutls}" = "yes" ; then
10473
10474 succeeded=no
10475
10476 # Extract the first word of "pkg-config", so it can be a program name with args.
10477 set dummy pkg-config; ac_word=$2
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10479 $as_echo_n "checking for $ac_word... " >&6; }
10480 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 case $PKG_CONFIG in
10484 [\\/]* | ?:[\\/]*)
10485 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10486 ;;
10487 *)
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10490 do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10495 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10498 fi
10499 done
10500 done
10501 IFS=$as_save_IFS
10502
10503 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10504 ;;
10505 esac
10506 fi
10507 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10508 if test -n "$PKG_CONFIG"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10510 $as_echo "$PKG_CONFIG" >&6; }
10511 else
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10514 fi
10515
10516
10517
10518 if test "$PKG_CONFIG" = "no" ; then
10519 HAVE_GNUTLS=no
10520 else
10521 PKG_CONFIG_MIN_VERSION=0.9.0
10522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.2.4" >&5
10524 $as_echo_n "checking for gnutls >= 2.2.4... " >&6; }
10525
10526 if $PKG_CONFIG --exists "gnutls >= 2.2.4" 2>&5; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10528 $as_echo "yes" >&6; }
10529 succeeded=yes
10530
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_CFLAGS" >&5
10532 $as_echo_n "checking LIBGNUTLS_CFLAGS... " >&6; }
10533 LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_CFLAGS" >&5
10535 $as_echo "$LIBGNUTLS_CFLAGS" >&6; }
10536
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGNUTLS_LIBS" >&5
10538 $as_echo_n "checking LIBGNUTLS_LIBS... " >&6; }
10539 LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.2.4"|sed -e 's,///*,/,g'`
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLS_LIBS" >&5
10541 $as_echo "$LIBGNUTLS_LIBS" >&6; }
10542 else
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10545 LIBGNUTLS_CFLAGS=""
10546 LIBGNUTLS_LIBS=""
10547 ## If we have a custom action on failure, don't print errors, but
10548 ## do set a variable so people can do so.
10549 LIBGNUTLS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnutls >= 2.2.4"`
10550
10551 fi
10552
10553
10554
10555 else
10556 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10557 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10558 fi
10559 fi
10560
10561 if test $succeeded = yes; then
10562 HAVE_GNUTLS=yes
10563 else
10564 HAVE_GNUTLS=no
10565 fi
10566
10567 if test "${HAVE_GNUTLS}" = "yes"; then
10568
10569 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
10570
10571 fi
10572 fi
10573
10574
10575
10576 HAVE_XAW3D=no
10577 LUCID_LIBW=
10578 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
10579 if test "$with_xaw3d" != no; then
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
10581 $as_echo_n "checking for xaw3d... " >&6; }
10582 if ${emacs_cv_xaw3d+:} false; then :
10583 $as_echo_n "(cached) " >&6
10584 else
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h. */
10587
10588 #include <X11/Intrinsic.h>
10589 #include <X11/Xaw3d/Simple.h>
10590 int
10591 main ()
10592 {
10593
10594 ;
10595 return 0;
10596 }
10597 _ACEOF
10598 if ac_fn_c_try_link "$LINENO"; then :
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5
10600 $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; }
10601 if ${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+:} false; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 ac_check_lib_save_LIBS=$LIBS
10605 LIBS="-lXaw3d $LIBS"
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608
10609 /* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 char XawScrollbarSetThumb ();
10616 int
10617 main ()
10618 {
10619 return XawScrollbarSetThumb ();
10620 ;
10621 return 0;
10622 }
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"; then :
10625 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
10626 else
10627 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
10628 fi
10629 rm -f core conftest.err conftest.$ac_objext \
10630 conftest$ac_exeext conftest.$ac_ext
10631 LIBS=$ac_check_lib_save_LIBS
10632 fi
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
10634 $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
10635 if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = xyes; then :
10636 emacs_cv_xaw3d=yes
10637 else
10638 emacs_cv_xaw3d=no
10639 fi
10640
10641 else
10642 emacs_cv_xaw3d=no
10643 fi
10644 rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 fi
10647
10648 else
10649 emacs_cv_xaw3d=no
10650 fi
10651 if test $emacs_cv_xaw3d = yes; then
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10653 $as_echo "yes; using Lucid toolkit" >&6; }
10654 USE_X_TOOLKIT=LUCID
10655 HAVE_XAW3D=yes
10656 LUCID_LIBW=-lXaw3d
10657
10658 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
10659
10660 else
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
10664 $as_echo_n "checking for libXaw... " >&6; }
10665 if ${emacs_cv_xaw+:} false; then :
10666 $as_echo_n "(cached) " >&6
10667 else
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670
10671 #include <X11/Intrinsic.h>
10672 #include <X11/Xaw/Simple.h>
10673 int
10674 main ()
10675 {
10676
10677 ;
10678 return 0;
10679 }
10680 _ACEOF
10681 if ac_fn_c_try_link "$LINENO"; then :
10682 emacs_cv_xaw=yes
10683 else
10684 emacs_cv_xaw=no
10685 fi
10686 rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
10688 fi
10689
10690 if test $emacs_cv_xaw = yes; then
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
10692 $as_echo "yes; using Lucid toolkit" >&6; }
10693 USE_X_TOOLKIT=LUCID
10694 LUCID_LIBW=-lXaw
10695 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
10696 as_fn_error $? "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
10697 else
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
10699 $as_echo "no; do not use toolkit by default" >&6; }
10700 USE_X_TOOLKIT=none
10701 fi
10702 fi
10703 fi
10704
10705 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
10706
10707 LIBXTR6=
10708 if test "${USE_X_TOOLKIT}" != "none"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
10710 $as_echo_n "checking X11 toolkit version... " >&6; }
10711 if ${emacs_cv_x11_toolkit_version_6+:} false; then :
10712 $as_echo_n "(cached) " >&6
10713 else
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10716 #include <X11/Intrinsic.h>
10717 int
10718 main ()
10719 {
10720 #if XtSpecificationRelease < 6
10721 fail;
10722 #endif
10723
10724 ;
10725 return 0;
10726 }
10727 _ACEOF
10728 if ac_fn_c_try_link "$LINENO"; then :
10729 emacs_cv_x11_toolkit_version_6=yes
10730 else
10731 emacs_cv_x11_toolkit_version_6=no
10732 fi
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10735 fi
10736
10737 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
10738 if test $emacs_cv_x11_toolkit_version_6 = yes; then
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
10740 $as_echo "6 or newer" >&6; }
10741
10742 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
10743
10744 LIBXTR6="-lSM -lICE"
10745 case "$opsys" in
10746 ## Use libw.a along with X11R6 Xt.
10747 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
10748 esac
10749 else
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
10751 $as_echo "before 6" >&6; }
10752 fi
10753
10754 OLDLIBS="$LIBS"
10755 if test x$HAVE_X11XTR6 = xyes; then
10756 LIBS="-lXt -lSM -lICE $LIBS"
10757 else
10758 LIBS="-lXt $LIBS"
10759 fi
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
10761 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
10762 if ${ac_cv_lib_Xmu_XmuConvertStandardSelection+:} false; then :
10763 $as_echo_n "(cached) " >&6
10764 else
10765 ac_check_lib_save_LIBS=$LIBS
10766 LIBS="-lXmu $LIBS"
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10769
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char XmuConvertStandardSelection ();
10777 int
10778 main ()
10779 {
10780 return XmuConvertStandardSelection ();
10781 ;
10782 return 0;
10783 }
10784 _ACEOF
10785 if ac_fn_c_try_link "$LINENO"; then :
10786 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
10787 else
10788 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
10789 fi
10790 rm -f core conftest.err conftest.$ac_objext \
10791 conftest$ac_exeext conftest.$ac_ext
10792 LIBS=$ac_check_lib_save_LIBS
10793 fi
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
10795 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
10796 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = xyes; then :
10797 cat >>confdefs.h <<_ACEOF
10798 #define HAVE_LIBXMU 1
10799 _ACEOF
10800
10801 LIBS="-lXmu $LIBS"
10802
10803 fi
10804
10805 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
10806 fi
10807
10808
10809 LIBXMU=-lXmu
10810 case $opsys in
10811 ## These systems don't supply Xmu.
10812 hpux* | aix4-2 )
10813 test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU=
10814 ;;
10815 esac
10816
10817
10818 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
10819 if test "${HAVE_X11}" = "yes"; then
10820 if test "${USE_X_TOOLKIT}" != "none"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
10822 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
10823 if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
10824 $as_echo_n "(cached) " >&6
10825 else
10826 ac_check_lib_save_LIBS=$LIBS
10827 LIBS="-lXext $LIBS"
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10830
10831 /* Override any GCC internal prototype to avoid an error.
10832 Use char because int might match the return type of a GCC
10833 builtin and then its argument prototype would still apply. */
10834 #ifdef __cplusplus
10835 extern "C"
10836 #endif
10837 char XShapeQueryExtension ();
10838 int
10839 main ()
10840 {
10841 return XShapeQueryExtension ();
10842 ;
10843 return 0;
10844 }
10845 _ACEOF
10846 if ac_fn_c_try_link "$LINENO"; then :
10847 ac_cv_lib_Xext_XShapeQueryExtension=yes
10848 else
10849 ac_cv_lib_Xext_XShapeQueryExtension=no
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext \
10852 conftest$ac_exeext conftest.$ac_ext
10853 LIBS=$ac_check_lib_save_LIBS
10854 fi
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
10856 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
10857 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
10858 cat >>confdefs.h <<_ACEOF
10859 #define HAVE_LIBXEXT 1
10860 _ACEOF
10861
10862 LIBS="-lXext $LIBS"
10863
10864 fi
10865
10866 fi
10867 fi
10868
10869 LIBXP=
10870 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
10872 $as_echo_n "checking for Motif version 2.1... " >&6; }
10873 if ${emacs_cv_motif_version_2_1+:} false; then :
10874 $as_echo_n "(cached) " >&6
10875 else
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 #include <Xm/Xm.h>
10879 int
10880 main ()
10881 {
10882 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
10883 int x = 5;
10884 #else
10885 Motif version prior to 2.1.
10886 #endif
10887 ;
10888 return 0;
10889 }
10890 _ACEOF
10891 if ac_fn_c_try_compile "$LINENO"; then :
10892 emacs_cv_motif_version_2_1=yes
10893 else
10894 emacs_cv_motif_version_2_1=no
10895 fi
10896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10897 fi
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
10899 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
10900 if test $emacs_cv_motif_version_2_1 = yes; then
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
10902 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
10903 if ${ac_cv_lib_Xp_XpCreateContext+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 ac_check_lib_save_LIBS=$LIBS
10907 LIBS="-lXp $LIBS"
10908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10910
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914 #ifdef __cplusplus
10915 extern "C"
10916 #endif
10917 char XpCreateContext ();
10918 int
10919 main ()
10920 {
10921 return XpCreateContext ();
10922 ;
10923 return 0;
10924 }
10925 _ACEOF
10926 if ac_fn_c_try_link "$LINENO"; then :
10927 ac_cv_lib_Xp_XpCreateContext=yes
10928 else
10929 ac_cv_lib_Xp_XpCreateContext=no
10930 fi
10931 rm -f core conftest.err conftest.$ac_objext \
10932 conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_check_lib_save_LIBS
10934 fi
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
10936 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
10937 if test "x$ac_cv_lib_Xp_XpCreateContext" = xyes; then :
10938 LIBXP=-lXp
10939 fi
10940
10941 else
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
10943 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
10944 if ${emacs_cv_lesstif+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 # We put this in CFLAGS temporarily to precede other -I options
10948 # that might be in CFLAGS temporarily.
10949 # We put this in CPPFLAGS where it precedes the other -I options.
10950 OLD_CPPFLAGS=$CPPFLAGS
10951 OLD_CFLAGS=$CFLAGS
10952 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
10953 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
10954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10955 /* end confdefs.h. */
10956 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
10957 int
10958 main ()
10959 {
10960 int x = 5;
10961 ;
10962 return 0;
10963 }
10964 _ACEOF
10965 if ac_fn_c_try_compile "$LINENO"; then :
10966 emacs_cv_lesstif=yes
10967 else
10968 emacs_cv_lesstif=no
10969 fi
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971 fi
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
10973 $as_echo "$emacs_cv_lesstif" >&6; }
10974 if test $emacs_cv_lesstif = yes; then
10975 # Make sure this -I option remains in CPPFLAGS after it is set
10976 # back to REAL_CPPFLAGS.
10977 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
10978 # have those other -I options anyway. Ultimately, having this
10979 # directory ultimately in CPPFLAGS will be enough.
10980 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
10981 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
10982 else
10983 CFLAGS=$OLD_CFLAGS
10984 CPPFLAGS=$OLD_CPPFLAGS
10985 fi
10986 fi
10987 fi
10988
10989
10990 USE_TOOLKIT_SCROLL_BARS=no
10991 if test "${with_toolkit_scroll_bars}" != "no"; then
10992 if test "${USE_X_TOOLKIT}" != "none"; then
10993 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
10994 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
10995
10996 HAVE_XAW3D=no
10997 USE_TOOLKIT_SCROLL_BARS=yes
10998 elif test "${HAVE_XAW3D}" = "yes"; then
10999 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11000
11001 USE_TOOLKIT_SCROLL_BARS=yes
11002 fi
11003 elif test "${HAVE_GTK}" = "yes"; then
11004 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11005
11006 USE_TOOLKIT_SCROLL_BARS=yes
11007 elif test "${HAVE_NS}" = "yes"; then
11008 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
11009
11010 USE_TOOLKIT_SCROLL_BARS=yes
11011 fi
11012 fi
11013
11014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015 /* end confdefs.h. */
11016
11017 #include <X11/Xlib.h>
11018 #include <X11/Xresource.h>
11019 int
11020 main ()
11021 {
11022 XIMProc callback;
11023 ;
11024 return 0;
11025 }
11026 _ACEOF
11027 if ac_fn_c_try_compile "$LINENO"; then :
11028 HAVE_XIM=yes
11029
11030 $as_echo "#define HAVE_XIM 1" >>confdefs.h
11031
11032 else
11033 HAVE_XIM=no
11034 fi
11035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11036
11037
11038 if test "${with_xim}" != "no"; then
11039
11040 $as_echo "#define USE_XIM 1" >>confdefs.h
11041
11042 fi
11043
11044
11045 if test "${HAVE_XIM}" != "no"; then
11046 late_CFLAGS=$CFLAGS
11047 if test "$GCC" = yes; then
11048 CFLAGS="$CFLAGS --pedantic-errors"
11049 fi
11050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11051 /* end confdefs.h. */
11052
11053 #include <X11/Xlib.h>
11054 #include <X11/Xresource.h>
11055 int
11056 main ()
11057 {
11058 Display *display;
11059 XrmDatabase db;
11060 char *res_name;
11061 char *res_class;
11062 XIMProc callback;
11063 XPointer *client_data;
11064 #ifndef __GNUC__
11065 /* If we're not using GCC, it's probably not XFree86, and this is
11066 probably right, but we can't use something like --pedantic-errors. */
11067 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
11068 char*, XIMProc, XPointer*);
11069 #endif
11070 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
11071 client_data);
11072 ;
11073 return 0;
11074 }
11075 _ACEOF
11076 if ac_fn_c_try_compile "$LINENO"; then :
11077 emacs_cv_arg6_star=yes
11078 fi
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 if test "$emacs_cv_arg6_star" = yes; then
11081 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
11082
11083 else
11084 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
11085
11086 fi
11087 CFLAGS=$late_CFLAGS
11088 fi
11089
11090 ### Start of font-backend (under any platform) section.
11091 # (nothing here yet -- this is a placeholder)
11092 ### End of font-backend (under any platform) section.
11093
11094 ### Start of font-backend (under X11) section.
11095 if test "${HAVE_X11}" = "yes"; then
11096
11097 succeeded=no
11098
11099 # Extract the first word of "pkg-config", so it can be a program name with args.
11100 set dummy pkg-config; ac_word=$2
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102 $as_echo_n "checking for $ac_word... " >&6; }
11103 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 case $PKG_CONFIG in
11107 [\\/]* | ?:[\\/]*)
11108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11109 ;;
11110 *)
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $PATH
11113 do
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 break 2
11121 fi
11122 done
11123 done
11124 IFS=$as_save_IFS
11125
11126 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11127 ;;
11128 esac
11129 fi
11130 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11131 if test -n "$PKG_CONFIG"; then
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11133 $as_echo "$PKG_CONFIG" >&6; }
11134 else
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11136 $as_echo "no" >&6; }
11137 fi
11138
11139
11140
11141 if test "$PKG_CONFIG" = "no" ; then
11142 HAVE_FC=no
11143 else
11144 PKG_CONFIG_MIN_VERSION=0.9.0
11145 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
11147 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
11148
11149 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11151 $as_echo "yes" >&6; }
11152 succeeded=yes
11153
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
11155 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
11156 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
11158 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
11159
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
11161 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
11162 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
11164 $as_echo "$FONTCONFIG_LIBS" >&6; }
11165 else
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; }
11168 FONTCONFIG_CFLAGS=""
11169 FONTCONFIG_LIBS=""
11170 ## If we have a custom action on failure, don't print errors, but
11171 ## do set a variable so people can do so.
11172 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig >= 2.2.0"`
11173
11174 fi
11175
11176
11177
11178 else
11179 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11180 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11181 fi
11182 fi
11183
11184 if test $succeeded = yes; then
11185 HAVE_FC=yes
11186 else
11187 HAVE_FC=no
11188 fi
11189
11190
11191 ## Use -lXft if available, unless `--with-xft=no'.
11192 HAVE_XFT=maybe
11193 if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then
11194 with_xft="no";
11195 fi
11196 if test "x${with_xft}" != "xno"; then
11197
11198
11199 succeeded=no
11200
11201 # Extract the first word of "pkg-config", so it can be a program name with args.
11202 set dummy pkg-config; ac_word=$2
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204 $as_echo_n "checking for $ac_word... " >&6; }
11205 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11206 $as_echo_n "(cached) " >&6
11207 else
11208 case $PKG_CONFIG in
11209 [\\/]* | ?:[\\/]*)
11210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11211 ;;
11212 *)
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214 for as_dir in $PATH
11215 do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11222 break 2
11223 fi
11224 done
11225 done
11226 IFS=$as_save_IFS
11227
11228 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11229 ;;
11230 esac
11231 fi
11232 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11233 if test -n "$PKG_CONFIG"; then
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11235 $as_echo "$PKG_CONFIG" >&6; }
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238 $as_echo "no" >&6; }
11239 fi
11240
11241
11242
11243 if test "$PKG_CONFIG" = "no" ; then
11244 HAVE_XFT=no
11245 else
11246 PKG_CONFIG_MIN_VERSION=0.9.0
11247 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
11249 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
11250
11251 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11253 $as_echo "yes" >&6; }
11254 succeeded=yes
11255
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
11257 $as_echo_n "checking XFT_CFLAGS... " >&6; }
11258 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
11260 $as_echo "$XFT_CFLAGS" >&6; }
11261
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
11263 $as_echo_n "checking XFT_LIBS... " >&6; }
11264 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
11266 $as_echo "$XFT_LIBS" >&6; }
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 XFT_CFLAGS=""
11271 XFT_LIBS=""
11272 ## If we have a custom action on failure, don't print errors, but
11273 ## do set a variable so people can do so.
11274 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11275
11276 fi
11277
11278
11279
11280 else
11281 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11282 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11283 fi
11284 fi
11285
11286 if test $succeeded = yes; then
11287 :
11288 else
11289 HAVE_XFT=no
11290 fi
11291
11292 ## Because xftfont.c uses XRenderQueryExtension, we also
11293 ## need to link to -lXrender.
11294 HAVE_XRENDER=no
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
11296 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
11297 if ${ac_cv_lib_Xrender_XRenderQueryExtension+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-lXrender $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char XRenderQueryExtension ();
11312 int
11313 main ()
11314 {
11315 return XRenderQueryExtension ();
11316 ;
11317 return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_Xrender_XRenderQueryExtension=yes
11322 else
11323 ac_cv_lib_Xrender_XRenderQueryExtension=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
11330 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
11331 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = xyes; then :
11332 HAVE_XRENDER=yes
11333 fi
11334
11335 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
11336 OLD_CPPFLAGS="$CPPFLAGS"
11337 OLD_CFLAGS="$CFLAGS"
11338 OLD_LIBS="$LIBS"
11339 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11340 CFLAGS="$CFLAGS $XFT_CFLAGS"
11341 XFT_LIBS="-lXrender $XFT_LIBS"
11342 LIBS="$XFT_LIBS $LIBS"
11343 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
11344 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
11346 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
11347 if ${ac_cv_lib_Xft_XftFontOpen+:} false; then :
11348 $as_echo_n "(cached) " >&6
11349 else
11350 ac_check_lib_save_LIBS=$LIBS
11351 LIBS="-lXft $XFT_LIBS $LIBS"
11352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11353 /* end confdefs.h. */
11354
11355 /* Override any GCC internal prototype to avoid an error.
11356 Use char because int might match the return type of a GCC
11357 builtin and then its argument prototype would still apply. */
11358 #ifdef __cplusplus
11359 extern "C"
11360 #endif
11361 char XftFontOpen ();
11362 int
11363 main ()
11364 {
11365 return XftFontOpen ();
11366 ;
11367 return 0;
11368 }
11369 _ACEOF
11370 if ac_fn_c_try_link "$LINENO"; then :
11371 ac_cv_lib_Xft_XftFontOpen=yes
11372 else
11373 ac_cv_lib_Xft_XftFontOpen=no
11374 fi
11375 rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
11377 LIBS=$ac_check_lib_save_LIBS
11378 fi
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11380 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
11381 if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then :
11382 HAVE_XFT=yes
11383 fi
11384
11385 fi
11386
11387
11388
11389 if test "${HAVE_XFT}" = "yes"; then
11390
11391 $as_echo "#define HAVE_XFT 1" >>confdefs.h
11392
11393
11394 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11395 else
11396 CPPFLAGS="$OLD_CPPFLAGS"
11397 CFLAGS="$OLD_CFLAGS"
11398 LIBS="$OLD_LIBS"
11399 fi # "${HAVE_XFT}" = "yes"
11400 fi # "$HAVE_XFT" != no
11401 fi # "x${with_xft}" != "xno"
11402
11403 if test "$HAVE_XFT" != "yes"; then
11404 HAVE_XFT=no
11405 fi
11406
11407 ## We used to allow building with FreeType and without Xft.
11408 ## However, the ftx font backend driver is not in good shape.
11409 HAVE_FREETYPE=$HAVE_XFT
11410
11411 HAVE_LIBOTF=no
11412 if test "${HAVE_FREETYPE}" = "yes"; then
11413
11414 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
11415
11416 if test "${with_libotf}" != "no"; then
11417
11418 succeeded=no
11419
11420 # Extract the first word of "pkg-config", so it can be a program name with args.
11421 set dummy pkg-config; ac_word=$2
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423 $as_echo_n "checking for $ac_word... " >&6; }
11424 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11425 $as_echo_n "(cached) " >&6
11426 else
11427 case $PKG_CONFIG in
11428 [\\/]* | ?:[\\/]*)
11429 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11430 ;;
11431 *)
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11434 do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11439 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441 break 2
11442 fi
11443 done
11444 done
11445 IFS=$as_save_IFS
11446
11447 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11448 ;;
11449 esac
11450 fi
11451 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11452 if test -n "$PKG_CONFIG"; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11454 $as_echo "$PKG_CONFIG" >&6; }
11455 else
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11458 fi
11459
11460
11461
11462 if test "$PKG_CONFIG" = "no" ; then
11463 HAVE_LIBOTF=no
11464 else
11465 PKG_CONFIG_MIN_VERSION=0.9.0
11466 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
11468 $as_echo_n "checking for libotf... " >&6; }
11469
11470 if $PKG_CONFIG --exists "libotf" 2>&5; then
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11472 $as_echo "yes" >&6; }
11473 succeeded=yes
11474
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
11476 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
11477 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
11479 $as_echo "$LIBOTF_CFLAGS" >&6; }
11480
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
11482 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
11483 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
11485 $as_echo "$LIBOTF_LIBS" >&6; }
11486 else
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11488 $as_echo "no" >&6; }
11489 LIBOTF_CFLAGS=""
11490 LIBOTF_LIBS=""
11491 ## If we have a custom action on failure, don't print errors, but
11492 ## do set a variable so people can do so.
11493 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
11494
11495 fi
11496
11497
11498
11499 else
11500 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11501 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11502 fi
11503 fi
11504
11505 if test $succeeded = yes; then
11506 HAVE_LIBOTF=yes
11507 else
11508 HAVE_LIBOTF=no
11509 fi
11510
11511 if test "$HAVE_LIBOTF" = "yes"; then
11512
11513 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
11514
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
11516 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
11517 if ${ac_cv_lib_otf_OTF_get_variation_glyphs+:} false; then :
11518 $as_echo_n "(cached) " >&6
11519 else
11520 ac_check_lib_save_LIBS=$LIBS
11521 LIBS="-lotf $LIBS"
11522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11523 /* end confdefs.h. */
11524
11525 /* Override any GCC internal prototype to avoid an error.
11526 Use char because int might match the return type of a GCC
11527 builtin and then its argument prototype would still apply. */
11528 #ifdef __cplusplus
11529 extern "C"
11530 #endif
11531 char OTF_get_variation_glyphs ();
11532 int
11533 main ()
11534 {
11535 return OTF_get_variation_glyphs ();
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_link "$LINENO"; then :
11541 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
11542 else
11543 ac_cv_lib_otf_OTF_get_variation_glyphs=no
11544 fi
11545 rm -f core conftest.err conftest.$ac_objext \
11546 conftest$ac_exeext conftest.$ac_ext
11547 LIBS=$ac_check_lib_save_LIBS
11548 fi
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
11550 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
11551 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = xyes; then :
11552 HAVE_OTF_GET_VARIATION_GLYPHS=yes
11553 else
11554 HAVE_OTF_GET_VARIATION_GLYPHS=no
11555 fi
11556
11557 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
11558
11559 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
11560
11561 fi
11562 fi
11563 fi
11564 fi
11565
11566 HAVE_M17N_FLT=no
11567 if test "${HAVE_LIBOTF}" = yes; then
11568 if test "${with_m17n_flt}" != "no"; then
11569
11570 succeeded=no
11571
11572 # Extract the first word of "pkg-config", so it can be a program name with args.
11573 set dummy pkg-config; ac_word=$2
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575 $as_echo_n "checking for $ac_word... " >&6; }
11576 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11577 $as_echo_n "(cached) " >&6
11578 else
11579 case $PKG_CONFIG in
11580 [\\/]* | ?:[\\/]*)
11581 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11582 ;;
11583 *)
11584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585 for as_dir in $PATH
11586 do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11591 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11593 break 2
11594 fi
11595 done
11596 done
11597 IFS=$as_save_IFS
11598
11599 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11600 ;;
11601 esac
11602 fi
11603 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11604 if test -n "$PKG_CONFIG"; then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11606 $as_echo "$PKG_CONFIG" >&6; }
11607 else
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11609 $as_echo "no" >&6; }
11610 fi
11611
11612
11613
11614 if test "$PKG_CONFIG" = "no" ; then
11615 HAVE_M17N_FLT=no
11616 else
11617 PKG_CONFIG_MIN_VERSION=0.9.0
11618 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
11620 $as_echo_n "checking for m17n-flt... " >&6; }
11621
11622 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11624 $as_echo "yes" >&6; }
11625 succeeded=yes
11626
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
11628 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
11629 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
11631 $as_echo "$M17N_FLT_CFLAGS" >&6; }
11632
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
11634 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
11635 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
11637 $as_echo "$M17N_FLT_LIBS" >&6; }
11638 else
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11641 M17N_FLT_CFLAGS=""
11642 M17N_FLT_LIBS=""
11643 ## If we have a custom action on failure, don't print errors, but
11644 ## do set a variable so people can do so.
11645 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
11646
11647 fi
11648
11649
11650
11651 else
11652 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11653 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11654 fi
11655 fi
11656
11657 if test $succeeded = yes; then
11658 HAVE_M17N_FLT=yes
11659 else
11660 HAVE_M17N_FLT=no
11661 fi
11662
11663 if test "$HAVE_M17N_FLT" = "yes"; then
11664
11665 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
11666
11667 fi
11668 fi
11669 fi
11670 else
11671 HAVE_XFT=no
11672 HAVE_FREETYPE=no
11673 HAVE_LIBOTF=no
11674 HAVE_M17N_FLT=no
11675 fi
11676
11677 ### End of font-backend (under X11) section.
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688 ### Use -lXpm if available, unless `--with-xpm=no'.
11689 HAVE_XPM=no
11690 LIBXPM=
11691 if test "${HAVE_X11}" = "yes"; then
11692 if test "${with_xpm}" != "no"; then
11693 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
11694 if test "x$ac_cv_header_X11_xpm_h" = xyes; then :
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
11696 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
11697 if ${ac_cv_lib_Xpm_XpmReadFileToPixmap+:} false; then :
11698 $as_echo_n "(cached) " >&6
11699 else
11700 ac_check_lib_save_LIBS=$LIBS
11701 LIBS="-lXpm -lX11 $LIBS"
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11704
11705 /* Override any GCC internal prototype to avoid an error.
11706 Use char because int might match the return type of a GCC
11707 builtin and then its argument prototype would still apply. */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 char XpmReadFileToPixmap ();
11712 int
11713 main ()
11714 {
11715 return XpmReadFileToPixmap ();
11716 ;
11717 return 0;
11718 }
11719 _ACEOF
11720 if ac_fn_c_try_link "$LINENO"; then :
11721 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
11722 else
11723 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
11724 fi
11725 rm -f core conftest.err conftest.$ac_objext \
11726 conftest$ac_exeext conftest.$ac_ext
11727 LIBS=$ac_check_lib_save_LIBS
11728 fi
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
11730 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
11731 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = xyes; then :
11732 HAVE_XPM=yes
11733 fi
11734
11735 fi
11736
11737
11738 if test "${HAVE_XPM}" = "yes"; then
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
11740 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
11741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742 /* end confdefs.h. */
11743 #include "X11/xpm.h"
11744 #ifndef XpmReturnAllocPixels
11745 no_return_alloc_pixels
11746 #endif
11747
11748 _ACEOF
11749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11750 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
11751 HAVE_XPM=no
11752 else
11753 HAVE_XPM=yes
11754 fi
11755 rm -f conftest*
11756
11757
11758 if test "${HAVE_XPM}" = "yes"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11760 $as_echo "yes" >&6; }
11761 else
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763 $as_echo "no" >&6; }
11764 fi
11765 fi
11766 fi
11767
11768 if test "${HAVE_XPM}" = "yes"; then
11769
11770 $as_echo "#define HAVE_XPM 1" >>confdefs.h
11771
11772 LIBXPM=-lXpm
11773 fi
11774 fi
11775
11776
11777 ### Use -ljpeg if available, unless `--with-jpeg=no'.
11778 HAVE_JPEG=no
11779 LIBJPEG=
11780 if test "${HAVE_X11}" = "yes"; then
11781 if test "${with_jpeg}" != "no"; then
11782 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
11783 if test "x$ac_cv_header_jerror_h" = xyes; then :
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
11785 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
11786 if ${ac_cv_lib_jpeg_jpeg_destroy_compress+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788 else
11789 ac_check_lib_save_LIBS=$LIBS
11790 LIBS="-ljpeg $LIBS"
11791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792 /* end confdefs.h. */
11793
11794 /* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797 #ifdef __cplusplus
11798 extern "C"
11799 #endif
11800 char jpeg_destroy_compress ();
11801 int
11802 main ()
11803 {
11804 return jpeg_destroy_compress ();
11805 ;
11806 return 0;
11807 }
11808 _ACEOF
11809 if ac_fn_c_try_link "$LINENO"; then :
11810 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
11811 else
11812 ac_cv_lib_jpeg_jpeg_destroy_compress=no
11813 fi
11814 rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_lib_save_LIBS
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
11819 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
11820 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then :
11821 HAVE_JPEG=yes
11822 fi
11823
11824 fi
11825
11826
11827 fi
11828
11829 if test "${HAVE_JPEG}" = "yes"; then
11830 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11831
11832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11833 /* end confdefs.h. */
11834 #include <jpeglib.h>
11835 version=JPEG_LIB_VERSION
11836
11837 _ACEOF
11838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11839 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
11840 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
11841
11842 else
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
11844 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
11845 HAVE_JPEG=no
11846 fi
11847 rm -f conftest*
11848
11849 fi
11850 if test "${HAVE_JPEG}" = "yes"; then
11851 LIBJPEG=-ljpeg
11852 fi
11853 fi
11854
11855
11856 ### Use -lpng if available, unless `--with-png=no'.
11857 HAVE_PNG=no
11858 LIBPNG=
11859 if test "${HAVE_X11}" = "yes"; then
11860 if test "${with_png}" != "no"; then
11861 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
11862 # in /usr/include/libpng.
11863 for ac_header in png.h libpng/png.h
11864 do :
11865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11866 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11867 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11868 cat >>confdefs.h <<_ACEOF
11869 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11870 _ACEOF
11871
11872 fi
11873
11874 done
11875
11876 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
11878 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
11879 if ${ac_cv_lib_png_png_get_channels+:} false; then :
11880 $as_echo_n "(cached) " >&6
11881 else
11882 ac_check_lib_save_LIBS=$LIBS
11883 LIBS="-lpng -lz -lm $LIBS"
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 char png_get_channels ();
11894 int
11895 main ()
11896 {
11897 return png_get_channels ();
11898 ;
11899 return 0;
11900 }
11901 _ACEOF
11902 if ac_fn_c_try_link "$LINENO"; then :
11903 ac_cv_lib_png_png_get_channels=yes
11904 else
11905 ac_cv_lib_png_png_get_channels=no
11906 fi
11907 rm -f core conftest.err conftest.$ac_objext \
11908 conftest$ac_exeext conftest.$ac_ext
11909 LIBS=$ac_check_lib_save_LIBS
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
11912 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
11913 if test "x$ac_cv_lib_png_png_get_channels" = xyes; then :
11914 HAVE_PNG=yes
11915 fi
11916
11917 fi
11918 fi
11919
11920 if test "${HAVE_PNG}" = "yes"; then
11921
11922 $as_echo "#define HAVE_PNG 1" >>confdefs.h
11923
11924 LIBPNG="-lpng -lz -lm"
11925 fi
11926 fi
11927
11928
11929 ### Use -ltiff if available, unless `--with-tiff=no'.
11930 HAVE_TIFF=no
11931 LIBTIFF=
11932 if test "${HAVE_X11}" = "yes"; then
11933 if test "${with_tiff}" != "no"; then
11934 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
11935 if test "x$ac_cv_header_tiffio_h" = xyes; then :
11936 tifflibs="-lz -lm"
11937 # At least one tiff package requires the jpeg library.
11938 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
11940 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
11941 if ${ac_cv_lib_tiff_TIFFGetVersion+:} false; then :
11942 $as_echo_n "(cached) " >&6
11943 else
11944 ac_check_lib_save_LIBS=$LIBS
11945 LIBS="-ltiff $tifflibs $LIBS"
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11948
11949 /* Override any GCC internal prototype to avoid an error.
11950 Use char because int might match the return type of a GCC
11951 builtin and then its argument prototype would still apply. */
11952 #ifdef __cplusplus
11953 extern "C"
11954 #endif
11955 char TIFFGetVersion ();
11956 int
11957 main ()
11958 {
11959 return TIFFGetVersion ();
11960 ;
11961 return 0;
11962 }
11963 _ACEOF
11964 if ac_fn_c_try_link "$LINENO"; then :
11965 ac_cv_lib_tiff_TIFFGetVersion=yes
11966 else
11967 ac_cv_lib_tiff_TIFFGetVersion=no
11968 fi
11969 rm -f core conftest.err conftest.$ac_objext \
11970 conftest$ac_exeext conftest.$ac_ext
11971 LIBS=$ac_check_lib_save_LIBS
11972 fi
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
11974 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
11975 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then :
11976 HAVE_TIFF=yes
11977 fi
11978
11979 fi
11980
11981
11982 fi
11983
11984 if test "${HAVE_TIFF}" = "yes"; then
11985
11986 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
11987
11988 LIBTIFF=-ltiff
11989 fi
11990 fi
11991
11992
11993 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
11994 HAVE_GIF=no
11995 LIBGIF=
11996 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
11997 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
11998 if test "x$ac_cv_header_gif_lib_h" = xyes; then :
11999 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
12000 # Earlier versions can crash Emacs.
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
12002 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
12003 if ${ac_cv_lib_gif_EGifPutExtensionLast+:} false; then :
12004 $as_echo_n "(cached) " >&6
12005 else
12006 ac_check_lib_save_LIBS=$LIBS
12007 LIBS="-lgif $LIBS"
12008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h. */
12010
12011 /* Override any GCC internal prototype to avoid an error.
12012 Use char because int might match the return type of a GCC
12013 builtin and then its argument prototype would still apply. */
12014 #ifdef __cplusplus
12015 extern "C"
12016 #endif
12017 char EGifPutExtensionLast ();
12018 int
12019 main ()
12020 {
12021 return EGifPutExtensionLast ();
12022 ;
12023 return 0;
12024 }
12025 _ACEOF
12026 if ac_fn_c_try_link "$LINENO"; then :
12027 ac_cv_lib_gif_EGifPutExtensionLast=yes
12028 else
12029 ac_cv_lib_gif_EGifPutExtensionLast=no
12030 fi
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 LIBS=$ac_check_lib_save_LIBS
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
12036 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
12037 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = xyes; then :
12038 HAVE_GIF=yes
12039 else
12040 HAVE_GIF=maybe
12041 fi
12042
12043 fi
12044
12045
12046
12047 if test "$HAVE_GIF" = yes; then
12048 LIBGIF=-lgif
12049 elif test "$HAVE_GIF" = maybe; then
12050 # If gif_lib.h but no libgif, try libungif.
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
12052 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
12053 if ${ac_cv_lib_ungif_EGifPutExtensionLast+:} false; then :
12054 $as_echo_n "(cached) " >&6
12055 else
12056 ac_check_lib_save_LIBS=$LIBS
12057 LIBS="-lungif $LIBS"
12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12060
12061 /* Override any GCC internal prototype to avoid an error.
12062 Use char because int might match the return type of a GCC
12063 builtin and then its argument prototype would still apply. */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 char EGifPutExtensionLast ();
12068 int
12069 main ()
12070 {
12071 return EGifPutExtensionLast ();
12072 ;
12073 return 0;
12074 }
12075 _ACEOF
12076 if ac_fn_c_try_link "$LINENO"; then :
12077 ac_cv_lib_ungif_EGifPutExtensionLast=yes
12078 else
12079 ac_cv_lib_ungif_EGifPutExtensionLast=no
12080 fi
12081 rm -f core conftest.err conftest.$ac_objext \
12082 conftest$ac_exeext conftest.$ac_ext
12083 LIBS=$ac_check_lib_save_LIBS
12084 fi
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
12086 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
12087 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = xyes; then :
12088 HAVE_GIF=yes
12089 else
12090 HAVE_GIF=no
12091 fi
12092
12093 test "$HAVE_GIF" = yes && LIBGIF=-lungif
12094 fi
12095
12096 if test "${HAVE_GIF}" = "yes"; then
12097
12098 $as_echo "#define HAVE_GIF 1" >>confdefs.h
12099
12100 fi
12101 fi
12102
12103
12104 if test "${HAVE_X11}" = "yes"; then
12105 MISSING=""
12106 WITH_NO=""
12107 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
12108 MISSING="libXpm" && WITH_NO="--with-xpm=no"
12109 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
12110 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
12111 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
12112 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
12113 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
12114 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
12115 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
12116 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
12117
12118 if test "X${MISSING}" != X; then
12119 as_fn_error $? "The following required libraries were not found:
12120 $MISSING
12121 Maybe some development libraries/packages are missing?
12122 If you don't want to link with them give
12123 $WITH_NO
12124 as options to configure" "$LINENO" 5
12125 fi
12126 fi
12127
12128 ### Use -lgpm if available, unless `--with-gpm=no'.
12129 HAVE_GPM=no
12130 LIBGPM=
12131 MOUSE_SUPPORT=
12132 if test "${with_gpm}" != "no"; then
12133 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
12134 if test "x$ac_cv_header_gpm_h" = xyes; then :
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
12136 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
12137 if ${ac_cv_lib_gpm_Gpm_Open+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-lgpm $LIBS"
12142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h. */
12144
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12148 #ifdef __cplusplus
12149 extern "C"
12150 #endif
12151 char Gpm_Open ();
12152 int
12153 main ()
12154 {
12155 return Gpm_Open ();
12156 ;
12157 return 0;
12158 }
12159 _ACEOF
12160 if ac_fn_c_try_link "$LINENO"; then :
12161 ac_cv_lib_gpm_Gpm_Open=yes
12162 else
12163 ac_cv_lib_gpm_Gpm_Open=no
12164 fi
12165 rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12168 fi
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
12170 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
12171 if test "x$ac_cv_lib_gpm_Gpm_Open" = xyes; then :
12172 HAVE_GPM=yes
12173 fi
12174
12175 fi
12176
12177
12178
12179 if test "${HAVE_GPM}" = "yes"; then
12180
12181 $as_echo "#define HAVE_GPM 1" >>confdefs.h
12182
12183 LIBGPM=-lgpm
12184 ## May be reset below.
12185 MOUSE_SUPPORT="\$(GPM_MOUSE_SUPPORT)"
12186 fi
12187 fi
12188
12189
12190 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
12191 if test "x$ac_cv_header_malloc_malloc_h" = xyes; then :
12192
12193 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
12194
12195 fi
12196
12197
12198
12199 C_SWITCH_X_SYSTEM=
12200 ### Use NeXTstep API to implement GUI.
12201 if test "${HAVE_NS}" = "yes"; then
12202
12203 $as_echo "#define HAVE_NS 1" >>confdefs.h
12204
12205 if test "${NS_IMPL_COCOA}" = "yes"; then
12206
12207 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
12208
12209 GNU_OBJC_CFLAGS=
12210 fi
12211 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
12212
12213 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
12214
12215 # See also .m.o rule in Makefile.in */
12216 # FIXME: are all these flags really needed? Document here why. */
12217 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
12218 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
12219 fi
12220 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
12221
12222 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
12223
12224 fi
12225 # We also have mouse menus.
12226 HAVE_MENUS=yes
12227 OTHER_FILES=ns-app
12228 fi
12229
12230
12231 ### Use session management (-lSM -lICE) if available
12232 HAVE_X_SM=no
12233 LIBXSM=
12234 if test "${HAVE_X11}" = "yes"; then
12235 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
12236 if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes; then :
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
12238 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
12239 if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 ac_check_lib_save_LIBS=$LIBS
12243 LIBS="-lSM -lICE $LIBS"
12244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12245 /* end confdefs.h. */
12246
12247 /* Override any GCC internal prototype to avoid an error.
12248 Use char because int might match the return type of a GCC
12249 builtin and then its argument prototype would still apply. */
12250 #ifdef __cplusplus
12251 extern "C"
12252 #endif
12253 char SmcOpenConnection ();
12254 int
12255 main ()
12256 {
12257 return SmcOpenConnection ();
12258 ;
12259 return 0;
12260 }
12261 _ACEOF
12262 if ac_fn_c_try_link "$LINENO"; then :
12263 ac_cv_lib_SM_SmcOpenConnection=yes
12264 else
12265 ac_cv_lib_SM_SmcOpenConnection=no
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12270 fi
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
12272 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
12273 if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
12274 HAVE_X_SM=yes
12275 fi
12276
12277 fi
12278
12279
12280
12281 if test "${HAVE_X_SM}" = "yes"; then
12282
12283 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
12284
12285 LIBXSM="-lSM -lICE"
12286 case "$LIBS" in
12287 *-lSM*) ;;
12288 *) LIBS="$LIBXSM $LIBS" ;;
12289 esac
12290 fi
12291 fi
12292
12293
12294 ### Use libxml (-lxml2) if available
12295 if test "${with_xml2}" != "no"; then
12296 ### I'm not sure what the version number should be, so I just guessed.
12297
12298 succeeded=no
12299
12300 # Extract the first word of "pkg-config", so it can be a program name with args.
12301 set dummy pkg-config; ac_word=$2
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12303 $as_echo_n "checking for $ac_word... " >&6; }
12304 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307 case $PKG_CONFIG in
12308 [\\/]* | ?:[\\/]*)
12309 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12310 ;;
12311 *)
12312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12313 for as_dir in $PATH
12314 do
12315 IFS=$as_save_IFS
12316 test -z "$as_dir" && as_dir=.
12317 for ac_exec_ext in '' $ac_executable_extensions; do
12318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12319 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12321 break 2
12322 fi
12323 done
12324 done
12325 IFS=$as_save_IFS
12326
12327 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12328 ;;
12329 esac
12330 fi
12331 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12332 if test -n "$PKG_CONFIG"; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12334 $as_echo "$PKG_CONFIG" >&6; }
12335 else
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12337 $as_echo "no" >&6; }
12338 fi
12339
12340
12341
12342 if test "$PKG_CONFIG" = "no" ; then
12343 HAVE_LIBXML2=no
12344 else
12345 PKG_CONFIG_MIN_VERSION=0.9.0
12346 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5
12348 $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; }
12349
12350 if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12352 $as_echo "yes" >&6; }
12353 succeeded=yes
12354
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_CFLAGS" >&5
12356 $as_echo_n "checking LIBXML2_CFLAGS... " >&6; }
12357 LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_CFLAGS" >&5
12359 $as_echo "$LIBXML2_CFLAGS" >&6; }
12360
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML2_LIBS" >&5
12362 $as_echo_n "checking LIBXML2_LIBS... " >&6; }
12363 LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17"|sed -e 's,///*,/,g'`
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML2_LIBS" >&5
12365 $as_echo "$LIBXML2_LIBS" >&6; }
12366 else
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12368 $as_echo "no" >&6; }
12369 LIBXML2_CFLAGS=""
12370 LIBXML2_LIBS=""
12371 ## If we have a custom action on failure, don't print errors, but
12372 ## do set a variable so people can do so.
12373 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 > 2.6.17"`
12374
12375 fi
12376
12377
12378
12379 else
12380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12382 fi
12383 fi
12384
12385 if test $succeeded = yes; then
12386 HAVE_LIBXML2=yes
12387 else
12388 HAVE_LIBXML2=no
12389 fi
12390
12391 if test "${HAVE_LIBXML2}" = "yes"; then
12392 LIBS="$LIBXML2_LIBS $LIBS"
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5
12394 $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; }
12395 if ${ac_cv_lib_xml2_htmlReadMemory+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397 else
12398 ac_check_lib_save_LIBS=$LIBS
12399 LIBS="-lxml2 $LIBS"
12400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12401 /* end confdefs.h. */
12402
12403 /* Override any GCC internal prototype to avoid an error.
12404 Use char because int might match the return type of a GCC
12405 builtin and then its argument prototype would still apply. */
12406 #ifdef __cplusplus
12407 extern "C"
12408 #endif
12409 char htmlReadMemory ();
12410 int
12411 main ()
12412 {
12413 return htmlReadMemory ();
12414 ;
12415 return 0;
12416 }
12417 _ACEOF
12418 if ac_fn_c_try_link "$LINENO"; then :
12419 ac_cv_lib_xml2_htmlReadMemory=yes
12420 else
12421 ac_cv_lib_xml2_htmlReadMemory=no
12422 fi
12423 rm -f core conftest.err conftest.$ac_objext \
12424 conftest$ac_exeext conftest.$ac_ext
12425 LIBS=$ac_check_lib_save_LIBS
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5
12428 $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; }
12429 if test "x$ac_cv_lib_xml2_htmlReadMemory" = xyes; then :
12430 HAVE_LIBXML2=yes
12431 else
12432 HAVE_LIBXML2=no
12433 fi
12434
12435 if test "${HAVE_LIBXML2}" = "yes"; then
12436
12437 $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
12438
12439 else
12440 LIBXML2_LIBS=""
12441 LIBXML2_CFLAGS=""
12442 fi
12443 fi
12444 fi
12445
12446
12447
12448 # If netdb.h doesn't declare h_errno, we must declare it by hand.
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
12450 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
12451 if ${emacs_cv_netdb_declares_h_errno+:} false; then :
12452 $as_echo_n "(cached) " >&6
12453 else
12454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12455 /* end confdefs.h. */
12456 #include <netdb.h>
12457 int
12458 main ()
12459 {
12460 return h_errno;
12461 ;
12462 return 0;
12463 }
12464 _ACEOF
12465 if ac_fn_c_try_link "$LINENO"; then :
12466 emacs_cv_netdb_declares_h_errno=yes
12467 else
12468 emacs_cv_netdb_declares_h_errno=no
12469 fi
12470 rm -f core conftest.err conftest.$ac_objext \
12471 conftest$ac_exeext conftest.$ac_ext
12472 fi
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
12474 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
12475 if test $emacs_cv_netdb_declares_h_errno = yes; then
12476
12477 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
12478
12479 fi
12480
12481 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12482 if test "x$ac_cv_type_size_t" = xyes; then :
12483
12484 else
12485
12486 cat >>confdefs.h <<_ACEOF
12487 #define size_t unsigned int
12488 _ACEOF
12489
12490 fi
12491
12492 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12493 # for constant arguments. Useless!
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12495 $as_echo_n "checking for working alloca.h... " >&6; }
12496 if ${ac_cv_working_alloca_h+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #include <alloca.h>
12502 int
12503 main ()
12504 {
12505 char *p = (char *) alloca (2 * sizeof (int));
12506 if (p) return 0;
12507 ;
12508 return 0;
12509 }
12510 _ACEOF
12511 if ac_fn_c_try_link "$LINENO"; then :
12512 ac_cv_working_alloca_h=yes
12513 else
12514 ac_cv_working_alloca_h=no
12515 fi
12516 rm -f core conftest.err conftest.$ac_objext \
12517 conftest$ac_exeext conftest.$ac_ext
12518 fi
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12520 $as_echo "$ac_cv_working_alloca_h" >&6; }
12521 if test $ac_cv_working_alloca_h = yes; then
12522
12523 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12524
12525 fi
12526
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12528 $as_echo_n "checking for alloca... " >&6; }
12529 if ${ac_cv_func_alloca_works+:} false; then :
12530 $as_echo_n "(cached) " >&6
12531 else
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12534 #ifdef __GNUC__
12535 # define alloca __builtin_alloca
12536 #else
12537 # ifdef _MSC_VER
12538 # include <malloc.h>
12539 # define alloca _alloca
12540 # else
12541 # ifdef HAVE_ALLOCA_H
12542 # include <alloca.h>
12543 # else
12544 # ifdef _AIX
12545 #pragma alloca
12546 # else
12547 # ifndef alloca /* predefined by HP cc +Olibcalls */
12548 void *alloca (size_t);
12549 # endif
12550 # endif
12551 # endif
12552 # endif
12553 #endif
12554
12555 int
12556 main ()
12557 {
12558 char *p = (char *) alloca (1);
12559 if (p) return 0;
12560 ;
12561 return 0;
12562 }
12563 _ACEOF
12564 if ac_fn_c_try_link "$LINENO"; then :
12565 ac_cv_func_alloca_works=yes
12566 else
12567 ac_cv_func_alloca_works=no
12568 fi
12569 rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571 fi
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12573 $as_echo "$ac_cv_func_alloca_works" >&6; }
12574
12575 if test $ac_cv_func_alloca_works = yes; then
12576
12577 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12578
12579 else
12580 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12581 # that cause trouble. Some versions do not even contain alloca or
12582 # contain a buggy version. If you still want to use their alloca,
12583 # use ar to extract alloca.o from them instead of compiling alloca.c.
12584
12585 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12586
12587 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12588
12589
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12591 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12592 if ${ac_cv_os_cray+:} false; then :
12593 $as_echo_n "(cached) " >&6
12594 else
12595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596 /* end confdefs.h. */
12597 #if defined CRAY && ! defined CRAY2
12598 webecray
12599 #else
12600 wenotbecray
12601 #endif
12602
12603 _ACEOF
12604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12605 $EGREP "webecray" >/dev/null 2>&1; then :
12606 ac_cv_os_cray=yes
12607 else
12608 ac_cv_os_cray=no
12609 fi
12610 rm -f conftest*
12611
12612 fi
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12614 $as_echo "$ac_cv_os_cray" >&6; }
12615 if test $ac_cv_os_cray = yes; then
12616 for ac_func in _getb67 GETB67 getb67; do
12617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12618 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12619 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12620
12621 cat >>confdefs.h <<_ACEOF
12622 #define CRAY_STACKSEG_END $ac_func
12623 _ACEOF
12624
12625 break
12626 fi
12627
12628 done
12629 fi
12630
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12632 $as_echo_n "checking stack direction for C alloca... " >&6; }
12633 if ${ac_cv_c_stack_direction+:} false; then :
12634 $as_echo_n "(cached) " >&6
12635 else
12636 if test "$cross_compiling" = yes; then :
12637 ac_cv_c_stack_direction=0
12638 else
12639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12640 /* end confdefs.h. */
12641 $ac_includes_default
12642 int
12643 find_stack_direction ()
12644 {
12645 static char *addr = 0;
12646 auto char dummy;
12647 if (addr == 0)
12648 {
12649 addr = &dummy;
12650 return find_stack_direction ();
12651 }
12652 else
12653 return (&dummy > addr) ? 1 : -1;
12654 }
12655
12656 int
12657 main ()
12658 {
12659 return find_stack_direction () < 0;
12660 }
12661 _ACEOF
12662 if ac_fn_c_try_run "$LINENO"; then :
12663 ac_cv_c_stack_direction=1
12664 else
12665 ac_cv_c_stack_direction=-1
12666 fi
12667 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12668 conftest.$ac_objext conftest.beam conftest.$ac_ext
12669 fi
12670
12671 fi
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12673 $as_echo "$ac_cv_c_stack_direction" >&6; }
12674 cat >>confdefs.h <<_ACEOF
12675 #define STACK_DIRECTION $ac_cv_c_stack_direction
12676 _ACEOF
12677
12678
12679 fi
12680
12681
12682 if test x"$ac_cv_func_alloca_works" != xyes; then
12683 as_fn_error $? "a system implementation of alloca is required " "$LINENO" 5
12684 fi
12685
12686 # fmod, logb, and frexp are found in -lm on most systems.
12687 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
12689 $as_echo_n "checking for sqrt in -lm... " >&6; }
12690 if ${ac_cv_lib_m_sqrt+:} false; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 ac_check_lib_save_LIBS=$LIBS
12694 LIBS="-lm $LIBS"
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12697
12698 /* Override any GCC internal prototype to avoid an error.
12699 Use char because int might match the return type of a GCC
12700 builtin and then its argument prototype would still apply. */
12701 #ifdef __cplusplus
12702 extern "C"
12703 #endif
12704 char sqrt ();
12705 int
12706 main ()
12707 {
12708 return sqrt ();
12709 ;
12710 return 0;
12711 }
12712 _ACEOF
12713 if ac_fn_c_try_link "$LINENO"; then :
12714 ac_cv_lib_m_sqrt=yes
12715 else
12716 ac_cv_lib_m_sqrt=no
12717 fi
12718 rm -f core conftest.err conftest.$ac_objext \
12719 conftest$ac_exeext conftest.$ac_ext
12720 LIBS=$ac_check_lib_save_LIBS
12721 fi
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
12723 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
12724 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
12725 cat >>confdefs.h <<_ACEOF
12726 #define HAVE_LIBM 1
12727 _ACEOF
12728
12729 LIBS="-lm $LIBS"
12730
12731 fi
12732
12733
12734 # Check for mail-locking functions in a "mail" library. Probably this should
12735 # have the same check as for liblockfile below.
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
12737 $as_echo_n "checking for maillock in -lmail... " >&6; }
12738 if ${ac_cv_lib_mail_maillock+:} false; then :
12739 $as_echo_n "(cached) " >&6
12740 else
12741 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lmail $LIBS"
12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* end confdefs.h. */
12745
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12749 #ifdef __cplusplus
12750 extern "C"
12751 #endif
12752 char maillock ();
12753 int
12754 main ()
12755 {
12756 return maillock ();
12757 ;
12758 return 0;
12759 }
12760 _ACEOF
12761 if ac_fn_c_try_link "$LINENO"; then :
12762 ac_cv_lib_mail_maillock=yes
12763 else
12764 ac_cv_lib_mail_maillock=no
12765 fi
12766 rm -f core conftest.err conftest.$ac_objext \
12767 conftest$ac_exeext conftest.$ac_ext
12768 LIBS=$ac_check_lib_save_LIBS
12769 fi
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
12771 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
12772 if test "x$ac_cv_lib_mail_maillock" = xyes; then :
12773 have_mail=yes
12774 else
12775 have_mail=no
12776 fi
12777
12778 if test $have_mail = yes; then
12779 LIBS_MAIL=-lmail
12780 LIBS="$LIBS_MAIL $LIBS"
12781
12782 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
12783
12784 else
12785 LIBS_MAIL=
12786 fi
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
12788 $as_echo_n "checking for maillock in -llockfile... " >&6; }
12789 if ${ac_cv_lib_lockfile_maillock+:} false; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 ac_check_lib_save_LIBS=$LIBS
12793 LIBS="-llockfile $LIBS"
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796
12797 /* Override any GCC internal prototype to avoid an error.
12798 Use char because int might match the return type of a GCC
12799 builtin and then its argument prototype would still apply. */
12800 #ifdef __cplusplus
12801 extern "C"
12802 #endif
12803 char maillock ();
12804 int
12805 main ()
12806 {
12807 return maillock ();
12808 ;
12809 return 0;
12810 }
12811 _ACEOF
12812 if ac_fn_c_try_link "$LINENO"; then :
12813 ac_cv_lib_lockfile_maillock=yes
12814 else
12815 ac_cv_lib_lockfile_maillock=no
12816 fi
12817 rm -f core conftest.err conftest.$ac_objext \
12818 conftest$ac_exeext conftest.$ac_ext
12819 LIBS=$ac_check_lib_save_LIBS
12820 fi
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
12822 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
12823 if test "x$ac_cv_lib_lockfile_maillock" = xyes; then :
12824 have_lockfile=yes
12825 else
12826 have_lockfile=no
12827 fi
12828
12829 if test $have_lockfile = yes; then
12830 LIBS_MAIL=-llockfile
12831 LIBS="$LIBS_MAIL $LIBS"
12832
12833 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
12834
12835 else
12836 # If we have the shared liblockfile, assume we must use it for mail
12837 # locking (e.g. Debian). If we couldn't link against liblockfile
12838 # (no liblockfile.a installed), ensure that we don't need to.
12839 # Extract the first word of "liblockfile.so", so it can be a program name with args.
12840 set dummy liblockfile.so; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12842 $as_echo_n "checking for $ac_word... " >&6; }
12843 if ${ac_cv_prog_liblockfile+:} false; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 if test -n "$liblockfile"; then
12847 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
12848 else
12849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
12851 for as_dir in $as_dummy
12852 do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857 ac_cv_prog_liblockfile="yes"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12859 break 2
12860 fi
12861 done
12862 done
12863 IFS=$as_save_IFS
12864
12865 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
12866 fi
12867 fi
12868 liblockfile=$ac_cv_prog_liblockfile
12869 if test -n "$liblockfile"; then
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
12871 $as_echo "$liblockfile" >&6; }
12872 else
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874 $as_echo "no" >&6; }
12875 fi
12876
12877
12878 if test $ac_cv_prog_liblockfile = yes; then
12879 as_fn_error $? "Shared liblockfile found but can't link against it.
12880 This probably means that movemail could lose mail.
12881 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
12882 fi
12883 fi
12884 for ac_func in touchlock
12885 do :
12886 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
12887 if test "x$ac_cv_func_touchlock" = xyes; then :
12888 cat >>confdefs.h <<_ACEOF
12889 #define HAVE_TOUCHLOCK 1
12890 _ACEOF
12891
12892 fi
12893 done
12894
12895 for ac_header in maillock.h
12896 do :
12897 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
12898 if test "x$ac_cv_header_maillock_h" = xyes; then :
12899 cat >>confdefs.h <<_ACEOF
12900 #define HAVE_MAILLOCK_H 1
12901 _ACEOF
12902
12903 fi
12904
12905 done
12906
12907
12908
12909 ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to
12910 ## interlock access to the mail spool. The alternative is a lock file named
12911 ## /usr/spool/mail/$USER.lock.
12912 mail_lock=no
12913 case "$opsys" in
12914 aix4-2) mail_lock="lockf" ;;
12915
12916 gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;;
12917
12918 ## On GNU/Linux systems, both methods are used by various mail programs.
12919 ## I assume most people are using newer mailers that have heard of flock.
12920 ## Change this if you need to.
12921 ## Debian contains a patch which says: ``On Debian/GNU/Linux systems,
12922 ## configure gets the right answers, and that means *NOT* using flock.
12923 ## Using flock is guaranteed to be the wrong thing. See Debian Policy
12924 ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the
12925 ## Debian maintainer hasn't provided a clean fix for Emacs.
12926 ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and
12927 ## HAVE_MAILLOCK_H are defined, so the following appears to be the
12928 ## correct logic. -- fx
12929 ## We must check for HAVE_LIBLOCKFILE too, as movemail does.
12930 ## liblockfile is a Free Software replacement for libmail, used on
12931 ## Debian systems and elsewhere. -rfr.
12932 gnu-*)
12933 mail_lock="flock"
12934 if test $have_mail = yes || test $have_lockfile = yes; then
12935 test $ac_cv_header_maillock_h = yes && mail_lock=no
12936 fi
12937 ;;
12938 esac
12939
12940 BLESSMAIL_TARGET=
12941 case "$mail_lock" in
12942 flock)
12943 $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h
12944 ;;
12945
12946 lockf)
12947 $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h
12948 ;;
12949
12950 *) BLESSMAIL_TARGET="need-blessmail" ;;
12951 esac
12952
12953
12954
12955 for ac_func in gethostname getdomainname dup2 \
12956 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
12957 random lrand48 logb frexp fmod rint cbrt ftime setsid \
12958 strerror fpathconf select euidaccess getpagesize tzset setlocale \
12959 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
12960 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm strchr strrchr \
12961 sendto recvfrom getsockopt setsockopt getsockname getpeername \
12962 gai_strerror mkstemp getline getdelim mremap memmove fsync sync \
12963 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
12964 cfmakeraw cfsetspeed isnan copysign __executable_start
12965 do :
12966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12968 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12969 cat >>confdefs.h <<_ACEOF
12970 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12971 _ACEOF
12972
12973 fi
12974 done
12975
12976
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5
12978 $as_echo_n "checking for __builtin_unwind_init... " >&6; }
12979 if ${emacs_cv_func___builtin_unwind_init+:} false; then :
12980 $as_echo_n "(cached) " >&6
12981 else
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12983 /* end confdefs.h. */
12984
12985 int
12986 main ()
12987 {
12988 __builtin_unwind_init ();
12989 ;
12990 return 0;
12991 }
12992 _ACEOF
12993 if ac_fn_c_try_link "$LINENO"; then :
12994 emacs_cv_func___builtin_unwind_init=yes
12995 else
12996 emacs_cv_func___builtin_unwind_init=no
12997 fi
12998 rm -f core conftest.err conftest.$ac_objext \
12999 conftest$ac_exeext conftest.$ac_ext
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5
13002 $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; }
13003 if test $emacs_cv_func___builtin_unwind_init = yes; then
13004
13005 $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h
13006
13007 fi
13008
13009 for ac_header in sys/un.h
13010 do :
13011 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
13012 if test "x$ac_cv_header_sys_un_h" = xyes; then :
13013 cat >>confdefs.h <<_ACEOF
13014 #define HAVE_SYS_UN_H 1
13015 _ACEOF
13016
13017 fi
13018
13019 done
13020
13021
13022 ac_have_func=no # yes means we've found a way to get the load average.
13023
13024 # Make sure getloadavg.c is where it belongs, at configure-time.
13025 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
13026 as_fn_error $? "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
13027
13028 ac_save_LIBS=$LIBS
13029
13030 # Check for getloadavg, but be sure not to touch the cache variable.
13031 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13032 if test "x$ac_cv_func_getloadavg" = xyes; then :
13033 exit 0
13034 else
13035 exit 1
13036 fi
13037 ) && ac_have_func=yes
13038
13039 # On HPUX9, an unprivileged user can get load averages through this function.
13040 for ac_func in pstat_getdynamic
13041 do :
13042 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
13043 if test "x$ac_cv_func_pstat_getdynamic" = xyes; then :
13044 cat >>confdefs.h <<_ACEOF
13045 #define HAVE_PSTAT_GETDYNAMIC 1
13046 _ACEOF
13047
13048 fi
13049 done
13050
13051
13052 # Solaris has libkstat which does not require root.
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
13054 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
13055 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058 ac_check_lib_save_LIBS=$LIBS
13059 LIBS="-lkstat $LIBS"
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062
13063 /* Override any GCC internal prototype to avoid an error.
13064 Use char because int might match the return type of a GCC
13065 builtin and then its argument prototype would still apply. */
13066 #ifdef __cplusplus
13067 extern "C"
13068 #endif
13069 char kstat_open ();
13070 int
13071 main ()
13072 {
13073 return kstat_open ();
13074 ;
13075 return 0;
13076 }
13077 _ACEOF
13078 if ac_fn_c_try_link "$LINENO"; then :
13079 ac_cv_lib_kstat_kstat_open=yes
13080 else
13081 ac_cv_lib_kstat_kstat_open=no
13082 fi
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085 LIBS=$ac_check_lib_save_LIBS
13086 fi
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
13088 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
13089 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
13090 cat >>confdefs.h <<_ACEOF
13091 #define HAVE_LIBKSTAT 1
13092 _ACEOF
13093
13094 LIBS="-lkstat $LIBS"
13095
13096 fi
13097
13098 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
13099
13100 # Some systems with -lutil have (and need) -lkvm as well, some do not.
13101 # On Solaris, -lkvm requires nlist from -lelf, so check that first
13102 # to get the right answer into the cache.
13103 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
13104 if test $ac_have_func = no; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
13106 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
13107 if ${ac_cv_lib_elf_elf_begin+:} false; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 ac_check_lib_save_LIBS=$LIBS
13111 LIBS="-lelf $LIBS"
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114
13115 /* Override any GCC internal prototype to avoid an error.
13116 Use char because int might match the return type of a GCC
13117 builtin and then its argument prototype would still apply. */
13118 #ifdef __cplusplus
13119 extern "C"
13120 #endif
13121 char elf_begin ();
13122 int
13123 main ()
13124 {
13125 return elf_begin ();
13126 ;
13127 return 0;
13128 }
13129 _ACEOF
13130 if ac_fn_c_try_link "$LINENO"; then :
13131 ac_cv_lib_elf_elf_begin=yes
13132 else
13133 ac_cv_lib_elf_elf_begin=no
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext \
13136 conftest$ac_exeext conftest.$ac_ext
13137 LIBS=$ac_check_lib_save_LIBS
13138 fi
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
13140 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
13141 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
13142 LIBS="-lelf $LIBS"
13143 fi
13144
13145 fi
13146 if test $ac_have_func = no; then
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
13148 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
13149 if ${ac_cv_lib_kvm_kvm_open+:} false; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 ac_check_lib_save_LIBS=$LIBS
13153 LIBS="-lkvm $LIBS"
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156
13157 /* Override any GCC internal prototype to avoid an error.
13158 Use char because int might match the return type of a GCC
13159 builtin and then its argument prototype would still apply. */
13160 #ifdef __cplusplus
13161 extern "C"
13162 #endif
13163 char kvm_open ();
13164 int
13165 main ()
13166 {
13167 return kvm_open ();
13168 ;
13169 return 0;
13170 }
13171 _ACEOF
13172 if ac_fn_c_try_link "$LINENO"; then :
13173 ac_cv_lib_kvm_kvm_open=yes
13174 else
13175 ac_cv_lib_kvm_kvm_open=no
13176 fi
13177 rm -f core conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
13179 LIBS=$ac_check_lib_save_LIBS
13180 fi
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
13182 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
13183 if test "x$ac_cv_lib_kvm_kvm_open" = xyes; then :
13184 LIBS="-lkvm $LIBS"
13185 fi
13186
13187 # Check for the 4.4BSD definition of getloadavg.
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
13189 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
13190 if ${ac_cv_lib_util_getloadavg+:} false; then :
13191 $as_echo_n "(cached) " >&6
13192 else
13193 ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-lutil $LIBS"
13195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196 /* end confdefs.h. */
13197
13198 /* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
13201 #ifdef __cplusplus
13202 extern "C"
13203 #endif
13204 char getloadavg ();
13205 int
13206 main ()
13207 {
13208 return getloadavg ();
13209 ;
13210 return 0;
13211 }
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13214 ac_cv_lib_util_getloadavg=yes
13215 else
13216 ac_cv_lib_util_getloadavg=no
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13220 LIBS=$ac_check_lib_save_LIBS
13221 fi
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
13223 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
13224 if test "x$ac_cv_lib_util_getloadavg" = xyes; then :
13225 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
13226 fi
13227
13228 fi
13229
13230 if test $ac_have_func = no; then
13231 # There is a commonly available library for RS/6000 AIX.
13232 # Since it is not a standard part of AIX, it might be installed locally.
13233 ac_getloadavg_LIBS=$LIBS
13234 LIBS="-L/usr/local/lib $LIBS"
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
13236 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
13237 if ${ac_cv_lib_getloadavg_getloadavg+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 ac_check_lib_save_LIBS=$LIBS
13241 LIBS="-lgetloadavg $LIBS"
13242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13244
13245 /* Override any GCC internal prototype to avoid an error.
13246 Use char because int might match the return type of a GCC
13247 builtin and then its argument prototype would still apply. */
13248 #ifdef __cplusplus
13249 extern "C"
13250 #endif
13251 char getloadavg ();
13252 int
13253 main ()
13254 {
13255 return getloadavg ();
13256 ;
13257 return 0;
13258 }
13259 _ACEOF
13260 if ac_fn_c_try_link "$LINENO"; then :
13261 ac_cv_lib_getloadavg_getloadavg=yes
13262 else
13263 ac_cv_lib_getloadavg_getloadavg=no
13264 fi
13265 rm -f core conftest.err conftest.$ac_objext \
13266 conftest$ac_exeext conftest.$ac_ext
13267 LIBS=$ac_check_lib_save_LIBS
13268 fi
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
13270 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
13271 if test "x$ac_cv_lib_getloadavg_getloadavg" = xyes; then :
13272 LIBS="-lgetloadavg $LIBS"
13273 else
13274 LIBS=$ac_getloadavg_LIBS
13275 fi
13276
13277 fi
13278
13279 # Make sure it is really in the library, if we think we found it,
13280 # otherwise set up the replacement function.
13281 for ac_func in getloadavg
13282 do :
13283 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
13284 if test "x$ac_cv_func_getloadavg" = xyes; then :
13285 cat >>confdefs.h <<_ACEOF
13286 #define HAVE_GETLOADAVG 1
13287 _ACEOF
13288
13289 else
13290 case " $LIBOBJS " in
13291 *" getloadavg.$ac_objext "* ) ;;
13292 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
13293 ;;
13294 esac
13295
13296
13297 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
13298
13299 # Figure out what our getloadavg.c needs.
13300 ac_have_func=no
13301 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
13302 if test "x$ac_cv_header_sys_dg_sys_info_h" = xyes; then :
13303 ac_have_func=yes
13304
13305 $as_echo "#define DGUX 1" >>confdefs.h
13306
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
13308 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
13309 if ${ac_cv_lib_dgc_dg_sys_info+:} false; then :
13310 $as_echo_n "(cached) " >&6
13311 else
13312 ac_check_lib_save_LIBS=$LIBS
13313 LIBS="-ldgc $LIBS"
13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h. */
13316
13317 /* Override any GCC internal prototype to avoid an error.
13318 Use char because int might match the return type of a GCC
13319 builtin and then its argument prototype would still apply. */
13320 #ifdef __cplusplus
13321 extern "C"
13322 #endif
13323 char dg_sys_info ();
13324 int
13325 main ()
13326 {
13327 return dg_sys_info ();
13328 ;
13329 return 0;
13330 }
13331 _ACEOF
13332 if ac_fn_c_try_link "$LINENO"; then :
13333 ac_cv_lib_dgc_dg_sys_info=yes
13334 else
13335 ac_cv_lib_dgc_dg_sys_info=no
13336 fi
13337 rm -f core conftest.err conftest.$ac_objext \
13338 conftest$ac_exeext conftest.$ac_ext
13339 LIBS=$ac_check_lib_save_LIBS
13340 fi
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
13342 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
13343 if test "x$ac_cv_lib_dgc_dg_sys_info" = xyes; then :
13344 cat >>confdefs.h <<_ACEOF
13345 #define HAVE_LIBDGC 1
13346 _ACEOF
13347
13348 LIBS="-ldgc $LIBS"
13349
13350 fi
13351
13352 fi
13353
13354
13355
13356 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
13357 if test "x$ac_cv_header_locale_h" = xyes; then :
13358
13359 fi
13360
13361
13362 for ac_func in setlocale
13363 do :
13364 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
13365 if test "x$ac_cv_func_setlocale" = xyes; then :
13366 cat >>confdefs.h <<_ACEOF
13367 #define HAVE_SETLOCALE 1
13368 _ACEOF
13369
13370 fi
13371 done
13372
13373
13374 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
13375 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
13376 # Irix 4.0.5F has the header but not the library.
13377 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes \
13378 && test "$ac_cv_lib_kvm_kvm_open" = yes; then
13379 ac_have_func=yes
13380
13381 $as_echo "#define SVR4 1" >>confdefs.h
13382
13383 fi
13384
13385 if test $ac_have_func = no; then
13386 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
13387 if test "x$ac_cv_header_inq_stats_cpustats_h" = xyes; then :
13388 ac_have_func=yes
13389
13390 $as_echo "#define UMAX 1" >>confdefs.h
13391
13392
13393 $as_echo "#define UMAX4_3 1" >>confdefs.h
13394
13395 fi
13396
13397
13398 fi
13399
13400 if test $ac_have_func = no; then
13401 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
13402 if test "x$ac_cv_header_sys_cpustats_h" = xyes; then :
13403 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
13404
13405 fi
13406
13407
13408 fi
13409
13410 if test $ac_have_func = no; then
13411 for ac_header in mach/mach.h
13412 do :
13413 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
13414 if test "x$ac_cv_header_mach_mach_h" = xyes; then :
13415 cat >>confdefs.h <<_ACEOF
13416 #define HAVE_MACH_MACH_H 1
13417 _ACEOF
13418
13419 fi
13420
13421 done
13422
13423 fi
13424
13425 for ac_header in nlist.h
13426 do :
13427 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
13428 if test "x$ac_cv_header_nlist_h" = xyes; then :
13429 cat >>confdefs.h <<_ACEOF
13430 #define HAVE_NLIST_H 1
13431 _ACEOF
13432 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
13433 "
13434 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = xyes; then :
13435
13436 cat >>confdefs.h <<_ACEOF
13437 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
13438 _ACEOF
13439
13440
13441 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
13442
13443 fi
13444
13445
13446 fi
13447
13448 done
13449
13450 fi
13451 done
13452
13453
13454 # Some definitions of getloadavg require that the program be installed setgid.
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
13456 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
13457 if ${ac_cv_func_getloadavg_setgid+:} false; then :
13458 $as_echo_n "(cached) " >&6
13459 else
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
13463 #ifdef LDAV_PRIVILEGED
13464 Yowza Am I SETGID yet
13465 #endif
13466 _ACEOF
13467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13468 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
13469 ac_cv_func_getloadavg_setgid=yes
13470 else
13471 ac_cv_func_getloadavg_setgid=no
13472 fi
13473 rm -f conftest*
13474
13475 fi
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
13477 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
13478 if test $ac_cv_func_getloadavg_setgid = yes; then
13479 NEED_SETGID=true
13480
13481 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
13482
13483 else
13484 NEED_SETGID=false
13485 fi
13486
13487 if test $ac_cv_func_getloadavg_setgid = yes; then
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
13489 $as_echo_n "checking group of /dev/kmem... " >&6; }
13490 if ${ac_cv_group_kmem+:} false; then :
13491 $as_echo_n "(cached) " >&6
13492 else
13493 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
13494 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
13495 # If we got an error (system does not support symlinks), try without -L.
13496 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
13497 ac_cv_group_kmem=`$as_echo "$ac_ls_output" \
13498 | sed -ne 's/[ ][ ]*/ /g;
13499 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
13500 / /s/.* //;p;'`
13501
13502 fi
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
13504 $as_echo "$ac_cv_group_kmem" >&6; }
13505 KMEM_GROUP=$ac_cv_group_kmem
13506 fi
13507 if test "x$ac_save_LIBS" = x; then
13508 GETLOADAVG_LIBS=$LIBS
13509 else
13510 GETLOADAVG_LIBS=`$as_echo "$LIBS" | sed "s|$ac_save_LIBS||"`
13511 fi
13512 LIBS=$ac_save_LIBS
13513
13514
13515
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
13517 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
13518 if ${ac_cv_sys_largefile_source+:} false; then :
13519 $as_echo_n "(cached) " >&6
13520 else
13521 while :; do
13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13523 /* end confdefs.h. */
13524 #include <sys/types.h> /* for off_t */
13525 #include <stdio.h>
13526 int
13527 main ()
13528 {
13529 int (*fp) (FILE *, off_t, int) = fseeko;
13530 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13531 ;
13532 return 0;
13533 }
13534 _ACEOF
13535 if ac_fn_c_try_link "$LINENO"; then :
13536 ac_cv_sys_largefile_source=no; break
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext \
13539 conftest$ac_exeext conftest.$ac_ext
13540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13541 /* end confdefs.h. */
13542 #define _LARGEFILE_SOURCE 1
13543 #include <sys/types.h> /* for off_t */
13544 #include <stdio.h>
13545 int
13546 main ()
13547 {
13548 int (*fp) (FILE *, off_t, int) = fseeko;
13549 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
13550 ;
13551 return 0;
13552 }
13553 _ACEOF
13554 if ac_fn_c_try_link "$LINENO"; then :
13555 ac_cv_sys_largefile_source=1; break
13556 fi
13557 rm -f core conftest.err conftest.$ac_objext \
13558 conftest$ac_exeext conftest.$ac_ext
13559 ac_cv_sys_largefile_source=unknown
13560 break
13561 done
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
13564 $as_echo "$ac_cv_sys_largefile_source" >&6; }
13565 case $ac_cv_sys_largefile_source in #(
13566 no | unknown) ;;
13567 *)
13568 cat >>confdefs.h <<_ACEOF
13569 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
13570 _ACEOF
13571 ;;
13572 esac
13573 rm -rf conftest*
13574
13575 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
13576 # in glibc 2.1.3, but that breaks too many other things.
13577 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
13578 if test $ac_cv_sys_largefile_source != unknown; then
13579
13580 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
13581
13582 fi
13583
13584
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
13586 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
13587 if ${ac_cv_func_getpgrp_void+:} false; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 # Use it with a single arg.
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 $ac_includes_default
13594 int
13595 main ()
13596 {
13597 getpgrp (0);
13598 ;
13599 return 0;
13600 }
13601 _ACEOF
13602 if ac_fn_c_try_compile "$LINENO"; then :
13603 ac_cv_func_getpgrp_void=no
13604 else
13605 ac_cv_func_getpgrp_void=yes
13606 fi
13607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608
13609 fi
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
13611 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
13612 if test $ac_cv_func_getpgrp_void = yes; then
13613
13614 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
13615
13616 fi
13617
13618
13619 # Configure gnulib.
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630 LIBC_FATAL_STDERR_=1
13631 export LIBC_FATAL_STDERR_
13632
13633
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5
13635 $as_echo_n "checking whether strtold conforms to C99... " >&6; }
13636 if ${gl_cv_func_c99_strtold+:} false; then :
13637 $as_echo_n "(cached) " >&6
13638 else
13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13640 /* end confdefs.h. */
13641 /* On HP-UX before 11.23, strtold returns a struct instead of
13642 long double. Reject implementations like that, by requiring
13643 compatibility with the C99 prototype. */
13644 #include <stdlib.h>
13645 static long double (*p) (char const *, char **) = strtold;
13646 static long double
13647 test (char const *nptr, char **endptr)
13648 {
13649 long double r;
13650 r = strtold (nptr, endptr);
13651 return r;
13652 }
13653 int
13654 main ()
13655 {
13656 return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1;
13657 ;
13658 return 0;
13659 }
13660 _ACEOF
13661 if ac_fn_c_try_link "$LINENO"; then :
13662 gl_cv_func_c99_strtold=yes
13663 else
13664 gl_cv_func_c99_strtold=no
13665 fi
13666 rm -f core conftest.err conftest.$ac_objext \
13667 conftest$ac_exeext conftest.$ac_ext
13668 fi
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5
13670 $as_echo "$gl_cv_func_c99_strtold" >&6; }
13671 if test $gl_cv_func_c99_strtold = yes; then
13672
13673 $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h
13674
13675 fi
13676
13677
13678 GNULIB_CHOWN=0;
13679 GNULIB_CLOSE=0;
13680 GNULIB_DUP2=0;
13681 GNULIB_DUP3=0;
13682 GNULIB_ENVIRON=0;
13683 GNULIB_EUIDACCESS=0;
13684 GNULIB_FACCESSAT=0;
13685 GNULIB_FCHDIR=0;
13686 GNULIB_FCHOWNAT=0;
13687 GNULIB_FSYNC=0;
13688 GNULIB_FTRUNCATE=0;
13689 GNULIB_GETCWD=0;
13690 GNULIB_GETDOMAINNAME=0;
13691 GNULIB_GETDTABLESIZE=0;
13692 GNULIB_GETGROUPS=0;
13693 GNULIB_GETHOSTNAME=0;
13694 GNULIB_GETLOGIN=0;
13695 GNULIB_GETLOGIN_R=0;
13696 GNULIB_GETPAGESIZE=0;
13697 GNULIB_GETUSERSHELL=0;
13698 GNULIB_LCHOWN=0;
13699 GNULIB_LINK=0;
13700 GNULIB_LINKAT=0;
13701 GNULIB_LSEEK=0;
13702 GNULIB_PIPE=0;
13703 GNULIB_PIPE2=0;
13704 GNULIB_PREAD=0;
13705 GNULIB_PWRITE=0;
13706 GNULIB_READLINK=0;
13707 GNULIB_READLINKAT=0;
13708 GNULIB_RMDIR=0;
13709 GNULIB_SLEEP=0;
13710 GNULIB_SYMLINK=0;
13711 GNULIB_SYMLINKAT=0;
13712 GNULIB_TTYNAME_R=0;
13713 GNULIB_UNISTD_H_GETOPT=0;
13714 GNULIB_UNISTD_H_SIGPIPE=0;
13715 GNULIB_UNLINK=0;
13716 GNULIB_UNLINKAT=0;
13717 GNULIB_USLEEP=0;
13718 GNULIB_WRITE=0;
13719 HAVE_CHOWN=1;
13720 HAVE_DUP2=1;
13721 HAVE_DUP3=1;
13722 HAVE_EUIDACCESS=1;
13723 HAVE_FACCESSAT=1;
13724 HAVE_FCHDIR=1;
13725 HAVE_FCHOWNAT=1;
13726 HAVE_FSYNC=1;
13727 HAVE_FTRUNCATE=1;
13728 HAVE_GETDTABLESIZE=1;
13729 HAVE_GETGROUPS=1;
13730 HAVE_GETHOSTNAME=1;
13731 HAVE_GETLOGIN=1;
13732 HAVE_GETPAGESIZE=1;
13733 HAVE_LCHOWN=1;
13734 HAVE_LINK=1;
13735 HAVE_LINKAT=1;
13736 HAVE_PIPE=1;
13737 HAVE_PIPE2=1;
13738 HAVE_PREAD=1;
13739 HAVE_PWRITE=1;
13740 HAVE_READLINK=1;
13741 HAVE_READLINKAT=1;
13742 HAVE_SLEEP=1;
13743 HAVE_SYMLINK=1;
13744 HAVE_SYMLINKAT=1;
13745 HAVE_UNLINKAT=1;
13746 HAVE_USLEEP=1;
13747 HAVE_DECL_ENVIRON=1;
13748 HAVE_DECL_FCHDIR=1;
13749 HAVE_DECL_GETDOMAINNAME=1;
13750 HAVE_DECL_GETLOGIN_R=1;
13751 HAVE_DECL_GETPAGESIZE=1;
13752 HAVE_DECL_GETUSERSHELL=1;
13753 HAVE_DECL_TTYNAME_R=1;
13754 HAVE_OS_H=0;
13755 HAVE_SYS_PARAM_H=0;
13756 REPLACE_CHOWN=0;
13757 REPLACE_CLOSE=0;
13758 REPLACE_DUP=0;
13759 REPLACE_DUP2=0;
13760 REPLACE_FCHOWNAT=0;
13761 REPLACE_GETCWD=0;
13762 REPLACE_GETDOMAINNAME=0;
13763 REPLACE_GETLOGIN_R=0;
13764 REPLACE_GETGROUPS=0;
13765 REPLACE_GETPAGESIZE=0;
13766 REPLACE_LCHOWN=0;
13767 REPLACE_LINK=0;
13768 REPLACE_LINKAT=0;
13769 REPLACE_LSEEK=0;
13770 REPLACE_PREAD=0;
13771 REPLACE_PWRITE=0;
13772 REPLACE_READLINK=0;
13773 REPLACE_RMDIR=0;
13774 REPLACE_SLEEP=0;
13775 REPLACE_SYMLINK=0;
13776 REPLACE_TTYNAME_R=0;
13777 REPLACE_UNLINK=0;
13778 REPLACE_UNLINKAT=0;
13779 REPLACE_USLEEP=0;
13780 REPLACE_WRITE=0;
13781 UNISTD_H_HAVE_WINSOCK2_H=0;
13782 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
13783
13784
13785
13786
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
13788 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
13789 if ${gl_cv_have_include_next+:} false; then :
13790 $as_echo_n "(cached) " >&6
13791 else
13792 rm -rf conftestd1a conftestd1b conftestd2
13793 mkdir conftestd1a conftestd1b conftestd2
13794 cat <<EOF > conftestd1a/conftest.h
13795 #define DEFINED_IN_CONFTESTD1
13796 #include_next <conftest.h>
13797 #ifdef DEFINED_IN_CONFTESTD2
13798 int foo;
13799 #else
13800 #error "include_next doesn't work"
13801 #endif
13802 EOF
13803 cat <<EOF > conftestd1b/conftest.h
13804 #define DEFINED_IN_CONFTESTD1
13805 #include <stdio.h>
13806 #include_next <conftest.h>
13807 #ifdef DEFINED_IN_CONFTESTD2
13808 int foo;
13809 #else
13810 #error "include_next doesn't work"
13811 #endif
13812 EOF
13813 cat <<EOF > conftestd2/conftest.h
13814 #ifndef DEFINED_IN_CONFTESTD1
13815 #error "include_next test doesn't work"
13816 #endif
13817 #define DEFINED_IN_CONFTESTD2
13818 EOF
13819 gl_save_CPPFLAGS="$CPPFLAGS"
13820 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823 #include <conftest.h>
13824 _ACEOF
13825 if ac_fn_c_try_compile "$LINENO"; then :
13826 gl_cv_have_include_next=yes
13827 else
13828 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831 #include <conftest.h>
13832 _ACEOF
13833 if ac_fn_c_try_compile "$LINENO"; then :
13834 gl_cv_have_include_next=buggy
13835 else
13836 gl_cv_have_include_next=no
13837 fi
13838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13839
13840 fi
13841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13842 CPPFLAGS="$gl_save_CPPFLAGS"
13843 rm -rf conftestd1a conftestd1b conftestd2
13844
13845 fi
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
13847 $as_echo "$gl_cv_have_include_next" >&6; }
13848 PRAGMA_SYSTEM_HEADER=
13849 if test $gl_cv_have_include_next = yes; then
13850 INCLUDE_NEXT=include_next
13851 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13852 if test -n "$GCC"; then
13853 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
13854 fi
13855 else
13856 if test $gl_cv_have_include_next = buggy; then
13857 INCLUDE_NEXT=include
13858 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
13859 else
13860 INCLUDE_NEXT=include
13861 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
13862 fi
13863 fi
13864
13865
13866
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
13868 $as_echo_n "checking whether system header files limit the line length... " >&6; }
13869 if ${gl_cv_pragma_columns+:} false; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874
13875 #ifdef __TANDEM
13876 choke me
13877 #endif
13878
13879 _ACEOF
13880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13881 $EGREP "choke me" >/dev/null 2>&1; then :
13882 gl_cv_pragma_columns=yes
13883 else
13884 gl_cv_pragma_columns=no
13885 fi
13886 rm -f conftest*
13887
13888
13889 fi
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
13891 $as_echo "$gl_cv_pragma_columns" >&6; }
13892 if test $gl_cv_pragma_columns = yes; then
13893 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
13894 else
13895 PRAGMA_COLUMNS=
13896 fi
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914 if test $gl_cv_have_include_next = yes; then
13915 gl_cv_next_getopt_h='<'getopt.h'>'
13916 else
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13918 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
13919 if ${gl_cv_next_getopt_h+:} false; then :
13920 $as_echo_n "(cached) " >&6
13921 else
13922
13923 if test $ac_cv_header_getopt_h = yes; then
13924
13925
13926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13927 /* end confdefs.h. */
13928 #include <getopt.h>
13929
13930 _ACEOF
13931 case "$host_os" in
13932 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13933 *) gl_absname_cpp="$ac_cpp" ;;
13934 esac
13935 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13936 sed -n '\#/getopt.h#{
13937 s#.*"\(.*/getopt.h\)".*#\1#
13938 s#^/[^/]#//&#
13939 p
13940 q
13941 }'`'"'
13942 else
13943 gl_cv_next_getopt_h='<'getopt.h'>'
13944 fi
13945
13946
13947 fi
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13949 $as_echo "$gl_cv_next_getopt_h" >&6; }
13950 fi
13951 NEXT_GETOPT_H=$gl_cv_next_getopt_h
13952
13953 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13955 gl_next_as_first_directive='<'getopt.h'>'
13956 else
13957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13958 gl_next_as_first_directive=$gl_cv_next_getopt_h
13959 fi
13960 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13961
13962
13963
13964
13965 if test $ac_cv_header_getopt_h = yes; then
13966 HAVE_GETOPT_H=1
13967 else
13968 HAVE_GETOPT_H=0
13969 fi
13970
13971
13972 gl_replace_getopt=
13973
13974 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13975 for ac_header in getopt.h
13976 do :
13977 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13978 if test "x$ac_cv_header_getopt_h" = xyes; then :
13979 cat >>confdefs.h <<_ACEOF
13980 #define HAVE_GETOPT_H 1
13981 _ACEOF
13982
13983 else
13984 gl_replace_getopt=yes
13985 fi
13986
13987 done
13988
13989 fi
13990
13991 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13992 for ac_func in getopt_long_only
13993 do :
13994 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13995 if test "x$ac_cv_func_getopt_long_only" = xyes; then :
13996 cat >>confdefs.h <<_ACEOF
13997 #define HAVE_GETOPT_LONG_ONLY 1
13998 _ACEOF
13999
14000 else
14001 gl_replace_getopt=yes
14002 fi
14003 done
14004
14005 fi
14006
14007 if test -z "$gl_replace_getopt"; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
14009 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
14010 if ${gl_cv_func_getopt_posix+:} false; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013
14014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14015 /* end confdefs.h. */
14016 #include <unistd.h>
14017 int
14018 main ()
14019 {
14020 int *p = &optreset; return optreset;
14021 ;
14022 return 0;
14023 }
14024 _ACEOF
14025 if ac_fn_c_try_compile "$LINENO"; then :
14026 gl_optind_min=1
14027 else
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030 #include <getopt.h>
14031 int
14032 main ()
14033 {
14034 return !getopt_clip;
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 if ac_fn_c_try_compile "$LINENO"; then :
14040 gl_optind_min=1
14041 else
14042 gl_optind_min=0
14043 fi
14044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14045 fi
14046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14047
14048 gl_save_CPPFLAGS=$CPPFLAGS
14049 CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
14050 if test "$cross_compiling" = yes; then :
14051 case "$host_os" in
14052 mingw*) gl_cv_func_getopt_posix="guessing no";;
14053 darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
14054 *) gl_cv_func_getopt_posix="guessing yes";;
14055 esac
14056
14057 else
14058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14059 /* end confdefs.h. */
14060
14061 #include <unistd.h>
14062 #include <stdlib.h>
14063 #include <string.h>
14064
14065 int
14066 main ()
14067 {
14068 {
14069 int argc = 0;
14070 char *argv[10];
14071 int c;
14072
14073 argv[argc++] = "program";
14074 argv[argc++] = "-a";
14075 argv[argc++] = "foo";
14076 argv[argc++] = "bar";
14077 argv[argc] = NULL;
14078 optind = OPTIND_MIN;
14079 opterr = 0;
14080
14081 c = getopt (argc, argv, "ab");
14082 if (!(c == 'a'))
14083 return 1;
14084 c = getopt (argc, argv, "ab");
14085 if (!(c == -1))
14086 return 2;
14087 if (!(optind == 2))
14088 return 3;
14089 }
14090 /* Some internal state exists at this point. */
14091 {
14092 int argc = 0;
14093 char *argv[10];
14094 int c;
14095
14096 argv[argc++] = "program";
14097 argv[argc++] = "donald";
14098 argv[argc++] = "-p";
14099 argv[argc++] = "billy";
14100 argv[argc++] = "duck";
14101 argv[argc++] = "-a";
14102 argv[argc++] = "bar";
14103 argv[argc] = NULL;
14104 optind = OPTIND_MIN;
14105 opterr = 0;
14106
14107 c = getopt (argc, argv, "+abp:q:");
14108 if (!(c == -1))
14109 return 4;
14110 if (!(strcmp (argv[0], "program") == 0))
14111 return 5;
14112 if (!(strcmp (argv[1], "donald") == 0))
14113 return 6;
14114 if (!(strcmp (argv[2], "-p") == 0))
14115 return 7;
14116 if (!(strcmp (argv[3], "billy") == 0))
14117 return 8;
14118 if (!(strcmp (argv[4], "duck") == 0))
14119 return 9;
14120 if (!(strcmp (argv[5], "-a") == 0))
14121 return 10;
14122 if (!(strcmp (argv[6], "bar") == 0))
14123 return 11;
14124 if (!(optind == 1))
14125 return 12;
14126 }
14127 /* Detect MacOS 10.5, AIX 7.1 bug. */
14128 {
14129 char *argv[3] = { "program", "-ab", NULL };
14130 optind = OPTIND_MIN;
14131 opterr = 0;
14132 if (getopt (2, argv, "ab:") != 'a')
14133 return 13;
14134 if (getopt (2, argv, "ab:") != '?')
14135 return 14;
14136 if (optopt != 'b')
14137 return 15;
14138 if (optind != 2)
14139 return 16;
14140 }
14141
14142 return 0;
14143 }
14144
14145 _ACEOF
14146 if ac_fn_c_try_run "$LINENO"; then :
14147 gl_cv_func_getopt_posix=yes
14148 else
14149 gl_cv_func_getopt_posix=no
14150 fi
14151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14152 conftest.$ac_objext conftest.beam conftest.$ac_ext
14153 fi
14154
14155 CPPFLAGS=$gl_save_CPPFLAGS
14156
14157 fi
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
14159 $as_echo "$gl_cv_func_getopt_posix" >&6; }
14160 case "$gl_cv_func_getopt_posix" in
14161 *no) gl_replace_getopt=yes ;;
14162 esac
14163 fi
14164
14165 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
14167 $as_echo_n "checking for working GNU getopt function... " >&6; }
14168 if ${gl_cv_func_getopt_gnu+:} false; then :
14169 $as_echo_n "(cached) " >&6
14170 else
14171 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
14172 # optstring is necessary for programs like m4 that have POSIX-mandated
14173 # semantics for supporting options interspersed with files.
14174 # Also, since getopt_long is a GNU extension, we require optind=0.
14175 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
14176 # so take care to revert to the correct (non-)export state.
14177 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
14178 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
14179 xx) gl_had_POSIXLY_CORRECT=exported ;;
14180 x) gl_had_POSIXLY_CORRECT=yes ;;
14181 *) gl_had_POSIXLY_CORRECT= ;;
14182 esac
14183 POSIXLY_CORRECT=1
14184 export POSIXLY_CORRECT
14185 if test "$cross_compiling" = yes; then :
14186 case $host_os:$ac_cv_have_decl_optreset in
14187 *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
14188 *:yes) gl_cv_func_getopt_gnu=no;;
14189 *) gl_cv_func_getopt_gnu=yes;;
14190 esac
14191
14192 else
14193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14194 /* end confdefs.h. */
14195 #include <getopt.h>
14196 #include <stddef.h>
14197 #include <string.h>
14198
14199 int
14200 main ()
14201 {
14202
14203 int result = 0;
14204 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
14205 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
14206 OSF/1 5.1, Solaris 10. */
14207 {
14208 char *myargv[3];
14209 myargv[0] = "conftest";
14210 myargv[1] = "-+";
14211 myargv[2] = 0;
14212 opterr = 0;
14213 if (getopt (2, myargv, "+a") != '?')
14214 result |= 1;
14215 }
14216 /* This code succeeds on glibc 2.8, mingw,
14217 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
14218 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
14219 {
14220 char *argv[] = { "program", "-p", "foo", "bar", NULL };
14221
14222 optind = 1;
14223 if (getopt (4, argv, "p::") != 'p')
14224 result |= 2;
14225 else if (optarg != NULL)
14226 result |= 4;
14227 else if (getopt (4, argv, "p::") != -1)
14228 result |= 6;
14229 else if (optind != 2)
14230 result |= 8;
14231 }
14232 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
14233 {
14234 char *argv[] = { "program", "foo", "-p", NULL };
14235 optind = 0;
14236 if (getopt (3, argv, "-p") != 1)
14237 result |= 16;
14238 else if (getopt (3, argv, "-p") != 'p')
14239 result |= 32;
14240 }
14241 /* This code fails on glibc 2.11. */
14242 {
14243 char *argv[] = { "program", "-b", "-a", NULL };
14244 optind = opterr = 0;
14245 if (getopt (3, argv, "+:a:b") != 'b')
14246 result |= 64;
14247 else if (getopt (3, argv, "+:a:b") != ':')
14248 result |= 64;
14249 }
14250 return result;
14251
14252 ;
14253 return 0;
14254 }
14255 _ACEOF
14256 if ac_fn_c_try_run "$LINENO"; then :
14257 gl_cv_func_getopt_gnu=yes
14258 else
14259 gl_cv_func_getopt_gnu=no
14260 fi
14261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14262 conftest.$ac_objext conftest.beam conftest.$ac_ext
14263 fi
14264
14265 case $gl_had_POSIXLY_CORRECT in
14266 exported) ;;
14267 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
14268 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
14269 esac
14270
14271 fi
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
14273 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
14274 if test "$gl_cv_func_getopt_gnu" = "no"; then
14275 gl_replace_getopt=yes
14276 fi
14277 fi
14278
14279 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
14280 if test "x$ac_cv_have_decl_getenv" = xyes; then :
14281 ac_have_decl=1
14282 else
14283 ac_have_decl=0
14284 fi
14285
14286 cat >>confdefs.h <<_ACEOF
14287 #define HAVE_DECL_GETENV $ac_have_decl
14288 _ACEOF
14289
14290
14291
14292
14293
14294
14295 if test -n "$gl_replace_getopt"; then :
14296
14297
14298
14299 GETOPT_H=getopt.h
14300
14301 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14302
14303
14304
14305 GNULIB_UNISTD_H_GETOPT=1
14306
14307
14308
14309
14310
14311
14312
14313
14314 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14325
14326
14327
14328
14329
14330
14331 fi
14332
14333
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14335 $as_echo_n "checking for inline... " >&6; }
14336 if ${ac_cv_c_inline+:} false; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 ac_cv_c_inline=no
14340 for ac_kw in inline __inline__ __inline; do
14341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342 /* end confdefs.h. */
14343 #ifndef __cplusplus
14344 typedef int foo_t;
14345 static $ac_kw foo_t static_foo () {return 0; }
14346 $ac_kw foo_t foo () {return 0; }
14347 #endif
14348
14349 _ACEOF
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351 ac_cv_c_inline=$ac_kw
14352 fi
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14354 test "$ac_cv_c_inline" != no && break
14355 done
14356
14357 fi
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14359 $as_echo "$ac_cv_c_inline" >&6; }
14360
14361 case $ac_cv_c_inline in
14362 inline | yes) ;;
14363 *)
14364 case $ac_cv_c_inline in
14365 no) ac_val=;;
14366 *) ac_val=$ac_cv_c_inline;;
14367 esac
14368 cat >>confdefs.h <<_ACEOF
14369 #ifndef __cplusplus
14370 #define inline $ac_val
14371 #endif
14372 _ACEOF
14373 ;;
14374 esac
14375
14376
14377 GNULIB_MKTIME=0;
14378 GNULIB_NANOSLEEP=0;
14379 GNULIB_STRPTIME=0;
14380 GNULIB_TIMEGM=0;
14381 GNULIB_TIME_R=0;
14382 HAVE_DECL_LOCALTIME_R=1;
14383 HAVE_NANOSLEEP=1;
14384 HAVE_STRPTIME=1;
14385 HAVE_TIMEGM=1;
14386 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14387 REPLACE_MKTIME=GNULIB_PORTCHECK;
14388 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14389 REPLACE_TIMEGM=GNULIB_PORTCHECK;
14390
14391
14392
14393
14394 for ac_func in $ac_func_list
14395 do :
14396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14398 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14399 cat >>confdefs.h <<_ACEOF
14400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14401 _ACEOF
14402
14403 fi
14404 done
14405
14406
14407
14408
14409 gl_cv_c_multiarch=no
14410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411 /* end confdefs.h. */
14412 #ifndef __APPLE_CC__
14413 not a universal capable compiler
14414 #endif
14415 typedef int dummy;
14416
14417 _ACEOF
14418 if ac_fn_c_try_compile "$LINENO"; then :
14419
14420 arch=
14421 prev=
14422 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
14423 if test -n "$prev"; then
14424 case $word in
14425 i?86 | x86_64 | ppc | ppc64)
14426 if test -z "$arch" || test "$arch" = "$word"; then
14427 arch="$word"
14428 else
14429 gl_cv_c_multiarch=yes
14430 fi
14431 ;;
14432 esac
14433 prev=
14434 else
14435 if test "x$word" = "x-arch"; then
14436 prev=arch
14437 fi
14438 fi
14439 done
14440
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 if test $gl_cv_c_multiarch = yes; then
14444 APPLE_UNIVERSAL_BUILD=1
14445 else
14446 APPLE_UNIVERSAL_BUILD=0
14447 fi
14448
14449
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14451 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14452 if ${ac_cv_header_stdbool_h+:} false; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457
14458 #include <stdbool.h>
14459 #ifndef bool
14460 "error: bool is not defined"
14461 #endif
14462 #ifndef false
14463 "error: false is not defined"
14464 #endif
14465 #if false
14466 "error: false is not 0"
14467 #endif
14468 #ifndef true
14469 "error: true is not defined"
14470 #endif
14471 #if true != 1
14472 "error: true is not 1"
14473 #endif
14474 #ifndef __bool_true_false_are_defined
14475 "error: __bool_true_false_are_defined is not defined"
14476 #endif
14477
14478 struct s { _Bool s: 1; _Bool t; } s;
14479
14480 char a[true == 1 ? 1 : -1];
14481 char b[false == 0 ? 1 : -1];
14482 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14483 char d[(bool) 0.5 == true ? 1 : -1];
14484 /* See body of main program for 'e'. */
14485 char f[(_Bool) 0.0 == false ? 1 : -1];
14486 char g[true];
14487 char h[sizeof (_Bool)];
14488 char i[sizeof s.t];
14489 enum { j = false, k = true, l = false * true, m = true * 256 };
14490 /* The following fails for
14491 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14492 _Bool n[m];
14493 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14494 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14495 /* Catch a bug in an HP-UX C compiler. See
14496 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14497 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14498 */
14499 _Bool q = true;
14500 _Bool *pq = &q;
14501
14502 int
14503 main ()
14504 {
14505
14506 bool e = &s;
14507 *pq |= q;
14508 *pq |= ! q;
14509 /* Refer to every declared value, to avoid compiler optimizations. */
14510 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14511 + !m + !n + !o + !p + !q + !pq);
14512
14513 ;
14514 return 0;
14515 }
14516 _ACEOF
14517 if ac_fn_c_try_compile "$LINENO"; then :
14518 ac_cv_header_stdbool_h=yes
14519 else
14520 ac_cv_header_stdbool_h=no
14521 fi
14522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14523 fi
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14525 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14526 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14527 if test "x$ac_cv_type__Bool" = xyes; then :
14528
14529 cat >>confdefs.h <<_ACEOF
14530 #define HAVE__BOOL 1
14531 _ACEOF
14532
14533
14534 fi
14535
14536
14537
14538 REPLACE_NULL=0;
14539 HAVE_WCHAR_T=1;
14540 STDDEF_H='';
14541
14542
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14544 $as_echo_n "checking for wchar_t... " >&6; }
14545 if ${gt_cv_c_wchar_t+:} false; then :
14546 $as_echo_n "(cached) " >&6
14547 else
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h. */
14550 #include <stddef.h>
14551 wchar_t foo = (wchar_t)'\0';
14552 int
14553 main ()
14554 {
14555
14556 ;
14557 return 0;
14558 }
14559 _ACEOF
14560 if ac_fn_c_try_compile "$LINENO"; then :
14561 gt_cv_c_wchar_t=yes
14562 else
14563 gt_cv_c_wchar_t=no
14564 fi
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 fi
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14568 $as_echo "$gt_cv_c_wchar_t" >&6; }
14569 if test $gt_cv_c_wchar_t = yes; then
14570
14571 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
14572
14573 fi
14574
14575
14576 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
14577 "
14578 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
14579
14580 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
14581
14582 fi
14583
14584
14585
14586
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
14588 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
14589 if ${ac_cv_c_restrict+:} false; then :
14590 $as_echo_n "(cached) " >&6
14591 else
14592 ac_cv_c_restrict=no
14593 # The order here caters to the fact that C++ does not require restrict.
14594 for ac_kw in __restrict __restrict__ _Restrict restrict; do
14595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14596 /* end confdefs.h. */
14597 typedef int * int_ptr;
14598 int foo (int_ptr $ac_kw ip) {
14599 return ip[0];
14600 }
14601 int
14602 main ()
14603 {
14604 int s[1];
14605 int * $ac_kw t = s;
14606 t[0] = 0;
14607 return foo(t)
14608 ;
14609 return 0;
14610 }
14611 _ACEOF
14612 if ac_fn_c_try_compile "$LINENO"; then :
14613 ac_cv_c_restrict=$ac_kw
14614 fi
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14616 test "$ac_cv_c_restrict" != no && break
14617 done
14618
14619 fi
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
14621 $as_echo "$ac_cv_c_restrict" >&6; }
14622
14623 case $ac_cv_c_restrict in
14624 restrict) ;;
14625 no) $as_echo "#define restrict /**/" >>confdefs.h
14626 ;;
14627 *) cat >>confdefs.h <<_ACEOF
14628 #define restrict $ac_cv_c_restrict
14629 _ACEOF
14630 ;;
14631 esac
14632
14633
14634
14635
14636
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14638 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
14639 if ${gl_cv_sys_struct_timespec_in_time_h+:} false; then :
14640 $as_echo_n "(cached) " >&6
14641 else
14642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14643 /* end confdefs.h. */
14644 #include <time.h>
14645
14646 int
14647 main ()
14648 {
14649 static struct timespec x; x.tv_sec = x.tv_nsec;
14650 ;
14651 return 0;
14652 }
14653 _ACEOF
14654 if ac_fn_c_try_compile "$LINENO"; then :
14655 gl_cv_sys_struct_timespec_in_time_h=yes
14656 else
14657 gl_cv_sys_struct_timespec_in_time_h=no
14658 fi
14659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660 fi
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14662 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14663
14664 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14665 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14666 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14667 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14668 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14669 else
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14671 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
14672 if ${gl_cv_sys_struct_timespec_in_sys_time_h+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674 else
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14677 #include <sys/time.h>
14678
14679 int
14680 main ()
14681 {
14682 static struct timespec x; x.tv_sec = x.tv_nsec;
14683 ;
14684 return 0;
14685 }
14686 _ACEOF
14687 if ac_fn_c_try_compile "$LINENO"; then :
14688 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14689 else
14690 gl_cv_sys_struct_timespec_in_sys_time_h=no
14691 fi
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693 fi
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14695 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14696 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14697 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14698 else
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14700 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
14701 if ${gl_cv_sys_struct_timespec_in_pthread_h+:} false; then :
14702 $as_echo_n "(cached) " >&6
14703 else
14704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14705 /* end confdefs.h. */
14706 #include <pthread.h>
14707
14708 int
14709 main ()
14710 {
14711 static struct timespec x; x.tv_sec = x.tv_nsec;
14712 ;
14713 return 0;
14714 }
14715 _ACEOF
14716 if ac_fn_c_try_compile "$LINENO"; then :
14717 gl_cv_sys_struct_timespec_in_pthread_h=yes
14718 else
14719 gl_cv_sys_struct_timespec_in_pthread_h=no
14720 fi
14721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14722 fi
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14724 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14725 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14726 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14727 fi
14728 fi
14729 fi
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745 if test $gl_cv_have_include_next = yes; then
14746 gl_cv_next_time_h='<'time.h'>'
14747 else
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14749 $as_echo_n "checking absolute name of <time.h>... " >&6; }
14750 if ${gl_cv_next_time_h+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756 #include <time.h>
14757
14758 _ACEOF
14759 case "$host_os" in
14760 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14761 *) gl_absname_cpp="$ac_cpp" ;;
14762 esac
14763 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14764 sed -n '\#/time.h#{
14765 s#.*"\(.*/time.h\)".*#\1#
14766 s#^/[^/]#//&#
14767 p
14768 q
14769 }'`'"'
14770
14771
14772 fi
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14774 $as_echo "$gl_cv_next_time_h" >&6; }
14775 fi
14776 NEXT_TIME_H=$gl_cv_next_time_h
14777
14778 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14779 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14780 gl_next_as_first_directive='<'time.h'>'
14781 else
14782 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14783 gl_next_as_first_directive=$gl_cv_next_time_h
14784 fi
14785 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14786
14787
14788
14789
14790
14791
14792 ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "$ac_includes_default"
14793 if test "x$ac_cv_have_decl_localtime_r" = xyes; then :
14794 ac_have_decl=1
14795 else
14796 ac_have_decl=0
14797 fi
14798
14799 cat >>confdefs.h <<_ACEOF
14800 #define HAVE_DECL_LOCALTIME_R $ac_have_decl
14801 _ACEOF
14802
14803
14804
14805
14806 if false; then
14807 GL_COND_LIBTOOL_TRUE=
14808 GL_COND_LIBTOOL_FALSE='#'
14809 else
14810 GL_COND_LIBTOOL_TRUE='#'
14811 GL_COND_LIBTOOL_FALSE=
14812 fi
14813
14814 gl_cond_libtool=false
14815 gl_libdeps=
14816 gl_ltlibdeps=
14817 gl_m4_base='m4'
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827 gl_source_base='lib'
14828 # Code from module arg-nonnull:
14829 # Code from module c++defs:
14830 # Code from module dtoastr:
14831
14832 # Code from module extensions:
14833 # Code from module getopt-gnu:
14834
14835
14836
14837
14838
14839
14840 # Code from module getopt-posix:
14841
14842
14843
14844
14845
14846 if test -n "$gl_replace_getopt"; then :
14847
14848
14849
14850 GETOPT_H=getopt.h
14851
14852 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
14853
14854
14855
14856 GNULIB_UNISTD_H_GETOPT=1
14857
14858
14859
14860
14861
14862
14863
14864
14865 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
14876
14877
14878
14879
14880
14881
14882 fi
14883
14884
14885 # Code from module gettext-h:
14886
14887
14888 # Code from module ignore-value:
14889
14890 # Code from module include_next:
14891 # Code from module intprops:
14892 # Code from module mktime:
14893
14894
14895
14896
14897
14898 if test $APPLE_UNIVERSAL_BUILD = 1; then
14899 # A universal build on Apple MacOS X platforms.
14900 # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
14901 # But we need a configuration result that is valid in both modes.
14902 ac_cv_func_working_mktime=no
14903 fi
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
14905 $as_echo_n "checking for working mktime... " >&6; }
14906 if ${ac_cv_func_working_mktime+:} false; then :
14907 $as_echo_n "(cached) " >&6
14908 else
14909 if test "$cross_compiling" = yes; then :
14910 ac_cv_func_working_mktime=no
14911 else
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14914 /* Test program from Paul Eggert and Tony Leneis. */
14915 #include <limits.h>
14916 #include <stdlib.h>
14917 #include <time.h>
14918
14919 #ifdef HAVE_UNISTD_H
14920 # include <unistd.h>
14921 #endif
14922
14923 #ifndef HAVE_ALARM
14924 # define alarm(X) /* empty */
14925 #endif
14926
14927 /* Work around redefinition to rpl_putenv by other config tests. */
14928 #undef putenv
14929
14930 static time_t time_t_max;
14931 static time_t time_t_min;
14932
14933 /* Values we'll use to set the TZ environment variable. */
14934 static char *tz_strings[] = {
14935 (char *) 0, "TZ=GMT0", "TZ=JST-9",
14936 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
14937 };
14938 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
14939
14940 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
14941 Based on a problem report from Andreas Jaeger. */
14942 static int
14943 spring_forward_gap ()
14944 {
14945 /* glibc (up to about 1998-10-07) failed this test. */
14946 struct tm tm;
14947
14948 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
14949 instead of "TZ=America/Vancouver" in order to detect the bug even
14950 on systems that don't support the Olson extension, or don't have the
14951 full zoneinfo tables installed. */
14952 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
14953
14954 tm.tm_year = 98;
14955 tm.tm_mon = 3;
14956 tm.tm_mday = 5;
14957 tm.tm_hour = 2;
14958 tm.tm_min = 0;
14959 tm.tm_sec = 0;
14960 tm.tm_isdst = -1;
14961 return mktime (&tm) != (time_t) -1;
14962 }
14963
14964 static int
14965 mktime_test1 (time_t now)
14966 {
14967 struct tm *lt;
14968 return ! (lt = localtime (&now)) || mktime (lt) == now;
14969 }
14970
14971 static int
14972 mktime_test (time_t now)
14973 {
14974 return (mktime_test1 (now)
14975 && mktime_test1 ((time_t) (time_t_max - now))
14976 && mktime_test1 ((time_t) (time_t_min + now)));
14977 }
14978
14979 static int
14980 irix_6_4_bug ()
14981 {
14982 /* Based on code from Ariel Faigon. */
14983 struct tm tm;
14984 tm.tm_year = 96;
14985 tm.tm_mon = 3;
14986 tm.tm_mday = 0;
14987 tm.tm_hour = 0;
14988 tm.tm_min = 0;
14989 tm.tm_sec = 0;
14990 tm.tm_isdst = -1;
14991 mktime (&tm);
14992 return tm.tm_mon == 2 && tm.tm_mday == 31;
14993 }
14994
14995 static int
14996 bigtime_test (int j)
14997 {
14998 struct tm tm;
14999 time_t now;
15000 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15001 now = mktime (&tm);
15002 if (now != (time_t) -1)
15003 {
15004 struct tm *lt = localtime (&now);
15005 if (! (lt
15006 && lt->tm_year == tm.tm_year
15007 && lt->tm_mon == tm.tm_mon
15008 && lt->tm_mday == tm.tm_mday
15009 && lt->tm_hour == tm.tm_hour
15010 && lt->tm_min == tm.tm_min
15011 && lt->tm_sec == tm.tm_sec
15012 && lt->tm_yday == tm.tm_yday
15013 && lt->tm_wday == tm.tm_wday
15014 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15015 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15016 return 0;
15017 }
15018 return 1;
15019 }
15020
15021 static int
15022 year_2050_test ()
15023 {
15024 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15025 ignoring leap seconds. */
15026 unsigned long int answer = 2527315200UL;
15027
15028 struct tm tm;
15029 time_t t;
15030 tm.tm_year = 2050 - 1900;
15031 tm.tm_mon = 2 - 1;
15032 tm.tm_mday = 1;
15033 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15034 tm.tm_isdst = -1;
15035
15036 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15037 instead of "TZ=America/Vancouver" in order to detect the bug even
15038 on systems that don't support the Olson extension, or don't have the
15039 full zoneinfo tables installed. */
15040 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15041
15042 t = mktime (&tm);
15043
15044 /* Check that the result is either a failure, or close enough
15045 to the correct answer that we can assume the discrepancy is
15046 due to leap seconds. */
15047 return (t == (time_t) -1
15048 || (0 < t && answer - 120 <= t && t <= answer + 120));
15049 }
15050
15051 int
15052 main ()
15053 {
15054 int result = 0;
15055 time_t t, delta;
15056 int i, j;
15057 int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
15058 int time_t_signed = ! ((time_t) 0 < (time_t) -1);
15059
15060 /* This test makes some buggy mktime implementations loop.
15061 Give up after 60 seconds; a mktime slower than that
15062 isn't worth using anyway. */
15063 alarm (60);
15064
15065 time_t_max = (! time_t_signed
15066 ? (time_t) -1
15067 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
15068 * 2 + 1));
15069 time_t_min = (! time_t_signed
15070 ? (time_t) 0
15071 : time_t_signed_magnitude
15072 ? ~ (time_t) 0
15073 : ~ time_t_max);
15074
15075 delta = time_t_max / 997; /* a suitable prime number */
15076 for (i = 0; i < N_STRINGS; i++)
15077 {
15078 if (tz_strings[i])
15079 putenv (tz_strings[i]);
15080
15081 for (t = 0; t <= time_t_max - delta; t += delta)
15082 if (! mktime_test (t))
15083 result |= 1;
15084 if (! (mktime_test ((time_t) 1)
15085 && mktime_test ((time_t) (60 * 60))
15086 && mktime_test ((time_t) (60 * 60 * 24))))
15087 result |= 2;
15088
15089 for (j = 1; ; j <<= 1)
15090 if (! bigtime_test (j))
15091 result |= 4;
15092 else if (INT_MAX / 2 < j)
15093 break;
15094 if (! bigtime_test (INT_MAX))
15095 result |= 8;
15096 }
15097 if (! irix_6_4_bug ())
15098 result |= 16;
15099 if (! spring_forward_gap ())
15100 result |= 32;
15101 if (! year_2050_test ())
15102 result |= 64;
15103 return result;
15104 }
15105 _ACEOF
15106 if ac_fn_c_try_run "$LINENO"; then :
15107 ac_cv_func_working_mktime=yes
15108 else
15109 ac_cv_func_working_mktime=no
15110 fi
15111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15112 conftest.$ac_objext conftest.beam conftest.$ac_ext
15113 fi
15114
15115 fi
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
15117 $as_echo "$ac_cv_func_working_mktime" >&6; }
15118 if test $ac_cv_func_working_mktime = no; then
15119
15120
15121
15122
15123
15124
15125
15126
15127 gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
15128
15129 fi
15130
15131 if test $ac_cv_func_working_mktime = no; then
15132 REPLACE_MKTIME=1
15133
15134
15135
15136 else
15137 REPLACE_MKTIME=0
15138 fi
15139
15140
15141
15142
15143 GNULIB_MKTIME=1
15144
15145
15146
15147 # Code from module multiarch:
15148
15149 # Code from module stdbool:
15150
15151
15152
15153 # Define two additional variables used in the Makefile substitution.
15154
15155 if test "$ac_cv_header_stdbool_h" = yes; then
15156 STDBOOL_H=''
15157 else
15158 STDBOOL_H='stdbool.h'
15159 fi
15160
15161
15162 if test "$ac_cv_type__Bool" = yes; then
15163 HAVE__BOOL=1
15164 else
15165 HAVE__BOOL=0
15166 fi
15167
15168
15169 # Code from module stddef:
15170
15171
15172
15173 if test $gt_cv_c_wchar_t = no; then
15174 HAVE_WCHAR_T=0
15175 STDDEF_H=stddef.h
15176 fi
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
15178 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
15179 if ${gl_cv_decl_null_works+:} false; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15183 /* end confdefs.h. */
15184 #include <stddef.h>
15185 int test[2 * (sizeof NULL == sizeof (void *)) -1];
15186
15187 int
15188 main ()
15189 {
15190
15191 ;
15192 return 0;
15193 }
15194 _ACEOF
15195 if ac_fn_c_try_compile "$LINENO"; then :
15196 gl_cv_decl_null_works=yes
15197 else
15198 gl_cv_decl_null_works=no
15199 fi
15200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
15203 $as_echo "$gl_cv_decl_null_works" >&6; }
15204 if test $gl_cv_decl_null_works = no; then
15205 REPLACE_NULL=1
15206 STDDEF_H=stddef.h
15207 fi
15208 if test -n "$STDDEF_H"; then
15209
15210
15211
15212
15213
15214
15215
15216
15217 if test $gl_cv_have_include_next = yes; then
15218 gl_cv_next_stddef_h='<'stddef.h'>'
15219 else
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
15221 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
15222 if ${gl_cv_next_stddef_h+:} false; then :
15223 $as_echo_n "(cached) " >&6
15224 else
15225
15226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h. */
15228 #include <stddef.h>
15229
15230 _ACEOF
15231 case "$host_os" in
15232 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15233 *) gl_absname_cpp="$ac_cpp" ;;
15234 esac
15235 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15236 sed -n '\#/stddef.h#{
15237 s#.*"\(.*/stddef.h\)".*#\1#
15238 s#^/[^/]#//&#
15239 p
15240 q
15241 }'`'"'
15242
15243
15244 fi
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
15246 $as_echo "$gl_cv_next_stddef_h" >&6; }
15247 fi
15248 NEXT_STDDEF_H=$gl_cv_next_stddef_h
15249
15250 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15251 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15252 gl_next_as_first_directive='<'stddef.h'>'
15253 else
15254 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15255 gl_next_as_first_directive=$gl_cv_next_stddef_h
15256 fi
15257 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
15258
15259
15260
15261
15262 fi
15263
15264 # Code from module strftime:
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274
15275 gl_LIBOBJS="$gl_LIBOBJS strftime.$ac_objext"
15276
15277
15278 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
15279
15280
15281
15282
15283
15284
15285
15286 $as_echo "#define my_strftime nstrftime" >>confdefs.h
15287
15288
15289
15290 # Code from module time:
15291
15292
15293
15294 # Code from module time_r:
15295
15296
15297
15298
15299
15300
15301
15302 if test $ac_cv_have_decl_localtime_r = no; then
15303 HAVE_DECL_LOCALTIME_R=0
15304 fi
15305
15306
15307 if test $ac_cv_func_localtime_r = yes; then
15308 HAVE_LOCALTIME_R=1
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5
15310 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
15311 if ${gl_cv_time_r_posix+:} false; then :
15312 $as_echo_n "(cached) " >&6
15313 else
15314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15315 /* end confdefs.h. */
15316 #include <time.h>
15317 int
15318 main ()
15319 {
15320 /* We don't need to append 'restrict's to the argument types,
15321 even though the POSIX signature has the 'restrict's,
15322 since C99 says they can't affect type compatibility. */
15323 struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
15324 if (ptr) return 0;
15325 /* Check the return type is a pointer.
15326 On HP-UX 10 it is 'int'. */
15327 *localtime_r (0, 0);
15328 ;
15329 return 0;
15330 }
15331
15332 _ACEOF
15333 if ac_fn_c_try_compile "$LINENO"; then :
15334 gl_cv_time_r_posix=yes
15335 else
15336 gl_cv_time_r_posix=no
15337 fi
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339
15340 fi
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5
15342 $as_echo "$gl_cv_time_r_posix" >&6; }
15343 if test $gl_cv_time_r_posix = yes; then
15344 REPLACE_LOCALTIME_R=0
15345 else
15346 REPLACE_LOCALTIME_R=1
15347 fi
15348 else
15349 HAVE_LOCALTIME_R=0
15350 fi
15351 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
15352
15353
15354
15355
15356
15357
15358
15359
15360 gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
15361
15362
15363 :
15364
15365 fi
15366
15367
15368
15369
15370 GNULIB_TIME_R=1
15371
15372
15373
15374 # Code from module unistd:
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388 if test $gl_cv_have_include_next = yes; then
15389 gl_cv_next_unistd_h='<'unistd.h'>'
15390 else
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15392 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15393 if ${gl_cv_next_unistd_h+:} false; then :
15394 $as_echo_n "(cached) " >&6
15395 else
15396
15397 if test $ac_cv_header_unistd_h = yes; then
15398
15399
15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15401 /* end confdefs.h. */
15402 #include <unistd.h>
15403
15404 _ACEOF
15405 case "$host_os" in
15406 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15407 *) gl_absname_cpp="$ac_cpp" ;;
15408 esac
15409 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15410 sed -n '\#/unistd.h#{
15411 s#.*"\(.*/unistd.h\)".*#\1#
15412 s#^/[^/]#//&#
15413 p
15414 q
15415 }'`'"'
15416 else
15417 gl_cv_next_unistd_h='<'unistd.h'>'
15418 fi
15419
15420
15421 fi
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15423 $as_echo "$gl_cv_next_unistd_h" >&6; }
15424 fi
15425 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15426
15427 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15428 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15429 gl_next_as_first_directive='<'unistd.h'>'
15430 else
15431 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15432 gl_next_as_first_directive=$gl_cv_next_unistd_h
15433 fi
15434 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15435
15436
15437
15438
15439 if test $ac_cv_header_unistd_h = yes; then
15440 HAVE_UNISTD_H=1
15441 else
15442 HAVE_UNISTD_H=0
15443 fi
15444
15445
15446
15447
15448 # Code from module warn-on-use:
15449 # End of code from modules
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459 gltests_libdeps=
15460 gltests_ltlibdeps=
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470 gl_source_base='tests'
15471 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
15472
15473 gl_module_indicator_condition=$gltests_WITNESS
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483 LIBGNU_LIBDEPS="$gl_libdeps"
15484
15485 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15486
15487
15488
15489 # UNIX98 PTYs.
15490 for ac_func in grantpt
15491 do :
15492 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
15493 if test "x$ac_cv_func_grantpt" = xyes; then :
15494 cat >>confdefs.h <<_ACEOF
15495 #define HAVE_GRANTPT 1
15496 _ACEOF
15497
15498 fi
15499 done
15500
15501
15502 # PTY-related GNU extensions.
15503 for ac_func in getpt
15504 do :
15505 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
15506 if test "x$ac_cv_func_getpt" = xyes; then :
15507 cat >>confdefs.h <<_ACEOF
15508 #define HAVE_GETPT 1
15509 _ACEOF
15510
15511 fi
15512 done
15513
15514
15515 # Check this now, so that we will NOT find the above functions in ncurses.
15516 # That is because we have not set up to link ncurses in lib-src.
15517 # It's better to believe a function is not available
15518 # than to expect to find it in ncurses.
15519 # Also we need tputs and friends to be able to build at all.
15520 have_tputs_et_al=true
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
15522 $as_echo_n "checking for library containing tputs... " >&6; }
15523 if ${ac_cv_search_tputs+:} false; then :
15524 $as_echo_n "(cached) " >&6
15525 else
15526 ac_func_search_save_LIBS=$LIBS
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15529
15530 /* Override any GCC internal prototype to avoid an error.
15531 Use char because int might match the return type of a GCC
15532 builtin and then its argument prototype would still apply. */
15533 #ifdef __cplusplus
15534 extern "C"
15535 #endif
15536 char tputs ();
15537 int
15538 main ()
15539 {
15540 return tputs ();
15541 ;
15542 return 0;
15543 }
15544 _ACEOF
15545 for ac_lib in '' ncurses terminfo termcap; do
15546 if test -z "$ac_lib"; then
15547 ac_res="none required"
15548 else
15549 ac_res=-l$ac_lib
15550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15551 fi
15552 if ac_fn_c_try_link "$LINENO"; then :
15553 ac_cv_search_tputs=$ac_res
15554 fi
15555 rm -f core conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext
15557 if ${ac_cv_search_tputs+:} false; then :
15558 break
15559 fi
15560 done
15561 if ${ac_cv_search_tputs+:} false; then :
15562
15563 else
15564 ac_cv_search_tputs=no
15565 fi
15566 rm conftest.$ac_ext
15567 LIBS=$ac_func_search_save_LIBS
15568 fi
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
15570 $as_echo "$ac_cv_search_tputs" >&6; }
15571 ac_res=$ac_cv_search_tputs
15572 if test "$ac_res" != no; then :
15573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15574
15575 else
15576 have_tputs_et_al=false
15577 fi
15578
15579 if test "$have_tputs_et_al" != true; then
15580 as_fn_error $? "I couldn't find termcap functions (tputs and friends).
15581 Maybe some development libraries/packages are missing? Try installing
15582 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
15583 fi
15584 # Must define this when any termcap library is found.
15585
15586 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
15587
15588 ## FIXME This was the cpp logic, but I am not sure it is right.
15589 ## The above test has not necessarily found libncurses.
15590 HAVE_LIBNCURSES=yes
15591
15592 ## Use terminfo instead of termcap?
15593 ## Note only system files NOT using terminfo are:
15594 ## freebsd < 40000, ms-w32, msdos, netbsd < 599002500, and
15595 ## darwin|gnu without ncurses.
15596 TERMINFO=no
15597 LIBS_TERMCAP=
15598 case "$opsys" in
15599 ## cygwin: Fewer environment variables to go wrong, more terminal types.
15600 ## hpux10-20: Use the system provided termcap(3) library.
15601 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
15602 ## is necessary. Otherwise Emacs dumps core when run -nw.
15603 aix4-2|cygwin|hpux*|irix6-5|openbsd|sol2*|unixware) TERMINFO=yes ;;
15604
15605 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
15606 ## The ncurses library has been moved out of the System framework in
15607 ## Mac OS X 10.2. So if configure detects it, set the command-line
15608 ## option to use it.
15609 darwin|gnu*)
15610 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
15611 if test "x$HAVE_LIBNCURSES" = "xyes"; then
15612 TERMINFO=yes
15613 LIBS_TERMCAP="-lncurses"
15614 fi
15615 ;;
15616
15617 freebsd)
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5
15619 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
15620 if ${emacs_cv_freebsd_terminfo+:} false; then :
15621 $as_echo_n "(cached) " >&6
15622 else
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15625 #include <osreldate.h>
15626 int
15627 main ()
15628 {
15629 #if __FreeBSD_version < 400000
15630 fail;
15631 #endif
15632
15633 ;
15634 return 0;
15635 }
15636 _ACEOF
15637 if ac_fn_c_try_link "$LINENO"; then :
15638 emacs_cv_freebsd_terminfo=yes
15639 else
15640 emacs_cv_freebsd_terminfo=no
15641 fi
15642 rm -f core conftest.err conftest.$ac_objext \
15643 conftest$ac_exeext conftest.$ac_ext
15644 fi
15645
15646
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5
15648 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
15649
15650 if test $emacs_cv_freebsd_terminfo = yes; then
15651 TERMINFO=yes
15652 LIBS_TERMCAP="-lncurses"
15653 else
15654 LIBS_TERMCAP="-ltermcap"
15655 fi
15656 ;;
15657
15658 netbsd)
15659 if test $ac_cv_search_tputs = -lterminfo; then
15660 TERMINFO=yes
15661 LIBS_TERMCAP="-lterminfo"
15662 else
15663 LIBS_TERMCAP="-ltermcap"
15664 fi
15665 ;;
15666
15667 esac
15668
15669 case "$opsys" in
15670 ## hpux: Make sure we get select from libc rather than from libcurses
15671 ## because libcurses on HPUX 10.10 has a broken version of select.
15672 ## We used to use -lc -lcurses, but this may be cleaner.
15673 hpux*) LIBS_TERMCAP="-ltermcap" ;;
15674
15675 openbsd) LIBS_TERMCAP="-lncurses" ;;
15676
15677 ## Must use system termcap, if we use any termcap. It does special things.
15678 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
15679 esac
15680
15681 TERMCAP_OBJ=tparam.o
15682 if test $TERMINFO = yes; then
15683
15684 $as_echo "#define TERMINFO 1" >>confdefs.h
15685
15686
15687 ## Default used to be -ltermcap. Add a case above if need something else.
15688 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
15689
15690 TERMCAP_OBJ=terminfo.o
15691 fi
15692
15693
15694
15695
15696 # Do we have res_init, for detecting changes in /etc/resolv.conf?
15697 resolv=no
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15699 /* end confdefs.h. */
15700 #include <netinet/in.h>
15701 #include <arpa/nameser.h>
15702 #include <resolv.h>
15703 int
15704 main ()
15705 {
15706 return res_init();
15707 ;
15708 return 0;
15709 }
15710 _ACEOF
15711 if ac_fn_c_try_link "$LINENO"; then :
15712 have_res_init=yes
15713 else
15714 have_res_init=no
15715 fi
15716 rm -f core conftest.err conftest.$ac_objext \
15717 conftest$ac_exeext conftest.$ac_ext
15718 if test "$have_res_init" = no; then
15719 OLIBS="$LIBS"
15720 LIBS="$LIBS -lresolv"
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
15722 $as_echo_n "checking for res_init with -lresolv... " >&6; }
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725 #include <netinet/in.h>
15726 #include <arpa/nameser.h>
15727 #include <resolv.h>
15728 int
15729 main ()
15730 {
15731 return res_init();
15732 ;
15733 return 0;
15734 }
15735 _ACEOF
15736 if ac_fn_c_try_link "$LINENO"; then :
15737 have_res_init=yes
15738 else
15739 have_res_init=no
15740 fi
15741 rm -f core conftest.err conftest.$ac_objext \
15742 conftest$ac_exeext conftest.$ac_ext
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
15744 $as_echo "$have_res_init" >&6; }
15745 if test "$have_res_init" = yes ; then
15746 resolv=yes
15747 fi
15748 LIBS="$OLIBS"
15749 fi
15750
15751 if test "$have_res_init" = yes; then
15752
15753 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
15754
15755 fi
15756
15757 # Do we need the Hesiod library to provide the support routines?
15758 LIBHESIOD=
15759 if test "$with_hesiod" != no ; then
15760 # Don't set $LIBS here -- see comments above. FIXME which comments?
15761 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
15762 if test "x$ac_cv_func_res_send" = xyes; then :
15763
15764 else
15765 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
15766 if test "x$ac_cv_func___res_send" = xyes; then :
15767
15768 else
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
15770 $as_echo_n "checking for res_send in -lresolv... " >&6; }
15771 if ${ac_cv_lib_resolv_res_send+:} false; then :
15772 $as_echo_n "(cached) " >&6
15773 else
15774 ac_check_lib_save_LIBS=$LIBS
15775 LIBS="-lresolv $LIBS"
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778
15779 /* Override any GCC internal prototype to avoid an error.
15780 Use char because int might match the return type of a GCC
15781 builtin and then its argument prototype would still apply. */
15782 #ifdef __cplusplus
15783 extern "C"
15784 #endif
15785 char res_send ();
15786 int
15787 main ()
15788 {
15789 return res_send ();
15790 ;
15791 return 0;
15792 }
15793 _ACEOF
15794 if ac_fn_c_try_link "$LINENO"; then :
15795 ac_cv_lib_resolv_res_send=yes
15796 else
15797 ac_cv_lib_resolv_res_send=no
15798 fi
15799 rm -f core conftest.err conftest.$ac_objext \
15800 conftest$ac_exeext conftest.$ac_ext
15801 LIBS=$ac_check_lib_save_LIBS
15802 fi
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
15804 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
15805 if test "x$ac_cv_lib_resolv_res_send" = xyes; then :
15806 resolv=yes
15807 else
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
15809 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
15810 if ${ac_cv_lib_resolv___res_send+:} false; then :
15811 $as_echo_n "(cached) " >&6
15812 else
15813 ac_check_lib_save_LIBS=$LIBS
15814 LIBS="-lresolv $LIBS"
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15817
15818 /* Override any GCC internal prototype to avoid an error.
15819 Use char because int might match the return type of a GCC
15820 builtin and then its argument prototype would still apply. */
15821 #ifdef __cplusplus
15822 extern "C"
15823 #endif
15824 char __res_send ();
15825 int
15826 main ()
15827 {
15828 return __res_send ();
15829 ;
15830 return 0;
15831 }
15832 _ACEOF
15833 if ac_fn_c_try_link "$LINENO"; then :
15834 ac_cv_lib_resolv___res_send=yes
15835 else
15836 ac_cv_lib_resolv___res_send=no
15837 fi
15838 rm -f core conftest.err conftest.$ac_objext \
15839 conftest$ac_exeext conftest.$ac_ext
15840 LIBS=$ac_check_lib_save_LIBS
15841 fi
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
15843 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
15844 if test "x$ac_cv_lib_resolv___res_send" = xyes; then :
15845 resolv=yes
15846 fi
15847
15848 fi
15849
15850 fi
15851
15852 fi
15853
15854 if test "$resolv" = yes ; then
15855 RESOLVLIB=-lresolv
15856 else
15857 RESOLVLIB=
15858 fi
15859 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
15860 if test "x$ac_cv_func_hes_getmailhost" = xyes; then :
15861
15862 else
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
15864 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
15865 if ${ac_cv_lib_hesiod_hes_getmailhost+:} false; then :
15866 $as_echo_n "(cached) " >&6
15867 else
15868 ac_check_lib_save_LIBS=$LIBS
15869 LIBS="-lhesiod $RESOLVLIB $LIBS"
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15872
15873 /* Override any GCC internal prototype to avoid an error.
15874 Use char because int might match the return type of a GCC
15875 builtin and then its argument prototype would still apply. */
15876 #ifdef __cplusplus
15877 extern "C"
15878 #endif
15879 char hes_getmailhost ();
15880 int
15881 main ()
15882 {
15883 return hes_getmailhost ();
15884 ;
15885 return 0;
15886 }
15887 _ACEOF
15888 if ac_fn_c_try_link "$LINENO"; then :
15889 ac_cv_lib_hesiod_hes_getmailhost=yes
15890 else
15891 ac_cv_lib_hesiod_hes_getmailhost=no
15892 fi
15893 rm -f core conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15895 LIBS=$ac_check_lib_save_LIBS
15896 fi
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
15898 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
15899 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = xyes; then :
15900 hesiod=yes
15901 else
15902 :
15903 fi
15904
15905 fi
15906
15907
15908 if test x"$hesiod" = xyes; then
15909
15910 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
15911
15912 LIBHESIOD=-lhesiod
15913 fi
15914 fi
15915
15916
15917 # Do we need libresolv (due to res_init or Hesiod)?
15918 if test "$resolv" = yes ; then
15919
15920 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
15921
15922 LIBRESOLV=-lresolv
15923 else
15924 LIBRESOLV=
15925 fi
15926
15927
15928 # These tell us which Kerberos-related libraries to use.
15929 COM_ERRLIB=
15930 CRYPTOLIB=
15931 KRB5LIB=
15932 DESLIB=
15933 KRB4LIB=
15934
15935 if test "${with_kerberos}" != no; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
15937 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
15938 if ${ac_cv_lib_com_err_com_err+:} false; then :
15939 $as_echo_n "(cached) " >&6
15940 else
15941 ac_check_lib_save_LIBS=$LIBS
15942 LIBS="-lcom_err $LIBS"
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945
15946 /* Override any GCC internal prototype to avoid an error.
15947 Use char because int might match the return type of a GCC
15948 builtin and then its argument prototype would still apply. */
15949 #ifdef __cplusplus
15950 extern "C"
15951 #endif
15952 char com_err ();
15953 int
15954 main ()
15955 {
15956 return com_err ();
15957 ;
15958 return 0;
15959 }
15960 _ACEOF
15961 if ac_fn_c_try_link "$LINENO"; then :
15962 ac_cv_lib_com_err_com_err=yes
15963 else
15964 ac_cv_lib_com_err_com_err=no
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext
15968 LIBS=$ac_check_lib_save_LIBS
15969 fi
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
15971 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
15972 if test "x$ac_cv_lib_com_err_com_err" = xyes; then :
15973 have_com_err=yes
15974 else
15975 have_com_err=no
15976 fi
15977
15978 if test $have_com_err = yes; then
15979 COM_ERRLIB=-lcom_err
15980 LIBS="$COM_ERRLIB $LIBS"
15981
15982 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
15983
15984 fi
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
15986 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
15987 if ${ac_cv_lib_crypto_mit_des_cbc_encrypt+:} false; then :
15988 $as_echo_n "(cached) " >&6
15989 else
15990 ac_check_lib_save_LIBS=$LIBS
15991 LIBS="-lcrypto $LIBS"
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h. */
15994
15995 /* Override any GCC internal prototype to avoid an error.
15996 Use char because int might match the return type of a GCC
15997 builtin and then its argument prototype would still apply. */
15998 #ifdef __cplusplus
15999 extern "C"
16000 #endif
16001 char mit_des_cbc_encrypt ();
16002 int
16003 main ()
16004 {
16005 return mit_des_cbc_encrypt ();
16006 ;
16007 return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_link "$LINENO"; then :
16011 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
16012 else
16013 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
16014 fi
16015 rm -f core conftest.err conftest.$ac_objext \
16016 conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16018 fi
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
16020 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
16021 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = xyes; then :
16022 have_crypto=yes
16023 else
16024 have_crypto=no
16025 fi
16026
16027 if test $have_crypto = yes; then
16028 CRYPTOLIB=-lcrypto
16029 LIBS="$CRYPTOLIB $LIBS"
16030
16031 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
16032
16033 fi
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
16035 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
16036 if ${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+:} false; then :
16037 $as_echo_n "(cached) " >&6
16038 else
16039 ac_check_lib_save_LIBS=$LIBS
16040 LIBS="-lk5crypto $LIBS"
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043
16044 /* Override any GCC internal prototype to avoid an error.
16045 Use char because int might match the return type of a GCC
16046 builtin and then its argument prototype would still apply. */
16047 #ifdef __cplusplus
16048 extern "C"
16049 #endif
16050 char mit_des_cbc_encrypt ();
16051 int
16052 main ()
16053 {
16054 return mit_des_cbc_encrypt ();
16055 ;
16056 return 0;
16057 }
16058 _ACEOF
16059 if ac_fn_c_try_link "$LINENO"; then :
16060 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
16061 else
16062 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
16063 fi
16064 rm -f core conftest.err conftest.$ac_objext \
16065 conftest$ac_exeext conftest.$ac_ext
16066 LIBS=$ac_check_lib_save_LIBS
16067 fi
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
16069 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
16070 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = xyes; then :
16071 have_k5crypto=yes
16072 else
16073 have_k5crypto=no
16074 fi
16075
16076 if test $have_k5crypto = yes; then
16077 CRYPTOLIB=-lk5crypto
16078 LIBS="$CRYPTOLIB $LIBS"
16079
16080 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
16081
16082 fi
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
16084 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
16085 if ${ac_cv_lib_krb5_krb5_init_context+:} false; then :
16086 $as_echo_n "(cached) " >&6
16087 else
16088 ac_check_lib_save_LIBS=$LIBS
16089 LIBS="-lkrb5 $LIBS"
16090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16091 /* end confdefs.h. */
16092
16093 /* Override any GCC internal prototype to avoid an error.
16094 Use char because int might match the return type of a GCC
16095 builtin and then its argument prototype would still apply. */
16096 #ifdef __cplusplus
16097 extern "C"
16098 #endif
16099 char krb5_init_context ();
16100 int
16101 main ()
16102 {
16103 return krb5_init_context ();
16104 ;
16105 return 0;
16106 }
16107 _ACEOF
16108 if ac_fn_c_try_link "$LINENO"; then :
16109 ac_cv_lib_krb5_krb5_init_context=yes
16110 else
16111 ac_cv_lib_krb5_krb5_init_context=no
16112 fi
16113 rm -f core conftest.err conftest.$ac_objext \
16114 conftest$ac_exeext conftest.$ac_ext
16115 LIBS=$ac_check_lib_save_LIBS
16116 fi
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
16118 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
16119 if test "x$ac_cv_lib_krb5_krb5_init_context" = xyes; then :
16120 have_krb5=yes
16121 else
16122 have_krb5=no
16123 fi
16124
16125 if test $have_krb5=yes; then
16126 KRB5LIB=-lkrb5
16127 LIBS="$KRB5LIB $LIBS"
16128
16129 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
16130
16131 fi
16132 if test "${with_kerberos5}" = no; then
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
16134 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
16135 if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then :
16136 $as_echo_n "(cached) " >&6
16137 else
16138 ac_check_lib_save_LIBS=$LIBS
16139 LIBS="-ldes425 $LIBS"
16140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16141 /* end confdefs.h. */
16142
16143 /* Override any GCC internal prototype to avoid an error.
16144 Use char because int might match the return type of a GCC
16145 builtin and then its argument prototype would still apply. */
16146 #ifdef __cplusplus
16147 extern "C"
16148 #endif
16149 char des_cbc_encrypt ();
16150 int
16151 main ()
16152 {
16153 return des_cbc_encrypt ();
16154 ;
16155 return 0;
16156 }
16157 _ACEOF
16158 if ac_fn_c_try_link "$LINENO"; then :
16159 ac_cv_lib_des425_des_cbc_encrypt=yes
16160 else
16161 ac_cv_lib_des425_des_cbc_encrypt=no
16162 fi
16163 rm -f core conftest.err conftest.$ac_objext \
16164 conftest$ac_exeext conftest.$ac_ext
16165 LIBS=$ac_check_lib_save_LIBS
16166 fi
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
16168 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
16169 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then :
16170 have_des425=yes
16171 else
16172 have_des425=no
16173 fi
16174
16175 if test $have_des425 = yes; then
16176 DESLIB=-ldes425
16177 LIBS="$DESLIB $LIBS"
16178
16179 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
16180
16181 else
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
16183 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
16184 if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 ac_check_lib_save_LIBS=$LIBS
16188 LIBS="-ldes $LIBS"
16189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16190 /* end confdefs.h. */
16191
16192 /* Override any GCC internal prototype to avoid an error.
16193 Use char because int might match the return type of a GCC
16194 builtin and then its argument prototype would still apply. */
16195 #ifdef __cplusplus
16196 extern "C"
16197 #endif
16198 char des_cbc_encrypt ();
16199 int
16200 main ()
16201 {
16202 return des_cbc_encrypt ();
16203 ;
16204 return 0;
16205 }
16206 _ACEOF
16207 if ac_fn_c_try_link "$LINENO"; then :
16208 ac_cv_lib_des_des_cbc_encrypt=yes
16209 else
16210 ac_cv_lib_des_des_cbc_encrypt=no
16211 fi
16212 rm -f core conftest.err conftest.$ac_objext \
16213 conftest$ac_exeext conftest.$ac_ext
16214 LIBS=$ac_check_lib_save_LIBS
16215 fi
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
16217 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
16218 if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then :
16219 have_des=yes
16220 else
16221 have_des=no
16222 fi
16223
16224 if test $have_des = yes; then
16225 DESLIB=-ldes
16226 LIBS="$DESLIB $LIBS"
16227
16228 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
16229
16230 fi
16231 fi
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
16233 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
16234 if ${ac_cv_lib_krb4_krb_get_cred+:} false; then :
16235 $as_echo_n "(cached) " >&6
16236 else
16237 ac_check_lib_save_LIBS=$LIBS
16238 LIBS="-lkrb4 $LIBS"
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16241
16242 /* Override any GCC internal prototype to avoid an error.
16243 Use char because int might match the return type of a GCC
16244 builtin and then its argument prototype would still apply. */
16245 #ifdef __cplusplus
16246 extern "C"
16247 #endif
16248 char krb_get_cred ();
16249 int
16250 main ()
16251 {
16252 return krb_get_cred ();
16253 ;
16254 return 0;
16255 }
16256 _ACEOF
16257 if ac_fn_c_try_link "$LINENO"; then :
16258 ac_cv_lib_krb4_krb_get_cred=yes
16259 else
16260 ac_cv_lib_krb4_krb_get_cred=no
16261 fi
16262 rm -f core conftest.err conftest.$ac_objext \
16263 conftest$ac_exeext conftest.$ac_ext
16264 LIBS=$ac_check_lib_save_LIBS
16265 fi
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
16267 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
16268 if test "x$ac_cv_lib_krb4_krb_get_cred" = xyes; then :
16269 have_krb4=yes
16270 else
16271 have_krb4=no
16272 fi
16273
16274 if test $have_krb4 = yes; then
16275 KRB4LIB=-lkrb4
16276 LIBS="$KRB4LIB $LIBS"
16277
16278 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
16279
16280 else
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
16282 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
16283 if ${ac_cv_lib_krb_krb_get_cred+:} false; then :
16284 $as_echo_n "(cached) " >&6
16285 else
16286 ac_check_lib_save_LIBS=$LIBS
16287 LIBS="-lkrb $LIBS"
16288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16289 /* end confdefs.h. */
16290
16291 /* Override any GCC internal prototype to avoid an error.
16292 Use char because int might match the return type of a GCC
16293 builtin and then its argument prototype would still apply. */
16294 #ifdef __cplusplus
16295 extern "C"
16296 #endif
16297 char krb_get_cred ();
16298 int
16299 main ()
16300 {
16301 return krb_get_cred ();
16302 ;
16303 return 0;
16304 }
16305 _ACEOF
16306 if ac_fn_c_try_link "$LINENO"; then :
16307 ac_cv_lib_krb_krb_get_cred=yes
16308 else
16309 ac_cv_lib_krb_krb_get_cred=no
16310 fi
16311 rm -f core conftest.err conftest.$ac_objext \
16312 conftest$ac_exeext conftest.$ac_ext
16313 LIBS=$ac_check_lib_save_LIBS
16314 fi
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
16316 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
16317 if test "x$ac_cv_lib_krb_krb_get_cred" = xyes; then :
16318 have_krb=yes
16319 else
16320 have_krb=no
16321 fi
16322
16323 if test $have_krb = yes; then
16324 KRB4LIB=-lkrb
16325 LIBS="$KRB4LIB $LIBS"
16326
16327 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
16328
16329 fi
16330 fi
16331 fi
16332
16333 if test "${with_kerberos5}" != no; then
16334 for ac_header in krb5.h
16335 do :
16336 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
16337 if test "x$ac_cv_header_krb5_h" = xyes; then :
16338 cat >>confdefs.h <<_ACEOF
16339 #define HAVE_KRB5_H 1
16340 _ACEOF
16341 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
16342 "
16343 if test "x$ac_cv_member_krb5_error_text" = xyes; then :
16344
16345 cat >>confdefs.h <<_ACEOF
16346 #define HAVE_KRB5_ERROR_TEXT 1
16347 _ACEOF
16348
16349
16350 fi
16351 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
16352 "
16353 if test "x$ac_cv_member_krb5_error_e_text" = xyes; then :
16354
16355 cat >>confdefs.h <<_ACEOF
16356 #define HAVE_KRB5_ERROR_E_TEXT 1
16357 _ACEOF
16358
16359
16360 fi
16361
16362 fi
16363
16364 done
16365
16366 else
16367 for ac_header in des.h
16368 do :
16369 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
16370 if test "x$ac_cv_header_des_h" = xyes; then :
16371 cat >>confdefs.h <<_ACEOF
16372 #define HAVE_DES_H 1
16373 _ACEOF
16374
16375 else
16376 for ac_header in kerberosIV/des.h
16377 do :
16378 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
16379 if test "x$ac_cv_header_kerberosIV_des_h" = xyes; then :
16380 cat >>confdefs.h <<_ACEOF
16381 #define HAVE_KERBEROSIV_DES_H 1
16382 _ACEOF
16383
16384 else
16385 for ac_header in kerberos/des.h
16386 do :
16387 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
16388 if test "x$ac_cv_header_kerberos_des_h" = xyes; then :
16389 cat >>confdefs.h <<_ACEOF
16390 #define HAVE_KERBEROS_DES_H 1
16391 _ACEOF
16392
16393 fi
16394
16395 done
16396
16397 fi
16398
16399 done
16400
16401 fi
16402
16403 done
16404
16405 for ac_header in krb.h
16406 do :
16407 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
16408 if test "x$ac_cv_header_krb_h" = xyes; then :
16409 cat >>confdefs.h <<_ACEOF
16410 #define HAVE_KRB_H 1
16411 _ACEOF
16412
16413 else
16414 for ac_header in kerberosIV/krb.h
16415 do :
16416 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
16417 if test "x$ac_cv_header_kerberosIV_krb_h" = xyes; then :
16418 cat >>confdefs.h <<_ACEOF
16419 #define HAVE_KERBEROSIV_KRB_H 1
16420 _ACEOF
16421
16422 else
16423 for ac_header in kerberos/krb.h
16424 do :
16425 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
16426 if test "x$ac_cv_header_kerberos_krb_h" = xyes; then :
16427 cat >>confdefs.h <<_ACEOF
16428 #define HAVE_KERBEROS_KRB_H 1
16429 _ACEOF
16430
16431 fi
16432
16433 done
16434
16435 fi
16436
16437 done
16438
16439 fi
16440
16441 done
16442
16443 fi
16444 for ac_header in com_err.h
16445 do :
16446 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
16447 if test "x$ac_cv_header_com_err_h" = xyes; then :
16448 cat >>confdefs.h <<_ACEOF
16449 #define HAVE_COM_ERR_H 1
16450 _ACEOF
16451
16452 fi
16453
16454 done
16455
16456 fi
16457
16458
16459
16460
16461
16462
16463
16464 # Solaris requires -lintl if you want strerror (which calls dgettext)
16465 # to return localized messages.
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16467 $as_echo_n "checking for dgettext in -lintl... " >&6; }
16468 if ${ac_cv_lib_intl_dgettext+:} false; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 ac_check_lib_save_LIBS=$LIBS
16472 LIBS="-lintl $LIBS"
16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h. */
16475
16476 /* Override any GCC internal prototype to avoid an error.
16477 Use char because int might match the return type of a GCC
16478 builtin and then its argument prototype would still apply. */
16479 #ifdef __cplusplus
16480 extern "C"
16481 #endif
16482 char dgettext ();
16483 int
16484 main ()
16485 {
16486 return dgettext ();
16487 ;
16488 return 0;
16489 }
16490 _ACEOF
16491 if ac_fn_c_try_link "$LINENO"; then :
16492 ac_cv_lib_intl_dgettext=yes
16493 else
16494 ac_cv_lib_intl_dgettext=no
16495 fi
16496 rm -f core conftest.err conftest.$ac_objext \
16497 conftest$ac_exeext conftest.$ac_ext
16498 LIBS=$ac_check_lib_save_LIBS
16499 fi
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16501 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
16502 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
16503 cat >>confdefs.h <<_ACEOF
16504 #define HAVE_LIBINTL 1
16505 _ACEOF
16506
16507 LIBS="-lintl $LIBS"
16508
16509 fi
16510
16511
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
16513 $as_echo_n "checking whether localtime caches TZ... " >&6; }
16514 if ${emacs_cv_localtime_cache+:} false; then :
16515 $as_echo_n "(cached) " >&6
16516 else
16517 if test x$ac_cv_func_tzset = xyes; then
16518 if test "$cross_compiling" = yes; then :
16519 # If we have tzset, assume the worst when cross-compiling.
16520 emacs_cv_localtime_cache=yes
16521 else
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16524 #include <time.h>
16525 char TZ_GMT0[] = "TZ=GMT0";
16526 char TZ_PST8[] = "TZ=PST8";
16527 main()
16528 {
16529 time_t now = time ((time_t *) 0);
16530 int hour_GMT0, hour_unset;
16531 if (putenv (TZ_GMT0) != 0)
16532 exit (1);
16533 hour_GMT0 = localtime (&now)->tm_hour;
16534 unsetenv("TZ");
16535 hour_unset = localtime (&now)->tm_hour;
16536 if (putenv (TZ_PST8) != 0)
16537 exit (1);
16538 if (localtime (&now)->tm_hour == hour_GMT0)
16539 exit (1);
16540 unsetenv("TZ");
16541 if (localtime (&now)->tm_hour != hour_unset)
16542 exit (1);
16543 exit (0);
16544 }
16545 _ACEOF
16546 if ac_fn_c_try_run "$LINENO"; then :
16547 emacs_cv_localtime_cache=no
16548 else
16549 emacs_cv_localtime_cache=yes
16550 fi
16551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16552 conftest.$ac_objext conftest.beam conftest.$ac_ext
16553 fi
16554
16555 else
16556 # If we lack tzset, report that localtime does not cache TZ,
16557 # since we can't invalidate the cache if we don't have tzset.
16558 emacs_cv_localtime_cache=no
16559 fi
16560 fi
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
16562 $as_echo "$emacs_cv_localtime_cache" >&6; }
16563 if test $emacs_cv_localtime_cache = yes; then
16564
16565 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
16566
16567 fi
16568
16569 if test "x$HAVE_TIMEVAL" = xyes; then
16570 for ac_func in gettimeofday
16571 do :
16572 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
16573 if test "x$ac_cv_func_gettimeofday" = xyes; then :
16574 cat >>confdefs.h <<_ACEOF
16575 #define HAVE_GETTIMEOFDAY 1
16576 _ACEOF
16577
16578 fi
16579 done
16580
16581 if test $ac_cv_func_gettimeofday = yes; then
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
16583 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
16584 if ${emacs_cv_gettimeofday_two_arguments+:} false; then :
16585 $as_echo_n "(cached) " >&6
16586 else
16587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588 /* end confdefs.h. */
16589
16590 #ifdef TIME_WITH_SYS_TIME
16591 #include <sys/time.h>
16592 #include <time.h>
16593 #else
16594 #ifdef HAVE_SYS_TIME_H
16595 #include <sys/time.h>
16596 #else
16597 #include <time.h>
16598 #endif
16599 #endif
16600 int
16601 main ()
16602 {
16603 struct timeval time;
16604 gettimeofday (&time, 0);
16605 ;
16606 return 0;
16607 }
16608 _ACEOF
16609 if ac_fn_c_try_compile "$LINENO"; then :
16610 emacs_cv_gettimeofday_two_arguments=yes
16611 else
16612 emacs_cv_gettimeofday_two_arguments=no
16613 fi
16614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16615 fi
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
16617 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
16618 if test $emacs_cv_gettimeofday_two_arguments = no; then
16619
16620 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
16621
16622 fi
16623 fi
16624 fi
16625
16626 ok_so_far=yes
16627 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
16628 if test "x$ac_cv_func_socket" = xyes; then :
16629
16630 else
16631 ok_so_far=no
16632 fi
16633
16634 if test $ok_so_far = yes; then
16635 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
16636 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
16637
16638 else
16639 ok_so_far=no
16640 fi
16641
16642
16643 fi
16644 if test $ok_so_far = yes; then
16645 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
16646 if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
16647
16648 else
16649 ok_so_far=no
16650 fi
16651
16652
16653 fi
16654 if test $ok_so_far = yes; then
16655
16656 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
16657
16658 fi
16659
16660 if test -f /usr/lpp/X11/bin/smt.exp; then
16661
16662 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
16663
16664 fi
16665
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
16667 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
16668 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16670 $as_echo "yes" >&6; }
16671
16672 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
16673
16674 else
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16676 $as_echo "no" >&6; }
16677 fi
16678
16679 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
16680 if test "x$ac_cv_type_pid_t" = xyes; then :
16681
16682 else
16683
16684 cat >>confdefs.h <<_ACEOF
16685 #define pid_t int
16686 _ACEOF
16687
16688 fi
16689
16690 for ac_header in vfork.h
16691 do :
16692 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
16693 if test "x$ac_cv_header_vfork_h" = xyes; then :
16694 cat >>confdefs.h <<_ACEOF
16695 #define HAVE_VFORK_H 1
16696 _ACEOF
16697
16698 fi
16699
16700 done
16701
16702 for ac_func in fork vfork
16703 do :
16704 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16705 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16706 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16707 cat >>confdefs.h <<_ACEOF
16708 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16709 _ACEOF
16710
16711 fi
16712 done
16713
16714 if test "x$ac_cv_func_fork" = xyes; then
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
16716 $as_echo_n "checking for working fork... " >&6; }
16717 if ${ac_cv_func_fork_works+:} false; then :
16718 $as_echo_n "(cached) " >&6
16719 else
16720 if test "$cross_compiling" = yes; then :
16721 ac_cv_func_fork_works=cross
16722 else
16723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16724 /* end confdefs.h. */
16725 $ac_includes_default
16726 int
16727 main ()
16728 {
16729
16730 /* By Ruediger Kuhlmann. */
16731 return fork () < 0;
16732
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 if ac_fn_c_try_run "$LINENO"; then :
16738 ac_cv_func_fork_works=yes
16739 else
16740 ac_cv_func_fork_works=no
16741 fi
16742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16743 conftest.$ac_objext conftest.beam conftest.$ac_ext
16744 fi
16745
16746 fi
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
16748 $as_echo "$ac_cv_func_fork_works" >&6; }
16749
16750 else
16751 ac_cv_func_fork_works=$ac_cv_func_fork
16752 fi
16753 if test "x$ac_cv_func_fork_works" = xcross; then
16754 case $host in
16755 *-*-amigaos* | *-*-msdosdjgpp*)
16756 # Override, as these systems have only a dummy fork() stub
16757 ac_cv_func_fork_works=no
16758 ;;
16759 *)
16760 ac_cv_func_fork_works=yes
16761 ;;
16762 esac
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16764 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16765 fi
16766 ac_cv_func_vfork_works=$ac_cv_func_vfork
16767 if test "x$ac_cv_func_vfork" = xyes; then
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
16769 $as_echo_n "checking for working vfork... " >&6; }
16770 if ${ac_cv_func_vfork_works+:} false; then :
16771 $as_echo_n "(cached) " >&6
16772 else
16773 if test "$cross_compiling" = yes; then :
16774 ac_cv_func_vfork_works=cross
16775 else
16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16778 /* Thanks to Paul Eggert for this test. */
16779 $ac_includes_default
16780 #include <sys/wait.h>
16781 #ifdef HAVE_VFORK_H
16782 # include <vfork.h>
16783 #endif
16784 /* On some sparc systems, changes by the child to local and incoming
16785 argument registers are propagated back to the parent. The compiler
16786 is told about this with #include <vfork.h>, but some compilers
16787 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16788 static variable whose address is put into a register that is
16789 clobbered by the vfork. */
16790 static void
16791 #ifdef __cplusplus
16792 sparc_address_test (int arg)
16793 # else
16794 sparc_address_test (arg) int arg;
16795 #endif
16796 {
16797 static pid_t child;
16798 if (!child) {
16799 child = vfork ();
16800 if (child < 0) {
16801 perror ("vfork");
16802 _exit(2);
16803 }
16804 if (!child) {
16805 arg = getpid();
16806 write(-1, "", 0);
16807 _exit (arg);
16808 }
16809 }
16810 }
16811
16812 int
16813 main ()
16814 {
16815 pid_t parent = getpid ();
16816 pid_t child;
16817
16818 sparc_address_test (0);
16819
16820 child = vfork ();
16821
16822 if (child == 0) {
16823 /* Here is another test for sparc vfork register problems. This
16824 test uses lots of local variables, at least as many local
16825 variables as main has allocated so far including compiler
16826 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16827 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16828 reuse the register of parent for one of the local variables,
16829 since it will think that parent can't possibly be used any more
16830 in this routine. Assigning to the local variable will thus
16831 munge parent in the parent process. */
16832 pid_t
16833 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16834 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16835 /* Convince the compiler that p..p7 are live; otherwise, it might
16836 use the same hardware register for all 8 local variables. */
16837 if (p != p1 || p != p2 || p != p3 || p != p4
16838 || p != p5 || p != p6 || p != p7)
16839 _exit(1);
16840
16841 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16842 from child file descriptors. If the child closes a descriptor
16843 before it execs or exits, this munges the parent's descriptor
16844 as well. Test for this by closing stdout in the child. */
16845 _exit(close(fileno(stdout)) != 0);
16846 } else {
16847 int status;
16848 struct stat st;
16849
16850 while (wait(&status) != child)
16851 ;
16852 return (
16853 /* Was there some problem with vforking? */
16854 child < 0
16855
16856 /* Did the child fail? (This shouldn't happen.) */
16857 || status
16858
16859 /* Did the vfork/compiler bug occur? */
16860 || parent != getpid()
16861
16862 /* Did the file descriptor bug occur? */
16863 || fstat(fileno(stdout), &st) != 0
16864 );
16865 }
16866 }
16867 _ACEOF
16868 if ac_fn_c_try_run "$LINENO"; then :
16869 ac_cv_func_vfork_works=yes
16870 else
16871 ac_cv_func_vfork_works=no
16872 fi
16873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16874 conftest.$ac_objext conftest.beam conftest.$ac_ext
16875 fi
16876
16877 fi
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
16879 $as_echo "$ac_cv_func_vfork_works" >&6; }
16880
16881 fi;
16882 if test "x$ac_cv_func_fork_works" = xcross; then
16883 ac_cv_func_vfork_works=$ac_cv_func_vfork
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16885 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16886 fi
16887
16888 if test "x$ac_cv_func_vfork_works" = xyes; then
16889
16890 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
16891
16892 else
16893
16894 $as_echo "#define vfork fork" >>confdefs.h
16895
16896 fi
16897 if test "x$ac_cv_func_fork_works" = xyes; then
16898
16899 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
16900
16901 fi
16902
16903
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
16905 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
16906 if ${emacs_cv_langinfo_codeset+:} false; then :
16907 $as_echo_n "(cached) " >&6
16908 else
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 #include <langinfo.h>
16912 int
16913 main ()
16914 {
16915 char* cs = nl_langinfo(CODESET);
16916 ;
16917 return 0;
16918 }
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 emacs_cv_langinfo_codeset=yes
16922 else
16923 emacs_cv_langinfo_codeset=no
16924 fi
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16927
16928 fi
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
16930 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
16931 if test $emacs_cv_langinfo_codeset = yes; then
16932
16933 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
16934
16935 fi
16936
16937 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16938 if test "x$ac_cv_type_size_t" = xyes; then :
16939
16940 cat >>confdefs.h <<_ACEOF
16941 #define HAVE_SIZE_T 1
16942 _ACEOF
16943
16944
16945 fi
16946
16947
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
16949 $as_echo_n "checking for mbstate_t... " >&6; }
16950 if ${ac_cv_type_mbstate_t+:} false; then :
16951 $as_echo_n "(cached) " >&6
16952 else
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16955 $ac_includes_default
16956 # include <wchar.h>
16957 int
16958 main ()
16959 {
16960 mbstate_t x; return sizeof x;
16961 ;
16962 return 0;
16963 }
16964 _ACEOF
16965 if ac_fn_c_try_compile "$LINENO"; then :
16966 ac_cv_type_mbstate_t=yes
16967 else
16968 ac_cv_type_mbstate_t=no
16969 fi
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 fi
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
16973 $as_echo "$ac_cv_type_mbstate_t" >&6; }
16974 if test $ac_cv_type_mbstate_t = yes; then
16975
16976 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
16977
16978 else
16979
16980 $as_echo "#define mbstate_t int" >>confdefs.h
16981
16982 fi
16983
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
16985 $as_echo_n "checking for C restricted array declarations... " >&6; }
16986 if ${emacs_cv_c_restrict_arr+:} false; then :
16987 $as_echo_n "(cached) " >&6
16988 else
16989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16990 /* end confdefs.h. */
16991 void fred (int x[__restrict]);
16992 int
16993 main ()
16994 {
16995
16996 ;
16997 return 0;
16998 }
16999 _ACEOF
17000 if ac_fn_c_try_compile "$LINENO"; then :
17001 emacs_cv_c_restrict_arr=yes
17002 else
17003 emacs_cv_c_restrict_arr=no
17004 fi
17005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17006 fi
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
17008 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
17009 if test "$emacs_cv_c_restrict_arr" = yes; then
17010
17011 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
17012
17013 fi
17014
17015
17016
17017 # Set up the CFLAGS for real compilation, so we can substitute it.
17018 CFLAGS="$REAL_CFLAGS"
17019 CPPFLAGS="$REAL_CPPFLAGS"
17020
17021 ## Hack to detect a buggy GCC version.
17022 if test "x$GCC" = xyes \
17023 && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \
17024 && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \
17025 && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then
17026 as_fn_error $? "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5
17027 fi
17028
17029 version=$PACKAGE_VERSION
17030
17031 ### Specify what sort of things we'll be editing into Makefile and config.h.
17032 ### Use configuration here uncanonicalized to avoid exceeding size limits.
17033
17034
17035 ## Unused?
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051
17052
17053
17054
17055
17056 ## FIXME? Nothing uses @LD_SWITCH_X_SITE@.
17057 ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the
17058 ## end of LIBX_BASE, but nothing ever set it.
17059
17060
17061
17062
17063 ## Used in lwlib/Makefile.in.
17064
17065 if test -n "${machfile}"; then
17066 M_FILE="\$(srcdir)/${machfile}"
17067 else
17068 M_FILE=
17069 fi
17070 S_FILE="\$(srcdir)/${opsysfile}"
17071
17072
17073
17074
17075
17076
17077
17078
17079
17080
17081
17082 cat >>confdefs.h <<_ACEOF
17083 #define EMACS_CONFIGURATION "${canonical}"
17084 _ACEOF
17085
17086
17087 cat >>confdefs.h <<_ACEOF
17088 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
17089 _ACEOF
17090
17091 if test -n "$machfile"; then
17092
17093 cat >>confdefs.h <<_ACEOF
17094 #define config_machfile "${machfile}"
17095 _ACEOF
17096
17097 fi
17098
17099 cat >>confdefs.h <<_ACEOF
17100 #define config_opsysfile "${opsysfile}"
17101 _ACEOF
17102
17103
17104 XMENU_OBJ=
17105 XOBJ=
17106 FONT_OBJ=
17107 if test "${HAVE_X_WINDOWS}" = "yes" ; then
17108
17109 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
17110
17111 XMENU_OBJ=xmenu.o
17112 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
17113 FONT_OBJ=xfont.o
17114 if test "$HAVE_XFT" = "yes"; then
17115 FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o"
17116 elif test "$HAVE_FREETYPE" = "yes"; then
17117 FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o"
17118 fi
17119
17120 fi
17121
17122
17123
17124
17125 WIDGET_OBJ=
17126 MOTIF_LIBW=
17127 if test "${USE_X_TOOLKIT}" != "none" ; then
17128 WIDGET_OBJ=widget.o
17129
17130 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
17131
17132 if test "${USE_X_TOOLKIT}" = "LUCID"; then
17133
17134 $as_echo "#define USE_LUCID 1" >>confdefs.h
17135
17136 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
17137
17138 $as_echo "#define USE_MOTIF 1" >>confdefs.h
17139
17140 MOTIF_LIBW=-lXm
17141 case "$opsys" in
17142 gnu-linux)
17143 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
17144 MOTIF_LIBW="$MOTIF_LIBW -lXpm"
17145 ;;
17146
17147 unixware)
17148 ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov>
17149 ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2.
17150 MOTIF_LIBW="MOTIF_LIBW -lXimp"
17151 ;;
17152
17153 aix4-2)
17154 ## olson@mcs.anl.gov says -li18n is needed by -lXm.
17155 MOTIF_LIBW="$MOTIF_LIBW -li18n"
17156 ;;
17157 esac
17158 MOTIF_LIBW="$MOTIF_LIBW $LIBXP"
17159 fi
17160 fi
17161
17162
17163 TOOLKIT_LIBW=
17164 case "$USE_X_TOOLKIT" in
17165 MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;;
17166 LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;;
17167 none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;;
17168 esac
17169
17170
17171 if test "$USE_X_TOOLKIT" = "none"; then
17172 LIBXT_OTHER="\$(LIBXSM)"
17173 OLDXMENU_TARGET="really-oldXMenu"
17174 else
17175 LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext"
17176 OLDXMENU_TARGET="really-lwlib"
17177 fi
17178
17179
17180 ## The X Menu stuff is present in the X10 distribution, but missing
17181 ## from X11. If we have X10, just use the installed library;
17182 ## otherwise, use our own copy.
17183 if test "${HAVE_X11}" = "yes" ; then
17184
17185 $as_echo "#define HAVE_X11 1" >>confdefs.h
17186
17187
17188 if test "$USE_X_TOOLKIT" = "none"; then
17189 OLDXMENU="\${oldXMenudir}/libXMenu11.a"
17190 else
17191 OLDXMENU="\${lwlibdir}/liblw.a"
17192 fi
17193 LIBXMENU="\$(OLDXMENU)"
17194 LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)"
17195 OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}"
17196 else
17197 ## For a syntactically valid Makefile; not actually used for anything.
17198 ## See comments in src/Makefile.in.
17199 OLDXMENU=nothing
17200 ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?).
17201 if test "${HAVE_X_WINDOWS}" = "yes"; then
17202 LIBXMENU="-lXMenu"
17203 else
17204 LIBXMENU=
17205 fi
17206 LIBX_OTHER=
17207 OLDXMENU_DEPS=
17208 fi
17209
17210 if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then
17211 OLDXMENU_TARGET=
17212 OLDXMENU=nothing
17213 LIBXMENU=
17214 OLDXMENU_DEPS=
17215 fi
17216
17217
17218
17219
17220
17221
17222
17223 if test "${HAVE_MENUS}" = "yes" ; then
17224
17225 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
17226
17227 fi
17228
17229 if test "${GNU_MALLOC}" = "yes" ; then
17230
17231 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
17232
17233 fi
17234
17235 RALLOC_OBJ=
17236 if test "${REL_ALLOC}" = "yes" ; then
17237
17238 $as_echo "#define REL_ALLOC 1" >>confdefs.h
17239
17240
17241 test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o
17242 fi
17243
17244
17245 if test "$opsys" = "cygwin"; then
17246 CYGWIN_OBJ="sheap.o"
17247 ## Cygwin differs because of its unexec().
17248 PRE_ALLOC_OBJ=
17249 POST_ALLOC_OBJ=lastfile.o
17250 else
17251 CYGWIN_OBJ=
17252 PRE_ALLOC_OBJ=lastfile.o
17253 POST_ALLOC_OBJ=
17254 fi
17255
17256
17257
17258
17259
17260 case "$opsys" in
17261 aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;;
17262
17263 darwin)
17264 ## The -headerpad option tells ld (see man page) to leave room at the
17265 ## end of the header for adding load commands. Needed for dumping.
17266 ## 0x690 is the total size of 30 segment load commands (at 56
17267 ## each); under Cocoa 31 commands are required.
17268 if test "$HAVE_NS" = "yes"; then
17269 libs_nsgui="-framework AppKit"
17270 headerpad_extra=6C8
17271 else
17272 libs_nsgui=
17273 headerpad_extra=690
17274 fi
17275 LD_SWITCH_SYSTEM_TEMACS="-prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra"
17276
17277 ## This is here because src/Makefile.in did some extra fiddling around
17278 ## with LD_SWITCH_SYSTEM. The cpp logic was:
17279 ## #ifndef LD_SWITCH_SYSTEM
17280 ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
17281 ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
17282 ## not using gcc, darwin system not on an alpha (ie darwin, since
17283 ## darwin + alpha does not occur).
17284 ## Because this was done in src/Makefile.in, the resulting part of
17285 ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link).
17286 ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS,
17287 ## rather than LD_SWITCH_SYSTEM.
17288 test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
17289 LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS"
17290 ;;
17291
17292 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
17293 ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at
17294 ## the point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_AUX
17295 ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM
17296 ## had different values in configure (in ac_link) and src/Makefile.in.
17297 ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS.
17298 gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;;
17299
17300 *) LD_SWITCH_SYSTEM_TEMACS= ;;
17301 esac
17302
17303 if test "$NS_IMPL_GNUSTEP" = "yes"; then
17304 LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread"
17305 fi
17306
17307
17308
17309
17310 LD_FIRSTFLAG=
17311 ORDINARY_LINK=
17312 case "$opsys" in
17313 ## gnu: GNU needs its own crt0.
17314 aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;;
17315
17316 ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the
17317 ## library search parth, i.e. it won't search /usr/lib for libc and
17318 ## friends. Using -nostartfiles instead avoids this problem, and
17319 ## will also work on earlier NetBSD releases.
17320 netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;;
17321
17322 ## macpcc: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says
17323 ## MkLinux/LinuxPPC needs this.
17324 ## ibms390x only supports opsys = gnu-linux so it can be added here.
17325 gnu-*)
17326 case "$machine" in
17327 macppc|ibms390x) LD_FIRSTFLAG="-nostdlib" ;;
17328 esac
17329 ;;
17330 esac
17331
17332
17333 if test "x$ORDINARY_LINK" = "xyes"; then
17334
17335 LD_FIRSTFLAG=""
17336
17337 $as_echo "#define ORDINARY_LINK 1" >>confdefs.h
17338
17339
17340 ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are:
17341 ## freebsd, gnu-* not on macppc|ibms390x.
17342 elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then
17343
17344 ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure
17345 ## places that are difficult to figure out at make time. Fortunately,
17346 ## these same versions allow you to pass arbitrary flags on to the
17347 ## linker, so there is no reason not to use it as a linker.
17348 ##
17349 ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from
17350 ## searching for libraries in its internal directories, so we have to
17351 ## ask GCC explicitly where to find libgcc.a (LIB_GCC below).
17352 LD_FIRSTFLAG="-nostdlib"
17353 fi
17354
17355 ## FIXME? What setting of EDIT_LDFLAGS should this have?
17356 test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic"
17357
17358
17359
17360
17361 ## FIXME? The logic here is not precisely the same as that above.
17362 ## There is no check here for a pre-defined LD_FIRSTFLAG.
17363 ## Should we only be setting LIB_GCC if LD ~ -nostdlib?
17364 LIB_GCC=
17365 if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then
17366
17367 case "$opsys" in
17368 freebsd|netbsd|openbsd) LIB_GCC= ;;
17369
17370 gnu-*)
17371 ## armin76@gentoo.org reported that the lgcc_s flag is necessary to
17372 ## build on ARM EABI under GNU/Linux. (Bug#5518)
17373 case $host_cpu in
17374 arm*)
17375 LIB_GCC="-lgcc_s"
17376 ;;
17377 *)
17378 ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then
17379 ## immediately undefine it again and redefine it to empty.
17380 ## Was the C_SWITCH_X_SITE part really necessary?
17381 ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name`
17382 LIB_GCC=
17383 ;;
17384 esac
17385 ;;
17386
17387 ## Ask GCC where to find libgcc.a.
17388 *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;;
17389 esac
17390 fi
17391
17392
17393 TOOLTIP_SUPPORT=
17394 WINDOW_SUPPORT=
17395 ## If we're using X11/GNUstep, define some consequences.
17396 if test "$HAVE_X_WINDOWS" = "yes" || test "$HAVE_NS" = "yes"; then
17397
17398 $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h
17399
17400
17401 $as_echo "#define HAVE_MOUSE 1" >>confdefs.h
17402
17403 MOUSE_SUPPORT="\$(REAL_MOUSE_SUPPORT)"
17404 TOOLTIP_SUPPORT="\${lispsource}/mouse.elc"
17405
17406 WINDOW_SUPPORT="\$(BASE_WINDOW_SUPPORT)"
17407 test "$HAVE_X_WINDOWS" = "yes" && \
17408 WINDOW_SUPPORT="$WINDOW_SUPPORT \$(X_WINDOW_SUPPORT)"
17409
17410 fi
17411
17412
17413
17414
17415
17416
17417
17418 #### Report on what we decided to do.
17419 #### Report GTK as a toolkit, even if it doesn't use Xt.
17420 #### It makes printing result more understandable as using GTK sets
17421 #### toolkit_scroll_bars to yes by default.
17422 if test "${HAVE_GTK}" = "yes"; then
17423 USE_X_TOOLKIT=GTK
17424 fi
17425
17426 and_machfile=
17427 if test -n "$machfile"; then
17428 and_machfile=" and \`${machfile}'"
17429 fi
17430
17431 echo "
17432 Configured for \`${canonical}'.
17433
17434 Where should the build process find the source code? ${srcdir}
17435 What operating system and machine description files should Emacs use?
17436 \`${opsysfile}'${and_machfile}
17437 What compiler should emacs be built with? ${CC} ${CFLAGS}
17438 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
17439 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
17440 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
17441 What window system should Emacs use? ${window_system}
17442 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
17443
17444 if test -n "${x_includes}"; then
17445 echo " Where do we find X Windows header files? ${x_includes}"
17446 else
17447 echo " Where do we find X Windows header files? Standard dirs"
17448 fi
17449 if test -n "${x_libraries}"; then
17450 echo " Where do we find X Windows libraries? ${x_libraries}"
17451 else
17452 echo " Where do we find X Windows libraries? Standard dirs"
17453 fi
17454
17455 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
17456 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
17457 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
17458 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
17459 echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
17460 echo " Does Emacs use -lpng? ${HAVE_PNG}"
17461 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
17462 echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}"
17463
17464 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
17465 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
17466 echo " Does Emacs use -lgconf? ${HAVE_GCONF}"
17467 echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}"
17468 echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}"
17469 echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}"
17470
17471 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
17472 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
17473 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
17474 echo " Does Emacs use -lxft? ${HAVE_XFT}"
17475
17476 echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
17477 echo
17478
17479 if test $USE_XASSERTS = yes; then
17480 echo " Compiling with asserts turned on."
17481 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
17482 fi
17483
17484 echo
17485
17486 if test "$HAVE_NS" = "yes"; then
17487 echo
17488 echo "You must run \"make install\" in order to test the built application.
17489 The installed application will go to nextstep/Emacs.app and can be
17490 run or moved from there."
17491 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
17492 echo "The application will be fully self-contained."
17493 else
17494 echo "The lisp resources for the application will be installed under ${prefix}.
17495 You may need to run \"make install\" with sudo. The application will fail
17496 to run if these resources are not installed."
17497 fi
17498 echo
17499 fi
17500
17501
17502 # Remove any trailing slashes in these variables.
17503 test "${prefix}" != NONE &&
17504 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
17505 test "${exec_prefix}" != NONE &&
17506 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
17507
17508 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"
17509
17510 ac_config_commands="$ac_config_commands default"
17511
17512 cat >confcache <<\_ACEOF
17513 # This file is a shell script that caches the results of configure
17514 # tests run on this system so they can be shared between configure
17515 # scripts and configure runs, see configure's option --config-cache.
17516 # It is not useful on other systems. If it contains results you don't
17517 # want to keep, you may remove or edit it.
17518 #
17519 # config.status only pays attention to the cache file if you give it
17520 # the --recheck option to rerun configure.
17521 #
17522 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17523 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17524 # following values.
17525
17526 _ACEOF
17527
17528 # The following way of writing the cache mishandles newlines in values,
17529 # but we know of no workaround that is simple, portable, and efficient.
17530 # So, we kill variables containing newlines.
17531 # Ultrix sh set writes to stderr and can't be redirected directly,
17532 # and sets the high bit in the cache file unless we assign to the vars.
17533 (
17534 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17535 eval ac_val=\$$ac_var
17536 case $ac_val in #(
17537 *${as_nl}*)
17538 case $ac_var in #(
17539 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17540 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17541 esac
17542 case $ac_var in #(
17543 _ | IFS | as_nl) ;; #(
17544 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17545 *) { eval $ac_var=; unset $ac_var;} ;;
17546 esac ;;
17547 esac
17548 done
17549
17550 (set) 2>&1 |
17551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17552 *${as_nl}ac_space=\ *)
17553 # `set' does not quote correctly, so add quotes: double-quote
17554 # substitution turns \\\\ into \\, and sed turns \\ into \.
17555 sed -n \
17556 "s/'/'\\\\''/g;
17557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17558 ;; #(
17559 *)
17560 # `set' quotes correctly as required by POSIX, so do not add quotes.
17561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17562 ;;
17563 esac |
17564 sort
17565 ) |
17566 sed '
17567 /^ac_cv_env_/b end
17568 t clear
17569 :clear
17570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17571 t end
17572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17573 :end' >>confcache
17574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17575 if test -w "$cache_file"; then
17576 if test "x$cache_file" != "x/dev/null"; then
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17578 $as_echo "$as_me: updating cache $cache_file" >&6;}
17579 if test ! -f "$cache_file" || test -h "$cache_file"; then
17580 cat confcache >"$cache_file"
17581 else
17582 case $cache_file in #(
17583 */* | ?:*)
17584 mv -f confcache "$cache_file"$$ &&
17585 mv -f "$cache_file"$$ "$cache_file" ;; #(
17586 *)
17587 mv -f confcache "$cache_file" ;;
17588 esac
17589 fi
17590 fi
17591 else
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17593 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17594 fi
17595 fi
17596 rm -f confcache
17597
17598 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17599 # Let make expand exec_prefix.
17600 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17601
17602 DEFS=-DHAVE_CONFIG_H
17603
17604 ac_libobjs=
17605 ac_ltlibobjs=
17606 U=
17607 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17608 # 1. Remove the extension, and $U if already installed.
17609 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17610 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17611 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17612 # will be set to the directory where LIBOBJS objects are built.
17613 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17614 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17615 done
17616 LIBOBJS=$ac_libobjs
17617
17618 LTLIBOBJS=$ac_ltlibobjs
17619
17620
17621 if test -n "$EXEEXT"; then
17622 am__EXEEXT_TRUE=
17623 am__EXEEXT_FALSE='#'
17624 else
17625 am__EXEEXT_TRUE='#'
17626 am__EXEEXT_FALSE=
17627 fi
17628
17629 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17630 as_fn_error $? "conditional \"AMDEP\" was never defined.
17631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17632 fi
17633 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17634 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17636 fi
17637
17638 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
17639 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
17640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17641 fi
17642
17643 gl_libobjs=
17644 gl_ltlibobjs=
17645 if test -n "$gl_LIBOBJS"; then
17646 # Remove the extension.
17647 sed_drop_objext='s/\.o$//;s/\.obj$//'
17648 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17649 gl_libobjs="$gl_libobjs $i.$ac_objext"
17650 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
17651 done
17652 fi
17653 gl_LIBOBJS=$gl_libobjs
17654
17655 gl_LTLIBOBJS=$gl_ltlibobjs
17656
17657
17658
17659 gltests_libobjs=
17660 gltests_ltlibobjs=
17661 if test -n "$gltests_LIBOBJS"; then
17662 # Remove the extension.
17663 sed_drop_objext='s/\.o$//;s/\.obj$//'
17664 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
17665 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
17666 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
17667 done
17668 fi
17669 gltests_LIBOBJS=$gltests_libobjs
17670
17671 gltests_LTLIBOBJS=$gltests_ltlibobjs
17672
17673
17674
17675 : "${CONFIG_STATUS=./config.status}"
17676 ac_write_fail=0
17677 ac_clean_files_save=$ac_clean_files
17678 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17680 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17681 as_write_fail=0
17682 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17683 #! $SHELL
17684 # Generated by $as_me.
17685 # Run this file to recreate the current configuration.
17686 # Compiler output produced by configure, useful for debugging
17687 # configure, is in config.log if it exists.
17688
17689 debug=false
17690 ac_cs_recheck=false
17691 ac_cs_silent=false
17692
17693 SHELL=\${CONFIG_SHELL-$SHELL}
17694 export SHELL
17695 _ASEOF
17696 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17697 ## -------------------- ##
17698 ## M4sh Initialization. ##
17699 ## -------------------- ##
17700
17701 # Be more Bourne compatible
17702 DUALCASE=1; export DUALCASE # for MKS sh
17703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17704 emulate sh
17705 NULLCMD=:
17706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17707 # is contrary to our usage. Disable this feature.
17708 alias -g '${1+"$@"}'='"$@"'
17709 setopt NO_GLOB_SUBST
17710 else
17711 case `(set -o) 2>/dev/null` in #(
17712 *posix*) :
17713 set -o posix ;; #(
17714 *) :
17715 ;;
17716 esac
17717 fi
17718
17719
17720 as_nl='
17721 '
17722 export as_nl
17723 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17724 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17726 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17727 # Prefer a ksh shell builtin over an external printf program on Solaris,
17728 # but without wasting forks for bash or zsh.
17729 if test -z "$BASH_VERSION$ZSH_VERSION" \
17730 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17731 as_echo='print -r --'
17732 as_echo_n='print -rn --'
17733 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17734 as_echo='printf %s\n'
17735 as_echo_n='printf %s'
17736 else
17737 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17738 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17739 as_echo_n='/usr/ucb/echo -n'
17740 else
17741 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17742 as_echo_n_body='eval
17743 arg=$1;
17744 case $arg in #(
17745 *"$as_nl"*)
17746 expr "X$arg" : "X\\(.*\\)$as_nl";
17747 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17748 esac;
17749 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17750 '
17751 export as_echo_n_body
17752 as_echo_n='sh -c $as_echo_n_body as_echo'
17753 fi
17754 export as_echo_body
17755 as_echo='sh -c $as_echo_body as_echo'
17756 fi
17757
17758 # The user is always right.
17759 if test "${PATH_SEPARATOR+set}" != set; then
17760 PATH_SEPARATOR=:
17761 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17762 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17763 PATH_SEPARATOR=';'
17764 }
17765 fi
17766
17767
17768 # IFS
17769 # We need space, tab and new line, in precisely that order. Quoting is
17770 # there to prevent editors from complaining about space-tab.
17771 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17772 # splitting by setting IFS to empty value.)
17773 IFS=" "" $as_nl"
17774
17775 # Find who we are. Look in the path if we contain no directory separator.
17776 as_myself=
17777 case $0 in #((
17778 *[\\/]* ) as_myself=$0 ;;
17779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17780 for as_dir in $PATH
17781 do
17782 IFS=$as_save_IFS
17783 test -z "$as_dir" && as_dir=.
17784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17785 done
17786 IFS=$as_save_IFS
17787
17788 ;;
17789 esac
17790 # We did not find ourselves, most probably we were run as `sh COMMAND'
17791 # in which case we are not to be found in the path.
17792 if test "x$as_myself" = x; then
17793 as_myself=$0
17794 fi
17795 if test ! -f "$as_myself"; then
17796 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17797 exit 1
17798 fi
17799
17800 # Unset variables that we do not need and which cause bugs (e.g. in
17801 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17802 # suppresses any "Segmentation fault" message there. '((' could
17803 # trigger a bug in pdksh 5.2.14.
17804 for as_var in BASH_ENV ENV MAIL MAILPATH
17805 do eval test x\${$as_var+set} = xset \
17806 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17807 done
17808 PS1='$ '
17809 PS2='> '
17810 PS4='+ '
17811
17812 # NLS nuisances.
17813 LC_ALL=C
17814 export LC_ALL
17815 LANGUAGE=C
17816 export LANGUAGE
17817
17818 # CDPATH.
17819 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17820
17821
17822 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17823 # ----------------------------------------
17824 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17825 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17826 # script with STATUS, using 1 if that was 0.
17827 as_fn_error ()
17828 {
17829 as_status=$1; test $as_status -eq 0 && as_status=1
17830 if test "$4"; then
17831 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17832 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17833 fi
17834 $as_echo "$as_me: error: $2" >&2
17835 as_fn_exit $as_status
17836 } # as_fn_error
17837
17838
17839 # as_fn_set_status STATUS
17840 # -----------------------
17841 # Set $? to STATUS, without forking.
17842 as_fn_set_status ()
17843 {
17844 return $1
17845 } # as_fn_set_status
17846
17847 # as_fn_exit STATUS
17848 # -----------------
17849 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17850 as_fn_exit ()
17851 {
17852 set +e
17853 as_fn_set_status $1
17854 exit $1
17855 } # as_fn_exit
17856
17857 # as_fn_unset VAR
17858 # ---------------
17859 # Portably unset VAR.
17860 as_fn_unset ()
17861 {
17862 { eval $1=; unset $1;}
17863 }
17864 as_unset=as_fn_unset
17865 # as_fn_append VAR VALUE
17866 # ----------------------
17867 # Append the text in VALUE to the end of the definition contained in VAR. Take
17868 # advantage of any shell optimizations that allow amortized linear growth over
17869 # repeated appends, instead of the typical quadratic growth present in naive
17870 # implementations.
17871 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17872 eval 'as_fn_append ()
17873 {
17874 eval $1+=\$2
17875 }'
17876 else
17877 as_fn_append ()
17878 {
17879 eval $1=\$$1\$2
17880 }
17881 fi # as_fn_append
17882
17883 # as_fn_arith ARG...
17884 # ------------------
17885 # Perform arithmetic evaluation on the ARGs, and store the result in the
17886 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17887 # must be portable across $(()) and expr.
17888 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17889 eval 'as_fn_arith ()
17890 {
17891 as_val=$(( $* ))
17892 }'
17893 else
17894 as_fn_arith ()
17895 {
17896 as_val=`expr "$@" || test $? -eq 1`
17897 }
17898 fi # as_fn_arith
17899
17900
17901 if expr a : '\(a\)' >/dev/null 2>&1 &&
17902 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17903 as_expr=expr
17904 else
17905 as_expr=false
17906 fi
17907
17908 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17909 as_basename=basename
17910 else
17911 as_basename=false
17912 fi
17913
17914 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17915 as_dirname=dirname
17916 else
17917 as_dirname=false
17918 fi
17919
17920 as_me=`$as_basename -- "$0" ||
17921 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17922 X"$0" : 'X\(//\)$' \| \
17923 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17924 $as_echo X/"$0" |
17925 sed '/^.*\/\([^/][^/]*\)\/*$/{
17926 s//\1/
17927 q
17928 }
17929 /^X\/\(\/\/\)$/{
17930 s//\1/
17931 q
17932 }
17933 /^X\/\(\/\).*/{
17934 s//\1/
17935 q
17936 }
17937 s/.*/./; q'`
17938
17939 # Avoid depending upon Character Ranges.
17940 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17941 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17942 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17943 as_cr_digits='0123456789'
17944 as_cr_alnum=$as_cr_Letters$as_cr_digits
17945
17946 ECHO_C= ECHO_N= ECHO_T=
17947 case `echo -n x` in #(((((
17948 -n*)
17949 case `echo 'xy\c'` in
17950 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17951 xy) ECHO_C='\c';;
17952 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17953 ECHO_T=' ';;
17954 esac;;
17955 *)
17956 ECHO_N='-n';;
17957 esac
17958
17959 rm -f conf$$ conf$$.exe conf$$.file
17960 if test -d conf$$.dir; then
17961 rm -f conf$$.dir/conf$$.file
17962 else
17963 rm -f conf$$.dir
17964 mkdir conf$$.dir 2>/dev/null
17965 fi
17966 if (echo >conf$$.file) 2>/dev/null; then
17967 if ln -s conf$$.file conf$$ 2>/dev/null; then
17968 as_ln_s='ln -s'
17969 # ... but there are two gotchas:
17970 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17971 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17972 # In both cases, we have to default to `cp -p'.
17973 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17974 as_ln_s='cp -p'
17975 elif ln conf$$.file conf$$ 2>/dev/null; then
17976 as_ln_s=ln
17977 else
17978 as_ln_s='cp -p'
17979 fi
17980 else
17981 as_ln_s='cp -p'
17982 fi
17983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17984 rmdir conf$$.dir 2>/dev/null
17985
17986
17987 # as_fn_mkdir_p
17988 # -------------
17989 # Create "$as_dir" as a directory, including parents if necessary.
17990 as_fn_mkdir_p ()
17991 {
17992
17993 case $as_dir in #(
17994 -*) as_dir=./$as_dir;;
17995 esac
17996 test -d "$as_dir" || eval $as_mkdir_p || {
17997 as_dirs=
17998 while :; do
17999 case $as_dir in #(
18000 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18001 *) as_qdir=$as_dir;;
18002 esac
18003 as_dirs="'$as_qdir' $as_dirs"
18004 as_dir=`$as_dirname -- "$as_dir" ||
18005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18006 X"$as_dir" : 'X\(//\)[^/]' \| \
18007 X"$as_dir" : 'X\(//\)$' \| \
18008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18009 $as_echo X"$as_dir" |
18010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18011 s//\1/
18012 q
18013 }
18014 /^X\(\/\/\)[^/].*/{
18015 s//\1/
18016 q
18017 }
18018 /^X\(\/\/\)$/{
18019 s//\1/
18020 q
18021 }
18022 /^X\(\/\).*/{
18023 s//\1/
18024 q
18025 }
18026 s/.*/./; q'`
18027 test -d "$as_dir" && break
18028 done
18029 test -z "$as_dirs" || eval "mkdir $as_dirs"
18030 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18031
18032
18033 } # as_fn_mkdir_p
18034 if mkdir -p . 2>/dev/null; then
18035 as_mkdir_p='mkdir -p "$as_dir"'
18036 else
18037 test -d ./-p && rmdir ./-p
18038 as_mkdir_p=false
18039 fi
18040
18041 if test -x / >/dev/null 2>&1; then
18042 as_test_x='test -x'
18043 else
18044 if ls -dL / >/dev/null 2>&1; then
18045 as_ls_L_option=L
18046 else
18047 as_ls_L_option=
18048 fi
18049 as_test_x='
18050 eval sh -c '\''
18051 if test -d "$1"; then
18052 test -d "$1/.";
18053 else
18054 case $1 in #(
18055 -*)set "./$1";;
18056 esac;
18057 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18058 ???[sx]*):;;*)false;;esac;fi
18059 '\'' sh
18060 '
18061 fi
18062 as_executable_p=$as_test_x
18063
18064 # Sed expression to map a string onto a valid CPP name.
18065 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18066
18067 # Sed expression to map a string onto a valid variable name.
18068 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18069
18070
18071 exec 6>&1
18072 ## ----------------------------------- ##
18073 ## Main body of $CONFIG_STATUS script. ##
18074 ## ----------------------------------- ##
18075 _ASEOF
18076 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18077
18078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18079 # Save the log message, to keep $0 and so on meaningful, and to
18080 # report actual input values of CONFIG_FILES etc. instead of their
18081 # values after options handling.
18082 ac_log="
18083 This file was extended by emacs $as_me 24.0.50, which was
18084 generated by GNU Autoconf 2.68. Invocation command line was
18085
18086 CONFIG_FILES = $CONFIG_FILES
18087 CONFIG_HEADERS = $CONFIG_HEADERS
18088 CONFIG_LINKS = $CONFIG_LINKS
18089 CONFIG_COMMANDS = $CONFIG_COMMANDS
18090 $ $0 $@
18091
18092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18093 "
18094
18095 _ACEOF
18096
18097 case $ac_config_files in *"
18098 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18099 esac
18100
18101 case $ac_config_headers in *"
18102 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18103 esac
18104
18105
18106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18107 # Files that config.status was made for.
18108 config_files="$ac_config_files"
18109 config_headers="$ac_config_headers"
18110 config_commands="$ac_config_commands"
18111
18112 _ACEOF
18113
18114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18115 ac_cs_usage="\
18116 \`$as_me' instantiates files and other configuration actions
18117 from templates according to the current configuration. Unless the files
18118 and actions are specified as TAGs, all are instantiated by default.
18119
18120 Usage: $0 [OPTION]... [TAG]...
18121
18122 -h, --help print this help, then exit
18123 -V, --version print version number and configuration settings, then exit
18124 --config print configuration, then exit
18125 -q, --quiet, --silent
18126 do not print progress messages
18127 -d, --debug don't remove temporary files
18128 --recheck update $as_me by reconfiguring in the same conditions
18129 --file=FILE[:TEMPLATE]
18130 instantiate the configuration file FILE
18131 --header=FILE[:TEMPLATE]
18132 instantiate the configuration header FILE
18133
18134 Configuration files:
18135 $config_files
18136
18137 Configuration headers:
18138 $config_headers
18139
18140 Configuration commands:
18141 $config_commands
18142
18143 Report bugs to the package provider."
18144
18145 _ACEOF
18146 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18147 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18148 ac_cs_version="\\
18149 emacs config.status 24.0.50
18150 configured by $0, generated by GNU Autoconf 2.68,
18151 with options \\"\$ac_cs_config\\"
18152
18153 Copyright (C) 2010 Free Software Foundation, Inc.
18154 This config.status script is free software; the Free Software Foundation
18155 gives unlimited permission to copy, distribute and modify it."
18156
18157 ac_pwd='$ac_pwd'
18158 srcdir='$srcdir'
18159 INSTALL='$INSTALL'
18160 MKDIR_P='$MKDIR_P'
18161 AWK='$AWK'
18162 test -n "\$AWK" || AWK=awk
18163 _ACEOF
18164
18165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18166 # The default lists apply if the user does not specify any file.
18167 ac_need_defaults=:
18168 while test $# != 0
18169 do
18170 case $1 in
18171 --*=?*)
18172 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18173 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18174 ac_shift=:
18175 ;;
18176 --*=)
18177 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18178 ac_optarg=
18179 ac_shift=:
18180 ;;
18181 *)
18182 ac_option=$1
18183 ac_optarg=$2
18184 ac_shift=shift
18185 ;;
18186 esac
18187
18188 case $ac_option in
18189 # Handling of the options.
18190 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18191 ac_cs_recheck=: ;;
18192 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18193 $as_echo "$ac_cs_version"; exit ;;
18194 --config | --confi | --conf | --con | --co | --c )
18195 $as_echo "$ac_cs_config"; exit ;;
18196 --debug | --debu | --deb | --de | --d | -d )
18197 debug=: ;;
18198 --file | --fil | --fi | --f )
18199 $ac_shift
18200 case $ac_optarg in
18201 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18202 '') as_fn_error $? "missing file argument" ;;
18203 esac
18204 as_fn_append CONFIG_FILES " '$ac_optarg'"
18205 ac_need_defaults=false;;
18206 --header | --heade | --head | --hea )
18207 $ac_shift
18208 case $ac_optarg in
18209 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18210 esac
18211 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18212 ac_need_defaults=false;;
18213 --he | --h)
18214 # Conflict between --help and --header
18215 as_fn_error $? "ambiguous option: \`$1'
18216 Try \`$0 --help' for more information.";;
18217 --help | --hel | -h )
18218 $as_echo "$ac_cs_usage"; exit ;;
18219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18221 ac_cs_silent=: ;;
18222
18223 # This is an error.
18224 -*) as_fn_error $? "unrecognized option: \`$1'
18225 Try \`$0 --help' for more information." ;;
18226
18227 *) as_fn_append ac_config_targets " $1"
18228 ac_need_defaults=false ;;
18229
18230 esac
18231 shift
18232 done
18233
18234 ac_configure_extra_args=
18235
18236 if $ac_cs_silent; then
18237 exec 6>/dev/null
18238 ac_configure_extra_args="$ac_configure_extra_args --silent"
18239 fi
18240
18241 _ACEOF
18242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18243 if \$ac_cs_recheck; then
18244 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18245 shift
18246 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18247 CONFIG_SHELL='$SHELL'
18248 export CONFIG_SHELL
18249 exec "\$@"
18250 fi
18251
18252 _ACEOF
18253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18254 exec 5>>config.log
18255 {
18256 echo
18257 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18258 ## Running $as_me. ##
18259 _ASBOX
18260 $as_echo "$ac_log"
18261 } >&5
18262
18263 _ACEOF
18264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18265 #
18266 # INIT-COMMANDS
18267 #
18268 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18269 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPPFLAGS="$CPPFLAGS"
18270
18271 _ACEOF
18272
18273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18274
18275 # Handling of arguments.
18276 for ac_config_target in $ac_config_targets
18277 do
18278 case $ac_config_target in
18279 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
18280 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18281 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18282 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18283 "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;;
18284 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
18285 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
18286 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
18287 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
18288 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
18289 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18290 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
18291 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
18292 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
18293 "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;;
18294 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18295
18296 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18297 esac
18298 done
18299
18300
18301 # If the user did not use the arguments to specify the items to instantiate,
18302 # then the envvar interface is used. Set only those that are not.
18303 # We use the long form for the default assignment because of an extremely
18304 # bizarre bug on SunOS 4.1.3.
18305 if $ac_need_defaults; then
18306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18308 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18309 fi
18310
18311 # Have a temporary directory for convenience. Make it in the build tree
18312 # simply because there is no reason against having it here, and in addition,
18313 # creating and moving files from /tmp can sometimes cause problems.
18314 # Hook for its removal unless debugging.
18315 # Note that there is a small window in which the directory will not be cleaned:
18316 # after its creation but before its name has been assigned to `$tmp'.
18317 $debug ||
18318 {
18319 tmp= ac_tmp=
18320 trap 'exit_status=$?
18321 : "${ac_tmp:=$tmp}"
18322 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18323 ' 0
18324 trap 'as_fn_exit 1' 1 2 13 15
18325 }
18326 # Create a (secure) tmp directory for tmp files.
18327
18328 {
18329 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18330 test -d "$tmp"
18331 } ||
18332 {
18333 tmp=./conf$$-$RANDOM
18334 (umask 077 && mkdir "$tmp")
18335 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18336 ac_tmp=$tmp
18337
18338 # Set up the scripts for CONFIG_FILES section.
18339 # No need to generate them if there are no CONFIG_FILES.
18340 # This happens for instance with `./config.status config.h'.
18341 if test -n "$CONFIG_FILES"; then
18342
18343 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
18344 ac_cs_awk_getline=:
18345 ac_cs_awk_pipe_init=
18346 ac_cs_awk_read_file='
18347 while ((getline aline < (F[key])) > 0)
18348 print(aline)
18349 close(F[key])'
18350 ac_cs_awk_pipe_fini=
18351 else
18352 ac_cs_awk_getline=false
18353 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
18354 ac_cs_awk_read_file='
18355 print "|#_!!_#|"
18356 print "cat " F[key] " &&"
18357 '$ac_cs_awk_pipe_init
18358 # The final `:' finishes the AND list.
18359 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
18360 fi
18361 ac_cr=`echo X | tr X '\015'`
18362 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18363 # But we know of no other shell where ac_cr would be empty at this
18364 # point, so we can use a bashism as a fallback.
18365 if test "x$ac_cr" = x; then
18366 eval ac_cr=\$\'\\r\'
18367 fi
18368 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18370 ac_cs_awk_cr='\\r'
18371 else
18372 ac_cs_awk_cr=$ac_cr
18373 fi
18374
18375 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18376 _ACEOF
18377
18378 # Create commands to substitute file output variables.
18379 {
18380 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18381 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18382 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
18383 echo "_ACAWK" &&
18384 echo "_ACEOF"
18385 } >conf$$files.sh &&
18386 . ./conf$$files.sh ||
18387 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18388 rm -f conf$$files.sh
18389
18390 {
18391 echo "cat >conf$$subs.awk <<_ACEOF" &&
18392 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18393 echo "_ACEOF"
18394 } >conf$$subs.sh ||
18395 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18396 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18397 ac_delim='%!_!# '
18398 for ac_last_try in false false false false false :; do
18399 . ./conf$$subs.sh ||
18400 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18401
18402 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18403 if test $ac_delim_n = $ac_delim_num; then
18404 break
18405 elif $ac_last_try; then
18406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18407 else
18408 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18409 fi
18410 done
18411 rm -f conf$$subs.sh
18412
18413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18414 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18415 _ACEOF
18416 sed -n '
18417 h
18418 s/^/S["/; s/!.*/"]=/
18419 p
18420 g
18421 s/^[^!]*!//
18422 :repl
18423 t repl
18424 s/'"$ac_delim"'$//
18425 t delim
18426 :nl
18427 h
18428 s/\(.\{148\}\)..*/\1/
18429 t more1
18430 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18431 p
18432 n
18433 b repl
18434 :more1
18435 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18436 p
18437 g
18438 s/.\{148\}//
18439 t nl
18440 :delim
18441 h
18442 s/\(.\{148\}\)..*/\1/
18443 t more2
18444 s/["\\]/\\&/g; s/^/"/; s/$/"/
18445 p
18446 b
18447 :more2
18448 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18449 p
18450 g
18451 s/.\{148\}//
18452 t delim
18453 ' <conf$$subs.awk | sed '
18454 /^[^""]/{
18455 N
18456 s/\n//
18457 }
18458 ' >>$CONFIG_STATUS || ac_write_fail=1
18459 rm -f conf$$subs.awk
18460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18461 _ACAWK
18462 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18463 for (key in S) S_is_set[key] = 1
18464 FS = "\a"
18465 \$ac_cs_awk_pipe_init
18466 }
18467 {
18468 line = $ 0
18469 nfields = split(line, field, "@")
18470 substed = 0
18471 len = length(field[1])
18472 for (i = 2; i < nfields; i++) {
18473 key = field[i]
18474 keylen = length(key)
18475 if (S_is_set[key]) {
18476 value = S[key]
18477 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18478 len += length(value) + length(field[++i])
18479 substed = 1
18480 } else
18481 len += 1 + keylen
18482 }
18483 if (nfields == 3 && !substed) {
18484 key = field[2]
18485 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18486 \$ac_cs_awk_read_file
18487 next
18488 }
18489 }
18490 print line
18491 }
18492 \$ac_cs_awk_pipe_fini
18493 _ACAWK
18494 _ACEOF
18495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18496 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18497 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18498 else
18499 cat
18500 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18501 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18502 _ACEOF
18503
18504 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18505 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18506 # trailing colons and then remove the whole line if VPATH becomes empty
18507 # (actually we leave an empty line to preserve line numbers).
18508 if test "x$srcdir" = x.; then
18509 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18510 h
18511 s///
18512 s/^/:/
18513 s/[ ]*$/:/
18514 s/:\$(srcdir):/:/g
18515 s/:\${srcdir}:/:/g
18516 s/:@srcdir@:/:/g
18517 s/^:*//
18518 s/:*$//
18519 x
18520 s/\(=[ ]*\).*/\1/
18521 G
18522 s/\n//
18523 s/^[^=]*=[ ]*$//
18524 }'
18525 fi
18526
18527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18528 fi # test -n "$CONFIG_FILES"
18529
18530 # Set up the scripts for CONFIG_HEADERS section.
18531 # No need to generate them if there are no CONFIG_HEADERS.
18532 # This happens for instance with `./config.status Makefile'.
18533 if test -n "$CONFIG_HEADERS"; then
18534 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18535 BEGIN {
18536 _ACEOF
18537
18538 # Transform confdefs.h into an awk script `defines.awk', embedded as
18539 # here-document in config.status, that substitutes the proper values into
18540 # config.h.in to produce config.h.
18541
18542 # Create a delimiter string that does not exist in confdefs.h, to ease
18543 # handling of long lines.
18544 ac_delim='%!_!# '
18545 for ac_last_try in false false :; do
18546 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18547 if test -z "$ac_tt"; then
18548 break
18549 elif $ac_last_try; then
18550 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18551 else
18552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18553 fi
18554 done
18555
18556 # For the awk script, D is an array of macro values keyed by name,
18557 # likewise P contains macro parameters if any. Preserve backslash
18558 # newline sequences.
18559
18560 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18561 sed -n '
18562 s/.\{148\}/&'"$ac_delim"'/g
18563 t rset
18564 :rset
18565 s/^[ ]*#[ ]*define[ ][ ]*/ /
18566 t def
18567 d
18568 :def
18569 s/\\$//
18570 t bsnl
18571 s/["\\]/\\&/g
18572 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18573 D["\1"]=" \3"/p
18574 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18575 d
18576 :bsnl
18577 s/["\\]/\\&/g
18578 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18579 D["\1"]=" \3\\\\\\n"\\/p
18580 t cont
18581 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18582 t cont
18583 d
18584 :cont
18585 n
18586 s/.\{148\}/&'"$ac_delim"'/g
18587 t clear
18588 :clear
18589 s/\\$//
18590 t bsnlc
18591 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18592 d
18593 :bsnlc
18594 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18595 b cont
18596 ' <confdefs.h | sed '
18597 s/'"$ac_delim"'/"\\\
18598 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18599
18600 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18601 for (key in D) D_is_set[key] = 1
18602 FS = "\a"
18603 }
18604 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18605 line = \$ 0
18606 split(line, arg, " ")
18607 if (arg[1] == "#") {
18608 defundef = arg[2]
18609 mac1 = arg[3]
18610 } else {
18611 defundef = substr(arg[1], 2)
18612 mac1 = arg[2]
18613 }
18614 split(mac1, mac2, "(") #)
18615 macro = mac2[1]
18616 prefix = substr(line, 1, index(line, defundef) - 1)
18617 if (D_is_set[macro]) {
18618 # Preserve the white space surrounding the "#".
18619 print prefix "define", macro P[macro] D[macro]
18620 next
18621 } else {
18622 # Replace #undef with comments. This is necessary, for example,
18623 # in the case of _POSIX_SOURCE, which is predefined and required
18624 # on some systems where configure will not decide to define it.
18625 if (defundef == "undef") {
18626 print "/*", prefix defundef, macro, "*/"
18627 next
18628 }
18629 }
18630 }
18631 { print }
18632 _ACAWK
18633 _ACEOF
18634 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18635 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18636 fi # test -n "$CONFIG_HEADERS"
18637
18638
18639 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18640 shift
18641 for ac_tag
18642 do
18643 case $ac_tag in
18644 :[FHLC]) ac_mode=$ac_tag; continue;;
18645 esac
18646 case $ac_mode$ac_tag in
18647 :[FHL]*:*);;
18648 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18649 :[FH]-) ac_tag=-:-;;
18650 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18651 esac
18652 ac_save_IFS=$IFS
18653 IFS=:
18654 set x $ac_tag
18655 IFS=$ac_save_IFS
18656 shift
18657 ac_file=$1
18658 shift
18659
18660 case $ac_mode in
18661 :L) ac_source=$1;;
18662 :[FH])
18663 ac_file_inputs=
18664 for ac_f
18665 do
18666 case $ac_f in
18667 -) ac_f="$ac_tmp/stdin";;
18668 *) # Look for the file first in the build tree, then in the source tree
18669 # (if the path is not absolute). The absolute path cannot be DOS-style,
18670 # because $ac_f cannot contain `:'.
18671 test -f "$ac_f" ||
18672 case $ac_f in
18673 [\\/$]*) false;;
18674 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18675 esac ||
18676 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18677 esac
18678 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18679 as_fn_append ac_file_inputs " '$ac_f'"
18680 done
18681
18682 # Let's still pretend it is `configure' which instantiates (i.e., don't
18683 # use $as_me), people would be surprised to read:
18684 # /* config.h. Generated by config.status. */
18685 configure_input='Generated from '`
18686 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18687 `' by configure.'
18688 if test x"$ac_file" != x-; then
18689 configure_input="$ac_file. $configure_input"
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18691 $as_echo "$as_me: creating $ac_file" >&6;}
18692 fi
18693 # Neutralize special characters interpreted by sed in replacement strings.
18694 case $configure_input in #(
18695 *\&* | *\|* | *\\* )
18696 ac_sed_conf_input=`$as_echo "$configure_input" |
18697 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18698 *) ac_sed_conf_input=$configure_input;;
18699 esac
18700
18701 case $ac_tag in
18702 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18703 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18704 esac
18705 ;;
18706 esac
18707
18708 ac_dir=`$as_dirname -- "$ac_file" ||
18709 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18710 X"$ac_file" : 'X\(//\)[^/]' \| \
18711 X"$ac_file" : 'X\(//\)$' \| \
18712 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18713 $as_echo X"$ac_file" |
18714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18715 s//\1/
18716 q
18717 }
18718 /^X\(\/\/\)[^/].*/{
18719 s//\1/
18720 q
18721 }
18722 /^X\(\/\/\)$/{
18723 s//\1/
18724 q
18725 }
18726 /^X\(\/\).*/{
18727 s//\1/
18728 q
18729 }
18730 s/.*/./; q'`
18731 as_dir="$ac_dir"; as_fn_mkdir_p
18732 ac_builddir=.
18733
18734 case "$ac_dir" in
18735 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18736 *)
18737 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18738 # A ".." for each directory in $ac_dir_suffix.
18739 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18740 case $ac_top_builddir_sub in
18741 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18742 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18743 esac ;;
18744 esac
18745 ac_abs_top_builddir=$ac_pwd
18746 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18747 # for backward compatibility:
18748 ac_top_builddir=$ac_top_build_prefix
18749
18750 case $srcdir in
18751 .) # We are building in place.
18752 ac_srcdir=.
18753 ac_top_srcdir=$ac_top_builddir_sub
18754 ac_abs_top_srcdir=$ac_pwd ;;
18755 [\\/]* | ?:[\\/]* ) # Absolute name.
18756 ac_srcdir=$srcdir$ac_dir_suffix;
18757 ac_top_srcdir=$srcdir
18758 ac_abs_top_srcdir=$srcdir ;;
18759 *) # Relative name.
18760 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18761 ac_top_srcdir=$ac_top_build_prefix$srcdir
18762 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18763 esac
18764 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18765
18766
18767 case $ac_mode in
18768 :F)
18769 #
18770 # CONFIG_FILE
18771 #
18772
18773 case $INSTALL in
18774 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18775 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18776 esac
18777 ac_MKDIR_P=$MKDIR_P
18778 case $MKDIR_P in
18779 [\\/$]* | ?:[\\/]* ) ;;
18780 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18781 esac
18782 _ACEOF
18783
18784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18785 # If the template does not know about datarootdir, expand it.
18786 # FIXME: This hack should be removed a few years after 2.60.
18787 ac_datarootdir_hack=; ac_datarootdir_seen=
18788 ac_sed_dataroot='
18789 /datarootdir/ {
18790 p
18791 q
18792 }
18793 /@datadir@/p
18794 /@docdir@/p
18795 /@infodir@/p
18796 /@localedir@/p
18797 /@mandir@/p'
18798 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18799 *datarootdir*) ac_datarootdir_seen=yes;;
18800 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18802 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18803 _ACEOF
18804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18805 ac_datarootdir_hack='
18806 s&@datadir@&$datadir&g
18807 s&@docdir@&$docdir&g
18808 s&@infodir@&$infodir&g
18809 s&@localedir@&$localedir&g
18810 s&@mandir@&$mandir&g
18811 s&\\\${datarootdir}&$datarootdir&g' ;;
18812 esac
18813 _ACEOF
18814
18815 # Neutralize VPATH when `$srcdir' = `.'.
18816 # Shell code in configure.ac might set extrasub.
18817 # FIXME: do we really want to maintain this feature?
18818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18819 ac_sed_extra="$ac_vpsub
18820 $extrasub
18821 _ACEOF
18822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18823 :t
18824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18825 s|@configure_input@|$ac_sed_conf_input|;t t
18826 s&@top_builddir@&$ac_top_builddir_sub&;t t
18827 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18828 s&@srcdir@&$ac_srcdir&;t t
18829 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18830 s&@top_srcdir@&$ac_top_srcdir&;t t
18831 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18832 s&@builddir@&$ac_builddir&;t t
18833 s&@abs_builddir@&$ac_abs_builddir&;t t
18834 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18835 s&@INSTALL@&$ac_INSTALL&;t t
18836 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18837 $ac_datarootdir_hack
18838 "
18839 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18840 if $ac_cs_awk_getline; then
18841 $AWK -f "$ac_tmp/subs.awk"
18842 else
18843 $AWK -f "$ac_tmp/subs.awk" | $SHELL
18844 fi \
18845 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18846
18847 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18848 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18849 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18850 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18852 which seems to be undefined. Please make sure it is defined" >&5
18853 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18854 which seems to be undefined. Please make sure it is defined" >&2;}
18855
18856 rm -f "$ac_tmp/stdin"
18857 case $ac_file in
18858 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18859 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18860 esac \
18861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18862 ;;
18863 :H)
18864 #
18865 # CONFIG_HEADER
18866 #
18867 if test x"$ac_file" != x-; then
18868 {
18869 $as_echo "/* $configure_input */" \
18870 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18871 } >"$ac_tmp/config.h" \
18872 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18873 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18874 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18875 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18876 else
18877 rm -f "$ac_file"
18878 mv "$ac_tmp/config.h" "$ac_file" \
18879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18880 fi
18881 else
18882 $as_echo "/* $configure_input */" \
18883 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18884 || as_fn_error $? "could not create -" "$LINENO" 5
18885 fi
18886 # Compute "$ac_file"'s index in $config_headers.
18887 _am_arg="$ac_file"
18888 _am_stamp_count=1
18889 for _am_header in $config_headers :; do
18890 case $_am_header in
18891 $_am_arg | $_am_arg:* )
18892 break ;;
18893 * )
18894 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18895 esac
18896 done
18897 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18898 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18899 X"$_am_arg" : 'X\(//\)[^/]' \| \
18900 X"$_am_arg" : 'X\(//\)$' \| \
18901 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18902 $as_echo X"$_am_arg" |
18903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18904 s//\1/
18905 q
18906 }
18907 /^X\(\/\/\)[^/].*/{
18908 s//\1/
18909 q
18910 }
18911 /^X\(\/\/\)$/{
18912 s//\1/
18913 q
18914 }
18915 /^X\(\/\).*/{
18916 s//\1/
18917 q
18918 }
18919 s/.*/./; q'`/stamp-h$_am_stamp_count
18920 ;;
18921
18922 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18923 $as_echo "$as_me: executing $ac_file commands" >&6;}
18924 ;;
18925 esac
18926
18927
18928 case $ac_file$ac_mode in
18929 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18930 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18931 # are listed without --file. Let's play safe and only enable the eval
18932 # if we detect the quoting.
18933 case $CONFIG_FILES in
18934 *\'*) eval set x "$CONFIG_FILES" ;;
18935 *) set x $CONFIG_FILES ;;
18936 esac
18937 shift
18938 for mf
18939 do
18940 # Strip MF so we end up with the name of the file.
18941 mf=`echo "$mf" | sed -e 's/:.*$//'`
18942 # Check whether this is an Automake generated Makefile or not.
18943 # We used to match only the files named `Makefile.in', but
18944 # some people rename them; so instead we look at the file content.
18945 # Grep'ing the first line is not enough: some people post-process
18946 # each Makefile.in and add a new line on top of each file to say so.
18947 # Grep'ing the whole file is not good either: AIX grep has a line
18948 # limit of 2048, but all sed's we know have understand at least 4000.
18949 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18950 dirpart=`$as_dirname -- "$mf" ||
18951 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18952 X"$mf" : 'X\(//\)[^/]' \| \
18953 X"$mf" : 'X\(//\)$' \| \
18954 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18955 $as_echo X"$mf" |
18956 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18957 s//\1/
18958 q
18959 }
18960 /^X\(\/\/\)[^/].*/{
18961 s//\1/
18962 q
18963 }
18964 /^X\(\/\/\)$/{
18965 s//\1/
18966 q
18967 }
18968 /^X\(\/\).*/{
18969 s//\1/
18970 q
18971 }
18972 s/.*/./; q'`
18973 else
18974 continue
18975 fi
18976 # Extract the definition of DEPDIR, am__include, and am__quote
18977 # from the Makefile without running `make'.
18978 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18979 test -z "$DEPDIR" && continue
18980 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18981 test -z "am__include" && continue
18982 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18983 # When using ansi2knr, U may be empty or an underscore; expand it
18984 U=`sed -n 's/^U = //p' < "$mf"`
18985 # Find all dependency output files, they are included files with
18986 # $(DEPDIR) in their names. We invoke sed twice because it is the
18987 # simplest approach to changing $(DEPDIR) to its actual value in the
18988 # expansion.
18989 for file in `sed -n "
18990 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18991 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18992 # Make sure the directory exists.
18993 test -f "$dirpart/$file" && continue
18994 fdir=`$as_dirname -- "$file" ||
18995 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18996 X"$file" : 'X\(//\)[^/]' \| \
18997 X"$file" : 'X\(//\)$' \| \
18998 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18999 $as_echo X"$file" |
19000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19001 s//\1/
19002 q
19003 }
19004 /^X\(\/\/\)[^/].*/{
19005 s//\1/
19006 q
19007 }
19008 /^X\(\/\/\)$/{
19009 s//\1/
19010 q
19011 }
19012 /^X\(\/\).*/{
19013 s//\1/
19014 q
19015 }
19016 s/.*/./; q'`
19017 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19018 # echo "creating $dirpart/$file"
19019 echo '# dummy' > "$dirpart/$file"
19020 done
19021 done
19022 }
19023 ;;
19024 "default":C)
19025
19026 ### Make the necessary directories, if they don't exist.
19027 for dir in etc lisp ; do
19028 test -d ${dir} || mkdir ${dir}
19029 done
19030
19031 echo creating src/epaths.h
19032 ${MAKE-make} epaths-force
19033
19034 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
19035 echo creating src/.gdbinit
19036 echo source $srcdir/src/.gdbinit > src/.gdbinit
19037 fi
19038
19039 ;;
19040
19041 esac
19042 done # for ac_tag
19043
19044
19045 as_fn_exit 0
19046 _ACEOF
19047 ac_clean_files=$ac_clean_files_save
19048
19049 test $ac_write_fail = 0 ||
19050 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19051
19052
19053 # configure is writing to config.log, and then calls config.status.
19054 # config.status does its own redirection, appending to config.log.
19055 # Unfortunately, on DOS this fails, as config.log is still kept open
19056 # by configure, so config.status won't be able to write to it; its
19057 # output is simply discarded. So we exec the FD to /dev/null,
19058 # effectively closing config.log, so it can be properly (re)opened and
19059 # appended to by config.status. When coming back to configure, we
19060 # need to make the FD available again.
19061 if test "$no_create" != yes; then
19062 ac_cs_success=:
19063 ac_config_status_args=
19064 test "$silent" = yes &&
19065 ac_config_status_args="$ac_config_status_args --quiet"
19066 exec 5>/dev/null
19067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19068 exec 5>>config.log
19069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19070 # would make configure fail if this is the last instruction.
19071 $ac_cs_success || as_fn_exit 1
19072 fi
19073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19076 fi
19077