ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.149
Committed: Sun Nov 27 15:18:44 2011 UTC (12 years, 6 months ago) by sf-exg
Branch: MAIN
Changes since 1.148: +284 -425 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 sf-exg 1.149 # 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 sf-exg 1.149 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 sf-exg 1.149 # 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 sf-exg 1.149 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 sf-exg 1.149 : "${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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 *) 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 sf-exg 1.149 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 sf-exg 1.149 *) 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 if ${ac_cv_search_strerror+:} false; then :
4399 sf-exg 1.132 break
4400     fi
4401     done
4402 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 if ${ac_cv_search_setlocale+:} false; then :
4535 sf-exg 1.133 break
4536     fi
4537     done
4538 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 if ${ac_cv_search_gethostbyname+:} false; then :
4592 sf-exg 1.133 break
4593     fi
4594     done
4595 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 if ${ac_cv_search_socket+:} false; then :
4648 sf-exg 1.133 break
4649     fi
4650     done
4651 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 if ${ac_cv_search_floor+:} false; then :
5539 root 1.143 break
5540     fi
5541     done
5542 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 *\'*) 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6376 mikachu 1.147 $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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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 sf-exg 1.149 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.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6968     $as_echo_n "checking for a fallback location of utmp... " >&6; }
6969     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.145
6973 sf-exg 1.149 if test "$cross_compiling" != yes; then
6974     for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6975     if test -f "$file"; then
6976     pt_cv_path_utmp=$file
6977     break
6978     fi
6979     done
6980 root 1.88 fi
6981     fi
6982 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6983     $as_echo "$pt_cv_path_utmp" >&6; }
6984     if test x$pt_cv_path_utmp != x; then
6985 root 1.88
6986     cat >>confdefs.h <<_ACEOF
6987 sf-exg 1.149 #define PT_UTMP_FILE "$pt_cv_path_utmp"
6988 root 1.88 _ACEOF
6989    
6990 sf-exg 1.149 elif test "$cross_compiling" = yes; then
6991     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6992     $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6993 root 1.88 fi
6994    
6995    
6996 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6997     $as_echo_n "checking for a fallback location of wtmp... " >&6; }
6998     if ${pt_cv_path_wtmp+:} false; then :
6999 sf-exg 1.132 $as_echo_n "(cached) " >&6
7000 root 1.88 else
7001 sf-exg 1.145
7002 sf-exg 1.149 if test "$cross_compiling" != yes; then
7003     for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
7004     if test -f "$file"; then
7005     pt_cv_path_wtmp=$file
7006     break
7007     fi
7008     done
7009 root 1.88 fi
7010     fi
7011 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
7012     $as_echo "$pt_cv_path_wtmp" >&6; }
7013     if test x$pt_cv_path_wtmp != x; then
7014 root 1.88
7015     cat >>confdefs.h <<_ACEOF
7016 sf-exg 1.149 #define PT_WTMP_FILE "$pt_cv_path_wtmp"
7017 root 1.88 _ACEOF
7018    
7019 sf-exg 1.149 elif test "$cross_compiling" = yes; then
7020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7021     $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
7022 root 1.88 fi
7023    
7024 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
7025     $as_echo_n "checking for a fallback location of wtmpx... " >&6; }
7026     if ${pt_cv_path_wtmpx+:} false; then :
7027 sf-exg 1.132 $as_echo_n "(cached) " >&6
7028 root 1.88 else
7029 sf-exg 1.145
7030 sf-exg 1.149 if test "$cross_compiling" != yes; then
7031     for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7032     if test -f "$file"; then
7033     pt_cv_path_wtmpx=$file
7034     break
7035     fi
7036     done
7037 root 1.88 fi
7038     fi
7039 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7040     $as_echo "$pt_cv_path_wtmpx" >&6; }
7041     if test x$pt_cv_path_wtmpx != x; then
7042 root 1.88
7043     cat >>confdefs.h <<_ACEOF
7044 sf-exg 1.149 #define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7045 root 1.88 _ACEOF
7046    
7047 sf-exg 1.149 elif test "$cross_compiling" = yes; then
7048     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7049     $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7050 root 1.88 fi
7051    
7052 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7053     $as_echo_n "checking for a fallback location of lastlog... " >&6; }
7054     if ${pt_cv_path_lastlog+:} false; then :
7055 sf-exg 1.132 $as_echo_n "(cached) " >&6
7056 root 1.88 else
7057 sf-exg 1.145
7058 sf-exg 1.149 if test "$cross_compiling" != yes; then
7059     for file in "/var/log/lastlog"; do
7060     if test -f "$file"; then
7061     pt_cv_path_lastlog=$file
7062     break
7063     fi
7064     done
7065 root 1.88 fi
7066     fi
7067 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7068     $as_echo "$pt_cv_path_lastlog" >&6; }
7069     if test x$pt_cv_path_lastlog != x; then
7070 root 1.88
7071     cat >>confdefs.h <<_ACEOF
7072 sf-exg 1.149 #define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7073 root 1.88 _ACEOF
7074    
7075 sf-exg 1.149 elif test "$cross_compiling" = yes; then
7076     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7077     $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7078 root 1.88 fi
7079    
7080 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7081     $as_echo_n "checking for a fallback location of lastlogx... " >&6; }
7082     if ${pt_cv_path_lastlogx+:} false; then :
7083 sf-exg 1.132 $as_echo_n "(cached) " >&6
7084 root 1.88 else
7085 sf-exg 1.145
7086 sf-exg 1.149 if test "$cross_compiling" != yes; then
7087     for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7088     if test -f "$file"; then
7089     pt_cv_path_lastlogx=$file
7090     break
7091     fi
7092     done
7093 root 1.88 fi
7094     fi
7095 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7096     $as_echo "$pt_cv_path_lastlogx" >&6; }
7097     if test x$pt_cv_path_lastlogx != x; then
7098 root 1.88
7099     cat >>confdefs.h <<_ACEOF
7100 sf-exg 1.149 #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7101 root 1.88 _ACEOF
7102    
7103 sf-exg 1.149 elif test "$cross_compiling" = yes; then
7104     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7105     $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7106 root 1.88 fi
7107    
7108    
7109    
7110    
7111 ayin 1.114 save_LIBS=$LIBS
7112     save_CFLAGS=$CFLAGS
7113 root 1.88 CFLAGS="$CFLAGS $X_CFLAGS"
7114     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7115 ayin 1.111 if test x$support_xim = xyes; then
7116 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7117     $as_echo_n "checking for working Xlocale... " >&6; }
7118 sf-exg 1.149 if ${rxvt_cv_func_xlocale+:} false; then :
7119 sf-exg 1.132 $as_echo_n "(cached) " >&6
7120 root 1.88 else
7121 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7122 root 1.143 :
7123 root 1.88 else
7124 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 root 1.88 /* end confdefs.h. */
7126 root 1.143
7127     #include <X11/Xlib.h>
7128 ayin 1.111 #include <stdlib.h>
7129 root 1.143 int main() {
7130     char *p;
7131     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
7132     exit (XSupportsLocale() ? 0 : 1);
7133     else
7134     exit (1);
7135     }
7136    
7137 root 1.88 _ACEOF
7138 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7139 root 1.143 rxvt_cv_func_xlocale=yes
7140 root 1.88 else
7141 sf-exg 1.132 rxvt_cv_func_xlocale=no
7142 root 1.88 fi
7143 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7144     conftest.$ac_objext conftest.beam conftest.$ac_ext
7145 root 1.88 fi
7146 ayin 1.108
7147 root 1.88 fi
7148 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7149     $as_echo "$rxvt_cv_func_xlocale" >&6; }
7150 root 1.105 if test x$rxvt_cv_func_xlocale = xyes; then
7151 root 1.88
7152 sf-exg 1.132 $as_echo "#define USE_XIM 1" >>confdefs.h
7153 root 1.88
7154 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7155     $as_echo_n "checking for broken XIM callback... " >&6; }
7156 sf-exg 1.149 if ${rxvt_cv_broken_ximcb+:} false; then :
7157 sf-exg 1.132 $as_echo_n "(cached) " >&6
7158 ayin 1.111 else
7159 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160     /* end confdefs.h. */
7161 ayin 1.111
7162     #include <X11/Xlib.h>
7163    
7164     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7165    
7166     void f() {
7167     XIMCallback cb;
7168     cb.callback = im_destroy_cb;
7169     }
7170    
7171     _ACEOF
7172 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
7173 root 1.131 rxvt_cv_broken_ximcb=yes
7174 ayin 1.111 else
7175 sf-exg 1.132 rxvt_cv_broken_ximcb=no
7176 ayin 1.111 fi
7177     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178     fi
7179 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7180     $as_echo "$rxvt_cv_broken_ximcb" >&6; }
7181 ayin 1.111
7182 root 1.131 if test x$rxvt_cv_broken_ximcb = xyes; then
7183 ayin 1.111
7184 sf-exg 1.132 $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7185 ayin 1.111
7186     fi
7187 root 1.105 fi
7188 root 1.88 fi
7189    
7190 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7191     $as_echo_n "checking for working X setlocale... " >&6; }
7192 sf-exg 1.149 if ${rxvt_cv_func_xsetlocale+:} false; then :
7193 sf-exg 1.132 $as_echo_n "(cached) " >&6
7194 root 1.88 else
7195 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 root 1.88 /* end confdefs.h. */
7197     #define X_LOCALE 1
7198     #include <X11/Xlocale.h>
7199     int
7200     main ()
7201     {
7202     setlocale(LC_CTYPE, "");
7203     ;
7204     return 0;
7205     }
7206     _ACEOF
7207 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7208 root 1.88 rxvt_cv_func_xsetlocale=yes
7209     else
7210 sf-exg 1.132 rxvt_cv_func_xsetlocale=no
7211 root 1.88 fi
7212 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7213     conftest$ac_exeext conftest.$ac_ext
7214 root 1.88 fi
7215 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7216     $as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7217 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
7218    
7219 sf-exg 1.132 $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7220 root 1.88
7221     fi
7222 ayin 1.114 LIBS=$save_LIBS
7223     CFLAGS=$save_CFLAGS
7224 root 1.88
7225 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7226     $as_echo_n "checking for working plain setlocale... " >&6; }
7227 sf-exg 1.149 if ${rxvt_cv_func_setlocale+:} false; then :
7228 sf-exg 1.132 $as_echo_n "(cached) " >&6
7229 root 1.88 else
7230 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231 root 1.88 /* end confdefs.h. */
7232     #include <clocale>
7233     int
7234     main ()
7235     {
7236     setlocale(LC_CTYPE, "");
7237     ;
7238     return 0;
7239     }
7240     _ACEOF
7241 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7242 root 1.88 rxvt_cv_func_setlocale=yes
7243     else
7244 sf-exg 1.132 rxvt_cv_func_setlocale=no
7245 root 1.88 fi
7246 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7247     conftest$ac_exeext conftest.$ac_ext
7248 root 1.88 fi
7249 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7250     $as_echo "$rxvt_cv_func_setlocale" >&6; }
7251 root 1.88 if test x$rxvt_cv_func_setlocale = xyes; then
7252    
7253 sf-exg 1.132 $as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7254 root 1.88
7255     fi
7256    
7257 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7258     $as_echo_n "checking for working nl_langinfo... " >&6; }
7259 sf-exg 1.149 if ${rxvt_cv_func_nl_langinfo+:} false; then :
7260 sf-exg 1.132 $as_echo_n "(cached) " >&6
7261 root 1.88 else
7262 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 root 1.88 /* end confdefs.h. */
7264     #include <langinfo.h>
7265     int
7266     main ()
7267     {
7268     nl_langinfo(CODESET);
7269     ;
7270     return 0;
7271     }
7272     _ACEOF
7273 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7274 root 1.88 rxvt_cv_func_nl_langinfo=yes
7275     else
7276 sf-exg 1.132 rxvt_cv_func_nl_langinfo=no
7277 root 1.88 fi
7278 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7279     conftest$ac_exeext conftest.$ac_ext
7280 root 1.88 fi
7281 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7282     $as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7283 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
7284    
7285 sf-exg 1.132 $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7286 root 1.88
7287     fi
7288    
7289    
7290 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7291     $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7292 sf-exg 1.149 if ${pt_cv_can_pass_fds+:} false; then :
7293 sf-exg 1.132 $as_echo_n "(cached) " >&6
7294 root 1.88 else
7295 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296 root 1.88 /* end confdefs.h. */
7297    
7298 root 1.93 #include <cstddef> // broken bsds (is that redundant?) need this
7299 root 1.88 #include <sys/types.h>
7300     #include <sys/socket.h>
7301     #include <sys/uio.h>
7302    
7303     int
7304     main ()
7305     {
7306    
7307     {
7308     msghdr msg;
7309     iovec iov;
7310     char buf [100];
7311     char data = 0;
7312    
7313     iov.iov_base = &data;
7314     iov.iov_len = 1;
7315    
7316     msg.msg_iov = &iov;
7317     msg.msg_iovlen = 1;
7318     msg.msg_control = buf;
7319     msg.msg_controllen = sizeof buf;
7320    
7321     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7322     cmsg->cmsg_level = SOL_SOCKET;
7323     cmsg->cmsg_type = SCM_RIGHTS;
7324     cmsg->cmsg_len = 100;
7325    
7326     *(int *)CMSG_DATA (cmsg) = 5;
7327    
7328     return sendmsg (3, &msg, 0);
7329     }
7330    
7331     ;
7332     return 0;
7333     }
7334     _ACEOF
7335 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7336     pt_cv_can_pass_fds=yes
7337 root 1.88 else
7338 sf-exg 1.132 pt_cv_can_pass_fds=no
7339 root 1.88 fi
7340 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7341     conftest$ac_exeext conftest.$ac_ext
7342 pcg 1.11 fi
7343 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7344     $as_echo "$pt_cv_can_pass_fds" >&6; }
7345     if test x$pt_cv_can_pass_fds = xyes; then
7346 root 1.83
7347 sf-exg 1.132 $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7348 root 1.83
7349 sf-exg 1.132 else
7350 root 1.137 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7351 sf-exg 1.132 fi
7352 root 1.83
7353    
7354    
7355 sf-exg 1.132 for ac_header in \
7356     pty.h \
7357     util.h \
7358     libutil.h \
7359     sys/ioctl.h \
7360     sys/stropts.h \
7361     stropts.h \
7362 root 1.83
7363 sf-exg 1.132 do :
7364     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7365     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7366 root 1.137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7367 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
7368     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7369     _ACEOF
7370 root 1.94
7371 sf-exg 1.132 fi
7372 root 1.94
7373 sf-exg 1.132 done
7374 root 1.94
7375    
7376 root 1.88 for ac_func in \
7377     revoke \
7378     _getpty \
7379     getpt \
7380     posix_openpt \
7381     isastream \
7382 root 1.94 setuid \
7383     seteuid \
7384     setreuid \
7385     setresuid \
7386 root 1.83
7387 sf-exg 1.132 do :
7388     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7389     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7390 root 1.137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7391 root 1.88 cat >>confdefs.h <<_ACEOF
7392 sf-exg 1.132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7393 root 1.88 _ACEOF
7394    
7395     fi
7396     done
7397    
7398    
7399 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7400 sf-exg 1.132 $as_echo_n "checking for UNIX98 ptys... " >&6; }
7401 sf-exg 1.149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7402 root 1.83 /* end confdefs.h. */
7403 root 1.88 #include <stdlib.h>
7404 root 1.83 int
7405     main ()
7406     {
7407 root 1.88 grantpt(0);unlockpt(0);ptsname(0);
7408 root 1.83 ;
7409     return 0;
7410 root 1.31 }
7411     _ACEOF
7412 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7413 root 1.88 unix98_pty=yes
7414    
7415 sf-exg 1.132 $as_echo "#define UNIX98_PTY 1" >>confdefs.h
7416 root 1.88
7417 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7418 sf-exg 1.132 $as_echo "yes" >&6; }
7419 root 1.31 else
7420 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421     $as_echo "no" >&6; }
7422 root 1.31 fi
7423 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7424     conftest$ac_exeext conftest.$ac_ext
7425 root 1.31
7426 root 1.88 if test -z "$unix98_pty"; then
7427 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7428     $as_echo_n "checking for library containing openpty... " >&6; }
7429 sf-exg 1.149 if ${ac_cv_search_openpty+:} false; then :
7430 sf-exg 1.132 $as_echo_n "(cached) " >&6
7431 root 1.66 else
7432 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
7433 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 root 1.88 /* end confdefs.h. */
7435 root 1.87
7436 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7437     Use char because int might match the return type of a GCC
7438     builtin and then its argument prototype would still apply. */
7439 root 1.88 #ifdef __cplusplus
7440     extern "C"
7441     #endif
7442     char openpty ();
7443     int
7444     main ()
7445     {
7446 ayin 1.108 return openpty ();
7447 root 1.88 ;
7448     return 0;
7449 root 1.66 }
7450     _ACEOF
7451 sf-exg 1.133 for ac_lib in '' util; do
7452     if test -z "$ac_lib"; then
7453     ac_res="none required"
7454     else
7455     ac_res=-l$ac_lib
7456     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7457     fi
7458     if ac_fn_cxx_try_link "$LINENO"; then :
7459     ac_cv_search_openpty=$ac_res
7460 root 1.88 fi
7461 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7462 sf-exg 1.133 conftest$ac_exeext
7463 sf-exg 1.149 if ${ac_cv_search_openpty+:} false; then :
7464 sf-exg 1.133 break
7465     fi
7466     done
7467 sf-exg 1.149 if ${ac_cv_search_openpty+:} false; then :
7468 sf-exg 1.133
7469     else
7470     ac_cv_search_openpty=no
7471 root 1.66 fi
7472 sf-exg 1.133 rm conftest.$ac_ext
7473     LIBS=$ac_func_search_save_LIBS
7474 root 1.66 fi
7475 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7476     $as_echo "$ac_cv_search_openpty" >&6; }
7477     ac_res=$ac_cv_search_openpty
7478     if test "$ac_res" != no; then :
7479     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7480    
7481     $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7482 root 1.87
7483 root 1.88 fi
7484 pcg 1.1
7485     fi
7486    
7487    
7488 root 1.90
7489 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7490     $as_echo_n "checking for tty group... " >&6; }
7491 sf-exg 1.149 if ${pt_cv_tty_group+:} false; then :
7492 sf-exg 1.132 $as_echo_n "(cached) " >&6
7493 root 1.90 else
7494 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7495     pt_cv_tty_group=no
7496 root 1.90 else
7497 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 root 1.90 /* end confdefs.h. */
7499    
7500     #include <sys/types.h>
7501     #include <sys/stat.h>
7502     #include <unistd.h>
7503     #include <grp.h>
7504    
7505 sf-exg 1.144 int main()
7506 root 1.90 {
7507     struct stat st;
7508     struct group *gr;
7509     char *tty;
7510     gr = getgrnam("tty");
7511     tty = ttyname(0);
7512     if (gr != 0
7513     && tty != 0
7514     && (stat(tty, &st)) == 0
7515     && st.st_gid == gr->gr_gid)
7516     return 0;
7517     else
7518     return 1;
7519     }
7520     _ACEOF
7521 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7522     pt_cv_tty_group=yes
7523 root 1.90 else
7524 sf-exg 1.132 pt_cv_tty_group=no
7525 root 1.90 fi
7526 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7527     conftest.$ac_objext conftest.beam conftest.$ac_ext
7528 root 1.90 fi
7529 ayin 1.108
7530 root 1.90 fi
7531 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7532     $as_echo "$pt_cv_tty_group" >&6; }
7533     if test x$pt_cv_tty_group = xyes; then
7534 root 1.90
7535 sf-exg 1.132 $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7536 root 1.90
7537     fi
7538    
7539 sf-exg 1.138 if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then
7540     rxvt_have_xrender=no
7541     # Extract the first word of "pkg-config", so it can be a program name with args.
7542     set dummy pkg-config; ac_word=$2
7543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544     $as_echo_n "checking for $ac_word... " >&6; }
7545 sf-exg 1.149 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7546 sf-exg 1.138 $as_echo_n "(cached) " >&6
7547     else
7548     case $PKG_CONFIG in
7549     [\\/]* | ?:[\\/]*)
7550     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7551     ;;
7552     *)
7553     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554     for as_dir in $PATH
7555     do
7556     IFS=$as_save_IFS
7557     test -z "$as_dir" && as_dir=.
7558     for ac_exec_ext in '' $ac_executable_extensions; do
7559     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562     break 2
7563     fi
7564     done
7565     done
7566     IFS=$as_save_IFS
7567    
7568     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7569     ;;
7570     esac
7571     fi
7572     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7573     if test -n "$PKG_CONFIG"; then
7574     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7575     $as_echo "$PKG_CONFIG" >&6; }
7576     else
7577     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7578     $as_echo "no" >&6; }
7579     fi
7580    
7581    
7582     if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7583     X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
7584     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
7585     rxvt_have_xrender=yes
7586    
7587     save_LIBS="$LIBS"
7588     LIBS="$LIBS $X_LIBS"
7589     ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7590 sf-exg 1.149 if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
7591 sf-exg 1.138
7592     else
7593     rxvt_have_xrender=no
7594     fi
7595    
7596    
7597     ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7598 sf-exg 1.149 if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then :
7599 sf-exg 1.138
7600     else
7601     rxvt_have_xrender=no
7602     fi
7603    
7604     LIBS="$save_LIBS"
7605     fi
7606     fi
7607    
7608     if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7609 root 1.86 # Extract the first word of "pkg-config", so it can be a program name with args.
7610     set dummy pkg-config; ac_word=$2
7611 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612     $as_echo_n "checking for $ac_word... " >&6; }
7613 sf-exg 1.149 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7614 sf-exg 1.132 $as_echo_n "(cached) " >&6
7615 root 1.86 else
7616     case $PKG_CONFIG in
7617     [\\/]* | ?:[\\/]*)
7618     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7619     ;;
7620     *)
7621     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622     for as_dir in $PATH
7623     do
7624     IFS=$as_save_IFS
7625     test -z "$as_dir" && as_dir=.
7626 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7627 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 root 1.86 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7629 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 root 1.86 break 2
7631     fi
7632     done
7633 sf-exg 1.132 done
7634 ayin 1.108 IFS=$as_save_IFS
7635 root 1.86
7636     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7637     ;;
7638     esac
7639     fi
7640     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7641     if test -n "$PKG_CONFIG"; then
7642 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7643     $as_echo "$PKG_CONFIG" >&6; }
7644 root 1.86 else
7645 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646     $as_echo "no" >&6; }
7647 root 1.86 fi
7648    
7649 ayin 1.108
7650 root 1.90 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7651 root 1.117 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7652 root 1.90 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7653     else
7654     # Extract the first word of "xft-config", so it can be a program name with args.
7655 root 1.86 set dummy xft-config; ac_word=$2
7656 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7657     $as_echo_n "checking for $ac_word... " >&6; }
7658 sf-exg 1.149 if ${ac_cv_path_XFT_CONFIG+:} false; then :
7659 sf-exg 1.132 $as_echo_n "(cached) " >&6
7660 root 1.86 else
7661     case $XFT_CONFIG in
7662     [\\/]* | ?:[\\/]*)
7663     ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7664     ;;
7665     *)
7666     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667     for as_dir in $PATH
7668     do
7669     IFS=$as_save_IFS
7670     test -z "$as_dir" && as_dir=.
7671 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7672 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673 root 1.86 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7674 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 root 1.86 break 2
7676     fi
7677     done
7678 sf-exg 1.132 done
7679 ayin 1.108 IFS=$as_save_IFS
7680 root 1.86
7681     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7682     ;;
7683     esac
7684     fi
7685     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7686     if test -n "$XFT_CONFIG"; then
7687 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7688     $as_echo "$XFT_CONFIG" >&6; }
7689 root 1.86 else
7690 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691     $as_echo "no" >&6; }
7692 root 1.86 fi
7693    
7694 ayin 1.108
7695 root 1.86 if test $XFT_CONFIG != no; then
7696 root 1.117 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7697 root 1.86 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7698     fi
7699     fi
7700 root 1.34
7701 sf-exg 1.138 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7702     X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7703     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7704     fi
7705    
7706 root 1.118 save_LIBS="$LIBS"
7707     LIBS="$LIBS $X_LIBS"
7708 sf-exg 1.132 for ac_header in X11/Xft/Xft.h
7709     do :
7710     ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7711 sf-exg 1.149 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
7712 root 1.39 cat >>confdefs.h <<_ACEOF
7713 sf-exg 1.132 #define HAVE_X11_XFT_XFT_H 1
7714 pcg 1.11 _ACEOF
7715 pcg 1.1
7716 root 1.39 else
7717     support_xft=no
7718 pcg 1.1 fi
7719 pcg 1.11
7720 root 1.39 done
7721 pcg 1.1
7722 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7723     $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7724 sf-exg 1.149 if ${ac_cv_lib_Xft_XftDrawString32+:} false; then :
7725 sf-exg 1.132 $as_echo_n "(cached) " >&6
7726 root 1.39 else
7727     ac_check_lib_save_LIBS=$LIBS
7728     LIBS="-lXft $LIBS"
7729 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7730 root 1.39 /* end confdefs.h. */
7731    
7732 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7733     Use char because int might match the return type of a GCC
7734     builtin and then its argument prototype would still apply. */
7735 root 1.39 #ifdef __cplusplus
7736     extern "C"
7737     #endif
7738     char XftDrawString32 ();
7739     int
7740     main ()
7741     {
7742 ayin 1.108 return XftDrawString32 ();
7743 root 1.39 ;
7744     return 0;
7745     }
7746     _ACEOF
7747 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7748 root 1.39 ac_cv_lib_Xft_XftDrawString32=yes
7749     else
7750 sf-exg 1.132 ac_cv_lib_Xft_XftDrawString32=no
7751 root 1.39 fi
7752 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7753     conftest$ac_exeext conftest.$ac_ext
7754 root 1.39 LIBS=$ac_check_lib_save_LIBS
7755     fi
7756 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7757     $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7758 sf-exg 1.149 if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then :
7759 root 1.118 :
7760 root 1.39 else
7761     support_xft=no
7762     fi
7763    
7764 sf-exg 1.138 for ac_header in fontconfig/fontconfig.h
7765     do :
7766     ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7767 sf-exg 1.149 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
7768 sf-exg 1.138 cat >>confdefs.h <<_ACEOF
7769     #define HAVE_FONTCONFIG_FONTCONFIG_H 1
7770     _ACEOF
7771 root 1.39
7772 sf-exg 1.138 else
7773     support_xft=no
7774     fi
7775 root 1.39
7776 sf-exg 1.138 done
7777 root 1.39
7778 sf-exg 1.138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7779     $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7780 sf-exg 1.149 if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then :
7781 sf-exg 1.136 $as_echo_n "(cached) " >&6
7782     else
7783 sf-exg 1.138 ac_check_lib_save_LIBS=$LIBS
7784     LIBS="-lfontconfig $LIBS"
7785     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786     /* end confdefs.h. */
7787 sf-exg 1.136
7788 sf-exg 1.138 /* Override any GCC internal prototype to avoid an error.
7789     Use char because int might match the return type of a GCC
7790     builtin and then its argument prototype would still apply. */
7791     #ifdef __cplusplus
7792     extern "C"
7793     #endif
7794     char FcPatternGet ();
7795     int
7796     main ()
7797     {
7798     return FcPatternGet ();
7799     ;
7800     return 0;
7801     }
7802     _ACEOF
7803     if ac_fn_cxx_try_link "$LINENO"; then :
7804     ac_cv_lib_fontconfig_FcPatternGet=yes
7805 sf-exg 1.136 else
7806 sf-exg 1.138 ac_cv_lib_fontconfig_FcPatternGet=no
7807 sf-exg 1.136 fi
7808 sf-exg 1.138 rm -f core conftest.err conftest.$ac_objext \
7809     conftest$ac_exeext conftest.$ac_ext
7810     LIBS=$ac_check_lib_save_LIBS
7811 sf-exg 1.136 fi
7812 sf-exg 1.138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7813     $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7814 sf-exg 1.149 if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then :
7815 sf-exg 1.138 :
7816 sf-exg 1.136 else
7817 sf-exg 1.138 support_xft=no
7818 sf-exg 1.136 fi
7819    
7820 sf-exg 1.138 LIBS="$save_LIBS"
7821 sf-exg 1.136
7822 sf-exg 1.138 if test x$support_xft = xyes; then
7823 sf-exg 1.136
7824 sf-exg 1.138 $as_echo "#define XFT 1" >>confdefs.h
7825 sf-exg 1.136
7826     fi
7827     fi
7828 root 1.39 if test x$support_styles = xyes; then
7829    
7830 sf-exg 1.132 $as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7831 root 1.39
7832     fi
7833     if test x$support_iso14755 = xyes; then
7834    
7835 sf-exg 1.132 $as_echo "#define ISO_14755 1" >>confdefs.h
7836 root 1.39
7837     fi
7838     if test x$support_8bitctrls = xyes; then
7839    
7840 sf-exg 1.132 $as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7841 root 1.39
7842     fi
7843     if test x$support_fading = xyes; then
7844    
7845 sf-exg 1.132 $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7846 root 1.39
7847     fi
7848     if test x$support_inheritpixmap = xyes; then
7849 sf-exg 1.138 if test x$rxvt_have_xrender = xyes; then
7850     LIBS="$LIBS -lm"
7851    
7852     $as_echo "#define XRENDER 1" >>confdefs.h
7853    
7854     fi
7855 root 1.39
7856 sf-exg 1.132 $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7857 root 1.39
7858     fi
7859     if test x$support_keepscrolling = xno; then
7860    
7861 sf-exg 1.132 $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7862 root 1.39
7863     fi
7864     if test x$support_selectionscrolling = xyes; then
7865    
7866 sf-exg 1.132 $as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
7867 root 1.39
7868     fi
7869 ayin 1.111 if test x$support_frills = xyes; then
7870    
7871 sf-exg 1.132 $as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
7872 ayin 1.111
7873     fi
7874 pcg 1.1 if test x$support_mousewheel = xyes; then
7875 pcg 1.11
7876 sf-exg 1.132 $as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
7877 pcg 1.1
7878     fi
7879     if test x$support_mouseslipwheel = xyes; then
7880 pcg 1.11
7881 sf-exg 1.132 $as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7882 pcg 1.1
7883     fi
7884 root 1.103
7885 ayin 1.126 scrolltypes=plain
7886    
7887 sf-exg 1.132 $as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7888 ayin 1.126
7889    
7890 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
7891 pcg 1.11
7892 sf-exg 1.132 $as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
7893 pcg 1.1
7894 ayin 1.126 scrolltypes="$scrolltypes rxvt"
7895 pcg 1.1 fi
7896     if test x$support_scroll_next = xyes; then
7897 pcg 1.11
7898 sf-exg 1.132 $as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
7899 pcg 1.1
7900     scrolltypes="$scrolltypes next"
7901     fi
7902     if test x$support_scroll_xterm = xyes; then
7903 pcg 1.11
7904 sf-exg 1.132 $as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
7905 pcg 1.1
7906     scrolltypes="$scrolltypes xterm"
7907     fi
7908     if test x$support_pointer_blank = xyes; then
7909 pcg 1.11
7910 sf-exg 1.132 $as_echo "#define POINTER_BLANK 1" >>confdefs.h
7911 pcg 1.1
7912     fi
7913 pcg 1.11 if test x$support_text_blink = xyes; then
7914    
7915 sf-exg 1.132 $as_echo "#define TEXT_BLINK 1" >>confdefs.h
7916 pcg 1.1
7917     fi
7918     if test x$support_unicode3 = xyes; then
7919 pcg 1.11
7920 sf-exg 1.132 $as_echo "#define UNICODE_3 1" >>confdefs.h
7921 pcg 1.1
7922     fi
7923 pcg 1.18 if test x$support_combining = xyes; then
7924    
7925 sf-exg 1.132 $as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
7926 pcg 1.18
7927     fi
7928 pcg 1.1 if test x$codesets = xall; then
7929 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
7930 pcg 1.1 fi
7931 pcg 1.11
7932 sf-exg 1.132 $as_echo "#define ENCODING_EU 1" >>confdefs.h
7933 pcg 1.1
7934 pcg 1.13
7935 sf-exg 1.132 $as_echo "#define ENCODING_VN 1" >>confdefs.h
7936 pcg 1.13
7937 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7938 pcg 1.13 case "$codeset" in
7939 pcg 1.11 JP )
7940 sf-exg 1.132 $as_echo "#define ENCODING_JP 1" >>confdefs.h
7941 pcg 1.1 ;;
7942 pcg 1.11 JP_EXT )
7943 sf-exg 1.132 $as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
7944 pcg 1.1 ;;
7945 pcg 1.11 KR )
7946 sf-exg 1.132 $as_echo "#define ENCODING_KR 1" >>confdefs.h
7947 pcg 1.1 ;;
7948 root 1.40 ZH )
7949 sf-exg 1.132 $as_echo "#define ENCODING_ZH 1" >>confdefs.h
7950 pcg 1.1 ;;
7951 root 1.40 ZH_EXT )
7952 sf-exg 1.132 $as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
7953 pcg 1.1 ;;
7954     esac
7955     done
7956    
7957 root 1.60 IF_PERL=\#
7958     if test x$support_perl = xyes; then
7959     # Extract the first word of "perl5", so it can be a program name with args.
7960     set dummy perl5; ac_word=$2
7961 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962     $as_echo_n "checking for $ac_word... " >&6; }
7963 sf-exg 1.149 if ${ac_cv_path_PERL+:} false; then :
7964 sf-exg 1.132 $as_echo_n "(cached) " >&6
7965 root 1.60 else
7966     case $PERL in
7967     [\\/]* | ?:[\\/]*)
7968     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7969     ;;
7970     *)
7971     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972     for as_dir in $PATH
7973     do
7974     IFS=$as_save_IFS
7975     test -z "$as_dir" && as_dir=.
7976 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7977 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7979 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 root 1.60 break 2
7981     fi
7982     done
7983 sf-exg 1.132 done
7984 ayin 1.108 IFS=$as_save_IFS
7985 root 1.60
7986     ;;
7987     esac
7988     fi
7989     PERL=$ac_cv_path_PERL
7990     if test -n "$PERL"; then
7991 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7992     $as_echo "$PERL" >&6; }
7993 root 1.60 else
7994 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995     $as_echo "no" >&6; }
7996 root 1.60 fi
7997    
7998 ayin 1.108
7999 root 1.60 # Extract the first word of "perl", so it can be a program name with args.
8000     set dummy perl; ac_word=$2
8001 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002     $as_echo_n "checking for $ac_word... " >&6; }
8003 sf-exg 1.149 if ${ac_cv_path_PERL+:} false; then :
8004 sf-exg 1.132 $as_echo_n "(cached) " >&6
8005 root 1.60 else
8006     case $PERL in
8007     [\\/]* | ?:[\\/]*)
8008     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8009     ;;
8010     *)
8011     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012     for as_dir in $PATH
8013     do
8014     IFS=$as_save_IFS
8015     test -z "$as_dir" && as_dir=.
8016 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
8017 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8019 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 root 1.60 break 2
8021     fi
8022     done
8023 sf-exg 1.132 done
8024 ayin 1.108 IFS=$as_save_IFS
8025 root 1.60
8026     ;;
8027     esac
8028     fi
8029     PERL=$ac_cv_path_PERL
8030     if test -n "$PERL"; then
8031 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8032     $as_echo "$PERL" >&6; }
8033 root 1.60 else
8034 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035     $as_echo "no" >&6; }
8036 root 1.60 fi
8037    
8038    
8039 ayin 1.108
8040 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
8041     $as_echo_n "checking for $PERL suitability... " >&6; }
8042 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
8043    
8044 root 1.62 save_CXXFLAGS="$CXXFLAGS"
8045     save_LIBS="$LIBS"
8046     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
8047     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
8048 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 root 1.62 /* end confdefs.h. */
8050    
8051     #include <EXTERN.h>
8052     #include <perl.h>
8053     #include <XSUB.h>
8054    
8055     int
8056     main ()
8057     {
8058    
8059     PerlInterpreter *perl = perl_alloc ();
8060    
8061     ;
8062     return 0;
8063     }
8064     _ACEOF
8065 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
8066 root 1.62 rxvt_perl_link=yes
8067     else
8068 sf-exg 1.132 rxvt_perl_link=no
8069 root 1.62 fi
8070 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
8071     conftest$ac_exeext conftest.$ac_ext
8072 root 1.62 CXXFLAGS="$save_CXXFLAGS"
8073     LIBS="$save_LIBS"
8074    
8075     if test x$rxvt_perl_link = xyes; then
8076 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8077     $as_echo "ok" >&6; }
8078 root 1.62
8079 sf-exg 1.132 $as_echo "#define ENABLE_PERL 1" >>confdefs.h
8080 root 1.60
8081 root 1.62 IF_PERL=
8082     PERL_O=rxvtperl.o
8083     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
8084     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
8085     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
8086     else
8087 root 1.137 as_fn_error $? "no, unable to link" "$LINENO" 5
8088 root 1.62 fi
8089 root 1.60 else
8090 root 1.137 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
8091 root 1.60 fi
8092     fi
8093    
8094    
8095    
8096    
8097    
8098    
8099    
8100 pcg 1.1
8101 ayin 1.124 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
8102 root 1.32
8103 pcg 1.11 cat >confcache <<\_ACEOF
8104 pcg 1.1 # This file is a shell script that caches the results of configure
8105     # tests run on this system so they can be shared between configure
8106 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
8107     # It is not useful on other systems. If it contains results you don't
8108     # want to keep, you may remove or edit it.
8109 pcg 1.1 #
8110 pcg 1.11 # config.status only pays attention to the cache file if you give it
8111     # the --recheck option to rerun configure.
8112 pcg 1.1 #
8113 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8114     # loading this file, other *unset* `ac_cv_foo' will be assigned the
8115     # following values.
8116    
8117     _ACEOF
8118    
8119 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
8120     # but we know of no workaround that is simple, portable, and efficient.
8121 ayin 1.108 # So, we kill variables containing newlines.
8122 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
8123     # and sets the high bit in the cache file unless we assign to the vars.
8124 ayin 1.108 (
8125     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8126     eval ac_val=\$$ac_var
8127     case $ac_val in #(
8128     *${as_nl}*)
8129     case $ac_var in #(
8130 sf-exg 1.132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8131     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8132 ayin 1.108 esac
8133     case $ac_var in #(
8134     _ | IFS | as_nl) ;; #(
8135 sf-exg 1.132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8136     *) { eval $ac_var=; unset $ac_var;} ;;
8137 ayin 1.108 esac ;;
8138     esac
8139     done
8140    
8141 pcg 1.11 (set) 2>&1 |
8142 ayin 1.108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8143     *${as_nl}ac_space=\ *)
8144 sf-exg 1.132 # `set' does not quote correctly, so add quotes: double-quote
8145     # substitution turns \\\\ into \\, and sed turns \\ into \.
8146 pcg 1.11 sed -n \
8147     "s/'/'\\\\''/g;
8148     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8149 ayin 1.108 ;; #(
8150 pcg 1.11 *)
8151     # `set' quotes correctly as required by POSIX, so do not add quotes.
8152 ayin 1.108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8153 pcg 1.11 ;;
8154 ayin 1.108 esac |
8155     sort
8156     ) |
8157 pcg 1.11 sed '
8158 ayin 1.108 /^ac_cv_env_/b end
8159 pcg 1.11 t clear
8160 ayin 1.108 :clear
8161 pcg 1.11 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8162     t end
8163 ayin 1.108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8164     :end' >>confcache
8165     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8166     if test -w "$cache_file"; then
8167 sf-exg 1.149 if test "x$cache_file" != "x/dev/null"; then
8168 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8169     $as_echo "$as_me: updating cache $cache_file" >&6;}
8170 sf-exg 1.149 if test ! -f "$cache_file" || test -h "$cache_file"; then
8171     cat confcache >"$cache_file"
8172     else
8173     case $cache_file in #(
8174     */* | ?:*)
8175     mv -f confcache "$cache_file"$$ &&
8176     mv -f "$cache_file"$$ "$cache_file" ;; #(
8177     *)
8178     mv -f confcache "$cache_file" ;;
8179     esac
8180     fi
8181     fi
8182 pcg 1.1 else
8183 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8184     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8185 pcg 1.1 fi
8186     fi
8187     rm -f confcache
8188    
8189     test "x$prefix" = xNONE && prefix=$ac_default_prefix
8190     # Let make expand exec_prefix.
8191     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8192    
8193 pcg 1.11 DEFS=-DHAVE_CONFIG_H
8194    
8195     ac_libobjs=
8196     ac_ltlibobjs=
8197 root 1.137 U=
8198 pcg 1.11 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8199     # 1. Remove the extension, and $U if already installed.
8200 ayin 1.108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8201 sf-exg 1.132 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8202 ayin 1.108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8203     # will be set to the directory where LIBOBJS objects are built.
8204 sf-exg 1.132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8205     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8206 pcg 1.11 done
8207     LIBOBJS=$ac_libobjs
8208    
8209     LTLIBOBJS=$ac_ltlibobjs
8210    
8211 pcg 1.1
8212    
8213 sf-exg 1.149 : "${CONFIG_STATUS=./config.status}"
8214 sf-exg 1.132 ac_write_fail=0
8215 pcg 1.11 ac_clean_files_save=$ac_clean_files
8216     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8217 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8218     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8219     as_write_fail=0
8220     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8221 pcg 1.11 #! $SHELL
8222     # Generated by $as_me.
8223 pcg 1.1 # Run this file to recreate the current configuration.
8224     # Compiler output produced by configure, useful for debugging
8225 pcg 1.11 # configure, is in config.log if it exists.
8226    
8227     debug=false
8228     ac_cs_recheck=false
8229     ac_cs_silent=false
8230 sf-exg 1.132
8231 pcg 1.11 SHELL=\${CONFIG_SHELL-$SHELL}
8232 sf-exg 1.132 export SHELL
8233     _ASEOF
8234     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8235     ## -------------------- ##
8236     ## M4sh Initialization. ##
8237     ## -------------------- ##
8238 pcg 1.11
8239 ayin 1.108 # Be more Bourne compatible
8240     DUALCASE=1; export DUALCASE # for MKS sh
8241 sf-exg 1.132 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8242 pcg 1.11 emulate sh
8243     NULLCMD=:
8244 sf-exg 1.132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8245 pcg 1.11 # is contrary to our usage. Disable this feature.
8246     alias -g '${1+"$@"}'='"$@"'
8247 ayin 1.108 setopt NO_GLOB_SUBST
8248     else
8249 sf-exg 1.132 case `(set -o) 2>/dev/null` in #(
8250     *posix*) :
8251     set -o posix ;; #(
8252     *) :
8253     ;;
8254 ayin 1.108 esac
8255     fi
8256    
8257    
8258 sf-exg 1.132 as_nl='
8259     '
8260     export as_nl
8261     # Printing a long string crashes Solaris 7 /usr/bin/printf.
8262     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8263     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8264     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8265     # Prefer a ksh shell builtin over an external printf program on Solaris,
8266     # but without wasting forks for bash or zsh.
8267     if test -z "$BASH_VERSION$ZSH_VERSION" \
8268     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8269     as_echo='print -r --'
8270     as_echo_n='print -rn --'
8271     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8272     as_echo='printf %s\n'
8273     as_echo_n='printf %s'
8274     else
8275     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8276     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8277     as_echo_n='/usr/ucb/echo -n'
8278 ayin 1.108 else
8279 sf-exg 1.132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8280     as_echo_n_body='eval
8281     arg=$1;
8282     case $arg in #(
8283     *"$as_nl"*)
8284     expr "X$arg" : "X\\(.*\\)$as_nl";
8285     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8286     esac;
8287     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8288     '
8289     export as_echo_n_body
8290     as_echo_n='sh -c $as_echo_n_body as_echo'
8291 ayin 1.108 fi
8292 sf-exg 1.132 export as_echo_body
8293     as_echo='sh -c $as_echo_body as_echo'
8294 ayin 1.106 fi
8295    
8296 sf-exg 1.132 # The user is always right.
8297     if test "${PATH_SEPARATOR+set}" != set; then
8298     PATH_SEPARATOR=:
8299     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8300     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8301     PATH_SEPARATOR=';'
8302     }
8303 pcg 1.11 fi
8304    
8305    
8306 ayin 1.108 # IFS
8307     # We need space, tab and new line, in precisely that order. Quoting is
8308     # there to prevent editors from complaining about space-tab.
8309     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8310     # splitting by setting IFS to empty value.)
8311     IFS=" "" $as_nl"
8312    
8313     # Find who we are. Look in the path if we contain no directory separator.
8314 sf-exg 1.149 as_myself=
8315 sf-exg 1.132 case $0 in #((
8316 ayin 1.108 *[\\/]* ) as_myself=$0 ;;
8317     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318     for as_dir in $PATH
8319     do
8320     IFS=$as_save_IFS
8321     test -z "$as_dir" && as_dir=.
8322 sf-exg 1.132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8323     done
8324 ayin 1.108 IFS=$as_save_IFS
8325    
8326     ;;
8327     esac
8328     # We did not find ourselves, most probably we were run as `sh COMMAND'
8329     # in which case we are not to be found in the path.
8330     if test "x$as_myself" = x; then
8331     as_myself=$0
8332     fi
8333     if test ! -f "$as_myself"; then
8334 sf-exg 1.132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8335     exit 1
8336 ayin 1.108 fi
8337    
8338 sf-exg 1.132 # Unset variables that we do not need and which cause bugs (e.g. in
8339     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8340     # suppresses any "Segmentation fault" message there. '((' could
8341     # trigger a bug in pdksh 5.2.14.
8342     for as_var in BASH_ENV ENV MAIL MAILPATH
8343     do eval test x\${$as_var+set} = xset \
8344     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8345 ayin 1.108 done
8346 ayin 1.106 PS1='$ '
8347     PS2='> '
8348 root 1.105 PS4='+ '
8349    
8350     # NLS nuisances.
8351 sf-exg 1.132 LC_ALL=C
8352     export LC_ALL
8353     LANGUAGE=C
8354     export LANGUAGE
8355    
8356     # CDPATH.
8357     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8358    
8359    
8360 root 1.137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8361     # ----------------------------------------
8362 sf-exg 1.132 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8363     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8364 root 1.137 # script with STATUS, using 1 if that was 0.
8365 sf-exg 1.132 as_fn_error ()
8366     {
8367 root 1.137 as_status=$1; test $as_status -eq 0 && as_status=1
8368     if test "$4"; then
8369     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8370     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8371 sf-exg 1.132 fi
8372 root 1.137 $as_echo "$as_me: error: $2" >&2
8373 sf-exg 1.132 as_fn_exit $as_status
8374     } # as_fn_error
8375    
8376    
8377     # as_fn_set_status STATUS
8378     # -----------------------
8379     # Set $? to STATUS, without forking.
8380     as_fn_set_status ()
8381     {
8382     return $1
8383     } # as_fn_set_status
8384    
8385     # as_fn_exit STATUS
8386     # -----------------
8387     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8388     as_fn_exit ()
8389     {
8390     set +e
8391     as_fn_set_status $1
8392     exit $1
8393     } # as_fn_exit
8394    
8395     # as_fn_unset VAR
8396     # ---------------
8397     # Portably unset VAR.
8398     as_fn_unset ()
8399     {
8400     { eval $1=; unset $1;}
8401     }
8402     as_unset=as_fn_unset
8403     # as_fn_append VAR VALUE
8404     # ----------------------
8405     # Append the text in VALUE to the end of the definition contained in VAR. Take
8406     # advantage of any shell optimizations that allow amortized linear growth over
8407     # repeated appends, instead of the typical quadratic growth present in naive
8408     # implementations.
8409     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8410     eval 'as_fn_append ()
8411     {
8412     eval $1+=\$2
8413     }'
8414     else
8415     as_fn_append ()
8416     {
8417     eval $1=\$$1\$2
8418     }
8419     fi # as_fn_append
8420    
8421     # as_fn_arith ARG...
8422     # ------------------
8423     # Perform arithmetic evaluation on the ARGs, and store the result in the
8424     # global $as_val. Take advantage of shells that can avoid forks. The arguments
8425     # must be portable across $(()) and expr.
8426     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8427     eval 'as_fn_arith ()
8428     {
8429     as_val=$(( $* ))
8430     }'
8431     else
8432     as_fn_arith ()
8433     {
8434     as_val=`expr "$@" || test $? -eq 1`
8435     }
8436     fi # as_fn_arith
8437    
8438 root 1.105
8439 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
8440     test "X`expr 00001 : '.*\(...\)'`" = X001; then
8441 root 1.105 as_expr=expr
8442     else
8443     as_expr=false
8444     fi
8445    
8446 ayin 1.108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8447 root 1.105 as_basename=basename
8448     else
8449     as_basename=false
8450     fi
8451    
8452 sf-exg 1.132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8453     as_dirname=dirname
8454     else
8455     as_dirname=false
8456     fi
8457 root 1.105
8458 ayin 1.108 as_me=`$as_basename -- "$0" ||
8459 root 1.105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8460     X"$0" : 'X\(//\)$' \| \
8461 ayin 1.108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8462 sf-exg 1.132 $as_echo X/"$0" |
8463 ayin 1.108 sed '/^.*\/\([^/][^/]*\)\/*$/{
8464     s//\1/
8465     q
8466     }
8467     /^X\/\(\/\/\)$/{
8468     s//\1/
8469     q
8470     }
8471     /^X\/\(\/\).*/{
8472     s//\1/
8473     q
8474     }
8475     s/.*/./; q'`
8476    
8477 sf-exg 1.132 # Avoid depending upon Character Ranges.
8478     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8479     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8480     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8481     as_cr_digits='0123456789'
8482     as_cr_alnum=$as_cr_Letters$as_cr_digits
8483 ayin 1.108
8484     ECHO_C= ECHO_N= ECHO_T=
8485 sf-exg 1.132 case `echo -n x` in #(((((
8486 ayin 1.108 -n*)
8487 sf-exg 1.132 case `echo 'xy\c'` in
8488 ayin 1.108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8489 sf-exg 1.132 xy) ECHO_C='\c';;
8490     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8491     ECHO_T=' ';;
8492 ayin 1.108 esac;;
8493     *)
8494     ECHO_N='-n';;
8495 pcg 1.11 esac
8496    
8497     rm -f conf$$ conf$$.exe conf$$.file
8498 ayin 1.108 if test -d conf$$.dir; then
8499     rm -f conf$$.dir/conf$$.file
8500     else
8501     rm -f conf$$.dir
8502 sf-exg 1.132 mkdir conf$$.dir 2>/dev/null
8503 ayin 1.108 fi
8504 sf-exg 1.132 if (echo >conf$$.file) 2>/dev/null; then
8505     if ln -s conf$$.file conf$$ 2>/dev/null; then
8506     as_ln_s='ln -s'
8507     # ... but there are two gotchas:
8508     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8509     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8510     # In both cases, we have to default to `cp -p'.
8511     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8512     as_ln_s='cp -p'
8513     elif ln conf$$.file conf$$ 2>/dev/null; then
8514     as_ln_s=ln
8515     else
8516 pcg 1.11 as_ln_s='cp -p'
8517 sf-exg 1.132 fi
8518 pcg 1.11 else
8519     as_ln_s='cp -p'
8520     fi
8521 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8522     rmdir conf$$.dir 2>/dev/null
8523 pcg 1.11
8524 sf-exg 1.132
8525     # as_fn_mkdir_p
8526     # -------------
8527     # Create "$as_dir" as a directory, including parents if necessary.
8528     as_fn_mkdir_p ()
8529     {
8530    
8531     case $as_dir in #(
8532     -*) as_dir=./$as_dir;;
8533     esac
8534     test -d "$as_dir" || eval $as_mkdir_p || {
8535     as_dirs=
8536     while :; do
8537     case $as_dir in #(
8538     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8539     *) as_qdir=$as_dir;;
8540     esac
8541     as_dirs="'$as_qdir' $as_dirs"
8542     as_dir=`$as_dirname -- "$as_dir" ||
8543     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8544     X"$as_dir" : 'X\(//\)[^/]' \| \
8545     X"$as_dir" : 'X\(//\)$' \| \
8546     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8547     $as_echo X"$as_dir" |
8548     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8549     s//\1/
8550     q
8551     }
8552     /^X\(\/\/\)[^/].*/{
8553     s//\1/
8554     q
8555     }
8556     /^X\(\/\/\)$/{
8557     s//\1/
8558     q
8559     }
8560     /^X\(\/\).*/{
8561     s//\1/
8562     q
8563     }
8564     s/.*/./; q'`
8565     test -d "$as_dir" && break
8566     done
8567     test -z "$as_dirs" || eval "mkdir $as_dirs"
8568 root 1.137 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8569 sf-exg 1.132
8570    
8571     } # as_fn_mkdir_p
8572 pcg 1.11 if mkdir -p . 2>/dev/null; then
8573 sf-exg 1.132 as_mkdir_p='mkdir -p "$as_dir"'
8574 pcg 1.11 else
8575     test -d ./-p && rmdir ./-p
8576     as_mkdir_p=false
8577     fi
8578    
8579 ayin 1.108 if test -x / >/dev/null 2>&1; then
8580     as_test_x='test -x'
8581     else
8582     if ls -dL / >/dev/null 2>&1; then
8583     as_ls_L_option=L
8584     else
8585     as_ls_L_option=
8586     fi
8587     as_test_x='
8588     eval sh -c '\''
8589     if test -d "$1"; then
8590 sf-exg 1.132 test -d "$1/.";
8591 ayin 1.108 else
8592 sf-exg 1.132 case $1 in #(
8593     -*)set "./$1";;
8594 ayin 1.108 esac;
8595 sf-exg 1.132 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8596 ayin 1.108 ???[sx]*):;;*)false;;esac;fi
8597     '\'' sh
8598     '
8599     fi
8600     as_executable_p=$as_test_x
8601 pcg 1.11
8602     # Sed expression to map a string onto a valid CPP name.
8603     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8604    
8605     # Sed expression to map a string onto a valid variable name.
8606     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8607    
8608    
8609     exec 6>&1
8610 sf-exg 1.132 ## ----------------------------------- ##
8611     ## Main body of $CONFIG_STATUS script. ##
8612     ## ----------------------------------- ##
8613     _ASEOF
8614     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8615 pcg 1.11
8616 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8617     # Save the log message, to keep $0 and so on meaningful, and to
8618 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
8619 ayin 1.108 # values after options handling.
8620     ac_log="
8621 pcg 1.11 This file was extended by $as_me, which was
8622 sf-exg 1.149 generated by GNU Autoconf 2.68. Invocation command line was
8623 pcg 1.11
8624     CONFIG_FILES = $CONFIG_FILES
8625     CONFIG_HEADERS = $CONFIG_HEADERS
8626     CONFIG_LINKS = $CONFIG_LINKS
8627     CONFIG_COMMANDS = $CONFIG_COMMANDS
8628     $ $0 $@
8629    
8630 ayin 1.108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8631     "
8632    
8633 pcg 1.11 _ACEOF
8634    
8635 sf-exg 1.132 case $ac_config_files in *"
8636     "*) set x $ac_config_files; shift; ac_config_files=$*;;
8637     esac
8638    
8639     case $ac_config_headers in *"
8640     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8641     esac
8642    
8643    
8644     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8645 pcg 1.11 # Files that config.status was made for.
8646 ayin 1.108 config_files="$ac_config_files"
8647     config_headers="$ac_config_headers"
8648 ayin 1.106
8649 ayin 1.108 _ACEOF
8650 pcg 1.11
8651 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8652 pcg 1.11 ac_cs_usage="\
8653 sf-exg 1.132 \`$as_me' instantiates files and other configuration actions
8654     from templates according to the current configuration. Unless the files
8655     and actions are specified as TAGs, all are instantiated by default.
8656 pcg 1.11
8657 sf-exg 1.132 Usage: $0 [OPTION]... [TAG]...
8658 pcg 1.11
8659     -h, --help print this help, then exit
8660 ayin 1.108 -V, --version print version number and configuration settings, then exit
8661 sf-exg 1.132 --config print configuration, then exit
8662     -q, --quiet, --silent
8663     do not print progress messages
8664 pcg 1.11 -d, --debug don't remove temporary files
8665     --recheck update $as_me by reconfiguring in the same conditions
8666 sf-exg 1.132 --file=FILE[:TEMPLATE]
8667     instantiate the configuration file FILE
8668     --header=FILE[:TEMPLATE]
8669     instantiate the configuration header FILE
8670 pcg 1.11
8671     Configuration files:
8672     $config_files
8673    
8674     Configuration headers:
8675     $config_headers
8676    
8677 sf-exg 1.132 Report bugs to the package provider."
8678 ayin 1.108
8679 ayin 1.106 _ACEOF
8680 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8681     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8682 pcg 1.11 ac_cs_version="\\
8683     config.status
8684 sf-exg 1.149 configured by $0, generated by GNU Autoconf 2.68,
8685 sf-exg 1.132 with options \\"\$ac_cs_config\\"
8686 pcg 1.11
8687 root 1.137 Copyright (C) 2010 Free Software Foundation, Inc.
8688 pcg 1.11 This config.status script is free software; the Free Software Foundation
8689     gives unlimited permission to copy, distribute and modify it."
8690 ayin 1.108
8691     ac_pwd='$ac_pwd'
8692     srcdir='$srcdir'
8693     INSTALL='$INSTALL'
8694 sf-exg 1.132 test -n "\$AWK" || AWK=awk
8695 pcg 1.11 _ACEOF
8696    
8697 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8698     # The default lists apply if the user does not specify any file.
8699 pcg 1.11 ac_need_defaults=:
8700     while test $# != 0
8701 pcg 1.1 do
8702 pcg 1.11 case $1 in
8703 root 1.137 --*=?*)
8704 ayin 1.108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8705     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8706 pcg 1.11 ac_shift=:
8707     ;;
8708 root 1.137 --*=)
8709     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8710     ac_optarg=
8711     ac_shift=:
8712     ;;
8713 ayin 1.108 *)
8714 pcg 1.11 ac_option=$1
8715     ac_optarg=$2
8716     ac_shift=shift
8717     ;;
8718     esac
8719    
8720     case $ac_option in
8721     # Handling of the options.
8722 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8723 pcg 1.11 ac_cs_recheck=: ;;
8724 ayin 1.108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8725 sf-exg 1.132 $as_echo "$ac_cs_version"; exit ;;
8726     --config | --confi | --conf | --con | --co | --c )
8727     $as_echo "$ac_cs_config"; exit ;;
8728 ayin 1.108 --debug | --debu | --deb | --de | --d | -d )
8729 pcg 1.11 debug=: ;;
8730     --file | --fil | --fi | --f )
8731     $ac_shift
8732 sf-exg 1.132 case $ac_optarg in
8733     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8734 root 1.137 '') as_fn_error $? "missing file argument" ;;
8735 sf-exg 1.132 esac
8736     as_fn_append CONFIG_FILES " '$ac_optarg'"
8737 pcg 1.11 ac_need_defaults=false;;
8738     --header | --heade | --head | --hea )
8739     $ac_shift
8740 sf-exg 1.132 case $ac_optarg in
8741     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8742     esac
8743     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8744 pcg 1.11 ac_need_defaults=false;;
8745 ayin 1.108 --he | --h)
8746     # Conflict between --help and --header
8747 root 1.137 as_fn_error $? "ambiguous option: \`$1'
8748 sf-exg 1.132 Try \`$0 --help' for more information.";;
8749 ayin 1.108 --help | --hel | -h )
8750 sf-exg 1.132 $as_echo "$ac_cs_usage"; exit ;;
8751 pcg 1.11 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8752     | -silent | --silent | --silen | --sile | --sil | --si | --s)
8753     ac_cs_silent=: ;;
8754    
8755     # This is an error.
8756 root 1.137 -*) as_fn_error $? "unrecognized option: \`$1'
8757 sf-exg 1.132 Try \`$0 --help' for more information." ;;
8758 pcg 1.11
8759 sf-exg 1.132 *) as_fn_append ac_config_targets " $1"
8760 ayin 1.108 ac_need_defaults=false ;;
8761 pcg 1.11
8762     esac
8763     shift
8764     done
8765    
8766     ac_configure_extra_args=
8767    
8768     if $ac_cs_silent; then
8769     exec 6>/dev/null
8770     ac_configure_extra_args="$ac_configure_extra_args --silent"
8771     fi
8772    
8773     _ACEOF
8774 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8775 pcg 1.11 if \$ac_cs_recheck; then
8776 sf-exg 1.132 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8777     shift
8778     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8779     CONFIG_SHELL='$SHELL'
8780 ayin 1.108 export CONFIG_SHELL
8781 sf-exg 1.132 exec "\$@"
8782 pcg 1.11 fi
8783    
8784     _ACEOF
8785 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8786 ayin 1.108 exec 5>>config.log
8787     {
8788     echo
8789     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8790     ## Running $as_me. ##
8791     _ASBOX
8792 sf-exg 1.132 $as_echo "$ac_log"
8793 ayin 1.108 } >&5
8794 pcg 1.11
8795 ayin 1.108 _ACEOF
8796 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8797 ayin 1.108 _ACEOF
8798 ayin 1.106
8799 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8800 ayin 1.106
8801 ayin 1.108 # Handling of arguments.
8802 pcg 1.11 for ac_config_target in $ac_config_targets
8803     do
8804 ayin 1.108 case $ac_config_target in
8805     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8806     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8807     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8808     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8809    
8810 sf-exg 1.149 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8811 pcg 1.1 esac
8812     done
8813    
8814 ayin 1.108
8815 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
8816     # then the envvar interface is used. Set only those that are not.
8817     # We use the long form for the default assignment because of an extremely
8818     # bizarre bug on SunOS 4.1.3.
8819     if $ac_need_defaults; then
8820     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8821     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8822     fi
8823    
8824     # Have a temporary directory for convenience. Make it in the build tree
8825 ayin 1.108 # simply because there is no reason against having it here, and in addition,
8826 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
8827 ayin 1.108 # Hook for its removal unless debugging.
8828     # Note that there is a small window in which the directory will not be cleaned:
8829     # after its creation but before its name has been assigned to `$tmp'.
8830 pcg 1.11 $debug ||
8831     {
8832 sf-exg 1.149 tmp= ac_tmp=
8833 ayin 1.108 trap 'exit_status=$?
8834 sf-exg 1.149 : "${ac_tmp:=$tmp}"
8835     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8836 ayin 1.108 ' 0
8837 sf-exg 1.132 trap 'as_fn_exit 1' 1 2 13 15
8838 pcg 1.11 }
8839     # Create a (secure) tmp directory for tmp files.
8840    
8841     {
8842 ayin 1.108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8843 sf-exg 1.149 test -d "$tmp"
8844 pcg 1.11 } ||
8845     {
8846 ayin 1.108 tmp=./conf$$-$RANDOM
8847     (umask 077 && mkdir "$tmp")
8848 root 1.137 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8849 sf-exg 1.149 ac_tmp=$tmp
8850 sf-exg 1.132
8851     # Set up the scripts for CONFIG_FILES section.
8852     # No need to generate them if there are no CONFIG_FILES.
8853     # This happens for instance with `./config.status config.h'.
8854     if test -n "$CONFIG_FILES"; then
8855 pcg 1.11
8856 ayin 1.108
8857 sf-exg 1.132 ac_cr=`echo X | tr X '\015'`
8858     # On cygwin, bash can eat \r inside `` if the user requested igncr.
8859     # But we know of no other shell where ac_cr would be empty at this
8860     # point, so we can use a bashism as a fallback.
8861     if test "x$ac_cr" = x; then
8862     eval ac_cr=\$\'\\r\'
8863     fi
8864     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8865     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8866 root 1.137 ac_cs_awk_cr='\\r'
8867 sf-exg 1.132 else
8868     ac_cs_awk_cr=$ac_cr
8869     fi
8870 ayin 1.108
8871 sf-exg 1.149 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8872 ayin 1.106 _ACEOF
8873    
8874 ayin 1.108
8875 sf-exg 1.132 {
8876     echo "cat >conf$$subs.awk <<_ACEOF" &&
8877     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8878     echo "_ACEOF"
8879     } >conf$$subs.sh ||
8880 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8881     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8882 ayin 1.108 ac_delim='%!_!# '
8883     for ac_last_try in false false false false false :; do
8884 sf-exg 1.132 . ./conf$$subs.sh ||
8885 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8886 root 1.105
8887 sf-exg 1.132 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8888     if test $ac_delim_n = $ac_delim_num; then
8889 ayin 1.108 break
8890     elif $ac_last_try; then
8891 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8892 ayin 1.108 else
8893     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8894 root 1.105 fi
8895 ayin 1.108 done
8896 sf-exg 1.132 rm -f conf$$subs.sh
8897 ayin 1.108
8898 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8899 sf-exg 1.149 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8900 ayin 1.108 _ACEOF
8901 sf-exg 1.132 sed -n '
8902     h
8903     s/^/S["/; s/!.*/"]=/
8904     p
8905     g
8906     s/^[^!]*!//
8907     :repl
8908     t repl
8909     s/'"$ac_delim"'$//
8910     t delim
8911     :nl
8912     h
8913     s/\(.\{148\}\)..*/\1/
8914     t more1
8915     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8916     p
8917     n
8918     b repl
8919     :more1
8920     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8921     p
8922     g
8923     s/.\{148\}//
8924     t nl
8925     :delim
8926     h
8927     s/\(.\{148\}\)..*/\1/
8928     t more2
8929     s/["\\]/\\&/g; s/^/"/; s/$/"/
8930     p
8931     b
8932     :more2
8933     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8934     p
8935     g
8936     s/.\{148\}//
8937     t delim
8938     ' <conf$$subs.awk | sed '
8939     /^[^""]/{
8940     N
8941     s/\n//
8942     }
8943     ' >>$CONFIG_STATUS || ac_write_fail=1
8944     rm -f conf$$subs.awk
8945     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8946     _ACAWK
8947 sf-exg 1.149 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8948 sf-exg 1.132 for (key in S) S_is_set[key] = 1
8949     FS = ""
8950 ayin 1.108
8951 sf-exg 1.132 }
8952     {
8953     line = $ 0
8954     nfields = split(line, field, "@")
8955     substed = 0
8956     len = length(field[1])
8957     for (i = 2; i < nfields; i++) {
8958     key = field[i]
8959     keylen = length(key)
8960     if (S_is_set[key]) {
8961     value = S[key]
8962     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8963     len += length(value) + length(field[++i])
8964     substed = 1
8965     } else
8966     len += 1 + keylen
8967     }
8968    
8969     print line
8970     }
8971    
8972     _ACAWK
8973     _ACEOF
8974     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8975     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8976     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8977     else
8978     cat
8979 sf-exg 1.149 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8980 root 1.137 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8981 sf-exg 1.132 _ACEOF
8982 ayin 1.108
8983 root 1.137 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8984     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8985 ayin 1.108 # trailing colons and then remove the whole line if VPATH becomes empty
8986     # (actually we leave an empty line to preserve line numbers).
8987     if test "x$srcdir" = x.; then
8988 root 1.137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8989     h
8990     s///
8991     s/^/:/
8992     s/[ ]*$/:/
8993     s/:\$(srcdir):/:/g
8994     s/:\${srcdir}:/:/g
8995     s/:@srcdir@:/:/g
8996     s/^:*//
8997 ayin 1.108 s/:*$//
8998 root 1.137 x
8999     s/\(=[ ]*\).*/\1/
9000     G
9001     s/\n//
9002 ayin 1.108 s/^[^=]*=[ ]*$//
9003     }'
9004     fi
9005    
9006 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9007 ayin 1.108 fi # test -n "$CONFIG_FILES"
9008    
9009 sf-exg 1.132 # Set up the scripts for CONFIG_HEADERS section.
9010     # No need to generate them if there are no CONFIG_HEADERS.
9011     # This happens for instance with `./config.status Makefile'.
9012     if test -n "$CONFIG_HEADERS"; then
9013 sf-exg 1.149 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9014 sf-exg 1.132 BEGIN {
9015     _ACEOF
9016    
9017     # Transform confdefs.h into an awk script `defines.awk', embedded as
9018     # here-document in config.status, that substitutes the proper values into
9019     # config.h.in to produce config.h.
9020    
9021     # Create a delimiter string that does not exist in confdefs.h, to ease
9022     # handling of long lines.
9023     ac_delim='%!_!# '
9024     for ac_last_try in false false :; do
9025 sf-exg 1.149 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9026     if test -z "$ac_tt"; then
9027 sf-exg 1.132 break
9028     elif $ac_last_try; then
9029 root 1.137 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9030 sf-exg 1.132 else
9031     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9032     fi
9033     done
9034    
9035     # For the awk script, D is an array of macro values keyed by name,
9036     # likewise P contains macro parameters if any. Preserve backslash
9037     # newline sequences.
9038    
9039     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9040     sed -n '
9041     s/.\{148\}/&'"$ac_delim"'/g
9042     t rset
9043     :rset
9044     s/^[ ]*#[ ]*define[ ][ ]*/ /
9045     t def
9046     d
9047     :def
9048     s/\\$//
9049     t bsnl
9050     s/["\\]/\\&/g
9051     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9052     D["\1"]=" \3"/p
9053     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9054     d
9055     :bsnl
9056     s/["\\]/\\&/g
9057     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9058     D["\1"]=" \3\\\\\\n"\\/p
9059     t cont
9060     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9061     t cont
9062     d
9063     :cont
9064     n
9065     s/.\{148\}/&'"$ac_delim"'/g
9066     t clear
9067     :clear
9068     s/\\$//
9069     t bsnlc
9070     s/["\\]/\\&/g; s/^/"/; s/$/"/p
9071     d
9072     :bsnlc
9073     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9074     b cont
9075     ' <confdefs.h | sed '
9076     s/'"$ac_delim"'/"\\\
9077     "/g' >>$CONFIG_STATUS || ac_write_fail=1
9078    
9079     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9080     for (key in D) D_is_set[key] = 1
9081     FS = ""
9082     }
9083     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9084     line = \$ 0
9085     split(line, arg, " ")
9086     if (arg[1] == "#") {
9087     defundef = arg[2]
9088     mac1 = arg[3]
9089     } else {
9090     defundef = substr(arg[1], 2)
9091     mac1 = arg[2]
9092     }
9093     split(mac1, mac2, "(") #)
9094     macro = mac2[1]
9095     prefix = substr(line, 1, index(line, defundef) - 1)
9096     if (D_is_set[macro]) {
9097     # Preserve the white space surrounding the "#".
9098     print prefix "define", macro P[macro] D[macro]
9099     next
9100     } else {
9101     # Replace #undef with comments. This is necessary, for example,
9102     # in the case of _POSIX_SOURCE, which is predefined and required
9103     # on some systems where configure will not decide to define it.
9104     if (defundef == "undef") {
9105     print "/*", prefix defundef, macro, "*/"
9106     next
9107     }
9108     }
9109     }
9110     { print }
9111     _ACAWK
9112     _ACEOF
9113     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9114 root 1.137 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9115 sf-exg 1.132 fi # test -n "$CONFIG_HEADERS"
9116    
9117 ayin 1.108
9118 sf-exg 1.132 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9119     shift
9120     for ac_tag
9121 ayin 1.108 do
9122     case $ac_tag in
9123     :[FHLC]) ac_mode=$ac_tag; continue;;
9124     esac
9125     case $ac_mode$ac_tag in
9126     :[FHL]*:*);;
9127 sf-exg 1.149 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9128 ayin 1.108 :[FH]-) ac_tag=-:-;;
9129     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9130     esac
9131     ac_save_IFS=$IFS
9132     IFS=:
9133     set x $ac_tag
9134     IFS=$ac_save_IFS
9135     shift
9136     ac_file=$1
9137     shift
9138    
9139     case $ac_mode in
9140     :L) ac_source=$1;;
9141     :[FH])
9142     ac_file_inputs=
9143     for ac_f
9144     do
9145     case $ac_f in
9146 sf-exg 1.149 -) ac_f="$ac_tmp/stdin";;
9147 ayin 1.108 *) # Look for the file first in the build tree, then in the source tree
9148     # (if the path is not absolute). The absolute path cannot be DOS-style,
9149     # because $ac_f cannot contain `:'.
9150     test -f "$ac_f" ||
9151     case $ac_f in
9152     [\\/$]*) false;;
9153     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9154     esac ||
9155 sf-exg 1.149 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9156 ayin 1.108 esac
9157 sf-exg 1.132 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9158     as_fn_append ac_file_inputs " '$ac_f'"
9159 ayin 1.108 done
9160    
9161     # Let's still pretend it is `configure' which instantiates (i.e., don't
9162     # use $as_me), people would be surprised to read:
9163     # /* config.h. Generated by config.status. */
9164 sf-exg 1.132 configure_input='Generated from '`
9165     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9166     `' by configure.'
9167 ayin 1.108 if test x"$ac_file" != x-; then
9168     configure_input="$ac_file. $configure_input"
9169 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9170     $as_echo "$as_me: creating $ac_file" >&6;}
9171 ayin 1.108 fi
9172 sf-exg 1.132 # Neutralize special characters interpreted by sed in replacement strings.
9173     case $configure_input in #(
9174     *\&* | *\|* | *\\* )
9175     ac_sed_conf_input=`$as_echo "$configure_input" |
9176     sed 's/[\\\\&|]/\\\\&/g'`;; #(
9177     *) ac_sed_conf_input=$configure_input;;
9178     esac
9179 ayin 1.108
9180     case $ac_tag in
9181 sf-exg 1.149 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9182     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9183 ayin 1.108 esac
9184     ;;
9185 ayin 1.102 esac
9186    
9187 ayin 1.108 ac_dir=`$as_dirname -- "$ac_file" ||
9188 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9189     X"$ac_file" : 'X\(//\)[^/]' \| \
9190     X"$ac_file" : 'X\(//\)$' \| \
9191 ayin 1.108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9192 sf-exg 1.132 $as_echo X"$ac_file" |
9193 ayin 1.108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9194     s//\1/
9195     q
9196     }
9197     /^X\(\/\/\)[^/].*/{
9198     s//\1/
9199     q
9200     }
9201     /^X\(\/\/\)$/{
9202     s//\1/
9203     q
9204     }
9205     /^X\(\/\).*/{
9206     s//\1/
9207     q
9208     }
9209     s/.*/./; q'`
9210 sf-exg 1.132 as_dir="$ac_dir"; as_fn_mkdir_p
9211 pcg 1.11 ac_builddir=.
9212    
9213 ayin 1.108 case "$ac_dir" in
9214     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9215     *)
9216 sf-exg 1.132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9217 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
9218 sf-exg 1.132 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9219 ayin 1.108 case $ac_top_builddir_sub in
9220     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9221     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9222     esac ;;
9223     esac
9224     ac_abs_top_builddir=$ac_pwd
9225     ac_abs_builddir=$ac_pwd$ac_dir_suffix
9226     # for backward compatibility:
9227     ac_top_builddir=$ac_top_build_prefix
9228 pcg 1.11
9229     case $srcdir in
9230 ayin 1.108 .) # We are building in place.
9231 pcg 1.11 ac_srcdir=.
9232 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
9233     ac_abs_top_srcdir=$ac_pwd ;;
9234     [\\/]* | ?:[\\/]* ) # Absolute name.
9235 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
9236 ayin 1.108 ac_top_srcdir=$srcdir
9237     ac_abs_top_srcdir=$srcdir ;;
9238     *) # Relative name.
9239     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9240     ac_top_srcdir=$ac_top_build_prefix$srcdir
9241     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9242 pcg 1.11 esac
9243 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9244 pcg 1.11
9245    
9246 ayin 1.108 case $ac_mode in
9247     :F)
9248     #
9249     # CONFIG_FILE
9250     #
9251 pcg 1.1
9252 pcg 1.11 case $INSTALL in
9253     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9254 ayin 1.108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9255 pcg 1.1 esac
9256 ayin 1.108 _ACEOF
9257 pcg 1.1
9258 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9259 ayin 1.108 # If the template does not know about datarootdir, expand it.
9260     # FIXME: This hack should be removed a few years after 2.60.
9261     ac_datarootdir_hack=; ac_datarootdir_seen=
9262 sf-exg 1.132 ac_sed_dataroot='
9263     /datarootdir/ {
9264 ayin 1.108 p
9265     q
9266     }
9267     /@datadir@/p
9268     /@docdir@/p
9269     /@infodir@/p
9270     /@localedir@/p
9271 sf-exg 1.132 /@mandir@/p'
9272     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9273 ayin 1.108 *datarootdir*) ac_datarootdir_seen=yes;;
9274     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9275 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9276     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9277 ayin 1.108 _ACEOF
9278 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9279 ayin 1.108 ac_datarootdir_hack='
9280     s&@datadir@&$datadir&g
9281     s&@docdir@&$docdir&g
9282     s&@infodir@&$infodir&g
9283     s&@localedir@&$localedir&g
9284     s&@mandir@&$mandir&g
9285 sf-exg 1.132 s&\\\${datarootdir}&$datarootdir&g' ;;
9286 ayin 1.108 esac
9287 root 1.105 _ACEOF
9288 ayin 1.108
9289     # Neutralize VPATH when `$srcdir' = `.'.
9290     # Shell code in configure.ac might set extrasub.
9291     # FIXME: do we really want to maintain this feature?
9292 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9293     ac_sed_extra="$ac_vpsub
9294 pcg 1.11 $extrasub
9295     _ACEOF
9296 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9297 pcg 1.11 :t
9298     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9299 sf-exg 1.132 s|@configure_input@|$ac_sed_conf_input|;t t
9300 ayin 1.108 s&@top_builddir@&$ac_top_builddir_sub&;t t
9301 sf-exg 1.132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9302 ayin 1.108 s&@srcdir@&$ac_srcdir&;t t
9303     s&@abs_srcdir@&$ac_abs_srcdir&;t t
9304     s&@top_srcdir@&$ac_top_srcdir&;t t
9305     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9306     s&@builddir@&$ac_builddir&;t t
9307     s&@abs_builddir@&$ac_abs_builddir&;t t
9308     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9309     s&@INSTALL@&$ac_INSTALL&;t t
9310     $ac_datarootdir_hack
9311 sf-exg 1.132 "
9312 sf-exg 1.149 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9313     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9314 ayin 1.108
9315     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9316 sf-exg 1.149 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9317     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9318     "$ac_tmp/out"`; test -z "$ac_out"; } &&
9319 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9320 root 1.137 which seems to be undefined. Please make sure it is defined" >&5
9321 sf-exg 1.132 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9322 root 1.137 which seems to be undefined. Please make sure it is defined" >&2;}
9323 ayin 1.106
9324 sf-exg 1.149 rm -f "$ac_tmp/stdin"
9325 pcg 1.11 case $ac_file in
9326 sf-exg 1.149 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9327     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9328 sf-exg 1.132 esac \
9329 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9330 ayin 1.108 ;;
9331     :H)
9332     #
9333     # CONFIG_HEADER
9334     #
9335 pcg 1.11 if test x"$ac_file" != x-; then
9336 sf-exg 1.132 {
9337     $as_echo "/* $configure_input */" \
9338 sf-exg 1.149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9339     } >"$ac_tmp/config.h" \
9340 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9341 sf-exg 1.149 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9342 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9343     $as_echo "$as_me: $ac_file is unchanged" >&6;}
9344 pcg 1.11 else
9345 sf-exg 1.132 rm -f "$ac_file"
9346 sf-exg 1.149 mv "$ac_tmp/config.h" "$ac_file" \
9347 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9348 pcg 1.1 fi
9349 pcg 1.11 else
9350 sf-exg 1.132 $as_echo "/* $configure_input */" \
9351 sf-exg 1.149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9352 root 1.137 || as_fn_error $? "could not create -" "$LINENO" 5
9353 pcg 1.1 fi
9354 ayin 1.108 ;;
9355    
9356    
9357     esac
9358    
9359     done # for ac_tag
9360 pcg 1.11
9361 pcg 1.1
9362 sf-exg 1.132 as_fn_exit 0
9363 pcg 1.11 _ACEOF
9364     ac_clean_files=$ac_clean_files_save
9365 pcg 1.1
9366 sf-exg 1.132 test $ac_write_fail = 0 ||
9367 root 1.137 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9368 sf-exg 1.132
9369 pcg 1.1
9370 pcg 1.11 # configure is writing to config.log, and then calls config.status.
9371     # config.status does its own redirection, appending to config.log.
9372     # Unfortunately, on DOS this fails, as config.log is still kept open
9373     # by configure, so config.status won't be able to write to it; its
9374     # output is simply discarded. So we exec the FD to /dev/null,
9375     # effectively closing config.log, so it can be properly (re)opened and
9376     # appended to by config.status. When coming back to configure, we
9377     # need to make the FD available again.
9378     if test "$no_create" != yes; then
9379     ac_cs_success=:
9380     ac_config_status_args=
9381     test "$silent" = yes &&
9382     ac_config_status_args="$ac_config_status_args --quiet"
9383     exec 5>/dev/null
9384     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9385     exec 5>>config.log
9386     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9387     # would make configure fail if this is the last instruction.
9388 root 1.137 $ac_cs_success || as_fn_exit 1
9389 sf-exg 1.132 fi
9390     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9391     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9392     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9393 pcg 1.11 fi
9394 pcg 1.1
9395    
9396     echo "Configuration:
9397    
9398     Rxvt version: $VERSION : $DATE
9399     Source code location: $srcdir
9400     Install path: ${prefix}/bin
9401 pcg 1.13 Compiler: $CXX
9402 root 1.100 Compiler flags: $CXXFLAGS
9403 pcg 1.13 Linker: $LINKER"
9404 pcg 1.1
9405     if test x$term != x; then
9406 pcg 1.18 echo " set TERM to: $term"
9407 pcg 1.1 fi
9408     if test x$terminfo != x; then
9409 pcg 1.18 echo " set TERMINFO to: $terminfo"
9410     fi
9411     echo " default resource name: $RESNAME"
9412     echo " resource class: $RESCLASS"
9413     if test x$RESFALLBACK != x; then
9414     echo " resource class fallback: $RESFALLBACK"
9415 pcg 1.1 fi
9416 pcg 1.18 echo
9417 root 1.89 echo " embedded perl: $support_perl"
9418 sf-exg 1.135 echo " image library: $image_lib"
9419 root 1.89 echo
9420 pcg 1.1 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
9421     echo ".----------------------------------------------------------------."
9422     echo ". WARNING: --enable-xim was specified however the locale support ."
9423     echo ". functions could not be found. ."
9424     echo ". XIM is now being DISABLED! ."
9425     echo ".----------------------------------------------------------------."
9426     fi
9427 pcg 1.20
9428 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
9429 pcg 1.20 echo
9430