ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.168
Committed: Fri Jul 23 19:19:18 2021 UTC (2 years, 9 months ago) by sf-exg
Branch: MAIN
Changes since 1.167: +24 -801 lines
Log Message:
configure: regenerate

File Contents

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