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 (4 days, 12 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

# User Rev Content
1 pcg 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 root 1.176 # Generated by GNU Autoconf 2.72.
4 sf-exg 1.132 #
5 pcg 1.1 #
6 root 1.176 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 root 1.166 # Inc.
8 sf-exg 1.132 #
9     #
10 pcg 1.1 # This configure script is free software; the Free Software Foundation
11     # gives unlimited permission to copy, distribute and modify it.
12 sf-exg 1.132 ## -------------------- ##
13     ## M4sh Initialization. ##
14     ## -------------------- ##
15 pcg 1.11
16 ayin 1.108 # Be more Bourne compatible
17     DUALCASE=1; export DUALCASE # for MKS sh
18 root 1.166 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19     then :
20 pcg 1.11 emulate sh
21     NULLCMD=:
22 sf-exg 1.132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 pcg 1.11 # is contrary to our usage. Disable this feature.
24     alias -g '${1+"$@"}'='"$@"'
25 ayin 1.108 setopt NO_GLOB_SUBST
26 root 1.176 else case e in #(
27     e) case `(set -o) 2>/dev/null` in #(
28 sf-exg 1.132 *posix*) :
29     set -o posix ;; #(
30     *) :
31     ;;
32 root 1.176 esac ;;
33 ayin 1.108 esac
34     fi
35    
36    
37 root 1.166
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 sf-exg 1.132 as_nl='
46     '
47     export as_nl
48 root 1.166 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 pcg 1.11
75 sf-exg 1.132 # The user is always right.
76 root 1.166 if ${PATH_SEPARATOR+false} :; then
77 sf-exg 1.132 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 pcg 1.11 fi
83    
84    
85 ayin 1.108 # Find who we are. Look in the path if we contain no directory separator.
86 root 1.158 as_myself=
87 sf-exg 1.132 case $0 in #((
88 ayin 1.108 *[\\/]* ) 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 root 1.166 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 sf-exg 1.132 done
100 ayin 1.108 IFS=$as_save_IFS
101    
102     ;;
103     esac
104 root 1.176 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 ayin 1.108 # 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 root 1.166 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 sf-exg 1.132 exit 1
112 ayin 1.108 fi
113    
114    
115 root 1.158 # 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 root 1.176 # out after a failed 'exec'.
135 root 1.166 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136     exit 255
137 root 1.158 fi
138     # We don't want this to propagate to other subprocesses.
139     { _as_can_reexec=; unset _as_can_reexec;}
140 ayin 1.108 if test "x$CONFIG_SHELL" = x; then
141 root 1.176 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 root 1.166 then :
143 sf-exg 1.132 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 root 1.176 else case e in #(
150     e) case \`(set -o) 2>/dev/null\` in #(
151 sf-exg 1.132 *posix*) :
152     set -o posix ;; #(
153     *) :
154     ;;
155 root 1.176 esac ;;
156 sf-exg 1.132 esac
157 ayin 1.108 fi
158 sf-exg 1.132 "
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 root 1.105
165 ayin 1.108 exitcode=0
166 sf-exg 1.132 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 root 1.166 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171     then :
172 sf-exg 1.132
173 root 1.176 else case e in #(
174     e) exitcode=1; echo positional parameters were not saved. ;;
175     esac
176 sf-exg 1.132 fi
177 root 1.158 test x\$exitcode = x0 || exit 1
178 root 1.166 blah=\$(echo \$(echo blah))
179     test x\"\$blah\" = xblah || exit 1
180 root 1.158 test -x / || exit 1"
181 sf-exg 1.132 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 root 1.176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
185 root 1.166 if (eval "$as_required") 2>/dev/null
186     then :
187 sf-exg 1.132 as_have_required=yes
188 root 1.176 else case e in #(
189     e) as_have_required=no ;;
190     esac
191 ayin 1.108 fi
192 root 1.166 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193     then :
194 root 1.105
195 root 1.176 else case e in #(
196     e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 sf-exg 1.132 as_found=false
198 pcg 1.11 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199     do
200     IFS=$as_save_IFS
201 root 1.166 case $as_dir in #(((
202     '') as_dir=./ ;;
203     */) ;;
204     *) as_dir=$as_dir/ ;;
205     esac
206 sf-exg 1.132 as_found=:
207     case $as_dir in #(
208 pcg 1.11 /*)
209 ayin 1.108 for as_base in sh bash ksh sh5; do
210 sf-exg 1.132 # Try only shells that exist, to save several forks.
211 root 1.166 as_shell=$as_dir$as_base
212 sf-exg 1.132 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 root 1.166 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214     then :
215 sf-exg 1.132 CONFIG_SHELL=$as_shell as_have_required=yes
216 root 1.166 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217     then :
218 sf-exg 1.132 break 2
219     fi
220     fi
221 ayin 1.108 done;;
222     esac
223 sf-exg 1.132 as_found=false
224 ayin 1.108 done
225 root 1.166 IFS=$as_save_IFS
226     if $as_found
227     then :
228    
229 root 1.176 else case e in #(
230     e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 root 1.166 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232     then :
233 sf-exg 1.132 CONFIG_SHELL=$SHELL as_have_required=yes
234 root 1.176 fi ;;
235     esac
236 root 1.166 fi
237 ayin 1.108
238    
239 root 1.166 if test "x$CONFIG_SHELL" != x
240     then :
241 root 1.158 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 root 1.176 # out after a failed 'exec'.
258 root 1.166 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 root 1.158 exit 255
260 sf-exg 1.132 fi
261    
262 root 1.166 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 sf-exg 1.132 else
270 root 1.166 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
271 sf-exg 1.132 $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 root 1.176 fi ;;
277     esac
278 ayin 1.108 fi
279     fi
280 sf-exg 1.132 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 ayin 1.108
286 sf-exg 1.132 ## --------------------- ##
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 root 1.166
299 sf-exg 1.132 # 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 ayin 1.108
323 sf-exg 1.132 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 root 1.166 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 sf-exg 1.132 *) 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 root 1.166 printf "%s\n" X"$as_dir" |
340 sf-exg 1.132 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 root 1.137 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 ayin 1.108
362    
363 sf-exg 1.132 } # as_fn_mkdir_p
364 root 1.158
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 sf-exg 1.132 # 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 root 1.166 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
379     then :
380 sf-exg 1.132 eval 'as_fn_append ()
381     {
382     eval $1+=\$2
383     }'
384 root 1.176 else case e in #(
385     e) as_fn_append ()
386 sf-exg 1.132 {
387     eval $1=\$$1\$2
388 root 1.176 } ;;
389     esac
390 sf-exg 1.132 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 root 1.166 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
398     then :
399 sf-exg 1.132 eval 'as_fn_arith ()
400     {
401     as_val=$(( $* ))
402     }'
403 root 1.176 else case e in #(
404     e) as_fn_arith ()
405 sf-exg 1.132 {
406     as_val=`expr "$@" || test $? -eq 1`
407 root 1.176 } ;;
408     esac
409 sf-exg 1.132 fi # as_fn_arith
410    
411    
412 root 1.137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
413     # ----------------------------------------
414 sf-exg 1.132 # 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 root 1.137 # script with STATUS, using 1 if that was 0.
417 sf-exg 1.132 as_fn_error ()
418     {
419 root 1.137 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 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 sf-exg 1.132 fi
424 root 1.166 printf "%s\n" "$as_me: error: $2" >&2
425 sf-exg 1.132 as_fn_exit $as_status
426     } # as_fn_error
427 ayin 1.108
428 sf-exg 1.132 if expr a : '\(a\)' >/dev/null 2>&1 &&
429     test "X`expr 00001 : '.*\(...\)'`" = X001; then
430     as_expr=expr
431 ayin 1.108 else
432 sf-exg 1.132 as_expr=false
433 ayin 1.108 fi
434    
435 sf-exg 1.132 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
436     as_basename=basename
437 ayin 1.108 else
438 sf-exg 1.132 as_basename=false
439 ayin 1.108 fi
440    
441 sf-exg 1.132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
442     as_dirname=dirname
443 ayin 1.108 else
444 sf-exg 1.132 as_dirname=false
445 ayin 1.108 fi
446    
447 sf-exg 1.132 as_me=`$as_basename -- "$0" ||
448     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
449     X"$0" : 'X\(//\)$' \| \
450     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 root 1.166 printf "%s\n" X/"$0" |
452 sf-exg 1.132 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 ayin 1.108
466 sf-exg 1.132 # 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 ayin 1.108
473    
474 sf-exg 1.132 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 ayin 1.108 sed -n '
480     p
481     /[$]LINENO/=
482     ' <$as_myself |
483 pcg 1.11 sed '
484 root 1.176 t clear
485     :clear
486 ayin 1.108 s/[$]LINENO.*/&-/
487     t lineno
488     b
489     :lineno
490 pcg 1.11 N
491 ayin 1.108 :loop
492     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 pcg 1.11 t loop
494 ayin 1.108 s/-\n.*//
495 pcg 1.11 ' >$as_me.lineno &&
496 ayin 1.108 chmod +x "$as_me.lineno" ||
497 root 1.166 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498 pcg 1.11
499 root 1.158 # 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 pcg 1.11 # 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 ayin 1.108 # original and so on. Autoconf is especially sensitive to this).
506     . "./$as_me.lineno"
507 pcg 1.11 # Exit status is that of the last command.
508     exit
509     }
510    
511 root 1.166
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 sf-exg 1.132 ECHO_C= ECHO_N= ECHO_T=
516     case `echo -n x` in #(((((
517     -n*)
518     case `echo 'xy\c'` in
519 ayin 1.108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
520 sf-exg 1.132 xy) ECHO_C='\c';;
521     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
522     ECHO_T=' ';;
523 ayin 1.108 esac;;
524     *)
525     ECHO_N='-n';;
526 pcg 1.11 esac
527    
528 root 1.166 # 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 pcg 1.11 rm -f conf$$ conf$$.exe conf$$.file
535 ayin 1.108 if test -d conf$$.dir; then
536     rm -f conf$$.dir/conf$$.file
537     else
538     rm -f conf$$.dir
539 sf-exg 1.132 mkdir conf$$.dir 2>/dev/null
540 ayin 1.108 fi
541 sf-exg 1.132 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 root 1.176 # 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 sf-exg 1.132 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
549 root 1.158 as_ln_s='cp -pR'
550 sf-exg 1.132 elif ln conf$$.file conf$$ 2>/dev/null; then
551     as_ln_s=ln
552     else
553 root 1.158 as_ln_s='cp -pR'
554 sf-exg 1.132 fi
555 pcg 1.11 else
556 root 1.158 as_ln_s='cp -pR'
557 pcg 1.11 fi
558 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
559     rmdir conf$$.dir 2>/dev/null
560 pcg 1.11
561     if mkdir -p . 2>/dev/null; then
562 sf-exg 1.132 as_mkdir_p='mkdir -p "$as_dir"'
563 pcg 1.11 else
564     test -d ./-p && rmdir ./-p
565     as_mkdir_p=false
566     fi
567    
568 root 1.158 as_test_x='test -x'
569     as_executable_p=as_fn_executable_p
570 pcg 1.11
571     # Sed expression to map a string onto a valid CPP name.
572 root 1.176 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 pcg 1.11
575     # Sed expression to map a string onto a valid variable name.
576 root 1.176 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
577     as_tr_sh="eval sed '$as_sed_sh'" # deprecated
578 pcg 1.11
579    
580 sf-exg 1.132 test -n "$DJDIR" || exec 7<&0 </dev/null
581     exec 6>&1
582 pcg 1.1
583 pcg 1.11 # Name of the host.
584 root 1.137 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
585 pcg 1.11 # 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 ayin 1.108 ac_clean_files=
593 pcg 1.11 ac_config_libobj_dir=.
594 ayin 1.108 LIBOBJS=
595 pcg 1.11 cross_compiling=no
596     subdirs=
597     MFLAGS=
598     MAKEFLAGS=
599    
600     # Identity of this package.
601 root 1.166 PACKAGE_NAME=''
602     PACKAGE_TARNAME=''
603     PACKAGE_VERSION=''
604     PACKAGE_STRING=''
605     PACKAGE_BUGREPORT=''
606     PACKAGE_URL=''
607 pcg 1.11
608     ac_unique_file="src/feature.h"
609     # Factoring default headers for most tests.
610     ac_includes_default="\
611 root 1.166 #include <stddef.h>
612     #ifdef HAVE_STDIO_H
613     # include <stdio.h>
614 pcg 1.11 #endif
615 root 1.166 #ifdef HAVE_STDLIB_H
616 pcg 1.11 # include <stdlib.h>
617     #endif
618 ayin 1.108 #ifdef HAVE_STRING_H
619 pcg 1.11 # include <string.h>
620     #endif
621 ayin 1.108 #ifdef HAVE_INTTYPES_H
622 pcg 1.11 # include <inttypes.h>
623     #endif
624 ayin 1.108 #ifdef HAVE_STDINT_H
625     # include <stdint.h>
626     #endif
627 root 1.166 #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 ayin 1.108 #ifdef HAVE_UNISTD_H
637 pcg 1.11 # include <unistd.h>
638     #endif"
639    
640 root 1.166 ac_header_c_list=
641 sf-exg 1.132 ac_subst_vars='LTLIBOBJS
642     LIBOBJS
643     PERL_O
644     IF_PERL
645     PERLPRIVLIBEXP
646     PERLFLAGS
647     PERLLIB
648     PERL
649     XFT_CONFIG
650 mikachu 1.147 STARTUP_NOTIFICATION_LIBS
651     STARTUP_NOTIFICATION_CFLAGS
652 root 1.158 PIXBUF_LIBS
653     PIXBUF_CFLAGS
654 sf-exg 1.168 PTYTTY_LIBS
655     PTYTTY_CFLAGS
656 sf-exg 1.132 PKG_CONFIG
657     X_EXTRA_LIBS
658     X_LIBS
659     X_PRE_LIBS
660     X_CFLAGS
661 root 1.166 CXXCPP
662 sf-exg 1.132 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 root 1.164 runstatedir
701 sf-exg 1.132 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 ayin 1.108 PATH_SEPARATOR
719 sf-exg 1.132 SHELL'
720 root 1.73 ac_subst_files=''
721 sf-exg 1.132 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 sf-exg 1.134 enable_pixbuf
732 mikachu 1.147 enable_startup_notification
733 sf-exg 1.132 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 ayin 1.108 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 root 1.166 XMKMF
775     CXXCPP'
776 ayin 1.108
777 pcg 1.1
778     # Initialize some variables set by options.
779 pcg 1.11 ac_init_help=
780     ac_init_version=false
781 sf-exg 1.132 ac_unrecognized_opts=
782     ac_unrecognized_sep=
783 pcg 1.1 # The variables have the same names as the options, with
784     # dashes changed to underlines.
785 pcg 1.11 cache_file=/dev/null
786 pcg 1.1 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 pcg 1.11
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 ayin 1.108 # (The list follows the same order as the GNU Coding Standards.)
806 pcg 1.1 bindir='${exec_prefix}/bin'
807     sbindir='${exec_prefix}/sbin'
808     libexecdir='${exec_prefix}/libexec'
809 ayin 1.108 datarootdir='${prefix}/share'
810     datadir='${datarootdir}'
811 pcg 1.1 sysconfdir='${prefix}/etc'
812     sharedstatedir='${prefix}/com'
813     localstatedir='${prefix}/var'
814 root 1.164 runstatedir='${localstatedir}/run'
815 pcg 1.1 includedir='${prefix}/include'
816     oldincludedir='/usr/include'
817 ayin 1.108 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 pcg 1.1
827     ac_prev=
828 ayin 1.108 ac_dashdash=
829 pcg 1.1 for ac_option
830     do
831     # If the previous option needs an argument, assign it.
832     if test -n "$ac_prev"; then
833 ayin 1.108 eval $ac_prev=\$ac_option
834 pcg 1.1 ac_prev=
835     continue
836     fi
837    
838 ayin 1.108 case $ac_option in
839 root 1.137 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840     *=) ac_optarg= ;;
841     *) ac_optarg=yes ;;
842 ayin 1.108 esac
843 pcg 1.1
844 ayin 1.108 case $ac_dashdash$ac_option in
845     --)
846     ac_dashdash=yes ;;
847 pcg 1.1
848     -bindir | --bindir | --bindi | --bind | --bin | --bi)
849     ac_prev=bindir ;;
850     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 pcg 1.11 bindir=$ac_optarg ;;
852 pcg 1.1
853     -build | --build | --buil | --bui | --bu)
854 pcg 1.11 ac_prev=build_alias ;;
855 pcg 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 pcg 1.11 build_alias=$ac_optarg ;;
857 pcg 1.1
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 pcg 1.11 cache_file=$ac_optarg ;;
864    
865     --config-cache | -C)
866     cache_file=config.cache ;;
867 pcg 1.1
868 ayin 1.108 -datadir | --datadir | --datadi | --datad)
869 pcg 1.1 ac_prev=datadir ;;
870 ayin 1.108 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 pcg 1.11 datadir=$ac_optarg ;;
872 pcg 1.1
873 ayin 1.108 -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 pcg 1.1 -disable-* | --disable-*)
881 sf-exg 1.132 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 pcg 1.1 # Reject names that are not valid shell variable names.
883 sf-exg 1.132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 root 1.176 as_fn_error $? "invalid feature name: '$ac_useropt'"
885 sf-exg 1.132 ac_useropt_orig=$ac_useropt
886 root 1.166 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
887 sf-exg 1.132 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 ayin 1.108
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 pcg 1.1
906     -enable-* | --enable-*)
907 sf-exg 1.132 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 pcg 1.1 # Reject names that are not valid shell variable names.
909 sf-exg 1.132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 root 1.176 as_fn_error $? "invalid feature name: '$ac_useropt'"
911 sf-exg 1.132 ac_useropt_orig=$ac_useropt
912 root 1.166 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
913 sf-exg 1.132 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 pcg 1.1
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 pcg 1.11 exec_prefix=$ac_optarg ;;
930 pcg 1.1
931     -gas | --gas | --ga | --g)
932     # Obsolete; use --with-gas.
933     with_gas=yes ;;
934    
935 pcg 1.11 -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 pcg 1.1
942     -host | --host | --hos | --ho)
943 pcg 1.11 ac_prev=host_alias ;;
944 pcg 1.1 -host=* | --host=* | --hos=* | --ho=*)
945 pcg 1.11 host_alias=$ac_optarg ;;
946 pcg 1.1
947 ayin 1.108 -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 pcg 1.1 -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 pcg 1.11 includedir=$ac_optarg ;;
959 pcg 1.1
960     -infodir | --infodir | --infodi | --infod | --info | --inf)
961     ac_prev=infodir ;;
962     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 pcg 1.11 infodir=$ac_optarg ;;
964 pcg 1.1
965     -libdir | --libdir | --libdi | --libd)
966     ac_prev=libdir ;;
967     -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 pcg 1.11 libdir=$ac_optarg ;;
969 pcg 1.1
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 pcg 1.11 libexecdir=$ac_optarg ;;
976 pcg 1.1
977 ayin 1.108 -localedir | --localedir | --localedi | --localed | --locale)
978     ac_prev=localedir ;;
979     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980     localedir=$ac_optarg ;;
981    
982 pcg 1.1 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 ayin 1.108 | --localstate | --localstat | --localsta | --localst | --locals)
984 pcg 1.1 ac_prev=localstatedir ;;
985     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 ayin 1.108 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 pcg 1.11 localstatedir=$ac_optarg ;;
988 pcg 1.1
989     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990     ac_prev=mandir ;;
991     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 pcg 1.11 mandir=$ac_optarg ;;
993 pcg 1.1
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 pcg 1.11 | --no-cr | --no-c | -n)
1000 pcg 1.1 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 pcg 1.11 oldincludedir=$ac_optarg ;;
1014 pcg 1.1
1015     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016     ac_prev=prefix ;;
1017     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 pcg 1.11 prefix=$ac_optarg ;;
1019 pcg 1.1
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 pcg 1.11 program_prefix=$ac_optarg ;;
1026 pcg 1.1
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 pcg 1.11 program_suffix=$ac_optarg ;;
1033 pcg 1.1
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 pcg 1.11 program_transform_name=$ac_optarg ;;
1050 pcg 1.1
1051 ayin 1.108 -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 pcg 1.1 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062     | -silent | --silent | --silen | --sile | --sil)
1063     silent=yes ;;
1064    
1065 root 1.164 -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 pcg 1.1 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075     ac_prev=sbindir ;;
1076     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077     | --sbi=* | --sb=*)
1078 pcg 1.11 sbindir=$ac_optarg ;;
1079 pcg 1.1
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 pcg 1.11 sharedstatedir=$ac_optarg ;;
1090 pcg 1.1
1091     -site | --site | --sit)
1092     ac_prev=site ;;
1093     -site=* | --site=* | --sit=*)
1094 pcg 1.11 site=$ac_optarg ;;
1095 pcg 1.1
1096     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097     ac_prev=srcdir ;;
1098     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 pcg 1.11 srcdir=$ac_optarg ;;
1100 pcg 1.1
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 pcg 1.11 sysconfdir=$ac_optarg ;;
1107 pcg 1.1
1108     -target | --target | --targe | --targ | --tar | --ta | --t)
1109 pcg 1.11 ac_prev=target_alias ;;
1110 pcg 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 pcg 1.11 target_alias=$ac_optarg ;;
1112 pcg 1.1
1113     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114     verbose=yes ;;
1115    
1116 pcg 1.11 -version | --version | --versio | --versi | --vers | -V)
1117     ac_init_version=: ;;
1118 pcg 1.1
1119     -with-* | --with-*)
1120 sf-exg 1.132 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 pcg 1.1 # Reject names that are not valid shell variable names.
1122 sf-exg 1.132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 root 1.176 as_fn_error $? "invalid package name: '$ac_useropt'"
1124 sf-exg 1.132 ac_useropt_orig=$ac_useropt
1125 root 1.166 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 sf-exg 1.132 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 pcg 1.1
1135     -without-* | --without-*)
1136 sf-exg 1.132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 pcg 1.1 # Reject names that are not valid shell variable names.
1138 sf-exg 1.132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 root 1.176 as_fn_error $? "invalid package name: '$ac_useropt'"
1140 sf-exg 1.132 ac_useropt_orig=$ac_useropt
1141 root 1.166 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 sf-exg 1.132 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 pcg 1.1
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 pcg 1.11 x_includes=$ac_optarg ;;
1161 pcg 1.1
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 pcg 1.11 x_libraries=$ac_optarg ;;
1168 pcg 1.1
1169 root 1.176 -*) as_fn_error $? "unrecognized option: '$ac_option'
1170     Try '$0 --help' for more information"
1171 pcg 1.1 ;;
1172    
1173 pcg 1.11 *=*)
1174     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175     # Reject names that are not valid shell variable names.
1176 sf-exg 1.132 case $ac_envvar in #(
1177     '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 root 1.176 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1179 sf-exg 1.132 esac
1180 ayin 1.108 eval $ac_envvar=\$ac_optarg
1181 pcg 1.11 export $ac_envvar ;;
1182    
1183 pcg 1.1 *)
1184 pcg 1.11 # FIXME: should be removed in autoconf 3.0.
1185 root 1.166 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 pcg 1.11 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 root 1.166 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 root 1.158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 pcg 1.1 ;;
1190    
1191     esac
1192     done
1193    
1194     if test -n "$ac_prev"; then
1195 pcg 1.11 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1196 root 1.137 as_fn_error $? "missing argument to $ac_option"
1197 sf-exg 1.132 fi
1198    
1199     if test -n "$ac_unrecognized_opts"; then
1200     case $enable_option_checking in
1201     no) ;;
1202 root 1.137 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 root 1.166 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 sf-exg 1.132 esac
1205 pcg 1.1 fi
1206    
1207 sf-exg 1.132 # Check all directory arguments for consistency.
1208 ayin 1.108 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 root 1.164 libdir localedir mandir runstatedir
1212 pcg 1.11 do
1213 ayin 1.108 eval ac_val=\$$ac_var
1214 sf-exg 1.132 # 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 pcg 1.11 case $ac_val in
1222 ayin 1.108 [\\/$]* | ?:[\\/]* ) continue;;
1223     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 pcg 1.1 esac
1225 root 1.137 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 pcg 1.1 done
1227    
1228 root 1.176 # There might be people who depend on the old broken behavior: '$host'
1229 pcg 1.11 # 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 pcg 1.1
1247 pcg 1.11 test "$silent" = yes && exec 6>/dev/null
1248 pcg 1.1
1249    
1250 ayin 1.108 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251     ac_ls_di=`ls -di .` &&
1252     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 root 1.137 as_fn_error $? "working directory cannot be determined"
1254 ayin 1.108 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 root 1.137 as_fn_error $? "pwd does not report name of working directory"
1256 ayin 1.108
1257    
1258 pcg 1.1 # Find the source files, if location was not specified.
1259     if test -z "$srcdir"; then
1260     ac_srcdir_defaulted=yes
1261 ayin 1.108 # Try the directory containing this script, then the parent directory.
1262 sf-exg 1.132 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 root 1.166 printf "%s\n" X"$as_myself" |
1268 ayin 1.108 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 pcg 1.1 srcdir=$ac_confdir
1286 ayin 1.108 if test ! -r "$srcdir/$ac_unique_file"; then
1287 pcg 1.1 srcdir=..
1288     fi
1289     else
1290     ac_srcdir_defaulted=no
1291     fi
1292 ayin 1.108 if test ! -r "$srcdir/$ac_unique_file"; then
1293     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 root 1.137 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 ayin 1.108 fi
1296 root 1.176 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1297 ayin 1.108 ac_abs_confdir=`(
1298 root 1.137 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 ayin 1.108 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 pcg 1.11 #
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 root 1.176 'configure' configures this package to adapt to many kinds of systems.
1325 pcg 1.11
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 root 1.176 -q, --quiet, --silent do not print 'checking ...' messages
1339 pcg 1.11 --cache-file=FILE cache test results in FILE [disabled]
1340 root 1.176 -C, --config-cache alias for '--cache-file=config.cache'
1341 pcg 1.11 -n, --no-create do not create output files
1342 root 1.176 --srcdir=DIR find the sources in DIR [configure dir or '..']
1343 pcg 1.11
1344     Installation directories:
1345     --prefix=PREFIX install architecture-independent files in PREFIX
1346 sf-exg 1.132 [$ac_default_prefix]
1347 pcg 1.11 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 sf-exg 1.132 [PREFIX]
1349 pcg 1.11
1350 root 1.176 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 pcg 1.11
1355     For better control, use the options below.
1356    
1357     Fine tuning of the installation directories:
1358 sf-exg 1.132 --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 root 1.164 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1365 sf-exg 1.132 --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 pcg 1.11 _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 sf-exg 1.132 --disable-option-checking ignore unrecognized --enable/--with options
1394 pcg 1.11 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 root 1.176 --enable-everything enable standard non-multichoice features NOTE: this
1397     option is order dependent
1398 root 1.130 --enable-assert enable assertions
1399 ayin 1.114 --enable-warnings turn on g++ warnings
1400 sf-exg 1.132 --enable-256-color enable 256-color support
1401 root 1.176 --enable-unicode3 use 21 instead of 16 bits to represent unicode
1402     characters
1403 pcg 1.18 --enable-combining enable composition of base and combining characters
1404 pcg 1.15 --enable-xft enable xft support on systems that have it
1405 root 1.39 --enable-font-styles enable bold and italic support
1406 root 1.176 --enable-pixbuf enable integration with gdk-pixbuf for background
1407     images
1408     --enable-startup-notification
1409     enable freedesktop startup notification support
1410 pcg 1.11 --enable-transparency enable transparent backgrounds
1411 root 1.31 --enable-fading enable colors fading when off focus
1412 pcg 1.11 --enable-rxvt-scroll enable rxvt style scrollbar
1413     --enable-next-scroll enable NeXT style scrollbar
1414     --enable-xterm-scroll enable Xterm style scrollbar
1415 root 1.60 --enable-perl enable embedded perl interpreter
1416 pcg 1.11 --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 root 1.26 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1421 root 1.176 --enable-fallback[=CLASS]
1422     fall back on CLASS resources in addition to URxvt
1423     ones (default: Rxvt)
1424 pcg 1.11 --disable-swapscreen disable swap screen support
1425 root 1.34 --enable-iso14755 enable support for extended ISO 14755 modes
1426 pcg 1.11 --enable-frills enable support for rarely used features
1427     --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1428 root 1.176 --enable-selectionscrolling
1429     enable scrolling during selections
1430 pcg 1.11 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1431 root 1.176 --enable-slipwheeling enable slip wheel scrolling (requires
1432     --enable-mousewheel)
1433 pcg 1.11 --enable-smart-resize enable smart growth/shrink behaviour
1434     --enable-text-blink enable blinking text
1435 root 1.131 --enable-pointer-blank enable pointer blanking when typing or inactive
1436 pcg 1.11
1437     Optional Packages:
1438     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 root 1.176 --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 pcg 1.11 --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 ayin 1.108 LIBS libraries to pass to the linker, e.g. -l<library>
1457 sf-exg 1.132 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 ayin 1.108 you have headers in a nonstandard directory <include dir>
1459 pcg 1.11 CXX C++ compiler command
1460     CXXFLAGS C++ compiler flags
1461 root 1.166 XMKMF Path to xmkmf, Makefile generator for X Window System
1462 root 1.116 CXXCPP C++ preprocessor
1463 pcg 1.11
1464 root 1.176 Use these variables to override the choices made by 'configure' or to help
1465 pcg 1.11 it to find libraries and programs with nonstandard names/locations.
1466    
1467 sf-exg 1.132 Report bugs to the package provider.
1468 pcg 1.11 _ACEOF
1469 ayin 1.108 ac_status=$?
1470 pcg 1.11 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 sf-exg 1.132 test -d "$ac_dir" ||
1476     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1477     continue
1478 pcg 1.11 ac_builddir=.
1479    
1480 ayin 1.108 case "$ac_dir" in
1481     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482     *)
1483 root 1.166 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1484 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
1485 root 1.166 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1486 ayin 1.108 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 pcg 1.11
1496     case $srcdir in
1497 ayin 1.108 .) # We are building in place.
1498 pcg 1.11 ac_srcdir=.
1499 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
1500     ac_abs_top_srcdir=$ac_pwd ;;
1501     [\\/]* | ?:[\\/]* ) # Absolute name.
1502 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ayin 1.108 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 pcg 1.11 esac
1510 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511 pcg 1.11
1512 ayin 1.108 cd "$ac_dir" || { ac_status=$?; continue; }
1513 root 1.166 # Check for configure.gnu first; this name is used for a wrapper for
1514     # Metaconfig's "Configure" on case-insensitive file systems.
1515 ayin 1.108 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 pcg 1.11 else
1522 root 1.166 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 ayin 1.108 fi || ac_status=$?
1524     cd "$ac_pwd" || { ac_status=$?; break; }
1525 pcg 1.11 done
1526     fi
1527    
1528 ayin 1.108 test -n "$ac_init_help" && exit $ac_status
1529 pcg 1.11 if $ac_init_version; then
1530     cat <<\_ACEOF
1531 ayin 1.108 configure
1532 root 1.176 generated by GNU Autoconf 2.72
1533 pcg 1.11
1534 root 1.176 Copyright (C) 2023 Free Software Foundation, Inc.
1535 pcg 1.11 This configure script is free software; the Free Software Foundation
1536     gives unlimited permission to copy, distribute and modify it.
1537     _ACEOF
1538 ayin 1.108 exit
1539 pcg 1.11 fi
1540    
1541 sf-exg 1.132 ## ------------------------ ##
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 root 1.166 rm -f conftest.$ac_objext conftest.beam
1552 sf-exg 1.132 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 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
1559 sf-exg 1.132 (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 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 sf-exg 1.132 test $ac_status = 0; } && {
1568     test -z "$ac_c_werror_flag" ||
1569     test ! -s conftest.err
1570 root 1.166 } && test -s conftest.$ac_objext
1571     then :
1572 sf-exg 1.132 ac_retval=0
1573 root 1.176 else case e in #(
1574     e) printf "%s\n" "$as_me: failed program was:" >&5
1575 sf-exg 1.132 sed 's/^/| /' conftest.$ac_ext >&5
1576    
1577 root 1.176 ac_retval=1 ;;
1578     esac
1579 sf-exg 1.132 fi
1580 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 sf-exg 1.132 as_fn_set_status $ac_retval
1582 pcg 1.11
1583 sf-exg 1.132 } # ac_fn_c_try_compile
1584 pcg 1.11
1585 sf-exg 1.132 # 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 pcg 1.11 {
1590 sf-exg 1.132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 root 1.166 rm -f conftest.$ac_objext conftest.beam
1592 sf-exg 1.132 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 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
1599 sf-exg 1.132 (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 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 sf-exg 1.132 test $ac_status = 0; } && {
1608     test -z "$ac_cxx_werror_flag" ||
1609     test ! -s conftest.err
1610 root 1.166 } && test -s conftest.$ac_objext
1611     then :
1612 sf-exg 1.132 ac_retval=0
1613 root 1.176 else case e in #(
1614     e) printf "%s\n" "$as_me: failed program was:" >&5
1615 sf-exg 1.132 sed 's/^/| /' conftest.$ac_ext >&5
1616    
1617 root 1.176 ac_retval=1 ;;
1618     esac
1619 sf-exg 1.132 fi
1620 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1621 sf-exg 1.132 as_fn_set_status $ac_retval
1622    
1623     } # ac_fn_cxx_try_compile
1624 pcg 1.11
1625 sf-exg 1.132 # 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 root 1.166 { 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 root 1.176 else case e in #(
1638     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1639 sf-exg 1.132 /* end confdefs.h. */
1640     $4
1641     #include <$2>
1642     _ACEOF
1643 root 1.166 if ac_fn_c_try_compile "$LINENO"
1644     then :
1645 sf-exg 1.132 eval "$3=yes"
1646 root 1.176 else case e in #(
1647     e) eval "$3=no" ;;
1648     esac
1649 sf-exg 1.132 fi
1650 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1651     esac
1652 sf-exg 1.132 fi
1653     eval ac_res=\$$3
1654 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1655     printf "%s\n" "$ac_res" >&6; }
1656 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1657 sf-exg 1.132
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 pcg 1.11 {
1665 sf-exg 1.132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 root 1.166 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667 sf-exg 1.132 if { { ac_try="$ac_link"
1668 ayin 1.108 case "(($ac_try" in
1669     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670     *) ac_try_echo=$ac_try;;
1671     esac
1672 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
1674 sf-exg 1.132 (eval "$ac_link") 2>conftest.err
1675 pcg 1.11 ac_status=$?
1676 sf-exg 1.132 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 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 sf-exg 1.132 test $ac_status = 0; } && {
1683 ayin 1.108 test -z "$ac_cxx_werror_flag" ||
1684     test ! -s conftest.err
1685 sf-exg 1.132 } && test -s conftest$ac_exeext && {
1686     test "$cross_compiling" = yes ||
1687 root 1.158 test -x conftest$ac_exeext
1688 root 1.166 }
1689     then :
1690 sf-exg 1.132 ac_retval=0
1691 root 1.176 else case e in #(
1692     e) printf "%s\n" "$as_me: failed program was:" >&5
1693 pcg 1.11 sed 's/^/| /' conftest.$ac_ext >&5
1694    
1695 root 1.176 ac_retval=1 ;;
1696     esac
1697 pcg 1.11 fi
1698 sf-exg 1.132 # 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 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 sf-exg 1.132 as_fn_set_status $ac_retval
1705 ayin 1.108
1706 sf-exg 1.132 } # ac_fn_cxx_try_link
1707 pcg 1.11
1708 root 1.166 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1709 sf-exg 1.132 # ---------------------------------------------------------
1710 root 1.166 # 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 sf-exg 1.132 {
1714     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 root 1.166 { 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 root 1.176 else case e in #(
1721     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 sf-exg 1.132 /* end confdefs.h. */
1723     $4
1724     #include <$2>
1725 pcg 1.11 _ACEOF
1726 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
1727     then :
1728     eval "$3=yes"
1729 root 1.176 else case e in #(
1730     e) eval "$3=no" ;;
1731     esac
1732 sf-exg 1.132 fi
1733 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1734     esac
1735 sf-exg 1.132 fi
1736     eval ac_res=\$$3
1737 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738     printf "%s\n" "$ac_res" >&6; }
1739 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 ayin 1.108
1741 root 1.166 } # ac_fn_cxx_check_header_compile
1742 sf-exg 1.132
1743 sf-exg 1.133 # 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 root 1.166 { 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 root 1.176 else case e in #(
1755     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 sf-exg 1.133 /* 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 root 1.176 which can conflict with char $2 (void); below. */
1763 sf-exg 1.133
1764 root 1.166 #include <limits.h>
1765 sf-exg 1.133 #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 root 1.176 char $2 (void);
1774 sf-exg 1.133 /* 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 root 1.166 main (void)
1783 sf-exg 1.133 {
1784     return $2 ();
1785     ;
1786     return 0;
1787     }
1788     _ACEOF
1789 root 1.166 if ac_fn_cxx_try_link "$LINENO"
1790     then :
1791 sf-exg 1.133 eval "$3=yes"
1792 root 1.176 else case e in #(
1793     e) eval "$3=no" ;;
1794     esac
1795 sf-exg 1.133 fi
1796 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1797 root 1.176 conftest$ac_exeext conftest.$ac_ext ;;
1798     esac
1799 sf-exg 1.133 fi
1800     eval ac_res=\$$3
1801 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802     printf "%s\n" "$ac_res" >&6; }
1803 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804 sf-exg 1.133
1805     } # ac_fn_cxx_check_func
1806    
1807 sf-exg 1.132 # 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 root 1.166 { 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 root 1.176 else case e in #(
1820     e) eval "$3=no"
1821 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822     /* end confdefs.h. */
1823     $4
1824     int
1825 root 1.166 main (void)
1826 sf-exg 1.132 {
1827     if (sizeof ($2))
1828     return 0;
1829     ;
1830     return 0;
1831     }
1832     _ACEOF
1833 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
1834     then :
1835 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836     /* end confdefs.h. */
1837     $4
1838 pcg 1.11 int
1839 root 1.166 main (void)
1840 pcg 1.11 {
1841 sf-exg 1.132 if (sizeof (($2)))
1842     return 0;
1843 pcg 1.11 ;
1844     return 0;
1845     }
1846     _ACEOF
1847 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
1848     then :
1849 sf-exg 1.132
1850 root 1.176 else case e in #(
1851     e) eval "$3=yes" ;;
1852     esac
1853 sf-exg 1.132 fi
1854 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1855 sf-exg 1.132 fi
1856 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1857     esac
1858 sf-exg 1.132 fi
1859     eval ac_res=\$$3
1860 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1861     printf "%s\n" "$ac_res" >&6; }
1862 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 sf-exg 1.132
1864     } # ac_fn_cxx_check_type
1865    
1866 root 1.166 # 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 sf-exg 1.132 {
1871     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 root 1.166 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 root 1.176 else case e in #(
1894     e) printf "%s\n" "$as_me: failed program was:" >&5
1895 root 1.166 sed 's/^/| /' conftest.$ac_ext >&5
1896    
1897 root 1.176 ac_retval=1 ;;
1898     esac
1899 root 1.166 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 root 1.176 else case e in #(
1918     e) eval "$3=no"
1919 sf-exg 1.132 # 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 root 1.137 enum { N = $2 / 2 - 1 };
1927 sf-exg 1.132 int
1928 root 1.166 main (void)
1929 sf-exg 1.132 {
1930 root 1.137 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1931 root 1.158 test_array [0] = 0;
1932     return test_array [0];
1933 pcg 1.11
1934 sf-exg 1.132 ;
1935     return 0;
1936     }
1937 pcg 1.11 _ACEOF
1938 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
1939     then :
1940 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 pcg 1.11 /* end confdefs.h. */
1942 sf-exg 1.132 $ac_includes_default
1943 root 1.137 enum { N = $2 / 2 - 1 };
1944 pcg 1.11 int
1945 root 1.166 main (void)
1946 pcg 1.11 {
1947 root 1.137 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1948 sf-exg 1.132 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1949 root 1.158 test_array [0] = 0;
1950     return test_array [0];
1951 ayin 1.108
1952 pcg 1.11 ;
1953     return 0;
1954     }
1955     _ACEOF
1956 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
1957     then :
1958 sf-exg 1.132
1959 root 1.176 else case e in #(
1960     e) case $ac_type in #(
1961 sf-exg 1.132 int$2_t) :
1962     eval "$3=yes" ;; #(
1963     *) :
1964     eval "$3=\$ac_type" ;;
1965 root 1.176 esac ;;
1966 ayin 1.108 esac
1967 pcg 1.11 fi
1968 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1969 ayin 1.108 fi
1970 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1971     if eval test \"x\$"$3"\" = x"no"
1972     then :
1973 pcg 1.11
1974 root 1.176 else case e in #(
1975     e) break ;;
1976     esac
1977 ayin 1.108 fi
1978 root 1.176 done ;;
1979     esac
1980 pcg 1.11 fi
1981 sf-exg 1.132 eval ac_res=\$$3
1982 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983     printf "%s\n" "$ac_res" >&6; }
1984 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 sf-exg 1.132
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 root 1.166 { 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 root 1.176 else case e in #(
2001     e) eval "$3=no"
2002 sf-exg 1.132 # 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 root 1.166 main (void)
2011 sf-exg 1.132 {
2012     static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2013 root 1.158 test_array [0] = 0;
2014     return test_array [0];
2015 ayin 1.108
2016 sf-exg 1.132 ;
2017     return 0;
2018     }
2019 pcg 1.11 _ACEOF
2020 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
2021     then :
2022 sf-exg 1.132 case $ac_type in #(
2023     uint$2_t) :
2024     eval "$3=yes" ;; #(
2025     *) :
2026     eval "$3=\$ac_type" ;;
2027 ayin 1.108 esac
2028 pcg 1.11 fi
2029 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2030     if eval test \"x\$"$3"\" = x"no"
2031     then :
2032 ayin 1.108
2033 root 1.176 else case e in #(
2034     e) break ;;
2035     esac
2036 pcg 1.11 fi
2037 root 1.176 done ;;
2038     esac
2039 sf-exg 1.132 fi
2040     eval ac_res=\$$3
2041 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042     printf "%s\n" "$ac_res" >&6; }
2043 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044 pcg 1.11
2045 sf-exg 1.132 } # ac_fn_c_find_uintX_t
2046 pcg 1.11
2047 sf-exg 1.132 # ac_fn_cxx_try_run LINENO
2048     # ------------------------
2049 root 1.166 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2050     # executables *can* be run.
2051 sf-exg 1.132 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 ayin 1.108 case "(($ac_try" in
2056     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2057     *) ac_try_echo=$ac_try;;
2058     esac
2059 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2060 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
2061 sf-exg 1.132 (eval "$ac_link") 2>&5
2062     ac_status=$?
2063 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2064 sf-exg 1.132 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 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
2071 sf-exg 1.132 (eval "$ac_try") 2>&5
2072 pcg 1.11 ac_status=$?
2073 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074     test $ac_status = 0; }; }
2075     then :
2076 sf-exg 1.132 ac_retval=0
2077 root 1.176 else case e in #(
2078     e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2079 root 1.166 printf "%s\n" "$as_me: failed program was:" >&5
2080 pcg 1.11 sed 's/^/| /' conftest.$ac_ext >&5
2081    
2082 root 1.176 ac_retval=$ac_status ;;
2083     esac
2084 pcg 1.1 fi
2085 sf-exg 1.132 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2086 root 1.158 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087 sf-exg 1.132 as_fn_set_status $ac_retval
2088    
2089     } # ac_fn_cxx_try_run
2090 root 1.166 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 sf-exg 1.132 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 root 1.176 generated by GNU Autoconf 2.72. Invocation command line was
2116 ayin 1.108
2117 root 1.166 $ $0$ac_configure_args_raw
2118 pcg 1.11
2119     _ACEOF
2120 sf-exg 1.132 exec 5>>config.log
2121     {
2122     cat <<_ASUNAME
2123     ## --------- ##
2124     ## Platform. ##
2125     ## --------- ##
2126 pcg 1.11
2127 sf-exg 1.132 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 ayin 1.108
2133 sf-exg 1.132 /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 pcg 1.11
2136 sf-exg 1.132 /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 pcg 1.11
2144 sf-exg 1.132 _ASUNAME
2145 pcg 1.1
2146 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 pcg 1.11 for as_dir in $PATH
2148     do
2149     IFS=$as_save_IFS
2150 root 1.166 case $as_dir in #(((
2151     '') as_dir=./ ;;
2152     */) ;;
2153     *) as_dir=$as_dir/ ;;
2154     esac
2155     printf "%s\n" "PATH: $as_dir"
2156 sf-exg 1.132 done
2157 ayin 1.108 IFS=$as_save_IFS
2158 pcg 1.11
2159 sf-exg 1.132 } >&5
2160 pcg 1.1
2161 sf-exg 1.132 cat >&5 <<_ACEOF
2162 pcg 1.1
2163    
2164 sf-exg 1.132 ## ----------- ##
2165     ## Core tests. ##
2166     ## ----------- ##
2167 pcg 1.1
2168 sf-exg 1.132 _ACEOF
2169 pcg 1.1
2170    
2171 sf-exg 1.132 # 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 ayin 1.108 do
2182 sf-exg 1.132 for ac_arg
2183 ayin 1.108 do
2184 sf-exg 1.132 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 root 1.166 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 sf-exg 1.132 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 ayin 1.108 done
2215 sf-exg 1.132 done
2216     { ac_configure_args0=; unset ac_configure_args0;}
2217     { ac_configure_args1=; unset ac_configure_args1;}
2218 ayin 1.108
2219 sf-exg 1.132 # 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 root 1.166 # Sanitize IFS.
2226     IFS=" "" $as_nl"
2227 sf-exg 1.132 # Save into config.log some information that might help in debugging.
2228     {
2229     echo
2230 ayin 1.108
2231 root 1.166 printf "%s\n" "## ---------------- ##
2232 sf-exg 1.132 ## Cache variables. ##
2233 root 1.137 ## ---------------- ##"
2234 sf-exg 1.132 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 root 1.166 *_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 sf-exg 1.132 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 ayin 1.108 done
2252 sf-exg 1.132 (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 root 1.105
2267 root 1.166 printf "%s\n" "## ----------------- ##
2268 sf-exg 1.132 ## Output variables. ##
2269 root 1.137 ## ----------------- ##"
2270 sf-exg 1.132 echo
2271     for ac_var in $ac_subst_vars
2272     do
2273     eval ac_val=\$$ac_var
2274     case $ac_val in
2275 root 1.166 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2276 sf-exg 1.132 esac
2277 root 1.166 printf "%s\n" "$ac_var='\''$ac_val'\''"
2278 sf-exg 1.132 done | sort
2279     echo
2280 root 1.105
2281 sf-exg 1.132 if test -n "$ac_subst_files"; then
2282 root 1.166 printf "%s\n" "## ------------------- ##
2283 sf-exg 1.132 ## File substitutions. ##
2284 root 1.137 ## ------------------- ##"
2285 sf-exg 1.132 echo
2286     for ac_var in $ac_subst_files
2287     do
2288     eval ac_val=\$$ac_var
2289     case $ac_val in
2290 root 1.166 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2291 sf-exg 1.132 esac
2292 root 1.166 printf "%s\n" "$ac_var='\''$ac_val'\''"
2293 sf-exg 1.132 done | sort
2294     echo
2295     fi
2296 root 1.105
2297 sf-exg 1.132 if test -s confdefs.h; then
2298 root 1.166 printf "%s\n" "## ----------- ##
2299 sf-exg 1.132 ## confdefs.h. ##
2300 root 1.137 ## ----------- ##"
2301 sf-exg 1.132 echo
2302     cat confdefs.h
2303     echo
2304 ayin 1.108 fi
2305 sf-exg 1.132 test "$ac_signal" != 0 &&
2306 root 1.166 printf "%s\n" "$as_me: caught signal $ac_signal"
2307     printf "%s\n" "$as_me: exit $exit_status"
2308 sf-exg 1.132 } >&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 ayin 1.108 done
2316 sf-exg 1.132 ac_signal=0
2317 ayin 1.108
2318 sf-exg 1.132 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2319     rm -f -r conftest* confdefs.h
2320 ayin 1.108
2321 root 1.166 printf "%s\n" "/* confdefs.h */" > confdefs.h
2322 ayin 1.108
2323 sf-exg 1.132 # Predefined preprocessor variables.
2324 ayin 1.108
2325 root 1.166 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2326 ayin 1.108
2327 root 1.166 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2328 ayin 1.108
2329 root 1.166 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2330 ayin 1.108
2331 root 1.166 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2332 ayin 1.108
2333 root 1.166 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2334 ayin 1.108
2335 root 1.166 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2336 ayin 1.104
2337 ayin 1.108
2338 sf-exg 1.132 # 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 root 1.166 ac_site_files="$CONFIG_SITE"
2342 sf-exg 1.132 elif test "x$prefix" != xNONE; then
2343 root 1.166 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2344 ayin 1.104 else
2345 root 1.166 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2346 ayin 1.108 fi
2347 root 1.166
2348     for ac_site_file in $ac_site_files
2349 sf-exg 1.132 do
2350 root 1.166 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 sf-exg 1.132 sed 's/^/| /' "$ac_site_file" >&5
2360 root 1.137 . "$ac_site_file" \
2361 root 1.176 || { { 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 root 1.137 as_fn_error $? "failed to load site script $ac_site_file
2364 root 1.176 See 'config.log' for more details" "$LINENO" 5; }
2365 sf-exg 1.132 fi
2366     done
2367 ayin 1.108
2368 sf-exg 1.132 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 root 1.166 { 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 sf-exg 1.132 case $cache_file in
2375     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2376     *) . "./$cache_file";;
2377     esac
2378     fi
2379 ayin 1.108 else
2380 root 1.166 { 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 sf-exg 1.132 >$cache_file
2383     fi
2384 ayin 1.106
2385 root 1.166 # 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 root 1.176 static char *e (char **p, int i)
2401 root 1.166 {
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 root 1.176 /* 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 root 1.166 /* 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 root 1.176 /* Does the compiler advertise C99 conformance? */
2457 root 1.166 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2458     # error "Compiler does not advertise C99 conformance"
2459     #endif
2460    
2461 root 1.176 // See if C++-style comments work.
2462    
2463 root 1.166 #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 root 1.176 extern void free (void *);
2469 root 1.166
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 root 1.176 // Work around memory leak warnings.
2584     free (ia);
2585 root 1.166
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 root 1.176 /* Does the compiler advertise C11 conformance? */
2607 root 1.166 #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 sf-exg 1.169 ac_aux_files="install-sh"
2940 root 1.166
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 root 1.176 else case e in #(
3017     e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3018     esac
3019 root 1.166 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 sf-exg 1.132 # 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 root 1.176 { 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 sf-exg 1.132 ac_cache_corrupted=: ;;
3049     ,set)
3050 root 1.176 { 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 sf-exg 1.132 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 root 1.176 { 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 sf-exg 1.132 ac_cache_corrupted=:
3063     else
3064 root 1.176 { 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 sf-exg 1.132 eval $ac_var=\$ac_old_val
3067     fi
3068 root 1.176 { 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 sf-exg 1.132 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 root 1.166 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3078 sf-exg 1.132 *) 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 ayin 1.108 fi
3085 sf-exg 1.132 done
3086     if $ac_cache_corrupted; then
3087 root 1.176 { 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 root 1.166 { 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 root 1.176 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3092 root 1.166 and start over" "$LINENO" 5
3093 sf-exg 1.132 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 ayin 1.106
3107 sf-exg 1.132 ac_config_headers="$ac_config_headers config.h:config.h.in"
3108 ayin 1.108
3109    
3110 sf-exg 1.151 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 root 1.80
3113 sf-exg 1.132 echo ""
3114     echo "configuring for rxvt $VERSION"
3115     echo ""
3116 root 1.83
3117 sf-exg 1.132 orig_CXXFLAGS="$CXXFLAGS"
3118 root 1.83
3119 root 1.166
3120    
3121    
3122    
3123    
3124    
3125    
3126    
3127    
3128 sf-exg 1.132 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 root 1.166 { 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 root 1.176 else case e in #(
3142     e) if test -n "$CC"; then
3143 sf-exg 1.132 ac_cv_prog_CC="$CC" # Let the user override the test.
3144 root 1.80 else
3145 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146     for as_dir in $PATH
3147     do
3148     IFS=$as_save_IFS
3149 root 1.166 case $as_dir in #(((
3150     '') as_dir=./ ;;
3151     */) ;;
3152     *) as_dir=$as_dir/ ;;
3153     esac
3154 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
3155 root 1.166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3156 sf-exg 1.132 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3157 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3158 sf-exg 1.132 break 2
3159     fi
3160     done
3161     done
3162     IFS=$as_save_IFS
3163 root 1.80
3164 root 1.176 fi ;;
3165     esac
3166 sf-exg 1.132 fi
3167     CC=$ac_cv_prog_CC
3168     if test -n "$CC"; then
3169 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3170     printf "%s\n" "$CC" >&6; }
3171 sf-exg 1.132 else
3172 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173     printf "%s\n" "no" >&6; }
3174 root 1.80 fi
3175    
3176    
3177 sf-exg 1.132 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 root 1.166 { 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 root 1.176 else case e in #(
3188     e) if test -n "$ac_ct_CC"; then
3189 sf-exg 1.132 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 root 1.166 case $as_dir in #(((
3196     '') as_dir=./ ;;
3197     */) ;;
3198     *) as_dir=$as_dir/ ;;
3199     esac
3200 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
3201 root 1.166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3202 sf-exg 1.132 ac_cv_prog_ac_ct_CC="gcc"
3203 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3204 sf-exg 1.132 break 2
3205     fi
3206     done
3207     done
3208     IFS=$as_save_IFS
3209 pcg 1.11
3210 root 1.176 fi ;;
3211     esac
3212 sf-exg 1.132 fi
3213     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3214     if test -n "$ac_ct_CC"; then
3215 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216     printf "%s\n" "$ac_ct_CC" >&6; }
3217 root 1.57 else
3218 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219     printf "%s\n" "no" >&6; }
3220 sf-exg 1.132 fi
3221 root 1.57
3222 sf-exg 1.132 if test "x$ac_ct_CC" = x; then
3223     CC=""
3224     else
3225     case $cross_compiling:$ac_tool_warned in
3226     yes:)
3227 root 1.166 { 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 sf-exg 1.132 ac_tool_warned=yes ;;
3230 ayin 1.108 esac
3231 sf-exg 1.132 CC=$ac_ct_CC
3232     fi
3233 root 1.57 else
3234 sf-exg 1.132 CC="$ac_cv_prog_CC"
3235 root 1.57 fi
3236 ayin 1.108
3237 sf-exg 1.132 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 root 1.166 { 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 root 1.176 else case e in #(
3247     e) if test -n "$CC"; then
3248 sf-exg 1.132 ac_cv_prog_CC="$CC" # Let the user override the test.
3249 pcg 1.25 else
3250 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3251     for as_dir in $PATH
3252     do
3253     IFS=$as_save_IFS
3254 root 1.166 case $as_dir in #(((
3255     '') as_dir=./ ;;
3256     */) ;;
3257     *) as_dir=$as_dir/ ;;
3258     esac
3259 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
3260 root 1.166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3261 sf-exg 1.132 ac_cv_prog_CC="${ac_tool_prefix}cc"
3262 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3263 sf-exg 1.132 break 2
3264     fi
3265     done
3266     done
3267     IFS=$as_save_IFS
3268 pcg 1.25
3269 root 1.176 fi ;;
3270     esac
3271 sf-exg 1.132 fi
3272     CC=$ac_cv_prog_CC
3273     if test -n "$CC"; then
3274 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275     printf "%s\n" "$CC" >&6; }
3276 pcg 1.25 else
3277 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278     printf "%s\n" "no" >&6; }
3279 sf-exg 1.132 fi
3280    
3281 pcg 1.25
3282 sf-exg 1.132 fi
3283 pcg 1.25 fi
3284 sf-exg 1.132 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 root 1.166 { 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 root 1.176 else case e in #(
3293     e) if test -n "$CC"; then
3294 sf-exg 1.132 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 root 1.166 case $as_dir in #(((
3302     '') as_dir=./ ;;
3303     */) ;;
3304     *) as_dir=$as_dir/ ;;
3305     esac
3306 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
3307 root 1.166 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 sf-exg 1.132 ac_prog_rejected=yes
3310     continue
3311     fi
3312     ac_cv_prog_CC="cc"
3313 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3314 sf-exg 1.132 break 2
3315     fi
3316     done
3317     done
3318     IFS=$as_save_IFS
3319 ayin 1.108
3320 sf-exg 1.132 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 root 1.166 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3330 sf-exg 1.132 fi
3331     fi
3332 root 1.176 fi ;;
3333     esac
3334 pcg 1.25 fi
3335 sf-exg 1.132 CC=$ac_cv_prog_CC
3336     if test -n "$CC"; then
3337 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3338     printf "%s\n" "$CC" >&6; }
3339 sf-exg 1.132 else
3340 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341     printf "%s\n" "no" >&6; }
3342 root 1.57 fi
3343    
3344    
3345 sf-exg 1.132 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 root 1.166 { 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 root 1.176 else case e in #(
3358     e) if test -n "$CC"; then
3359 sf-exg 1.132 ac_cv_prog_CC="$CC" # Let the user override the test.
3360 root 1.57 else
3361 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362     for as_dir in $PATH
3363     do
3364     IFS=$as_save_IFS
3365 root 1.166 case $as_dir in #(((
3366     '') as_dir=./ ;;
3367     */) ;;
3368     *) as_dir=$as_dir/ ;;
3369     esac
3370 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
3371 root 1.166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3372 sf-exg 1.132 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3373 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3374 sf-exg 1.132 break 2
3375     fi
3376     done
3377     done
3378     IFS=$as_save_IFS
3379 root 1.57
3380 root 1.176 fi ;;
3381     esac
3382 sf-exg 1.132 fi
3383     CC=$ac_cv_prog_CC
3384     if test -n "$CC"; then
3385 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3386     printf "%s\n" "$CC" >&6; }
3387 sf-exg 1.132 else
3388 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389     printf "%s\n" "no" >&6; }
3390 sf-exg 1.132 fi
3391 root 1.57
3392    
3393 sf-exg 1.132 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 root 1.166 { 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 root 1.176 else case e in #(
3408     e) if test -n "$ac_ct_CC"; then
3409 sf-exg 1.132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3410 root 1.57 else
3411 sf-exg 1.132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412     for as_dir in $PATH
3413     do
3414     IFS=$as_save_IFS
3415 root 1.166 case $as_dir in #(((
3416     '') as_dir=./ ;;
3417     */) ;;
3418     *) as_dir=$as_dir/ ;;
3419     esac
3420 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
3421 root 1.166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3422 sf-exg 1.132 ac_cv_prog_ac_ct_CC="$ac_prog"
3423 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3424 sf-exg 1.132 break 2
3425     fi
3426     done
3427     done
3428     IFS=$as_save_IFS
3429 pcg 1.25
3430 root 1.176 fi ;;
3431     esac
3432 root 1.57 fi
3433 sf-exg 1.132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3434     if test -n "$ac_ct_CC"; then
3435 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3436     printf "%s\n" "$ac_ct_CC" >&6; }
3437 root 1.57 else
3438 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439     printf "%s\n" "no" >&6; }
3440 sf-exg 1.132 fi
3441    
3442    
3443     test -n "$ac_ct_CC" && break
3444     done
3445 pcg 1.25
3446 sf-exg 1.132 if test "x$ac_ct_CC" = x; then
3447     CC=""
3448     else
3449     case $cross_compiling:$ac_tool_warned in
3450     yes:)
3451 root 1.166 { 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 root 1.176 else case e in #(
3470     e) if test -n "$CC"; then
3471 root 1.166 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 root 1.176 fi ;;
3493     esac
3494 root 1.166 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 root 1.176 else case e in #(
3516     e) if test -n "$ac_ct_CC"; then
3517 root 1.166 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 root 1.176 fi ;;
3539     esac
3540 root 1.166 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 sf-exg 1.132 ac_tool_warned=yes ;;
3558 ayin 1.108 esac
3559 sf-exg 1.132 CC=$ac_ct_CC
3560     fi
3561 root 1.166 else
3562     CC="$ac_cv_prog_CC"
3563 pcg 1.25 fi
3564 ayin 1.108
3565 pcg 1.25 fi
3566    
3567 root 1.57
3568 root 1.176 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 root 1.137 as_fn_error $? "no acceptable C compiler found in \$PATH
3571 root 1.176 See 'config.log' for more details" "$LINENO" 5; }
3572 root 1.57
3573 sf-exg 1.132 # Provide some information about the compiler.
3574 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3575 sf-exg 1.132 set X $ac_compile
3576     ac_compiler=$2
3577 root 1.166 for ac_option in --version -v -V -qversion -version; do
3578 sf-exg 1.132 { { 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 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
3585 sf-exg 1.132 (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 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3595 sf-exg 1.132 test $ac_status = 0; }
3596     done
3597 root 1.57
3598 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599     /* end confdefs.h. */
3600 root 1.57
3601     int
3602 root 1.166 main (void)
3603 root 1.57 {
3604 sf-exg 1.132
3605 root 1.57 ;
3606     return 0;
3607     }
3608     _ACEOF
3609 sf-exg 1.132 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 root 1.166 { 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 sf-exg 1.132
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 ayin 1.108 case "(($ac_try" in
3633     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634     *) ac_try_echo=$ac_try;;
3635     esac
3636 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3637 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
3638 sf-exg 1.132 (eval "$ac_link_default") 2>&5
3639 root 1.57 ac_status=$?
3640 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3641     test $ac_status = 0; }
3642     then :
3643 root 1.176 # 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 sf-exg 1.132 # 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 root 1.166 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3660 sf-exg 1.132 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 root 1.176 # safe: cross compilers may not add the suffix if given an '-o'
3665 sf-exg 1.132 # 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 root 1.176 else case e in #(
3676     e) ac_file='' ;;
3677     esac
3678 root 1.57 fi
3679 root 1.166 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 sf-exg 1.132 sed 's/^/| /' conftest.$ac_ext >&5
3685    
3686 root 1.176 { { 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 root 1.137 as_fn_error 77 "C compiler cannot create executables
3689 root 1.176 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 root 1.166 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 sf-exg 1.132 ac_exeext=$ac_cv_exeext
3700 ayin 1.108
3701 sf-exg 1.132 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 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3704     printf %s "checking for suffix of executables... " >&6; }
3705 sf-exg 1.132 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 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
3712 sf-exg 1.132 (eval "$ac_link") 2>&5
3713     ac_status=$?
3714 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715     test $ac_status = 0; }
3716     then :
3717 root 1.176 # 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 sf-exg 1.132 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 root 1.176 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 root 1.137 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3734 root 1.176 See 'config.log' for more details" "$LINENO" 5; } ;;
3735     esac
3736 sf-exg 1.132 fi
3737     rm -f conftest conftest$ac_cv_exeext
3738 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3739     printf "%s\n" "$ac_cv_exeext" >&6; }
3740 sf-exg 1.132
3741     rm -f conftest.$ac_ext
3742     EXEEXT=$ac_cv_exeext
3743     ac_exeext=$EXEEXT
3744     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 pcg 1.25 /* end confdefs.h. */
3746 sf-exg 1.132 #include <stdio.h>
3747 pcg 1.25 int
3748 root 1.166 main (void)
3749 pcg 1.25 {
3750 sf-exg 1.132 FILE *f = fopen ("conftest.out", "w");
3751 root 1.176 if (!f)
3752     return 1;
3753 sf-exg 1.132 return ferror (f) || fclose (f) != 0;
3754    
3755 pcg 1.25 ;
3756     return 0;
3757     }
3758     _ACEOF
3759 sf-exg 1.132 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 root 1.166 { 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 sf-exg 1.132 if test "$cross_compiling" != yes; then
3765     { { ac_try="$ac_link"
3766 ayin 1.108 case "(($ac_try" in
3767     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768     *) ac_try_echo=$ac_try;;
3769     esac
3770 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
3772 sf-exg 1.132 (eval "$ac_link") 2>&5
3773     ac_status=$?
3774 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 sf-exg 1.132 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 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
3783 sf-exg 1.132 (eval "$ac_try") 2>&5
3784 pcg 1.25 ac_status=$?
3785 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3786 sf-exg 1.132 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 root 1.176 { { 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 root 1.166 as_fn_error 77 "cannot run C compiled programs.
3795 root 1.176 If you meant to cross compile, use '--host'.
3796     See 'config.log' for more details" "$LINENO" 5; }
3797 root 1.54 fi
3798 root 1.130 fi
3799     fi
3800 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3801     printf "%s\n" "$cross_compiling" >&6; }
3802 root 1.130
3803 root 1.176 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3804     conftest.o conftest.obj conftest.out
3805 sf-exg 1.132 ac_clean_files=$ac_clean_files_save
3806 root 1.166 { 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 root 1.176 else case e in #(
3812     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3813 ayin 1.114 /* end confdefs.h. */
3814    
3815     int
3816 root 1.166 main (void)
3817 ayin 1.114 {
3818    
3819     ;
3820     return 0;
3821     }
3822     _ACEOF
3823 sf-exg 1.132 rm -f conftest.o conftest.obj
3824     if { { ac_try="$ac_compile"
3825 ayin 1.114 case "(($ac_try" in
3826     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3827     *) ac_try_echo=$ac_try;;
3828     esac
3829 sf-exg 1.132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3830 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
3831 sf-exg 1.132 (eval "$ac_compile") 2>&5
3832 ayin 1.114 ac_status=$?
3833 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3834     test $ac_status = 0; }
3835     then :
3836 sf-exg 1.132 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 root 1.176 else case e in #(
3845     e) printf "%s\n" "$as_me: failed program was:" >&5
3846 ayin 1.114 sed 's/^/| /' conftest.$ac_ext >&5
3847    
3848 root 1.176 { { 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 root 1.137 as_fn_error $? "cannot compute suffix of object files: cannot compile
3851 root 1.176 See 'config.log' for more details" "$LINENO" 5; } ;;
3852     esac
3853 sf-exg 1.132 fi
3854 root 1.176 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3855     esac
3856 ayin 1.114 fi
3857 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3858     printf "%s\n" "$ac_cv_objext" >&6; }
3859 sf-exg 1.132 OBJEXT=$ac_cv_objext
3860     ac_objext=$OBJEXT
3861 root 1.166 { 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 root 1.176 else case e in #(
3867     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 sf-exg 1.132 /* end confdefs.h. */
3869    
3870     int
3871 root 1.166 main (void)
3872 sf-exg 1.132 {
3873     #ifndef __GNUC__
3874     choke me
3875     #endif
3876 ayin 1.114
3877 sf-exg 1.132 ;
3878     return 0;
3879     }
3880     _ACEOF
3881 root 1.166 if ac_fn_c_try_compile "$LINENO"
3882     then :
3883 sf-exg 1.132 ac_compiler_gnu=yes
3884 root 1.176 else case e in #(
3885     e) ac_compiler_gnu=no ;;
3886     esac
3887 sf-exg 1.132 fi
3888 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3889 sf-exg 1.132 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3890 root 1.176 ;;
3891     esac
3892 sf-exg 1.132 fi
3893 root 1.166 { 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 sf-exg 1.132 if test $ac_compiler_gnu = yes; then
3898     GCC=yes
3899     else
3900     GCC=
3901 ayin 1.114 fi
3902 root 1.166 ac_test_CFLAGS=${CFLAGS+y}
3903 sf-exg 1.132 ac_save_CFLAGS=$CFLAGS
3904 root 1.166 { 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 root 1.176 else case e in #(
3910     e) ac_save_c_werror_flag=$ac_c_werror_flag
3911 sf-exg 1.132 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 ayin 1.114
3917 sf-exg 1.132 int
3918 root 1.166 main (void)
3919 sf-exg 1.132 {
3920 root 1.105
3921 sf-exg 1.132 ;
3922     return 0;
3923     }
3924     _ACEOF
3925 root 1.166 if ac_fn_c_try_compile "$LINENO"
3926     then :
3927 sf-exg 1.132 ac_cv_prog_cc_g=yes
3928 root 1.176 else case e in #(
3929     e) CFLAGS=""
3930 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931     /* end confdefs.h. */
3932 ayin 1.108
3933 sf-exg 1.132 int
3934 root 1.166 main (void)
3935 sf-exg 1.132 {
3936 root 1.105
3937 sf-exg 1.132 ;
3938     return 0;
3939     }
3940     _ACEOF
3941 root 1.166 if ac_fn_c_try_compile "$LINENO"
3942     then :
3943 ayin 1.108
3944 root 1.176 else case e in #(
3945     e) ac_c_werror_flag=$ac_save_c_werror_flag
3946 sf-exg 1.132 CFLAGS="-g"
3947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948     /* end confdefs.h. */
3949 root 1.105
3950 sf-exg 1.132 int
3951 root 1.166 main (void)
3952 sf-exg 1.132 {
3953 ayin 1.108
3954 sf-exg 1.132 ;
3955     return 0;
3956     }
3957     _ACEOF
3958 root 1.166 if ac_fn_c_try_compile "$LINENO"
3959     then :
3960 sf-exg 1.132 ac_cv_prog_cc_g=yes
3961     fi
3962 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3963     esac
3964 sf-exg 1.132 fi
3965 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3966     esac
3967 sf-exg 1.132 fi
3968 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3969 root 1.176 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3970     esac
3971 sf-exg 1.132 fi
3972 root 1.166 { 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 sf-exg 1.132 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 pcg 1.1 fi
3988 ayin 1.108 fi
3989 root 1.166 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 root 1.176 else case e in #(
3998     e) ac_cv_prog_cc_c11=no
3999 sf-exg 1.132 ac_save_CC=$CC
4000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001     /* end confdefs.h. */
4002 root 1.166 $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 root 1.176 CC=$ac_save_CC ;;
4016     esac
4017 root 1.166 fi
4018 sf-exg 1.132
4019 root 1.166 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 root 1.176 else case e in #(
4024     e) if test "x$ac_cv_prog_cc_c11" = x
4025 root 1.166 then :
4026     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4027     printf "%s\n" "none needed" >&6; }
4028 root 1.176 else case e in #(
4029     e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4030 root 1.166 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4031 root 1.176 CC="$CC $ac_cv_prog_cc_c11" ;;
4032     esac
4033 root 1.166 fi
4034     ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4035 root 1.176 ac_prog_cc_stdc=c11 ;;
4036     esac
4037 root 1.166 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 root 1.176 else case e in #(
4047     e) ac_cv_prog_cc_c99=no
4048 root 1.166 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 root 1.176 CC=$ac_save_CC ;;
4065     esac
4066 root 1.166 fi
4067 root 1.105
4068 root 1.166 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 root 1.176 else case e in #(
4073     e) if test "x$ac_cv_prog_cc_c99" = x
4074 root 1.166 then :
4075     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4076     printf "%s\n" "none needed" >&6; }
4077 root 1.176 else case e in #(
4078     e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4079 root 1.166 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4080 root 1.176 CC="$CC $ac_cv_prog_cc_c99" ;;
4081     esac
4082 root 1.166 fi
4083     ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4084 root 1.176 ac_prog_cc_stdc=c99 ;;
4085     esac
4086 root 1.166 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 root 1.176 else case e in #(
4096     e) ac_cv_prog_cc_c89=no
4097 root 1.166 ac_save_CC=$CC
4098     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099     /* end confdefs.h. */
4100     $ac_c_conftest_c89_program
4101 sf-exg 1.132 _ACEOF
4102 root 1.166 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 sf-exg 1.132 do
4104     CC="$ac_save_CC $ac_arg"
4105 root 1.166 if ac_fn_c_try_compile "$LINENO"
4106     then :
4107 sf-exg 1.132 ac_cv_prog_cc_c89=$ac_arg
4108 ayin 1.108 fi
4109 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam
4110 sf-exg 1.132 test "x$ac_cv_prog_cc_c89" != "xno" && break
4111     done
4112     rm -f conftest.$ac_ext
4113 root 1.176 CC=$ac_save_CC ;;
4114     esac
4115 root 1.166 fi
4116 root 1.103
4117 root 1.166 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 root 1.176 else case e in #(
4122     e) if test "x$ac_cv_prog_cc_c89" = x
4123 root 1.166 then :
4124     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4125     printf "%s\n" "none needed" >&6; }
4126 root 1.176 else case e in #(
4127     e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4128 root 1.166 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4129 root 1.176 CC="$CC $ac_cv_prog_cc_c89" ;;
4130     esac
4131 root 1.166 fi
4132     ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4133 root 1.176 ac_prog_cc_stdc=c89 ;;
4134     esac
4135 sf-exg 1.132 fi
4136 ayin 1.108 fi
4137 root 1.105
4138 sf-exg 1.132 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 ayin 1.108
4144 root 1.166
4145    
4146    
4147    
4148    
4149    
4150 sf-exg 1.132 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 root 1.166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4161 sf-exg 1.132 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 root 1.166 { 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 root 1.176 else case e in #(
4170     e) if test -n "$CXX"; then
4171 sf-exg 1.132 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 root 1.166 case $as_dir in #(((
4178     '') as_dir=./ ;;
4179     */) ;;
4180     *) as_dir=$as_dir/ ;;
4181     esac
4182 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
4183 root 1.166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4184 sf-exg 1.132 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4185 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4186 sf-exg 1.132 break 2
4187 pcg 1.1 fi
4188 sf-exg 1.132 done
4189     done
4190     IFS=$as_save_IFS
4191 root 1.105
4192 root 1.176 fi ;;
4193     esac
4194 ayin 1.108 fi
4195 sf-exg 1.132 CXX=$ac_cv_prog_CXX
4196     if test -n "$CXX"; then
4197 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4198     printf "%s\n" "$CXX" >&6; }
4199 sf-exg 1.132 else
4200 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201     printf "%s\n" "no" >&6; }
4202 ayin 1.108 fi
4203 root 1.105
4204 ayin 1.108
4205 sf-exg 1.132 test -n "$CXX" && break
4206     done
4207 ayin 1.108 fi
4208 sf-exg 1.132 if test -z "$CXX"; then
4209     ac_ct_CXX=$CXX
4210 root 1.166 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4211 sf-exg 1.132 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 root 1.166 { 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 root 1.176 else case e in #(
4220     e) if test -n "$ac_ct_CXX"; then
4221 sf-exg 1.132 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 root 1.166 case $as_dir in #(((
4228     '') as_dir=./ ;;
4229     */) ;;
4230     *) as_dir=$as_dir/ ;;
4231     esac
4232 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
4233 root 1.166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4234 sf-exg 1.132 ac_cv_prog_ac_ct_CXX="$ac_prog"
4235 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4236 sf-exg 1.132 break 2
4237 root 1.60 fi
4238 sf-exg 1.132 done
4239     done
4240     IFS=$as_save_IFS
4241 ayin 1.108
4242 root 1.176 fi ;;
4243     esac
4244 ayin 1.108 fi
4245 sf-exg 1.132 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4246     if test -n "$ac_ct_CXX"; then
4247 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4248     printf "%s\n" "$ac_ct_CXX" >&6; }
4249 sf-exg 1.132 else
4250 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251     printf "%s\n" "no" >&6; }
4252 ayin 1.108 fi
4253 root 1.105
4254 ayin 1.108
4255 sf-exg 1.132 test -n "$ac_ct_CXX" && break
4256     done
4257 pcg 1.1
4258 sf-exg 1.132 if test "x$ac_ct_CXX" = x; then
4259     CXX="g++"
4260     else
4261     case $cross_compiling:$ac_tool_warned in
4262     yes:)
4263 root 1.166 { 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 sf-exg 1.132 ac_tool_warned=yes ;;
4266     esac
4267     CXX=$ac_ct_CXX
4268 pcg 1.1 fi
4269 ayin 1.108 fi
4270 root 1.105
4271 pcg 1.1 fi
4272 ayin 1.108 fi
4273 sf-exg 1.132 # Provide some information about the compiler.
4274 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4275 sf-exg 1.132 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 root 1.166 printf "%s\n" "$ac_try_echo"; } >&5
4285 sf-exg 1.132 (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 root 1.26 fi
4293 sf-exg 1.132 rm -f conftest.er1 conftest.err
4294 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 sf-exg 1.132 test $ac_status = 0; }
4296     done
4297 ayin 1.108
4298 root 1.166 { 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 root 1.176 else case e in #(
4304     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 sf-exg 1.132 /* end confdefs.h. */
4306 root 1.26
4307 sf-exg 1.132 int
4308 root 1.166 main (void)
4309 sf-exg 1.132 {
4310     #ifndef __GNUC__
4311     choke me
4312     #endif
4313 pcg 1.15
4314 sf-exg 1.132 ;
4315     return 0;
4316     }
4317 pcg 1.15 _ACEOF
4318 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
4319     then :
4320 sf-exg 1.132 ac_compiler_gnu=yes
4321 root 1.176 else case e in #(
4322     e) ac_compiler_gnu=no ;;
4323     esac
4324 pcg 1.15 fi
4325 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4326 sf-exg 1.132 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4327 root 1.176 ;;
4328     esac
4329 ayin 1.108 fi
4330 root 1.166 { 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 sf-exg 1.132 if test $ac_compiler_gnu = yes; then
4335     GXX=yes
4336     else
4337     GXX=
4338 ayin 1.108 fi
4339 root 1.166 ac_test_CXXFLAGS=${CXXFLAGS+y}
4340 sf-exg 1.132 ac_save_CXXFLAGS=$CXXFLAGS
4341 root 1.166 { 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 root 1.176 else case e in #(
4347     e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4348 sf-exg 1.132 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 ayin 1.108
4354 sf-exg 1.132 int
4355 root 1.166 main (void)
4356 sf-exg 1.132 {
4357 pcg 1.15
4358 sf-exg 1.132 ;
4359     return 0;
4360     }
4361 pcg 1.15 _ACEOF
4362 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
4363     then :
4364 sf-exg 1.132 ac_cv_prog_cxx_g=yes
4365 root 1.176 else case e in #(
4366     e) CXXFLAGS=""
4367 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368     /* end confdefs.h. */
4369 pcg 1.15
4370 sf-exg 1.132 int
4371 root 1.166 main (void)
4372 sf-exg 1.132 {
4373 pcg 1.15
4374 sf-exg 1.132 ;
4375     return 0;
4376     }
4377 root 1.39 _ACEOF
4378 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
4379     then :
4380 root 1.39
4381 root 1.176 else case e in #(
4382     e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4383 sf-exg 1.132 CXXFLAGS="-g"
4384     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385     /* end confdefs.h. */
4386 root 1.39
4387 sf-exg 1.132 int
4388 root 1.166 main (void)
4389 sf-exg 1.132 {
4390 pcg 1.15
4391 sf-exg 1.132 ;
4392     return 0;
4393     }
4394 pcg 1.11 _ACEOF
4395 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
4396     then :
4397 sf-exg 1.132 ac_cv_prog_cxx_g=yes
4398 ayin 1.108 fi
4399 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4400     esac
4401 ayin 1.108 fi
4402 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4403     esac
4404 ayin 1.108 fi
4405 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4406 root 1.176 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4407     esac
4408 ayin 1.108 fi
4409 root 1.166 { 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 sf-exg 1.132 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 pcg 1.1 fi
4419 sf-exg 1.132 else
4420     if test "$GXX" = yes; then
4421     CXXFLAGS="-O2"
4422     else
4423     CXXFLAGS=
4424 pcg 1.1 fi
4425 ayin 1.108 fi
4426 root 1.166 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 root 1.176 if test ${ac_cv_prog_cxx_cxx11+y}
4432 root 1.166 then :
4433     printf %s "(cached) " >&6
4434 root 1.176 else case e in #(
4435     e) ac_cv_prog_cxx_cxx11=no
4436 root 1.166 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 root 1.176 CXX=$ac_save_CXX ;;
4453     esac
4454 root 1.166 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 root 1.176 else case e in #(
4461     e) if test "x$ac_cv_prog_cxx_cxx11" = x
4462 root 1.166 then :
4463     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4464     printf "%s\n" "none needed" >&6; }
4465 root 1.176 else case e in #(
4466     e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4467 root 1.166 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4468 root 1.176 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4469     esac
4470 root 1.166 fi
4471     ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4472 root 1.176 ac_prog_cxx_stdcxx=cxx11 ;;
4473     esac
4474 root 1.166 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 root 1.176 if test ${ac_cv_prog_cxx_cxx98+y}
4481 root 1.166 then :
4482     printf %s "(cached) " >&6
4483 root 1.176 else case e in #(
4484     e) ac_cv_prog_cxx_cxx98=no
4485 root 1.166 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 root 1.176 CXX=$ac_save_CXX ;;
4502     esac
4503 root 1.166 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 root 1.176 else case e in #(
4510     e) if test "x$ac_cv_prog_cxx_cxx98" = x
4511 root 1.166 then :
4512     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4513     printf "%s\n" "none needed" >&6; }
4514 root 1.176 else case e in #(
4515     e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4516 root 1.166 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4517 root 1.176 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4518     esac
4519 root 1.166 fi
4520     ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4521 root 1.176 ac_prog_cxx_stdcxx=cxx98 ;;
4522     esac
4523 root 1.166 fi
4524     fi
4525    
4526 sf-exg 1.132 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 ayin 1.108
4532 root 1.166
4533 sf-exg 1.169
4534 root 1.166 # Find a good install program. We prefer a C program (faster),
4535 root 1.153 # 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 root 1.166 { 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 root 1.153 if test -z "$INSTALL"; then
4551 root 1.166 if test ${ac_cv_path_install+y}
4552     then :
4553     printf %s "(cached) " >&6
4554 root 1.176 else case e in #(
4555     e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 root 1.153 for as_dir in $PATH
4557     do
4558     IFS=$as_save_IFS
4559 root 1.166 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 root 1.153 /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 root 1.166 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4577 root 1.153 if test $ac_prog = install &&
4578 root 1.166 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4579 root 1.153 # AIX install. It has an incompatible calling convention.
4580     :
4581     elif test $ac_prog = install &&
4582 root 1.166 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4583 root 1.153 # 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 root 1.166 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4591 root 1.153 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 root 1.166 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4596 root 1.153 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 root 1.176 ;;
4610     esac
4611 root 1.153 fi
4612 root 1.166 if test ${ac_cv_path_install+y}; then
4613 root 1.153 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 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4623     printf "%s\n" "$INSTALL" >&6; }
4624 root 1.153
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 root 1.166 ac_header= ac_cache=
4636     for ac_item in $ac_header_c_list
4637 sf-exg 1.132 do
4638 root 1.166 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 ayin 1.108
4663     fi
4664    
4665 root 1.166
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 root 1.176 else case e in #(
4676     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 sf-exg 1.132 /* end confdefs.h. */
4678 root 1.166
4679     # define __EXTENSIONS__ 1
4680     $ac_includes_default
4681     int
4682     main (void)
4683     {
4684    
4685     ;
4686     return 0;
4687     }
4688 pcg 1.11 _ACEOF
4689 root 1.166 if ac_fn_c_try_compile "$LINENO"
4690     then :
4691     ac_cv_safe_to_define___extensions__=yes
4692 root 1.176 else case e in #(
4693     e) ac_cv_safe_to_define___extensions__=no ;;
4694     esac
4695 root 1.80 fi
4696 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4697     esac
4698 root 1.116 fi
4699 root 1.166 { 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 root 1.116
4702 root 1.166 { 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 root 1.176 else case e in #(
4708     e) ac_cv_should_define__xopen_source=no
4709 root 1.166 if test $ac_cv_header_wchar_h = yes
4710     then :
4711 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 root 1.116 /* end confdefs.h. */
4713    
4714 root 1.166 #include <wchar.h>
4715     mbstate_t x;
4716 root 1.116 int
4717 root 1.166 main (void)
4718 root 1.116 {
4719    
4720     ;
4721     return 0;
4722     }
4723     _ACEOF
4724 root 1.166 if ac_fn_c_try_compile "$LINENO"
4725     then :
4726 root 1.116
4727 root 1.176 else case e in #(
4728     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 root 1.116 /* end confdefs.h. */
4730    
4731 root 1.166 #define _XOPEN_SOURCE 500
4732     #include <wchar.h>
4733     mbstate_t x;
4734 root 1.116 int
4735 root 1.166 main (void)
4736 root 1.116 {
4737 root 1.166
4738     ;
4739 root 1.116 return 0;
4740     }
4741     _ACEOF
4742 root 1.166 if ac_fn_c_try_compile "$LINENO"
4743     then :
4744     ac_cv_should_define__xopen_source=yes
4745 sf-exg 1.132 fi
4746 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4747     esac
4748 sf-exg 1.132 fi
4749 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4750 root 1.176 fi ;;
4751     esac
4752 sf-exg 1.132 fi
4753 root 1.166 { 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 root 1.116
4756 root 1.166 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4757 root 1.116
4758 root 1.166 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4759 root 1.116
4760 root 1.166 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4761 root 1.116
4762 root 1.166 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4763 root 1.116
4764 root 1.166 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4765 root 1.116
4766 root 1.166 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4767 root 1.116
4768 root 1.166 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4769 root 1.116
4770 root 1.166 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4771 root 1.116
4772 root 1.166 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4773 root 1.117
4774 root 1.166 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4775 root 1.119
4776 root 1.176 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4777    
4778 root 1.166 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4779 root 1.119
4780 root 1.166 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4781 ayin 1.121
4782 root 1.166 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4783 root 1.127
4784 root 1.166 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4785 root 1.129
4786 root 1.166 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4787 root 1.116
4788 root 1.166 if test $ac_cv_header_minix_config_h = yes
4789     then :
4790     MINIX=yes
4791     printf "%s\n" "#define _MINIX 1" >>confdefs.h
4792 root 1.116
4793 root 1.166 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4794 root 1.116
4795 root 1.166 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4796 root 1.116
4797 root 1.176 else case e in #(
4798     e) MINIX= ;;
4799     esac
4800 root 1.166 fi
4801     if test $ac_cv_safe_to_define___extensions__ = yes
4802     then :
4803     printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4804 sf-exg 1.132
4805     fi
4806 root 1.166 if test $ac_cv_should_define__xopen_source = yes
4807     then :
4808     printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4809    
4810 sf-exg 1.132 fi
4811 root 1.116
4812 sf-exg 1.132 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 sf-exg 1.151 LINKER="$CXX"
4820 sf-exg 1.132 if test x$GCC = xyes && test x$GXX = xyes; then
4821 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4822     printf %s "checking for working libsupc++... " >&6; }
4823 sf-exg 1.132 save_CXX="$CXX"
4824     save_LIBS="$LIBS"
4825     CXX="$CC"
4826     LIBS="$LIBS -lsupc++"
4827 root 1.116
4828 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 root 1.129 /* end confdefs.h. */
4830 sf-exg 1.132 struct test { }; void f() try { throw new test; } catch (...) { throw; }
4831 root 1.129 int
4832 root 1.166 main (void)
4833 root 1.129 {
4834 sf-exg 1.132
4835 root 1.129 ;
4836     return 0;
4837     }
4838     _ACEOF
4839 root 1.166 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 sf-exg 1.151 LINKER="$CC"
4844 root 1.176 else case e in #(
4845     e)
4846 root 1.166 { 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 sf-exg 1.132 LIBS="$save_LIBS"
4849 root 1.129
4850 root 1.176 ;;
4851     esac
4852 root 1.129 fi
4853 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4854 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
4855     CXX="$save_CXX"
4856     fi
4857     LINKER=$LINKER
4858 root 1.129
4859 root 1.116
4860 sf-exg 1.132 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 root 1.116 /* end confdefs.h. */
4865    
4866     int
4867 root 1.166 main (void)
4868 root 1.116 {
4869 sf-exg 1.132
4870 root 1.116 ;
4871     return 0;
4872     }
4873     _ACEOF
4874 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
4875     then :
4876 sf-exg 1.132
4877 root 1.176 else case e in #(
4878     e) CXXFLAGS="-g -O3" ;;
4879     esac
4880 sf-exg 1.132 fi
4881 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4882 sf-exg 1.132 else
4883     CXXFLAGS="-O"
4884     fi
4885     CFLAGS="$CXXFLAGS"
4886 root 1.116 fi
4887    
4888 root 1.166 { 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 root 1.176 else case e in #(
4894     e) ac_func_search_save_LIBS=$LIBS
4895 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 root 1.116 /* end confdefs.h. */
4897    
4898 root 1.166 namespace conftest {
4899     extern "C" int setlocale ();
4900     }
4901 root 1.116 int
4902 root 1.166 main (void)
4903 root 1.116 {
4904 root 1.166 return conftest::setlocale ();
4905 root 1.116 ;
4906     return 0;
4907     }
4908     _ACEOF
4909 root 1.166 for ac_lib in '' xpg4
4910     do
4911 sf-exg 1.133 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 root 1.166 if ac_fn_cxx_try_link "$LINENO"
4918     then :
4919 sf-exg 1.133 ac_cv_search_setlocale=$ac_res
4920 sf-exg 1.132 fi
4921 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4922 sf-exg 1.133 conftest$ac_exeext
4923 root 1.166 if test ${ac_cv_search_setlocale+y}
4924     then :
4925 sf-exg 1.133 break
4926     fi
4927     done
4928 root 1.166 if test ${ac_cv_search_setlocale+y}
4929     then :
4930 sf-exg 1.133
4931 root 1.176 else case e in #(
4932     e) ac_cv_search_setlocale=no ;;
4933     esac
4934 root 1.116 fi
4935 sf-exg 1.133 rm conftest.$ac_ext
4936 root 1.176 LIBS=$ac_func_search_save_LIBS ;;
4937     esac
4938 root 1.116 fi
4939 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4940     printf "%s\n" "$ac_cv_search_setlocale" >&6; }
4941 sf-exg 1.133 ac_res=$ac_cv_search_setlocale
4942 root 1.166 if test "$ac_res" != no
4943     then :
4944 sf-exg 1.133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4945 root 1.116
4946     fi
4947    
4948    
4949 root 1.166 { 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 root 1.176 else case e in #(
4955     e) ac_func_search_save_LIBS=$LIBS
4956 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957 root 1.123 /* end confdefs.h. */
4958    
4959 root 1.166 namespace conftest {
4960     extern "C" int gethostbyname ();
4961     }
4962 root 1.123 int
4963 root 1.166 main (void)
4964 root 1.123 {
4965 root 1.166 return conftest::gethostbyname ();
4966 root 1.123 ;
4967     return 0;
4968     }
4969     _ACEOF
4970 root 1.166 for ac_lib in '' nsl
4971     do
4972 sf-exg 1.133 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 root 1.166 if ac_fn_cxx_try_link "$LINENO"
4979     then :
4980 sf-exg 1.133 ac_cv_search_gethostbyname=$ac_res
4981 sf-exg 1.132 fi
4982 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4983 sf-exg 1.133 conftest$ac_exeext
4984 root 1.166 if test ${ac_cv_search_gethostbyname+y}
4985     then :
4986 sf-exg 1.133 break
4987     fi
4988     done
4989 root 1.166 if test ${ac_cv_search_gethostbyname+y}
4990     then :
4991 sf-exg 1.133
4992 root 1.176 else case e in #(
4993     e) ac_cv_search_gethostbyname=no ;;
4994     esac
4995 sf-exg 1.132 fi
4996 sf-exg 1.133 rm conftest.$ac_ext
4997 root 1.176 LIBS=$ac_func_search_save_LIBS ;;
4998     esac
4999 root 1.123 fi
5000 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
5001     printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
5002 sf-exg 1.133 ac_res=$ac_cv_search_gethostbyname
5003 root 1.166 if test "$ac_res" != no
5004     then :
5005 sf-exg 1.133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5006 root 1.123
5007     fi
5008    
5009 root 1.166 { 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 root 1.176 else case e in #(
5015     e) ac_func_search_save_LIBS=$LIBS
5016 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 root 1.123 /* end confdefs.h. */
5018    
5019 root 1.166 namespace conftest {
5020     extern "C" int socket ();
5021     }
5022 root 1.123 int
5023 root 1.166 main (void)
5024 root 1.123 {
5025 root 1.166 return conftest::socket ();
5026 root 1.123 ;
5027     return 0;
5028     }
5029     _ACEOF
5030 root 1.166 for ac_lib in '' socket
5031     do
5032 sf-exg 1.133 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 root 1.166 if ac_fn_cxx_try_link "$LINENO"
5039     then :
5040 sf-exg 1.133 ac_cv_search_socket=$ac_res
5041 sf-exg 1.132 fi
5042 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5043 sf-exg 1.133 conftest$ac_exeext
5044 root 1.166 if test ${ac_cv_search_socket+y}
5045     then :
5046 sf-exg 1.133 break
5047     fi
5048     done
5049 root 1.166 if test ${ac_cv_search_socket+y}
5050     then :
5051 sf-exg 1.133
5052 root 1.176 else case e in #(
5053     e) ac_cv_search_socket=no ;;
5054     esac
5055 sf-exg 1.132 fi
5056 sf-exg 1.133 rm conftest.$ac_ext
5057 root 1.176 LIBS=$ac_func_search_save_LIBS ;;
5058     esac
5059 sf-exg 1.132 fi
5060 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5061     printf "%s\n" "$ac_cv_search_socket" >&6; }
5062 sf-exg 1.133 ac_res=$ac_cv_search_socket
5063 root 1.166 if test "$ac_res" != no
5064     then :
5065 sf-exg 1.133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5066 root 1.123
5067     fi
5068    
5069 sf-exg 1.132
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 sf-exg 1.142 support_pixbuf=yes
5084 mikachu 1.147 support_startup_notification=yes
5085 sf-exg 1.132 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 root 1.166 if test ${enable_everything+y}
5097     then :
5098 sf-exg 1.132 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 sf-exg 1.142 support_pixbuf=no
5114 mikachu 1.147 support_startup_notification=no
5115 sf-exg 1.132 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 sf-exg 1.142 support_pixbuf=yes
5139 mikachu 1.147 support_startup_notification=yes
5140 sf-exg 1.132 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 root 1.123 fi
5151    
5152    
5153 root 1.150 support_assertions=no
5154 sf-exg 1.132 # Check whether --enable-assert was given.
5155 root 1.166 if test ${enable_assert+y}
5156     then :
5157 sf-exg 1.132 enableval=$enable_assert; if test x$enableval = xyes; then
5158 root 1.150 support_assertions=yes
5159 sf-exg 1.132 fi
5160 root 1.123 fi
5161    
5162 root 1.150 if test x$support_assertions = xno; then
5163 root 1.123
5164 root 1.166 printf "%s\n" "#define NDEBUG 1" >>confdefs.h
5165 root 1.123
5166 sf-exg 1.132 fi
5167 root 1.123
5168 root 1.150 support_warnings=no
5169 sf-exg 1.132 # Check whether --enable-warnings was given.
5170 root 1.166 if test ${enable_warnings+y}
5171     then :
5172 sf-exg 1.132 enableval=$enable_warnings; if test x$enableval = xyes; then
5173 root 1.150 support_warnings=yes
5174 sf-exg 1.132 fi
5175     fi
5176 root 1.123
5177 sf-exg 1.132 if test x$GXX = xyes; then
5178 root 1.150 if test $support_warnings = yes; then
5179 sf-exg 1.132 save_CXXFLAGS="$CXXFLAGS"
5180 sf-exg 1.170 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 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190     /* end confdefs.h. */
5191 root 1.123
5192     int
5193 root 1.166 main (void)
5194 root 1.123 {
5195 sf-exg 1.132
5196 root 1.123 ;
5197     return 0;
5198     }
5199     _ACEOF
5200 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
5201     then :
5202 sf-exg 1.132
5203 root 1.176 else case e in #(
5204     e) CXXFLAGS="$save_CXXFLAGS" ;;
5205     esac
5206 sf-exg 1.132 fi
5207 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5208 sf-exg 1.132 else
5209     CXXFLAGS="$CXXFLAGS -w"
5210     fi
5211     fi
5212    
5213     support_256_color=no
5214     # Check whether --enable-256-color was given.
5215 root 1.166 if test ${enable_256_color+y}
5216     then :
5217 sf-exg 1.132 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 root 1.166 printf "%s\n" "#define USE_256_COLORS 1" >>confdefs.h
5225 sf-exg 1.132
5226     fi
5227    
5228     # Check whether --enable-unicode3 was given.
5229 root 1.166 if test ${enable_unicode3+y}
5230     then :
5231 sf-exg 1.132 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 root 1.166 if test ${enable_combining+y}
5239     then :
5240 sf-exg 1.132 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 root 1.166 if test ${enable_xft+y}
5248     then :
5249 sf-exg 1.132 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 root 1.166 if test ${enable_font_styles+y}
5257     then :
5258 sf-exg 1.132 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
5259     support_styles=$enableval
5260     fi
5261     fi
5262    
5263 root 1.123
5264 sf-exg 1.134 # Check whether --enable-pixbuf was given.
5265 root 1.166 if test ${enable_pixbuf+y}
5266     then :
5267 sf-exg 1.134 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
5268     support_pixbuf=$enableval
5269     fi
5270     fi
5271    
5272    
5273 mikachu 1.147 # Check whether --enable-startup-notification was given.
5274 root 1.166 if test ${enable_startup_notification+y}
5275     then :
5276 mikachu 1.147 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 sf-exg 1.132 # Check whether --enable-transparency was given.
5283 root 1.166 if test ${enable_transparency+y}
5284     then :
5285 sf-exg 1.132 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
5286     support_inheritpixmap=$enableval
5287     fi
5288 root 1.123 fi
5289    
5290    
5291 sf-exg 1.132 # Check whether --enable-fading was given.
5292 root 1.166 if test ${enable_fading+y}
5293     then :
5294 sf-exg 1.132 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
5295     support_fading=$enableval
5296     fi
5297 root 1.123 fi
5298    
5299    
5300 sf-exg 1.132 # Check whether --enable-rxvt-scroll was given.
5301 root 1.166 if test ${enable_rxvt_scroll+y}
5302     then :
5303 sf-exg 1.132 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
5304     support_scroll_rxvt=$enableval
5305     fi
5306     fi
5307 root 1.116
5308    
5309 sf-exg 1.132 # Check whether --enable-next-scroll was given.
5310 root 1.166 if test ${enable_next_scroll+y}
5311     then :
5312 sf-exg 1.132 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
5313     support_scroll_next=$enableval
5314     fi
5315     fi
5316 root 1.116
5317    
5318 sf-exg 1.132 # Check whether --enable-xterm-scroll was given.
5319 root 1.166 if test ${enable_xterm_scroll+y}
5320     then :
5321 sf-exg 1.132 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
5322     support_scroll_xterm=$enableval
5323     fi
5324 root 1.116 fi
5325    
5326    
5327 sf-exg 1.132 # Check whether --enable-perl was given.
5328 root 1.166 if test ${enable_perl+y}
5329     then :
5330 sf-exg 1.132 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
5331     support_perl=$enableval
5332     fi
5333 root 1.116 fi
5334    
5335    
5336    
5337 sf-exg 1.132 # Check whether --with-codesets was given.
5338 root 1.166 if test ${with_codesets+y}
5339     then :
5340 sf-exg 1.132 withval=$with_codesets; codesets="$withval"
5341     fi
5342 root 1.116
5343    
5344 sf-exg 1.132 # Check whether --enable-xim was given.
5345 root 1.166 if test ${enable_xim+y}
5346     then :
5347 sf-exg 1.132 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
5348     support_xim=$enableval
5349 root 1.116 fi
5350 sf-exg 1.132 fi
5351    
5352 root 1.116
5353 sf-exg 1.132 # Check whether --enable-backspace-key was given.
5354 root 1.166 if test ${enable_backspace_key+y}
5355     then :
5356 sf-exg 1.132 enableval=$enable_backspace_key; if test x$enableval = xno; then
5357 root 1.80
5358 root 1.166 printf "%s\n" "#define NO_BACKSPACE_KEY 1" >>confdefs.h
5359 root 1.116
5360 sf-exg 1.132 fi
5361     fi
5362 root 1.116
5363 pcg 1.24
5364 sf-exg 1.132 # Check whether --enable-delete-key was given.
5365 root 1.166 if test ${enable_delete_key+y}
5366     then :
5367 sf-exg 1.132 enableval=$enable_delete_key; if test x$enableval = xno; then
5368 pcg 1.11
5369 root 1.166 printf "%s\n" "#define NO_DELETE_KEY 1" >>confdefs.h
5370 pcg 1.1
5371     fi
5372     fi
5373    
5374 pcg 1.11
5375 sf-exg 1.162 support_resources=yes
5376 sf-exg 1.132 # Check whether --enable-resources was given.
5377 root 1.166 if test ${enable_resources+y}
5378     then :
5379 sf-exg 1.132 enableval=$enable_resources; if test x$enableval = xno; then
5380 sf-exg 1.162 support_resources=no
5381 sf-exg 1.132 fi
5382     fi
5383 pcg 1.11
5384    
5385 sf-exg 1.132 # Check whether --enable-8bitctrls was given.
5386 root 1.166 if test ${enable_8bitctrls+y}
5387     then :
5388 sf-exg 1.132 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
5389     support_8bitctrls=$enableval
5390     fi
5391     fi
5392 pcg 1.11
5393 pcg 1.1
5394 sf-exg 1.132 RESFALLBACK=Rxvt
5395     # Check whether --enable-fallback was given.
5396 root 1.166 if test ${enable_fallback+y}
5397     then :
5398 sf-exg 1.132 enableval=$enable_fallback;
5399     test x$enableval = xyes && enableval=Rxvt
5400     test x$enableval = xno && enableval=
5401     RESFALLBACK="$enableval"
5402 pcg 1.11
5403 pcg 1.1 fi
5404 ayin 1.108
5405 pcg 1.1
5406 sf-exg 1.132 if test x$RESFALLBACK != x; then
5407    
5408 root 1.166 printf "%s\n" "#define RESFALLBACK \"$RESFALLBACK\"" >>confdefs.h
5409 pcg 1.11
5410 pcg 1.1 fi
5411 ayin 1.108
5412 sf-exg 1.132 RESNAME=urxvt
5413 pcg 1.1
5414 sf-exg 1.132 # Check whether --with-res-name was given.
5415 root 1.166 if test ${with_res_name+y}
5416     then :
5417 sf-exg 1.132 withval=$with_res_name; RESNAME="$withval"
5418 ayin 1.106 fi
5419 pcg 1.1
5420 sf-exg 1.132
5421 root 1.166 printf "%s\n" "#define RESNAME \"$RESNAME\"" >>confdefs.h
5422 sf-exg 1.132
5423    
5424     RESCLASS=URxvt
5425    
5426     # Check whether --with-res-class was given.
5427 root 1.166 if test ${with_res_class+y}
5428     then :
5429 sf-exg 1.132 withval=$with_res_class; RESCLASS="$withval"
5430 pcg 1.1 fi
5431    
5432 pcg 1.11
5433 root 1.166 printf "%s\n" "#define RESCLASS \"$RESCLASS\"" >>confdefs.h
5434 pcg 1.1
5435    
5436 sf-exg 1.132 RXVTNAME=urxvt
5437    
5438     # Check whether --with-name was given.
5439 root 1.166 if test ${with_name+y}
5440     then :
5441 sf-exg 1.132 withval=$with_name; RXVTNAME="$withval"
5442     fi
5443    
5444    
5445 root 1.166 printf "%s\n" "#define RXVTNAME \"$RXVTNAME\"" >>confdefs.h
5446 pcg 1.1
5447    
5448 pcg 1.11
5449 pcg 1.1
5450 sf-exg 1.132 # Check whether --enable-swapscreen was given.
5451 root 1.166 if test ${enable_swapscreen+y}
5452     then :
5453 sf-exg 1.132 enableval=$enable_swapscreen; if test x$enableval = xno; then
5454 pcg 1.1
5455 root 1.166 printf "%s\n" "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
5456 pcg 1.11
5457 sf-exg 1.132 fi
5458 ayin 1.102 fi
5459 ayin 1.108
5460    
5461 sf-exg 1.132 # Check whether --enable-iso14755 was given.
5462 root 1.166 if test ${enable_iso14755+y}
5463     then :
5464 sf-exg 1.132 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
5465     support_iso14755=$enableval
5466 pcg 1.1 fi
5467 sf-exg 1.132 fi
5468 pcg 1.1
5469    
5470 sf-exg 1.132 # Check whether --enable-frills was given.
5471 root 1.166 if test ${enable_frills+y}
5472     then :
5473 sf-exg 1.132 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5474     support_frills=$enableval
5475     fi
5476     fi
5477 pcg 1.11
5478 pcg 1.1
5479 sf-exg 1.132 # Check whether --enable-keepscrolling was given.
5480 root 1.166 if test ${enable_keepscrolling+y}
5481     then :
5482 sf-exg 1.132 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5483     support_keepscrolling=$enableval
5484     fi
5485     fi
5486 pcg 1.1
5487 pcg 1.11
5488 sf-exg 1.132 # Check whether --enable-selectionscrolling was given.
5489 root 1.166 if test ${enable_selectionscrolling+y}
5490     then :
5491 sf-exg 1.132 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5492     support_selectionscrolling=$enableval
5493     fi
5494 pcg 1.11 fi
5495 ayin 1.108
5496 sf-exg 1.132
5497     # Check whether --enable-mousewheel was given.
5498 root 1.166 if test ${enable_mousewheel+y}
5499     then :
5500 sf-exg 1.132 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5501     support_mousewheel=$enableval
5502     fi
5503 pcg 1.1 fi
5504    
5505 pcg 1.11
5506 sf-exg 1.132 # Check whether --enable-slipwheeling was given.
5507 root 1.166 if test ${enable_slipwheeling+y}
5508     then :
5509 sf-exg 1.132 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5510     support_mouseslipwheel=$enableval
5511     fi
5512 pcg 1.11 fi
5513 ayin 1.108
5514 sf-exg 1.132
5515     # Check whether --enable-smart-resize was given.
5516 root 1.166 if test ${enable_smart_resize+y}
5517     then :
5518 sf-exg 1.132 enableval=$enable_smart_resize; if test x$enableval = xyes; then
5519    
5520 root 1.166 printf "%s\n" "#define SMART_RESIZE 1" >>confdefs.h
5521 sf-exg 1.132
5522     fi
5523 pcg 1.11 fi
5524 sf-exg 1.132
5525    
5526     # Check whether --enable-text-blink was given.
5527 root 1.166 if test ${enable_text_blink+y}
5528     then :
5529 sf-exg 1.132 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5530     support_text_blink=$enableval
5531     fi
5532 pcg 1.1 fi
5533    
5534 sf-exg 1.132
5535     # Check whether --enable-pointer-blank was given.
5536 root 1.166 if test ${enable_pointer_blank+y}
5537     then :
5538 sf-exg 1.132 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5539     support_pointer_blank=$enableval
5540     fi
5541 pcg 1.11 fi
5542 ayin 1.108
5543 pcg 1.1
5544 sf-exg 1.132
5545     # Check whether --with-term was given.
5546 root 1.166 if test ${with_term+y}
5547     then :
5548 sf-exg 1.132 withval=$with_term; if test x$withval != x; then
5549    
5550 root 1.166 printf "%s\n" "#define TERMENV \"$withval\"" >>confdefs.h
5551 sf-exg 1.132 term="$withval"
5552     fi
5553     fi
5554 pcg 1.11
5555    
5556    
5557 sf-exg 1.132 # Check whether --with-terminfo was given.
5558 root 1.166 if test ${with_terminfo+y}
5559     then :
5560 sf-exg 1.132 withval=$with_terminfo; if test x$withval != x; then
5561 pcg 1.11
5562 root 1.166 printf "%s\n" "#define RXVT_TERMINFO \"$withval\"" >>confdefs.h
5563 sf-exg 1.132 terminfo="$withval"
5564     fi
5565     fi
5566 pcg 1.1
5567 pcg 1.11
5568 sf-exg 1.162 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 root 1.166 printf "%s\n" "#define NO_RESOURCES 1" >>confdefs.h
5575 sf-exg 1.162
5576     fi
5577    
5578 ayin 1.108
5579 sf-exg 1.132 LIBEV_M4_AVOID_LIBRT=1
5580 pcg 1.11
5581 root 1.166 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 sf-exg 1.132
5586 pcg 1.11 fi
5587 root 1.166 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 ayin 1.108
5592 pcg 1.11 fi
5593 root 1.166 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 ayin 1.108
5598 pcg 1.1 fi
5599 root 1.166 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 pcg 1.1
5604 root 1.166 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 pcg 1.1
5610 sf-exg 1.132 fi
5611 root 1.166 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 sf-exg 1.132 fi
5617 pcg 1.11
5618 root 1.166 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 sf-exg 1.132 fi
5624 root 1.166 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 pcg 1.11
5629 sf-exg 1.132 fi
5630 root 1.166 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 sf-exg 1.132
5635 root 1.166 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 pcg 1.11
5641 pcg 1.1 fi
5642 root 1.166 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 ayin 1.108
5647 root 1.166 fi
5648 pcg 1.1
5649 pcg 1.11
5650 root 1.166 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 root 1.164
5655     fi
5656 root 1.166 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 root 1.164
5661 root 1.166 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 root 1.164
5667 root 1.166 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 pcg 1.11
5673     fi
5674 root 1.166 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 ayin 1.108
5679 root 1.166 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 pcg 1.1
5685 root 1.166 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 pcg 1.1
5691 root 1.166 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 pcg 1.11
5697 sf-exg 1.132 fi
5698 pcg 1.11
5699    
5700 root 1.166
5701     for ac_func in clock_gettime
5702 root 1.143 do :
5703     ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5704 root 1.166 if test "x$ac_cv_func_clock_gettime" = xyes
5705     then :
5706     printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
5707 pcg 1.11
5708 root 1.176 else case e in #(
5709     e)
5710 sf-exg 1.132 if test $(uname) = Linux; then
5711 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5712     printf %s "checking for clock_gettime syscall... " >&6; }
5713 sf-exg 1.132 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 pcg 1.11 int
5719 root 1.166 main (void)
5720 pcg 1.11 {
5721 sf-exg 1.132 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5722 pcg 1.11 ;
5723     return 0;
5724     }
5725     _ACEOF
5726 root 1.166 if ac_fn_cxx_try_link "$LINENO"
5727     then :
5728 sf-exg 1.132 ac_have_clock_syscall=1
5729 pcg 1.11
5730 root 1.166 printf "%s\n" "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5731 ayin 1.108
5732 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733     printf "%s\n" "yes" >&6; }
5734 root 1.176 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 pcg 1.1 fi
5739 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5740 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
5741     fi
5742     if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5743 root 1.166 { 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 root 1.176 else case e in #(
5749     e) ac_check_lib_save_LIBS=$LIBS
5750 sf-exg 1.132 LIBS="-lrt $LIBS"
5751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 pcg 1.11 /* end confdefs.h. */
5753    
5754 root 1.166 namespace conftest {
5755     extern "C" int clock_gettime ();
5756     }
5757 pcg 1.11 int
5758 root 1.166 main (void)
5759 pcg 1.11 {
5760 root 1.166 return conftest::clock_gettime ();
5761 pcg 1.11 ;
5762     return 0;
5763     }
5764     _ACEOF
5765 root 1.166 if ac_fn_cxx_try_link "$LINENO"
5766     then :
5767 sf-exg 1.132 ac_cv_lib_rt_clock_gettime=yes
5768 root 1.176 else case e in #(
5769     e) ac_cv_lib_rt_clock_gettime=no ;;
5770     esac
5771 pcg 1.11 fi
5772 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5773 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
5774 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
5775     esac
5776 pcg 1.11 fi
5777 root 1.166 { 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 sf-exg 1.132
5783     LIBS="-lrt $LIBS"
5784    
5785 pcg 1.1 fi
5786    
5787 sf-exg 1.132 unset ac_cv_func_clock_gettime
5788 root 1.166 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 pcg 1.1
5793 sf-exg 1.132 fi
5794 pcg 1.11
5795 sf-exg 1.132 fi
5796 root 1.176 ;;
5797     esac
5798 sf-exg 1.132 fi
5799 root 1.166
5800 root 1.143 done
5801 pcg 1.11
5802    
5803 root 1.166 for ac_func in nanosleep
5804 root 1.143 do :
5805     ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5806 root 1.166 if test "x$ac_cv_func_nanosleep" = xyes
5807     then :
5808     printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
5809 pcg 1.11
5810 root 1.176 else case e in #(
5811     e)
5812 sf-exg 1.132 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5813 root 1.166 { 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 root 1.176 else case e in #(
5819     e) ac_check_lib_save_LIBS=$LIBS
5820 sf-exg 1.132 LIBS="-lrt $LIBS"
5821     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5822 pcg 1.11 /* end confdefs.h. */
5823    
5824 root 1.166 namespace conftest {
5825     extern "C" int nanosleep ();
5826     }
5827 pcg 1.11 int
5828 root 1.166 main (void)
5829 pcg 1.11 {
5830 root 1.166 return conftest::nanosleep ();
5831 pcg 1.11 ;
5832     return 0;
5833     }
5834     _ACEOF
5835 root 1.166 if ac_fn_cxx_try_link "$LINENO"
5836     then :
5837 sf-exg 1.132 ac_cv_lib_rt_nanosleep=yes
5838 root 1.176 else case e in #(
5839     e) ac_cv_lib_rt_nanosleep=no ;;
5840     esac
5841 sf-exg 1.132 fi
5842 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5843 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
5844 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
5845     esac
5846 sf-exg 1.132 fi
5847 root 1.166 { 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 sf-exg 1.132
5853     LIBS="-lrt $LIBS"
5854 pcg 1.11
5855     fi
5856 ayin 1.108
5857 sf-exg 1.132 unset ac_cv_func_nanosleep
5858 root 1.166 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 sf-exg 1.132
5863 pcg 1.11 fi
5864 sf-exg 1.132
5865     fi
5866 root 1.176 ;;
5867     esac
5868 pcg 1.1 fi
5869 root 1.166
5870 root 1.143 done
5871 pcg 1.1
5872 root 1.165 ac_fn_cxx_check_type "$LINENO" "__kernel_rwf_t" "ac_cv_type___kernel_rwf_t" "#include <linux/fs.h>
5873     "
5874 root 1.166 if test "x$ac_cv_type___kernel_rwf_t" = xyes
5875     then :
5876 root 1.165
5877    
5878 root 1.166 printf "%s\n" "#define HAVE_KERNEL_RWF_T 1" >>confdefs.h
5879 root 1.165
5880    
5881     fi
5882    
5883    
5884 root 1.143 if test -z "$LIBEV_M4_AVOID_LIBM"; then
5885     LIBM=m
5886     fi
5887 root 1.166 { 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 root 1.176 else case e in #(
5893     e) ac_func_search_save_LIBS=$LIBS
5894 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 pcg 1.11 /* end confdefs.h. */
5896    
5897 root 1.166 namespace conftest {
5898     extern "C" int floor ();
5899     }
5900 pcg 1.11 int
5901 root 1.166 main (void)
5902 pcg 1.11 {
5903 root 1.166 return conftest::floor ();
5904 pcg 1.11 ;
5905     return 0;
5906     }
5907     _ACEOF
5908 root 1.166 for ac_lib in '' $LIBM
5909     do
5910 root 1.143 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 root 1.166 if ac_fn_cxx_try_link "$LINENO"
5917     then :
5918 root 1.143 ac_cv_search_floor=$ac_res
5919     fi
5920 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5921 root 1.143 conftest$ac_exeext
5922 root 1.166 if test ${ac_cv_search_floor+y}
5923     then :
5924 root 1.143 break
5925     fi
5926     done
5927 root 1.166 if test ${ac_cv_search_floor+y}
5928     then :
5929 root 1.143
5930 root 1.176 else case e in #(
5931     e) ac_cv_search_floor=no ;;
5932     esac
5933 pcg 1.11 fi
5934 root 1.143 rm conftest.$ac_ext
5935 root 1.176 LIBS=$ac_func_search_save_LIBS ;;
5936     esac
5937 pcg 1.11 fi
5938 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5939     printf "%s\n" "$ac_cv_search_floor" >&6; }
5940 root 1.143 ac_res=$ac_cv_search_floor
5941 root 1.166 if test "$ac_res" != no
5942     then :
5943 root 1.143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5944 pcg 1.1
5945 root 1.166 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 root 1.176 else case e in #(
5961     e) case $TIC in
5962 root 1.166 [\\/]* | ?:[\\/]*)
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 root 1.176 esac ;;
5988 root 1.166 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 root 1.176 else case e in #(
6013     e) # Double quotes because $CXX needs to be expanded
6014 root 1.166 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 root 1.176 else case e in #(
6032     e) # Broken: fails on valid input.
6033     continue ;;
6034     esac
6035 root 1.166 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 root 1.176 else case e in #(
6049     e) # Passes both tests.
6050 root 1.166 ac_preproc_ok=:
6051 root 1.176 break ;;
6052     esac
6053 root 1.166 fi
6054     rm -f conftest.err conftest.i conftest.$ac_ext
6055    
6056     done
6057 root 1.176 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6058 root 1.166 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 root 1.176 ;;
6067     esac
6068 pcg 1.1 fi
6069 root 1.166 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 pcg 1.1
6090 root 1.176 else case e in #(
6091     e) # Broken: fails on valid input.
6092     continue ;;
6093     esac
6094 root 1.166 fi
6095     rm -f conftest.err conftest.i conftest.$ac_ext
6096 pcg 1.1
6097 root 1.166 # 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 root 1.176 else case e in #(
6108     e) # Passes both tests.
6109 root 1.166 ac_preproc_ok=:
6110 root 1.176 break ;;
6111     esac
6112 root 1.166 fi
6113     rm -f conftest.err conftest.i conftest.$ac_ext
6114 root 1.103
6115     done
6116 root 1.176 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6117 root 1.166 rm -f conftest.i conftest.err conftest.$ac_ext
6118     if $ac_preproc_ok
6119     then :
6120 root 1.103
6121 root 1.176 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 root 1.166 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6125 root 1.176 See 'config.log' for more details" "$LINENO" 5; } ;;
6126     esac
6127 sf-exg 1.132 fi
6128    
6129 root 1.166 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 sf-exg 1.132
6135    
6136 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6137     printf %s "checking for X... " >&6; }
6138 sf-exg 1.132
6139    
6140     # Check whether --with-x was given.
6141 root 1.166 if test ${with_x+y}
6142     then :
6143 sf-exg 1.132 withval=$with_x;
6144     fi
6145    
6146 root 1.176 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
6147 sf-exg 1.132 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 root 1.158 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
6153 root 1.166 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
6154     then :
6155     printf %s "(cached) " >&6
6156 root 1.176 else case e in #(
6157     e) # One or both of the vars are not set, and there is no cached value.
6158 root 1.166 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 sf-exg 1.132 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 root 1.137 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6200 sf-exg 1.132 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 root 1.103 fi
6225    
6226 root 1.166 # Standard set of common directories for X headers.
6227 sf-exg 1.132 # 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 root 1.166 /opt/X11/include
6254    
6255 sf-exg 1.132 /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 ayin 1.108
6269 sf-exg 1.132 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 root 1.166 if ac_fn_cxx_try_cpp "$LINENO"
6277     then :
6278 sf-exg 1.132 # We can compile using X headers with no special include directory.
6279     ac_x_includes=
6280 root 1.176 else case e in #(
6281     e) for ac_dir in $ac_x_header_dirs; do
6282 sf-exg 1.132 if test -r "$ac_dir/X11/Xlib.h"; then
6283     ac_x_includes=$ac_dir
6284     break
6285 root 1.103 fi
6286 root 1.176 done ;;
6287     esac
6288 sf-exg 1.132 fi
6289 root 1.137 rm -f conftest.err conftest.i conftest.$ac_ext
6290 sf-exg 1.132 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 root 1.166 main (void)
6303 sf-exg 1.132 {
6304     XrmInitialize ()
6305     ;
6306     return 0;
6307     }
6308     _ACEOF
6309 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6310     then :
6311 sf-exg 1.132 LIBS=$ac_save_LIBS
6312     # We can link X programs with no special library path.
6313     ac_x_libraries=
6314 root 1.176 else case e in #(
6315     e) LIBS=$ac_save_LIBS
6316 root 1.166 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6317 sf-exg 1.132 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 root 1.103 fi
6324 sf-exg 1.132 done
6325 root 1.176 done ;;
6326     esac
6327 root 1.103 fi
6328 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6329 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6330     fi # $ac_x_libraries = no
6331 root 1.103
6332 root 1.166 fi
6333     # Record the results.
6334 sf-exg 1.132 case $ac_x_includes,$ac_x_libraries in #(
6335 root 1.166 no,* | *,no | *\'*) :
6336 sf-exg 1.132 # Didn't find X, or a directory has "'" in its name.
6337 root 1.166 ac_cv_have_x="have_x=no" ;; #(
6338     *) :
6339 sf-exg 1.132 # Record where we found X for the cache.
6340     ac_cv_have_x="have_x=yes\
6341     ac_x_includes='$ac_x_includes'\
6342 root 1.166 ac_x_libraries='$ac_x_libraries'" ;;
6343 root 1.176 esac ;;
6344 sf-exg 1.132 esac
6345     fi
6346     ;; #(
6347     *) have_x=yes;;
6348     esac
6349     eval "$ac_cv_have_x"
6350     fi # $with_x != no
6351 pcg 1.11
6352 sf-exg 1.132 if test "$have_x" != yes; then
6353 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
6354     printf "%s\n" "$have_x" >&6; }
6355 sf-exg 1.132 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 root 1.166 { 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 sf-exg 1.132 fi
6367 pcg 1.11
6368 sf-exg 1.132 if test "$no_x" = yes; then
6369     # Not all programs may use this symbol, but it does not hurt to define it.
6370 pcg 1.11
6371 root 1.166 printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
6372 pcg 1.11
6373 sf-exg 1.132 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 pcg 1.11
6379 sf-exg 1.132 # 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 root 1.166 { 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 sf-exg 1.132 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 pcg 1.11
6392 sf-exg 1.132 int
6393 root 1.166 main (void)
6394 sf-exg 1.132 {
6395 pcg 1.11
6396 sf-exg 1.132 ;
6397     return 0;
6398     }
6399     _ACEOF
6400 root 1.166 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 sf-exg 1.132 X_LIBS="$X_LIBS -R$x_libraries"
6405 root 1.176 else case e in #(
6406     e) LIBS="$ac_xsave_LIBS -R $x_libraries"
6407 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 pcg 1.11 /* end confdefs.h. */
6409 sf-exg 1.132
6410     int
6411 root 1.166 main (void)
6412 sf-exg 1.132 {
6413    
6414     ;
6415     return 0;
6416     }
6417 pcg 1.11 _ACEOF
6418 root 1.166 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 sf-exg 1.132 X_LIBS="$X_LIBS -R $x_libraries"
6423 root 1.176 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 sf-exg 1.132 fi
6428 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6429 root 1.176 conftest$ac_exeext conftest.$ac_ext ;;
6430     esac
6431 pcg 1.11 fi
6432 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6433 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6434     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
6435     LIBS=$ac_xsave_LIBS
6436     fi
6437 ayin 1.108
6438 sf-exg 1.132 # 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 pcg 1.11
6442 sf-exg 1.132 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 pcg 1.11 /* end confdefs.h. */
6451 sf-exg 1.132
6452 root 1.166 namespace conftest {
6453     extern "C" int XOpenDisplay ();
6454     }
6455 sf-exg 1.132 int
6456 root 1.166 main (void)
6457 sf-exg 1.132 {
6458 root 1.166 return conftest::XOpenDisplay ();
6459 sf-exg 1.132 ;
6460     return 0;
6461     }
6462 pcg 1.11 _ACEOF
6463 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6464     then :
6465 sf-exg 1.132
6466 root 1.176 else case e in #(
6467     e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
6468 root 1.166 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 root 1.176 else case e in #(
6473     e) ac_check_lib_save_LIBS=$LIBS
6474 sf-exg 1.132 LIBS="-ldnet $LIBS"
6475     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6476     /* end confdefs.h. */
6477 pcg 1.11
6478 root 1.166 namespace conftest {
6479     extern "C" int dnet_ntoa ();
6480     }
6481 sf-exg 1.132 int
6482 root 1.166 main (void)
6483 sf-exg 1.132 {
6484 root 1.166 return conftest::dnet_ntoa ();
6485 sf-exg 1.132 ;
6486     return 0;
6487     }
6488     _ACEOF
6489 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6490     then :
6491 sf-exg 1.132 ac_cv_lib_dnet_dnet_ntoa=yes
6492 root 1.176 else case e in #(
6493     e) ac_cv_lib_dnet_dnet_ntoa=no ;;
6494     esac
6495 pcg 1.1 fi
6496 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6497 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6498 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
6499     esac
6500 pcg 1.1 fi
6501 root 1.166 { 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 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6506 pcg 1.1 fi
6507 pcg 1.11
6508 sf-exg 1.132 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6509 root 1.166 { 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 root 1.176 else case e in #(
6515     e) ac_check_lib_save_LIBS=$LIBS
6516 sf-exg 1.132 LIBS="-ldnet_stub $LIBS"
6517     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6518 pcg 1.11 /* end confdefs.h. */
6519 sf-exg 1.132
6520 root 1.166 namespace conftest {
6521     extern "C" int dnet_ntoa ();
6522     }
6523 pcg 1.11 int
6524 root 1.166 main (void)
6525 pcg 1.11 {
6526 root 1.166 return conftest::dnet_ntoa ();
6527 pcg 1.11 ;
6528     return 0;
6529     }
6530     _ACEOF
6531 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6532     then :
6533 sf-exg 1.132 ac_cv_lib_dnet_stub_dnet_ntoa=yes
6534 root 1.176 else case e in #(
6535     e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;;
6536     esac
6537 sf-exg 1.132 fi
6538 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6539 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6540 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
6541     esac
6542 sf-exg 1.132 fi
6543 root 1.166 { 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 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6548 pcg 1.1 fi
6549 ayin 1.108
6550 root 1.176 fi ;;
6551     esac
6552 pcg 1.1 fi
6553 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6554 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6555     LIBS="$ac_xsave_LIBS"
6556 pcg 1.1
6557 sf-exg 1.132 # 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 root 1.166 if test "x$ac_cv_func_gethostbyname" = xyes
6567     then :
6568 pcg 1.1
6569     fi
6570    
6571 sf-exg 1.132 if test $ac_cv_func_gethostbyname = no; then
6572 root 1.166 { 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 root 1.176 else case e in #(
6578     e) ac_check_lib_save_LIBS=$LIBS
6579 sf-exg 1.132 LIBS="-lnsl $LIBS"
6580     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 root 1.99 /* end confdefs.h. */
6582    
6583 root 1.166 namespace conftest {
6584     extern "C" int gethostbyname ();
6585     }
6586 root 1.99 int
6587 root 1.166 main (void)
6588 root 1.99 {
6589 root 1.166 return conftest::gethostbyname ();
6590 root 1.99 ;
6591     return 0;
6592     }
6593     _ACEOF
6594 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6595     then :
6596 sf-exg 1.132 ac_cv_lib_nsl_gethostbyname=yes
6597 root 1.176 else case e in #(
6598     e) ac_cv_lib_nsl_gethostbyname=no ;;
6599     esac
6600 root 1.99 fi
6601 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6602 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6603 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
6604     esac
6605 root 1.99 fi
6606 root 1.166 { 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 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6611 root 1.99 fi
6612 pcg 1.1
6613 sf-exg 1.132 if test $ac_cv_lib_nsl_gethostbyname = no; then
6614 root 1.166 { 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 root 1.176 else case e in #(
6620     e) ac_check_lib_save_LIBS=$LIBS
6621 sf-exg 1.132 LIBS="-lbsd $LIBS"
6622     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 pcg 1.11 /* end confdefs.h. */
6624 sf-exg 1.132
6625 root 1.166 namespace conftest {
6626     extern "C" int gethostbyname ();
6627     }
6628 pcg 1.11 int
6629 root 1.166 main (void)
6630 pcg 1.11 {
6631 root 1.166 return conftest::gethostbyname ();
6632 pcg 1.11 ;
6633     return 0;
6634     }
6635     _ACEOF
6636 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6637     then :
6638 sf-exg 1.132 ac_cv_lib_bsd_gethostbyname=yes
6639 root 1.176 else case e in #(
6640     e) ac_cv_lib_bsd_gethostbyname=no ;;
6641     esac
6642 sf-exg 1.132 fi
6643 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6644 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6645 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
6646     esac
6647 sf-exg 1.132 fi
6648 root 1.166 { 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 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6653 pcg 1.1 fi
6654 ayin 1.108
6655 sf-exg 1.132 fi
6656     fi
6657 pcg 1.1
6658 sf-exg 1.132 # 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 root 1.166 if test "x$ac_cv_func_connect" = xyes
6667     then :
6668 pcg 1.1
6669     fi
6670    
6671 sf-exg 1.132 if test $ac_cv_func_connect = no; then
6672 root 1.166 { 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 root 1.176 else case e in #(
6678     e) ac_check_lib_save_LIBS=$LIBS
6679 sf-exg 1.132 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6680     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 pcg 1.11 /* end confdefs.h. */
6682 sf-exg 1.132
6683 root 1.166 namespace conftest {
6684     extern "C" int connect ();
6685     }
6686 pcg 1.11 int
6687 root 1.166 main (void)
6688 pcg 1.11 {
6689 root 1.166 return conftest::connect ();
6690 pcg 1.11 ;
6691     return 0;
6692     }
6693     _ACEOF
6694 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6695     then :
6696 sf-exg 1.132 ac_cv_lib_socket_connect=yes
6697 root 1.176 else case e in #(
6698     e) ac_cv_lib_socket_connect=no ;;
6699     esac
6700 sf-exg 1.132 fi
6701 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6702 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6703 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
6704     esac
6705 sf-exg 1.132 fi
6706 root 1.166 { 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 sf-exg 1.132 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6711 pcg 1.1 fi
6712 ayin 1.108
6713 sf-exg 1.132 fi
6714 pcg 1.1
6715 sf-exg 1.132 # Guillermo Gomez says -lposix is necessary on A/UX.
6716     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6717 root 1.166 if test "x$ac_cv_func_remove" = xyes
6718     then :
6719 pcg 1.1
6720     fi
6721    
6722 sf-exg 1.132 if test $ac_cv_func_remove = no; then
6723 root 1.166 { 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 root 1.176 else case e in #(
6729     e) ac_check_lib_save_LIBS=$LIBS
6730 sf-exg 1.132 LIBS="-lposix $LIBS"
6731     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 pcg 1.11 /* end confdefs.h. */
6733    
6734 root 1.166 namespace conftest {
6735     extern "C" int remove ();
6736     }
6737 sf-exg 1.132 int
6738 root 1.166 main (void)
6739 sf-exg 1.132 {
6740 root 1.166 return conftest::remove ();
6741 sf-exg 1.132 ;
6742     return 0;
6743     }
6744 pcg 1.11 _ACEOF
6745 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6746     then :
6747 sf-exg 1.132 ac_cv_lib_posix_remove=yes
6748 root 1.176 else case e in #(
6749     e) ac_cv_lib_posix_remove=no ;;
6750     esac
6751 sf-exg 1.132 fi
6752 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6753 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6754 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
6755     esac
6756 pcg 1.1 fi
6757 root 1.166 { 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 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6762 pcg 1.1 fi
6763    
6764 sf-exg 1.132 fi
6765 pcg 1.11
6766 sf-exg 1.132 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6767     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6768 root 1.166 if test "x$ac_cv_func_shmat" = xyes
6769     then :
6770 pcg 1.1
6771     fi
6772    
6773 sf-exg 1.132 if test $ac_cv_func_shmat = no; then
6774 root 1.166 { 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 root 1.176 else case e in #(
6780     e) ac_check_lib_save_LIBS=$LIBS
6781 sf-exg 1.132 LIBS="-lipc $LIBS"
6782     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 pcg 1.11 /* end confdefs.h. */
6784 pcg 1.1
6785 root 1.166 namespace conftest {
6786     extern "C" int shmat ();
6787     }
6788 pcg 1.11 int
6789 root 1.166 main (void)
6790 pcg 1.1 {
6791 root 1.166 return conftest::shmat ();
6792 pcg 1.11 ;
6793     return 0;
6794 pcg 1.1 }
6795 pcg 1.11 _ACEOF
6796 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6797     then :
6798 sf-exg 1.132 ac_cv_lib_ipc_shmat=yes
6799 root 1.176 else case e in #(
6800     e) ac_cv_lib_ipc_shmat=no ;;
6801     esac
6802 ayin 1.122 fi
6803 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6804 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6805 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
6806     esac
6807 pcg 1.11 fi
6808 root 1.166 { 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 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6813 pcg 1.11 fi
6814 ayin 1.108
6815 sf-exg 1.132 fi
6816     fi
6817 pcg 1.1
6818 sf-exg 1.132 # 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 root 1.166 { 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 root 1.176 else case e in #(
6833     e) ac_check_lib_save_LIBS=$LIBS
6834 sf-exg 1.132 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6835     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 pcg 1.11 /* end confdefs.h. */
6837 sf-exg 1.132
6838 root 1.166 namespace conftest {
6839     extern "C" int IceConnectionNumber ();
6840     }
6841 pcg 1.11 int
6842 root 1.166 main (void)
6843 pcg 1.11 {
6844 root 1.166 return conftest::IceConnectionNumber ();
6845 pcg 1.11 ;
6846     return 0;
6847     }
6848     _ACEOF
6849 root 1.166 if ac_fn_cxx_try_link "$LINENO"
6850     then :
6851 sf-exg 1.132 ac_cv_lib_ICE_IceConnectionNumber=yes
6852 root 1.176 else case e in #(
6853     e) ac_cv_lib_ICE_IceConnectionNumber=no ;;
6854     esac
6855 sf-exg 1.132 fi
6856 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6857 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
6858 root 1.176 LIBS=$ac_check_lib_save_LIBS ;;
6859     esac
6860 sf-exg 1.132 fi
6861 root 1.166 { 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 sf-exg 1.132 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6866     fi
6867 pcg 1.11
6868 sf-exg 1.132 LDFLAGS=$ac_save_LDFLAGS
6869 ayin 1.122
6870 pcg 1.1 fi
6871 ayin 1.108
6872 ayin 1.122
6873 sf-exg 1.162 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 root 1.166 { 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 root 1.176 else case e in #(
6882     e) case $PKG_CONFIG in
6883 root 1.158 [\\/]* | ?:[\\/]*)
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 root 1.166 case $as_dir in #(((
6892     '') as_dir=./ ;;
6893     */) ;;
6894     *) as_dir=$as_dir/ ;;
6895     esac
6896 root 1.158 for ac_exec_ext in '' $ac_executable_extensions; do
6897 root 1.166 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 root 1.158 break 2
6901     fi
6902     done
6903     done
6904     IFS=$as_save_IFS
6905    
6906     ;;
6907 root 1.176 esac ;;
6908 root 1.158 esac
6909     fi
6910     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6911     if test -n "$PKG_CONFIG"; then
6912 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6913     printf "%s\n" "$PKG_CONFIG" >&6; }
6914 root 1.158 else
6915 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916     printf "%s\n" "no" >&6; }
6917 root 1.158 fi
6918    
6919    
6920     fi
6921 sf-exg 1.162 if test -z "$ac_cv_path_PKG_CONFIG"; then
6922     ac_pt_PKG_CONFIG=$PKG_CONFIG
6923 mikachu 1.147 # 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 root 1.166 { 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 root 1.176 else case e in #(
6931     e) case $ac_pt_PKG_CONFIG in
6932 mikachu 1.147 [\\/]* | ?:[\\/]*)
6933 sf-exg 1.162 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6934 mikachu 1.147 ;;
6935     *)
6936     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937     for as_dir in $PATH
6938     do
6939     IFS=$as_save_IFS
6940 root 1.166 case $as_dir in #(((
6941     '') as_dir=./ ;;
6942     */) ;;
6943     *) as_dir=$as_dir/ ;;
6944     esac
6945 mikachu 1.147 for ac_exec_ext in '' $ac_executable_extensions; do
6946 root 1.166 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 mikachu 1.147 break 2
6950     fi
6951     done
6952     done
6953     IFS=$as_save_IFS
6954    
6955     ;;
6956 root 1.176 esac ;;
6957 mikachu 1.147 esac
6958     fi
6959 sf-exg 1.162 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6960     if test -n "$ac_pt_PKG_CONFIG"; then
6961 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6962     printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
6963 mikachu 1.147 else
6964 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965     printf "%s\n" "no" >&6; }
6966 mikachu 1.147 fi
6967    
6968 sf-exg 1.162 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 root 1.166 { 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 sf-exg 1.162 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 sf-exg 1.168
6985 root 1.175 { 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 sf-exg 1.168 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 sf-exg 1.162 image_lib=none
7007    
7008     PIXBUF_CFLAGS=
7009     PIXBUF_LIBS=
7010    
7011     if test x$support_pixbuf = xyes; then
7012    
7013 root 1.175 { 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 sf-exg 1.162 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
7016 root 1.163 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`"
7017     PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`"
7018 sf-exg 1.162
7019 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7020     printf "%s\n" "ok" >&6; }
7021 sf-exg 1.162
7022     image_lib=gdk-pixbuf
7023    
7024 root 1.166 printf "%s\n" "#define HAVE_PIXBUF 1" >>confdefs.h
7025 sf-exg 1.162
7026    
7027     else
7028 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029     printf "%s\n" "no" >&6; }
7030 sf-exg 1.162 :
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 mikachu 1.147
7043 root 1.175 { 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 mikachu 1.147 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
7046 root 1.163 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`"
7047     STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`"
7048 mikachu 1.147
7049 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7050     printf "%s\n" "ok" >&6; }
7051 mikachu 1.147
7052 sf-exg 1.162
7053 root 1.166 printf "%s\n" "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
7054 mikachu 1.147
7055 sf-exg 1.162
7056 mikachu 1.147 else
7057 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058     printf "%s\n" "no" >&6; }
7059 sf-exg 1.162 :
7060 mikachu 1.147 fi
7061 sf-exg 1.162
7062 mikachu 1.147 fi
7063    
7064    
7065    
7066    
7067 sf-exg 1.162 if test x$support_frills = xyes; then
7068    
7069 root 1.175 { 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 sf-exg 1.162 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then
7072 root 1.163 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`"
7073     XMU_LIBS="`$PKG_CONFIG --libs xmu`"
7074 sf-exg 1.162
7075 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7076     printf "%s\n" "ok" >&6; }
7077 sf-exg 1.162
7078     X_LIBS="$XMU_LIBS $X_LIBS"
7079     CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
7080    
7081 root 1.166 printf "%s\n" "#define HAVE_XMU 1" >>confdefs.h
7082 sf-exg 1.162
7083    
7084     else
7085 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7086     printf "%s\n" "no" >&6; }
7087 sf-exg 1.162 :
7088     fi
7089    
7090     fi
7091    
7092 root 1.166 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 root 1.176 else case e in #(
7136     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7137 root 1.166 /* 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 root 1.176 else case e in #(
7157     e) rxvt_cv_xlib_illegal_access=no
7158     ;;
7159     esac
7160 root 1.166 fi
7161 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7162     esac
7163 root 1.166 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 root 1.176 else case e in #(
7177     e)
7178 root 1.166 printf "%s\n" "#define mode_t int" >>confdefs.h
7179 root 1.176 ;;
7180     esac
7181 root 1.166 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 root 1.176 else case e in #(
7190     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 root 1.166 /* 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 root 1.176 else case e in #(
7210     e) ac_pid_type='__int64' ;;
7211     esac
7212 root 1.166 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 root 1.176 ;;
7218     esac
7219 root 1.166 fi
7220    
7221    
7222 root 1.176 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 root 1.166 then :
7225    
7226 root 1.176 else case e in #(
7227     e)
7228     printf "%s\n" "#define uid_t int" >>confdefs.h
7229     ;;
7230 root 1.166 esac
7231 root 1.83 fi
7232 pcg 1.11
7233 root 1.176 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 root 1.166 then :
7236 root 1.88
7237 root 1.176 else case e in #(
7238     e)
7239 root 1.166 printf "%s\n" "#define gid_t int" >>confdefs.h
7240 root 1.176 ;;
7241     esac
7242 sf-exg 1.132 fi
7243 root 1.88
7244 sf-exg 1.132 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 root 1.88
7249 root 1.166 printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
7250 sf-exg 1.132 ;;
7251 ayin 1.108 esac
7252 root 1.88
7253 sf-exg 1.132 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 ayin 1.108
7259 root 1.166 printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
7260 sf-exg 1.132 ;;
7261     esac
7262 root 1.88
7263 sf-exg 1.132 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 root 1.88
7268 root 1.166 printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
7269 sf-exg 1.132 ;;
7270 ayin 1.108 esac
7271 root 1.88
7272 sf-exg 1.132 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 root 1.166 printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
7278 ayin 1.108
7279 root 1.88
7280 root 1.166 printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
7281 sf-exg 1.132 ;;
7282     esac
7283    
7284    
7285 root 1.166 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 root 1.88
7290     fi
7291 sf-exg 1.132
7292    
7293    
7294 root 1.88
7295 ayin 1.114 save_LIBS=$LIBS
7296 root 1.161 save_CXXFLAGS=$CXXFLAGS
7297     CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7298 root 1.88 LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7299 ayin 1.111 if test x$support_xim = xyes; then
7300 root 1.166 { 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 root 1.176 else case e in #(
7306     e) if test "$cross_compiling" = yes
7307 root 1.166 then :
7308 root 1.143 :
7309 root 1.176 else case e in #(
7310     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7311 root 1.88 /* end confdefs.h. */
7312 root 1.143
7313     #include <X11/Xlib.h>
7314 ayin 1.111 #include <stdlib.h>
7315 root 1.143 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 root 1.88 _ACEOF
7324 root 1.166 if ac_fn_cxx_try_run "$LINENO"
7325     then :
7326 root 1.143 rxvt_cv_func_xlocale=yes
7327 root 1.176 else case e in #(
7328     e) rxvt_cv_func_xlocale=no ;;
7329     esac
7330 root 1.88 fi
7331 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7332 root 1.176 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7333     esac
7334 root 1.88 fi
7335 root 1.176 ;;
7336     esac
7337 root 1.88 fi
7338 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7339     printf "%s\n" "$rxvt_cv_func_xlocale" >&6; }
7340 root 1.105 if test x$rxvt_cv_func_xlocale = xyes; then
7341 root 1.88
7342 root 1.166 printf "%s\n" "#define USE_XIM 1" >>confdefs.h
7343 root 1.88
7344 root 1.166 { 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 root 1.176 else case e in #(
7350     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 sf-exg 1.132 /* end confdefs.h. */
7352 ayin 1.111
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 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
7364     then :
7365 root 1.131 rxvt_cv_broken_ximcb=yes
7366 root 1.176 else case e in #(
7367     e) rxvt_cv_broken_ximcb=no ;;
7368     esac
7369 ayin 1.111 fi
7370 root 1.176 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7371     esac
7372 ayin 1.111 fi
7373 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7374     printf "%s\n" "$rxvt_cv_broken_ximcb" >&6; }
7375 ayin 1.111
7376 root 1.131 if test x$rxvt_cv_broken_ximcb = xyes; then
7377 ayin 1.111
7378 root 1.166 printf "%s\n" "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7379 ayin 1.111
7380     fi
7381 root 1.105 fi
7382 root 1.88 fi
7383    
7384 root 1.166 { 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 root 1.176 else case e in #(
7390     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 root 1.88 /* end confdefs.h. */
7392     #define X_LOCALE 1
7393     #include <X11/Xlocale.h>
7394     int
7395 root 1.166 main (void)
7396 root 1.88 {
7397     setlocale(LC_CTYPE, "");
7398     ;
7399     return 0;
7400     }
7401     _ACEOF
7402 root 1.166 if ac_fn_cxx_try_link "$LINENO"
7403     then :
7404 root 1.88 rxvt_cv_func_xsetlocale=yes
7405 root 1.176 else case e in #(
7406     e) rxvt_cv_func_xsetlocale=no ;;
7407     esac
7408 root 1.88 fi
7409 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7410 root 1.176 conftest$ac_exeext conftest.$ac_ext ;;
7411     esac
7412 root 1.88 fi
7413 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7414     printf "%s\n" "$rxvt_cv_func_xsetlocale" >&6; }
7415 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
7416    
7417 root 1.166 printf "%s\n" "#define HAVE_XSETLOCALE 1" >>confdefs.h
7418 root 1.88
7419     fi
7420 ayin 1.114 LIBS=$save_LIBS
7421 root 1.161 CXXFLAGS=$save_CXXFLAGS
7422 root 1.88
7423 root 1.166 { 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 root 1.176 else case e in #(
7429     e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7430 root 1.88 /* end confdefs.h. */
7431     #include <langinfo.h>
7432     int
7433 root 1.166 main (void)
7434 root 1.88 {
7435     nl_langinfo(CODESET);
7436     ;
7437     return 0;
7438     }
7439     _ACEOF
7440 root 1.166 if ac_fn_cxx_try_link "$LINENO"
7441     then :
7442 root 1.88 rxvt_cv_func_nl_langinfo=yes
7443 root 1.176 else case e in #(
7444     e) rxvt_cv_func_nl_langinfo=no ;;
7445     esac
7446 root 1.88 fi
7447 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7448 root 1.176 conftest$ac_exeext conftest.$ac_ext ;;
7449     esac
7450 root 1.88 fi
7451 root 1.166 { 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 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
7454    
7455 root 1.166 printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7456 root 1.88
7457     fi
7458    
7459 root 1.155 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 sf-exg 1.138 rxvt_have_xrender=no
7465    
7466 root 1.175 { 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 sf-exg 1.162 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7469 root 1.163 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`"
7470     XRENDER_LIBS="`$PKG_CONFIG --libs xrender`"
7471 sf-exg 1.138
7472 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7473     printf "%s\n" "ok" >&6; }
7474 sf-exg 1.138
7475 sf-exg 1.162 X_LIBS="$XRENDER_LIBS $X_LIBS"
7476     CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
7477 sf-exg 1.138 rxvt_have_xrender=yes
7478    
7479     save_LIBS="$LIBS"
7480     LIBS="$LIBS $X_LIBS"
7481 root 1.166 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 sf-exg 1.138
7485 root 1.176 else case e in #(
7486     e) rxvt_have_xrender=no ;;
7487     esac
7488 sf-exg 1.138 fi
7489    
7490     ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7491 root 1.166 if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes
7492     then :
7493 sf-exg 1.138
7494 root 1.176 else case e in #(
7495     e) rxvt_have_xrender=no ;;
7496     esac
7497 sf-exg 1.138 fi
7498    
7499     LIBS="$save_LIBS"
7500 sf-exg 1.162
7501     else
7502 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503     printf "%s\n" "no" >&6; }
7504 sf-exg 1.162 :
7505 sf-exg 1.138 fi
7506 sf-exg 1.162
7507 sf-exg 1.138 fi
7508    
7509     if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7510 root 1.86
7511 root 1.175 { 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 sf-exg 1.162 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then
7514 root 1.163 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`"
7515     XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`"
7516 sf-exg 1.162
7517 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7518     printf "%s\n" "ok" >&6; }
7519 root 1.86
7520 sf-exg 1.162 X_LIBS="$XFT_LIBS $X_LIBS"
7521     CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
7522 ayin 1.108
7523 root 1.90 else
7524 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525     printf "%s\n" "no" >&6; }
7526 sf-exg 1.162
7527 root 1.90 # Extract the first word of "xft-config", so it can be a program name with args.
7528 root 1.86 set dummy xft-config; ac_word=$2
7529 root 1.166 { 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 root 1.176 else case e in #(
7535     e) case $XFT_CONFIG in
7536 root 1.86 [\\/]* | ?:[\\/]*)
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 root 1.166 case $as_dir in #(((
7545     '') as_dir=./ ;;
7546     */) ;;
7547     *) as_dir=$as_dir/ ;;
7548     esac
7549 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7550 root 1.166 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 root 1.86 break 2
7554     fi
7555     done
7556 sf-exg 1.132 done
7557 ayin 1.108 IFS=$as_save_IFS
7558 root 1.86
7559     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7560     ;;
7561 root 1.176 esac ;;
7562 root 1.86 esac
7563     fi
7564     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7565     if test -n "$XFT_CONFIG"; then
7566 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7567     printf "%s\n" "$XFT_CONFIG" >&6; }
7568 root 1.86 else
7569 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570     printf "%s\n" "no" >&6; }
7571 root 1.86 fi
7572    
7573 ayin 1.108
7574 root 1.86 if test $XFT_CONFIG != no; then
7575 root 1.117 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7576 root 1.86 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7577     fi
7578 sf-exg 1.162
7579 root 1.86 fi
7580 root 1.34
7581 sf-exg 1.138
7582 root 1.118 save_LIBS="$LIBS"
7583     LIBS="$LIBS $X_LIBS"
7584 root 1.166 for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h
7585 sf-exg 1.132 do :
7586 root 1.176 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
7587 root 1.166 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 root 1.39 cat >>confdefs.h <<_ACEOF
7591 root 1.176 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
7592 pcg 1.11 _ACEOF
7593 pcg 1.1
7594 root 1.176 else case e in #(
7595     e) support_xft=no ;;
7596     esac
7597 pcg 1.1 fi
7598 pcg 1.11
7599 root 1.39 done
7600 pcg 1.1
7601 root 1.160 for ac_func in XftDrawString32 FcPatternGet
7602 sf-exg 1.138 do :
7603 root 1.176 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
7604 root 1.160 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7605 root 1.166 if eval test \"x\$"$as_ac_var"\" = x"yes"
7606     then :
7607 sf-exg 1.138 cat >>confdefs.h <<_ACEOF
7608 root 1.176 #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
7609 sf-exg 1.138 _ACEOF
7610 root 1.39
7611 root 1.176 else case e in #(
7612     e) support_xft=no ;;
7613     esac
7614 sf-exg 1.138 fi
7615 root 1.166
7616 sf-exg 1.138 done
7617     LIBS="$save_LIBS"
7618 sf-exg 1.136
7619 sf-exg 1.138 if test x$support_xft = xyes; then
7620 sf-exg 1.136
7621 root 1.166 printf "%s\n" "#define XFT 1" >>confdefs.h
7622 sf-exg 1.136
7623     fi
7624     fi
7625 root 1.155
7626     if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7627 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5
7628     printf %s "checking for Render >= 0.11... " >&6; }
7629 root 1.161 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 root 1.166 main (void)
7639 root 1.161 {
7640    
7641     ;
7642     return 0;
7643     }
7644     _ACEOF
7645 root 1.166 if ac_fn_cxx_try_compile "$LINENO"
7646     then :
7647 root 1.161
7648 root 1.176 else case e in #(
7649     e) support_image=no ;;
7650     esac
7651 root 1.161 fi
7652 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7653 root 1.161 if test x$support_image = xyes; then
7654 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7655     printf "%s\n" "ok" >&6; }
7656 root 1.161 LIBS="$LIBS -lm"
7657 root 1.155
7658 root 1.166 printf "%s\n" "#define XRENDER 1" >>confdefs.h
7659 root 1.155
7660    
7661 root 1.161 if test x$support_inheritpixmap = xyes; then
7662 root 1.155
7663 root 1.166 printf "%s\n" "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7664 root 1.155
7665 root 1.161 fi
7666     else
7667 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668     printf "%s\n" "no" >&6; }
7669 root 1.155 fi
7670     fi
7671    
7672 root 1.39 if test x$support_styles = xyes; then
7673    
7674 root 1.166 printf "%s\n" "#define ENABLE_STYLES 1" >>confdefs.h
7675 root 1.39
7676     fi
7677     if test x$support_iso14755 = xyes; then
7678    
7679 root 1.166 printf "%s\n" "#define ISO_14755 1" >>confdefs.h
7680 root 1.39
7681     fi
7682     if test x$support_8bitctrls = xyes; then
7683    
7684 root 1.166 printf "%s\n" "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7685 root 1.39
7686     fi
7687     if test x$support_fading = xyes; then
7688    
7689 root 1.166 printf "%s\n" "#define OFF_FOCUS_FADING 1" >>confdefs.h
7690 root 1.39
7691     fi
7692     if test x$support_keepscrolling = xno; then
7693    
7694 root 1.166 printf "%s\n" "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7695 root 1.39
7696     fi
7697     if test x$support_selectionscrolling = xyes; then
7698    
7699 root 1.166 printf "%s\n" "#define SELECTION_SCROLLING 1" >>confdefs.h
7700 root 1.39
7701     fi
7702 ayin 1.111 if test x$support_frills = xyes; then
7703    
7704 root 1.166 printf "%s\n" "#define ENABLE_FRILLS 1" >>confdefs.h
7705 ayin 1.111
7706     fi
7707 pcg 1.1 if test x$support_mousewheel = xyes; then
7708 pcg 1.11
7709 root 1.166 printf "%s\n" "#define MOUSE_WHEEL 1" >>confdefs.h
7710 pcg 1.1
7711     fi
7712     if test x$support_mouseslipwheel = xyes; then
7713 pcg 1.11
7714 root 1.166 printf "%s\n" "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7715 pcg 1.1
7716     fi
7717 root 1.103
7718 ayin 1.126 scrolltypes=plain
7719    
7720 root 1.166 printf "%s\n" "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7721 ayin 1.126
7722    
7723 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
7724 pcg 1.11
7725 root 1.166 printf "%s\n" "#define RXVT_SCROLLBAR 1" >>confdefs.h
7726 pcg 1.1
7727 ayin 1.126 scrolltypes="$scrolltypes rxvt"
7728 pcg 1.1 fi
7729     if test x$support_scroll_next = xyes; then
7730 pcg 1.11
7731 root 1.166 printf "%s\n" "#define NEXT_SCROLLBAR 1" >>confdefs.h
7732 pcg 1.1
7733     scrolltypes="$scrolltypes next"
7734     fi
7735     if test x$support_scroll_xterm = xyes; then
7736 pcg 1.11
7737 root 1.166 printf "%s\n" "#define XTERM_SCROLLBAR 1" >>confdefs.h
7738 pcg 1.1
7739     scrolltypes="$scrolltypes xterm"
7740     fi
7741     if test x$support_pointer_blank = xyes; then
7742 pcg 1.11
7743 root 1.166 printf "%s\n" "#define POINTER_BLANK 1" >>confdefs.h
7744 pcg 1.1
7745     fi
7746 pcg 1.11 if test x$support_text_blink = xyes; then
7747    
7748 root 1.166 printf "%s\n" "#define TEXT_BLINK 1" >>confdefs.h
7749 pcg 1.1
7750     fi
7751     if test x$support_unicode3 = xyes; then
7752 pcg 1.11
7753 root 1.166 printf "%s\n" "#define UNICODE_3 1" >>confdefs.h
7754 pcg 1.1
7755     fi
7756 pcg 1.18 if test x$support_combining = xyes; then
7757    
7758 root 1.166 printf "%s\n" "#define ENABLE_COMBINING 1" >>confdefs.h
7759 pcg 1.18
7760     fi
7761 pcg 1.1 if test x$codesets = xall; then
7762 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
7763 pcg 1.1 fi
7764 pcg 1.11
7765 root 1.166 printf "%s\n" "#define ENCODING_EU 1" >>confdefs.h
7766 pcg 1.1
7767 pcg 1.13
7768 root 1.166 printf "%s\n" "#define ENCODING_VN 1" >>confdefs.h
7769 pcg 1.13
7770 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7771 pcg 1.13 case "$codeset" in
7772 pcg 1.11 JP )
7773 root 1.166 printf "%s\n" "#define ENCODING_JP 1" >>confdefs.h
7774 pcg 1.1 ;;
7775 pcg 1.11 JP_EXT )
7776 root 1.166 printf "%s\n" "#define ENCODING_JP_EXT 1" >>confdefs.h
7777 pcg 1.1 ;;
7778 pcg 1.11 KR )
7779 root 1.166 printf "%s\n" "#define ENCODING_KR 1" >>confdefs.h
7780 pcg 1.1 ;;
7781 root 1.40 ZH )
7782 root 1.166 printf "%s\n" "#define ENCODING_ZH 1" >>confdefs.h
7783 pcg 1.1 ;;
7784 root 1.40 ZH_EXT )
7785 root 1.166 printf "%s\n" "#define ENCODING_ZH_EXT 1" >>confdefs.h
7786 pcg 1.1 ;;
7787     esac
7788     done
7789    
7790 root 1.60 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 root 1.166 { 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 root 1.176 else case e in #(
7800     e) case $PERL in
7801 root 1.60 [\\/]* | ?:[\\/]*)
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 root 1.166 case $as_dir in #(((
7810     '') as_dir=./ ;;
7811     */) ;;
7812     *) as_dir=$as_dir/ ;;
7813     esac
7814 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7815 root 1.166 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 root 1.60 break 2
7819     fi
7820     done
7821 sf-exg 1.132 done
7822 ayin 1.108 IFS=$as_save_IFS
7823 root 1.60
7824 root 1.154 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
7825 root 1.60 ;;
7826 root 1.176 esac ;;
7827 root 1.60 esac
7828     fi
7829     PERL=$ac_cv_path_PERL
7830     if test -n "$PERL"; then
7831 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7832     printf "%s\n" "$PERL" >&6; }
7833 root 1.60 else
7834 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835     printf "%s\n" "no" >&6; }
7836 root 1.60 fi
7837    
7838    
7839 ayin 1.108
7840 root 1.174
7841 root 1.175 { 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 root 1.174 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 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
7863     printf %s "checking for $PERL suitability... " >&6; }
7864 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
7865    
7866 root 1.62 save_CXXFLAGS="$CXXFLAGS"
7867     save_LIBS="$LIBS"
7868     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
7869 root 1.174 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
7870 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 root 1.62 /* end confdefs.h. */
7872    
7873     #include <EXTERN.h>
7874     #include <perl.h>
7875     #include <XSUB.h>
7876    
7877     int
7878 root 1.166 main (void)
7879 root 1.62 {
7880    
7881     PerlInterpreter *perl = perl_alloc ();
7882    
7883     ;
7884     return 0;
7885     }
7886     _ACEOF
7887 root 1.166 if ac_fn_cxx_try_link "$LINENO"
7888     then :
7889 root 1.62 rxvt_perl_link=yes
7890 root 1.176 else case e in #(
7891     e) rxvt_perl_link=no ;;
7892     esac
7893 root 1.62 fi
7894 root 1.166 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7895 sf-exg 1.132 conftest$ac_exeext conftest.$ac_ext
7896 root 1.62 CXXFLAGS="$save_CXXFLAGS"
7897     LIBS="$save_LIBS"
7898    
7899     if test x$rxvt_perl_link = xyes; then
7900 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7901     printf "%s\n" "ok" >&6; }
7902 root 1.62
7903 root 1.166 printf "%s\n" "#define ENABLE_PERL 1" >>confdefs.h
7904 root 1.60
7905 root 1.62 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 root 1.137 as_fn_error $? "no, unable to link" "$LINENO" 5
7912 root 1.62 fi
7913 root 1.60 else
7914 root 1.137 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
7915 root 1.60 fi
7916     fi
7917    
7918    
7919    
7920    
7921    
7922    
7923    
7924 pcg 1.1
7925 ayin 1.124 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
7926 root 1.32
7927 pcg 1.11 cat >confcache <<\_ACEOF
7928 pcg 1.1 # 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 pcg 1.11 # 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 pcg 1.1 #
7934 pcg 1.11 # config.status only pays attention to the cache file if you give it
7935     # the --recheck option to rerun configure.
7936 pcg 1.1 #
7937 root 1.176 # '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 pcg 1.11 # following values.
7940    
7941     _ACEOF
7942    
7943 pcg 1.1 # 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 ayin 1.108 # So, we kill variables containing newlines.
7946 pcg 1.1 # 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 ayin 1.108 (
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 root 1.166 *_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 ayin 1.108 esac
7957     case $ac_var in #(
7958     _ | IFS | as_nl) ;; #(
7959 sf-exg 1.132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7960     *) { eval $ac_var=; unset $ac_var;} ;;
7961 ayin 1.108 esac ;;
7962     esac
7963     done
7964    
7965 pcg 1.11 (set) 2>&1 |
7966 ayin 1.108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7967     *${as_nl}ac_space=\ *)
7968 root 1.176 # 'set' does not quote correctly, so add quotes: double-quote
7969 sf-exg 1.132 # substitution turns \\\\ into \\, and sed turns \\ into \.
7970 pcg 1.11 sed -n \
7971     "s/'/'\\\\''/g;
7972     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7973 ayin 1.108 ;; #(
7974 pcg 1.11 *)
7975 root 1.176 # 'set' quotes correctly as required by POSIX, so do not add quotes.
7976 ayin 1.108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7977 pcg 1.11 ;;
7978 ayin 1.108 esac |
7979     sort
7980     ) |
7981 pcg 1.11 sed '
7982 ayin 1.108 /^ac_cv_env_/b end
7983 pcg 1.11 t clear
7984 ayin 1.108 :clear
7985 root 1.166 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
7986 pcg 1.11 t end
7987 ayin 1.108 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 root 1.158 if test "x$cache_file" != "x/dev/null"; then
7992 root 1.166 { 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 root 1.158 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 pcg 1.1 else
8007 root 1.166 { 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 pcg 1.1 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 pcg 1.11 DEFS=-DHAVE_CONFIG_H
8018    
8019     ac_libobjs=
8020     ac_ltlibobjs=
8021 root 1.137 U=
8022 pcg 1.11 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8023     # 1. Remove the extension, and $U if already installed.
8024 ayin 1.108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8025 root 1.166 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8026 ayin 1.108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8027     # will be set to the directory where LIBOBJS objects are built.
8028 sf-exg 1.132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8029     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8030 pcg 1.11 done
8031     LIBOBJS=$ac_libobjs
8032    
8033     LTLIBOBJS=$ac_ltlibobjs
8034    
8035 pcg 1.1
8036    
8037 root 1.158 : "${CONFIG_STATUS=./config.status}"
8038 sf-exg 1.132 ac_write_fail=0
8039 pcg 1.11 ac_clean_files_save=$ac_clean_files
8040     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8041 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8042     printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8043 sf-exg 1.132 as_write_fail=0
8044     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8045 pcg 1.11 #! $SHELL
8046     # Generated by $as_me.
8047 pcg 1.1 # Run this file to recreate the current configuration.
8048     # Compiler output produced by configure, useful for debugging
8049 pcg 1.11 # configure, is in config.log if it exists.
8050    
8051     debug=false
8052     ac_cs_recheck=false
8053     ac_cs_silent=false
8054 sf-exg 1.132
8055 pcg 1.11 SHELL=\${CONFIG_SHELL-$SHELL}
8056 sf-exg 1.132 export SHELL
8057     _ASEOF
8058     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8059     ## -------------------- ##
8060     ## M4sh Initialization. ##
8061     ## -------------------- ##
8062 pcg 1.11
8063 ayin 1.108 # Be more Bourne compatible
8064     DUALCASE=1; export DUALCASE # for MKS sh
8065 root 1.166 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8066     then :
8067 pcg 1.11 emulate sh
8068     NULLCMD=:
8069 sf-exg 1.132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8070 pcg 1.11 # is contrary to our usage. Disable this feature.
8071     alias -g '${1+"$@"}'='"$@"'
8072 ayin 1.108 setopt NO_GLOB_SUBST
8073 root 1.176 else case e in #(
8074     e) case `(set -o) 2>/dev/null` in #(
8075 sf-exg 1.132 *posix*) :
8076     set -o posix ;; #(
8077     *) :
8078     ;;
8079 root 1.176 esac ;;
8080 ayin 1.108 esac
8081     fi
8082    
8083    
8084 root 1.166
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 sf-exg 1.132 as_nl='
8093     '
8094     export as_nl
8095 root 1.166 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 ayin 1.106
8122 sf-exg 1.132 # The user is always right.
8123 root 1.166 if ${PATH_SEPARATOR+false} :; then
8124 sf-exg 1.132 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 pcg 1.11 fi
8130    
8131    
8132 ayin 1.108 # Find who we are. Look in the path if we contain no directory separator.
8133 root 1.158 as_myself=
8134 sf-exg 1.132 case $0 in #((
8135 ayin 1.108 *[\\/]* ) 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 root 1.166 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 sf-exg 1.132 done
8147 ayin 1.108 IFS=$as_save_IFS
8148    
8149     ;;
8150     esac
8151 root 1.176 # We did not find ourselves, most probably we were run as 'sh COMMAND'
8152 ayin 1.108 # 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 root 1.166 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8158 sf-exg 1.132 exit 1
8159 ayin 1.108 fi
8160    
8161 sf-exg 1.132
8162    
8163 root 1.137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8164     # ----------------------------------------
8165 sf-exg 1.132 # 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 root 1.137 # script with STATUS, using 1 if that was 0.
8168 sf-exg 1.132 as_fn_error ()
8169     {
8170 root 1.137 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 root 1.166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8174 sf-exg 1.132 fi
8175 root 1.166 printf "%s\n" "$as_me: error: $2" >&2
8176 sf-exg 1.132 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 root 1.166
8207 sf-exg 1.132 # 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 root 1.166 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8214     then :
8215 sf-exg 1.132 eval 'as_fn_append ()
8216     {
8217     eval $1+=\$2
8218     }'
8219 root 1.176 else case e in #(
8220     e) as_fn_append ()
8221 sf-exg 1.132 {
8222     eval $1=\$$1\$2
8223 root 1.176 } ;;
8224     esac
8225 sf-exg 1.132 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 root 1.166 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8233     then :
8234 sf-exg 1.132 eval 'as_fn_arith ()
8235     {
8236     as_val=$(( $* ))
8237     }'
8238 root 1.176 else case e in #(
8239     e) as_fn_arith ()
8240 sf-exg 1.132 {
8241     as_val=`expr "$@" || test $? -eq 1`
8242 root 1.176 } ;;
8243     esac
8244 sf-exg 1.132 fi # as_fn_arith
8245    
8246 root 1.105
8247 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
8248     test "X`expr 00001 : '.*\(...\)'`" = X001; then
8249 root 1.105 as_expr=expr
8250     else
8251     as_expr=false
8252     fi
8253    
8254 ayin 1.108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8255 root 1.105 as_basename=basename
8256     else
8257     as_basename=false
8258     fi
8259    
8260 sf-exg 1.132 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 root 1.105
8266 ayin 1.108 as_me=`$as_basename -- "$0" ||
8267 root 1.105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8268     X"$0" : 'X\(//\)$' \| \
8269 ayin 1.108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8270 root 1.166 printf "%s\n" X/"$0" |
8271 ayin 1.108 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 sf-exg 1.132 # 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 ayin 1.108
8292 root 1.166
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 ayin 1.108 ECHO_C= ECHO_N= ECHO_T=
8297 sf-exg 1.132 case `echo -n x` in #(((((
8298 ayin 1.108 -n*)
8299 sf-exg 1.132 case `echo 'xy\c'` in
8300 ayin 1.108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8301 sf-exg 1.132 xy) ECHO_C='\c';;
8302     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8303     ECHO_T=' ';;
8304 ayin 1.108 esac;;
8305     *)
8306     ECHO_N='-n';;
8307 pcg 1.11 esac
8308    
8309 root 1.166 # 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 pcg 1.11 rm -f conf$$ conf$$.exe conf$$.file
8316 ayin 1.108 if test -d conf$$.dir; then
8317     rm -f conf$$.dir/conf$$.file
8318     else
8319     rm -f conf$$.dir
8320 sf-exg 1.132 mkdir conf$$.dir 2>/dev/null
8321 ayin 1.108 fi
8322 sf-exg 1.132 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 root 1.176 # 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 sf-exg 1.132 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8330 root 1.158 as_ln_s='cp -pR'
8331 sf-exg 1.132 elif ln conf$$.file conf$$ 2>/dev/null; then
8332     as_ln_s=ln
8333     else
8334 root 1.158 as_ln_s='cp -pR'
8335 sf-exg 1.132 fi
8336 pcg 1.11 else
8337 root 1.158 as_ln_s='cp -pR'
8338 pcg 1.11 fi
8339 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8340     rmdir conf$$.dir 2>/dev/null
8341 pcg 1.11
8342 sf-exg 1.132
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 root 1.166 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8357 sf-exg 1.132 *) 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 root 1.166 printf "%s\n" X"$as_dir" |
8366 sf-exg 1.132 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 root 1.137 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8387 sf-exg 1.132
8388    
8389     } # as_fn_mkdir_p
8390 pcg 1.11 if mkdir -p . 2>/dev/null; then
8391 sf-exg 1.132 as_mkdir_p='mkdir -p "$as_dir"'
8392 pcg 1.11 else
8393     test -d ./-p && rmdir ./-p
8394     as_mkdir_p=false
8395     fi
8396    
8397 root 1.158
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 pcg 1.11
8408     # Sed expression to map a string onto a valid CPP name.
8409 root 1.176 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 pcg 1.11
8412     # Sed expression to map a string onto a valid variable name.
8413 root 1.176 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
8414     as_tr_sh="eval sed '$as_sed_sh'" # deprecated
8415 pcg 1.11
8416    
8417     exec 6>&1
8418 sf-exg 1.132 ## ----------------------------------- ##
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 pcg 1.11
8424 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8425     # Save the log message, to keep $0 and so on meaningful, and to
8426 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
8427 ayin 1.108 # values after options handling.
8428     ac_log="
8429 pcg 1.11 This file was extended by $as_me, which was
8430 root 1.176 generated by GNU Autoconf 2.72. Invocation command line was
8431 pcg 1.11
8432     CONFIG_FILES = $CONFIG_FILES
8433     CONFIG_HEADERS = $CONFIG_HEADERS
8434     CONFIG_LINKS = $CONFIG_LINKS
8435     CONFIG_COMMANDS = $CONFIG_COMMANDS
8436     $ $0 $@
8437    
8438 ayin 1.108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8439     "
8440    
8441 pcg 1.11 _ACEOF
8442    
8443 sf-exg 1.132 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 pcg 1.11 # Files that config.status was made for.
8454 ayin 1.108 config_files="$ac_config_files"
8455     config_headers="$ac_config_headers"
8456 ayin 1.106
8457 ayin 1.108 _ACEOF
8458 pcg 1.11
8459 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8460 pcg 1.11 ac_cs_usage="\
8461 root 1.176 '$as_me' instantiates files and other configuration actions
8462 sf-exg 1.132 from templates according to the current configuration. Unless the files
8463     and actions are specified as TAGs, all are instantiated by default.
8464 pcg 1.11
8465 sf-exg 1.132 Usage: $0 [OPTION]... [TAG]...
8466 pcg 1.11
8467     -h, --help print this help, then exit
8468 ayin 1.108 -V, --version print version number and configuration settings, then exit
8469 sf-exg 1.132 --config print configuration, then exit
8470     -q, --quiet, --silent
8471     do not print progress messages
8472 pcg 1.11 -d, --debug don't remove temporary files
8473     --recheck update $as_me by reconfiguring in the same conditions
8474 sf-exg 1.132 --file=FILE[:TEMPLATE]
8475     instantiate the configuration file FILE
8476     --header=FILE[:TEMPLATE]
8477     instantiate the configuration header FILE
8478 pcg 1.11
8479     Configuration files:
8480     $config_files
8481    
8482     Configuration headers:
8483     $config_headers
8484    
8485 sf-exg 1.132 Report bugs to the package provider."
8486 ayin 1.108
8487 ayin 1.106 _ACEOF
8488 root 1.166 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 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8491 root 1.166 ac_cs_config='$ac_cs_config_escaped'
8492 pcg 1.11 ac_cs_version="\\
8493     config.status
8494 root 1.176 configured by $0, generated by GNU Autoconf 2.72,
8495 sf-exg 1.132 with options \\"\$ac_cs_config\\"
8496 pcg 1.11
8497 root 1.176 Copyright (C) 2023 Free Software Foundation, Inc.
8498 pcg 1.11 This config.status script is free software; the Free Software Foundation
8499     gives unlimited permission to copy, distribute and modify it."
8500 ayin 1.108
8501     ac_pwd='$ac_pwd'
8502     srcdir='$srcdir'
8503     INSTALL='$INSTALL'
8504 sf-exg 1.132 test -n "\$AWK" || AWK=awk
8505 pcg 1.11 _ACEOF
8506    
8507 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8508     # The default lists apply if the user does not specify any file.
8509 pcg 1.11 ac_need_defaults=:
8510     while test $# != 0
8511 pcg 1.1 do
8512 pcg 1.11 case $1 in
8513 root 1.137 --*=?*)
8514 ayin 1.108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8515     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8516 pcg 1.11 ac_shift=:
8517     ;;
8518 root 1.137 --*=)
8519     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8520     ac_optarg=
8521     ac_shift=:
8522     ;;
8523 ayin 1.108 *)
8524 pcg 1.11 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 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8533 pcg 1.11 ac_cs_recheck=: ;;
8534 ayin 1.108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8535 root 1.166 printf "%s\n" "$ac_cs_version"; exit ;;
8536 sf-exg 1.132 --config | --confi | --conf | --con | --co | --c )
8537 root 1.166 printf "%s\n" "$ac_cs_config"; exit ;;
8538 ayin 1.108 --debug | --debu | --deb | --de | --d | -d )
8539 pcg 1.11 debug=: ;;
8540     --file | --fil | --fi | --f )
8541     $ac_shift
8542 sf-exg 1.132 case $ac_optarg in
8543 root 1.166 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8544 root 1.137 '') as_fn_error $? "missing file argument" ;;
8545 sf-exg 1.132 esac
8546     as_fn_append CONFIG_FILES " '$ac_optarg'"
8547 pcg 1.11 ac_need_defaults=false;;
8548     --header | --heade | --head | --hea )
8549     $ac_shift
8550 sf-exg 1.132 case $ac_optarg in
8551 root 1.166 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8552 sf-exg 1.132 esac
8553     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8554 pcg 1.11 ac_need_defaults=false;;
8555 ayin 1.108 --he | --h)
8556     # Conflict between --help and --header
8557 root 1.176 as_fn_error $? "ambiguous option: '$1'
8558     Try '$0 --help' for more information.";;
8559 ayin 1.108 --help | --hel | -h )
8560 root 1.166 printf "%s\n" "$ac_cs_usage"; exit ;;
8561 pcg 1.11 -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 root 1.176 -*) as_fn_error $? "unrecognized option: '$1'
8567     Try '$0 --help' for more information." ;;
8568 pcg 1.11
8569 sf-exg 1.132 *) as_fn_append ac_config_targets " $1"
8570 ayin 1.108 ac_need_defaults=false ;;
8571 pcg 1.11
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 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8585 pcg 1.11 if \$ac_cs_recheck; then
8586 root 1.158 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8587 sf-exg 1.132 shift
8588 root 1.166 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
8589 sf-exg 1.132 CONFIG_SHELL='$SHELL'
8590 ayin 1.108 export CONFIG_SHELL
8591 sf-exg 1.132 exec "\$@"
8592 pcg 1.11 fi
8593    
8594     _ACEOF
8595 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8596 ayin 1.108 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 root 1.166 printf "%s\n" "$ac_log"
8603 ayin 1.108 } >&5
8604 pcg 1.11
8605 ayin 1.108 _ACEOF
8606 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8607 ayin 1.108 _ACEOF
8608 ayin 1.106
8609 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8610 ayin 1.106
8611 ayin 1.108 # Handling of arguments.
8612 pcg 1.11 for ac_config_target in $ac_config_targets
8613     do
8614 ayin 1.108 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 root 1.176 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
8621 pcg 1.1 esac
8622     done
8623    
8624 ayin 1.108
8625 pcg 1.11 # 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 root 1.166 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8631     test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
8632 pcg 1.11 fi
8633    
8634     # Have a temporary directory for convenience. Make it in the build tree
8635 ayin 1.108 # simply because there is no reason against having it here, and in addition,
8636 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
8637 ayin 1.108 # Hook for its removal unless debugging.
8638     # Note that there is a small window in which the directory will not be cleaned:
8639 root 1.176 # after its creation but before its name has been assigned to '$tmp'.
8640 pcg 1.11 $debug ||
8641     {
8642 root 1.158 tmp= ac_tmp=
8643 ayin 1.108 trap 'exit_status=$?
8644 root 1.158 : "${ac_tmp:=$tmp}"
8645     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8646 ayin 1.108 ' 0
8647 sf-exg 1.132 trap 'as_fn_exit 1' 1 2 13 15
8648 pcg 1.11 }
8649     # Create a (secure) tmp directory for tmp files.
8650    
8651     {
8652 ayin 1.108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8653 root 1.158 test -d "$tmp"
8654 pcg 1.11 } ||
8655     {
8656 ayin 1.108 tmp=./conf$$-$RANDOM
8657     (umask 077 && mkdir "$tmp")
8658 root 1.137 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8659 root 1.158 ac_tmp=$tmp
8660 sf-exg 1.132
8661     # Set up the scripts for CONFIG_FILES section.
8662     # No need to generate them if there are no CONFIG_FILES.
8663 root 1.176 # This happens for instance with './config.status config.h'.
8664 sf-exg 1.132 if test -n "$CONFIG_FILES"; then
8665 pcg 1.11
8666 ayin 1.108
8667 sf-exg 1.132 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 root 1.137 ac_cs_awk_cr='\\r'
8677 sf-exg 1.132 else
8678     ac_cs_awk_cr=$ac_cr
8679     fi
8680 ayin 1.108
8681 root 1.158 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8682 ayin 1.106 _ACEOF
8683    
8684 ayin 1.108
8685 sf-exg 1.132 {
8686     echo "cat >conf$$subs.awk <<_ACEOF" &&
8687     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8688     echo "_ACEOF"
8689     } >conf$$subs.sh ||
8690 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8691     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8692 ayin 1.108 ac_delim='%!_!# '
8693     for ac_last_try in false false false false false :; do
8694 sf-exg 1.132 . ./conf$$subs.sh ||
8695 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8696 root 1.105
8697 sf-exg 1.132 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 ayin 1.108 break
8700     elif $ac_last_try; then
8701 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8702 ayin 1.108 else
8703     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8704 root 1.105 fi
8705 ayin 1.108 done
8706 sf-exg 1.132 rm -f conf$$subs.sh
8707 ayin 1.108
8708 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8709 root 1.158 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8710 ayin 1.108 _ACEOF
8711 sf-exg 1.132 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 root 1.158 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8758 sf-exg 1.132 for (key in S) S_is_set[key] = 1
8759     FS = ""
8760 ayin 1.108
8761 sf-exg 1.132 }
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 root 1.158 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8790 root 1.137 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8791 sf-exg 1.132 _ACEOF
8792 ayin 1.108
8793 root 1.137 # 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 ayin 1.108 # 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 root 1.137 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 ayin 1.108 s/:*$//
8808 root 1.137 x
8809     s/\(=[ ]*\).*/\1/
8810     G
8811     s/\n//
8812 ayin 1.108 s/^[^=]*=[ ]*$//
8813     }'
8814     fi
8815    
8816 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8817 ayin 1.108 fi # test -n "$CONFIG_FILES"
8818    
8819 sf-exg 1.132 # Set up the scripts for CONFIG_HEADERS section.
8820     # No need to generate them if there are no CONFIG_HEADERS.
8821 root 1.176 # This happens for instance with './config.status Makefile'.
8822 sf-exg 1.132 if test -n "$CONFIG_HEADERS"; then
8823 root 1.158 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8824 sf-exg 1.132 BEGIN {
8825     _ACEOF
8826    
8827 root 1.176 # Transform confdefs.h into an awk script 'defines.awk', embedded as
8828 sf-exg 1.132 # 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 root 1.158 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8836     if test -z "$ac_tt"; then
8837 sf-exg 1.132 break
8838     elif $ac_last_try; then
8839 root 1.137 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8840 sf-exg 1.132 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 root 1.137 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8925 sf-exg 1.132 fi # test -n "$CONFIG_HEADERS"
8926    
8927 ayin 1.108
8928 sf-exg 1.132 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8929     shift
8930     for ac_tag
8931 ayin 1.108 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 root 1.176 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
8938 ayin 1.108 :[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 root 1.158 -) ac_f="$ac_tmp/stdin";;
8957 ayin 1.108 *) # 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 root 1.176 # because $ac_f cannot contain ':'.
8960 ayin 1.108 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 root 1.176 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
8966 ayin 1.108 esac
8967 root 1.166 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8968 sf-exg 1.132 as_fn_append ac_file_inputs " '$ac_f'"
8969 ayin 1.108 done
8970    
8971 root 1.176 # Let's still pretend it is 'configure' which instantiates (i.e., don't
8972 ayin 1.108 # use $as_me), people would be surprised to read:
8973     # /* config.h. Generated by config.status. */
8974 sf-exg 1.132 configure_input='Generated from '`
8975 root 1.166 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8976 sf-exg 1.132 `' by configure.'
8977 ayin 1.108 if test x"$ac_file" != x-; then
8978     configure_input="$ac_file. $configure_input"
8979 root 1.166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8980     printf "%s\n" "$as_me: creating $ac_file" >&6;}
8981 ayin 1.108 fi
8982 sf-exg 1.132 # Neutralize special characters interpreted by sed in replacement strings.
8983     case $configure_input in #(
8984     *\&* | *\|* | *\\* )
8985 root 1.166 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
8986 sf-exg 1.132 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8987     *) ac_sed_conf_input=$configure_input;;
8988     esac
8989 ayin 1.108
8990     case $ac_tag in
8991 root 1.158 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8992     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8993 ayin 1.108 esac
8994     ;;
8995 ayin 1.102 esac
8996    
8997 ayin 1.108 ac_dir=`$as_dirname -- "$ac_file" ||
8998 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8999     X"$ac_file" : 'X\(//\)[^/]' \| \
9000     X"$ac_file" : 'X\(//\)$' \| \
9001 ayin 1.108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9002 root 1.166 printf "%s\n" X"$ac_file" |
9003 ayin 1.108 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 sf-exg 1.132 as_dir="$ac_dir"; as_fn_mkdir_p
9021 pcg 1.11 ac_builddir=.
9022    
9023 ayin 1.108 case "$ac_dir" in
9024     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9025     *)
9026 root 1.166 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9027 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
9028 root 1.166 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9029 ayin 1.108 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 pcg 1.11
9039     case $srcdir in
9040 ayin 1.108 .) # We are building in place.
9041 pcg 1.11 ac_srcdir=.
9042 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
9043     ac_abs_top_srcdir=$ac_pwd ;;
9044     [\\/]* | ?:[\\/]* ) # Absolute name.
9045 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
9046 ayin 1.108 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 pcg 1.11 esac
9053 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9054 pcg 1.11
9055    
9056 ayin 1.108 case $ac_mode in
9057     :F)
9058     #
9059     # CONFIG_FILE
9060     #
9061 pcg 1.1
9062 pcg 1.11 case $INSTALL in
9063     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9064 ayin 1.108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9065 pcg 1.1 esac
9066 ayin 1.108 _ACEOF
9067 pcg 1.1
9068 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9069 ayin 1.108 # 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 sf-exg 1.132 ac_sed_dataroot='
9073     /datarootdir/ {
9074 ayin 1.108 p
9075     q
9076     }
9077     /@datadir@/p
9078     /@docdir@/p
9079     /@infodir@/p
9080     /@localedir@/p
9081 sf-exg 1.132 /@mandir@/p'
9082     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9083 ayin 1.108 *datarootdir*) ac_datarootdir_seen=yes;;
9084     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9085 root 1.166 { 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 ayin 1.108 _ACEOF
9088 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9089 ayin 1.108 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 sf-exg 1.132 s&\\\${datarootdir}&$datarootdir&g' ;;
9096 ayin 1.108 esac
9097 root 1.105 _ACEOF
9098 ayin 1.108
9099 root 1.176 # Neutralize VPATH when '$srcdir' = '.'.
9100 ayin 1.108 # Shell code in configure.ac might set extrasub.
9101     # FIXME: do we really want to maintain this feature?
9102 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9103     ac_sed_extra="$ac_vpsub
9104 pcg 1.11 $extrasub
9105     _ACEOF
9106 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9107 pcg 1.11 :t
9108     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9109 sf-exg 1.132 s|@configure_input@|$ac_sed_conf_input|;t t
9110 ayin 1.108 s&@top_builddir@&$ac_top_builddir_sub&;t t
9111 sf-exg 1.132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9112 ayin 1.108 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 sf-exg 1.132 "
9122 root 1.158 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 ayin 1.108
9125     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9126 root 1.158 { 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 root 1.176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9130 root 1.137 which seems to be undefined. Please make sure it is defined" >&5
9131 root 1.176 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9132 root 1.137 which seems to be undefined. Please make sure it is defined" >&2;}
9133 ayin 1.106
9134 root 1.158 rm -f "$ac_tmp/stdin"
9135 pcg 1.11 case $ac_file in
9136 root 1.158 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9137     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9138 sf-exg 1.132 esac \
9139 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9140 ayin 1.108 ;;
9141     :H)
9142     #
9143     # CONFIG_HEADER
9144     #
9145 pcg 1.11 if test x"$ac_file" != x-; then
9146 sf-exg 1.132 {
9147 root 1.166 printf "%s\n" "/* $configure_input */" >&1 \
9148 root 1.158 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9149     } >"$ac_tmp/config.h" \
9150 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9151 root 1.158 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9152 root 1.166 { 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 pcg 1.11 else
9155 sf-exg 1.132 rm -f "$ac_file"
9156 root 1.158 mv "$ac_tmp/config.h" "$ac_file" \
9157 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9158 pcg 1.1 fi
9159 pcg 1.11 else
9160 root 1.166 printf "%s\n" "/* $configure_input */" >&1 \
9161 root 1.158 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9162 root 1.137 || as_fn_error $? "could not create -" "$LINENO" 5
9163 pcg 1.1 fi
9164 ayin 1.108 ;;
9165    
9166    
9167     esac
9168    
9169     done # for ac_tag
9170 pcg 1.11
9171 pcg 1.1
9172 sf-exg 1.132 as_fn_exit 0
9173 pcg 1.11 _ACEOF
9174     ac_clean_files=$ac_clean_files_save
9175 pcg 1.1
9176 sf-exg 1.132 test $ac_write_fail = 0 ||
9177 root 1.137 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9178 sf-exg 1.132
9179 pcg 1.1
9180 pcg 1.11 # 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 root 1.137 $ac_cs_success || as_fn_exit 1
9199 sf-exg 1.132 fi
9200     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9201 root 1.166 { 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 pcg 1.11 fi
9204 pcg 1.1
9205    
9206     echo "Configuration:
9207    
9208     Rxvt version: $VERSION : $DATE
9209     Source code location: $srcdir
9210     Install path: ${prefix}/bin
9211 pcg 1.13 Compiler: $CXX
9212 root 1.100 Compiler flags: $CXXFLAGS
9213 pcg 1.13 Linker: $LINKER"
9214 pcg 1.1
9215     if test x$term != x; then
9216 pcg 1.18 echo " set TERM to: $term"
9217 pcg 1.1 fi
9218     if test x$terminfo != x; then
9219 pcg 1.18 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 pcg 1.1 fi
9226 pcg 1.18 echo
9227 root 1.89 echo " embedded perl: $support_perl"
9228 sf-exg 1.135 echo " image library: $image_lib"
9229 root 1.89 echo
9230 pcg 1.1 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 pcg 1.20
9238 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
9239 pcg 1.20 echo
9240    
9241 root 1.166