ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.176
Committed: Tue Nov 10 05:09:12 2026 UTC (8 days, 15 hours ago) by root
Branch: MAIN
CVS Tags: rxvt-unicode-rel-9_32, HEAD
Changes since 1.175: +721 -712 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 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 case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185 if (eval "$as_required") 2>/dev/null
186 then :
187 as_have_required=yes
188 else case e in #(
189 e) as_have_required=no ;;
190 esac
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else case e in #(
196 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else case e in #(
230 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi ;;
235 esac
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed 'exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi ;;
277 esac
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
321 {
322
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 printf "%s\n" X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
342 q
343 }
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\).*/{
353 s//\1/
354 q
355 }
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361
362
363 } # as_fn_mkdir_p
364
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
369 {
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
379 then :
380 eval 'as_fn_append ()
381 {
382 eval $1+=\$2
383 }'
384 else case e in #(
385 e) as_fn_append ()
386 {
387 eval $1=\$$1\$2
388 } ;;
389 esac
390 fi # as_fn_append
391
392 # as_fn_arith ARG...
393 # ------------------
394 # Perform arithmetic evaluation on the ARGs, and store the result in the
395 # global $as_val. Take advantage of shells that can avoid forks. The arguments
396 # must be portable across $(()) and expr.
397 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
398 then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else case e in #(
404 e) as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 } ;;
408 esac
409 fi # as_fn_arith
410
411
412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
413 # ----------------------------------------
414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
416 # script with STATUS, using 1 if that was 0.
417 as_fn_error ()
418 {
419 as_status=$1; test $as_status -eq 0 && as_status=1
420 if test "$4"; then
421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
422 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 fi
424 printf "%s\n" "$as_me: error: $2" >&2
425 as_fn_exit $as_status
426 } # as_fn_error
427
428 if expr a : '\(a\)' >/dev/null 2>&1 &&
429 test "X`expr 00001 : '.*\(...\)'`" = X001; then
430 as_expr=expr
431 else
432 as_expr=false
433 fi
434
435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436 as_basename=basename
437 else
438 as_basename=false
439 fi
440
441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442 as_dirname=dirname
443 else
444 as_dirname=false
445 fi
446
447 as_me=`$as_basename -- "$0" ||
448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
449 X"$0" : 'X\(//\)$' \| \
450 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 printf "%s\n" X/"$0" |
452 sed '/^.*\/\([^/][^/]*\)\/*$/{
453 s//\1/
454 q
455 }
456 /^X\/\(\/\/\)$/{
457 s//\1/
458 q
459 }
460 /^X\/\(\/\).*/{
461 s//\1/
462 q
463 }
464 s/.*/./; q'`
465
466 # Avoid depending upon Character Ranges.
467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
470 as_cr_digits='0123456789'
471 as_cr_alnum=$as_cr_Letters$as_cr_digits
472
473
474 as_lineno_1=$LINENO as_lineno_1a=$LINENO
475 as_lineno_2=$LINENO as_lineno_2a=$LINENO
476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
479 sed -n '
480 p
481 /[$]LINENO/=
482 ' <$as_myself |
483 sed '
484 t clear
485 :clear
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511
512 # Determine whether it's possible to make 'echo' print without a newline.
513 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
514 # for compatibility with existing Makefiles.
515 ECHO_C= ECHO_N= ECHO_T=
516 case `echo -n x` in #(((((
517 -n*)
518 case `echo 'xy\c'` in
519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
520 xy) ECHO_C='\c';;
521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
522 ECHO_T=' ';;
523 esac;;
524 *)
525 ECHO_N='-n';;
526 esac
527
528 # For backward compatibility with old third-party macros, we provide
529 # the shell variables $as_echo and $as_echo_n. New code should use
530 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
531 as_echo='printf %s\n'
532 as_echo_n='printf %s'
533
534 rm -f conf$$ conf$$.exe conf$$.file
535 if test -d conf$$.dir; then
536 rm -f conf$$.dir/conf$$.file
537 else
538 rm -f conf$$.dir
539 mkdir conf$$.dir 2>/dev/null
540 fi
541 if (echo >conf$$.file) 2>/dev/null; then
542 if ln -s conf$$.file conf$$ 2>/dev/null; then
543 as_ln_s='ln -s'
544 # ... but there are two gotchas:
545 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
546 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
547 # In both cases, we have to default to 'cp -pR'.
548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
549 as_ln_s='cp -pR'
550 elif ln conf$$.file conf$$ 2>/dev/null; then
551 as_ln_s=ln
552 else
553 as_ln_s='cp -pR'
554 fi
555 else
556 as_ln_s='cp -pR'
557 fi
558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
559 rmdir conf$$.dir 2>/dev/null
560
561 if mkdir -p . 2>/dev/null; then
562 as_mkdir_p='mkdir -p "$as_dir"'
563 else
564 test -d ./-p && rmdir ./-p
565 as_mkdir_p=false
566 fi
567
568 as_test_x='test -x'
569 as_executable_p=as_fn_executable_p
570
571 # Sed expression to map a string onto a valid CPP name.
572 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
573 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
574
575 # Sed expression to map a string onto a valid variable name.
576 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
577 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
578
579
580 test -n "$DJDIR" || exec 7<&0 </dev/null
581 exec 6>&1
582
583 # Name of the host.
584 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
585 # so uname gets run too.
586 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587
588 #
589 # Initializations.
590 #
591 ac_default_prefix=/usr/local
592 ac_clean_files=
593 ac_config_libobj_dir=.
594 LIBOBJS=
595 cross_compiling=no
596 subdirs=
597 MFLAGS=
598 MAKEFLAGS=
599
600 # Identity of this package.
601 PACKAGE_NAME=''
602 PACKAGE_TARNAME=''
603 PACKAGE_VERSION=''
604 PACKAGE_STRING=''
605 PACKAGE_BUGREPORT=''
606 PACKAGE_URL=''
607
608 ac_unique_file="src/feature.h"
609 # Factoring default headers for most tests.
610 ac_includes_default="\
611 #include <stddef.h>
612 #ifdef HAVE_STDIO_H
613 # include <stdio.h>
614 #endif
615 #ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 #endif
618 #ifdef HAVE_STRING_H
619 # include <string.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_SYS_TYPES_H
631 # include <sys/types.h>
632 #endif
633 #ifdef HAVE_SYS_STAT_H
634 # include <sys/stat.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_header_c_list=
641 ac_subst_vars='LTLIBOBJS
642 LIBOBJS
643 PERL_O
644 IF_PERL
645 PERLPRIVLIBEXP
646 PERLFLAGS
647 PERLLIB
648 PERL
649 XFT_CONFIG
650 STARTUP_NOTIFICATION_LIBS
651 STARTUP_NOTIFICATION_CFLAGS
652 PIXBUF_LIBS
653 PIXBUF_CFLAGS
654 PTYTTY_LIBS
655 PTYTTY_CFLAGS
656 PKG_CONFIG
657 X_EXTRA_LIBS
658 X_LIBS
659 X_PRE_LIBS
660 X_CFLAGS
661 CXXCPP
662 XMKMF
663 TIC
664 RXVTNAME
665 LINKER
666 INSTALL_DATA
667 INSTALL_SCRIPT
668 INSTALL_PROGRAM
669 ac_ct_CXX
670 CXXFLAGS
671 CXX
672 OBJEXT
673 EXEEXT
674 ac_ct_CC
675 CPPFLAGS
676 LDFLAGS
677 CFLAGS
678 CC
679 DATE
680 VERSION
681 target_alias
682 host_alias
683 build_alias
684 LIBS
685 ECHO_T
686 ECHO_N
687 ECHO_C
688 DEFS
689 mandir
690 localedir
691 libdir
692 psdir
693 pdfdir
694 dvidir
695 htmldir
696 infodir
697 docdir
698 oldincludedir
699 includedir
700 runstatedir
701 localstatedir
702 sharedstatedir
703 sysconfdir
704 datadir
705 datarootdir
706 libexecdir
707 sbindir
708 bindir
709 program_transform_name
710 prefix
711 exec_prefix
712 PACKAGE_URL
713 PACKAGE_BUGREPORT
714 PACKAGE_STRING
715 PACKAGE_VERSION
716 PACKAGE_TARNAME
717 PACKAGE_NAME
718 PATH_SEPARATOR
719 SHELL'
720 ac_subst_files=''
721 ac_user_opts='
722 enable_option_checking
723 enable_everything
724 enable_assert
725 enable_warnings
726 enable_256_color
727 enable_unicode3
728 enable_combining
729 enable_xft
730 enable_font_styles
731 enable_pixbuf
732 enable_startup_notification
733 enable_transparency
734 enable_fading
735 enable_rxvt_scroll
736 enable_next_scroll
737 enable_xterm_scroll
738 enable_perl
739 with_codesets
740 enable_xim
741 enable_backspace_key
742 enable_delete_key
743 enable_resources
744 enable_8bitctrls
745 enable_fallback
746 with_res_name
747 with_res_class
748 with_name
749 enable_swapscreen
750 enable_iso14755
751 enable_frills
752 enable_keepscrolling
753 enable_selectionscrolling
754 enable_mousewheel
755 enable_slipwheeling
756 enable_smart_resize
757 enable_text_blink
758 enable_pointer_blank
759 with_term
760 with_terminfo
761 with_x
762 '
763 ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 CC
767 CFLAGS
768 LDFLAGS
769 LIBS
770 CPPFLAGS
771 CXX
772 CXXFLAGS
773 CCC
774 XMKMF
775 CXXCPP'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 runstatedir='${localstatedir}/run'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
842 esac
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: '$ac_useropt'"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: '$ac_useropt'"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -runstatedir | --runstatedir | --runstatedi | --runstated \
1066 | --runstate | --runstat | --runsta | --runst | --runs \
1067 | --run | --ru | --r)
1068 ac_prev=runstatedir ;;
1069 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1070 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1071 | --run=* | --ru=* | --r=*)
1072 runstatedir=$ac_optarg ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: '$ac_useropt'"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: '$ac_useropt'"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error $? "unrecognized option: '$ac_option'
1170 Try '$0 --help' for more information"
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir runstatedir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: '$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 printf "%s\n" X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289 else
1290 ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 'configure' configures this package to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print 'checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for '--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or '..']
1343
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350 By default, 'make install' will install all the files in
1351 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than '$ac_default_prefix' using '--prefix',
1353 for instance '--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 X features:
1383 --x-includes=DIR X include files are in DIR
1384 --x-libraries=DIR X library files are in DIR
1385 _ACEOF
1386 fi
1387
1388 if test -n "$ac_init_help"; then
1389
1390 cat <<\_ACEOF
1391
1392 Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-everything enable standard non-multichoice features NOTE: this
1397 option is order dependent
1398 --enable-assert enable assertions
1399 --enable-warnings turn on g++ warnings
1400 --enable-256-color enable 256-color support
1401 --enable-unicode3 use 21 instead of 16 bits to represent unicode
1402 characters
1403 --enable-combining enable composition of base and combining characters
1404 --enable-xft enable xft support on systems that have it
1405 --enable-font-styles enable bold and italic support
1406 --enable-pixbuf enable integration with gdk-pixbuf for background
1407 images
1408 --enable-startup-notification
1409 enable freedesktop startup notification support
1410 --enable-transparency enable transparent backgrounds
1411 --enable-fading enable colors fading when off focus
1412 --enable-rxvt-scroll enable rxvt style scrollbar
1413 --enable-next-scroll enable NeXT style scrollbar
1414 --enable-xterm-scroll enable Xterm style scrollbar
1415 --enable-perl enable embedded perl interpreter
1416 --enable-xim XIM (X Input Method) protocol support
1417 --disable-backspace-key disable handling of the backspace key
1418 --disable-delete-key disable handling of the delete key
1419 --disable-resources disable all resource checking
1420 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1421 --enable-fallback[=CLASS]
1422 fall back on CLASS resources in addition to URxvt
1423 ones (default: Rxvt)
1424 --disable-swapscreen disable swap screen support
1425 --enable-iso14755 enable support for extended ISO 14755 modes
1426 --enable-frills enable support for rarely used features
1427 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1428 --enable-selectionscrolling
1429 enable scrolling during selections
1430 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1431 --enable-slipwheeling enable slip wheel scrolling (requires
1432 --enable-mousewheel)
1433 --enable-smart-resize enable smart growth/shrink behaviour
1434 --enable-text-blink enable blinking text
1435 --enable-pointer-blank enable pointer blanking when typing or inactive
1436
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-codesets=CS,... compile in additional codesets
1441 (jp,jp_ext,kr,zh,zh_ext,all)
1442 --with-res-name=NAME set the default resource name (default: urxvt)
1443 --with-res-class=CLASS set the resource class (default: URxvt)
1444 --with-name=NAME set the basename for the installed binaries
1445 (default: urxvt)
1446 --with-term=VALUE set the value of the TERM environment variable
1447 (default: rxvt)
1448 --with-terminfo=VALUE set the value of the TERMINFO environment variable
1449 --with-x use the X Window System
1450
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 CXX C++ compiler command
1460 CXXFLAGS C++ compiler flags
1461 XMKMF Path to xmkmf, Makefile generator for X Window System
1462 CXXCPP C++ preprocessor
1463
1464 Use these variables to override the choices made by 'configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1466
1467 Report bugs to the package provider.
1468 _ACEOF
1469 ac_status=$?
1470 fi
1471
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" ||
1476 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477 continue
1478 ac_builddir=.
1479
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 *)
1483 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1495
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for configure.gnu first; this name is used for a wrapper for
1514 # Metaconfig's "Configure" on case-insensitive file systems.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1521 else
1522 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1525 done
1526 fi
1527
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530 cat <<\_ACEOF
1531 configure
1532 generated by GNU Autoconf 2.72
1533
1534 Copyright (C) 2023 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538 exit
1539 fi
1540
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1544
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1549 {
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext conftest.beam
1552 if { { ac_try="$ac_compile"
1553 case "(($ac_try" in
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1556 esac
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 printf "%s\n" "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1560 ac_status=$?
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1565 fi
1566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext
1571 then :
1572 ac_retval=0
1573 else case e in #(
1574 e) printf "%s\n" "$as_me: failed program was:" >&5
1575 sed 's/^/| /' conftest.$ac_ext >&5
1576
1577 ac_retval=1 ;;
1578 esac
1579 fi
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1582
1583 } # ac_fn_c_try_compile
1584
1585 # ac_fn_cxx_try_compile LINENO
1586 # ----------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_cxx_try_compile ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext conftest.beam
1592 if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 printf "%s\n" "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_cxx_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext
1611 then :
1612 ac_retval=0
1613 else case e in #(
1614 e) printf "%s\n" "$as_me: failed program was:" >&5
1615 sed 's/^/| /' conftest.$ac_ext >&5
1616
1617 ac_retval=1 ;;
1618 esac
1619 fi
1620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 as_fn_set_status $ac_retval
1622
1623 } # ac_fn_cxx_try_compile
1624
1625 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1626 # -------------------------------------------------------
1627 # Tests whether HEADER exists and can be compiled using the include files in
1628 # INCLUDES, setting the cache variable VAR accordingly.
1629 ac_fn_c_check_header_compile ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1633 printf %s "checking for $2... " >&6; }
1634 if eval test \${$3+y}
1635 then :
1636 printf %s "(cached) " >&6
1637 else case e in #(
1638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 /* end confdefs.h. */
1640 $4
1641 #include <$2>
1642 _ACEOF
1643 if ac_fn_c_try_compile "$LINENO"
1644 then :
1645 eval "$3=yes"
1646 else case e in #(
1647 e) eval "$3=no" ;;
1648 esac
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1651 esac
1652 fi
1653 eval ac_res=\$$3
1654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655 printf "%s\n" "$ac_res" >&6; }
1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657
1658 } # ac_fn_c_check_header_compile
1659
1660 # ac_fn_cxx_try_link LINENO
1661 # -------------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_cxx_try_link ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 printf "%s\n" "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_cxx_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }
1689 then :
1690 ac_retval=0
1691 else case e in #(
1692 e) printf "%s\n" "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1 ;;
1696 esac
1697 fi
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_cxx_try_link
1707
1708 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1709 # ---------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_cxx_check_header_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 printf %s "checking for $2... " >&6; }
1717 if eval test \${$3+y}
1718 then :
1719 printf %s "(cached) " >&6
1720 else case e in #(
1721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 $4
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_cxx_try_compile "$LINENO"
1727 then :
1728 eval "$3=yes"
1729 else case e in #(
1730 e) eval "$3=no" ;;
1731 esac
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1734 esac
1735 fi
1736 eval ac_res=\$$3
1737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 printf "%s\n" "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_cxx_check_header_compile
1742
1743 # ac_fn_cxx_check_func LINENO FUNC VAR
1744 # ------------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_cxx_check_func ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 printf %s "checking for $2... " >&6; }
1751 if eval test \${$3+y}
1752 then :
1753 printf %s "(cached) " >&6
1754 else case e in #(
1755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1759 #define $2 innocuous_$2
1760
1761 /* System header to define __stub macros and hopefully few prototypes,
1762 which can conflict with char $2 (void); below. */
1763
1764 #include <limits.h>
1765 #undef $2
1766
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1770 #ifdef __cplusplus
1771 extern "C"
1772 #endif
1773 char $2 (void);
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1778 choke me
1779 #endif
1780
1781 int
1782 main (void)
1783 {
1784 return $2 ();
1785 ;
1786 return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_cxx_try_link "$LINENO"
1790 then :
1791 eval "$3=yes"
1792 else case e in #(
1793 e) eval "$3=no" ;;
1794 esac
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1797 conftest$ac_exeext conftest.$ac_ext ;;
1798 esac
1799 fi
1800 eval ac_res=\$$3
1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 printf "%s\n" "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_cxx_check_func
1806
1807 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1808 # ---------------------------------------------
1809 # Tests whether TYPE exists after having included INCLUDES, setting cache
1810 # variable VAR accordingly.
1811 ac_fn_cxx_check_type ()
1812 {
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 printf %s "checking for $2... " >&6; }
1816 if eval test \${$3+y}
1817 then :
1818 printf %s "(cached) " >&6
1819 else case e in #(
1820 e) eval "$3=no"
1821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822 /* end confdefs.h. */
1823 $4
1824 int
1825 main (void)
1826 {
1827 if (sizeof ($2))
1828 return 0;
1829 ;
1830 return 0;
1831 }
1832 _ACEOF
1833 if ac_fn_cxx_try_compile "$LINENO"
1834 then :
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 $4
1838 int
1839 main (void)
1840 {
1841 if (sizeof (($2)))
1842 return 0;
1843 ;
1844 return 0;
1845 }
1846 _ACEOF
1847 if ac_fn_cxx_try_compile "$LINENO"
1848 then :
1849
1850 else case e in #(
1851 e) eval "$3=yes" ;;
1852 esac
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1855 fi
1856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1857 esac
1858 fi
1859 eval ac_res=\$$3
1860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861 printf "%s\n" "$ac_res" >&6; }
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
1864 } # ac_fn_cxx_check_type
1865
1866 # ac_fn_cxx_try_cpp LINENO
1867 # ------------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_cxx_try_cpp ()
1870 {
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_cpp conftest.$ac_ext"
1873 case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 printf "%s\n" "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1880 ac_status=$?
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1885 fi
1886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } > conftest.i && {
1888 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1889 test ! -s conftest.err
1890 }
1891 then :
1892 ac_retval=0
1893 else case e in #(
1894 e) printf "%s\n" "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897 ac_retval=1 ;;
1898 esac
1899 fi
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1902
1903 } # ac_fn_cxx_try_cpp
1904
1905 # ac_fn_c_find_intX_t LINENO BITS VAR
1906 # -----------------------------------
1907 # Finds a signed integer type with width BITS, setting cache variable VAR
1908 # accordingly.
1909 ac_fn_c_find_intX_t ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1913 printf %s "checking for int$2_t... " >&6; }
1914 if eval test \${$3+y}
1915 then :
1916 printf %s "(cached) " >&6
1917 else case e in #(
1918 e) eval "$3=no"
1919 # Order is important - never check a type that is potentially smaller
1920 # than half of the expected target width.
1921 for ac_type in int$2_t 'int' 'long int' \
1922 'long long int' 'short int' 'signed char'; do
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 $ac_includes_default
1926 enum { N = $2 / 2 - 1 };
1927 int
1928 main (void)
1929 {
1930 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1931 test_array [0] = 0;
1932 return test_array [0];
1933
1934 ;
1935 return 0;
1936 }
1937 _ACEOF
1938 if ac_fn_cxx_try_compile "$LINENO"
1939 then :
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1942 $ac_includes_default
1943 enum { N = $2 / 2 - 1 };
1944 int
1945 main (void)
1946 {
1947 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1948 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1949 test_array [0] = 0;
1950 return test_array [0];
1951
1952 ;
1953 return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_cxx_try_compile "$LINENO"
1957 then :
1958
1959 else case e in #(
1960 e) case $ac_type in #(
1961 int$2_t) :
1962 eval "$3=yes" ;; #(
1963 *) :
1964 eval "$3=\$ac_type" ;;
1965 esac ;;
1966 esac
1967 fi
1968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1971 if eval test \"x\$"$3"\" = x"no"
1972 then :
1973
1974 else case e in #(
1975 e) break ;;
1976 esac
1977 fi
1978 done ;;
1979 esac
1980 fi
1981 eval ac_res=\$$3
1982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 printf "%s\n" "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_find_intX_t
1987
1988 # ac_fn_c_find_uintX_t LINENO BITS VAR
1989 # ------------------------------------
1990 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1991 # accordingly.
1992 ac_fn_c_find_uintX_t ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1996 printf %s "checking for uint$2_t... " >&6; }
1997 if eval test \${$3+y}
1998 then :
1999 printf %s "(cached) " >&6
2000 else case e in #(
2001 e) eval "$3=no"
2002 # Order is important - never check a type that is potentially smaller
2003 # than half of the expected target width.
2004 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2005 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 $ac_includes_default
2009 int
2010 main (void)
2011 {
2012 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2013 test_array [0] = 0;
2014 return test_array [0];
2015
2016 ;
2017 return 0;
2018 }
2019 _ACEOF
2020 if ac_fn_cxx_try_compile "$LINENO"
2021 then :
2022 case $ac_type in #(
2023 uint$2_t) :
2024 eval "$3=yes" ;; #(
2025 *) :
2026 eval "$3=\$ac_type" ;;
2027 esac
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2030 if eval test \"x\$"$3"\" = x"no"
2031 then :
2032
2033 else case e in #(
2034 e) break ;;
2035 esac
2036 fi
2037 done ;;
2038 esac
2039 fi
2040 eval ac_res=\$$3
2041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 printf "%s\n" "$ac_res" >&6; }
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045 } # ac_fn_c_find_uintX_t
2046
2047 # ac_fn_cxx_try_run LINENO
2048 # ------------------------
2049 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2050 # executables *can* be run.
2051 ac_fn_cxx_try_run ()
2052 {
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 if { { ac_try="$ac_link"
2055 case "(($ac_try" in
2056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057 *) ac_try_echo=$ac_try;;
2058 esac
2059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 printf "%s\n" "$ac_try_echo"; } >&5
2061 (eval "$ac_link") 2>&5
2062 ac_status=$?
2063 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2065 { { case "(($ac_try" in
2066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2067 *) ac_try_echo=$ac_try;;
2068 esac
2069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2070 printf "%s\n" "$ac_try_echo"; } >&5
2071 (eval "$ac_try") 2>&5
2072 ac_status=$?
2073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; }; }
2075 then :
2076 ac_retval=0
2077 else case e in #(
2078 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2079 printf "%s\n" "$as_me: failed program was:" >&5
2080 sed 's/^/| /' conftest.$ac_ext >&5
2081
2082 ac_retval=$ac_status ;;
2083 esac
2084 fi
2085 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 as_fn_set_status $ac_retval
2088
2089 } # ac_fn_cxx_try_run
2090 ac_configure_args_raw=
2091 for ac_arg
2092 do
2093 case $ac_arg in
2094 *\'*)
2095 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2096 esac
2097 as_fn_append ac_configure_args_raw " '$ac_arg'"
2098 done
2099
2100 case $ac_configure_args_raw in
2101 *$as_nl*)
2102 ac_safe_unquote= ;;
2103 *)
2104 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2105 ac_unsafe_a="$ac_unsafe_z#~"
2106 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2107 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2108 esac
2109
2110 cat >config.log <<_ACEOF
2111 This file contains any messages produced by compilers while
2112 running configure, to aid debugging if configure makes a mistake.
2113
2114 It was created by $as_me, which was
2115 generated by GNU Autoconf 2.72. Invocation command line was
2116
2117 $ $0$ac_configure_args_raw
2118
2119 _ACEOF
2120 exec 5>>config.log
2121 {
2122 cat <<_ASUNAME
2123 ## --------- ##
2124 ## Platform. ##
2125 ## --------- ##
2126
2127 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2128 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2129 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2130 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2131 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2132
2133 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2134 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2135
2136 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2137 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2138 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2139 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2140 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2141 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2142 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2143
2144 _ASUNAME
2145
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149 IFS=$as_save_IFS
2150 case $as_dir in #(((
2151 '') as_dir=./ ;;
2152 */) ;;
2153 *) as_dir=$as_dir/ ;;
2154 esac
2155 printf "%s\n" "PATH: $as_dir"
2156 done
2157 IFS=$as_save_IFS
2158
2159 } >&5
2160
2161 cat >&5 <<_ACEOF
2162
2163
2164 ## ----------- ##
2165 ## Core tests. ##
2166 ## ----------- ##
2167
2168 _ACEOF
2169
2170
2171 # Keep a trace of the command line.
2172 # Strip out --no-create and --no-recursion so they do not pile up.
2173 # Strip out --silent because we don't want to record it for future runs.
2174 # Also quote any args containing shell meta-characters.
2175 # Make two passes to allow for proper duplicate-argument suppression.
2176 ac_configure_args=
2177 ac_configure_args0=
2178 ac_configure_args1=
2179 ac_must_keep_next=false
2180 for ac_pass in 1 2
2181 do
2182 for ac_arg
2183 do
2184 case $ac_arg in
2185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2187 | -silent | --silent | --silen | --sile | --sil)
2188 continue ;;
2189 *\'*)
2190 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 esac
2192 case $ac_pass in
2193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2194 2)
2195 as_fn_append ac_configure_args1 " '$ac_arg'"
2196 if test $ac_must_keep_next = true; then
2197 ac_must_keep_next=false # Got value, back to normal.
2198 else
2199 case $ac_arg in
2200 *=* | --config-cache | -C | -disable-* | --disable-* \
2201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2203 | -with-* | --with-* | -without-* | --without-* | --x)
2204 case "$ac_configure_args0 " in
2205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206 esac
2207 ;;
2208 -* ) ac_must_keep_next=true ;;
2209 esac
2210 fi
2211 as_fn_append ac_configure_args " '$ac_arg'"
2212 ;;
2213 esac
2214 done
2215 done
2216 { ac_configure_args0=; unset ac_configure_args0;}
2217 { ac_configure_args1=; unset ac_configure_args1;}
2218
2219 # When interrupted or exit'd, cleanup temporary files, and complete
2220 # config.log. We remove comments because anyway the quotes in there
2221 # would cause problems or look ugly.
2222 # WARNING: Use '\'' to represent an apostrophe within the trap.
2223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2224 trap 'exit_status=$?
2225 # Sanitize IFS.
2226 IFS=" "" $as_nl"
2227 # Save into config.log some information that might help in debugging.
2228 {
2229 echo
2230
2231 printf "%s\n" "## ---------------- ##
2232 ## Cache variables. ##
2233 ## ---------------- ##"
2234 echo
2235 # The following way of writing the cache mishandles newlines in values,
2236 (
2237 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2238 eval ac_val=\$$ac_var
2239 case $ac_val in #(
2240 *${as_nl}*)
2241 case $ac_var in #(
2242 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2243 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2244 esac
2245 case $ac_var in #(
2246 _ | IFS | as_nl) ;; #(
2247 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2248 *) { eval $ac_var=; unset $ac_var;} ;;
2249 esac ;;
2250 esac
2251 done
2252 (set) 2>&1 |
2253 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2254 *${as_nl}ac_space=\ *)
2255 sed -n \
2256 "s/'\''/'\''\\\\'\'''\''/g;
2257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2258 ;; #(
2259 *)
2260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2261 ;;
2262 esac |
2263 sort
2264 )
2265 echo
2266
2267 printf "%s\n" "## ----------------- ##
2268 ## Output variables. ##
2269 ## ----------------- ##"
2270 echo
2271 for ac_var in $ac_subst_vars
2272 do
2273 eval ac_val=\$$ac_var
2274 case $ac_val in
2275 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 esac
2277 printf "%s\n" "$ac_var='\''$ac_val'\''"
2278 done | sort
2279 echo
2280
2281 if test -n "$ac_subst_files"; then
2282 printf "%s\n" "## ------------------- ##
2283 ## File substitutions. ##
2284 ## ------------------- ##"
2285 echo
2286 for ac_var in $ac_subst_files
2287 do
2288 eval ac_val=\$$ac_var
2289 case $ac_val in
2290 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291 esac
2292 printf "%s\n" "$ac_var='\''$ac_val'\''"
2293 done | sort
2294 echo
2295 fi
2296
2297 if test -s confdefs.h; then
2298 printf "%s\n" "## ----------- ##
2299 ## confdefs.h. ##
2300 ## ----------- ##"
2301 echo
2302 cat confdefs.h
2303 echo
2304 fi
2305 test "$ac_signal" != 0 &&
2306 printf "%s\n" "$as_me: caught signal $ac_signal"
2307 printf "%s\n" "$as_me: exit $exit_status"
2308 } >&5
2309 rm -f core *.core core.conftest.* &&
2310 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2311 exit $exit_status
2312 ' 0
2313 for ac_signal in 1 2 13 15; do
2314 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2315 done
2316 ac_signal=0
2317
2318 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2319 rm -f -r conftest* confdefs.h
2320
2321 printf "%s\n" "/* confdefs.h */" > confdefs.h
2322
2323 # Predefined preprocessor variables.
2324
2325 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2326
2327 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2328
2329 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2330
2331 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2332
2333 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2334
2335 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2336
2337
2338 # Let the site file select an alternate cache file if it wants to.
2339 # Prefer an explicitly selected file to automatically selected ones.
2340 if test -n "$CONFIG_SITE"; then
2341 ac_site_files="$CONFIG_SITE"
2342 elif test "x$prefix" != xNONE; then
2343 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2344 else
2345 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2346 fi
2347
2348 for ac_site_file in $ac_site_files
2349 do
2350 case $ac_site_file in #(
2351 */*) :
2352 ;; #(
2353 *) :
2354 ac_site_file=./$ac_site_file ;;
2355 esac
2356 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2358 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2359 sed 's/^/| /' "$ac_site_file" >&5
2360 . "$ac_site_file" \
2361 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2362 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2363 as_fn_error $? "failed to load site script $ac_site_file
2364 See 'config.log' for more details" "$LINENO" 5; }
2365 fi
2366 done
2367
2368 if test -r "$cache_file"; then
2369 # Some versions of bash will fail to source /dev/null (special files
2370 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2371 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2373 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2374 case $cache_file in
2375 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376 *) . "./$cache_file";;
2377 esac
2378 fi
2379 else
2380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2381 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2382 >$cache_file
2383 fi
2384
2385 # Test code for whether the C compiler supports C89 (global declarations)
2386 ac_c_conftest_c89_globals='
2387 /* Does the compiler advertise C89 conformance?
2388 Do not test the value of __STDC__, because some compilers set it to 0
2389 while being otherwise adequately conformant. */
2390 #if !defined __STDC__
2391 # error "Compiler does not advertise C89 conformance"
2392 #endif
2393
2394 #include <stddef.h>
2395 #include <stdarg.h>
2396 struct stat;
2397 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2398 struct buf { int x; };
2399 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2400 static char *e (char **p, int i)
2401 {
2402 return p[i];
2403 }
2404 static char *f (char * (*g) (char **, int), char **p, ...)
2405 {
2406 char *s;
2407 va_list v;
2408 va_start (v,p);
2409 s = g (p, va_arg (v,int));
2410 va_end (v);
2411 return s;
2412 }
2413
2414 /* C89 style stringification. */
2415 #define noexpand_stringify(a) #a
2416 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2417
2418 /* C89 style token pasting. Exercises some of the corner cases that
2419 e.g. old MSVC gets wrong, but not very hard. */
2420 #define noexpand_concat(a,b) a##b
2421 #define expand_concat(a,b) noexpand_concat(a,b)
2422 extern int vA;
2423 extern int vbee;
2424 #define aye A
2425 #define bee B
2426 int *pvA = &expand_concat(v,aye);
2427 int *pvbee = &noexpand_concat(v,bee);
2428
2429 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2430 function prototypes and stuff, but not \xHH hex character constants.
2431 These do not provoke an error unfortunately, instead are silently treated
2432 as an "x". The following induces an error, until -std is added to get
2433 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2434 array size at least. It is necessary to write \x00 == 0 to get something
2435 that is true only with -std. */
2436 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2437
2438 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2439 inside strings and character constants. */
2440 #define FOO(x) '\''x'\''
2441 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2442
2443 int test (int i, double x);
2444 struct s1 {int (*f) (int a);};
2445 struct s2 {int (*f) (double a);};
2446 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2447 int, int);'
2448
2449 # Test code for whether the C compiler supports C89 (body of main).
2450 ac_c_conftest_c89_main='
2451 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2452 '
2453
2454 # Test code for whether the C compiler supports C99 (global declarations)
2455 ac_c_conftest_c99_globals='
2456 /* Does the compiler advertise C99 conformance? */
2457 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2458 # error "Compiler does not advertise C99 conformance"
2459 #endif
2460
2461 // See if C++-style comments work.
2462
2463 #include <stdbool.h>
2464 extern int puts (const char *);
2465 extern int printf (const char *, ...);
2466 extern int dprintf (int, const char *, ...);
2467 extern void *malloc (size_t);
2468 extern void free (void *);
2469
2470 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2471 // dprintf is used instead of fprintf to avoid needing to declare
2472 // FILE and stderr.
2473 #define debug(...) dprintf (2, __VA_ARGS__)
2474 #define showlist(...) puts (#__VA_ARGS__)
2475 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2476 static void
2477 test_varargs_macros (void)
2478 {
2479 int x = 1234;
2480 int y = 5678;
2481 debug ("Flag");
2482 debug ("X = %d\n", x);
2483 showlist (The first, second, and third items.);
2484 report (x>y, "x is %d but y is %d", x, y);
2485 }
2486
2487 // Check long long types.
2488 #define BIG64 18446744073709551615ull
2489 #define BIG32 4294967295ul
2490 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2491 #if !BIG_OK
2492 #error "your preprocessor is broken"
2493 #endif
2494 #if BIG_OK
2495 #else
2496 #error "your preprocessor is broken"
2497 #endif
2498 static long long int bignum = -9223372036854775807LL;
2499 static unsigned long long int ubignum = BIG64;
2500
2501 struct incomplete_array
2502 {
2503 int datasize;
2504 double data[];
2505 };
2506
2507 struct named_init {
2508 int number;
2509 const wchar_t *name;
2510 double average;
2511 };
2512
2513 typedef const char *ccp;
2514
2515 static inline int
2516 test_restrict (ccp restrict text)
2517 {
2518 // Iterate through items via the restricted pointer.
2519 // Also check for declarations in for loops.
2520 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2521 continue;
2522 return 0;
2523 }
2524
2525 // Check varargs and va_copy.
2526 static bool
2527 test_varargs (const char *format, ...)
2528 {
2529 va_list args;
2530 va_start (args, format);
2531 va_list args_copy;
2532 va_copy (args_copy, args);
2533
2534 const char *str = "";
2535 int number = 0;
2536 float fnumber = 0;
2537
2538 while (*format)
2539 {
2540 switch (*format++)
2541 {
2542 case '\''s'\'': // string
2543 str = va_arg (args_copy, const char *);
2544 break;
2545 case '\''d'\'': // int
2546 number = va_arg (args_copy, int);
2547 break;
2548 case '\''f'\'': // float
2549 fnumber = va_arg (args_copy, double);
2550 break;
2551 default:
2552 break;
2553 }
2554 }
2555 va_end (args_copy);
2556 va_end (args);
2557
2558 return *str && number && fnumber;
2559 }
2560 '
2561
2562 # Test code for whether the C compiler supports C99 (body of main).
2563 ac_c_conftest_c99_main='
2564 // Check bool.
2565 _Bool success = false;
2566 success |= (argc != 0);
2567
2568 // Check restrict.
2569 if (test_restrict ("String literal") == 0)
2570 success = true;
2571 char *restrict newvar = "Another string";
2572
2573 // Check varargs.
2574 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2575 test_varargs_macros ();
2576
2577 // Check flexible array members.
2578 struct incomplete_array *ia =
2579 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2580 ia->datasize = 10;
2581 for (int i = 0; i < ia->datasize; ++i)
2582 ia->data[i] = i * 1.234;
2583 // Work around memory leak warnings.
2584 free (ia);
2585
2586 // Check named initializers.
2587 struct named_init ni = {
2588 .number = 34,
2589 .name = L"Test wide string",
2590 .average = 543.34343,
2591 };
2592
2593 ni.number = 58;
2594
2595 int dynamic_array[ni.number];
2596 dynamic_array[0] = argv[0][0];
2597 dynamic_array[ni.number - 1] = 543;
2598
2599 // work around unused variable warnings
2600 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2601 || dynamic_array[ni.number - 1] != 543);
2602 '
2603
2604 # Test code for whether the C compiler supports C11 (global declarations)
2605 ac_c_conftest_c11_globals='
2606 /* Does the compiler advertise C11 conformance? */
2607 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2608 # error "Compiler does not advertise C11 conformance"
2609 #endif
2610
2611 // Check _Alignas.
2612 char _Alignas (double) aligned_as_double;
2613 char _Alignas (0) no_special_alignment;
2614 extern char aligned_as_int;
2615 char _Alignas (0) _Alignas (int) aligned_as_int;
2616
2617 // Check _Alignof.
2618 enum
2619 {
2620 int_alignment = _Alignof (int),
2621 int_array_alignment = _Alignof (int[100]),
2622 char_alignment = _Alignof (char)
2623 };
2624 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2625
2626 // Check _Noreturn.
2627 int _Noreturn does_not_return (void) { for (;;) continue; }
2628
2629 // Check _Static_assert.
2630 struct test_static_assert
2631 {
2632 int x;
2633 _Static_assert (sizeof (int) <= sizeof (long int),
2634 "_Static_assert does not work in struct");
2635 long int y;
2636 };
2637
2638 // Check UTF-8 literals.
2639 #define u8 syntax error!
2640 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2641
2642 // Check duplicate typedefs.
2643 typedef long *long_ptr;
2644 typedef long int *long_ptr;
2645 typedef long_ptr long_ptr;
2646
2647 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2648 struct anonymous
2649 {
2650 union {
2651 struct { int i; int j; };
2652 struct { int k; long int l; } w;
2653 };
2654 int m;
2655 } v1;
2656 '
2657
2658 # Test code for whether the C compiler supports C11 (body of main).
2659 ac_c_conftest_c11_main='
2660 _Static_assert ((offsetof (struct anonymous, i)
2661 == offsetof (struct anonymous, w.k)),
2662 "Anonymous union alignment botch");
2663 v1.i = 2;
2664 v1.w.k = 5;
2665 ok |= v1.i != 5;
2666 '
2667
2668 # Test code for whether the C compiler supports C11 (complete).
2669 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2670 ${ac_c_conftest_c99_globals}
2671 ${ac_c_conftest_c11_globals}
2672
2673 int
2674 main (int argc, char **argv)
2675 {
2676 int ok = 0;
2677 ${ac_c_conftest_c89_main}
2678 ${ac_c_conftest_c99_main}
2679 ${ac_c_conftest_c11_main}
2680 return ok;
2681 }
2682 "
2683
2684 # Test code for whether the C compiler supports C99 (complete).
2685 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2686 ${ac_c_conftest_c99_globals}
2687
2688 int
2689 main (int argc, char **argv)
2690 {
2691 int ok = 0;
2692 ${ac_c_conftest_c89_main}
2693 ${ac_c_conftest_c99_main}
2694 return ok;
2695 }
2696 "
2697
2698 # Test code for whether the C compiler supports C89 (complete).
2699 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2700
2701 int
2702 main (int argc, char **argv)
2703 {
2704 int ok = 0;
2705 ${ac_c_conftest_c89_main}
2706 return ok;
2707 }
2708 "
2709
2710 # Test code for whether the C++ compiler supports C++98 (global declarations)
2711 ac_cxx_conftest_cxx98_globals='
2712 // Does the compiler advertise C++98 conformance?
2713 #if !defined __cplusplus || __cplusplus < 199711L
2714 # error "Compiler does not advertise C++98 conformance"
2715 #endif
2716
2717 // These inclusions are to reject old compilers that
2718 // lack the unsuffixed header files.
2719 #include <cstdlib>
2720 #include <exception>
2721
2722 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2723 extern void assert (int);
2724 namespace std {
2725 extern int strcmp (const char *, const char *);
2726 }
2727
2728 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2729 using std::exception;
2730 using std::strcmp;
2731
2732 namespace {
2733
2734 void test_exception_syntax()
2735 {
2736 try {
2737 throw "test";
2738 } catch (const char *s) {
2739 // Extra parentheses suppress a warning when building autoconf itself,
2740 // due to lint rules shared with more typical C programs.
2741 assert (!(strcmp) (s, "test"));
2742 }
2743 }
2744
2745 template <typename T> struct test_template
2746 {
2747 T const val;
2748 explicit test_template(T t) : val(t) {}
2749 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2750 };
2751
2752 } // anonymous namespace
2753 '
2754
2755 # Test code for whether the C++ compiler supports C++98 (body of main)
2756 ac_cxx_conftest_cxx98_main='
2757 assert (argc);
2758 assert (! argv[0]);
2759 {
2760 test_exception_syntax ();
2761 test_template<double> tt (2.0);
2762 assert (tt.add (4) == 6.0);
2763 assert (true && !false);
2764 }
2765 '
2766
2767 # Test code for whether the C++ compiler supports C++11 (global declarations)
2768 ac_cxx_conftest_cxx11_globals='
2769 // Does the compiler advertise C++ 2011 conformance?
2770 #if !defined __cplusplus || __cplusplus < 201103L
2771 # error "Compiler does not advertise C++11 conformance"
2772 #endif
2773
2774 namespace cxx11test
2775 {
2776 constexpr int get_val() { return 20; }
2777
2778 struct testinit
2779 {
2780 int i;
2781 double d;
2782 };
2783
2784 class delegate
2785 {
2786 public:
2787 delegate(int n) : n(n) {}
2788 delegate(): delegate(2354) {}
2789
2790 virtual int getval() { return this->n; };
2791 protected:
2792 int n;
2793 };
2794
2795 class overridden : public delegate
2796 {
2797 public:
2798 overridden(int n): delegate(n) {}
2799 virtual int getval() override final { return this->n * 2; }
2800 };
2801
2802 class nocopy
2803 {
2804 public:
2805 nocopy(int i): i(i) {}
2806 nocopy() = default;
2807 nocopy(const nocopy&) = delete;
2808 nocopy & operator=(const nocopy&) = delete;
2809 private:
2810 int i;
2811 };
2812
2813 // for testing lambda expressions
2814 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2815 {
2816 return f(v);
2817 }
2818
2819 // for testing variadic templates and trailing return types
2820 template <typename V> auto sum(V first) -> V
2821 {
2822 return first;
2823 }
2824 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2825 {
2826 return first + sum(rest...);
2827 }
2828 }
2829 '
2830
2831 # Test code for whether the C++ compiler supports C++11 (body of main)
2832 ac_cxx_conftest_cxx11_main='
2833 {
2834 // Test auto and decltype
2835 auto a1 = 6538;
2836 auto a2 = 48573953.4;
2837 auto a3 = "String literal";
2838
2839 int total = 0;
2840 for (auto i = a3; *i; ++i) { total += *i; }
2841
2842 decltype(a2) a4 = 34895.034;
2843 }
2844 {
2845 // Test constexpr
2846 short sa[cxx11test::get_val()] = { 0 };
2847 }
2848 {
2849 // Test initializer lists
2850 cxx11test::testinit il = { 4323, 435234.23544 };
2851 }
2852 {
2853 // Test range-based for
2854 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2855 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2856 for (auto &x : array) { x += 23; }
2857 }
2858 {
2859 // Test lambda expressions
2860 using cxx11test::eval;
2861 assert (eval ([](int x) { return x*2; }, 21) == 42);
2862 double d = 2.0;
2863 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2864 assert (d == 5.0);
2865 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2866 assert (d == 5.0);
2867 }
2868 {
2869 // Test use of variadic templates
2870 using cxx11test::sum;
2871 auto a = sum(1);
2872 auto b = sum(1, 2);
2873 auto c = sum(1.0, 2.0, 3.0);
2874 }
2875 {
2876 // Test constructor delegation
2877 cxx11test::delegate d1;
2878 cxx11test::delegate d2();
2879 cxx11test::delegate d3(45);
2880 }
2881 {
2882 // Test override and final
2883 cxx11test::overridden o1(55464);
2884 }
2885 {
2886 // Test nullptr
2887 char *c = nullptr;
2888 }
2889 {
2890 // Test template brackets
2891 test_template<::test_template<int>> v(test_template<int>(12));
2892 }
2893 {
2894 // Unicode literals
2895 char const *utf8 = u8"UTF-8 string \u2500";
2896 char16_t const *utf16 = u"UTF-8 string \u2500";
2897 char32_t const *utf32 = U"UTF-32 string \u2500";
2898 }
2899 '
2900
2901 # Test code for whether the C compiler supports C++11 (complete).
2902 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2903 ${ac_cxx_conftest_cxx11_globals}
2904
2905 int
2906 main (int argc, char **argv)
2907 {
2908 int ok = 0;
2909 ${ac_cxx_conftest_cxx98_main}
2910 ${ac_cxx_conftest_cxx11_main}
2911 return ok;
2912 }
2913 "
2914
2915 # Test code for whether the C compiler supports C++98 (complete).
2916 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2917 int
2918 main (int argc, char **argv)
2919 {
2920 int ok = 0;
2921 ${ac_cxx_conftest_cxx98_main}
2922 return ok;
2923 }
2924 "
2925
2926 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2927 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2928 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2929 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2930 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2931 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2932 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2933 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2934 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2935 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2936 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2937
2938 # Auxiliary files required by this configure script.
2939 ac_aux_files="install-sh"
2940
2941 # Locations in which to look for auxiliary files.
2942 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2943
2944 # Search for a directory containing all of the required auxiliary files,
2945 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2946 # If we don't find one directory that contains all the files we need,
2947 # we report the set of missing files from the *first* directory in
2948 # $ac_aux_dir_candidates and give up.
2949 ac_missing_aux_files=""
2950 ac_first_candidate=:
2951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 as_found=false
2954 for as_dir in $ac_aux_dir_candidates
2955 do
2956 IFS=$as_save_IFS
2957 case $as_dir in #(((
2958 '') as_dir=./ ;;
2959 */) ;;
2960 *) as_dir=$as_dir/ ;;
2961 esac
2962 as_found=:
2963
2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2965 ac_aux_dir_found=yes
2966 ac_install_sh=
2967 for ac_aux in $ac_aux_files
2968 do
2969 # As a special case, if "install-sh" is required, that requirement
2970 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2971 # and $ac_install_sh is set appropriately for whichever one is found.
2972 if test x"$ac_aux" = x"install-sh"
2973 then
2974 if test -f "${as_dir}install-sh"; then
2975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2976 ac_install_sh="${as_dir}install-sh -c"
2977 elif test -f "${as_dir}install.sh"; then
2978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2979 ac_install_sh="${as_dir}install.sh -c"
2980 elif test -f "${as_dir}shtool"; then
2981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2982 ac_install_sh="${as_dir}shtool install -c"
2983 else
2984 ac_aux_dir_found=no
2985 if $ac_first_candidate; then
2986 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2987 else
2988 break
2989 fi
2990 fi
2991 else
2992 if test -f "${as_dir}${ac_aux}"; then
2993 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2994 else
2995 ac_aux_dir_found=no
2996 if $ac_first_candidate; then
2997 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2998 else
2999 break
3000 fi
3001 fi
3002 fi
3003 done
3004 if test "$ac_aux_dir_found" = yes; then
3005 ac_aux_dir="$as_dir"
3006 break
3007 fi
3008 ac_first_candidate=false
3009
3010 as_found=false
3011 done
3012 IFS=$as_save_IFS
3013 if $as_found
3014 then :
3015
3016 else case e in #(
3017 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3018 esac
3019 fi
3020
3021
3022 # These three variables are undocumented and unsupported,
3023 # and are intended to be withdrawn in a future Autoconf release.
3024 # They can cause serious problems if a builder's source tree is in a directory
3025 # whose full name contains unusual characters.
3026 if test -f "${ac_aux_dir}config.guess"; then
3027 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3028 fi
3029 if test -f "${ac_aux_dir}config.sub"; then
3030 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3031 fi
3032 if test -f "$ac_aux_dir/configure"; then
3033 ac_configure="$SHELL ${ac_aux_dir}configure"
3034 fi
3035
3036 # Check that the precious variables saved in the cache have kept the same
3037 # value.
3038 ac_cache_corrupted=false
3039 for ac_var in $ac_precious_vars; do
3040 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3041 eval ac_new_set=\$ac_env_${ac_var}_set
3042 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3043 eval ac_new_val=\$ac_env_${ac_var}_value
3044 case $ac_old_set,$ac_new_set in
3045 set,)
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3047 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3048 ac_cache_corrupted=: ;;
3049 ,set)
3050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3051 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3052 ac_cache_corrupted=: ;;
3053 ,);;
3054 *)
3055 if test "x$ac_old_val" != "x$ac_new_val"; then
3056 # differences in whitespace do not lead to failure.
3057 ac_old_val_w=`echo x $ac_old_val`
3058 ac_new_val_w=`echo x $ac_new_val`
3059 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3061 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3062 ac_cache_corrupted=:
3063 else
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3065 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3066 eval $ac_var=\$ac_old_val
3067 fi
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3069 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3071 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3072 fi;;
3073 esac
3074 # Pass precious variables to config.status.
3075 if test "$ac_new_set" = set; then
3076 case $ac_new_val in
3077 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3078 *) ac_arg=$ac_var=$ac_new_val ;;
3079 esac
3080 case " $ac_configure_args " in
3081 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3082 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3083 esac
3084 fi
3085 done
3086 if $ac_cache_corrupted; then
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3088 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3090 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3091 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3092 and start over" "$LINENO" 5
3093 fi
3094 ## -------------------- ##
3095 ## Main body of script. ##
3096 ## -------------------- ##
3097
3098 ac_ext=c
3099 ac_cpp='$CPP $CPPFLAGS'
3100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3103
3104
3105
3106
3107 ac_config_headers="$ac_config_headers config.h:config.h.in"
3108
3109
3110 VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3111 DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3112
3113 echo ""
3114 echo "configuring for rxvt $VERSION"
3115 echo ""
3116
3117 orig_CXXFLAGS="$CXXFLAGS"
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 if test -n "$ac_tool_prefix"; then
3134 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3135 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3137 printf %s "checking for $ac_word... " >&6; }
3138 if test ${ac_cv_prog_CC+y}
3139 then :
3140 printf %s "(cached) " >&6
3141 else case e in #(
3142 e) if test -n "$CC"; then
3143 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 else
3145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146 for as_dir in $PATH
3147 do
3148 IFS=$as_save_IFS
3149 case $as_dir in #(((
3150 '') as_dir=./ ;;
3151 */) ;;
3152 *) as_dir=$as_dir/ ;;
3153 esac
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160 done
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi ;;
3165 esac
3166 fi
3167 CC=$ac_cv_prog_CC
3168 if test -n "$CC"; then
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170 printf "%s\n" "$CC" >&6; }
3171 else
3172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 printf "%s\n" "no" >&6; }
3174 fi
3175
3176
3177 fi
3178 if test -z "$ac_cv_prog_CC"; then
3179 ac_ct_CC=$CC
3180 # Extract the first word of "gcc", so it can be a program name with args.
3181 set dummy gcc; ac_word=$2
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 printf %s "checking for $ac_word... " >&6; }
3184 if test ${ac_cv_prog_ac_ct_CC+y}
3185 then :
3186 printf %s "(cached) " >&6
3187 else case e in #(
3188 e) if test -n "$ac_ct_CC"; then
3189 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194 IFS=$as_save_IFS
3195 case $as_dir in #(((
3196 '') as_dir=./ ;;
3197 */) ;;
3198 *) as_dir=$as_dir/ ;;
3199 esac
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_ac_ct_CC="gcc"
3203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206 done
3207 done
3208 IFS=$as_save_IFS
3209
3210 fi ;;
3211 esac
3212 fi
3213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214 if test -n "$ac_ct_CC"; then
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216 printf "%s\n" "$ac_ct_CC" >&6; }
3217 else
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 printf "%s\n" "no" >&6; }
3220 fi
3221
3222 if test "x$ac_ct_CC" = x; then
3223 CC=""
3224 else
3225 case $cross_compiling:$ac_tool_warned in
3226 yes:)
3227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3228 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3229 ac_tool_warned=yes ;;
3230 esac
3231 CC=$ac_ct_CC
3232 fi
3233 else
3234 CC="$ac_cv_prog_CC"
3235 fi
3236
3237 if test -z "$CC"; then
3238 if test -n "$ac_tool_prefix"; then
3239 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3240 set dummy ${ac_tool_prefix}cc; ac_word=$2
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3242 printf %s "checking for $ac_word... " >&6; }
3243 if test ${ac_cv_prog_CC+y}
3244 then :
3245 printf %s "(cached) " >&6
3246 else case e in #(
3247 e) if test -n "$CC"; then
3248 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 else
3250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251 for as_dir in $PATH
3252 do
3253 IFS=$as_save_IFS
3254 case $as_dir in #(((
3255 '') as_dir=./ ;;
3256 */) ;;
3257 *) as_dir=$as_dir/ ;;
3258 esac
3259 for ac_exec_ext in '' $ac_executable_extensions; do
3260 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3261 ac_cv_prog_CC="${ac_tool_prefix}cc"
3262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3263 break 2
3264 fi
3265 done
3266 done
3267 IFS=$as_save_IFS
3268
3269 fi ;;
3270 esac
3271 fi
3272 CC=$ac_cv_prog_CC
3273 if test -n "$CC"; then
3274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275 printf "%s\n" "$CC" >&6; }
3276 else
3277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 printf "%s\n" "no" >&6; }
3279 fi
3280
3281
3282 fi
3283 fi
3284 if test -z "$CC"; then
3285 # Extract the first word of "cc", so it can be a program name with args.
3286 set dummy cc; ac_word=$2
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 printf %s "checking for $ac_word... " >&6; }
3289 if test ${ac_cv_prog_CC+y}
3290 then :
3291 printf %s "(cached) " >&6
3292 else case e in #(
3293 e) if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 ac_prog_rejected=no
3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 for as_dir in $PATH
3299 do
3300 IFS=$as_save_IFS
3301 case $as_dir in #(((
3302 '') as_dir=./ ;;
3303 */) ;;
3304 *) as_dir=$as_dir/ ;;
3305 esac
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3308 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3309 ac_prog_rejected=yes
3310 continue
3311 fi
3312 ac_cv_prog_CC="cc"
3313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 if test $ac_prog_rejected = yes; then
3321 # We found a bogon in the path, so make sure we never use it.
3322 set dummy $ac_cv_prog_CC
3323 shift
3324 if test $# != 0; then
3325 # We chose a different compiler from the bogus one.
3326 # However, it has the same basename, so the bogon will be chosen
3327 # first if we set CC to just the basename; use the full file name.
3328 shift
3329 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3330 fi
3331 fi
3332 fi ;;
3333 esac
3334 fi
3335 CC=$ac_cv_prog_CC
3336 if test -n "$CC"; then
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338 printf "%s\n" "$CC" >&6; }
3339 else
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 printf "%s\n" "no" >&6; }
3342 fi
3343
3344
3345 fi
3346 if test -z "$CC"; then
3347 if test -n "$ac_tool_prefix"; then
3348 for ac_prog in cl.exe
3349 do
3350 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3351 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 printf %s "checking for $ac_word... " >&6; }
3354 if test ${ac_cv_prog_CC+y}
3355 then :
3356 printf %s "(cached) " >&6
3357 else case e in #(
3358 e) if test -n "$CC"; then
3359 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 case $as_dir in #(((
3366 '') as_dir=./ ;;
3367 */) ;;
3368 *) as_dir=$as_dir/ ;;
3369 esac
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376 done
3377 done
3378 IFS=$as_save_IFS
3379
3380 fi ;;
3381 esac
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386 printf "%s\n" "$CC" >&6; }
3387 else
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 printf "%s\n" "no" >&6; }
3390 fi
3391
3392
3393 test -n "$CC" && break
3394 done
3395 fi
3396 if test -z "$CC"; then
3397 ac_ct_CC=$CC
3398 for ac_prog in cl.exe
3399 do
3400 # Extract the first word of "$ac_prog", so it can be a program name with args.
3401 set dummy $ac_prog; ac_word=$2
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 printf %s "checking for $ac_word... " >&6; }
3404 if test ${ac_cv_prog_ac_ct_CC+y}
3405 then :
3406 printf %s "(cached) " >&6
3407 else case e in #(
3408 e) if test -n "$ac_ct_CC"; then
3409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3410 else
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412 for as_dir in $PATH
3413 do
3414 IFS=$as_save_IFS
3415 case $as_dir in #(((
3416 '') as_dir=./ ;;
3417 */) ;;
3418 *) as_dir=$as_dir/ ;;
3419 esac
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_ac_ct_CC="$ac_prog"
3423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426 done
3427 done
3428 IFS=$as_save_IFS
3429
3430 fi ;;
3431 esac
3432 fi
3433 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434 if test -n "$ac_ct_CC"; then
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436 printf "%s\n" "$ac_ct_CC" >&6; }
3437 else
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 printf "%s\n" "no" >&6; }
3440 fi
3441
3442
3443 test -n "$ac_ct_CC" && break
3444 done
3445
3446 if test "x$ac_ct_CC" = x; then
3447 CC=""
3448 else
3449 case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455 CC=$ac_ct_CC
3456 fi
3457 fi
3458
3459 fi
3460 if test -z "$CC"; then
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}clang; ac_word=$2
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 printf %s "checking for $ac_word... " >&6; }
3466 if test ${ac_cv_prog_CC+y}
3467 then :
3468 printf %s "(cached) " >&6
3469 else case e in #(
3470 e) if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476 IFS=$as_save_IFS
3477 case $as_dir in #(((
3478 '') as_dir=./ ;;
3479 */) ;;
3480 *) as_dir=$as_dir/ ;;
3481 esac
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3484 ac_cv_prog_CC="${ac_tool_prefix}clang"
3485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488 done
3489 done
3490 IFS=$as_save_IFS
3491
3492 fi ;;
3493 esac
3494 fi
3495 CC=$ac_cv_prog_CC
3496 if test -n "$CC"; then
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3498 printf "%s\n" "$CC" >&6; }
3499 else
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3501 printf "%s\n" "no" >&6; }
3502 fi
3503
3504
3505 fi
3506 if test -z "$ac_cv_prog_CC"; then
3507 ac_ct_CC=$CC
3508 # Extract the first word of "clang", so it can be a program name with args.
3509 set dummy clang; ac_word=$2
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 printf %s "checking for $ac_word... " >&6; }
3512 if test ${ac_cv_prog_ac_ct_CC+y}
3513 then :
3514 printf %s "(cached) " >&6
3515 else case e in #(
3516 e) if test -n "$ac_ct_CC"; then
3517 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3518 else
3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 for as_dir in $PATH
3521 do
3522 IFS=$as_save_IFS
3523 case $as_dir in #(((
3524 '') as_dir=./ ;;
3525 */) ;;
3526 *) as_dir=$as_dir/ ;;
3527 esac
3528 for ac_exec_ext in '' $ac_executable_extensions; do
3529 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3530 ac_cv_prog_ac_ct_CC="clang"
3531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3532 break 2
3533 fi
3534 done
3535 done
3536 IFS=$as_save_IFS
3537
3538 fi ;;
3539 esac
3540 fi
3541 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3544 printf "%s\n" "$ac_ct_CC" >&6; }
3545 else
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3547 printf "%s\n" "no" >&6; }
3548 fi
3549
3550 if test "x$ac_ct_CC" = x; then
3551 CC=""
3552 else
3553 case $cross_compiling:$ac_tool_warned in
3554 yes:)
3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3556 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3557 ac_tool_warned=yes ;;
3558 esac
3559 CC=$ac_ct_CC
3560 fi
3561 else
3562 CC="$ac_cv_prog_CC"
3563 fi
3564
3565 fi
3566
3567
3568 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3569 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3570 as_fn_error $? "no acceptable C compiler found in \$PATH
3571 See 'config.log' for more details" "$LINENO" 5; }
3572
3573 # Provide some information about the compiler.
3574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3575 set X $ac_compile
3576 ac_compiler=$2
3577 for ac_option in --version -v -V -qversion -version; do
3578 { { ac_try="$ac_compiler $ac_option >&5"
3579 case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582 esac
3583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3584 printf "%s\n" "$ac_try_echo"; } >&5
3585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3586 ac_status=$?
3587 if test -s conftest.err; then
3588 sed '10a\
3589 ... rest of stderr output deleted ...
3590 10q' conftest.err >conftest.er1
3591 cat conftest.er1 >&5
3592 fi
3593 rm -f conftest.er1 conftest.err
3594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 test $ac_status = 0; }
3596 done
3597
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600
3601 int
3602 main (void)
3603 {
3604
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 ac_clean_files_save=$ac_clean_files
3610 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3611 # Try to create an executable without -o first, disregard a.out.
3612 # It will help us diagnose broken compilers, and finding out an intuition
3613 # of exeext.
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3615 printf %s "checking whether the C compiler works... " >&6; }
3616 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3617
3618 # The possible output files:
3619 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3620
3621 ac_rmfiles=
3622 for ac_file in $ac_files
3623 do
3624 case $ac_file in
3625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3626 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3627 esac
3628 done
3629 rm -f $ac_rmfiles
3630
3631 if { { ac_try="$ac_link_default"
3632 case "(($ac_try" in
3633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634 *) ac_try_echo=$ac_try;;
3635 esac
3636 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 printf "%s\n" "$ac_try_echo"; } >&5
3638 (eval "$ac_link_default") 2>&5
3639 ac_status=$?
3640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641 test $ac_status = 0; }
3642 then :
3643 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3644 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3645 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3646 # so that the user can short-circuit this test for compilers unknown to
3647 # Autoconf.
3648 for ac_file in $ac_files ''
3649 do
3650 test -f "$ac_file" || continue
3651 case $ac_file in
3652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3653 ;;
3654 [ab].out )
3655 # We found the default executable, but exeext='' is most
3656 # certainly right.
3657 break;;
3658 *.* )
3659 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3660 then :; else
3661 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3662 fi
3663 # We set ac_cv_exeext here because the later test for it is not
3664 # safe: cross compilers may not add the suffix if given an '-o'
3665 # argument, so we may need to know it at that point already.
3666 # Even if this section looks crufty: it has the advantage of
3667 # actually working.
3668 break;;
3669 * )
3670 break;;
3671 esac
3672 done
3673 test "$ac_cv_exeext" = no && ac_cv_exeext=
3674
3675 else case e in #(
3676 e) ac_file='' ;;
3677 esac
3678 fi
3679 if test -z "$ac_file"
3680 then :
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 printf "%s\n" "no" >&6; }
3683 printf "%s\n" "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3687 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3688 as_fn_error 77 "C compiler cannot create executables
3689 See 'config.log' for more details" "$LINENO" 5; }
3690 else case e in #(
3691 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3692 printf "%s\n" "yes" >&6; } ;;
3693 esac
3694 fi
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3696 printf %s "checking for C compiler default output file name... " >&6; }
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3698 printf "%s\n" "$ac_file" >&6; }
3699 ac_exeext=$ac_cv_exeext
3700
3701 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3702 ac_clean_files=$ac_clean_files_save
3703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3704 printf %s "checking for suffix of executables... " >&6; }
3705 if { { ac_try="$ac_link"
3706 case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 printf "%s\n" "$ac_try_echo"; } >&5
3712 (eval "$ac_link") 2>&5
3713 ac_status=$?
3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3716 then :
3717 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3718 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3719 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3720 # 'rm'.
3721 for ac_file in conftest.exe conftest conftest.*; do
3722 test -f "$ac_file" || continue
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3725 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3726 break;;
3727 * ) break;;
3728 esac
3729 done
3730 else case e in #(
3731 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3732 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3733 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3734 See 'config.log' for more details" "$LINENO" 5; } ;;
3735 esac
3736 fi
3737 rm -f conftest conftest$ac_cv_exeext
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3739 printf "%s\n" "$ac_cv_exeext" >&6; }
3740
3741 rm -f conftest.$ac_ext
3742 EXEEXT=$ac_cv_exeext
3743 ac_exeext=$EXEEXT
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <stdio.h>
3747 int
3748 main (void)
3749 {
3750 FILE *f = fopen ("conftest.out", "w");
3751 if (!f)
3752 return 1;
3753 return ferror (f) || fclose (f) != 0;
3754
3755 ;
3756 return 0;
3757 }
3758 _ACEOF
3759 ac_clean_files="$ac_clean_files conftest.out"
3760 # Check that the compiler produces executables we can run. If not, either
3761 # the compiler is broken, or we cross compile.
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3763 printf %s "checking whether we are cross compiling... " >&6; }
3764 if test "$cross_compiling" != yes; then
3765 { { ac_try="$ac_link"
3766 case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 printf "%s\n" "$ac_try_echo"; } >&5
3772 (eval "$ac_link") 2>&5
3773 ac_status=$?
3774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }
3776 if { ac_try='./conftest$ac_cv_exeext'
3777 { { case "(($ac_try" in
3778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3779 *) ac_try_echo=$ac_try;;
3780 esac
3781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3782 printf "%s\n" "$ac_try_echo"; } >&5
3783 (eval "$ac_try") 2>&5
3784 ac_status=$?
3785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 test $ac_status = 0; }; }; then
3787 cross_compiling=no
3788 else
3789 if test "$cross_compiling" = maybe; then
3790 cross_compiling=yes
3791 else
3792 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3793 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3794 as_fn_error 77 "cannot run C compiled programs.
3795 If you meant to cross compile, use '--host'.
3796 See 'config.log' for more details" "$LINENO" 5; }
3797 fi
3798 fi
3799 fi
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3801 printf "%s\n" "$cross_compiling" >&6; }
3802
3803 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3804 conftest.o conftest.obj conftest.out
3805 ac_clean_files=$ac_clean_files_save
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3807 printf %s "checking for suffix of object files... " >&6; }
3808 if test ${ac_cv_objext+y}
3809 then :
3810 printf %s "(cached) " >&6
3811 else case e in #(
3812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 /* end confdefs.h. */
3814
3815 int
3816 main (void)
3817 {
3818
3819 ;
3820 return 0;
3821 }
3822 _ACEOF
3823 rm -f conftest.o conftest.obj
3824 if { { ac_try="$ac_compile"
3825 case "(($ac_try" in
3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827 *) ac_try_echo=$ac_try;;
3828 esac
3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 printf "%s\n" "$ac_try_echo"; } >&5
3831 (eval "$ac_compile") 2>&5
3832 ac_status=$?
3833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834 test $ac_status = 0; }
3835 then :
3836 for ac_file in conftest.o conftest.obj conftest.*; do
3837 test -f "$ac_file" || continue;
3838 case $ac_file in
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3840 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3841 break;;
3842 esac
3843 done
3844 else case e in #(
3845 e) printf "%s\n" "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3849 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3850 as_fn_error $? "cannot compute suffix of object files: cannot compile
3851 See 'config.log' for more details" "$LINENO" 5; } ;;
3852 esac
3853 fi
3854 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3855 esac
3856 fi
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3858 printf "%s\n" "$ac_cv_objext" >&6; }
3859 OBJEXT=$ac_cv_objext
3860 ac_objext=$OBJEXT
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3862 printf %s "checking whether the compiler supports GNU C... " >&6; }
3863 if test ${ac_cv_c_compiler_gnu+y}
3864 then :
3865 printf %s "(cached) " >&6
3866 else case e in #(
3867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869
3870 int
3871 main (void)
3872 {
3873 #ifndef __GNUC__
3874 choke me
3875 #endif
3876
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 if ac_fn_c_try_compile "$LINENO"
3882 then :
3883 ac_compiler_gnu=yes
3884 else case e in #(
3885 e) ac_compiler_gnu=no ;;
3886 esac
3887 fi
3888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3889 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3890 ;;
3891 esac
3892 fi
3893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3894 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896
3897 if test $ac_compiler_gnu = yes; then
3898 GCC=yes
3899 else
3900 GCC=
3901 fi
3902 ac_test_CFLAGS=${CFLAGS+y}
3903 ac_save_CFLAGS=$CFLAGS
3904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3905 printf %s "checking whether $CC accepts -g... " >&6; }
3906 if test ${ac_cv_prog_cc_g+y}
3907 then :
3908 printf %s "(cached) " >&6
3909 else case e in #(
3910 e) ac_save_c_werror_flag=$ac_c_werror_flag
3911 ac_c_werror_flag=yes
3912 ac_cv_prog_cc_g=no
3913 CFLAGS="-g"
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3916
3917 int
3918 main (void)
3919 {
3920
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 if ac_fn_c_try_compile "$LINENO"
3926 then :
3927 ac_cv_prog_cc_g=yes
3928 else case e in #(
3929 e) CFLAGS=""
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932
3933 int
3934 main (void)
3935 {
3936
3937 ;
3938 return 0;
3939 }
3940 _ACEOF
3941 if ac_fn_c_try_compile "$LINENO"
3942 then :
3943
3944 else case e in #(
3945 e) ac_c_werror_flag=$ac_save_c_werror_flag
3946 CFLAGS="-g"
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949
3950 int
3951 main (void)
3952 {
3953
3954 ;
3955 return 0;
3956 }
3957 _ACEOF
3958 if ac_fn_c_try_compile "$LINENO"
3959 then :
3960 ac_cv_prog_cc_g=yes
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3963 esac
3964 fi
3965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3966 esac
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3969 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3970 esac
3971 fi
3972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3973 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3974 if test $ac_test_CFLAGS; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3978 CFLAGS="-g -O2"
3979 else
3980 CFLAGS="-g"
3981 fi
3982 else
3983 if test "$GCC" = yes; then
3984 CFLAGS="-O2"
3985 else
3986 CFLAGS=
3987 fi
3988 fi
3989 ac_prog_cc_stdc=no
3990 if test x$ac_prog_cc_stdc = xno
3991 then :
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3993 printf %s "checking for $CC option to enable C11 features... " >&6; }
3994 if test ${ac_cv_prog_cc_c11+y}
3995 then :
3996 printf %s "(cached) " >&6
3997 else case e in #(
3998 e) ac_cv_prog_cc_c11=no
3999 ac_save_CC=$CC
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 $ac_c_conftest_c11_program
4003 _ACEOF
4004 for ac_arg in '' -std=gnu11
4005 do
4006 CC="$ac_save_CC $ac_arg"
4007 if ac_fn_c_try_compile "$LINENO"
4008 then :
4009 ac_cv_prog_cc_c11=$ac_arg
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext conftest.beam
4012 test "x$ac_cv_prog_cc_c11" != "xno" && break
4013 done
4014 rm -f conftest.$ac_ext
4015 CC=$ac_save_CC ;;
4016 esac
4017 fi
4018
4019 if test "x$ac_cv_prog_cc_c11" = xno
4020 then :
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4022 printf "%s\n" "unsupported" >&6; }
4023 else case e in #(
4024 e) if test "x$ac_cv_prog_cc_c11" = x
4025 then :
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027 printf "%s\n" "none needed" >&6; }
4028 else case e in #(
4029 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4030 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4031 CC="$CC $ac_cv_prog_cc_c11" ;;
4032 esac
4033 fi
4034 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4035 ac_prog_cc_stdc=c11 ;;
4036 esac
4037 fi
4038 fi
4039 if test x$ac_prog_cc_stdc = xno
4040 then :
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4042 printf %s "checking for $CC option to enable C99 features... " >&6; }
4043 if test ${ac_cv_prog_cc_c99+y}
4044 then :
4045 printf %s "(cached) " >&6
4046 else case e in #(
4047 e) ac_cv_prog_cc_c99=no
4048 ac_save_CC=$CC
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051 $ac_c_conftest_c99_program
4052 _ACEOF
4053 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4054 do
4055 CC="$ac_save_CC $ac_arg"
4056 if ac_fn_c_try_compile "$LINENO"
4057 then :
4058 ac_cv_prog_cc_c99=$ac_arg
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.beam
4061 test "x$ac_cv_prog_cc_c99" != "xno" && break
4062 done
4063 rm -f conftest.$ac_ext
4064 CC=$ac_save_CC ;;
4065 esac
4066 fi
4067
4068 if test "x$ac_cv_prog_cc_c99" = xno
4069 then :
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4071 printf "%s\n" "unsupported" >&6; }
4072 else case e in #(
4073 e) if test "x$ac_cv_prog_cc_c99" = x
4074 then :
4075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4076 printf "%s\n" "none needed" >&6; }
4077 else case e in #(
4078 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4079 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4080 CC="$CC $ac_cv_prog_cc_c99" ;;
4081 esac
4082 fi
4083 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4084 ac_prog_cc_stdc=c99 ;;
4085 esac
4086 fi
4087 fi
4088 if test x$ac_prog_cc_stdc = xno
4089 then :
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4091 printf %s "checking for $CC option to enable C89 features... " >&6; }
4092 if test ${ac_cv_prog_cc_c89+y}
4093 then :
4094 printf %s "(cached) " >&6
4095 else case e in #(
4096 e) ac_cv_prog_cc_c89=no
4097 ac_save_CC=$CC
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100 $ac_c_conftest_c89_program
4101 _ACEOF
4102 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 do
4104 CC="$ac_save_CC $ac_arg"
4105 if ac_fn_c_try_compile "$LINENO"
4106 then :
4107 ac_cv_prog_cc_c89=$ac_arg
4108 fi
4109 rm -f core conftest.err conftest.$ac_objext conftest.beam
4110 test "x$ac_cv_prog_cc_c89" != "xno" && break
4111 done
4112 rm -f conftest.$ac_ext
4113 CC=$ac_save_CC ;;
4114 esac
4115 fi
4116
4117 if test "x$ac_cv_prog_cc_c89" = xno
4118 then :
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4120 printf "%s\n" "unsupported" >&6; }
4121 else case e in #(
4122 e) if test "x$ac_cv_prog_cc_c89" = x
4123 then :
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4125 printf "%s\n" "none needed" >&6; }
4126 else case e in #(
4127 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4128 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4129 CC="$CC $ac_cv_prog_cc_c89" ;;
4130 esac
4131 fi
4132 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4133 ac_prog_cc_stdc=c89 ;;
4134 esac
4135 fi
4136 fi
4137
4138 ac_ext=c
4139 ac_cpp='$CPP $CPPFLAGS'
4140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4143
4144
4145
4146
4147
4148
4149
4150 ac_ext=cpp
4151 ac_cpp='$CXXCPP $CPPFLAGS'
4152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4155 if test -z "$CXX"; then
4156 if test -n "$CCC"; then
4157 CXX=$CCC
4158 else
4159 if test -n "$ac_tool_prefix"; then
4160 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4161 do
4162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 printf %s "checking for $ac_word... " >&6; }
4166 if test ${ac_cv_prog_CXX+y}
4167 then :
4168 printf %s "(cached) " >&6
4169 else case e in #(
4170 e) if test -n "$CXX"; then
4171 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4172 else
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176 IFS=$as_save_IFS
4177 case $as_dir in #(((
4178 '') as_dir=./ ;;
4179 */) ;;
4180 *) as_dir=$as_dir/ ;;
4181 esac
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4185 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4186 break 2
4187 fi
4188 done
4189 done
4190 IFS=$as_save_IFS
4191
4192 fi ;;
4193 esac
4194 fi
4195 CXX=$ac_cv_prog_CXX
4196 if test -n "$CXX"; then
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4198 printf "%s\n" "$CXX" >&6; }
4199 else
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 printf "%s\n" "no" >&6; }
4202 fi
4203
4204
4205 test -n "$CXX" && break
4206 done
4207 fi
4208 if test -z "$CXX"; then
4209 ac_ct_CXX=$CXX
4210 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4211 do
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213 set dummy $ac_prog; ac_word=$2
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 printf %s "checking for $ac_word... " >&6; }
4216 if test ${ac_cv_prog_ac_ct_CXX+y}
4217 then :
4218 printf %s "(cached) " >&6
4219 else case e in #(
4220 e) if test -n "$ac_ct_CXX"; then
4221 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226 IFS=$as_save_IFS
4227 case $as_dir in #(((
4228 '') as_dir=./ ;;
4229 */) ;;
4230 *) as_dir=$as_dir/ ;;
4231 esac
4232 for ac_exec_ext in '' $ac_executable_extensions; do
4233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4234 ac_cv_prog_ac_ct_CXX="$ac_prog"
4235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4236 break 2
4237 fi
4238 done
4239 done
4240 IFS=$as_save_IFS
4241
4242 fi ;;
4243 esac
4244 fi
4245 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4246 if test -n "$ac_ct_CXX"; then
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4248 printf "%s\n" "$ac_ct_CXX" >&6; }
4249 else
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 printf "%s\n" "no" >&6; }
4252 fi
4253
4254
4255 test -n "$ac_ct_CXX" && break
4256 done
4257
4258 if test "x$ac_ct_CXX" = x; then
4259 CXX="g++"
4260 else
4261 case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4266 esac
4267 CXX=$ac_ct_CXX
4268 fi
4269 fi
4270
4271 fi
4272 fi
4273 # Provide some information about the compiler.
4274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4275 set X $ac_compile
4276 ac_compiler=$2
4277 for ac_option in --version -v -V -qversion; do
4278 { { ac_try="$ac_compiler $ac_option >&5"
4279 case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 printf "%s\n" "$ac_try_echo"; } >&5
4285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4286 ac_status=$?
4287 if test -s conftest.err; then
4288 sed '10a\
4289 ... rest of stderr output deleted ...
4290 10q' conftest.err >conftest.er1
4291 cat conftest.er1 >&5
4292 fi
4293 rm -f conftest.er1 conftest.err
4294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; }
4296 done
4297
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4299 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4300 if test ${ac_cv_cxx_compiler_gnu+y}
4301 then :
4302 printf %s "(cached) " >&6
4303 else case e in #(
4304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306
4307 int
4308 main (void)
4309 {
4310 #ifndef __GNUC__
4311 choke me
4312 #endif
4313
4314 ;
4315 return 0;
4316 }
4317 _ACEOF
4318 if ac_fn_cxx_try_compile "$LINENO"
4319 then :
4320 ac_compiler_gnu=yes
4321 else case e in #(
4322 e) ac_compiler_gnu=no ;;
4323 esac
4324 fi
4325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4326 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4327 ;;
4328 esac
4329 fi
4330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4331 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4333
4334 if test $ac_compiler_gnu = yes; then
4335 GXX=yes
4336 else
4337 GXX=
4338 fi
4339 ac_test_CXXFLAGS=${CXXFLAGS+y}
4340 ac_save_CXXFLAGS=$CXXFLAGS
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4342 printf %s "checking whether $CXX accepts -g... " >&6; }
4343 if test ${ac_cv_prog_cxx_g+y}
4344 then :
4345 printf %s "(cached) " >&6
4346 else case e in #(
4347 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4348 ac_cxx_werror_flag=yes
4349 ac_cv_prog_cxx_g=no
4350 CXXFLAGS="-g"
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353
4354 int
4355 main (void)
4356 {
4357
4358 ;
4359 return 0;
4360 }
4361 _ACEOF
4362 if ac_fn_cxx_try_compile "$LINENO"
4363 then :
4364 ac_cv_prog_cxx_g=yes
4365 else case e in #(
4366 e) CXXFLAGS=""
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4369
4370 int
4371 main (void)
4372 {
4373
4374 ;
4375 return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_cxx_try_compile "$LINENO"
4379 then :
4380
4381 else case e in #(
4382 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4383 CXXFLAGS="-g"
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386
4387 int
4388 main (void)
4389 {
4390
4391 ;
4392 return 0;
4393 }
4394 _ACEOF
4395 if ac_fn_cxx_try_compile "$LINENO"
4396 then :
4397 ac_cv_prog_cxx_g=yes
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4400 esac
4401 fi
4402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4403 esac
4404 fi
4405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4406 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4407 esac
4408 fi
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4410 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4411 if test $ac_test_CXXFLAGS; then
4412 CXXFLAGS=$ac_save_CXXFLAGS
4413 elif test $ac_cv_prog_cxx_g = yes; then
4414 if test "$GXX" = yes; then
4415 CXXFLAGS="-g -O2"
4416 else
4417 CXXFLAGS="-g"
4418 fi
4419 else
4420 if test "$GXX" = yes; then
4421 CXXFLAGS="-O2"
4422 else
4423 CXXFLAGS=
4424 fi
4425 fi
4426 ac_prog_cxx_stdcxx=no
4427 if test x$ac_prog_cxx_stdcxx = xno
4428 then :
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4430 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4431 if test ${ac_cv_prog_cxx_cxx11+y}
4432 then :
4433 printf %s "(cached) " >&6
4434 else case e in #(
4435 e) ac_cv_prog_cxx_cxx11=no
4436 ac_save_CXX=$CXX
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4439 $ac_cxx_conftest_cxx11_program
4440 _ACEOF
4441 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4442 do
4443 CXX="$ac_save_CXX $ac_arg"
4444 if ac_fn_cxx_try_compile "$LINENO"
4445 then :
4446 ac_cv_prog_cxx_cxx11=$ac_arg
4447 fi
4448 rm -f core conftest.err conftest.$ac_objext conftest.beam
4449 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4450 done
4451 rm -f conftest.$ac_ext
4452 CXX=$ac_save_CXX ;;
4453 esac
4454 fi
4455
4456 if test "x$ac_cv_prog_cxx_cxx11" = xno
4457 then :
4458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4459 printf "%s\n" "unsupported" >&6; }
4460 else case e in #(
4461 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4462 then :
4463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4464 printf "%s\n" "none needed" >&6; }
4465 else case e in #(
4466 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4467 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4468 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4469 esac
4470 fi
4471 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4472 ac_prog_cxx_stdcxx=cxx11 ;;
4473 esac
4474 fi
4475 fi
4476 if test x$ac_prog_cxx_stdcxx = xno
4477 then :
4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4479 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4480 if test ${ac_cv_prog_cxx_cxx98+y}
4481 then :
4482 printf %s "(cached) " >&6
4483 else case e in #(
4484 e) ac_cv_prog_cxx_cxx98=no
4485 ac_save_CXX=$CXX
4486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487 /* end confdefs.h. */
4488 $ac_cxx_conftest_cxx98_program
4489 _ACEOF
4490 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4491 do
4492 CXX="$ac_save_CXX $ac_arg"
4493 if ac_fn_cxx_try_compile "$LINENO"
4494 then :
4495 ac_cv_prog_cxx_cxx98=$ac_arg
4496 fi
4497 rm -f core conftest.err conftest.$ac_objext conftest.beam
4498 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4499 done
4500 rm -f conftest.$ac_ext
4501 CXX=$ac_save_CXX ;;
4502 esac
4503 fi
4504
4505 if test "x$ac_cv_prog_cxx_cxx98" = xno
4506 then :
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4508 printf "%s\n" "unsupported" >&6; }
4509 else case e in #(
4510 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4511 then :
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4513 printf "%s\n" "none needed" >&6; }
4514 else case e in #(
4515 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4516 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4517 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4518 esac
4519 fi
4520 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4521 ac_prog_cxx_stdcxx=cxx98 ;;
4522 esac
4523 fi
4524 fi
4525
4526 ac_ext=c
4527 ac_cpp='$CPP $CPPFLAGS'
4528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4531
4532
4533
4534 # Find a good install program. We prefer a C program (faster),
4535 # so one script is as good as another. But avoid the broken or
4536 # incompatible versions:
4537 # SysV /etc/install, /usr/sbin/install
4538 # SunOS /usr/etc/install
4539 # IRIX /sbin/install
4540 # AIX /bin/install
4541 # AmigaOS /C/install, which installs bootblocks on floppy discs
4542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4545 # OS/2's system install, which has a completely different semantic
4546 # ./install, which can be erroneously created by make from ./install.sh.
4547 # Reject install programs that cannot install multiple files.
4548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4549 printf %s "checking for a BSD-compatible install... " >&6; }
4550 if test -z "$INSTALL"; then
4551 if test ${ac_cv_path_install+y}
4552 then :
4553 printf %s "(cached) " >&6
4554 else case e in #(
4555 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558 IFS=$as_save_IFS
4559 case $as_dir in #(((
4560 '') as_dir=./ ;;
4561 */) ;;
4562 *) as_dir=$as_dir/ ;;
4563 esac
4564 # Account for fact that we put trailing slashes in our PATH walk.
4565 case $as_dir in #((
4566 ./ | /[cC]/* | \
4567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4568 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4569 /usr/ucb/* ) ;;
4570 *)
4571 # OSF1 and SCO ODT 3.0 have their own names for install.
4572 # Don't use installbsd from OSF since it installs stuff as root
4573 # by default.
4574 for ac_prog in ginstall scoinst install; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4577 if test $ac_prog = install &&
4578 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4579 # AIX install. It has an incompatible calling convention.
4580 :
4581 elif test $ac_prog = install &&
4582 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4583 # program-specific install script used by HP pwplus--don't use.
4584 :
4585 else
4586 rm -rf conftest.one conftest.two conftest.dir
4587 echo one > conftest.one
4588 echo two > conftest.two
4589 mkdir conftest.dir
4590 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4591 test -s conftest.one && test -s conftest.two &&
4592 test -s conftest.dir/conftest.one &&
4593 test -s conftest.dir/conftest.two
4594 then
4595 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4596 break 3
4597 fi
4598 fi
4599 fi
4600 done
4601 done
4602 ;;
4603 esac
4604
4605 done
4606 IFS=$as_save_IFS
4607
4608 rm -rf conftest.one conftest.two conftest.dir
4609 ;;
4610 esac
4611 fi
4612 if test ${ac_cv_path_install+y}; then
4613 INSTALL=$ac_cv_path_install
4614 else
4615 # As a last resort, use the slow shell script. Don't cache a
4616 # value for INSTALL within a source directory, because that will
4617 # break other packages using the cache if that directory is
4618 # removed, or if the value is a relative name.
4619 INSTALL=$ac_install_sh
4620 fi
4621 fi
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4623 printf "%s\n" "$INSTALL" >&6; }
4624
4625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4626 # It thinks the first close brace ends the variable substitution.
4627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4628
4629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4630
4631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4632
4633
4634
4635 ac_header= ac_cache=
4636 for ac_item in $ac_header_c_list
4637 do
4638 if test $ac_cache; then
4639 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4640 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4641 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4642 fi
4643 ac_header= ac_cache=
4644 elif test $ac_header; then
4645 ac_cache=$ac_item
4646 else
4647 ac_header=$ac_item
4648 fi
4649 done
4650
4651
4652
4653
4654
4655
4656
4657
4658 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4659 then :
4660
4661 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4662
4663 fi
4664
4665
4666
4667
4668
4669
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4671 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4672 if test ${ac_cv_safe_to_define___extensions__+y}
4673 then :
4674 printf %s "(cached) " >&6
4675 else case e in #(
4676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678
4679 # define __EXTENSIONS__ 1
4680 $ac_includes_default
4681 int
4682 main (void)
4683 {
4684
4685 ;
4686 return 0;
4687 }
4688 _ACEOF
4689 if ac_fn_c_try_compile "$LINENO"
4690 then :
4691 ac_cv_safe_to_define___extensions__=yes
4692 else case e in #(
4693 e) ac_cv_safe_to_define___extensions__=no ;;
4694 esac
4695 fi
4696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4697 esac
4698 fi
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4700 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4701
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4703 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4704 if test ${ac_cv_should_define__xopen_source+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else case e in #(
4708 e) ac_cv_should_define__xopen_source=no
4709 if test $ac_cv_header_wchar_h = yes
4710 then :
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4713
4714 #include <wchar.h>
4715 mbstate_t x;
4716 int
4717 main (void)
4718 {
4719
4720 ;
4721 return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_compile "$LINENO"
4725 then :
4726
4727 else case e in #(
4728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4730
4731 #define _XOPEN_SOURCE 500
4732 #include <wchar.h>
4733 mbstate_t x;
4734 int
4735 main (void)
4736 {
4737
4738 ;
4739 return 0;
4740 }
4741 _ACEOF
4742 if ac_fn_c_try_compile "$LINENO"
4743 then :
4744 ac_cv_should_define__xopen_source=yes
4745 fi
4746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4747 esac
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4750 fi ;;
4751 esac
4752 fi
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4754 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4755
4756 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4757
4758 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4759
4760 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4761
4762 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4763
4764 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4765
4766 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4767
4768 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4769
4770 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4771
4772 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4773
4774 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4775
4776 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4777
4778 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4779
4780 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4781
4782 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4783
4784 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4785
4786 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4787
4788 if test $ac_cv_header_minix_config_h = yes
4789 then :
4790 MINIX=yes
4791 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4792
4793 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4794
4795 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4796
4797 else case e in #(
4798 e) MINIX= ;;
4799 esac
4800 fi
4801 if test $ac_cv_safe_to_define___extensions__ = yes
4802 then :
4803 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4804
4805 fi
4806 if test $ac_cv_should_define__xopen_source = yes
4807 then :
4808 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4809
4810 fi
4811
4812 ac_ext=cpp
4813 ac_cpp='$CXXCPP $CPPFLAGS'
4814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4817
4818
4819 LINKER="$CXX"
4820 if test x$GCC = xyes && test x$GXX = xyes; then
4821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4822 printf %s "checking for working libsupc++... " >&6; }
4823 save_CXX="$CXX"
4824 save_LIBS="$LIBS"
4825 CXX="$CC"
4826 LIBS="$LIBS -lsupc++"
4827
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830 struct test { }; void f() try { throw new test; } catch (...) { throw; }
4831 int
4832 main (void)
4833 {
4834
4835 ;
4836 return 0;
4837 }
4838 _ACEOF
4839 if ac_fn_cxx_try_link "$LINENO"
4840 then :
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4842 printf "%s\n" "ok" >&6; }
4843 LINKER="$CC"
4844 else case e in #(
4845 e)
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4847 printf "%s\n" "no, making everything bigger and slower" >&6; }
4848 LIBS="$save_LIBS"
4849
4850 ;;
4851 esac
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4854 conftest$ac_exeext conftest.$ac_ext
4855 CXX="$save_CXX"
4856 fi
4857 LINKER=$LINKER
4858
4859
4860 if test -z "$orig_CXXFLAGS"; then
4861 if test x$GCC = xyes && test "x$GXX" = xyes; then
4862 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4865
4866 int
4867 main (void)
4868 {
4869
4870 ;
4871 return 0;
4872 }
4873 _ACEOF
4874 if ac_fn_cxx_try_compile "$LINENO"
4875 then :
4876
4877 else case e in #(
4878 e) CXXFLAGS="-g -O3" ;;
4879 esac
4880 fi
4881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4882 else
4883 CXXFLAGS="-O"
4884 fi
4885 CFLAGS="$CXXFLAGS"
4886 fi
4887
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4889 printf %s "checking for library containing setlocale... " >&6; }
4890 if test ${ac_cv_search_setlocale+y}
4891 then :
4892 printf %s "(cached) " >&6
4893 else case e in #(
4894 e) ac_func_search_save_LIBS=$LIBS
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4897
4898 namespace conftest {
4899 extern "C" int setlocale ();
4900 }
4901 int
4902 main (void)
4903 {
4904 return conftest::setlocale ();
4905 ;
4906 return 0;
4907 }
4908 _ACEOF
4909 for ac_lib in '' xpg4
4910 do
4911 if test -z "$ac_lib"; then
4912 ac_res="none required"
4913 else
4914 ac_res=-l$ac_lib
4915 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4916 fi
4917 if ac_fn_cxx_try_link "$LINENO"
4918 then :
4919 ac_cv_search_setlocale=$ac_res
4920 fi
4921 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4922 conftest$ac_exeext
4923 if test ${ac_cv_search_setlocale+y}
4924 then :
4925 break
4926 fi
4927 done
4928 if test ${ac_cv_search_setlocale+y}
4929 then :
4930
4931 else case e in #(
4932 e) ac_cv_search_setlocale=no ;;
4933 esac
4934 fi
4935 rm conftest.$ac_ext
4936 LIBS=$ac_func_search_save_LIBS ;;
4937 esac
4938 fi
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4940 printf "%s\n" "$ac_cv_search_setlocale" >&6; }
4941 ac_res=$ac_cv_search_setlocale
4942 if test "$ac_res" != no
4943 then :
4944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4945
4946 fi
4947
4948
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4950 printf %s "checking for library containing gethostbyname... " >&6; }
4951 if test ${ac_cv_search_gethostbyname+y}
4952 then :
4953 printf %s "(cached) " >&6
4954 else case e in #(
4955 e) ac_func_search_save_LIBS=$LIBS
4956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 /* end confdefs.h. */
4958
4959 namespace conftest {
4960 extern "C" int gethostbyname ();
4961 }
4962 int
4963 main (void)
4964 {
4965 return conftest::gethostbyname ();
4966 ;
4967 return 0;
4968 }
4969 _ACEOF
4970 for ac_lib in '' nsl
4971 do
4972 if test -z "$ac_lib"; then
4973 ac_res="none required"
4974 else
4975 ac_res=-l$ac_lib
4976 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4977 fi
4978 if ac_fn_cxx_try_link "$LINENO"
4979 then :
4980 ac_cv_search_gethostbyname=$ac_res
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4983 conftest$ac_exeext
4984 if test ${ac_cv_search_gethostbyname+y}
4985 then :
4986 break
4987 fi
4988 done
4989 if test ${ac_cv_search_gethostbyname+y}
4990 then :
4991
4992 else case e in #(
4993 e) ac_cv_search_gethostbyname=no ;;
4994 esac
4995 fi
4996 rm conftest.$ac_ext
4997 LIBS=$ac_func_search_save_LIBS ;;
4998 esac
4999 fi
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5001 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
5002 ac_res=$ac_cv_search_gethostbyname
5003 if test "$ac_res" != no
5004 then :
5005 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5006
5007 fi
5008
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5010 printf %s "checking for library containing socket... " >&6; }
5011 if test ${ac_cv_search_socket+y}
5012 then :
5013 printf %s "(cached) " >&6
5014 else case e in #(
5015 e) ac_func_search_save_LIBS=$LIBS
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h. */
5018
5019 namespace conftest {
5020 extern "C" int socket ();
5021 }
5022 int
5023 main (void)
5024 {
5025 return conftest::socket ();
5026 ;
5027 return 0;
5028 }
5029 _ACEOF
5030 for ac_lib in '' socket
5031 do
5032 if test -z "$ac_lib"; then
5033 ac_res="none required"
5034 else
5035 ac_res=-l$ac_lib
5036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5037 fi
5038 if ac_fn_cxx_try_link "$LINENO"
5039 then :
5040 ac_cv_search_socket=$ac_res
5041 fi
5042 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5043 conftest$ac_exeext
5044 if test ${ac_cv_search_socket+y}
5045 then :
5046 break
5047 fi
5048 done
5049 if test ${ac_cv_search_socket+y}
5050 then :
5051
5052 else case e in #(
5053 e) ac_cv_search_socket=no ;;
5054 esac
5055 fi
5056 rm conftest.$ac_ext
5057 LIBS=$ac_func_search_save_LIBS ;;
5058 esac
5059 fi
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5061 printf "%s\n" "$ac_cv_search_socket" >&6; }
5062 ac_res=$ac_cv_search_socket
5063 if test "$ac_res" != no
5064 then :
5065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5066
5067 fi
5068
5069
5070 support_frills=yes
5071 support_inheritpixmap=yes
5072 support_fading=yes
5073 support_keepscrolling=yes
5074 support_selectionscrolling=yes
5075 support_mousewheel=yes
5076 support_mouseslipwheel=yes
5077 support_text_blink=yes
5078 support_pointer_blank=yes
5079 support_scroll_rxvt=yes
5080 support_scroll_next=yes
5081 support_scroll_xterm=yes
5082 support_xim=yes
5083 support_pixbuf=yes
5084 support_startup_notification=yes
5085 support_xft=yes
5086 support_unicode3=no
5087 support_combining=yes
5088 support_8bitctrls=no
5089 support_iso14755=yes
5090 support_styles=yes
5091 support_perl=yes
5092 codesets=all
5093
5094
5095 # Check whether --enable-everything was given.
5096 if test ${enable_everything+y}
5097 then :
5098 enableval=$enable_everything;
5099 if test x$enableval = xno; then
5100 support_frills=no
5101 support_inheritpixmap=no
5102 support_fading=no
5103 support_keepscrolling=no
5104 support_selectionscrolling=no
5105 support_mousewheel=no
5106 support_mouseslipwheel=no
5107 support_text_blink=no
5108 support_pointer_blank=no
5109 support_scroll_rxvt=no
5110 support_scroll_next=no
5111 support_scroll_xterm=no
5112 support_xim=no
5113 support_pixbuf=no
5114 support_startup_notification=no
5115 support_xft=no
5116 support_unicode3=no
5117 support_combining=no
5118 support_8bitctrls=no
5119 support_iso14755=no
5120 support_styles=no
5121 support_perl=no
5122 codesets=
5123 fi
5124 if test x$enableval = xyes; then
5125 support_frills=yes
5126 support_inheritpixmap=yes
5127 support_fading=yes
5128 support_keepscrolling=yes
5129 support_selectionscrolling=yes
5130 support_mousewheel=yes
5131 support_mouseslipwheel=yes
5132 support_text_blink=yes
5133 support_pointer_blank=yes
5134 support_scroll_rxvt=yes
5135 support_scroll_next=yes
5136 support_scroll_xterm=yes
5137 support_xim=yes
5138 support_pixbuf=yes
5139 support_startup_notification=yes
5140 support_xft=yes
5141 support_unicode3=yes
5142 support_combining=yes
5143 #support_8bitctrls=yes
5144 support_iso14755=yes
5145 support_styles=yes
5146 support_perl=yes
5147 codesets=all
5148 fi
5149
5150 fi
5151
5152
5153 support_assertions=no
5154 # Check whether --enable-assert was given.
5155 if test ${enable_assert+y}
5156 then :
5157 enableval=$enable_assert; if test x$enableval = xyes; then
5158 support_assertions=yes
5159 fi
5160 fi
5161
5162 if test x$support_assertions = xno; then
5163
5164 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
5165
5166 fi
5167
5168 support_warnings=no
5169 # Check whether --enable-warnings was given.
5170 if test ${enable_warnings+y}
5171 then :
5172 enableval=$enable_warnings; if test x$enableval = xyes; then
5173 support_warnings=yes
5174 fi
5175 fi
5176
5177 if test x$GXX = xyes; then
5178 if test $support_warnings = yes; then
5179 save_CXXFLAGS="$CXXFLAGS"
5180 for warning in \
5181 -Wall \
5182 -Wno-parentheses \
5183 -Wno-reorder \
5184 -Wno-sign-compare \
5185 -Wno-unused-value \
5186 ; do
5187 CXXFLAGS="$CXXFLAGS $warning"
5188 done
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191
5192 int
5193 main (void)
5194 {
5195
5196 ;
5197 return 0;
5198 }
5199 _ACEOF
5200 if ac_fn_cxx_try_compile "$LINENO"
5201 then :
5202
5203 else case e in #(
5204 e) CXXFLAGS="$save_CXXFLAGS" ;;
5205 esac
5206 fi
5207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5208 else
5209 CXXFLAGS="$CXXFLAGS -w"
5210 fi
5211 fi
5212
5213 support_256_color=no
5214 # Check whether --enable-256-color was given.
5215 if test ${enable_256_color+y}
5216 then :
5217 enableval=$enable_256_color; if test x$enableval = xyes; then
5218 support_256_color=yes
5219 fi
5220 fi
5221
5222 if test x$support_256_color = xyes; then
5223
5224 printf "%s\n" "#define USE_256_COLORS 1" >>confdefs.h
5225
5226 fi
5227
5228 # Check whether --enable-unicode3 was given.
5229 if test ${enable_unicode3+y}
5230 then :
5231 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
5232 support_unicode3=$enableval
5233 fi
5234 fi
5235
5236
5237 # Check whether --enable-combining was given.
5238 if test ${enable_combining+y}
5239 then :
5240 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
5241 support_combining=$enableval
5242 fi
5243 fi
5244
5245
5246 # Check whether --enable-xft was given.
5247 if test ${enable_xft+y}
5248 then :
5249 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
5250 support_xft=$enableval
5251 fi
5252 fi
5253
5254
5255 # Check whether --enable-font-styles was given.
5256 if test ${enable_font_styles+y}
5257 then :
5258 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
5259 support_styles=$enableval
5260 fi
5261 fi
5262
5263
5264 # Check whether --enable-pixbuf was given.
5265 if test ${enable_pixbuf+y}
5266 then :
5267 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
5268 support_pixbuf=$enableval
5269 fi
5270 fi
5271
5272
5273 # Check whether --enable-startup-notification was given.
5274 if test ${enable_startup_notification+y}
5275 then :
5276 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
5277 support_startup_notification=$enableval
5278 fi
5279 fi
5280
5281
5282 # Check whether --enable-transparency was given.
5283 if test ${enable_transparency+y}
5284 then :
5285 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
5286 support_inheritpixmap=$enableval
5287 fi
5288 fi
5289
5290
5291 # Check whether --enable-fading was given.
5292 if test ${enable_fading+y}
5293 then :
5294 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
5295 support_fading=$enableval
5296 fi
5297 fi
5298
5299
5300 # Check whether --enable-rxvt-scroll was given.
5301 if test ${enable_rxvt_scroll+y}
5302 then :
5303 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
5304 support_scroll_rxvt=$enableval
5305 fi
5306 fi
5307
5308
5309 # Check whether --enable-next-scroll was given.
5310 if test ${enable_next_scroll+y}
5311 then :
5312 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
5313 support_scroll_next=$enableval
5314 fi
5315 fi
5316
5317
5318 # Check whether --enable-xterm-scroll was given.
5319 if test ${enable_xterm_scroll+y}
5320 then :
5321 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
5322 support_scroll_xterm=$enableval
5323 fi
5324 fi
5325
5326
5327 # Check whether --enable-perl was given.
5328 if test ${enable_perl+y}
5329 then :
5330 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
5331 support_perl=$enableval
5332 fi
5333 fi
5334
5335
5336
5337 # Check whether --with-codesets was given.
5338 if test ${with_codesets+y}
5339 then :
5340 withval=$with_codesets; codesets="$withval"
5341 fi
5342
5343
5344 # Check whether --enable-xim was given.
5345 if test ${enable_xim+y}
5346 then :
5347 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
5348 support_xim=$enableval
5349 fi
5350 fi
5351
5352
5353 # Check whether --enable-backspace-key was given.
5354 if test ${enable_backspace_key+y}
5355 then :
5356 enableval=$enable_backspace_key; if test x$enableval = xno; then
5357
5358 printf "%s\n" "#define NO_BACKSPACE_KEY 1" >>confdefs.h
5359
5360 fi
5361 fi
5362
5363
5364 # Check whether --enable-delete-key was given.
5365 if test ${enable_delete_key+y}
5366 then :
5367 enableval=$enable_delete_key; if test x$enableval = xno; then
5368
5369 printf "%s\n" "#define NO_DELETE_KEY 1" >>confdefs.h
5370
5371 fi
5372 fi
5373
5374
5375 support_resources=yes
5376 # Check whether --enable-resources was given.
5377 if test ${enable_resources+y}
5378 then :
5379 enableval=$enable_resources; if test x$enableval = xno; then
5380 support_resources=no
5381 fi
5382 fi
5383
5384
5385 # Check whether --enable-8bitctrls was given.
5386 if test ${enable_8bitctrls+y}
5387 then :
5388 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
5389 support_8bitctrls=$enableval
5390 fi
5391 fi
5392
5393
5394 RESFALLBACK=Rxvt
5395 # Check whether --enable-fallback was given.
5396 if test ${enable_fallback+y}
5397 then :
5398 enableval=$enable_fallback;
5399 test x$enableval = xyes && enableval=Rxvt
5400 test x$enableval = xno && enableval=
5401 RESFALLBACK="$enableval"
5402
5403 fi
5404
5405
5406 if test x$RESFALLBACK != x; then
5407
5408 printf "%s\n" "#define RESFALLBACK \"$RESFALLBACK\"" >>confdefs.h
5409
5410 fi
5411
5412 RESNAME=urxvt
5413
5414 # Check whether --with-res-name was given.
5415 if test ${with_res_name+y}
5416 then :
5417 withval=$with_res_name; RESNAME="$withval"
5418 fi
5419
5420
5421 printf "%s\n" "#define RESNAME \"$RESNAME\"" >>confdefs.h
5422
5423
5424 RESCLASS=URxvt
5425
5426 # Check whether --with-res-class was given.
5427 if test ${with_res_class+y}
5428 then :
5429 withval=$with_res_class; RESCLASS="$withval"
5430 fi
5431
5432
5433 printf "%s\n" "#define RESCLASS \"$RESCLASS\"" >>confdefs.h
5434
5435
5436 RXVTNAME=urxvt
5437
5438 # Check whether --with-name was given.
5439 if test ${with_name+y}
5440 then :
5441 withval=$with_name; RXVTNAME="$withval"
5442 fi
5443
5444
5445 printf "%s\n" "#define RXVTNAME \"$RXVTNAME\"" >>confdefs.h
5446
5447
5448
5449
5450 # Check whether --enable-swapscreen was given.
5451 if test ${enable_swapscreen+y}
5452 then :
5453 enableval=$enable_swapscreen; if test x$enableval = xno; then
5454
5455 printf "%s\n" "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
5456
5457 fi
5458 fi
5459
5460
5461 # Check whether --enable-iso14755 was given.
5462 if test ${enable_iso14755+y}
5463 then :
5464 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
5465 support_iso14755=$enableval
5466 fi
5467 fi
5468
5469
5470 # Check whether --enable-frills was given.
5471 if test ${enable_frills+y}
5472 then :
5473 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5474 support_frills=$enableval
5475 fi
5476 fi
5477
5478
5479 # Check whether --enable-keepscrolling was given.
5480 if test ${enable_keepscrolling+y}
5481 then :
5482 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5483 support_keepscrolling=$enableval
5484 fi
5485 fi
5486
5487
5488 # Check whether --enable-selectionscrolling was given.
5489 if test ${enable_selectionscrolling+y}
5490 then :
5491 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5492 support_selectionscrolling=$enableval
5493 fi
5494 fi
5495
5496
5497 # Check whether --enable-mousewheel was given.
5498 if test ${enable_mousewheel+y}
5499 then :
5500 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5501 support_mousewheel=$enableval
5502 fi
5503 fi
5504
5505
5506 # Check whether --enable-slipwheeling was given.
5507 if test ${enable_slipwheeling+y}
5508 then :
5509 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5510 support_mouseslipwheel=$enableval
5511 fi
5512 fi
5513
5514
5515 # Check whether --enable-smart-resize was given.
5516 if test ${enable_smart_resize+y}
5517 then :
5518 enableval=$enable_smart_resize; if test x$enableval = xyes; then
5519
5520 printf "%s\n" "#define SMART_RESIZE 1" >>confdefs.h
5521
5522 fi
5523 fi
5524
5525
5526 # Check whether --enable-text-blink was given.
5527 if test ${enable_text_blink+y}
5528 then :
5529 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5530 support_text_blink=$enableval
5531 fi
5532 fi
5533
5534
5535 # Check whether --enable-pointer-blank was given.
5536 if test ${enable_pointer_blank+y}
5537 then :
5538 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5539 support_pointer_blank=$enableval
5540 fi
5541 fi
5542
5543
5544
5545 # Check whether --with-term was given.
5546 if test ${with_term+y}
5547 then :
5548 withval=$with_term; if test x$withval != x; then
5549
5550 printf "%s\n" "#define TERMENV \"$withval\"" >>confdefs.h
5551 term="$withval"
5552 fi
5553 fi
5554
5555
5556
5557 # Check whether --with-terminfo was given.
5558 if test ${with_terminfo+y}
5559 then :
5560 withval=$with_terminfo; if test x$withval != x; then
5561
5562 printf "%s\n" "#define RXVT_TERMINFO \"$withval\"" >>confdefs.h
5563 terminfo="$withval"
5564 fi
5565 fi
5566
5567
5568 if test x$support_resources = xno; then
5569 if test x$support_frills = xyes || test x$support_perl = xyes; then
5570 as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5
5571 fi
5572
5573
5574 printf "%s\n" "#define NO_RESOURCES 1" >>confdefs.h
5575
5576 fi
5577
5578
5579 LIBEV_M4_AVOID_LIBRT=1
5580
5581 ac_fn_cxx_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
5582 if test "x$ac_cv_header_sys_inotify_h" = xyes
5583 then :
5584 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
5585
5586 fi
5587 ac_fn_cxx_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
5588 if test "x$ac_cv_header_sys_epoll_h" = xyes
5589 then :
5590 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
5591
5592 fi
5593 ac_fn_cxx_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
5594 if test "x$ac_cv_header_sys_event_h" = xyes
5595 then :
5596 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
5597
5598 fi
5599 ac_fn_cxx_check_header_compile "$LINENO" "port.h" "ac_cv_header_port_h" "$ac_includes_default"
5600 if test "x$ac_cv_header_port_h" = xyes
5601 then :
5602 printf "%s\n" "#define HAVE_PORT_H 1" >>confdefs.h
5603
5604 fi
5605 ac_fn_cxx_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
5606 if test "x$ac_cv_header_poll_h" = xyes
5607 then :
5608 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
5609
5610 fi
5611 ac_fn_cxx_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
5612 if test "x$ac_cv_header_sys_timerfd_h" = xyes
5613 then :
5614 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
5615
5616 fi
5617
5618 ac_fn_cxx_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5619 if test "x$ac_cv_header_sys_select_h" = xyes
5620 then :
5621 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5622
5623 fi
5624 ac_fn_cxx_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
5625 if test "x$ac_cv_header_sys_eventfd_h" = xyes
5626 then :
5627 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
5628
5629 fi
5630 ac_fn_cxx_check_header_compile "$LINENO" "sys/signalfd.h" "ac_cv_header_sys_signalfd_h" "$ac_includes_default"
5631 if test "x$ac_cv_header_sys_signalfd_h" = xyes
5632 then :
5633 printf "%s\n" "#define HAVE_SYS_SIGNALFD_H 1" >>confdefs.h
5634
5635 fi
5636 ac_fn_cxx_check_header_compile "$LINENO" "linux/aio_abi.h" "ac_cv_header_linux_aio_abi_h" "$ac_includes_default"
5637 if test "x$ac_cv_header_linux_aio_abi_h" = xyes
5638 then :
5639 printf "%s\n" "#define HAVE_LINUX_AIO_ABI_H 1" >>confdefs.h
5640
5641 fi
5642 ac_fn_cxx_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
5643 if test "x$ac_cv_header_linux_fs_h" = xyes
5644 then :
5645 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
5646
5647 fi
5648
5649
5650 ac_fn_cxx_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init"
5651 if test "x$ac_cv_func_inotify_init" = xyes
5652 then :
5653 printf "%s\n" "#define HAVE_INOTIFY_INIT 1" >>confdefs.h
5654
5655 fi
5656 ac_fn_cxx_check_func "$LINENO" "epoll_ctl" "ac_cv_func_epoll_ctl"
5657 if test "x$ac_cv_func_epoll_ctl" = xyes
5658 then :
5659 printf "%s\n" "#define HAVE_EPOLL_CTL 1" >>confdefs.h
5660
5661 fi
5662 ac_fn_cxx_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
5663 if test "x$ac_cv_func_kqueue" = xyes
5664 then :
5665 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
5666
5667 fi
5668 ac_fn_cxx_check_func "$LINENO" "port_create" "ac_cv_func_port_create"
5669 if test "x$ac_cv_func_port_create" = xyes
5670 then :
5671 printf "%s\n" "#define HAVE_PORT_CREATE 1" >>confdefs.h
5672
5673 fi
5674 ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
5675 if test "x$ac_cv_func_poll" = xyes
5676 then :
5677 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
5678
5679 fi
5680 ac_fn_cxx_check_func "$LINENO" "select" "ac_cv_func_select"
5681 if test "x$ac_cv_func_select" = xyes
5682 then :
5683 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
5684
5685 fi
5686 ac_fn_cxx_check_func "$LINENO" "eventfd" "ac_cv_func_eventfd"
5687 if test "x$ac_cv_func_eventfd" = xyes
5688 then :
5689 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
5690
5691 fi
5692 ac_fn_cxx_check_func "$LINENO" "signalfd" "ac_cv_func_signalfd"
5693 if test "x$ac_cv_func_signalfd" = xyes
5694 then :
5695 printf "%s\n" "#define HAVE_SIGNALFD 1" >>confdefs.h
5696
5697 fi
5698
5699
5700
5701 for ac_func in clock_gettime
5702 do :
5703 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5704 if test "x$ac_cv_func_clock_gettime" = xyes
5705 then :
5706 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5707
5708 else case e in #(
5709 e)
5710 if test $(uname) = Linux; then
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5712 printf %s "checking for clock_gettime syscall... " >&6; }
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <unistd.h>
5716 #include <sys/syscall.h>
5717 #include <time.h>
5718 int
5719 main (void)
5720 {
5721 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5722 ;
5723 return 0;
5724 }
5725 _ACEOF
5726 if ac_fn_cxx_try_link "$LINENO"
5727 then :
5728 ac_have_clock_syscall=1
5729
5730 printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5731
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733 printf "%s\n" "yes" >&6; }
5734 else case e in #(
5735 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 printf "%s\n" "no" >&6; } ;;
5737 esac
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5740 conftest$ac_exeext conftest.$ac_ext
5741 fi
5742 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5744 printf %s "checking for clock_gettime in -lrt... " >&6; }
5745 if test ${ac_cv_lib_rt_clock_gettime+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else case e in #(
5749 e) ac_check_lib_save_LIBS=$LIBS
5750 LIBS="-lrt $LIBS"
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753
5754 namespace conftest {
5755 extern "C" int clock_gettime ();
5756 }
5757 int
5758 main (void)
5759 {
5760 return conftest::clock_gettime ();
5761 ;
5762 return 0;
5763 }
5764 _ACEOF
5765 if ac_fn_cxx_try_link "$LINENO"
5766 then :
5767 ac_cv_lib_rt_clock_gettime=yes
5768 else case e in #(
5769 e) ac_cv_lib_rt_clock_gettime=no ;;
5770 esac
5771 fi
5772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5773 conftest$ac_exeext conftest.$ac_ext
5774 LIBS=$ac_check_lib_save_LIBS ;;
5775 esac
5776 fi
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5778 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
5779 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
5780 then :
5781 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
5782
5783 LIBS="-lrt $LIBS"
5784
5785 fi
5786
5787 unset ac_cv_func_clock_gettime
5788 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5789 if test "x$ac_cv_func_clock_gettime" = xyes
5790 then :
5791 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5792
5793 fi
5794
5795 fi
5796 ;;
5797 esac
5798 fi
5799
5800 done
5801
5802
5803 for ac_func in nanosleep
5804 do :
5805 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5806 if test "x$ac_cv_func_nanosleep" = xyes
5807 then :
5808 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5809
5810 else case e in #(
5811 e)
5812 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5814 printf %s "checking for nanosleep in -lrt... " >&6; }
5815 if test ${ac_cv_lib_rt_nanosleep+y}
5816 then :
5817 printf %s "(cached) " >&6
5818 else case e in #(
5819 e) ac_check_lib_save_LIBS=$LIBS
5820 LIBS="-lrt $LIBS"
5821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 /* end confdefs.h. */
5823
5824 namespace conftest {
5825 extern "C" int nanosleep ();
5826 }
5827 int
5828 main (void)
5829 {
5830 return conftest::nanosleep ();
5831 ;
5832 return 0;
5833 }
5834 _ACEOF
5835 if ac_fn_cxx_try_link "$LINENO"
5836 then :
5837 ac_cv_lib_rt_nanosleep=yes
5838 else case e in #(
5839 e) ac_cv_lib_rt_nanosleep=no ;;
5840 esac
5841 fi
5842 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5843 conftest$ac_exeext conftest.$ac_ext
5844 LIBS=$ac_check_lib_save_LIBS ;;
5845 esac
5846 fi
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5848 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
5849 if test "x$ac_cv_lib_rt_nanosleep" = xyes
5850 then :
5851 printf "%s\n" "#define HAVE_LIBRT 1" >>confdefs.h
5852
5853 LIBS="-lrt $LIBS"
5854
5855 fi
5856
5857 unset ac_cv_func_nanosleep
5858 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5859 if test "x$ac_cv_func_nanosleep" = xyes
5860 then :
5861 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5862
5863 fi
5864
5865 fi
5866 ;;
5867 esac
5868 fi
5869
5870 done
5871
5872 ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h>
5873 "
5874 if test "x$ac_cv_type___kernel_rwf_t" = xyes
5875 then :
5876
5877
5878 printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h
5879
5880
5881 fi
5882
5883
5884 if test -z "$LIBEV_M4_AVOID_LIBM"; then
5885 LIBM=m
5886 fi
5887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5888 printf %s "checking for library containing floor... " >&6; }
5889 if test ${ac_cv_search_floor+y}
5890 then :
5891 printf %s "(cached) " >&6
5892 else case e in #(
5893 e) ac_func_search_save_LIBS=$LIBS
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5896
5897 namespace conftest {
5898 extern "C" int floor ();
5899 }
5900 int
5901 main (void)
5902 {
5903 return conftest::floor ();
5904 ;
5905 return 0;
5906 }
5907 _ACEOF
5908 for ac_lib in '' $LIBM
5909 do
5910 if test -z "$ac_lib"; then
5911 ac_res="none required"
5912 else
5913 ac_res=-l$ac_lib
5914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5915 fi
5916 if ac_fn_cxx_try_link "$LINENO"
5917 then :
5918 ac_cv_search_floor=$ac_res
5919 fi
5920 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5921 conftest$ac_exeext
5922 if test ${ac_cv_search_floor+y}
5923 then :
5924 break
5925 fi
5926 done
5927 if test ${ac_cv_search_floor+y}
5928 then :
5929
5930 else case e in #(
5931 e) ac_cv_search_floor=no ;;
5932 esac
5933 fi
5934 rm conftest.$ac_ext
5935 LIBS=$ac_func_search_save_LIBS ;;
5936 esac
5937 fi
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5939 printf "%s\n" "$ac_cv_search_floor" >&6; }
5940 ac_res=$ac_cv_search_floor
5941 if test "$ac_res" != no
5942 then :
5943 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5944
5945 printf "%s\n" "#define HAVE_FLOOR 1" >>confdefs.h
5946
5947 fi
5948
5949
5950
5951
5952
5953 # Extract the first word of "tic", so it can be a program name with args.
5954 set dummy tic; ac_word=$2
5955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 printf %s "checking for $ac_word... " >&6; }
5957 if test ${ac_cv_path_TIC+y}
5958 then :
5959 printf %s "(cached) " >&6
5960 else case e in #(
5961 e) case $TIC in
5962 [\\/]* | ?:[\\/]*)
5963 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5964 ;;
5965 *)
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969 IFS=$as_save_IFS
5970 case $as_dir in #(((
5971 '') as_dir=./ ;;
5972 */) ;;
5973 *) as_dir=$as_dir/ ;;
5974 esac
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5977 ac_cv_path_TIC="$as_dir$ac_word$ac_exec_ext"
5978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5986 ;;
5987 esac ;;
5988 esac
5989 fi
5990 TIC=$ac_cv_path_TIC
5991 if test -n "$TIC"; then
5992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5993 printf "%s\n" "$TIC" >&6; }
5994 else
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5996 printf "%s\n" "no" >&6; }
5997 fi
5998
5999
6000
6001 ac_ext=cpp
6002 ac_cpp='$CXXCPP $CPPFLAGS'
6003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6007 printf %s "checking how to run the C++ preprocessor... " >&6; }
6008 if test -z "$CXXCPP"; then
6009 if test ${ac_cv_prog_CXXCPP+y}
6010 then :
6011 printf %s "(cached) " >&6
6012 else case e in #(
6013 e) # Double quotes because $CXX needs to be expanded
6014 for CXXCPP in "$CXX -E" cpp /lib/cpp
6015 do
6016 ac_preproc_ok=false
6017 for ac_cxx_preproc_warn_flag in '' yes
6018 do
6019 # Use a header file that comes with gcc, so configuring glibc
6020 # with a fresh cross-compiler works.
6021 # On the NeXT, cc -E runs the code through the compiler's parser,
6022 # not just through cpp. "Syntax error" is here to catch this case.
6023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6024 /* end confdefs.h. */
6025 #include <limits.h>
6026 Syntax error
6027 _ACEOF
6028 if ac_fn_cxx_try_cpp "$LINENO"
6029 then :
6030
6031 else case e in #(
6032 e) # Broken: fails on valid input.
6033 continue ;;
6034 esac
6035 fi
6036 rm -f conftest.err conftest.i conftest.$ac_ext
6037
6038 # OK, works on sane cases. Now check whether nonexistent headers
6039 # can be detected and how.
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 #include <ac_nonexistent.h>
6043 _ACEOF
6044 if ac_fn_cxx_try_cpp "$LINENO"
6045 then :
6046 # Broken: success on invalid input.
6047 continue
6048 else case e in #(
6049 e) # Passes both tests.
6050 ac_preproc_ok=:
6051 break ;;
6052 esac
6053 fi
6054 rm -f conftest.err conftest.i conftest.$ac_ext
6055
6056 done
6057 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6058 rm -f conftest.i conftest.err conftest.$ac_ext
6059 if $ac_preproc_ok
6060 then :
6061 break
6062 fi
6063
6064 done
6065 ac_cv_prog_CXXCPP=$CXXCPP
6066 ;;
6067 esac
6068 fi
6069 CXXCPP=$ac_cv_prog_CXXCPP
6070 else
6071 ac_cv_prog_CXXCPP=$CXXCPP
6072 fi
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6074 printf "%s\n" "$CXXCPP" >&6; }
6075 ac_preproc_ok=false
6076 for ac_cxx_preproc_warn_flag in '' yes
6077 do
6078 # Use a header file that comes with gcc, so configuring glibc
6079 # with a fresh cross-compiler works.
6080 # On the NeXT, cc -E runs the code through the compiler's parser,
6081 # not just through cpp. "Syntax error" is here to catch this case.
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 #include <limits.h>
6085 Syntax error
6086 _ACEOF
6087 if ac_fn_cxx_try_cpp "$LINENO"
6088 then :
6089
6090 else case e in #(
6091 e) # Broken: fails on valid input.
6092 continue ;;
6093 esac
6094 fi
6095 rm -f conftest.err conftest.i conftest.$ac_ext
6096
6097 # OK, works on sane cases. Now check whether nonexistent headers
6098 # can be detected and how.
6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6101 #include <ac_nonexistent.h>
6102 _ACEOF
6103 if ac_fn_cxx_try_cpp "$LINENO"
6104 then :
6105 # Broken: success on invalid input.
6106 continue
6107 else case e in #(
6108 e) # Passes both tests.
6109 ac_preproc_ok=:
6110 break ;;
6111 esac
6112 fi
6113 rm -f conftest.err conftest.i conftest.$ac_ext
6114
6115 done
6116 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6117 rm -f conftest.i conftest.err conftest.$ac_ext
6118 if $ac_preproc_ok
6119 then :
6120
6121 else case e in #(
6122 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6123 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6124 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6125 See 'config.log' for more details" "$LINENO" 5; } ;;
6126 esac
6127 fi
6128
6129 ac_ext=cpp
6130 ac_cpp='$CXXCPP $CPPFLAGS'
6131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6134
6135
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6137 printf %s "checking for X... " >&6; }
6138
6139
6140 # Check whether --with-x was given.
6141 if test ${with_x+y}
6142 then :
6143 withval=$with_x;
6144 fi
6145
6146 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
6147 if test "x$with_x" = xno; then
6148 # The user explicitly disabled X.
6149 have_x=disabled
6150 else
6151 case $x_includes,$x_libraries in #(
6152 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6153 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
6154 then :
6155 printf %s "(cached) " >&6
6156 else case e in #(
6157 e) # One or both of the vars are not set, and there is no cached value.
6158 ac_x_includes=no
6159 ac_x_libraries=no
6160 # Do we need to do anything special at all?
6161 ac_save_LIBS=$LIBS
6162 LIBS="-lX11 $LIBS"
6163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6164 /* end confdefs.h. */
6165 #include <X11/Xlib.h>
6166 int
6167 main (void)
6168 {
6169 XrmInitialize ()
6170 ;
6171 return 0;
6172 }
6173 _ACEOF
6174 if ac_fn_cxx_try_link "$LINENO"
6175 then :
6176 # We can compile and link X programs with no special options.
6177 ac_x_includes=
6178 ac_x_libraries=
6179 fi
6180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6181 conftest$ac_exeext conftest.$ac_ext
6182 LIBS="$ac_save_LIBS"
6183 # If that didn't work, only try xmkmf and file system searches
6184 # for native compilation.
6185 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
6186 then :
6187 rm -f -r conftest.dir
6188 if mkdir conftest.dir; then
6189 cd conftest.dir
6190 cat >Imakefile <<'_ACEOF'
6191 incroot:
6192 @echo incroot='${INCROOT}'
6193 usrlibdir:
6194 @echo usrlibdir='${USRLIBDIR}'
6195 libdir:
6196 @echo libdir='${LIBDIR}'
6197 _ACEOF
6198 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
6199 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6200 for ac_var in incroot usrlibdir libdir; do
6201 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
6202 done
6203 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
6204 for ac_extension in a so sl dylib la dll; do
6205 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
6206 test -f "$ac_im_libdir/libX11.$ac_extension"; then
6207 ac_im_usrlibdir=$ac_im_libdir; break
6208 fi
6209 done
6210 # Screen out bogus values from the imake configuration. They are
6211 # bogus both because they are the default anyway, and because
6212 # using them would break gcc on systems where it needs fixed includes.
6213 case $ac_im_incroot in
6214 /usr/include) ac_x_includes= ;;
6215 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6216 esac
6217 case $ac_im_usrlibdir in
6218 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
6219 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6220 esac
6221 fi
6222 cd ..
6223 rm -f -r conftest.dir
6224 fi
6225
6226 # Standard set of common directories for X headers.
6227 # Check X11 before X11Rn because it is often a symlink to the current release.
6228 ac_x_header_dirs='
6229 /usr/X11/include
6230 /usr/X11R7/include
6231 /usr/X11R6/include
6232 /usr/X11R5/include
6233 /usr/X11R4/include
6234
6235 /usr/include/X11
6236 /usr/include/X11R7
6237 /usr/include/X11R6
6238 /usr/include/X11R5
6239 /usr/include/X11R4
6240
6241 /usr/local/X11/include
6242 /usr/local/X11R7/include
6243 /usr/local/X11R6/include
6244 /usr/local/X11R5/include
6245 /usr/local/X11R4/include
6246
6247 /usr/local/include/X11
6248 /usr/local/include/X11R7
6249 /usr/local/include/X11R6
6250 /usr/local/include/X11R5
6251 /usr/local/include/X11R4
6252
6253 /opt/X11/include
6254
6255 /usr/X386/include
6256 /usr/x386/include
6257 /usr/XFree86/include/X11
6258
6259 /usr/include
6260 /usr/local/include
6261 /usr/unsupported/include
6262 /usr/athena/include
6263 /usr/local/x11r5/include
6264 /usr/lpp/Xamples/include
6265
6266 /usr/openwin/include
6267 /usr/openwin/share/include'
6268
6269 if test "$ac_x_includes" = no; then
6270 # Guess where to find include files, by looking for Xlib.h.
6271 # First, try using that file with no special directory specified.
6272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 #include <X11/Xlib.h>
6275 _ACEOF
6276 if ac_fn_cxx_try_cpp "$LINENO"
6277 then :
6278 # We can compile using X headers with no special include directory.
6279 ac_x_includes=
6280 else case e in #(
6281 e) for ac_dir in $ac_x_header_dirs; do
6282 if test -r "$ac_dir/X11/Xlib.h"; then
6283 ac_x_includes=$ac_dir
6284 break
6285 fi
6286 done ;;
6287 esac
6288 fi
6289 rm -f conftest.err conftest.i conftest.$ac_ext
6290 fi # $ac_x_includes = no
6291
6292 if test "$ac_x_libraries" = no; then
6293 # Check for the libraries.
6294 # See if we find them without any special options.
6295 # Don't add to $LIBS permanently.
6296 ac_save_LIBS=$LIBS
6297 LIBS="-lX11 $LIBS"
6298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h. */
6300 #include <X11/Xlib.h>
6301 int
6302 main (void)
6303 {
6304 XrmInitialize ()
6305 ;
6306 return 0;
6307 }
6308 _ACEOF
6309 if ac_fn_cxx_try_link "$LINENO"
6310 then :
6311 LIBS=$ac_save_LIBS
6312 # We can link X programs with no special library path.
6313 ac_x_libraries=
6314 else case e in #(
6315 e) LIBS=$ac_save_LIBS
6316 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6317 do
6318 # Don't even attempt the hair of trying to link an X program!
6319 for ac_extension in a so sl dylib la dll; do
6320 if test -r "$ac_dir/libX11.$ac_extension"; then
6321 ac_x_libraries=$ac_dir
6322 break 2
6323 fi
6324 done
6325 done ;;
6326 esac
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6329 conftest$ac_exeext conftest.$ac_ext
6330 fi # $ac_x_libraries = no
6331
6332 fi
6333 # Record the results.
6334 case $ac_x_includes,$ac_x_libraries in #(
6335 no,* | *,no | *\'*) :
6336 # Didn't find X, or a directory has "'" in its name.
6337 ac_cv_have_x="have_x=no" ;; #(
6338 *) :
6339 # Record where we found X for the cache.
6340 ac_cv_have_x="have_x=yes\
6341 ac_x_includes='$ac_x_includes'\
6342 ac_x_libraries='$ac_x_libraries'" ;;
6343 esac ;;
6344 esac
6345 fi
6346 ;; #(
6347 *) have_x=yes;;
6348 esac
6349 eval "$ac_cv_have_x"
6350 fi # $with_x != no
6351
6352 if test "$have_x" != yes; then
6353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6354 printf "%s\n" "$have_x" >&6; }
6355 no_x=yes
6356 else
6357 # If each of the values was on the command line, it overrides each guess.
6358 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6359 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6360 # Update the cache value to reflect the command line values.
6361 ac_cv_have_x="have_x=yes\
6362 ac_x_includes='$x_includes'\
6363 ac_x_libraries='$x_libraries'"
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
6365 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
6366 fi
6367
6368 if test "$no_x" = yes; then
6369 # Not all programs may use this symbol, but it does not hurt to define it.
6370
6371 printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
6372
6373 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6374 else
6375 if test -n "$x_includes"; then
6376 X_CFLAGS="$X_CFLAGS -I$x_includes"
6377 fi
6378
6379 # It would also be nice to do this for all -L options, not just this one.
6380 if test -n "$x_libraries"; then
6381 X_LIBS="$X_LIBS -L$x_libraries"
6382 # For Solaris; some versions of Sun CC require a space after -R and
6383 # others require no space. Words are not sufficient . . . .
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
6385 printf %s "checking whether -R must be followed by a space... " >&6; }
6386 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6387 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
6388 ac_cxx_werror_flag=yes
6389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6390 /* end confdefs.h. */
6391
6392 int
6393 main (void)
6394 {
6395
6396 ;
6397 return 0;
6398 }
6399 _ACEOF
6400 if ac_fn_cxx_try_link "$LINENO"
6401 then :
6402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 printf "%s\n" "no" >&6; }
6404 X_LIBS="$X_LIBS -R$x_libraries"
6405 else case e in #(
6406 e) LIBS="$ac_xsave_LIBS -R $x_libraries"
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409
6410 int
6411 main (void)
6412 {
6413
6414 ;
6415 return 0;
6416 }
6417 _ACEOF
6418 if ac_fn_cxx_try_link "$LINENO"
6419 then :
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6421 printf "%s\n" "yes" >&6; }
6422 X_LIBS="$X_LIBS -R $x_libraries"
6423 else case e in #(
6424 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
6425 printf "%s\n" "neither works" >&6; } ;;
6426 esac
6427 fi
6428 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6429 conftest$ac_exeext conftest.$ac_ext ;;
6430 esac
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6433 conftest$ac_exeext conftest.$ac_ext
6434 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
6435 LIBS=$ac_xsave_LIBS
6436 fi
6437
6438 # Check for system-dependent libraries X programs must link with.
6439 # Do this before checking for the system-independent R6 libraries
6440 # (-lICE), since we may need -lsocket or whatever for X linking.
6441
6442 if test "$ISC" = yes; then
6443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6444 else
6445 # Martyn Johnson says this is needed for Ultrix, if the X
6446 # libraries were built with DECnet support. And Karl Berry says
6447 # the Alpha needs dnet_stub (dnet does not exist).
6448 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451
6452 namespace conftest {
6453 extern "C" int XOpenDisplay ();
6454 }
6455 int
6456 main (void)
6457 {
6458 return conftest::XOpenDisplay ();
6459 ;
6460 return 0;
6461 }
6462 _ACEOF
6463 if ac_fn_cxx_try_link "$LINENO"
6464 then :
6465
6466 else case e in #(
6467 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6468 printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
6469 if test ${ac_cv_lib_dnet_dnet_ntoa+y}
6470 then :
6471 printf %s "(cached) " >&6
6472 else case e in #(
6473 e) ac_check_lib_save_LIBS=$LIBS
6474 LIBS="-ldnet $LIBS"
6475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476 /* end confdefs.h. */
6477
6478 namespace conftest {
6479 extern "C" int dnet_ntoa ();
6480 }
6481 int
6482 main (void)
6483 {
6484 return conftest::dnet_ntoa ();
6485 ;
6486 return 0;
6487 }
6488 _ACEOF
6489 if ac_fn_cxx_try_link "$LINENO"
6490 then :
6491 ac_cv_lib_dnet_dnet_ntoa=yes
6492 else case e in #(
6493 e) ac_cv_lib_dnet_dnet_ntoa=no ;;
6494 esac
6495 fi
6496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6497 conftest$ac_exeext conftest.$ac_ext
6498 LIBS=$ac_check_lib_save_LIBS ;;
6499 esac
6500 fi
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6502 printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
6503 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
6504 then :
6505 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6506 fi
6507
6508 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
6510 printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
6511 if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
6512 then :
6513 printf %s "(cached) " >&6
6514 else case e in #(
6515 e) ac_check_lib_save_LIBS=$LIBS
6516 LIBS="-ldnet_stub $LIBS"
6517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 /* end confdefs.h. */
6519
6520 namespace conftest {
6521 extern "C" int dnet_ntoa ();
6522 }
6523 int
6524 main (void)
6525 {
6526 return conftest::dnet_ntoa ();
6527 ;
6528 return 0;
6529 }
6530 _ACEOF
6531 if ac_fn_cxx_try_link "$LINENO"
6532 then :
6533 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6534 else case e in #(
6535 e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;;
6536 esac
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6539 conftest$ac_exeext conftest.$ac_ext
6540 LIBS=$ac_check_lib_save_LIBS ;;
6541 esac
6542 fi
6543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6544 printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
6545 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
6546 then :
6547 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6548 fi
6549
6550 fi ;;
6551 esac
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6554 conftest$ac_exeext conftest.$ac_ext
6555 LIBS="$ac_xsave_LIBS"
6556
6557 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6558 # to get the SysV transport functions.
6559 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6560 # needs -lnsl.
6561 # The nsl library prevents programs from opening the X display
6562 # on Irix 5.2, according to T.E. Dickey.
6563 # The functions gethostbyname, getservbyname, and inet_addr are
6564 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6565 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
6566 if test "x$ac_cv_func_gethostbyname" = xyes
6567 then :
6568
6569 fi
6570
6571 if test $ac_cv_func_gethostbyname = no; then
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6573 printf %s "checking for gethostbyname in -lnsl... " >&6; }
6574 if test ${ac_cv_lib_nsl_gethostbyname+y}
6575 then :
6576 printf %s "(cached) " >&6
6577 else case e in #(
6578 e) ac_check_lib_save_LIBS=$LIBS
6579 LIBS="-lnsl $LIBS"
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6582
6583 namespace conftest {
6584 extern "C" int gethostbyname ();
6585 }
6586 int
6587 main (void)
6588 {
6589 return conftest::gethostbyname ();
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 if ac_fn_cxx_try_link "$LINENO"
6595 then :
6596 ac_cv_lib_nsl_gethostbyname=yes
6597 else case e in #(
6598 e) ac_cv_lib_nsl_gethostbyname=no ;;
6599 esac
6600 fi
6601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6602 conftest$ac_exeext conftest.$ac_ext
6603 LIBS=$ac_check_lib_save_LIBS ;;
6604 esac
6605 fi
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6607 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
6608 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
6609 then :
6610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6611 fi
6612
6613 if test $ac_cv_lib_nsl_gethostbyname = no; then
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6615 printf %s "checking for gethostbyname in -lbsd... " >&6; }
6616 if test ${ac_cv_lib_bsd_gethostbyname+y}
6617 then :
6618 printf %s "(cached) " >&6
6619 else case e in #(
6620 e) ac_check_lib_save_LIBS=$LIBS
6621 LIBS="-lbsd $LIBS"
6622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6624
6625 namespace conftest {
6626 extern "C" int gethostbyname ();
6627 }
6628 int
6629 main (void)
6630 {
6631 return conftest::gethostbyname ();
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 if ac_fn_cxx_try_link "$LINENO"
6637 then :
6638 ac_cv_lib_bsd_gethostbyname=yes
6639 else case e in #(
6640 e) ac_cv_lib_bsd_gethostbyname=no ;;
6641 esac
6642 fi
6643 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6644 conftest$ac_exeext conftest.$ac_ext
6645 LIBS=$ac_check_lib_save_LIBS ;;
6646 esac
6647 fi
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6649 printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
6650 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
6651 then :
6652 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6653 fi
6654
6655 fi
6656 fi
6657
6658 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6659 # socket/setsockopt and other routines are undefined under SCO ODT
6660 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6661 # on later versions), says Simon Leinen: it contains gethostby*
6662 # variants that don't use the name server (or something). -lsocket
6663 # must be given before -lnsl if both are needed. We assume that
6664 # if connect needs -lnsl, so does gethostbyname.
6665 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6666 if test "x$ac_cv_func_connect" = xyes
6667 then :
6668
6669 fi
6670
6671 if test $ac_cv_func_connect = no; then
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6673 printf %s "checking for connect in -lsocket... " >&6; }
6674 if test ${ac_cv_lib_socket_connect+y}
6675 then :
6676 printf %s "(cached) " >&6
6677 else case e in #(
6678 e) ac_check_lib_save_LIBS=$LIBS
6679 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6682
6683 namespace conftest {
6684 extern "C" int connect ();
6685 }
6686 int
6687 main (void)
6688 {
6689 return conftest::connect ();
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 if ac_fn_cxx_try_link "$LINENO"
6695 then :
6696 ac_cv_lib_socket_connect=yes
6697 else case e in #(
6698 e) ac_cv_lib_socket_connect=no ;;
6699 esac
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6702 conftest$ac_exeext conftest.$ac_ext
6703 LIBS=$ac_check_lib_save_LIBS ;;
6704 esac
6705 fi
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6707 printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
6708 if test "x$ac_cv_lib_socket_connect" = xyes
6709 then :
6710 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6711 fi
6712
6713 fi
6714
6715 # Guillermo Gomez says -lposix is necessary on A/UX.
6716 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6717 if test "x$ac_cv_func_remove" = xyes
6718 then :
6719
6720 fi
6721
6722 if test $ac_cv_func_remove = no; then
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6724 printf %s "checking for remove in -lposix... " >&6; }
6725 if test ${ac_cv_lib_posix_remove+y}
6726 then :
6727 printf %s "(cached) " >&6
6728 else case e in #(
6729 e) ac_check_lib_save_LIBS=$LIBS
6730 LIBS="-lposix $LIBS"
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733
6734 namespace conftest {
6735 extern "C" int remove ();
6736 }
6737 int
6738 main (void)
6739 {
6740 return conftest::remove ();
6741 ;
6742 return 0;
6743 }
6744 _ACEOF
6745 if ac_fn_cxx_try_link "$LINENO"
6746 then :
6747 ac_cv_lib_posix_remove=yes
6748 else case e in #(
6749 e) ac_cv_lib_posix_remove=no ;;
6750 esac
6751 fi
6752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6753 conftest$ac_exeext conftest.$ac_ext
6754 LIBS=$ac_check_lib_save_LIBS ;;
6755 esac
6756 fi
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6758 printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
6759 if test "x$ac_cv_lib_posix_remove" = xyes
6760 then :
6761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6762 fi
6763
6764 fi
6765
6766 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6767 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6768 if test "x$ac_cv_func_shmat" = xyes
6769 then :
6770
6771 fi
6772
6773 if test $ac_cv_func_shmat = no; then
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6775 printf %s "checking for shmat in -lipc... " >&6; }
6776 if test ${ac_cv_lib_ipc_shmat+y}
6777 then :
6778 printf %s "(cached) " >&6
6779 else case e in #(
6780 e) ac_check_lib_save_LIBS=$LIBS
6781 LIBS="-lipc $LIBS"
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6784
6785 namespace conftest {
6786 extern "C" int shmat ();
6787 }
6788 int
6789 main (void)
6790 {
6791 return conftest::shmat ();
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_cxx_try_link "$LINENO"
6797 then :
6798 ac_cv_lib_ipc_shmat=yes
6799 else case e in #(
6800 e) ac_cv_lib_ipc_shmat=no ;;
6801 esac
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6804 conftest$ac_exeext conftest.$ac_ext
6805 LIBS=$ac_check_lib_save_LIBS ;;
6806 esac
6807 fi
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6809 printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
6810 if test "x$ac_cv_lib_ipc_shmat" = xyes
6811 then :
6812 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6813 fi
6814
6815 fi
6816 fi
6817
6818 # Check for libraries that X11R6 Xt/Xaw programs need.
6819 ac_save_LDFLAGS=$LDFLAGS
6820 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6821 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6822 # check for ICE first), but we must link in the order -lSM -lICE or
6823 # we get undefined symbols. So assume we have SM if we have ICE.
6824 # These have to be linked with before -lX11, unlike the other
6825 # libraries we check for below, so use a different variable.
6826 # John Interrante, Karl Berry
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6828 printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
6829 if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
6830 then :
6831 printf %s "(cached) " >&6
6832 else case e in #(
6833 e) ac_check_lib_save_LIBS=$LIBS
6834 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837
6838 namespace conftest {
6839 extern "C" int IceConnectionNumber ();
6840 }
6841 int
6842 main (void)
6843 {
6844 return conftest::IceConnectionNumber ();
6845 ;
6846 return 0;
6847 }
6848 _ACEOF
6849 if ac_fn_cxx_try_link "$LINENO"
6850 then :
6851 ac_cv_lib_ICE_IceConnectionNumber=yes
6852 else case e in #(
6853 e) ac_cv_lib_ICE_IceConnectionNumber=no ;;
6854 esac
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6857 conftest$ac_exeext conftest.$ac_ext
6858 LIBS=$ac_check_lib_save_LIBS ;;
6859 esac
6860 fi
6861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6862 printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6863 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
6864 then :
6865 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6866 fi
6867
6868 LDFLAGS=$ac_save_LDFLAGS
6869
6870 fi
6871
6872
6873 if test -n "$ac_tool_prefix"; then
6874 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6875 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 printf %s "checking for $ac_word... " >&6; }
6878 if test ${ac_cv_path_PKG_CONFIG+y}
6879 then :
6880 printf %s "(cached) " >&6
6881 else case e in #(
6882 e) case $PKG_CONFIG in
6883 [\\/]* | ?:[\\/]*)
6884 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6885 ;;
6886 *)
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890 IFS=$as_save_IFS
6891 case $as_dir in #(((
6892 '') as_dir=./ ;;
6893 */) ;;
6894 *) as_dir=$as_dir/ ;;
6895 esac
6896 for ac_exec_ext in '' $ac_executable_extensions; do
6897 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6898 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6900 break 2
6901 fi
6902 done
6903 done
6904 IFS=$as_save_IFS
6905
6906 ;;
6907 esac ;;
6908 esac
6909 fi
6910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6911 if test -n "$PKG_CONFIG"; then
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6913 printf "%s\n" "$PKG_CONFIG" >&6; }
6914 else
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 printf "%s\n" "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_path_PKG_CONFIG"; then
6922 ac_pt_PKG_CONFIG=$PKG_CONFIG
6923 # Extract the first word of "pkg-config", so it can be a program name with args.
6924 set dummy pkg-config; ac_word=$2
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 printf %s "checking for $ac_word... " >&6; }
6927 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6928 then :
6929 printf %s "(cached) " >&6
6930 else case e in #(
6931 e) case $ac_pt_PKG_CONFIG in
6932 [\\/]* | ?:[\\/]*)
6933 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6934 ;;
6935 *)
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939 IFS=$as_save_IFS
6940 case $as_dir in #(((
6941 '') as_dir=./ ;;
6942 */) ;;
6943 *) as_dir=$as_dir/ ;;
6944 esac
6945 for ac_exec_ext in '' $ac_executable_extensions; do
6946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6947 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6949 break 2
6950 fi
6951 done
6952 done
6953 IFS=$as_save_IFS
6954
6955 ;;
6956 esac ;;
6957 esac
6958 fi
6959 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6960 if test -n "$ac_pt_PKG_CONFIG"; then
6961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6962 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6963 else
6964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 printf "%s\n" "no" >&6; }
6966 fi
6967
6968 if test "x$ac_pt_PKG_CONFIG" = x; then
6969 PKG_CONFIG="no"
6970 else
6971 case $cross_compiling:$ac_tool_warned in
6972 yes:)
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975 ac_tool_warned=yes ;;
6976 esac
6977 PKG_CONFIG=$ac_pt_PKG_CONFIG
6978 fi
6979 else
6980 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6981 fi
6982
6983
6984
6985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libptytty (using pkg-config)" >&5
6986 printf %s "checking for libptytty (using pkg-config)... " >&6; }
6987 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libptytty; then
6988 PTYTTY_CFLAGS="`$PKG_CONFIG --cflags libptytty`"
6989 PTYTTY_LIBS="`$PKG_CONFIG --libs libptytty`"
6990
6991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6992 printf "%s\n" "ok" >&6; }
6993 :
6994 else
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996 printf "%s\n" "no" >&6; }
6997
6998 as_fn_error $? "unable to find libptytty" "$LINENO" 5
6999
7000 fi
7001
7002
7003
7004
7005
7006 image_lib=none
7007
7008 PIXBUF_CFLAGS=
7009 PIXBUF_LIBS=
7010
7011 if test x$support_pixbuf = xyes; then
7012
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0 (using pkg-config)" >&5
7014 printf %s "checking for gdk-pixbuf-2.0 (using pkg-config)... " >&6; }
7015 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
7016 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`"
7017 PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`"
7018
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7020 printf "%s\n" "ok" >&6; }
7021
7022 image_lib=gdk-pixbuf
7023
7024 printf "%s\n" "#define HAVE_PIXBUF 1" >>confdefs.h
7025
7026
7027 else
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 printf "%s\n" "no" >&6; }
7030 :
7031 fi
7032
7033 fi
7034
7035
7036
7037
7038 STARTUP_NOTIFICATION_CFLAGS=
7039 STARTUP_NOTIFICATION_LIBS=
7040
7041 if test x$support_startup_notification = xyes; then
7042
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0 (using pkg-config)" >&5
7044 printf %s "checking for libstartup-notification-1.0 (using pkg-config)... " >&6; }
7045 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
7046 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`"
7047 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`"
7048
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7050 printf "%s\n" "ok" >&6; }
7051
7052
7053 printf "%s\n" "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
7054
7055
7056 else
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 printf "%s\n" "no" >&6; }
7059 :
7060 fi
7061
7062 fi
7063
7064
7065
7066
7067 if test x$support_frills = xyes; then
7068
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xmu (using pkg-config)" >&5
7070 printf %s "checking for xmu (using pkg-config)... " >&6; }
7071 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then
7072 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`"
7073 XMU_LIBS="`$PKG_CONFIG --libs xmu`"
7074
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7076 printf "%s\n" "ok" >&6; }
7077
7078 X_LIBS="$XMU_LIBS $X_LIBS"
7079 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
7080
7081 printf "%s\n" "#define HAVE_XMU 1" >>confdefs.h
7082
7083
7084 else
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086 printf "%s\n" "no" >&6; }
7087 :
7088 fi
7089
7090 fi
7091
7092 ac_fn_cxx_check_header_compile "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default"
7093 if test "x$ac_cv_header_sys_byteorder_h" = xyes
7094 then :
7095 printf "%s\n" "#define HAVE_SYS_BYTEORDER_H 1" >>confdefs.h
7096
7097 fi
7098 ac_fn_cxx_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
7099 if test "x$ac_cv_header_sys_ioctl_h" = xyes
7100 then :
7101 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
7102
7103 fi
7104 ac_fn_cxx_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7105 if test "x$ac_cv_header_sys_sockio_h" = xyes
7106 then :
7107 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7108
7109 fi
7110 ac_fn_cxx_check_header_compile "$LINENO" "sys/strredir.h" "ac_cv_header_sys_strredir_h" "$ac_includes_default"
7111 if test "x$ac_cv_header_sys_strredir_h" = xyes
7112 then :
7113 printf "%s\n" "#define HAVE_SYS_STRREDIR_H 1" >>confdefs.h
7114
7115 fi
7116 ac_fn_cxx_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7117 if test "x$ac_cv_header_stdint_h" = xyes
7118 then :
7119 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
7120
7121 fi
7122 ac_fn_cxx_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7123 if test "x$ac_cv_header_wchar_h" = xyes
7124 then :
7125 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
7126
7127 fi
7128
7129
7130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
7131 printf %s "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
7132 if test ${rxvt_cv_xlib_illegal_access+y}
7133 then :
7134 printf %s "(cached) " >&6
7135 else case e in #(
7136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 /* end confdefs.h. */
7138
7139 #define XLIB_ILLEGAL_ACCESS
7140 #include <X11/Xlib.h>
7141
7142 int
7143 main (void)
7144 {
7145
7146 Display *dpy;
7147 dpy->xdefaults = (char *)0;
7148
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_cxx_try_compile "$LINENO"
7154 then :
7155 rxvt_cv_xlib_illegal_access=yes
7156 else case e in #(
7157 e) rxvt_cv_xlib_illegal_access=no
7158 ;;
7159 esac
7160 fi
7161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7162 esac
7163 fi
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
7165 printf "%s\n" "$rxvt_cv_xlib_illegal_access" >&6; }
7166 if test x$rxvt_cv_xlib_illegal_access = xyes; then
7167
7168 printf "%s\n" "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
7169
7170 fi
7171
7172 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
7173 if test "x$ac_cv_type_mode_t" = xyes
7174 then :
7175
7176 else case e in #(
7177 e)
7178 printf "%s\n" "#define mode_t int" >>confdefs.h
7179 ;;
7180 esac
7181 fi
7182
7183
7184 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
7185 "
7186 if test "x$ac_cv_type_pid_t" = xyes
7187 then :
7188
7189 else case e in #(
7190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192
7193 #if defined _WIN64 && !defined __CYGWIN__
7194 LLP64
7195 #endif
7196
7197 int
7198 main (void)
7199 {
7200
7201 ;
7202 return 0;
7203 }
7204
7205 _ACEOF
7206 if ac_fn_cxx_try_compile "$LINENO"
7207 then :
7208 ac_pid_type='int'
7209 else case e in #(
7210 e) ac_pid_type='__int64' ;;
7211 esac
7212 fi
7213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7214
7215 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7216
7217 ;;
7218 esac
7219 fi
7220
7221
7222 ac_fn_cxx_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
7223 if test "x$ac_cv_type_uid_t" = xyes
7224 then :
7225
7226 else case e in #(
7227 e)
7228 printf "%s\n" "#define uid_t int" >>confdefs.h
7229 ;;
7230 esac
7231 fi
7232
7233 ac_fn_cxx_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
7234 if test "x$ac_cv_type_gid_t" = xyes
7235 then :
7236
7237 else case e in #(
7238 e)
7239 printf "%s\n" "#define gid_t int" >>confdefs.h
7240 ;;
7241 esac
7242 fi
7243
7244 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
7245 case $ac_cv_c_int16_t in #(
7246 no|yes) ;; #(
7247 *)
7248
7249 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
7250 ;;
7251 esac
7252
7253 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
7254 case $ac_cv_c_uint16_t in #(
7255 no|yes) ;; #(
7256 *)
7257
7258
7259 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
7260 ;;
7261 esac
7262
7263 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7264 case $ac_cv_c_int32_t in #(
7265 no|yes) ;; #(
7266 *)
7267
7268 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
7269 ;;
7270 esac
7271
7272 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7273 case $ac_cv_c_uint32_t in #(
7274 no|yes) ;; #(
7275 *)
7276
7277 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
7278
7279
7280 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
7281 ;;
7282 esac
7283
7284
7285 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
7286 if test "x$ac_cv_func_unsetenv" = xyes
7287 then :
7288 printf "%s\n" "#define HAVE_UNSETENV 1" >>confdefs.h
7289
7290 fi
7291
7292
7293
7294
7295 save_LIBS=$LIBS
7296 save_CXXFLAGS=$CXXFLAGS
7297 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7298 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7299 if test x$support_xim = xyes; then
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7301 printf %s "checking for working Xlocale... " >&6; }
7302 if test ${rxvt_cv_func_xlocale+y}
7303 then :
7304 printf %s "(cached) " >&6
7305 else case e in #(
7306 e) if test "$cross_compiling" = yes
7307 then :
7308 :
7309 else case e in #(
7310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 /* end confdefs.h. */
7312
7313 #include <X11/Xlib.h>
7314 #include <stdlib.h>
7315 int main() {
7316 char *p;
7317 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
7318 exit (XSupportsLocale() ? 0 : 1);
7319 else
7320 exit (1);
7321 }
7322
7323 _ACEOF
7324 if ac_fn_cxx_try_run "$LINENO"
7325 then :
7326 rxvt_cv_func_xlocale=yes
7327 else case e in #(
7328 e) rxvt_cv_func_xlocale=no ;;
7329 esac
7330 fi
7331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7332 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7333 esac
7334 fi
7335 ;;
7336 esac
7337 fi
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7339 printf "%s\n" "$rxvt_cv_func_xlocale" >&6; }
7340 if test x$rxvt_cv_func_xlocale = xyes; then
7341
7342 printf "%s\n" "#define USE_XIM 1" >>confdefs.h
7343
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7345 printf %s "checking for broken XIM callback... " >&6; }
7346 if test ${rxvt_cv_broken_ximcb+y}
7347 then :
7348 printf %s "(cached) " >&6
7349 else case e in #(
7350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7352
7353 #include <X11/Xlib.h>
7354
7355 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7356
7357 void f() {
7358 XIMCallback cb;
7359 cb.callback = im_destroy_cb;
7360 }
7361
7362 _ACEOF
7363 if ac_fn_cxx_try_compile "$LINENO"
7364 then :
7365 rxvt_cv_broken_ximcb=yes
7366 else case e in #(
7367 e) rxvt_cv_broken_ximcb=no ;;
7368 esac
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7371 esac
7372 fi
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7374 printf "%s\n" "$rxvt_cv_broken_ximcb" >&6; }
7375
7376 if test x$rxvt_cv_broken_ximcb = xyes; then
7377
7378 printf "%s\n" "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7379
7380 fi
7381 fi
7382 fi
7383
7384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7385 printf %s "checking for working X setlocale... " >&6; }
7386 if test ${rxvt_cv_func_xsetlocale+y}
7387 then :
7388 printf %s "(cached) " >&6
7389 else case e in #(
7390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 #define X_LOCALE 1
7393 #include <X11/Xlocale.h>
7394 int
7395 main (void)
7396 {
7397 setlocale(LC_CTYPE, "");
7398 ;
7399 return 0;
7400 }
7401 _ACEOF
7402 if ac_fn_cxx_try_link "$LINENO"
7403 then :
7404 rxvt_cv_func_xsetlocale=yes
7405 else case e in #(
7406 e) rxvt_cv_func_xsetlocale=no ;;
7407 esac
7408 fi
7409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7410 conftest$ac_exeext conftest.$ac_ext ;;
7411 esac
7412 fi
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7414 printf "%s\n" "$rxvt_cv_func_xsetlocale" >&6; }
7415 if test x$rxvt_cv_func_xsetlocale = xyes; then
7416
7417 printf "%s\n" "#define HAVE_XSETLOCALE 1" >>confdefs.h
7418
7419 fi
7420 LIBS=$save_LIBS
7421 CXXFLAGS=$save_CXXFLAGS
7422
7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7424 printf %s "checking for working nl_langinfo... " >&6; }
7425 if test ${rxvt_cv_func_nl_langinfo+y}
7426 then :
7427 printf %s "(cached) " >&6
7428 else case e in #(
7429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 /* end confdefs.h. */
7431 #include <langinfo.h>
7432 int
7433 main (void)
7434 {
7435 nl_langinfo(CODESET);
7436 ;
7437 return 0;
7438 }
7439 _ACEOF
7440 if ac_fn_cxx_try_link "$LINENO"
7441 then :
7442 rxvt_cv_func_nl_langinfo=yes
7443 else case e in #(
7444 e) rxvt_cv_func_nl_langinfo=no ;;
7445 esac
7446 fi
7447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7448 conftest$ac_exeext conftest.$ac_ext ;;
7449 esac
7450 fi
7451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7452 printf "%s\n" "$rxvt_cv_func_nl_langinfo" >&6; }
7453 if test x$rxvt_cv_func_nl_langinfo = xyes; then
7454
7455 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7456
7457 fi
7458
7459 support_image=no
7460 if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7461 support_image=yes
7462 fi
7463 if test x$support_xft = xyes || test x$support_image = xyes; then
7464 rxvt_have_xrender=no
7465
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrender (using pkg-config)" >&5
7467 printf %s "checking for xrender (using pkg-config)... " >&6; }
7468 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7469 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`"
7470 XRENDER_LIBS="`$PKG_CONFIG --libs xrender`"
7471
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7473 printf "%s\n" "ok" >&6; }
7474
7475 X_LIBS="$XRENDER_LIBS $X_LIBS"
7476 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
7477 rxvt_have_xrender=yes
7478
7479 save_LIBS="$LIBS"
7480 LIBS="$LIBS $X_LIBS"
7481 ac_fn_cxx_check_header_compile "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7482 if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes
7483 then :
7484
7485 else case e in #(
7486 e) rxvt_have_xrender=no ;;
7487 esac
7488 fi
7489
7490 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7491 if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes
7492 then :
7493
7494 else case e in #(
7495 e) rxvt_have_xrender=no ;;
7496 esac
7497 fi
7498
7499 LIBS="$save_LIBS"
7500
7501 else
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 printf "%s\n" "no" >&6; }
7504 :
7505 fi
7506
7507 fi
7508
7509 if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7510
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft (using pkg-config)" >&5
7512 printf %s "checking for fontconfig xft (using pkg-config)... " >&6; }
7513 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then
7514 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`"
7515 XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`"
7516
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7518 printf "%s\n" "ok" >&6; }
7519
7520 X_LIBS="$XFT_LIBS $X_LIBS"
7521 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
7522
7523 else
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525 printf "%s\n" "no" >&6; }
7526
7527 # Extract the first word of "xft-config", so it can be a program name with args.
7528 set dummy xft-config; ac_word=$2
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 printf %s "checking for $ac_word... " >&6; }
7531 if test ${ac_cv_path_XFT_CONFIG+y}
7532 then :
7533 printf %s "(cached) " >&6
7534 else case e in #(
7535 e) case $XFT_CONFIG in
7536 [\\/]* | ?:[\\/]*)
7537 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7538 ;;
7539 *)
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543 IFS=$as_save_IFS
7544 case $as_dir in #(((
7545 '') as_dir=./ ;;
7546 */) ;;
7547 *) as_dir=$as_dir/ ;;
7548 esac
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7551 ac_cv_path_XFT_CONFIG="$as_dir$ac_word$ac_exec_ext"
7552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555 done
7556 done
7557 IFS=$as_save_IFS
7558
7559 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7560 ;;
7561 esac ;;
7562 esac
7563 fi
7564 XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7565 if test -n "$XFT_CONFIG"; then
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7567 printf "%s\n" "$XFT_CONFIG" >&6; }
7568 else
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 printf "%s\n" "no" >&6; }
7571 fi
7572
7573
7574 if test $XFT_CONFIG != no; then
7575 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7576 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7577 fi
7578
7579 fi
7580
7581
7582 save_LIBS="$LIBS"
7583 LIBS="$LIBS $X_LIBS"
7584 for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h
7585 do :
7586 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
7587 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7588 if eval test \"x\$"$as_ac_Header"\" = x"yes"
7589 then :
7590 cat >>confdefs.h <<_ACEOF
7591 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
7592 _ACEOF
7593
7594 else case e in #(
7595 e) support_xft=no ;;
7596 esac
7597 fi
7598
7599 done
7600
7601 for ac_func in XftDrawString32 FcPatternGet
7602 do :
7603 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
7604 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7605 if eval test \"x\$"$as_ac_var"\" = x"yes"
7606 then :
7607 cat >>confdefs.h <<_ACEOF
7608 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
7609 _ACEOF
7610
7611 else case e in #(
7612 e) support_xft=no ;;
7613 esac
7614 fi
7615
7616 done
7617 LIBS="$save_LIBS"
7618
7619 if test x$support_xft = xyes; then
7620
7621 printf "%s\n" "#define XFT 1" >>confdefs.h
7622
7623 fi
7624 fi
7625
7626 if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5
7628 printf %s "checking for Render >= 0.11... " >&6; }
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631
7632 #include <X11/extensions/Xrender.h>
7633 #if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
7634 error
7635 #endif
7636
7637 int
7638 main (void)
7639 {
7640
7641 ;
7642 return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_cxx_try_compile "$LINENO"
7646 then :
7647
7648 else case e in #(
7649 e) support_image=no ;;
7650 esac
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7653 if test x$support_image = xyes; then
7654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7655 printf "%s\n" "ok" >&6; }
7656 LIBS="$LIBS -lm"
7657
7658 printf "%s\n" "#define XRENDER 1" >>confdefs.h
7659
7660
7661 if test x$support_inheritpixmap = xyes; then
7662
7663 printf "%s\n" "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7664
7665 fi
7666 else
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 printf "%s\n" "no" >&6; }
7669 fi
7670 fi
7671
7672 if test x$support_styles = xyes; then
7673
7674 printf "%s\n" "#define ENABLE_STYLES 1" >>confdefs.h
7675
7676 fi
7677 if test x$support_iso14755 = xyes; then
7678
7679 printf "%s\n" "#define ISO_14755 1" >>confdefs.h
7680
7681 fi
7682 if test x$support_8bitctrls = xyes; then
7683
7684 printf "%s\n" "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7685
7686 fi
7687 if test x$support_fading = xyes; then
7688
7689 printf "%s\n" "#define OFF_FOCUS_FADING 1" >>confdefs.h
7690
7691 fi
7692 if test x$support_keepscrolling = xno; then
7693
7694 printf "%s\n" "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7695
7696 fi
7697 if test x$support_selectionscrolling = xyes; then
7698
7699 printf "%s\n" "#define SELECTION_SCROLLING 1" >>confdefs.h
7700
7701 fi
7702 if test x$support_frills = xyes; then
7703
7704 printf "%s\n" "#define ENABLE_FRILLS 1" >>confdefs.h
7705
7706 fi
7707 if test x$support_mousewheel = xyes; then
7708
7709 printf "%s\n" "#define MOUSE_WHEEL 1" >>confdefs.h
7710
7711 fi
7712 if test x$support_mouseslipwheel = xyes; then
7713
7714 printf "%s\n" "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7715
7716 fi
7717
7718 scrolltypes=plain
7719
7720 printf "%s\n" "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7721
7722
7723 if test x$support_scroll_rxvt = xyes; then
7724
7725 printf "%s\n" "#define RXVT_SCROLLBAR 1" >>confdefs.h
7726
7727 scrolltypes="$scrolltypes rxvt"
7728 fi
7729 if test x$support_scroll_next = xyes; then
7730
7731 printf "%s\n" "#define NEXT_SCROLLBAR 1" >>confdefs.h
7732
7733 scrolltypes="$scrolltypes next"
7734 fi
7735 if test x$support_scroll_xterm = xyes; then
7736
7737 printf "%s\n" "#define XTERM_SCROLLBAR 1" >>confdefs.h
7738
7739 scrolltypes="$scrolltypes xterm"
7740 fi
7741 if test x$support_pointer_blank = xyes; then
7742
7743 printf "%s\n" "#define POINTER_BLANK 1" >>confdefs.h
7744
7745 fi
7746 if test x$support_text_blink = xyes; then
7747
7748 printf "%s\n" "#define TEXT_BLINK 1" >>confdefs.h
7749
7750 fi
7751 if test x$support_unicode3 = xyes; then
7752
7753 printf "%s\n" "#define UNICODE_3 1" >>confdefs.h
7754
7755 fi
7756 if test x$support_combining = xyes; then
7757
7758 printf "%s\n" "#define ENABLE_COMBINING 1" >>confdefs.h
7759
7760 fi
7761 if test x$codesets = xall; then
7762 codesets=jp,jp-ext,kr,zh,zh-ext
7763 fi
7764
7765 printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h
7766
7767
7768 printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h
7769
7770 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7771 case "$codeset" in
7772 JP )
7773 printf "%s\n" "#define ENCODING_JP 1" >>confdefs.h
7774 ;;
7775 JP_EXT )
7776 printf "%s\n" "#define ENCODING_JP_EXT 1" >>confdefs.h
7777 ;;
7778 KR )
7779 printf "%s\n" "#define ENCODING_KR 1" >>confdefs.h
7780 ;;
7781 ZH )
7782 printf "%s\n" "#define ENCODING_ZH 1" >>confdefs.h
7783 ;;
7784 ZH_EXT )
7785 printf "%s\n" "#define ENCODING_ZH_EXT 1" >>confdefs.h
7786 ;;
7787 esac
7788 done
7789
7790 IF_PERL=\#
7791 if test x$support_perl = xyes; then
7792 # Extract the first word of "perl5", so it can be a program name with args.
7793 set dummy perl5; ac_word=$2
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 printf %s "checking for $ac_word... " >&6; }
7796 if test ${ac_cv_path_PERL+y}
7797 then :
7798 printf %s "(cached) " >&6
7799 else case e in #(
7800 e) case $PERL in
7801 [\\/]* | ?:[\\/]*)
7802 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7803 ;;
7804 *)
7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 for as_dir in $PATH
7807 do
7808 IFS=$as_save_IFS
7809 case $as_dir in #(((
7810 '') as_dir=./ ;;
7811 */) ;;
7812 *) as_dir=$as_dir/ ;;
7813 esac
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7816 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
7817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820 done
7821 done
7822 IFS=$as_save_IFS
7823
7824 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
7825 ;;
7826 esac ;;
7827 esac
7828 fi
7829 PERL=$ac_cv_path_PERL
7830 if test -n "$PERL"; then
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7832 printf "%s\n" "$PERL" >&6; }
7833 else
7834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 printf "%s\n" "no" >&6; }
7836 fi
7837
7838
7839
7840
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xext (using pkg-config)" >&5
7842 printf %s "checking for xext (using pkg-config)... " >&6; }
7843 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xext; then
7844 XEXT_CFLAGS="`$PKG_CONFIG --cflags xext`"
7845 XEXT_LIBS="`$PKG_CONFIG --libs xext`"
7846
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7848 printf "%s\n" "ok" >&6; }
7849 :
7850 else
7851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852 printf "%s\n" "no" >&6; }
7853
7854 as_fn_error $? "unable to find xext, required for perl" "$LINENO" 5
7855
7856 fi
7857
7858
7859 X_LIBS="$XEXT_LIBS $X_LIBS"
7860 CPPFLAGS="$CPPFLAGS $XEXT_CFLAGS"
7861
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
7863 printf %s "checking for $PERL suitability... " >&6; }
7864 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
7865
7866 save_CXXFLAGS="$CXXFLAGS"
7867 save_LIBS="$LIBS"
7868 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
7869 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872
7873 #include <EXTERN.h>
7874 #include <perl.h>
7875 #include <XSUB.h>
7876
7877 int
7878 main (void)
7879 {
7880
7881 PerlInterpreter *perl = perl_alloc ();
7882
7883 ;
7884 return 0;
7885 }
7886 _ACEOF
7887 if ac_fn_cxx_try_link "$LINENO"
7888 then :
7889 rxvt_perl_link=yes
7890 else case e in #(
7891 e) rxvt_perl_link=no ;;
7892 esac
7893 fi
7894 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7895 conftest$ac_exeext conftest.$ac_ext
7896 CXXFLAGS="$save_CXXFLAGS"
7897 LIBS="$save_LIBS"
7898
7899 if test x$rxvt_perl_link = xyes; then
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7901 printf "%s\n" "ok" >&6; }
7902
7903 printf "%s\n" "#define ENABLE_PERL 1" >>confdefs.h
7904
7905 IF_PERL=
7906 PERL_O=rxvtperl.o
7907 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
7908 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
7909 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
7910 else
7911 as_fn_error $? "no, unable to link" "$LINENO" 5
7912 fi
7913 else
7914 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
7915 fi
7916 fi
7917
7918
7919
7920
7921
7922
7923
7924
7925 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
7926
7927 cat >confcache <<\_ACEOF
7928 # This file is a shell script that caches the results of configure
7929 # tests run on this system so they can be shared between configure
7930 # scripts and configure runs, see configure's option --config-cache.
7931 # It is not useful on other systems. If it contains results you don't
7932 # want to keep, you may remove or edit it.
7933 #
7934 # config.status only pays attention to the cache file if you give it
7935 # the --recheck option to rerun configure.
7936 #
7937 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
7938 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
7939 # following values.
7940
7941 _ACEOF
7942
7943 # The following way of writing the cache mishandles newlines in values,
7944 # but we know of no workaround that is simple, portable, and efficient.
7945 # So, we kill variables containing newlines.
7946 # Ultrix sh set writes to stderr and can't be redirected directly,
7947 # and sets the high bit in the cache file unless we assign to the vars.
7948 (
7949 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7950 eval ac_val=\$$ac_var
7951 case $ac_val in #(
7952 *${as_nl}*)
7953 case $ac_var in #(
7954 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7955 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7956 esac
7957 case $ac_var in #(
7958 _ | IFS | as_nl) ;; #(
7959 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7960 *) { eval $ac_var=; unset $ac_var;} ;;
7961 esac ;;
7962 esac
7963 done
7964
7965 (set) 2>&1 |
7966 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7967 *${as_nl}ac_space=\ *)
7968 # 'set' does not quote correctly, so add quotes: double-quote
7969 # substitution turns \\\\ into \\, and sed turns \\ into \.
7970 sed -n \
7971 "s/'/'\\\\''/g;
7972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7973 ;; #(
7974 *)
7975 # 'set' quotes correctly as required by POSIX, so do not add quotes.
7976 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7977 ;;
7978 esac |
7979 sort
7980 ) |
7981 sed '
7982 /^ac_cv_env_/b end
7983 t clear
7984 :clear
7985 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7986 t end
7987 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7988 :end' >>confcache
7989 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7990 if test -w "$cache_file"; then
7991 if test "x$cache_file" != "x/dev/null"; then
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7993 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
7994 if test ! -f "$cache_file" || test -h "$cache_file"; then
7995 cat confcache >"$cache_file"
7996 else
7997 case $cache_file in #(
7998 */* | ?:*)
7999 mv -f confcache "$cache_file"$$ &&
8000 mv -f "$cache_file"$$ "$cache_file" ;; #(
8001 *)
8002 mv -f confcache "$cache_file" ;;
8003 esac
8004 fi
8005 fi
8006 else
8007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8008 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8009 fi
8010 fi
8011 rm -f confcache
8012
8013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8014 # Let make expand exec_prefix.
8015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8016
8017 DEFS=-DHAVE_CONFIG_H
8018
8019 ac_libobjs=
8020 ac_ltlibobjs=
8021 U=
8022 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8023 # 1. Remove the extension, and $U if already installed.
8024 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8025 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8026 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8027 # will be set to the directory where LIBOBJS objects are built.
8028 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8029 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8030 done
8031 LIBOBJS=$ac_libobjs
8032
8033 LTLIBOBJS=$ac_ltlibobjs
8034
8035
8036
8037 : "${CONFIG_STATUS=./config.status}"
8038 ac_write_fail=0
8039 ac_clean_files_save=$ac_clean_files
8040 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8042 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8043 as_write_fail=0
8044 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8045 #! $SHELL
8046 # Generated by $as_me.
8047 # Run this file to recreate the current configuration.
8048 # Compiler output produced by configure, useful for debugging
8049 # configure, is in config.log if it exists.
8050
8051 debug=false
8052 ac_cs_recheck=false
8053 ac_cs_silent=false
8054
8055 SHELL=\${CONFIG_SHELL-$SHELL}
8056 export SHELL
8057 _ASEOF
8058 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8059 ## -------------------- ##
8060 ## M4sh Initialization. ##
8061 ## -------------------- ##
8062
8063 # Be more Bourne compatible
8064 DUALCASE=1; export DUALCASE # for MKS sh
8065 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8066 then :
8067 emulate sh
8068 NULLCMD=:
8069 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8070 # is contrary to our usage. Disable this feature.
8071 alias -g '${1+"$@"}'='"$@"'
8072 setopt NO_GLOB_SUBST
8073 else case e in #(
8074 e) case `(set -o) 2>/dev/null` in #(
8075 *posix*) :
8076 set -o posix ;; #(
8077 *) :
8078 ;;
8079 esac ;;
8080 esac
8081 fi
8082
8083
8084
8085 # Reset variables that may have inherited troublesome values from
8086 # the environment.
8087
8088 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8089 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8090 # side effect of setting IFS to empty, thus disabling word splitting.)
8091 # Quoting is to prevent editors from complaining about space-tab.
8092 as_nl='
8093 '
8094 export as_nl
8095 IFS=" "" $as_nl"
8096
8097 PS1='$ '
8098 PS2='> '
8099 PS4='+ '
8100
8101 # Ensure predictable behavior from utilities with locale-dependent output.
8102 LC_ALL=C
8103 export LC_ALL
8104 LANGUAGE=C
8105 export LANGUAGE
8106
8107 # We cannot yet rely on "unset" to work, but we need these variables
8108 # to be unset--not just set to an empty or harmless value--now, to
8109 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8110 # also avoids known problems related to "unset" and subshell syntax
8111 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8112 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8113 do eval test \${$as_var+y} \
8114 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8115 done
8116
8117 # Ensure that fds 0, 1, and 2 are open.
8118 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8119 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8120 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8121
8122 # The user is always right.
8123 if ${PATH_SEPARATOR+false} :; then
8124 PATH_SEPARATOR=:
8125 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8126 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8127 PATH_SEPARATOR=';'
8128 }
8129 fi
8130
8131
8132 # Find who we are. Look in the path if we contain no directory separator.
8133 as_myself=
8134 case $0 in #((
8135 *[\\/]* ) as_myself=$0 ;;
8136 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137 for as_dir in $PATH
8138 do
8139 IFS=$as_save_IFS
8140 case $as_dir in #(((
8141 '') as_dir=./ ;;
8142 */) ;;
8143 *) as_dir=$as_dir/ ;;
8144 esac
8145 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8146 done
8147 IFS=$as_save_IFS
8148
8149 ;;
8150 esac
8151 # We did not find ourselves, most probably we were run as 'sh COMMAND'
8152 # in which case we are not to be found in the path.
8153 if test "x$as_myself" = x; then
8154 as_myself=$0
8155 fi
8156 if test ! -f "$as_myself"; then
8157 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8158 exit 1
8159 fi
8160
8161
8162
8163 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8164 # ----------------------------------------
8165 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8166 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8167 # script with STATUS, using 1 if that was 0.
8168 as_fn_error ()
8169 {
8170 as_status=$1; test $as_status -eq 0 && as_status=1
8171 if test "$4"; then
8172 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8173 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8174 fi
8175 printf "%s\n" "$as_me: error: $2" >&2
8176 as_fn_exit $as_status
8177 } # as_fn_error
8178
8179
8180 # as_fn_set_status STATUS
8181 # -----------------------
8182 # Set $? to STATUS, without forking.
8183 as_fn_set_status ()
8184 {
8185 return $1
8186 } # as_fn_set_status
8187
8188 # as_fn_exit STATUS
8189 # -----------------
8190 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8191 as_fn_exit ()
8192 {
8193 set +e
8194 as_fn_set_status $1
8195 exit $1
8196 } # as_fn_exit
8197
8198 # as_fn_unset VAR
8199 # ---------------
8200 # Portably unset VAR.
8201 as_fn_unset ()
8202 {
8203 { eval $1=; unset $1;}
8204 }
8205 as_unset=as_fn_unset
8206
8207 # as_fn_append VAR VALUE
8208 # ----------------------
8209 # Append the text in VALUE to the end of the definition contained in VAR. Take
8210 # advantage of any shell optimizations that allow amortized linear growth over
8211 # repeated appends, instead of the typical quadratic growth present in naive
8212 # implementations.
8213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8214 then :
8215 eval 'as_fn_append ()
8216 {
8217 eval $1+=\$2
8218 }'
8219 else case e in #(
8220 e) as_fn_append ()
8221 {
8222 eval $1=\$$1\$2
8223 } ;;
8224 esac
8225 fi # as_fn_append
8226
8227 # as_fn_arith ARG...
8228 # ------------------
8229 # Perform arithmetic evaluation on the ARGs, and store the result in the
8230 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8231 # must be portable across $(()) and expr.
8232 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8233 then :
8234 eval 'as_fn_arith ()
8235 {
8236 as_val=$(( $* ))
8237 }'
8238 else case e in #(
8239 e) as_fn_arith ()
8240 {
8241 as_val=`expr "$@" || test $? -eq 1`
8242 } ;;
8243 esac
8244 fi # as_fn_arith
8245
8246
8247 if expr a : '\(a\)' >/dev/null 2>&1 &&
8248 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8249 as_expr=expr
8250 else
8251 as_expr=false
8252 fi
8253
8254 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8255 as_basename=basename
8256 else
8257 as_basename=false
8258 fi
8259
8260 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8261 as_dirname=dirname
8262 else
8263 as_dirname=false
8264 fi
8265
8266 as_me=`$as_basename -- "$0" ||
8267 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8268 X"$0" : 'X\(//\)$' \| \
8269 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8270 printf "%s\n" X/"$0" |
8271 sed '/^.*\/\([^/][^/]*\)\/*$/{
8272 s//\1/
8273 q
8274 }
8275 /^X\/\(\/\/\)$/{
8276 s//\1/
8277 q
8278 }
8279 /^X\/\(\/\).*/{
8280 s//\1/
8281 q
8282 }
8283 s/.*/./; q'`
8284
8285 # Avoid depending upon Character Ranges.
8286 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8287 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8288 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8289 as_cr_digits='0123456789'
8290 as_cr_alnum=$as_cr_Letters$as_cr_digits
8291
8292
8293 # Determine whether it's possible to make 'echo' print without a newline.
8294 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8295 # for compatibility with existing Makefiles.
8296 ECHO_C= ECHO_N= ECHO_T=
8297 case `echo -n x` in #(((((
8298 -n*)
8299 case `echo 'xy\c'` in
8300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8301 xy) ECHO_C='\c';;
8302 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8303 ECHO_T=' ';;
8304 esac;;
8305 *)
8306 ECHO_N='-n';;
8307 esac
8308
8309 # For backward compatibility with old third-party macros, we provide
8310 # the shell variables $as_echo and $as_echo_n. New code should use
8311 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8312 as_echo='printf %s\n'
8313 as_echo_n='printf %s'
8314
8315 rm -f conf$$ conf$$.exe conf$$.file
8316 if test -d conf$$.dir; then
8317 rm -f conf$$.dir/conf$$.file
8318 else
8319 rm -f conf$$.dir
8320 mkdir conf$$.dir 2>/dev/null
8321 fi
8322 if (echo >conf$$.file) 2>/dev/null; then
8323 if ln -s conf$$.file conf$$ 2>/dev/null; then
8324 as_ln_s='ln -s'
8325 # ... but there are two gotchas:
8326 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
8327 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
8328 # In both cases, we have to default to 'cp -pR'.
8329 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8330 as_ln_s='cp -pR'
8331 elif ln conf$$.file conf$$ 2>/dev/null; then
8332 as_ln_s=ln
8333 else
8334 as_ln_s='cp -pR'
8335 fi
8336 else
8337 as_ln_s='cp -pR'
8338 fi
8339 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8340 rmdir conf$$.dir 2>/dev/null
8341
8342
8343 # as_fn_mkdir_p
8344 # -------------
8345 # Create "$as_dir" as a directory, including parents if necessary.
8346 as_fn_mkdir_p ()
8347 {
8348
8349 case $as_dir in #(
8350 -*) as_dir=./$as_dir;;
8351 esac
8352 test -d "$as_dir" || eval $as_mkdir_p || {
8353 as_dirs=
8354 while :; do
8355 case $as_dir in #(
8356 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8357 *) as_qdir=$as_dir;;
8358 esac
8359 as_dirs="'$as_qdir' $as_dirs"
8360 as_dir=`$as_dirname -- "$as_dir" ||
8361 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8362 X"$as_dir" : 'X\(//\)[^/]' \| \
8363 X"$as_dir" : 'X\(//\)$' \| \
8364 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8365 printf "%s\n" X"$as_dir" |
8366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8367 s//\1/
8368 q
8369 }
8370 /^X\(\/\/\)[^/].*/{
8371 s//\1/
8372 q
8373 }
8374 /^X\(\/\/\)$/{
8375 s//\1/
8376 q
8377 }
8378 /^X\(\/\).*/{
8379 s//\1/
8380 q
8381 }
8382 s/.*/./; q'`
8383 test -d "$as_dir" && break
8384 done
8385 test -z "$as_dirs" || eval "mkdir $as_dirs"
8386 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8387
8388
8389 } # as_fn_mkdir_p
8390 if mkdir -p . 2>/dev/null; then
8391 as_mkdir_p='mkdir -p "$as_dir"'
8392 else
8393 test -d ./-p && rmdir ./-p
8394 as_mkdir_p=false
8395 fi
8396
8397
8398 # as_fn_executable_p FILE
8399 # -----------------------
8400 # Test if FILE is an executable regular file.
8401 as_fn_executable_p ()
8402 {
8403 test -f "$1" && test -x "$1"
8404 } # as_fn_executable_p
8405 as_test_x='test -x'
8406 as_executable_p=as_fn_executable_p
8407
8408 # Sed expression to map a string onto a valid CPP name.
8409 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
8410 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
8411
8412 # Sed expression to map a string onto a valid variable name.
8413 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8414 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
8415
8416
8417 exec 6>&1
8418 ## ----------------------------------- ##
8419 ## Main body of $CONFIG_STATUS script. ##
8420 ## ----------------------------------- ##
8421 _ASEOF
8422 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8423
8424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8425 # Save the log message, to keep $0 and so on meaningful, and to
8426 # report actual input values of CONFIG_FILES etc. instead of their
8427 # values after options handling.
8428 ac_log="
8429 This file was extended by $as_me, which was
8430 generated by GNU Autoconf 2.72. Invocation command line was
8431
8432 CONFIG_FILES = $CONFIG_FILES
8433 CONFIG_HEADERS = $CONFIG_HEADERS
8434 CONFIG_LINKS = $CONFIG_LINKS
8435 CONFIG_COMMANDS = $CONFIG_COMMANDS
8436 $ $0 $@
8437
8438 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8439 "
8440
8441 _ACEOF
8442
8443 case $ac_config_files in *"
8444 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8445 esac
8446
8447 case $ac_config_headers in *"
8448 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8449 esac
8450
8451
8452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8453 # Files that config.status was made for.
8454 config_files="$ac_config_files"
8455 config_headers="$ac_config_headers"
8456
8457 _ACEOF
8458
8459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8460 ac_cs_usage="\
8461 '$as_me' instantiates files and other configuration actions
8462 from templates according to the current configuration. Unless the files
8463 and actions are specified as TAGs, all are instantiated by default.
8464
8465 Usage: $0 [OPTION]... [TAG]...
8466
8467 -h, --help print this help, then exit
8468 -V, --version print version number and configuration settings, then exit
8469 --config print configuration, then exit
8470 -q, --quiet, --silent
8471 do not print progress messages
8472 -d, --debug don't remove temporary files
8473 --recheck update $as_me by reconfiguring in the same conditions
8474 --file=FILE[:TEMPLATE]
8475 instantiate the configuration file FILE
8476 --header=FILE[:TEMPLATE]
8477 instantiate the configuration header FILE
8478
8479 Configuration files:
8480 $config_files
8481
8482 Configuration headers:
8483 $config_headers
8484
8485 Report bugs to the package provider."
8486
8487 _ACEOF
8488 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8489 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
8490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8491 ac_cs_config='$ac_cs_config_escaped'
8492 ac_cs_version="\\
8493 config.status
8494 configured by $0, generated by GNU Autoconf 2.72,
8495 with options \\"\$ac_cs_config\\"
8496
8497 Copyright (C) 2023 Free Software Foundation, Inc.
8498 This config.status script is free software; the Free Software Foundation
8499 gives unlimited permission to copy, distribute and modify it."
8500
8501 ac_pwd='$ac_pwd'
8502 srcdir='$srcdir'
8503 INSTALL='$INSTALL'
8504 test -n "\$AWK" || AWK=awk
8505 _ACEOF
8506
8507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8508 # The default lists apply if the user does not specify any file.
8509 ac_need_defaults=:
8510 while test $# != 0
8511 do
8512 case $1 in
8513 --*=?*)
8514 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8515 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8516 ac_shift=:
8517 ;;
8518 --*=)
8519 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8520 ac_optarg=
8521 ac_shift=:
8522 ;;
8523 *)
8524 ac_option=$1
8525 ac_optarg=$2
8526 ac_shift=shift
8527 ;;
8528 esac
8529
8530 case $ac_option in
8531 # Handling of the options.
8532 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8533 ac_cs_recheck=: ;;
8534 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8535 printf "%s\n" "$ac_cs_version"; exit ;;
8536 --config | --confi | --conf | --con | --co | --c )
8537 printf "%s\n" "$ac_cs_config"; exit ;;
8538 --debug | --debu | --deb | --de | --d | -d )
8539 debug=: ;;
8540 --file | --fil | --fi | --f )
8541 $ac_shift
8542 case $ac_optarg in
8543 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8544 '') as_fn_error $? "missing file argument" ;;
8545 esac
8546 as_fn_append CONFIG_FILES " '$ac_optarg'"
8547 ac_need_defaults=false;;
8548 --header | --heade | --head | --hea )
8549 $ac_shift
8550 case $ac_optarg in
8551 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8552 esac
8553 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8554 ac_need_defaults=false;;
8555 --he | --h)
8556 # Conflict between --help and --header
8557 as_fn_error $? "ambiguous option: '$1'
8558 Try '$0 --help' for more information.";;
8559 --help | --hel | -h )
8560 printf "%s\n" "$ac_cs_usage"; exit ;;
8561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8563 ac_cs_silent=: ;;
8564
8565 # This is an error.
8566 -*) as_fn_error $? "unrecognized option: '$1'
8567 Try '$0 --help' for more information." ;;
8568
8569 *) as_fn_append ac_config_targets " $1"
8570 ac_need_defaults=false ;;
8571
8572 esac
8573 shift
8574 done
8575
8576 ac_configure_extra_args=
8577
8578 if $ac_cs_silent; then
8579 exec 6>/dev/null
8580 ac_configure_extra_args="$ac_configure_extra_args --silent"
8581 fi
8582
8583 _ACEOF
8584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8585 if \$ac_cs_recheck; then
8586 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8587 shift
8588 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8589 CONFIG_SHELL='$SHELL'
8590 export CONFIG_SHELL
8591 exec "\$@"
8592 fi
8593
8594 _ACEOF
8595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8596 exec 5>>config.log
8597 {
8598 echo
8599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8600 ## Running $as_me. ##
8601 _ASBOX
8602 printf "%s\n" "$ac_log"
8603 } >&5
8604
8605 _ACEOF
8606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8607 _ACEOF
8608
8609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8610
8611 # Handling of arguments.
8612 for ac_config_target in $ac_config_targets
8613 do
8614 case $ac_config_target in
8615 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8616 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8617 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8618 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8619
8620 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
8621 esac
8622 done
8623
8624
8625 # If the user did not use the arguments to specify the items to instantiate,
8626 # then the envvar interface is used. Set only those that are not.
8627 # We use the long form for the default assignment because of an extremely
8628 # bizarre bug on SunOS 4.1.3.
8629 if $ac_need_defaults; then
8630 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8631 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8632 fi
8633
8634 # Have a temporary directory for convenience. Make it in the build tree
8635 # simply because there is no reason against having it here, and in addition,
8636 # creating and moving files from /tmp can sometimes cause problems.
8637 # Hook for its removal unless debugging.
8638 # Note that there is a small window in which the directory will not be cleaned:
8639 # after its creation but before its name has been assigned to '$tmp'.
8640 $debug ||
8641 {
8642 tmp= ac_tmp=
8643 trap 'exit_status=$?
8644 : "${ac_tmp:=$tmp}"
8645 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8646 ' 0
8647 trap 'as_fn_exit 1' 1 2 13 15
8648 }
8649 # Create a (secure) tmp directory for tmp files.
8650
8651 {
8652 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8653 test -d "$tmp"
8654 } ||
8655 {
8656 tmp=./conf$$-$RANDOM
8657 (umask 077 && mkdir "$tmp")
8658 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8659 ac_tmp=$tmp
8660
8661 # Set up the scripts for CONFIG_FILES section.
8662 # No need to generate them if there are no CONFIG_FILES.
8663 # This happens for instance with './config.status config.h'.
8664 if test -n "$CONFIG_FILES"; then
8665
8666
8667 ac_cr=`echo X | tr X '\015'`
8668 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8669 # But we know of no other shell where ac_cr would be empty at this
8670 # point, so we can use a bashism as a fallback.
8671 if test "x$ac_cr" = x; then
8672 eval ac_cr=\$\'\\r\'
8673 fi
8674 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8675 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8676 ac_cs_awk_cr='\\r'
8677 else
8678 ac_cs_awk_cr=$ac_cr
8679 fi
8680
8681 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8682 _ACEOF
8683
8684
8685 {
8686 echo "cat >conf$$subs.awk <<_ACEOF" &&
8687 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8688 echo "_ACEOF"
8689 } >conf$$subs.sh ||
8690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8691 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8692 ac_delim='%!_!# '
8693 for ac_last_try in false false false false false :; do
8694 . ./conf$$subs.sh ||
8695 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8696
8697 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8698 if test $ac_delim_n = $ac_delim_num; then
8699 break
8700 elif $ac_last_try; then
8701 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8702 else
8703 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8704 fi
8705 done
8706 rm -f conf$$subs.sh
8707
8708 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8709 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8710 _ACEOF
8711 sed -n '
8712 h
8713 s/^/S["/; s/!.*/"]=/
8714 p
8715 g
8716 s/^[^!]*!//
8717 :repl
8718 t repl
8719 s/'"$ac_delim"'$//
8720 t delim
8721 :nl
8722 h
8723 s/\(.\{148\}\)..*/\1/
8724 t more1
8725 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8726 p
8727 n
8728 b repl
8729 :more1
8730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8731 p
8732 g
8733 s/.\{148\}//
8734 t nl
8735 :delim
8736 h
8737 s/\(.\{148\}\)..*/\1/
8738 t more2
8739 s/["\\]/\\&/g; s/^/"/; s/$/"/
8740 p
8741 b
8742 :more2
8743 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8744 p
8745 g
8746 s/.\{148\}//
8747 t delim
8748 ' <conf$$subs.awk | sed '
8749 /^[^""]/{
8750 N
8751 s/\n//
8752 }
8753 ' >>$CONFIG_STATUS || ac_write_fail=1
8754 rm -f conf$$subs.awk
8755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8756 _ACAWK
8757 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8758 for (key in S) S_is_set[key] = 1
8759 FS = ""
8760
8761 }
8762 {
8763 line = $ 0
8764 nfields = split(line, field, "@")
8765 substed = 0
8766 len = length(field[1])
8767 for (i = 2; i < nfields; i++) {
8768 key = field[i]
8769 keylen = length(key)
8770 if (S_is_set[key]) {
8771 value = S[key]
8772 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8773 len += length(value) + length(field[++i])
8774 substed = 1
8775 } else
8776 len += 1 + keylen
8777 }
8778
8779 print line
8780 }
8781
8782 _ACAWK
8783 _ACEOF
8784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8785 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8786 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8787 else
8788 cat
8789 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8790 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8791 _ACEOF
8792
8793 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8794 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8795 # trailing colons and then remove the whole line if VPATH becomes empty
8796 # (actually we leave an empty line to preserve line numbers).
8797 if test "x$srcdir" = x.; then
8798 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8799 h
8800 s///
8801 s/^/:/
8802 s/[ ]*$/:/
8803 s/:\$(srcdir):/:/g
8804 s/:\${srcdir}:/:/g
8805 s/:@srcdir@:/:/g
8806 s/^:*//
8807 s/:*$//
8808 x
8809 s/\(=[ ]*\).*/\1/
8810 G
8811 s/\n//
8812 s/^[^=]*=[ ]*$//
8813 }'
8814 fi
8815
8816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8817 fi # test -n "$CONFIG_FILES"
8818
8819 # Set up the scripts for CONFIG_HEADERS section.
8820 # No need to generate them if there are no CONFIG_HEADERS.
8821 # This happens for instance with './config.status Makefile'.
8822 if test -n "$CONFIG_HEADERS"; then
8823 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8824 BEGIN {
8825 _ACEOF
8826
8827 # Transform confdefs.h into an awk script 'defines.awk', embedded as
8828 # here-document in config.status, that substitutes the proper values into
8829 # config.h.in to produce config.h.
8830
8831 # Create a delimiter string that does not exist in confdefs.h, to ease
8832 # handling of long lines.
8833 ac_delim='%!_!# '
8834 for ac_last_try in false false :; do
8835 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8836 if test -z "$ac_tt"; then
8837 break
8838 elif $ac_last_try; then
8839 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8840 else
8841 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8842 fi
8843 done
8844
8845 # For the awk script, D is an array of macro values keyed by name,
8846 # likewise P contains macro parameters if any. Preserve backslash
8847 # newline sequences.
8848
8849 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8850 sed -n '
8851 s/.\{148\}/&'"$ac_delim"'/g
8852 t rset
8853 :rset
8854 s/^[ ]*#[ ]*define[ ][ ]*/ /
8855 t def
8856 d
8857 :def
8858 s/\\$//
8859 t bsnl
8860 s/["\\]/\\&/g
8861 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8862 D["\1"]=" \3"/p
8863 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8864 d
8865 :bsnl
8866 s/["\\]/\\&/g
8867 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8868 D["\1"]=" \3\\\\\\n"\\/p
8869 t cont
8870 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8871 t cont
8872 d
8873 :cont
8874 n
8875 s/.\{148\}/&'"$ac_delim"'/g
8876 t clear
8877 :clear
8878 s/\\$//
8879 t bsnlc
8880 s/["\\]/\\&/g; s/^/"/; s/$/"/p
8881 d
8882 :bsnlc
8883 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8884 b cont
8885 ' <confdefs.h | sed '
8886 s/'"$ac_delim"'/"\\\
8887 "/g' >>$CONFIG_STATUS || ac_write_fail=1
8888
8889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8890 for (key in D) D_is_set[key] = 1
8891 FS = ""
8892 }
8893 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8894 line = \$ 0
8895 split(line, arg, " ")
8896 if (arg[1] == "#") {
8897 defundef = arg[2]
8898 mac1 = arg[3]
8899 } else {
8900 defundef = substr(arg[1], 2)
8901 mac1 = arg[2]
8902 }
8903 split(mac1, mac2, "(") #)
8904 macro = mac2[1]
8905 prefix = substr(line, 1, index(line, defundef) - 1)
8906 if (D_is_set[macro]) {
8907 # Preserve the white space surrounding the "#".
8908 print prefix "define", macro P[macro] D[macro]
8909 next
8910 } else {
8911 # Replace #undef with comments. This is necessary, for example,
8912 # in the case of _POSIX_SOURCE, which is predefined and required
8913 # on some systems where configure will not decide to define it.
8914 if (defundef == "undef") {
8915 print "/*", prefix defundef, macro, "*/"
8916 next
8917 }
8918 }
8919 }
8920 { print }
8921 _ACAWK
8922 _ACEOF
8923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8924 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8925 fi # test -n "$CONFIG_HEADERS"
8926
8927
8928 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8929 shift
8930 for ac_tag
8931 do
8932 case $ac_tag in
8933 :[FHLC]) ac_mode=$ac_tag; continue;;
8934 esac
8935 case $ac_mode$ac_tag in
8936 :[FHL]*:*);;
8937 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
8938 :[FH]-) ac_tag=-:-;;
8939 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8940 esac
8941 ac_save_IFS=$IFS
8942 IFS=:
8943 set x $ac_tag
8944 IFS=$ac_save_IFS
8945 shift
8946 ac_file=$1
8947 shift
8948
8949 case $ac_mode in
8950 :L) ac_source=$1;;
8951 :[FH])
8952 ac_file_inputs=
8953 for ac_f
8954 do
8955 case $ac_f in
8956 -) ac_f="$ac_tmp/stdin";;
8957 *) # Look for the file first in the build tree, then in the source tree
8958 # (if the path is not absolute). The absolute path cannot be DOS-style,
8959 # because $ac_f cannot contain ':'.
8960 test -f "$ac_f" ||
8961 case $ac_f in
8962 [\\/$]*) false;;
8963 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8964 esac ||
8965 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
8966 esac
8967 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8968 as_fn_append ac_file_inputs " '$ac_f'"
8969 done
8970
8971 # Let's still pretend it is 'configure' which instantiates (i.e., don't
8972 # use $as_me), people would be surprised to read:
8973 # /* config.h. Generated by config.status. */
8974 configure_input='Generated from '`
8975 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8976 `' by configure.'
8977 if test x"$ac_file" != x-; then
8978 configure_input="$ac_file. $configure_input"
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8980 printf "%s\n" "$as_me: creating $ac_file" >&6;}
8981 fi
8982 # Neutralize special characters interpreted by sed in replacement strings.
8983 case $configure_input in #(
8984 *\&* | *\|* | *\\* )
8985 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8986 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8987 *) ac_sed_conf_input=$configure_input;;
8988 esac
8989
8990 case $ac_tag in
8991 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8993 esac
8994 ;;
8995 esac
8996
8997 ac_dir=`$as_dirname -- "$ac_file" ||
8998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8999 X"$ac_file" : 'X\(//\)[^/]' \| \
9000 X"$ac_file" : 'X\(//\)$' \| \
9001 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9002 printf "%s\n" X"$ac_file" |
9003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9004 s//\1/
9005 q
9006 }
9007 /^X\(\/\/\)[^/].*/{
9008 s//\1/
9009 q
9010 }
9011 /^X\(\/\/\)$/{
9012 s//\1/
9013 q
9014 }
9015 /^X\(\/\).*/{
9016 s//\1/
9017 q
9018 }
9019 s/.*/./; q'`
9020 as_dir="$ac_dir"; as_fn_mkdir_p
9021 ac_builddir=.
9022
9023 case "$ac_dir" in
9024 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9025 *)
9026 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9027 # A ".." for each directory in $ac_dir_suffix.
9028 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9029 case $ac_top_builddir_sub in
9030 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9031 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9032 esac ;;
9033 esac
9034 ac_abs_top_builddir=$ac_pwd
9035 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9036 # for backward compatibility:
9037 ac_top_builddir=$ac_top_build_prefix
9038
9039 case $srcdir in
9040 .) # We are building in place.
9041 ac_srcdir=.
9042 ac_top_srcdir=$ac_top_builddir_sub
9043 ac_abs_top_srcdir=$ac_pwd ;;
9044 [\\/]* | ?:[\\/]* ) # Absolute name.
9045 ac_srcdir=$srcdir$ac_dir_suffix;
9046 ac_top_srcdir=$srcdir
9047 ac_abs_top_srcdir=$srcdir ;;
9048 *) # Relative name.
9049 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9050 ac_top_srcdir=$ac_top_build_prefix$srcdir
9051 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9052 esac
9053 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9054
9055
9056 case $ac_mode in
9057 :F)
9058 #
9059 # CONFIG_FILE
9060 #
9061
9062 case $INSTALL in
9063 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9064 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9065 esac
9066 _ACEOF
9067
9068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9069 # If the template does not know about datarootdir, expand it.
9070 # FIXME: This hack should be removed a few years after 2.60.
9071 ac_datarootdir_hack=; ac_datarootdir_seen=
9072 ac_sed_dataroot='
9073 /datarootdir/ {
9074 p
9075 q
9076 }
9077 /@datadir@/p
9078 /@docdir@/p
9079 /@infodir@/p
9080 /@localedir@/p
9081 /@mandir@/p'
9082 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9083 *datarootdir*) ac_datarootdir_seen=yes;;
9084 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9086 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9087 _ACEOF
9088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9089 ac_datarootdir_hack='
9090 s&@datadir@&$datadir&g
9091 s&@docdir@&$docdir&g
9092 s&@infodir@&$infodir&g
9093 s&@localedir@&$localedir&g
9094 s&@mandir@&$mandir&g
9095 s&\\\${datarootdir}&$datarootdir&g' ;;
9096 esac
9097 _ACEOF
9098
9099 # Neutralize VPATH when '$srcdir' = '.'.
9100 # Shell code in configure.ac might set extrasub.
9101 # FIXME: do we really want to maintain this feature?
9102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9103 ac_sed_extra="$ac_vpsub
9104 $extrasub
9105 _ACEOF
9106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9107 :t
9108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9109 s|@configure_input@|$ac_sed_conf_input|;t t
9110 s&@top_builddir@&$ac_top_builddir_sub&;t t
9111 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9112 s&@srcdir@&$ac_srcdir&;t t
9113 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9114 s&@top_srcdir@&$ac_top_srcdir&;t t
9115 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9116 s&@builddir@&$ac_builddir&;t t
9117 s&@abs_builddir@&$ac_abs_builddir&;t t
9118 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9119 s&@INSTALL@&$ac_INSTALL&;t t
9120 $ac_datarootdir_hack
9121 "
9122 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9123 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9124
9125 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9126 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9127 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9128 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9130 which seems to be undefined. Please make sure it is defined" >&5
9131 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9132 which seems to be undefined. Please make sure it is defined" >&2;}
9133
9134 rm -f "$ac_tmp/stdin"
9135 case $ac_file in
9136 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9137 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9138 esac \
9139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9140 ;;
9141 :H)
9142 #
9143 # CONFIG_HEADER
9144 #
9145 if test x"$ac_file" != x-; then
9146 {
9147 printf "%s\n" "/* $configure_input */" >&1 \
9148 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9149 } >"$ac_tmp/config.h" \
9150 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9151 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9153 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
9154 else
9155 rm -f "$ac_file"
9156 mv "$ac_tmp/config.h" "$ac_file" \
9157 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9158 fi
9159 else
9160 printf "%s\n" "/* $configure_input */" >&1 \
9161 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9162 || as_fn_error $? "could not create -" "$LINENO" 5
9163 fi
9164 ;;
9165
9166
9167 esac
9168
9169 done # for ac_tag
9170
9171
9172 as_fn_exit 0
9173 _ACEOF
9174 ac_clean_files=$ac_clean_files_save
9175
9176 test $ac_write_fail = 0 ||
9177 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9178
9179
9180 # configure is writing to config.log, and then calls config.status.
9181 # config.status does its own redirection, appending to config.log.
9182 # Unfortunately, on DOS this fails, as config.log is still kept open
9183 # by configure, so config.status won't be able to write to it; its
9184 # output is simply discarded. So we exec the FD to /dev/null,
9185 # effectively closing config.log, so it can be properly (re)opened and
9186 # appended to by config.status. When coming back to configure, we
9187 # need to make the FD available again.
9188 if test "$no_create" != yes; then
9189 ac_cs_success=:
9190 ac_config_status_args=
9191 test "$silent" = yes &&
9192 ac_config_status_args="$ac_config_status_args --quiet"
9193 exec 5>/dev/null
9194 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9195 exec 5>>config.log
9196 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9197 # would make configure fail if this is the last instruction.
9198 $ac_cs_success || as_fn_exit 1
9199 fi
9200 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9202 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9203 fi
9204
9205
9206 echo "Configuration:
9207
9208 Rxvt version: $VERSION : $DATE
9209 Source code location: $srcdir
9210 Install path: ${prefix}/bin
9211 Compiler: $CXX
9212 Compiler flags: $CXXFLAGS
9213 Linker: $LINKER"
9214
9215 if test x$term != x; then
9216 echo " set TERM to: $term"
9217 fi
9218 if test x$terminfo != x; then
9219 echo " set TERMINFO to: $terminfo"
9220 fi
9221 echo " default resource name: $RESNAME"
9222 echo " resource class: $RESCLASS"
9223 if test x$RESFALLBACK != x; then
9224 echo " resource class fallback: $RESFALLBACK"
9225 fi
9226 echo
9227 echo " embedded perl: $support_perl"
9228 echo " image library: $image_lib"
9229 echo
9230 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
9231 echo ".----------------------------------------------------------------."
9232 echo ". WARNING: --enable-xim was specified however the locale support ."
9233 echo ". functions could not be found. ."
9234 echo ". XIM is now being DISABLED! ."
9235 echo ".----------------------------------------------------------------."
9236 fi
9237
9238 echo "*** Optionally check src/feature.h for further, rarely used options ***"
9239 echo
9240
9241