ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.147
Committed: Tue Nov 15 01:13:49 2011 UTC (12 years, 7 months ago) by mikachu
Branch: MAIN
Changes since 1.146: +304 -242 lines
Log Message:
*** empty log message ***

File Contents

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