ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.151
Committed: Thu Jan 19 11:09:56 2012 UTC (12 years, 4 months ago) by sf-exg
Branch: MAIN
Changes since 1.150: +292 -217 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.151 # 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.151 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.151 # 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.151 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.151 : "${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.150 --enable-afterimage enable integration with libAfterImage for background images (deprecated)
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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 *) 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.151 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.151 *) 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.151 VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2752     DATE=`sed -n -e 's/^.* 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 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.151 if ${ac_cv_search_strerror+:} false; then :
4399 sf-exg 1.132 break
4400     fi
4401     done
4402 sf-exg 1.151 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 sf-exg 1.151 LINKER="$CXX"
4426 sf-exg 1.132 if test x$GCC = xyes && test x$GXX = xyes; then
4427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4428     $as_echo_n "checking for working libsupc++... " >&6; }
4429     save_CXX="$CXX"
4430     save_LIBS="$LIBS"
4431     CXX="$CC"
4432     LIBS="$LIBS -lsupc++"
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 sf-exg 1.151 LINKER="$CC"
4449 sf-exg 1.132 else
4450 root 1.129
4451 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4452     $as_echo "no, making everything bigger and slower" >&6; }
4453     LIBS="$save_LIBS"
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.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4491     $as_echo_n "checking for library containing setlocale... " >&6; }
4492 sf-exg 1.151 if ${ac_cv_search_setlocale+:} false; then :
4493 sf-exg 1.132 $as_echo_n "(cached) " >&6
4494     else
4495 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
4496 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 root 1.116 /* end confdefs.h. */
4498    
4499     /* Override any GCC internal prototype to avoid an error.
4500     Use char because int might match the return type of a GCC
4501     builtin and then its argument prototype would still apply. */
4502     #ifdef __cplusplus
4503     extern "C"
4504     #endif
4505 sf-exg 1.132 char setlocale ();
4506 root 1.116 int
4507     main ()
4508     {
4509 sf-exg 1.132 return setlocale ();
4510 root 1.116 ;
4511     return 0;
4512     }
4513     _ACEOF
4514 sf-exg 1.133 for ac_lib in '' xpg4; do
4515     if test -z "$ac_lib"; then
4516     ac_res="none required"
4517     else
4518     ac_res=-l$ac_lib
4519     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4520     fi
4521     if ac_fn_cxx_try_link "$LINENO"; then :
4522     ac_cv_search_setlocale=$ac_res
4523 sf-exg 1.132 fi
4524     rm -f core conftest.err conftest.$ac_objext \
4525 sf-exg 1.133 conftest$ac_exeext
4526 sf-exg 1.151 if ${ac_cv_search_setlocale+:} false; then :
4527 sf-exg 1.133 break
4528     fi
4529     done
4530 sf-exg 1.151 if ${ac_cv_search_setlocale+:} false; then :
4531 sf-exg 1.133
4532     else
4533     ac_cv_search_setlocale=no
4534 root 1.116 fi
4535 sf-exg 1.133 rm conftest.$ac_ext
4536     LIBS=$ac_func_search_save_LIBS
4537 root 1.116 fi
4538 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4539     $as_echo "$ac_cv_search_setlocale" >&6; }
4540     ac_res=$ac_cv_search_setlocale
4541     if test "$ac_res" != no; then :
4542     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4543 root 1.116
4544     fi
4545    
4546    
4547 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4548     $as_echo_n "checking for library containing gethostbyname... " >&6; }
4549 sf-exg 1.151 if ${ac_cv_search_gethostbyname+:} false; then :
4550 sf-exg 1.132 $as_echo_n "(cached) " >&6
4551     else
4552 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
4553 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4554 root 1.123 /* end confdefs.h. */
4555    
4556     /* Override any GCC internal prototype to avoid an error.
4557     Use char because int might match the return type of a GCC
4558     builtin and then its argument prototype would still apply. */
4559     #ifdef __cplusplus
4560     extern "C"
4561     #endif
4562 sf-exg 1.132 char gethostbyname ();
4563 root 1.123 int
4564     main ()
4565     {
4566 sf-exg 1.132 return gethostbyname ();
4567 root 1.123 ;
4568     return 0;
4569     }
4570     _ACEOF
4571 sf-exg 1.133 for ac_lib in '' nsl; do
4572     if test -z "$ac_lib"; then
4573     ac_res="none required"
4574     else
4575     ac_res=-l$ac_lib
4576     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4577     fi
4578     if ac_fn_cxx_try_link "$LINENO"; then :
4579     ac_cv_search_gethostbyname=$ac_res
4580 sf-exg 1.132 fi
4581     rm -f core conftest.err conftest.$ac_objext \
4582 sf-exg 1.133 conftest$ac_exeext
4583 sf-exg 1.151 if ${ac_cv_search_gethostbyname+:} false; then :
4584 sf-exg 1.133 break
4585     fi
4586     done
4587 sf-exg 1.151 if ${ac_cv_search_gethostbyname+:} false; then :
4588 sf-exg 1.133
4589     else
4590     ac_cv_search_gethostbyname=no
4591 sf-exg 1.132 fi
4592 sf-exg 1.133 rm conftest.$ac_ext
4593     LIBS=$ac_func_search_save_LIBS
4594 root 1.123 fi
4595 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4596     $as_echo "$ac_cv_search_gethostbyname" >&6; }
4597     ac_res=$ac_cv_search_gethostbyname
4598     if test "$ac_res" != no; then :
4599     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4600 root 1.123
4601     fi
4602    
4603 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4604     $as_echo_n "checking for library containing socket... " >&6; }
4605 sf-exg 1.151 if ${ac_cv_search_socket+:} false; then :
4606 sf-exg 1.132 $as_echo_n "(cached) " >&6
4607 root 1.123 else
4608 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
4609 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 root 1.123 /* end confdefs.h. */
4611    
4612     /* Override any GCC internal prototype to avoid an error.
4613     Use char because int might match the return type of a GCC
4614     builtin and then its argument prototype would still apply. */
4615     #ifdef __cplusplus
4616     extern "C"
4617     #endif
4618 sf-exg 1.132 char socket ();
4619 root 1.123 int
4620     main ()
4621     {
4622 sf-exg 1.132 return socket ();
4623 root 1.123 ;
4624     return 0;
4625     }
4626     _ACEOF
4627 sf-exg 1.133 for ac_lib in '' socket; do
4628     if test -z "$ac_lib"; then
4629     ac_res="none required"
4630     else
4631     ac_res=-l$ac_lib
4632     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4633     fi
4634     if ac_fn_cxx_try_link "$LINENO"; then :
4635     ac_cv_search_socket=$ac_res
4636 sf-exg 1.132 fi
4637     rm -f core conftest.err conftest.$ac_objext \
4638 sf-exg 1.133 conftest$ac_exeext
4639 sf-exg 1.151 if ${ac_cv_search_socket+:} false; then :
4640 sf-exg 1.133 break
4641     fi
4642     done
4643 sf-exg 1.151 if ${ac_cv_search_socket+:} false; then :
4644 sf-exg 1.133
4645     else
4646     ac_cv_search_socket=no
4647 sf-exg 1.132 fi
4648 sf-exg 1.133 rm conftest.$ac_ext
4649     LIBS=$ac_func_search_save_LIBS
4650 sf-exg 1.132 fi
4651 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4652     $as_echo "$ac_cv_search_socket" >&6; }
4653     ac_res=$ac_cv_search_socket
4654     if test "$ac_res" != no; then :
4655     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4656 root 1.123
4657     fi
4658    
4659 sf-exg 1.132
4660     support_frills=yes
4661     support_inheritpixmap=yes
4662     support_fading=yes
4663     support_keepscrolling=yes
4664     support_selectionscrolling=yes
4665     support_mousewheel=yes
4666     support_mouseslipwheel=yes
4667     support_text_blink=yes
4668     support_pointer_blank=yes
4669     support_scroll_rxvt=yes
4670     support_scroll_next=yes
4671     support_scroll_xterm=yes
4672     support_xim=yes
4673 sf-exg 1.142 support_pixbuf=yes
4674 mikachu 1.147 support_startup_notification=yes
4675 sf-exg 1.132 support_xft=yes
4676     support_unicode3=no
4677     support_combining=yes
4678     support_8bitctrls=no
4679     support_iso14755=yes
4680     support_styles=yes
4681     support_perl=yes
4682     codesets=all
4683    
4684    
4685     # Check whether --enable-everything was given.
4686     if test "${enable_everything+set}" = set; then :
4687     enableval=$enable_everything;
4688     if test x$enableval = xno; then
4689     support_frills=no
4690     support_inheritpixmap=no
4691     support_fading=no
4692     support_keepscrolling=no
4693     support_selectionscrolling=no
4694     support_lastlog=no
4695     support_mousewheel=no
4696     support_mouseslipwheel=no
4697     support_text_blink=no
4698     support_pointer_blank=no
4699     support_scroll_rxvt=no
4700     support_scroll_next=no
4701     support_scroll_xterm=no
4702     support_utmp=no
4703     support_wtmp=no
4704     support_xim=no
4705 sf-exg 1.142 support_pixbuf=no
4706 mikachu 1.147 support_startup_notification=no
4707 sf-exg 1.132 support_xft=no
4708     support_unicode3=no
4709     support_combining=no
4710     support_8bitctrls=no
4711     support_iso14755=no
4712     support_styles=no
4713     support_perl=no
4714     codesets=
4715     fi
4716     if test x$enableval = xyes; then
4717     support_frills=yes
4718     support_inheritpixmap=yes
4719     support_fading=yes
4720     support_keepscrolling=yes
4721     support_selectionscrolling=yes
4722     support_lastlog=yes
4723     support_mousewheel=yes
4724     support_mouseslipwheel=yes
4725     support_text_blink=yes
4726     support_pointer_blank=yes
4727     support_scroll_rxvt=yes
4728     support_scroll_next=yes
4729     support_scroll_xterm=yes
4730     support_utmp=yes
4731     support_wtmp=yes
4732     support_xim=yes
4733 sf-exg 1.142 support_pixbuf=yes
4734 mikachu 1.147 support_startup_notification=yes
4735 sf-exg 1.132 support_xft=yes
4736     support_unicode3=yes
4737     support_combining=yes
4738     #support_8bitctrls=yes
4739     support_iso14755=yes
4740     support_styles=yes
4741     support_perl=yes
4742     codesets=all
4743     fi
4744    
4745 root 1.123 fi
4746    
4747    
4748 root 1.150 support_assertions=no
4749 sf-exg 1.132 # Check whether --enable-assert was given.
4750     if test "${enable_assert+set}" = set; then :
4751     enableval=$enable_assert; if test x$enableval = xyes; then
4752 root 1.150 support_assertions=yes
4753 sf-exg 1.132 fi
4754 root 1.123 fi
4755    
4756 root 1.150 if test x$support_assertions = xno; then
4757 root 1.123
4758 sf-exg 1.132 $as_echo "#define NDEBUG 1" >>confdefs.h
4759 root 1.123
4760 sf-exg 1.132 fi
4761 root 1.123
4762 root 1.150 support_warnings=no
4763 sf-exg 1.132 # Check whether --enable-warnings was given.
4764     if test "${enable_warnings+set}" = set; then :
4765     enableval=$enable_warnings; if test x$enableval = xyes; then
4766 root 1.150 support_warnings=yes
4767 sf-exg 1.132 fi
4768     fi
4769 root 1.123
4770 sf-exg 1.132 if test x$GXX = xyes; then
4771 root 1.150 if test $support_warnings = yes; then
4772 sf-exg 1.132 save_CXXFLAGS="$CXXFLAGS"
4773 root 1.150 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4774 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775     /* end confdefs.h. */
4776 root 1.123
4777     int
4778     main ()
4779     {
4780 sf-exg 1.132
4781 root 1.123 ;
4782     return 0;
4783     }
4784     _ACEOF
4785 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
4786    
4787     else
4788     CXXFLAGS="$save_CXXFLAGS"
4789     fi
4790     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791     else
4792     CXXFLAGS="$CXXFLAGS -w"
4793     fi
4794     fi
4795    
4796     support_256_color=no
4797     # Check whether --enable-256-color was given.
4798     if test "${enable_256_color+set}" = set; then :
4799     enableval=$enable_256_color; if test x$enableval = xyes; then
4800     support_256_color=yes
4801     fi
4802     fi
4803    
4804     if test x$support_256_color = xyes; then
4805    
4806     $as_echo "#define USE_256_COLORS 1" >>confdefs.h
4807    
4808     fi
4809    
4810     # Check whether --enable-unicode3 was given.
4811     if test "${enable_unicode3+set}" = set; then :
4812     enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4813     support_unicode3=$enableval
4814     fi
4815     fi
4816    
4817    
4818     # Check whether --enable-combining was given.
4819     if test "${enable_combining+set}" = set; then :
4820     enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4821     support_combining=$enableval
4822     fi
4823     fi
4824    
4825    
4826     # Check whether --enable-xft was given.
4827     if test "${enable_xft+set}" = set; then :
4828     enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4829     support_xft=$enableval
4830     fi
4831     fi
4832    
4833    
4834     # Check whether --enable-font-styles was given.
4835     if test "${enable_font_styles+set}" = set; then :
4836     enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4837     support_styles=$enableval
4838     fi
4839     fi
4840    
4841 root 1.123
4842 sf-exg 1.132 # Check whether --enable-afterimage was given.
4843     if test "${enable_afterimage+set}" = set; then :
4844     enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4845     support_afterimage=$enableval
4846     fi
4847 root 1.123 fi
4848    
4849 sf-exg 1.132
4850    
4851     # Check whether --with-afterimage_config was given.
4852     if test "${with_afterimage_config+set}" = set; then :
4853     withval=$with_afterimage_config; if test "x$withval" != x; then
4854     afterimage_config=$withval/afterimage-config
4855     fi
4856 root 1.123 fi
4857    
4858 sf-exg 1.132
4859 sf-exg 1.134 # Check whether --enable-pixbuf was given.
4860     if test "${enable_pixbuf+set}" = set; then :
4861     enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4862     support_pixbuf=$enableval
4863     fi
4864     fi
4865    
4866    
4867 mikachu 1.147 # Check whether --enable-startup-notification was given.
4868     if test "${enable_startup_notification+set}" = set; then :
4869     enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4870     support_startup_notification=$enableval
4871     fi
4872     fi
4873    
4874    
4875 sf-exg 1.132 # Check whether --enable-transparency was given.
4876     if test "${enable_transparency+set}" = set; then :
4877     enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4878     support_inheritpixmap=$enableval
4879     fi
4880 root 1.123 fi
4881    
4882    
4883 sf-exg 1.132 # Check whether --enable-fading was given.
4884     if test "${enable_fading+set}" = set; then :
4885     enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4886     support_fading=$enableval
4887     fi
4888 root 1.123 fi
4889    
4890    
4891 sf-exg 1.132 # Check whether --enable-rxvt-scroll was given.
4892     if test "${enable_rxvt_scroll+set}" = set; then :
4893     enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4894     support_scroll_rxvt=$enableval
4895     fi
4896     fi
4897 root 1.116
4898    
4899 sf-exg 1.132 # Check whether --enable-next-scroll was given.
4900     if test "${enable_next_scroll+set}" = set; then :
4901     enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4902     support_scroll_next=$enableval
4903     fi
4904     fi
4905 root 1.116
4906    
4907 sf-exg 1.132 # Check whether --enable-xterm-scroll was given.
4908     if test "${enable_xterm_scroll+set}" = set; then :
4909     enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4910     support_scroll_xterm=$enableval
4911     fi
4912 root 1.116 fi
4913    
4914    
4915 sf-exg 1.132 # Check whether --enable-perl was given.
4916     if test "${enable_perl+set}" = set; then :
4917     enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4918     support_perl=$enableval
4919     fi
4920 root 1.116 fi
4921    
4922    
4923    
4924 sf-exg 1.132 # Check whether --with-codesets was given.
4925     if test "${with_codesets+set}" = set; then :
4926     withval=$with_codesets; codesets="$withval"
4927     fi
4928 root 1.116
4929    
4930 sf-exg 1.132 # Check whether --enable-xim was given.
4931     if test "${enable_xim+set}" = set; then :
4932     enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4933     support_xim=$enableval
4934 root 1.116 fi
4935 sf-exg 1.132 fi
4936    
4937 root 1.116
4938 sf-exg 1.132 # Check whether --enable-backspace-key was given.
4939     if test "${enable_backspace_key+set}" = set; then :
4940     enableval=$enable_backspace_key; if test x$enableval = xno; then
4941 root 1.80
4942 sf-exg 1.132 $as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4943 root 1.116
4944 sf-exg 1.132 fi
4945     fi
4946 root 1.116
4947 pcg 1.24
4948 sf-exg 1.132 # Check whether --enable-delete-key was given.
4949     if test "${enable_delete_key+set}" = set; then :
4950     enableval=$enable_delete_key; if test x$enableval = xno; then
4951 pcg 1.11
4952 sf-exg 1.132 $as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4953 pcg 1.1
4954     fi
4955     fi
4956    
4957 pcg 1.11
4958 sf-exg 1.132 # Check whether --enable-resources was given.
4959     if test "${enable_resources+set}" = set; then :
4960     enableval=$enable_resources; if test x$enableval = xno; then
4961 pcg 1.11
4962 sf-exg 1.132 $as_echo "#define NO_RESOURCES 1" >>confdefs.h
4963 pcg 1.11
4964 sf-exg 1.132 fi
4965     fi
4966 pcg 1.11
4967    
4968 sf-exg 1.132 # Check whether --enable-8bitctrls was given.
4969     if test "${enable_8bitctrls+set}" = set; then :
4970     enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4971     support_8bitctrls=$enableval
4972     fi
4973     fi
4974 pcg 1.11
4975 pcg 1.1
4976 sf-exg 1.132 RESFALLBACK=Rxvt
4977     # Check whether --enable-fallback was given.
4978     if test "${enable_fallback+set}" = set; then :
4979     enableval=$enable_fallback;
4980     test x$enableval = xyes && enableval=Rxvt
4981     test x$enableval = xno && enableval=
4982     RESFALLBACK="$enableval"
4983 pcg 1.11
4984 pcg 1.1 fi
4985 ayin 1.108
4986 pcg 1.1
4987 sf-exg 1.132 if test x$RESFALLBACK != x; then
4988    
4989     cat >>confdefs.h <<_ACEOF
4990     #define RESFALLBACK "$RESFALLBACK"
4991 pcg 1.11 _ACEOF
4992    
4993 pcg 1.1 fi
4994 ayin 1.108
4995 sf-exg 1.132 RESNAME=urxvt
4996 pcg 1.1
4997 sf-exg 1.132 # Check whether --with-res-name was given.
4998     if test "${with_res_name+set}" = set; then :
4999     withval=$with_res_name; RESNAME="$withval"
5000 ayin 1.106 fi
5001 pcg 1.1
5002 sf-exg 1.132
5003     cat >>confdefs.h <<_ACEOF
5004     #define RESNAME "$RESNAME"
5005     _ACEOF
5006    
5007    
5008     RESCLASS=URxvt
5009    
5010     # Check whether --with-res-class was given.
5011     if test "${with_res_class+set}" = set; then :
5012     withval=$with_res_class; RESCLASS="$withval"
5013 pcg 1.1 fi
5014    
5015 pcg 1.11
5016 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5017     #define RESCLASS "$RESCLASS"
5018 pcg 1.11 _ACEOF
5019 pcg 1.1
5020    
5021 sf-exg 1.132 RXVTNAME=urxvt
5022    
5023     # Check whether --with-name was given.
5024     if test "${with_name+set}" = set; then :
5025     withval=$with_name; RXVTNAME="$withval"
5026     fi
5027    
5028    
5029     cat >>confdefs.h <<_ACEOF
5030     #define RXVTNAME "$RXVTNAME"
5031 pcg 1.11 _ACEOF
5032 pcg 1.1
5033    
5034 pcg 1.11
5035 pcg 1.1
5036 sf-exg 1.132 # Check whether --enable-swapscreen was given.
5037     if test "${enable_swapscreen+set}" = set; then :
5038     enableval=$enable_swapscreen; if test x$enableval = xno; then
5039 pcg 1.1
5040 sf-exg 1.132 $as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
5041 pcg 1.11
5042 sf-exg 1.132 fi
5043 ayin 1.102 fi
5044 ayin 1.108
5045    
5046 sf-exg 1.132 # Check whether --enable-iso14755 was given.
5047     if test "${enable_iso14755+set}" = set; then :
5048     enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
5049     support_iso14755=$enableval
5050 pcg 1.1 fi
5051 sf-exg 1.132 fi
5052 pcg 1.1
5053    
5054 sf-exg 1.132 # Check whether --enable-frills was given.
5055     if test "${enable_frills+set}" = set; then :
5056     enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5057     support_frills=$enableval
5058     fi
5059     fi
5060 pcg 1.11
5061 pcg 1.1
5062 sf-exg 1.132 # Check whether --enable-keepscrolling was given.
5063     if test "${enable_keepscrolling+set}" = set; then :
5064     enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5065     support_keepscrolling=$enableval
5066     fi
5067     fi
5068 pcg 1.1
5069 pcg 1.11
5070 sf-exg 1.132 # Check whether --enable-selectionscrolling was given.
5071     if test "${enable_selectionscrolling+set}" = set; then :
5072     enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5073     support_selectionscrolling=$enableval
5074     fi
5075 pcg 1.11 fi
5076 ayin 1.108
5077 sf-exg 1.132
5078     # Check whether --enable-mousewheel was given.
5079     if test "${enable_mousewheel+set}" = set; then :
5080     enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5081     support_mousewheel=$enableval
5082     fi
5083 pcg 1.1 fi
5084    
5085 pcg 1.11
5086 sf-exg 1.132 # Check whether --enable-slipwheeling was given.
5087     if test "${enable_slipwheeling+set}" = set; then :
5088     enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5089     support_mouseslipwheel=$enableval
5090     fi
5091 pcg 1.11 fi
5092 ayin 1.108
5093 sf-exg 1.132
5094     # Check whether --enable-smart-resize was given.
5095     if test "${enable_smart_resize+set}" = set; then :
5096     enableval=$enable_smart_resize; if test x$enableval = xyes; then
5097    
5098     $as_echo "#define SMART_RESIZE 1" >>confdefs.h
5099    
5100     fi
5101 pcg 1.11 fi
5102 sf-exg 1.132
5103    
5104     # Check whether --enable-text-blink was given.
5105     if test "${enable_text_blink+set}" = set; then :
5106     enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5107     support_text_blink=$enableval
5108     fi
5109 pcg 1.1 fi
5110    
5111 sf-exg 1.132
5112     # Check whether --enable-pointer-blank was given.
5113     if test "${enable_pointer_blank+set}" = set; then :
5114     enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5115     support_pointer_blank=$enableval
5116     fi
5117 pcg 1.11 fi
5118 ayin 1.108
5119 pcg 1.1
5120 sf-exg 1.132
5121     # Check whether --with-term was given.
5122     if test "${with_term+set}" = set; then :
5123     withval=$with_term; if test x$withval != x; then
5124    
5125     cat >>confdefs.h <<_ACEOF
5126     #define TERMENV "$withval"
5127 pcg 1.11 _ACEOF
5128 sf-exg 1.132 term="$withval"
5129     fi
5130     fi
5131 pcg 1.11
5132    
5133    
5134 sf-exg 1.132 # Check whether --with-terminfo was given.
5135     if test "${with_terminfo+set}" = set; then :
5136     withval=$with_terminfo; if test x$withval != x; then
5137 pcg 1.11
5138 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5139     #define RXVT_TERMINFO "$withval"
5140     _ACEOF
5141     terminfo="$withval"
5142     fi
5143     fi
5144 pcg 1.1
5145 pcg 1.11
5146 ayin 1.108
5147 sf-exg 1.132 LIBEV_M4_AVOID_LIBRT=1
5148 pcg 1.11
5149 sf-exg 1.132 ac_ext=cpp
5150     ac_cpp='$CXXCPP $CPPFLAGS'
5151     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5155     $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5156     if test -z "$CXXCPP"; then
5157 sf-exg 1.151 if ${ac_cv_prog_CXXCPP+:} false; then :
5158 sf-exg 1.132 $as_echo_n "(cached) " >&6
5159 pcg 1.1 else
5160 sf-exg 1.132 # Double quotes because CXXCPP needs to be expanded
5161     for CXXCPP in "$CXX -E" "/lib/cpp"
5162     do
5163     ac_preproc_ok=false
5164     for ac_cxx_preproc_warn_flag in '' yes
5165     do
5166     # Use a header file that comes with gcc, so configuring glibc
5167     # with a fresh cross-compiler works.
5168     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5169     # <limits.h> exists even on freestanding compilers.
5170     # On the NeXT, cc -E runs the code through the compiler's parser,
5171     # not just through cpp. "Syntax error" is here to catch this case.
5172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173 pcg 1.11 /* end confdefs.h. */
5174 sf-exg 1.132 #ifdef __STDC__
5175     # include <limits.h>
5176     #else
5177     # include <assert.h>
5178 pcg 1.11 #endif
5179 sf-exg 1.132 Syntax error
5180 pcg 1.11 _ACEOF
5181 sf-exg 1.132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5182    
5183 pcg 1.11 else
5184 sf-exg 1.132 # Broken: fails on valid input.
5185     continue
5186 pcg 1.11 fi
5187 root 1.137 rm -f conftest.err conftest.i conftest.$ac_ext
5188 ayin 1.108
5189 sf-exg 1.132 # OK, works on sane cases. Now check whether nonexistent headers
5190     # can be detected and how.
5191     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 pcg 1.11 /* end confdefs.h. */
5193 sf-exg 1.132 #include <ac_nonexistent.h>
5194 pcg 1.11 _ACEOF
5195 sf-exg 1.132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5196     # Broken: success on invalid input.
5197     continue
5198 pcg 1.11 else
5199 sf-exg 1.132 # Passes both tests.
5200     ac_preproc_ok=:
5201     break
5202 pcg 1.11 fi
5203 root 1.137 rm -f conftest.err conftest.i conftest.$ac_ext
5204 ayin 1.108
5205 sf-exg 1.132 done
5206     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 root 1.137 rm -f conftest.i conftest.err conftest.$ac_ext
5208 sf-exg 1.132 if $ac_preproc_ok; then :
5209     break
5210 pcg 1.1 fi
5211    
5212 sf-exg 1.132 done
5213     ac_cv_prog_CXXCPP=$CXXCPP
5214 pcg 1.1
5215 sf-exg 1.132 fi
5216     CXXCPP=$ac_cv_prog_CXXCPP
5217 pcg 1.11 else
5218 sf-exg 1.132 ac_cv_prog_CXXCPP=$CXXCPP
5219     fi
5220     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5221     $as_echo "$CXXCPP" >&6; }
5222     ac_preproc_ok=false
5223     for ac_cxx_preproc_warn_flag in '' yes
5224     do
5225     # Use a header file that comes with gcc, so configuring glibc
5226     # with a fresh cross-compiler works.
5227     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228     # <limits.h> exists even on freestanding compilers.
5229     # On the NeXT, cc -E runs the code through the compiler's parser,
5230     # not just through cpp. "Syntax error" is here to catch this case.
5231     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 pcg 1.11 /* end confdefs.h. */
5233     #ifdef __STDC__
5234     # include <limits.h>
5235     #else
5236     # include <assert.h>
5237     #endif
5238 sf-exg 1.132 Syntax error
5239     _ACEOF
5240     if ac_fn_cxx_try_cpp "$LINENO"; then :
5241 pcg 1.11
5242 sf-exg 1.132 else
5243     # Broken: fails on valid input.
5244     continue
5245     fi
5246 root 1.137 rm -f conftest.err conftest.i conftest.$ac_ext
5247 pcg 1.11
5248 sf-exg 1.132 # OK, works on sane cases. Now check whether nonexistent headers
5249     # can be detected and how.
5250     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251     /* end confdefs.h. */
5252     #include <ac_nonexistent.h>
5253 pcg 1.11 _ACEOF
5254 sf-exg 1.132 if ac_fn_cxx_try_cpp "$LINENO"; then :
5255     # Broken: success on invalid input.
5256     continue
5257 pcg 1.11 else
5258 sf-exg 1.132 # Passes both tests.
5259     ac_preproc_ok=:
5260     break
5261     fi
5262 root 1.137 rm -f conftest.err conftest.i conftest.$ac_ext
5263 sf-exg 1.132
5264     done
5265     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5266 root 1.137 rm -f conftest.i conftest.err conftest.$ac_ext
5267 sf-exg 1.132 if $ac_preproc_ok; then :
5268 pcg 1.11
5269 sf-exg 1.132 else
5270     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5271     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5272 root 1.137 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5273 sf-exg 1.151 See \`config.log' for more details" "$LINENO" 5; }
5274 pcg 1.1 fi
5275 ayin 1.108
5276 sf-exg 1.132 ac_ext=cpp
5277     ac_cpp='$CXXCPP $CPPFLAGS'
5278     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5279     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5280     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5281 pcg 1.1
5282 pcg 1.11
5283 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
5284     do :
5285     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5286     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5287 root 1.137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5288 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5289     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5290 pcg 1.11 _ACEOF
5291    
5292     fi
5293 ayin 1.108
5294 sf-exg 1.132 done
5295 pcg 1.1
5296    
5297 sf-exg 1.132 for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5298     do :
5299     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5300     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5301 root 1.137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5302 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5303     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5304 pcg 1.11 _ACEOF
5305    
5306 sf-exg 1.132 fi
5307     done
5308 pcg 1.11
5309    
5310 root 1.143 for ac_func in clock_gettime
5311     do :
5312     ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5313 sf-exg 1.151 if test "x$ac_cv_func_clock_gettime" = xyes; then :
5314 root 1.143 cat >>confdefs.h <<_ACEOF
5315     #define HAVE_CLOCK_GETTIME 1
5316     _ACEOF
5317 pcg 1.11
5318 sf-exg 1.132 else
5319 pcg 1.1
5320 sf-exg 1.132 if test $(uname) = Linux; then
5321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5322     $as_echo_n "checking for clock_gettime syscall... " >&6; }
5323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324     /* end confdefs.h. */
5325     #include <unistd.h>
5326     #include <sys/syscall.h>
5327     #include <time.h>
5328 pcg 1.11 int
5329     main ()
5330     {
5331 sf-exg 1.132 struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5332 pcg 1.11 ;
5333     return 0;
5334     }
5335     _ACEOF
5336 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5337     ac_have_clock_syscall=1
5338 pcg 1.11
5339 sf-exg 1.132 $as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5340 ayin 1.108
5341 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5342     $as_echo "yes" >&6; }
5343     else
5344     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345     $as_echo "no" >&6; }
5346 pcg 1.1 fi
5347 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5348     conftest$ac_exeext conftest.$ac_ext
5349     fi
5350     if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5352     $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5353 sf-exg 1.151 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
5354 sf-exg 1.132 $as_echo_n "(cached) " >&6
5355 pcg 1.1 else
5356 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5357 sf-exg 1.132 LIBS="-lrt $LIBS"
5358     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5359 pcg 1.11 /* end confdefs.h. */
5360    
5361 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5362     Use char because int might match the return type of a GCC
5363     builtin and then its argument prototype would still apply. */
5364 pcg 1.11 #ifdef __cplusplus
5365     extern "C"
5366     #endif
5367 sf-exg 1.132 char clock_gettime ();
5368 pcg 1.11 int
5369     main ()
5370     {
5371 sf-exg 1.132 return clock_gettime ();
5372 pcg 1.11 ;
5373     return 0;
5374     }
5375     _ACEOF
5376 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5377     ac_cv_lib_rt_clock_gettime=yes
5378 pcg 1.11 else
5379 sf-exg 1.132 ac_cv_lib_rt_clock_gettime=no
5380 pcg 1.11 fi
5381 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5382     conftest$ac_exeext conftest.$ac_ext
5383 pcg 1.11 LIBS=$ac_check_lib_save_LIBS
5384     fi
5385 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5386     $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5387 sf-exg 1.151 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
5388 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5389     #define HAVE_LIBRT 1
5390     _ACEOF
5391    
5392     LIBS="-lrt $LIBS"
5393    
5394 pcg 1.1 fi
5395    
5396 sf-exg 1.132 unset ac_cv_func_clock_gettime
5397     for ac_func in clock_gettime
5398     do :
5399     ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5400 sf-exg 1.151 if test "x$ac_cv_func_clock_gettime" = xyes; then :
5401 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5402     #define HAVE_CLOCK_GETTIME 1
5403     _ACEOF
5404 pcg 1.1
5405 sf-exg 1.132 fi
5406     done
5407 pcg 1.11
5408 sf-exg 1.132 fi
5409 pcg 1.11
5410 sf-exg 1.132 fi
5411 root 1.143 done
5412 pcg 1.11
5413    
5414 root 1.143 for ac_func in nanosleep
5415     do :
5416     ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5417 sf-exg 1.151 if test "x$ac_cv_func_nanosleep" = xyes; then :
5418 root 1.143 cat >>confdefs.h <<_ACEOF
5419     #define HAVE_NANOSLEEP 1
5420     _ACEOF
5421 pcg 1.11
5422     else
5423 pcg 1.1
5424 sf-exg 1.132 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5426     $as_echo_n "checking for nanosleep in -lrt... " >&6; }
5427 sf-exg 1.151 if ${ac_cv_lib_rt_nanosleep+:} false; then :
5428 sf-exg 1.132 $as_echo_n "(cached) " >&6
5429 pcg 1.1 else
5430 pcg 1.11 ac_check_lib_save_LIBS=$LIBS
5431 sf-exg 1.132 LIBS="-lrt $LIBS"
5432     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 pcg 1.11 /* end confdefs.h. */
5434    
5435 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5436     Use char because int might match the return type of a GCC
5437     builtin and then its argument prototype would still apply. */
5438 pcg 1.11 #ifdef __cplusplus
5439     extern "C"
5440     #endif
5441 sf-exg 1.132 char nanosleep ();
5442 pcg 1.11 int
5443     main ()
5444     {
5445 sf-exg 1.132 return nanosleep ();
5446 pcg 1.11 ;
5447     return 0;
5448     }
5449     _ACEOF
5450 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5451     ac_cv_lib_rt_nanosleep=yes
5452 pcg 1.11 else
5453 sf-exg 1.132 ac_cv_lib_rt_nanosleep=no
5454     fi
5455     rm -f core conftest.err conftest.$ac_objext \
5456     conftest$ac_exeext conftest.$ac_ext
5457     LIBS=$ac_check_lib_save_LIBS
5458     fi
5459     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5460     $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5461 sf-exg 1.151 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
5462 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5463     #define HAVE_LIBRT 1
5464     _ACEOF
5465    
5466     LIBS="-lrt $LIBS"
5467 pcg 1.11
5468     fi
5469 ayin 1.108
5470 sf-exg 1.132 unset ac_cv_func_nanosleep
5471     for ac_func in nanosleep
5472     do :
5473     ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5474 sf-exg 1.151 if test "x$ac_cv_func_nanosleep" = xyes; then :
5475 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
5476     #define HAVE_NANOSLEEP 1
5477     _ACEOF
5478    
5479 pcg 1.11 fi
5480 sf-exg 1.132 done
5481    
5482     fi
5483    
5484 pcg 1.1 fi
5485 root 1.143 done
5486 pcg 1.1
5487    
5488 root 1.143 if test -z "$LIBEV_M4_AVOID_LIBM"; then
5489     LIBM=m
5490     fi
5491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5492     $as_echo_n "checking for library containing floor... " >&6; }
5493 sf-exg 1.151 if ${ac_cv_search_floor+:} false; then :
5494 sf-exg 1.132 $as_echo_n "(cached) " >&6
5495 pcg 1.1 else
5496 root 1.143 ac_func_search_save_LIBS=$LIBS
5497 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 pcg 1.11 /* end confdefs.h. */
5499    
5500 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
5501     Use char because int might match the return type of a GCC
5502     builtin and then its argument prototype would still apply. */
5503 pcg 1.11 #ifdef __cplusplus
5504     extern "C"
5505     #endif
5506 root 1.143 char floor ();
5507 pcg 1.11 int
5508     main ()
5509     {
5510 root 1.143 return floor ();
5511 pcg 1.11 ;
5512     return 0;
5513     }
5514     _ACEOF
5515 root 1.143 for ac_lib in '' $LIBM; do
5516     if test -z "$ac_lib"; then
5517     ac_res="none required"
5518     else
5519     ac_res=-l$ac_lib
5520     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5521     fi
5522     if ac_fn_cxx_try_link "$LINENO"; then :
5523     ac_cv_search_floor=$ac_res
5524     fi
5525     rm -f core conftest.err conftest.$ac_objext \
5526     conftest$ac_exeext
5527 sf-exg 1.151 if ${ac_cv_search_floor+:} false; then :
5528 root 1.143 break
5529     fi
5530     done
5531 sf-exg 1.151 if ${ac_cv_search_floor+:} false; then :
5532 root 1.143
5533 pcg 1.11 else
5534 root 1.143 ac_cv_search_floor=no
5535 pcg 1.11 fi
5536 root 1.143 rm conftest.$ac_ext
5537     LIBS=$ac_func_search_save_LIBS
5538 pcg 1.11 fi
5539 root 1.143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5540     $as_echo "$ac_cv_search_floor" >&6; }
5541     ac_res=$ac_cv_search_floor
5542     if test "$ac_res" != no; then :
5543     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5544 pcg 1.1
5545 root 1.143 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
5546 pcg 1.1
5547     fi
5548    
5549    
5550 root 1.103
5551    
5552 sf-exg 1.132
5553     # Extract the first word of "tic", so it can be a program name with args.
5554     set dummy tic; ac_word=$2
5555     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556     $as_echo_n "checking for $ac_word... " >&6; }
5557 sf-exg 1.151 if ${ac_cv_path_TIC+:} false; then :
5558 sf-exg 1.132 $as_echo_n "(cached) " >&6
5559 root 1.103 else
5560 sf-exg 1.132 case $TIC in
5561 root 1.103 [\\/]* | ?:[\\/]*)
5562 sf-exg 1.132 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5563 root 1.103 ;;
5564     *)
5565     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566     for as_dir in $PATH
5567     do
5568     IFS=$as_save_IFS
5569     test -z "$as_dir" && as_dir=.
5570 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
5571 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 sf-exg 1.132 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 root 1.103 break 2
5575     fi
5576     done
5577 sf-exg 1.132 done
5578 ayin 1.108 IFS=$as_save_IFS
5579 root 1.103
5580 sf-exg 1.132 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5581 root 1.103 ;;
5582     esac
5583     fi
5584 sf-exg 1.132 TIC=$ac_cv_path_TIC
5585     if test -n "$TIC"; then
5586     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5587     $as_echo "$TIC" >&6; }
5588     else
5589     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5590     $as_echo "no" >&6; }
5591     fi
5592    
5593    
5594    
5595     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5596     $as_echo_n "checking for X... " >&6; }
5597    
5598    
5599     # Check whether --with-x was given.
5600     if test "${with_x+set}" = set; then :
5601     withval=$with_x;
5602     fi
5603    
5604     # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5605     if test "x$with_x" = xno; then
5606     # The user explicitly disabled X.
5607     have_x=disabled
5608     else
5609     case $x_includes,$x_libraries in #(
5610 sf-exg 1.151 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5611     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5612 sf-exg 1.132 $as_echo_n "(cached) " >&6
5613 root 1.103 else
5614 sf-exg 1.132 # One or both of the vars are not set, and there is no cached value.
5615     ac_x_includes=no ac_x_libraries=no
5616     rm -f -r conftest.dir
5617     if mkdir conftest.dir; then
5618     cd conftest.dir
5619     cat >Imakefile <<'_ACEOF'
5620     incroot:
5621     @echo incroot='${INCROOT}'
5622     usrlibdir:
5623     @echo usrlibdir='${USRLIBDIR}'
5624     libdir:
5625     @echo libdir='${LIBDIR}'
5626     _ACEOF
5627     if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5628 root 1.137 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5629 sf-exg 1.132 for ac_var in incroot usrlibdir libdir; do
5630     eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5631     done
5632     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5633     for ac_extension in a so sl dylib la dll; do
5634     if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5635     test -f "$ac_im_libdir/libX11.$ac_extension"; then
5636     ac_im_usrlibdir=$ac_im_libdir; break
5637     fi
5638     done
5639     # Screen out bogus values from the imake configuration. They are
5640     # bogus both because they are the default anyway, and because
5641     # using them would break gcc on systems where it needs fixed includes.
5642     case $ac_im_incroot in
5643     /usr/include) ac_x_includes= ;;
5644     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5645     esac
5646     case $ac_im_usrlibdir in
5647     /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5648     *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5649     esac
5650     fi
5651     cd ..
5652     rm -f -r conftest.dir
5653 root 1.103 fi
5654    
5655 sf-exg 1.132 # Standard set of common directories for X headers.
5656     # Check X11 before X11Rn because it is often a symlink to the current release.
5657     ac_x_header_dirs='
5658     /usr/X11/include
5659     /usr/X11R7/include
5660     /usr/X11R6/include
5661     /usr/X11R5/include
5662     /usr/X11R4/include
5663    
5664     /usr/include/X11
5665     /usr/include/X11R7
5666     /usr/include/X11R6
5667     /usr/include/X11R5
5668     /usr/include/X11R4
5669    
5670     /usr/local/X11/include
5671     /usr/local/X11R7/include
5672     /usr/local/X11R6/include
5673     /usr/local/X11R5/include
5674     /usr/local/X11R4/include
5675    
5676     /usr/local/include/X11
5677     /usr/local/include/X11R7
5678     /usr/local/include/X11R6
5679     /usr/local/include/X11R5
5680     /usr/local/include/X11R4
5681    
5682     /usr/X386/include
5683     /usr/x386/include
5684     /usr/XFree86/include/X11
5685    
5686     /usr/include
5687     /usr/local/include
5688     /usr/unsupported/include
5689     /usr/athena/include
5690     /usr/local/x11r5/include
5691     /usr/lpp/Xamples/include
5692    
5693     /usr/openwin/include
5694     /usr/openwin/share/include'
5695 ayin 1.108
5696 sf-exg 1.132 if test "$ac_x_includes" = no; then
5697     # Guess where to find include files, by looking for Xlib.h.
5698     # First, try using that file with no special directory specified.
5699     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700     /* end confdefs.h. */
5701     #include <X11/Xlib.h>
5702     _ACEOF
5703     if ac_fn_cxx_try_cpp "$LINENO"; then :
5704     # We can compile using X headers with no special include directory.
5705     ac_x_includes=
5706     else
5707     for ac_dir in $ac_x_header_dirs; do
5708     if test -r "$ac_dir/X11/Xlib.h"; then
5709     ac_x_includes=$ac_dir
5710     break
5711 root 1.103 fi
5712 sf-exg 1.132 done
5713     fi
5714 root 1.137 rm -f conftest.err conftest.i conftest.$ac_ext
5715 sf-exg 1.132 fi # $ac_x_includes = no
5716    
5717     if test "$ac_x_libraries" = no; then
5718     # Check for the libraries.
5719     # See if we find them without any special options.
5720     # Don't add to $LIBS permanently.
5721     ac_save_LIBS=$LIBS
5722     LIBS="-lX11 $LIBS"
5723     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724     /* end confdefs.h. */
5725     #include <X11/Xlib.h>
5726     int
5727     main ()
5728     {
5729     XrmInitialize ()
5730     ;
5731     return 0;
5732     }
5733     _ACEOF
5734     if ac_fn_cxx_try_link "$LINENO"; then :
5735     LIBS=$ac_save_LIBS
5736     # We can link X programs with no special library path.
5737     ac_x_libraries=
5738     else
5739     LIBS=$ac_save_LIBS
5740     for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5741     do
5742     # Don't even attempt the hair of trying to link an X program!
5743     for ac_extension in a so sl dylib la dll; do
5744     if test -r "$ac_dir/libX11.$ac_extension"; then
5745     ac_x_libraries=$ac_dir
5746     break 2
5747 root 1.103 fi
5748 sf-exg 1.132 done
5749     done
5750 root 1.103 fi
5751 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5752     conftest$ac_exeext conftest.$ac_ext
5753     fi # $ac_x_libraries = no
5754 root 1.103
5755 sf-exg 1.132 case $ac_x_includes,$ac_x_libraries in #(
5756     no,* | *,no | *\'*)
5757     # Didn't find X, or a directory has "'" in its name.
5758     ac_cv_have_x="have_x=no";; #(
5759     *)
5760     # Record where we found X for the cache.
5761     ac_cv_have_x="have_x=yes\
5762     ac_x_includes='$ac_x_includes'\
5763     ac_x_libraries='$ac_x_libraries'"
5764     esac
5765     fi
5766     ;; #(
5767     *) have_x=yes;;
5768     esac
5769     eval "$ac_cv_have_x"
5770     fi # $with_x != no
5771 pcg 1.11
5772 sf-exg 1.132 if test "$have_x" != yes; then
5773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5774     $as_echo "$have_x" >&6; }
5775     no_x=yes
5776     else
5777     # If each of the values was on the command line, it overrides each guess.
5778     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5779     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5780     # Update the cache value to reflect the command line values.
5781     ac_cv_have_x="have_x=yes\
5782     ac_x_includes='$x_includes'\
5783     ac_x_libraries='$x_libraries'"
5784     { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5785     $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5786     fi
5787 pcg 1.11
5788 sf-exg 1.132 if test "$no_x" = yes; then
5789     # Not all programs may use this symbol, but it does not hurt to define it.
5790 pcg 1.11
5791 sf-exg 1.132 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5792 pcg 1.11
5793 sf-exg 1.132 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5794     else
5795     if test -n "$x_includes"; then
5796     X_CFLAGS="$X_CFLAGS -I$x_includes"
5797     fi
5798 pcg 1.11
5799 sf-exg 1.132 # It would also be nice to do this for all -L options, not just this one.
5800     if test -n "$x_libraries"; then
5801     X_LIBS="$X_LIBS -L$x_libraries"
5802     # For Solaris; some versions of Sun CC require a space after -R and
5803     # others require no space. Words are not sufficient . . . .
5804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5805     $as_echo_n "checking whether -R must be followed by a space... " >&6; }
5806     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5807     ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5808     ac_cxx_werror_flag=yes
5809     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5810     /* end confdefs.h. */
5811 pcg 1.11
5812 sf-exg 1.132 int
5813     main ()
5814     {
5815 pcg 1.11
5816 sf-exg 1.132 ;
5817     return 0;
5818     }
5819     _ACEOF
5820     if ac_fn_cxx_try_link "$LINENO"; then :
5821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822     $as_echo "no" >&6; }
5823     X_LIBS="$X_LIBS -R$x_libraries"
5824 pcg 1.11 else
5825 sf-exg 1.132 LIBS="$ac_xsave_LIBS -R $x_libraries"
5826     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5827 pcg 1.11 /* end confdefs.h. */
5828 sf-exg 1.132
5829     int
5830     main ()
5831     {
5832    
5833     ;
5834     return 0;
5835     }
5836 pcg 1.11 _ACEOF
5837 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5839     $as_echo "yes" >&6; }
5840     X_LIBS="$X_LIBS -R $x_libraries"
5841 pcg 1.11 else
5842 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5843     $as_echo "neither works" >&6; }
5844     fi
5845     rm -f core conftest.err conftest.$ac_objext \
5846     conftest$ac_exeext conftest.$ac_ext
5847 pcg 1.11 fi
5848 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5849     conftest$ac_exeext conftest.$ac_ext
5850     ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5851     LIBS=$ac_xsave_LIBS
5852     fi
5853 ayin 1.108
5854 sf-exg 1.132 # Check for system-dependent libraries X programs must link with.
5855     # Do this before checking for the system-independent R6 libraries
5856     # (-lICE), since we may need -lsocket or whatever for X linking.
5857 pcg 1.11
5858 sf-exg 1.132 if test "$ISC" = yes; then
5859     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
5860     else
5861     # Martyn Johnson says this is needed for Ultrix, if the X
5862     # libraries were built with DECnet support. And Karl Berry says
5863     # the Alpha needs dnet_stub (dnet does not exist).
5864     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5865     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 pcg 1.11 /* end confdefs.h. */
5867 sf-exg 1.132
5868     /* Override any GCC internal prototype to avoid an error.
5869     Use char because int might match the return type of a GCC
5870     builtin and then its argument prototype would still apply. */
5871     #ifdef __cplusplus
5872     extern "C"
5873     #endif
5874     char XOpenDisplay ();
5875     int
5876     main ()
5877     {
5878     return XOpenDisplay ();
5879     ;
5880     return 0;
5881     }
5882 pcg 1.11 _ACEOF
5883 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5884    
5885     else
5886     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5887     $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5888 sf-exg 1.151 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5889 sf-exg 1.132 $as_echo_n "(cached) " >&6
5890 pcg 1.1 else
5891 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5892     LIBS="-ldnet $LIBS"
5893     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5894     /* end confdefs.h. */
5895 pcg 1.11
5896 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
5897     Use char because int might match the return type of a GCC
5898     builtin and then its argument prototype would still apply. */
5899     #ifdef __cplusplus
5900     extern "C"
5901     #endif
5902     char dnet_ntoa ();
5903     int
5904     main ()
5905     {
5906     return dnet_ntoa ();
5907     ;
5908     return 0;
5909     }
5910     _ACEOF
5911     if ac_fn_cxx_try_link "$LINENO"; then :
5912     ac_cv_lib_dnet_dnet_ntoa=yes
5913 pcg 1.1 else
5914 sf-exg 1.132 ac_cv_lib_dnet_dnet_ntoa=no
5915 pcg 1.1 fi
5916 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5917     conftest$ac_exeext conftest.$ac_ext
5918     LIBS=$ac_check_lib_save_LIBS
5919 pcg 1.1 fi
5920 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5921     $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5922 sf-exg 1.151 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5923 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5924 pcg 1.1 fi
5925 pcg 1.11
5926 sf-exg 1.132 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5927     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5928     $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5929 sf-exg 1.151 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5930 sf-exg 1.132 $as_echo_n "(cached) " >&6
5931 pcg 1.11 else
5932 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5933     LIBS="-ldnet_stub $LIBS"
5934     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 pcg 1.11 /* end confdefs.h. */
5936 sf-exg 1.132
5937     /* Override any GCC internal prototype to avoid an error.
5938     Use char because int might match the return type of a GCC
5939     builtin and then its argument prototype would still apply. */
5940     #ifdef __cplusplus
5941     extern "C"
5942     #endif
5943     char dnet_ntoa ();
5944 pcg 1.11 int
5945     main ()
5946     {
5947 sf-exg 1.132 return dnet_ntoa ();
5948 pcg 1.11 ;
5949     return 0;
5950     }
5951     _ACEOF
5952 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
5953     ac_cv_lib_dnet_stub_dnet_ntoa=yes
5954 pcg 1.1 else
5955 sf-exg 1.132 ac_cv_lib_dnet_stub_dnet_ntoa=no
5956     fi
5957     rm -f core conftest.err conftest.$ac_objext \
5958     conftest$ac_exeext conftest.$ac_ext
5959     LIBS=$ac_check_lib_save_LIBS
5960     fi
5961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5962     $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5963 sf-exg 1.151 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5964 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5965 pcg 1.1 fi
5966 ayin 1.108
5967 sf-exg 1.132 fi
5968 pcg 1.1 fi
5969 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
5970     conftest$ac_exeext conftest.$ac_ext
5971     LIBS="$ac_xsave_LIBS"
5972 pcg 1.1
5973 sf-exg 1.132 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5974     # to get the SysV transport functions.
5975     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5976     # needs -lnsl.
5977     # The nsl library prevents programs from opening the X display
5978     # on Irix 5.2, according to T.E. Dickey.
5979     # The functions gethostbyname, getservbyname, and inet_addr are
5980     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5981     ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5982 sf-exg 1.151 if test "x$ac_cv_func_gethostbyname" = xyes; then :
5983 pcg 1.1
5984     fi
5985    
5986 sf-exg 1.132 if test $ac_cv_func_gethostbyname = no; then
5987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5988     $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5989 sf-exg 1.151 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5990 sf-exg 1.132 $as_echo_n "(cached) " >&6
5991 root 1.99 else
5992 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
5993     LIBS="-lnsl $LIBS"
5994     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 root 1.99 /* end confdefs.h. */
5996    
5997 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
5998     Use char because int might match the return type of a GCC
5999     builtin and then its argument prototype would still apply. */
6000     #ifdef __cplusplus
6001     extern "C"
6002     #endif
6003     char gethostbyname ();
6004 root 1.99 int
6005     main ()
6006     {
6007 sf-exg 1.132 return gethostbyname ();
6008 root 1.99 ;
6009     return 0;
6010     }
6011     _ACEOF
6012 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6013     ac_cv_lib_nsl_gethostbyname=yes
6014 root 1.99 else
6015 sf-exg 1.132 ac_cv_lib_nsl_gethostbyname=no
6016 root 1.99 fi
6017 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
6018     conftest$ac_exeext conftest.$ac_ext
6019     LIBS=$ac_check_lib_save_LIBS
6020 root 1.99 fi
6021 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6022     $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6023 sf-exg 1.151 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6024 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6025 root 1.99 fi
6026 pcg 1.1
6027 sf-exg 1.132 if test $ac_cv_lib_nsl_gethostbyname = no; then
6028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6029     $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6030 sf-exg 1.151 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
6031 sf-exg 1.132 $as_echo_n "(cached) " >&6
6032 pcg 1.11 else
6033 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6034     LIBS="-lbsd $LIBS"
6035     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 pcg 1.11 /* end confdefs.h. */
6037 sf-exg 1.132
6038     /* Override any GCC internal prototype to avoid an error.
6039     Use char because int might match the return type of a GCC
6040     builtin and then its argument prototype would still apply. */
6041     #ifdef __cplusplus
6042     extern "C"
6043     #endif
6044     char gethostbyname ();
6045 pcg 1.11 int
6046     main ()
6047     {
6048 sf-exg 1.132 return gethostbyname ();
6049 pcg 1.11 ;
6050     return 0;
6051     }
6052     _ACEOF
6053 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6054     ac_cv_lib_bsd_gethostbyname=yes
6055 pcg 1.1 else
6056 sf-exg 1.132 ac_cv_lib_bsd_gethostbyname=no
6057     fi
6058     rm -f core conftest.err conftest.$ac_objext \
6059     conftest$ac_exeext conftest.$ac_ext
6060     LIBS=$ac_check_lib_save_LIBS
6061     fi
6062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6063     $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6064 sf-exg 1.151 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
6065 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6066 pcg 1.1 fi
6067 ayin 1.108
6068 sf-exg 1.132 fi
6069     fi
6070 pcg 1.1
6071 sf-exg 1.132 # lieder@skyler.mavd.honeywell.com says without -lsocket,
6072     # socket/setsockopt and other routines are undefined under SCO ODT
6073     # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6074     # on later versions), says Simon Leinen: it contains gethostby*
6075     # variants that don't use the name server (or something). -lsocket
6076     # must be given before -lnsl if both are needed. We assume that
6077     # if connect needs -lnsl, so does gethostbyname.
6078     ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6079 sf-exg 1.151 if test "x$ac_cv_func_connect" = xyes; then :
6080 pcg 1.1
6081     fi
6082    
6083 sf-exg 1.132 if test $ac_cv_func_connect = no; then
6084     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6085     $as_echo_n "checking for connect in -lsocket... " >&6; }
6086 sf-exg 1.151 if ${ac_cv_lib_socket_connect+:} false; then :
6087 sf-exg 1.132 $as_echo_n "(cached) " >&6
6088 pcg 1.11 else
6089 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6090     LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6091     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092 pcg 1.11 /* end confdefs.h. */
6093 sf-exg 1.132
6094     /* Override any GCC internal prototype to avoid an error.
6095     Use char because int might match the return type of a GCC
6096     builtin and then its argument prototype would still apply. */
6097     #ifdef __cplusplus
6098     extern "C"
6099     #endif
6100     char connect ();
6101 pcg 1.11 int
6102     main ()
6103     {
6104 sf-exg 1.132 return connect ();
6105 pcg 1.11 ;
6106     return 0;
6107     }
6108     _ACEOF
6109 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6110     ac_cv_lib_socket_connect=yes
6111 pcg 1.1 else
6112 sf-exg 1.132 ac_cv_lib_socket_connect=no
6113     fi
6114     rm -f core conftest.err conftest.$ac_objext \
6115     conftest$ac_exeext conftest.$ac_ext
6116     LIBS=$ac_check_lib_save_LIBS
6117     fi
6118     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6119     $as_echo "$ac_cv_lib_socket_connect" >&6; }
6120 sf-exg 1.151 if test "x$ac_cv_lib_socket_connect" = xyes; then :
6121 sf-exg 1.132 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6122 pcg 1.1 fi
6123 ayin 1.108
6124 sf-exg 1.132 fi
6125 pcg 1.1
6126 sf-exg 1.132 # Guillermo Gomez says -lposix is necessary on A/UX.
6127     ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6128 sf-exg 1.151 if test "x$ac_cv_func_remove" = xyes; then :
6129 pcg 1.1
6130     fi
6131    
6132 sf-exg 1.132 if test $ac_cv_func_remove = no; then
6133     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6134     $as_echo_n "checking for remove in -lposix... " >&6; }
6135 sf-exg 1.151 if ${ac_cv_lib_posix_remove+:} false; then :
6136 sf-exg 1.132 $as_echo_n "(cached) " >&6
6137 pcg 1.1 else
6138 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6139     LIBS="-lposix $LIBS"
6140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 pcg 1.11 /* end confdefs.h. */
6142    
6143 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
6144     Use char because int might match the return type of a GCC
6145     builtin and then its argument prototype would still apply. */
6146     #ifdef __cplusplus
6147     extern "C"
6148     #endif
6149     char remove ();
6150     int
6151     main ()
6152     {
6153     return remove ();
6154     ;
6155     return 0;
6156     }
6157 pcg 1.11 _ACEOF
6158 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6159     ac_cv_lib_posix_remove=yes
6160 pcg 1.1 else
6161 sf-exg 1.132 ac_cv_lib_posix_remove=no
6162     fi
6163     rm -f core conftest.err conftest.$ac_objext \
6164     conftest$ac_exeext conftest.$ac_ext
6165     LIBS=$ac_check_lib_save_LIBS
6166 pcg 1.1 fi
6167 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6168     $as_echo "$ac_cv_lib_posix_remove" >&6; }
6169 sf-exg 1.151 if test "x$ac_cv_lib_posix_remove" = xyes; then :
6170 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6171 pcg 1.1 fi
6172    
6173 sf-exg 1.132 fi
6174 pcg 1.11
6175 sf-exg 1.132 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6176     ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6177 sf-exg 1.151 if test "x$ac_cv_func_shmat" = xyes; then :
6178 pcg 1.1
6179     fi
6180    
6181 sf-exg 1.132 if test $ac_cv_func_shmat = no; then
6182     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6183     $as_echo_n "checking for shmat in -lipc... " >&6; }
6184 sf-exg 1.151 if ${ac_cv_lib_ipc_shmat+:} false; then :
6185 sf-exg 1.132 $as_echo_n "(cached) " >&6
6186 pcg 1.11 else
6187 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6188     LIBS="-lipc $LIBS"
6189     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190 pcg 1.11 /* end confdefs.h. */
6191 pcg 1.1
6192 sf-exg 1.132 /* Override any GCC internal prototype to avoid an error.
6193     Use char because int might match the return type of a GCC
6194     builtin and then its argument prototype would still apply. */
6195     #ifdef __cplusplus
6196     extern "C"
6197     #endif
6198     char shmat ();
6199 pcg 1.11 int
6200     main ()
6201 pcg 1.1 {
6202 sf-exg 1.132 return shmat ();
6203 pcg 1.11 ;
6204     return 0;
6205 pcg 1.1 }
6206 pcg 1.11 _ACEOF
6207 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6208     ac_cv_lib_ipc_shmat=yes
6209 ayin 1.122 else
6210 sf-exg 1.132 ac_cv_lib_ipc_shmat=no
6211 ayin 1.122 fi
6212 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
6213     conftest$ac_exeext conftest.$ac_ext
6214     LIBS=$ac_check_lib_save_LIBS
6215 pcg 1.11 fi
6216 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6217     $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6218 sf-exg 1.151 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6219 sf-exg 1.132 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6220 pcg 1.11 fi
6221 ayin 1.108
6222 sf-exg 1.132 fi
6223     fi
6224 pcg 1.1
6225 sf-exg 1.132 # Check for libraries that X11R6 Xt/Xaw programs need.
6226     ac_save_LDFLAGS=$LDFLAGS
6227     test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
6228     # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
6229     # check for ICE first), but we must link in the order -lSM -lICE or
6230     # we get undefined symbols. So assume we have SM if we have ICE.
6231     # These have to be linked with before -lX11, unlike the other
6232     # libraries we check for below, so use a different variable.
6233     # John Interrante, Karl Berry
6234     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6235     $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6236 sf-exg 1.151 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6237 sf-exg 1.132 $as_echo_n "(cached) " >&6
6238 pcg 1.1 else
6239 sf-exg 1.132 ac_check_lib_save_LIBS=$LIBS
6240     LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6241     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 pcg 1.11 /* end confdefs.h. */
6243 sf-exg 1.132
6244     /* Override any GCC internal prototype to avoid an error.
6245     Use char because int might match the return type of a GCC
6246     builtin and then its argument prototype would still apply. */
6247     #ifdef __cplusplus
6248     extern "C"
6249     #endif
6250     char IceConnectionNumber ();
6251 pcg 1.11 int
6252     main ()
6253     {
6254 sf-exg 1.132 return IceConnectionNumber ();
6255 pcg 1.11 ;
6256     return 0;
6257     }
6258     _ACEOF
6259 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6260     ac_cv_lib_ICE_IceConnectionNumber=yes
6261 pcg 1.1 else
6262 sf-exg 1.132 ac_cv_lib_ICE_IceConnectionNumber=no
6263     fi
6264     rm -f core conftest.err conftest.$ac_objext \
6265     conftest$ac_exeext conftest.$ac_ext
6266     LIBS=$ac_check_lib_save_LIBS
6267     fi
6268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6269     $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6270 sf-exg 1.151 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6271 sf-exg 1.132 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6272     fi
6273 pcg 1.11
6274 sf-exg 1.132 LDFLAGS=$ac_save_LDFLAGS
6275 ayin 1.122
6276 pcg 1.1 fi
6277 ayin 1.108
6278 ayin 1.122
6279 sf-exg 1.135 image_lib=none
6280    
6281 sf-exg 1.134 PIXBUF_CFLAGS=
6282     PIXBUF_LIBS=
6283    
6284     if test x$support_pixbuf = xyes; then
6285     support_pixbuf=no
6286     # Extract the first word of "pkg-config", so it can be a program name with args.
6287     set dummy pkg-config; ac_word=$2
6288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289     $as_echo_n "checking for $ac_word... " >&6; }
6290 sf-exg 1.151 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6291 sf-exg 1.134 $as_echo_n "(cached) " >&6
6292     else
6293     case $PKG_CONFIG in
6294     [\\/]* | ?:[\\/]*)
6295     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6296     ;;
6297     *)
6298     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299     for as_dir in $PATH
6300     do
6301     IFS=$as_save_IFS
6302     test -z "$as_dir" && as_dir=.
6303     for ac_exec_ext in '' $ac_executable_extensions; do
6304     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308     fi
6309     done
6310     done
6311     IFS=$as_save_IFS
6312    
6313     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6314     ;;
6315     esac
6316     fi
6317     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6318     if test -n "$PKG_CONFIG"; then
6319     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6320     $as_echo "$PKG_CONFIG" >&6; }
6321     else
6322     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323     $as_echo "no" >&6; }
6324     fi
6325    
6326    
6327     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
6328     $as_echo_n "checking for gdk-pixbuf... " >&6; }
6329 sf-exg 1.138 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6330     PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
6331     PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
6332 sf-exg 1.134 support_pixbuf=yes
6333     fi
6334    
6335     if test x$support_pixbuf = xyes; then
6336     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6337     $as_echo "ok" >&6; }
6338 sf-exg 1.135 image_lib=gdk-pixbuf
6339 sf-exg 1.134 support_afterimage=no
6340    
6341     $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6342    
6343    
6344     $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6345    
6346     else
6347     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6348     $as_echo "no" >&6; }
6349     fi
6350     fi
6351    
6352    
6353    
6354    
6355 mikachu 1.147 STARTUP_NOTIFICATION_CFLAGS=
6356     STARTUP_NOTIFICATION_LIBS=
6357    
6358     if test x$support_startup_notification = xyes; then
6359     support_startup_notification=no
6360     # Extract the first word of "pkg-config", so it can be a program name with args.
6361     set dummy pkg-config; ac_word=$2
6362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363     $as_echo_n "checking for $ac_word... " >&6; }
6364 sf-exg 1.151 if ${ac_cv_path_PKG_CONFIG+:} false; then :
6365 mikachu 1.147 $as_echo_n "(cached) " >&6
6366     else
6367     case $PKG_CONFIG in
6368     [\\/]* | ?:[\\/]*)
6369     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6370     ;;
6371     *)
6372     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373     for as_dir in $PATH
6374     do
6375     IFS=$as_save_IFS
6376     test -z "$as_dir" && as_dir=.
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382     fi
6383     done
6384     done
6385     IFS=$as_save_IFS
6386    
6387     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6388     ;;
6389     esac
6390     fi
6391     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6392     if test -n "$PKG_CONFIG"; then
6393     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6394     $as_echo "$PKG_CONFIG" >&6; }
6395     else
6396     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6397     $as_echo "no" >&6; }
6398     fi
6399    
6400    
6401     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6402     $as_echo_n "checking for libstartup-notification... " >&6; }
6403     if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6404     STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6405     STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6406     support_startup_notification=yes
6407     fi
6408    
6409     if test x$support_startup_notification = xyes; then
6410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6411     $as_echo "ok" >&6; }
6412    
6413     $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6414    
6415     else
6416     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417     $as_echo "no" >&6; }
6418     fi
6419     fi
6420    
6421    
6422    
6423    
6424 sf-exg 1.132 AFTERIMAGE_CFLAGS=
6425     AFTERIMAGE_LIBS=
6426 ayin 1.122
6427 sf-exg 1.132 if test x$support_afterimage = xyes; then
6428     support_afterimage=no
6429 ayin 1.122
6430 sf-exg 1.132 if test "x$afterimage_config" = "x" ; then
6431     # Extract the first word of "afterimage-config", so it can be a program name with args.
6432     set dummy afterimage-config; ac_word=$2
6433     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434     $as_echo_n "checking for $ac_word... " >&6; }
6435 sf-exg 1.151 if ${ac_cv_path_afterimage_config+:} false; then :
6436 sf-exg 1.132 $as_echo_n "(cached) " >&6
6437     else
6438     case $afterimage_config in
6439     [\\/]* | ?:[\\/]*)
6440     ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6441     ;;
6442     *)
6443     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444     for as_dir in $PATH
6445     do
6446     IFS=$as_save_IFS
6447     test -z "$as_dir" && as_dir=.
6448     for ac_exec_ext in '' $ac_executable_extensions; do
6449     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6450     ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452     break 2
6453     fi
6454     done
6455     done
6456     IFS=$as_save_IFS
6457 pcg 1.1
6458 sf-exg 1.132 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6459     ;;
6460     esac
6461     fi
6462     afterimage_config=$ac_cv_path_afterimage_config
6463     if test -n "$afterimage_config"; then
6464     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6465     $as_echo "$afterimage_config" >&6; }
6466 pcg 1.11 else
6467 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468     $as_echo "no" >&6; }
6469     fi
6470    
6471 ayin 1.122
6472 sf-exg 1.132 fi
6473     if test "x$afterimage_config" != "xno" ; then
6474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6475     $as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6476 root 1.150 AFTERIMAGE_VERSION=`$afterimage_config --version`
6477     if test -n "$AFTERIMAGE_VERSION" ; then
6478     AFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6479     AFTERIMAGE_LIBS=`$afterimage_config --libs`
6480     if test "x$AFTERIMAGE_LIBS" != "x"; then
6481     libai_ver_major=`echo $AFTERIMAGE_VERSION | cut -f 1 -d .`
6482     libai_ver_minor=`echo $AFTERIMAGE_VERSION | cut -f 2 -d .`
6483 sf-exg 1.132 if test $libai_ver_major -gt 1 -o \( $libai_ver_major -eq 1 -a $libai_ver_minor -ge 15 \); then
6484     support_afterimage=yes
6485     fi
6486     fi
6487     fi
6488     if test "x$support_afterimage" = "xyes"; then
6489     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6490     $as_echo "$AFTERIMAGE_LIBS" >&6; }
6491 sf-exg 1.135 image_lib=libafterimage
6492 sf-exg 1.134
6493     $as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
6494    
6495    
6496     $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6497    
6498 sf-exg 1.132 else
6499     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500     $as_echo "no" >&6; }
6501 root 1.150 AFTERIMAGE_CFLAGS=
6502     AFTERIMAGE_LIBS=
6503 sf-exg 1.132 fi
6504     fi
6505 ayin 1.122 fi
6506    
6507 sf-exg 1.134
6508    
6509    
6510 sf-exg 1.132 for ac_header in \
6511 sf-exg 1.141 sys/byteorder.h \
6512 sf-exg 1.132 sys/ioctl.h \
6513     sys/sockio.h \
6514     sys/strredir.h \
6515     stdint.h \
6516     wchar.h \
6517     cwchar \
6518 ayin 1.122
6519 sf-exg 1.132 do :
6520     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6521     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6522 root 1.137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6523 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6524     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6525     _ACEOF
6526 ayin 1.122
6527 pcg 1.1 fi
6528 ayin 1.108
6529 sf-exg 1.132 done
6530 ayin 1.122
6531 pcg 1.1
6532 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6533     $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6534 sf-exg 1.151 if ${rxvt_cv_xlib_illegal_access+:} false; then :
6535 sf-exg 1.132 $as_echo_n "(cached) " >&6
6536 root 1.83 else
6537 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 root 1.83 /* end confdefs.h. */
6539    
6540 sf-exg 1.132 #define XLIB_ILLEGAL_ACCESS
6541     #include <X11/Xlib.h>
6542 pcg 1.11
6543 root 1.83 int
6544     main ()
6545     {
6546 sf-exg 1.132
6547     Display *dpy;
6548     dpy->xdefaults = (char *)0;
6549    
6550 root 1.83 ;
6551     return 0;
6552     }
6553     _ACEOF
6554 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6555     rxvt_cv_xlib_illegal_access=yes
6556 root 1.83 else
6557 sf-exg 1.132 rxvt_cv_xlib_illegal_access=no
6558 pcg 1.11
6559 root 1.83 fi
6560 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6561 root 1.83 fi
6562 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6563     $as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6564     if test x$rxvt_cv_xlib_illegal_access = xyes; then
6565 pcg 1.11
6566 sf-exg 1.132 $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6567 pcg 1.11
6568 ayin 1.108 fi
6569 ayin 1.102
6570 sf-exg 1.132 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6571 sf-exg 1.151 if test "x$ac_cv_type_mode_t" = xyes; then :
6572 ayin 1.108
6573 sf-exg 1.132 else
6574 ayin 1.102
6575 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6576     #define mode_t int
6577     _ACEOF
6578 ayin 1.108
6579     fi
6580    
6581 sf-exg 1.132 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6582 sf-exg 1.151 if test "x$ac_cv_type_pid_t" = xyes; then :
6583 root 1.92
6584 sf-exg 1.132 else
6585 root 1.92
6586 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6587     #define pid_t int
6588 root 1.92 _ACEOF
6589    
6590     fi
6591    
6592 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6593     $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6594 sf-exg 1.151 if ${ac_cv_type_uid_t+:} false; then :
6595 sf-exg 1.132 $as_echo_n "(cached) " >&6
6596     else
6597     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598     /* end confdefs.h. */
6599     #include <sys/types.h>
6600    
6601 root 1.92 _ACEOF
6602 sf-exg 1.132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6603     $EGREP "uid_t" >/dev/null 2>&1; then :
6604     ac_cv_type_uid_t=yes
6605     else
6606     ac_cv_type_uid_t=no
6607 root 1.92 fi
6608 sf-exg 1.132 rm -f conftest*
6609 root 1.92
6610     fi
6611 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6612     $as_echo "$ac_cv_type_uid_t" >&6; }
6613     if test $ac_cv_type_uid_t = no; then
6614 root 1.92
6615 sf-exg 1.132 $as_echo "#define uid_t int" >>confdefs.h
6616 pcg 1.11
6617 root 1.88
6618 sf-exg 1.132 $as_echo "#define gid_t int" >>confdefs.h
6619 root 1.88
6620 sf-exg 1.132 fi
6621 root 1.88
6622 sf-exg 1.132 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6623     case $ac_cv_c_int16_t in #(
6624     no|yes) ;; #(
6625     *)
6626 root 1.88
6627 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6628     #define int16_t $ac_cv_c_int16_t
6629 root 1.88 _ACEOF
6630 sf-exg 1.132 ;;
6631 ayin 1.108 esac
6632 root 1.88
6633 sf-exg 1.132 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6634     case $ac_cv_c_uint16_t in #(
6635     no|yes) ;; #(
6636     *)
6637    
6638 ayin 1.108
6639 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6640     #define uint16_t $ac_cv_c_uint16_t
6641 root 1.88 _ACEOF
6642 sf-exg 1.132 ;;
6643     esac
6644 root 1.88
6645 sf-exg 1.132 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6646     case $ac_cv_c_int32_t in #(
6647     no|yes) ;; #(
6648     *)
6649 root 1.88
6650 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6651     #define int32_t $ac_cv_c_int32_t
6652 root 1.88 _ACEOF
6653 sf-exg 1.132 ;;
6654 ayin 1.108 esac
6655 root 1.88
6656 sf-exg 1.132 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6657     case $ac_cv_c_uint32_t in #(
6658     no|yes) ;; #(
6659     *)
6660    
6661     $as_echo "#define _UINT32_T 1" >>confdefs.h
6662 ayin 1.108
6663 root 1.88
6664 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6665     #define uint32_t $ac_cv_c_uint32_t
6666 root 1.88 _ACEOF
6667 sf-exg 1.132 ;;
6668     esac
6669    
6670    
6671     for ac_func in unsetenv
6672     do :
6673     ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6674 sf-exg 1.151 if test "x$ac_cv_func_unsetenv" = xyes; then :
6675 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6676     #define HAVE_UNSETENV 1
6677 root 1.88 _ACEOF
6678    
6679     fi
6680 sf-exg 1.132 done
6681    
6682    
6683    
6684     support_utmp=yes
6685     support_wtmp=yes
6686     support_lastlog=yes
6687 ayin 1.108
6688 sf-exg 1.132 # Check whether --enable-utmp was given.
6689     if test "${enable_utmp+set}" = set; then :
6690     enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6691     support_utmp=$enableval
6692     fi
6693     fi
6694 root 1.88
6695 ayin 1.108
6696 sf-exg 1.132 # Check whether --enable-wtmp was given.
6697     if test "${enable_wtmp+set}" = set; then :
6698     enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6699     support_wtmp=$enableval
6700     fi
6701 root 1.88 fi
6702    
6703 sf-exg 1.132
6704     # Check whether --enable-lastlog was given.
6705     if test "${enable_lastlog+set}" = set; then :
6706     enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6707     support_lastlog=$enableval
6708     fi
6709 root 1.88 fi
6710 sf-exg 1.132
6711    
6712     if test x$support_utmp = xyes; then
6713    
6714     $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6715 root 1.88
6716     fi
6717 sf-exg 1.132 if test x$support_wtmp = xyes; then
6718    
6719     $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6720 root 1.88
6721 sf-exg 1.132 fi
6722     if test x$support_lastlog = xyes; then
6723 root 1.88
6724 sf-exg 1.132 $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6725 root 1.88
6726 sf-exg 1.132 fi
6727 root 1.88
6728 sf-exg 1.132 for ac_func in \
6729     updwtmp \
6730     updwtmpx \
6731     updlastlogx \
6732 root 1.128
6733 sf-exg 1.132 do :
6734     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6735     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6736 root 1.137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6737 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6738     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6739 root 1.88 _ACEOF
6740    
6741     fi
6742 sf-exg 1.132 done
6743 ayin 1.108
6744 root 1.88
6745 sf-exg 1.132 for ac_header in lastlog.h
6746     do :
6747     ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6748 sf-exg 1.151 if test "x$ac_cv_header_lastlog_h" = xyes; then :
6749 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6750     #define HAVE_LASTLOG_H 1
6751 root 1.88 _ACEOF
6752    
6753     fi
6754 ayin 1.108
6755 sf-exg 1.132 done
6756 root 1.88
6757 ayin 1.108
6758 sf-exg 1.151 case $host in
6759     *-*-solaris*)
6760    
6761     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6762    
6763     ;;
6764     esac
6765    
6766 root 1.88
6767 sf-exg 1.132 for ac_header in utmp.h
6768     do :
6769     ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6770 sf-exg 1.151 if test "x$ac_cv_header_utmp_h" = xyes; then :
6771 root 1.128 cat >>confdefs.h <<_ACEOF
6772 sf-exg 1.132 #define HAVE_UTMP_H 1
6773 root 1.128 _ACEOF
6774 sf-exg 1.145 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6775 root 1.88 #include <sys/types.h>
6776     #include <utmp.h>
6777 sf-exg 1.145
6778     "
6779 sf-exg 1.151 if test "x$ac_cv_type_struct_utmp" = xyes; then :
6780 sf-exg 1.145
6781     cat >>confdefs.h <<_ACEOF
6782     #define HAVE_STRUCT_UTMP 1
6783 root 1.88 _ACEOF
6784    
6785    
6786     fi
6787    
6788    
6789 sf-exg 1.145
6790     # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6791     # ------------------------------------------------------
6792     # Tries to find if the field MEMBER exists in type AGGR, after including
6793     # INCLUDES, setting cache variable VAR accordingly.
6794     ac_fn_cxx_check_member ()
6795     {
6796     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6798     $as_echo_n "checking for $2.$3... " >&6; }
6799 sf-exg 1.151 if eval \${$4+:} false; then :
6800 sf-exg 1.132 $as_echo_n "(cached) " >&6
6801 root 1.88 else
6802 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 root 1.88 /* end confdefs.h. */
6804 sf-exg 1.145 $5
6805 root 1.88 int
6806     main ()
6807     {
6808 sf-exg 1.145 static $2 ac_aggr;
6809     if (ac_aggr.$3)
6810     return 0;
6811 root 1.88 ;
6812     return 0;
6813     }
6814     _ACEOF
6815 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6816 sf-exg 1.145 eval "$4=yes"
6817 root 1.88 else
6818 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6819 root 1.88 /* end confdefs.h. */
6820 sf-exg 1.145 $5
6821 root 1.88 int
6822     main ()
6823     {
6824 sf-exg 1.145 static $2 ac_aggr;
6825     if (sizeof ac_aggr.$3)
6826     return 0;
6827 root 1.88 ;
6828     return 0;
6829     }
6830     _ACEOF
6831 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6832 sf-exg 1.145 eval "$4=yes"
6833 root 1.88 else
6834 sf-exg 1.145 eval "$4=no"
6835 root 1.88 fi
6836 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 root 1.88 fi
6838 sf-exg 1.145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839     fi
6840     eval ac_res=\$$4
6841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6842     $as_echo "$ac_res" >&6; }
6843 sf-exg 1.151 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
6844 sf-exg 1.145
6845     } # ac_fn_cxx_check_member
6846     ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6847     #include <sys/types.h>
6848     #include <utmp.h>
6849    
6850     "
6851 sf-exg 1.151 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
6852 sf-exg 1.145
6853     $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6854    
6855     fi
6856    
6857    
6858     ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
6859     #include <sys/types.h>
6860     #include <utmp.h>
6861    
6862     "
6863 sf-exg 1.151 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
6864 root 1.88
6865 sf-exg 1.132 $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6866 root 1.88
6867     fi
6868    
6869 sf-exg 1.145
6870 root 1.88 fi
6871    
6872 root 1.128 done
6873    
6874 root 1.88
6875 root 1.128 for ac_header in utmpx.h
6876 sf-exg 1.132 do :
6877     ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6878 sf-exg 1.151 if test "x$ac_cv_header_utmpx_h" = xyes; then :
6879 root 1.128 cat >>confdefs.h <<_ACEOF
6880 sf-exg 1.132 #define HAVE_UTMPX_H 1
6881 root 1.128 _ACEOF
6882 sf-exg 1.145 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6883 root 1.88 #include <sys/types.h>
6884     #include <utmpx.h>
6885 sf-exg 1.145
6886     "
6887 sf-exg 1.151 if test "x$ac_cv_type_struct_utmpx" = xyes; then :
6888 sf-exg 1.145
6889     cat >>confdefs.h <<_ACEOF
6890     #define HAVE_STRUCT_UTMPX 1
6891 root 1.88 _ACEOF
6892    
6893    
6894     fi
6895    
6896    
6897 sf-exg 1.145 ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
6898 root 1.88 #include <sys/types.h>
6899     #include <utmpx.h>
6900 sf-exg 1.145
6901     "
6902 sf-exg 1.151 if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
6903 root 1.88
6904 sf-exg 1.132 $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6905 root 1.88
6906     fi
6907    
6908 sf-exg 1.145
6909 root 1.88 fi
6910    
6911 root 1.128 done
6912 root 1.88
6913 sf-exg 1.145 ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
6914 root 1.88 #include <sys/types.h>
6915     #include <utmp.h>
6916     #ifdef HAVE_LASTLOG_H
6917     #include <lastlog.h>
6918     #endif
6919    
6920 sf-exg 1.145 "
6921 sf-exg 1.151 if test "x$ac_cv_type_struct_lastlog" = xyes; then :
6922 sf-exg 1.145
6923     cat >>confdefs.h <<_ACEOF
6924     #define HAVE_STRUCT_LASTLOG 1
6925 root 1.88 _ACEOF
6926    
6927    
6928     fi
6929    
6930 sf-exg 1.145
6931     ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
6932 root 1.88 #include <sys/types.h>
6933     #include <utmpx.h>
6934     #ifdef HAVE_LASTLOG_H
6935     #include <lastlog.h>
6936     #endif
6937    
6938 sf-exg 1.145 "
6939 sf-exg 1.151 if test "x$ac_cv_type_struct_lastlogx" = xyes; then :
6940 sf-exg 1.145
6941     cat >>confdefs.h <<_ACEOF
6942     #define HAVE_STRUCT_LASTLOGX 1
6943 root 1.88 _ACEOF
6944    
6945    
6946     fi
6947    
6948    
6949 sf-exg 1.145
6950 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6951     $as_echo_n "checking for a fallback location of utmp... " >&6; }
6952 sf-exg 1.151 if ${pt_cv_path_utmp+:} false; then :
6953 sf-exg 1.132 $as_echo_n "(cached) " >&6
6954 root 1.88 else
6955 sf-exg 1.145
6956 sf-exg 1.149 if test "$cross_compiling" != yes; then
6957     for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6958     if test -f "$file"; then
6959     pt_cv_path_utmp=$file
6960     break
6961     fi
6962     done
6963 root 1.88 fi
6964     fi
6965 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6966     $as_echo "$pt_cv_path_utmp" >&6; }
6967     if test x$pt_cv_path_utmp != x; then
6968 root 1.88
6969     cat >>confdefs.h <<_ACEOF
6970 sf-exg 1.149 #define PT_UTMP_FILE "$pt_cv_path_utmp"
6971 root 1.88 _ACEOF
6972    
6973 sf-exg 1.149 elif test "$cross_compiling" = yes; then
6974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6975     $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6976 root 1.88 fi
6977    
6978    
6979 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6980     $as_echo_n "checking for a fallback location of wtmp... " >&6; }
6981 sf-exg 1.151 if ${pt_cv_path_wtmp+:} false; then :
6982 sf-exg 1.132 $as_echo_n "(cached) " >&6
6983 root 1.88 else
6984 sf-exg 1.145
6985 sf-exg 1.149 if test "$cross_compiling" != yes; then
6986     for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
6987     if test -f "$file"; then
6988     pt_cv_path_wtmp=$file
6989     break
6990     fi
6991     done
6992 root 1.88 fi
6993     fi
6994 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6995     $as_echo "$pt_cv_path_wtmp" >&6; }
6996     if test x$pt_cv_path_wtmp != x; then
6997 root 1.88
6998     cat >>confdefs.h <<_ACEOF
6999 sf-exg 1.149 #define PT_WTMP_FILE "$pt_cv_path_wtmp"
7000 root 1.88 _ACEOF
7001    
7002 sf-exg 1.149 elif test "$cross_compiling" = yes; then
7003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7004     $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
7005 root 1.88 fi
7006    
7007 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
7008     $as_echo_n "checking for a fallback location of wtmpx... " >&6; }
7009 sf-exg 1.151 if ${pt_cv_path_wtmpx+:} false; then :
7010 sf-exg 1.132 $as_echo_n "(cached) " >&6
7011 root 1.88 else
7012 sf-exg 1.145
7013 sf-exg 1.149 if test "$cross_compiling" != yes; then
7014     for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7015     if test -f "$file"; then
7016     pt_cv_path_wtmpx=$file
7017     break
7018     fi
7019     done
7020 root 1.88 fi
7021     fi
7022 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7023     $as_echo "$pt_cv_path_wtmpx" >&6; }
7024     if test x$pt_cv_path_wtmpx != x; then
7025 root 1.88
7026     cat >>confdefs.h <<_ACEOF
7027 sf-exg 1.149 #define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7028 root 1.88 _ACEOF
7029    
7030 sf-exg 1.149 elif test "$cross_compiling" = yes; then
7031     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7032     $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7033 root 1.88 fi
7034    
7035 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7036     $as_echo_n "checking for a fallback location of lastlog... " >&6; }
7037 sf-exg 1.151 if ${pt_cv_path_lastlog+:} false; then :
7038 sf-exg 1.132 $as_echo_n "(cached) " >&6
7039 root 1.88 else
7040 sf-exg 1.145
7041 sf-exg 1.149 if test "$cross_compiling" != yes; then
7042 sf-exg 1.151 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7043 sf-exg 1.149 if test -f "$file"; then
7044     pt_cv_path_lastlog=$file
7045     break
7046     fi
7047     done
7048 root 1.88 fi
7049     fi
7050 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7051     $as_echo "$pt_cv_path_lastlog" >&6; }
7052     if test x$pt_cv_path_lastlog != x; then
7053 root 1.88
7054     cat >>confdefs.h <<_ACEOF
7055 sf-exg 1.149 #define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7056 root 1.88 _ACEOF
7057    
7058 sf-exg 1.149 elif test "$cross_compiling" = yes; then
7059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7060     $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7061 root 1.88 fi
7062    
7063 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7064     $as_echo_n "checking for a fallback location of lastlogx... " >&6; }
7065 sf-exg 1.151 if ${pt_cv_path_lastlogx+:} false; then :
7066 sf-exg 1.132 $as_echo_n "(cached) " >&6
7067 root 1.88 else
7068 sf-exg 1.145
7069 sf-exg 1.149 if test "$cross_compiling" != yes; then
7070     for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7071     if test -f "$file"; then
7072     pt_cv_path_lastlogx=$file
7073     break
7074     fi
7075     done
7076 root 1.88 fi
7077     fi
7078 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7079     $as_echo "$pt_cv_path_lastlogx" >&6; }
7080     if test x$pt_cv_path_lastlogx != x; then
7081 root 1.88
7082     cat >>confdefs.h <<_ACEOF
7083 sf-exg 1.149 #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7084 root 1.88 _ACEOF
7085    
7086 sf-exg 1.149 elif test "$cross_compiling" = yes; then
7087     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7088     $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7089 root 1.88 fi
7090    
7091    
7092    
7093    
7094 ayin 1.114 save_LIBS=$LIBS
7095     save_CFLAGS=$CFLAGS
7096 root 1.88 CFLAGS="$CFLAGS $X_CFLAGS"
7097     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7098 ayin 1.111 if test x$support_xim = xyes; then
7099 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7100     $as_echo_n "checking for working Xlocale... " >&6; }
7101 sf-exg 1.151 if ${rxvt_cv_func_xlocale+:} false; then :
7102 sf-exg 1.132 $as_echo_n "(cached) " >&6
7103 root 1.88 else
7104 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7105 root 1.143 :
7106 root 1.88 else
7107 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 root 1.88 /* end confdefs.h. */
7109 root 1.143
7110     #include <X11/Xlib.h>
7111 ayin 1.111 #include <stdlib.h>
7112 root 1.143 int main() {
7113     char *p;
7114     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
7115     exit (XSupportsLocale() ? 0 : 1);
7116     else
7117     exit (1);
7118     }
7119    
7120 root 1.88 _ACEOF
7121 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7122 root 1.143 rxvt_cv_func_xlocale=yes
7123 root 1.88 else
7124 sf-exg 1.132 rxvt_cv_func_xlocale=no
7125 root 1.88 fi
7126 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7127     conftest.$ac_objext conftest.beam conftest.$ac_ext
7128 root 1.88 fi
7129 ayin 1.108
7130 root 1.88 fi
7131 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7132     $as_echo "$rxvt_cv_func_xlocale" >&6; }
7133 root 1.105 if test x$rxvt_cv_func_xlocale = xyes; then
7134 root 1.88
7135 sf-exg 1.132 $as_echo "#define USE_XIM 1" >>confdefs.h
7136 root 1.88
7137 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7138     $as_echo_n "checking for broken XIM callback... " >&6; }
7139 sf-exg 1.151 if ${rxvt_cv_broken_ximcb+:} false; then :
7140 sf-exg 1.132 $as_echo_n "(cached) " >&6
7141 ayin 1.111 else
7142 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143     /* end confdefs.h. */
7144 ayin 1.111
7145     #include <X11/Xlib.h>
7146    
7147     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7148    
7149     void f() {
7150     XIMCallback cb;
7151     cb.callback = im_destroy_cb;
7152     }
7153    
7154     _ACEOF
7155 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
7156 root 1.131 rxvt_cv_broken_ximcb=yes
7157 ayin 1.111 else
7158 sf-exg 1.132 rxvt_cv_broken_ximcb=no
7159 ayin 1.111 fi
7160     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7161     fi
7162 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7163     $as_echo "$rxvt_cv_broken_ximcb" >&6; }
7164 ayin 1.111
7165 root 1.131 if test x$rxvt_cv_broken_ximcb = xyes; then
7166 ayin 1.111
7167 sf-exg 1.132 $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7168 ayin 1.111
7169     fi
7170 root 1.105 fi
7171 root 1.88 fi
7172    
7173 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7174     $as_echo_n "checking for working X setlocale... " >&6; }
7175 sf-exg 1.151 if ${rxvt_cv_func_xsetlocale+:} false; then :
7176 sf-exg 1.132 $as_echo_n "(cached) " >&6
7177 root 1.88 else
7178 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 root 1.88 /* end confdefs.h. */
7180     #define X_LOCALE 1
7181     #include <X11/Xlocale.h>
7182     int
7183     main ()
7184     {
7185     setlocale(LC_CTYPE, "");
7186     ;
7187     return 0;
7188     }
7189     _ACEOF
7190 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7191 root 1.88 rxvt_cv_func_xsetlocale=yes
7192     else
7193 sf-exg 1.132 rxvt_cv_func_xsetlocale=no
7194 root 1.88 fi
7195 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7196     conftest$ac_exeext conftest.$ac_ext
7197 root 1.88 fi
7198 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7199     $as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7200 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
7201    
7202 sf-exg 1.132 $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7203 root 1.88
7204     fi
7205 ayin 1.114 LIBS=$save_LIBS
7206     CFLAGS=$save_CFLAGS
7207 root 1.88
7208 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
7209     $as_echo_n "checking for working plain setlocale... " >&6; }
7210 sf-exg 1.151 if ${rxvt_cv_func_setlocale+:} false; then :
7211 sf-exg 1.132 $as_echo_n "(cached) " >&6
7212 root 1.88 else
7213 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 root 1.88 /* end confdefs.h. */
7215     #include <clocale>
7216     int
7217     main ()
7218     {
7219     setlocale(LC_CTYPE, "");
7220     ;
7221     return 0;
7222     }
7223     _ACEOF
7224 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7225 root 1.88 rxvt_cv_func_setlocale=yes
7226     else
7227 sf-exg 1.132 rxvt_cv_func_setlocale=no
7228 root 1.88 fi
7229 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7230     conftest$ac_exeext conftest.$ac_ext
7231 root 1.88 fi
7232 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
7233     $as_echo "$rxvt_cv_func_setlocale" >&6; }
7234 root 1.88 if test x$rxvt_cv_func_setlocale = xyes; then
7235    
7236 sf-exg 1.132 $as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
7237 root 1.88
7238     fi
7239    
7240 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7241     $as_echo_n "checking for working nl_langinfo... " >&6; }
7242 sf-exg 1.151 if ${rxvt_cv_func_nl_langinfo+:} false; then :
7243 sf-exg 1.132 $as_echo_n "(cached) " >&6
7244 root 1.88 else
7245 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7246 root 1.88 /* end confdefs.h. */
7247     #include <langinfo.h>
7248     int
7249     main ()
7250     {
7251     nl_langinfo(CODESET);
7252     ;
7253     return 0;
7254     }
7255     _ACEOF
7256 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7257 root 1.88 rxvt_cv_func_nl_langinfo=yes
7258     else
7259 sf-exg 1.132 rxvt_cv_func_nl_langinfo=no
7260 root 1.88 fi
7261 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7262     conftest$ac_exeext conftest.$ac_ext
7263 root 1.88 fi
7264 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7265     $as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7266 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
7267    
7268 sf-exg 1.132 $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7269 root 1.88
7270     fi
7271    
7272    
7273 sf-exg 1.151 case $host in
7274     *-*-solaris*)
7275    
7276     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7277    
7278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7279     $as_echo_n "checking for library containing sendmsg... " >&6; }
7280     if ${ac_cv_search_sendmsg+:} false; then :
7281     $as_echo_n "(cached) " >&6
7282     else
7283     ac_func_search_save_LIBS=$LIBS
7284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285     /* end confdefs.h. */
7286    
7287     /* Override any GCC internal prototype to avoid an error.
7288     Use char because int might match the return type of a GCC
7289     builtin and then its argument prototype would still apply. */
7290     #ifdef __cplusplus
7291     extern "C"
7292     #endif
7293     char sendmsg ();
7294     int
7295     main ()
7296     {
7297     return sendmsg ();
7298     ;
7299     return 0;
7300     }
7301     _ACEOF
7302     for ac_lib in '' socket; do
7303     if test -z "$ac_lib"; then
7304     ac_res="none required"
7305     else
7306     ac_res=-l$ac_lib
7307     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7308     fi
7309     if ac_fn_cxx_try_link "$LINENO"; then :
7310     ac_cv_search_sendmsg=$ac_res
7311     fi
7312     rm -f core conftest.err conftest.$ac_objext \
7313     conftest$ac_exeext
7314     if ${ac_cv_search_sendmsg+:} false; then :
7315     break
7316     fi
7317     done
7318     if ${ac_cv_search_sendmsg+:} false; then :
7319    
7320     else
7321     ac_cv_search_sendmsg=no
7322     fi
7323     rm conftest.$ac_ext
7324     LIBS=$ac_func_search_save_LIBS
7325     fi
7326     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7327     $as_echo "$ac_cv_search_sendmsg" >&6; }
7328     ac_res=$ac_cv_search_sendmsg
7329     if test "$ac_res" != no; then :
7330     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7331    
7332     fi
7333    
7334     ;;
7335     esac
7336    
7337 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7338     $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7339 sf-exg 1.151 if ${pt_cv_can_pass_fds+:} false; then :
7340 sf-exg 1.132 $as_echo_n "(cached) " >&6
7341 root 1.88 else
7342 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 root 1.88 /* end confdefs.h. */
7344    
7345 root 1.93 #include <cstddef> // broken bsds (is that redundant?) need this
7346 root 1.88 #include <sys/types.h>
7347     #include <sys/socket.h>
7348     #include <sys/uio.h>
7349    
7350     int
7351     main ()
7352     {
7353    
7354     {
7355     msghdr msg;
7356     iovec iov;
7357     char buf [100];
7358     char data = 0;
7359    
7360     iov.iov_base = &data;
7361     iov.iov_len = 1;
7362    
7363     msg.msg_iov = &iov;
7364     msg.msg_iovlen = 1;
7365     msg.msg_control = buf;
7366     msg.msg_controllen = sizeof buf;
7367    
7368     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7369     cmsg->cmsg_level = SOL_SOCKET;
7370     cmsg->cmsg_type = SCM_RIGHTS;
7371     cmsg->cmsg_len = 100;
7372    
7373     *(int *)CMSG_DATA (cmsg) = 5;
7374    
7375     return sendmsg (3, &msg, 0);
7376     }
7377    
7378     ;
7379     return 0;
7380     }
7381     _ACEOF
7382 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7383     pt_cv_can_pass_fds=yes
7384 root 1.88 else
7385 sf-exg 1.132 pt_cv_can_pass_fds=no
7386 root 1.88 fi
7387 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7388     conftest$ac_exeext conftest.$ac_ext
7389 pcg 1.11 fi
7390 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7391     $as_echo "$pt_cv_can_pass_fds" >&6; }
7392     if test x$pt_cv_can_pass_fds = xyes; then
7393 root 1.83
7394 sf-exg 1.132 $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7395 root 1.83
7396 sf-exg 1.132 else
7397 root 1.137 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7398 sf-exg 1.132 fi
7399 root 1.83
7400    
7401    
7402 sf-exg 1.132 for ac_header in \
7403     pty.h \
7404     util.h \
7405     libutil.h \
7406     sys/ioctl.h \
7407     sys/stropts.h \
7408     stropts.h \
7409 root 1.83
7410 sf-exg 1.132 do :
7411     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7412     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7413 root 1.137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7414 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
7415     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7416     _ACEOF
7417 root 1.94
7418 sf-exg 1.132 fi
7419 root 1.94
7420 sf-exg 1.132 done
7421 root 1.94
7422    
7423 root 1.88 for ac_func in \
7424     revoke \
7425     _getpty \
7426     getpt \
7427     posix_openpt \
7428     isastream \
7429 root 1.94 setuid \
7430     seteuid \
7431     setreuid \
7432     setresuid \
7433 root 1.83
7434 sf-exg 1.132 do :
7435     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7436     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7437 root 1.137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7438 root 1.88 cat >>confdefs.h <<_ACEOF
7439 sf-exg 1.132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7440 root 1.88 _ACEOF
7441    
7442     fi
7443     done
7444    
7445    
7446 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7447 sf-exg 1.132 $as_echo_n "checking for UNIX98 ptys... " >&6; }
7448 sf-exg 1.149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 root 1.83 /* end confdefs.h. */
7450 root 1.88 #include <stdlib.h>
7451 root 1.83 int
7452     main ()
7453     {
7454 root 1.88 grantpt(0);unlockpt(0);ptsname(0);
7455 root 1.83 ;
7456     return 0;
7457 root 1.31 }
7458     _ACEOF
7459 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7460 root 1.88 unix98_pty=yes
7461    
7462 sf-exg 1.132 $as_echo "#define UNIX98_PTY 1" >>confdefs.h
7463 root 1.88
7464 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7465 sf-exg 1.132 $as_echo "yes" >&6; }
7466 root 1.31 else
7467 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468     $as_echo "no" >&6; }
7469 root 1.31 fi
7470 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7471     conftest$ac_exeext conftest.$ac_ext
7472 root 1.31
7473 root 1.88 if test -z "$unix98_pty"; then
7474 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7475     $as_echo_n "checking for library containing openpty... " >&6; }
7476 sf-exg 1.151 if ${ac_cv_search_openpty+:} false; then :
7477 sf-exg 1.132 $as_echo_n "(cached) " >&6
7478 root 1.66 else
7479 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
7480 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 root 1.88 /* end confdefs.h. */
7482 root 1.87
7483 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7484     Use char because int might match the return type of a GCC
7485     builtin and then its argument prototype would still apply. */
7486 root 1.88 #ifdef __cplusplus
7487     extern "C"
7488     #endif
7489     char openpty ();
7490     int
7491     main ()
7492     {
7493 ayin 1.108 return openpty ();
7494 root 1.88 ;
7495     return 0;
7496 root 1.66 }
7497     _ACEOF
7498 sf-exg 1.133 for ac_lib in '' util; do
7499     if test -z "$ac_lib"; then
7500     ac_res="none required"
7501     else
7502     ac_res=-l$ac_lib
7503     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7504     fi
7505     if ac_fn_cxx_try_link "$LINENO"; then :
7506     ac_cv_search_openpty=$ac_res
7507 root 1.88 fi
7508 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7509 sf-exg 1.133 conftest$ac_exeext
7510 sf-exg 1.151 if ${ac_cv_search_openpty+:} false; then :
7511 sf-exg 1.133 break
7512     fi
7513     done
7514 sf-exg 1.151 if ${ac_cv_search_openpty+:} false; then :
7515 sf-exg 1.133
7516     else
7517     ac_cv_search_openpty=no
7518 root 1.66 fi
7519 sf-exg 1.133 rm conftest.$ac_ext
7520     LIBS=$ac_func_search_save_LIBS
7521 root 1.66 fi
7522 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7523     $as_echo "$ac_cv_search_openpty" >&6; }
7524     ac_res=$ac_cv_search_openpty
7525     if test "$ac_res" != no; then :
7526     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7527    
7528     $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7529 root 1.87
7530 root 1.88 fi
7531 pcg 1.1
7532     fi
7533    
7534    
7535 root 1.90
7536 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7537     $as_echo_n "checking for tty group... " >&6; }
7538 sf-exg 1.151 if ${pt_cv_tty_group+:} false; then :
7539 sf-exg 1.132 $as_echo_n "(cached) " >&6
7540 root 1.90 else
7541 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7542     pt_cv_tty_group=no
7543 root 1.90 else
7544 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 root 1.90 /* end confdefs.h. */
7546    
7547     #include <sys/types.h>
7548     #include <sys/stat.h>
7549     #include <unistd.h>
7550     #include <grp.h>
7551    
7552 sf-exg 1.144 int main()
7553 root 1.90 {
7554     struct stat st;
7555     struct group *gr;
7556     char *tty;
7557     gr = getgrnam("tty");
7558     tty = ttyname(0);
7559     if (gr != 0
7560     && tty != 0
7561     && (stat(tty, &st)) == 0
7562     && st.st_gid == gr->gr_gid)
7563     return 0;
7564     else
7565     return 1;
7566     }
7567     _ACEOF
7568 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7569     pt_cv_tty_group=yes
7570 root 1.90 else
7571 sf-exg 1.132 pt_cv_tty_group=no
7572 root 1.90 fi
7573 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7574     conftest.$ac_objext conftest.beam conftest.$ac_ext
7575 root 1.90 fi
7576 ayin 1.108
7577 root 1.90 fi
7578 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7579     $as_echo "$pt_cv_tty_group" >&6; }
7580     if test x$pt_cv_tty_group = xyes; then
7581 root 1.90
7582 sf-exg 1.132 $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7583 root 1.90
7584     fi
7585    
7586 sf-exg 1.138 if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then
7587     rxvt_have_xrender=no
7588     # Extract the first word of "pkg-config", so it can be a program name with args.
7589     set dummy pkg-config; ac_word=$2
7590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591     $as_echo_n "checking for $ac_word... " >&6; }
7592 sf-exg 1.151 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7593 sf-exg 1.138 $as_echo_n "(cached) " >&6
7594     else
7595     case $PKG_CONFIG in
7596     [\\/]* | ?:[\\/]*)
7597     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7598     ;;
7599     *)
7600     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601     for as_dir in $PATH
7602     do
7603     IFS=$as_save_IFS
7604     test -z "$as_dir" && as_dir=.
7605     for ac_exec_ext in '' $ac_executable_extensions; do
7606     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609     break 2
7610     fi
7611     done
7612     done
7613     IFS=$as_save_IFS
7614    
7615     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7616     ;;
7617     esac
7618     fi
7619     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7620     if test -n "$PKG_CONFIG"; then
7621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7622     $as_echo "$PKG_CONFIG" >&6; }
7623     else
7624     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625     $as_echo "no" >&6; }
7626     fi
7627    
7628    
7629     if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7630     X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
7631     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
7632     rxvt_have_xrender=yes
7633    
7634     save_LIBS="$LIBS"
7635     LIBS="$LIBS $X_LIBS"
7636     ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7637 sf-exg 1.151 if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
7638 sf-exg 1.138
7639     else
7640     rxvt_have_xrender=no
7641     fi
7642    
7643    
7644     ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7645 sf-exg 1.151 if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then :
7646 sf-exg 1.138
7647     else
7648     rxvt_have_xrender=no
7649     fi
7650    
7651     LIBS="$save_LIBS"
7652     fi
7653     fi
7654    
7655     if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7656 root 1.86 # Extract the first word of "pkg-config", so it can be a program name with args.
7657     set dummy pkg-config; ac_word=$2
7658 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659     $as_echo_n "checking for $ac_word... " >&6; }
7660 sf-exg 1.151 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7661 sf-exg 1.132 $as_echo_n "(cached) " >&6
7662 root 1.86 else
7663     case $PKG_CONFIG in
7664     [\\/]* | ?:[\\/]*)
7665     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7666     ;;
7667     *)
7668     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669     for as_dir in $PATH
7670     do
7671     IFS=$as_save_IFS
7672     test -z "$as_dir" && as_dir=.
7673 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7674 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 root 1.86 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7676 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677 root 1.86 break 2
7678     fi
7679     done
7680 sf-exg 1.132 done
7681 ayin 1.108 IFS=$as_save_IFS
7682 root 1.86
7683     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7684     ;;
7685     esac
7686     fi
7687     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7688     if test -n "$PKG_CONFIG"; then
7689 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7690     $as_echo "$PKG_CONFIG" >&6; }
7691 root 1.86 else
7692 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693     $as_echo "no" >&6; }
7694 root 1.86 fi
7695    
7696 ayin 1.108
7697 root 1.90 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7698 root 1.117 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7699 root 1.90 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7700     else
7701     # Extract the first word of "xft-config", so it can be a program name with args.
7702 root 1.86 set dummy xft-config; ac_word=$2
7703 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7704     $as_echo_n "checking for $ac_word... " >&6; }
7705 sf-exg 1.151 if ${ac_cv_path_XFT_CONFIG+:} false; then :
7706 sf-exg 1.132 $as_echo_n "(cached) " >&6
7707 root 1.86 else
7708     case $XFT_CONFIG in
7709     [\\/]* | ?:[\\/]*)
7710     ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7711     ;;
7712     *)
7713     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714     for as_dir in $PATH
7715     do
7716     IFS=$as_save_IFS
7717     test -z "$as_dir" && as_dir=.
7718 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7719 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 root 1.86 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7721 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 root 1.86 break 2
7723     fi
7724     done
7725 sf-exg 1.132 done
7726 ayin 1.108 IFS=$as_save_IFS
7727 root 1.86
7728     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7729     ;;
7730     esac
7731     fi
7732     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7733     if test -n "$XFT_CONFIG"; then
7734 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7735     $as_echo "$XFT_CONFIG" >&6; }
7736 root 1.86 else
7737 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738     $as_echo "no" >&6; }
7739 root 1.86 fi
7740    
7741 ayin 1.108
7742 root 1.86 if test $XFT_CONFIG != no; then
7743 root 1.117 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7744 root 1.86 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7745     fi
7746     fi
7747 root 1.34
7748 sf-exg 1.138 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7749     X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7750     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7751     fi
7752    
7753 root 1.118 save_LIBS="$LIBS"
7754     LIBS="$LIBS $X_LIBS"
7755 sf-exg 1.132 for ac_header in X11/Xft/Xft.h
7756     do :
7757     ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7758 sf-exg 1.151 if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
7759 root 1.39 cat >>confdefs.h <<_ACEOF
7760 sf-exg 1.132 #define HAVE_X11_XFT_XFT_H 1
7761 pcg 1.11 _ACEOF
7762 pcg 1.1
7763 root 1.39 else
7764     support_xft=no
7765 pcg 1.1 fi
7766 pcg 1.11
7767 root 1.39 done
7768 pcg 1.1
7769 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7770     $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7771 sf-exg 1.151 if ${ac_cv_lib_Xft_XftDrawString32+:} false; then :
7772 sf-exg 1.132 $as_echo_n "(cached) " >&6
7773 root 1.39 else
7774     ac_check_lib_save_LIBS=$LIBS
7775     LIBS="-lXft $LIBS"
7776 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 root 1.39 /* end confdefs.h. */
7778    
7779 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7780     Use char because int might match the return type of a GCC
7781     builtin and then its argument prototype would still apply. */
7782 root 1.39 #ifdef __cplusplus
7783     extern "C"
7784     #endif
7785     char XftDrawString32 ();
7786     int
7787     main ()
7788     {
7789 ayin 1.108 return XftDrawString32 ();
7790 root 1.39 ;
7791     return 0;
7792     }
7793     _ACEOF
7794 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7795 root 1.39 ac_cv_lib_Xft_XftDrawString32=yes
7796     else
7797 sf-exg 1.132 ac_cv_lib_Xft_XftDrawString32=no
7798 root 1.39 fi
7799 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7800     conftest$ac_exeext conftest.$ac_ext
7801 root 1.39 LIBS=$ac_check_lib_save_LIBS
7802     fi
7803 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7804     $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7805 sf-exg 1.151 if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then :
7806 root 1.118 :
7807 root 1.39 else
7808     support_xft=no
7809     fi
7810    
7811 sf-exg 1.138 for ac_header in fontconfig/fontconfig.h
7812     do :
7813     ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7814 sf-exg 1.151 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
7815 sf-exg 1.138 cat >>confdefs.h <<_ACEOF
7816     #define HAVE_FONTCONFIG_FONTCONFIG_H 1
7817     _ACEOF
7818 root 1.39
7819 sf-exg 1.138 else
7820     support_xft=no
7821     fi
7822 root 1.39
7823 sf-exg 1.138 done
7824 root 1.39
7825 sf-exg 1.138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7826     $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7827 sf-exg 1.151 if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then :
7828 sf-exg 1.136 $as_echo_n "(cached) " >&6
7829     else
7830 sf-exg 1.138 ac_check_lib_save_LIBS=$LIBS
7831     LIBS="-lfontconfig $LIBS"
7832     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833     /* end confdefs.h. */
7834 sf-exg 1.136
7835 sf-exg 1.138 /* Override any GCC internal prototype to avoid an error.
7836     Use char because int might match the return type of a GCC
7837     builtin and then its argument prototype would still apply. */
7838     #ifdef __cplusplus
7839     extern "C"
7840     #endif
7841     char FcPatternGet ();
7842     int
7843     main ()
7844     {
7845     return FcPatternGet ();
7846     ;
7847     return 0;
7848     }
7849     _ACEOF
7850     if ac_fn_cxx_try_link "$LINENO"; then :
7851     ac_cv_lib_fontconfig_FcPatternGet=yes
7852 sf-exg 1.136 else
7853 sf-exg 1.138 ac_cv_lib_fontconfig_FcPatternGet=no
7854 sf-exg 1.136 fi
7855 sf-exg 1.138 rm -f core conftest.err conftest.$ac_objext \
7856     conftest$ac_exeext conftest.$ac_ext
7857     LIBS=$ac_check_lib_save_LIBS
7858 sf-exg 1.136 fi
7859 sf-exg 1.138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7860     $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7861 sf-exg 1.151 if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then :
7862 sf-exg 1.138 :
7863 sf-exg 1.136 else
7864 sf-exg 1.138 support_xft=no
7865 sf-exg 1.136 fi
7866    
7867 sf-exg 1.138 LIBS="$save_LIBS"
7868 sf-exg 1.136
7869 sf-exg 1.138 if test x$support_xft = xyes; then
7870 sf-exg 1.136
7871 sf-exg 1.138 $as_echo "#define XFT 1" >>confdefs.h
7872 sf-exg 1.136
7873     fi
7874     fi
7875 root 1.39 if test x$support_styles = xyes; then
7876    
7877 sf-exg 1.132 $as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7878 root 1.39
7879     fi
7880     if test x$support_iso14755 = xyes; then
7881    
7882 sf-exg 1.132 $as_echo "#define ISO_14755 1" >>confdefs.h
7883 root 1.39
7884     fi
7885     if test x$support_8bitctrls = xyes; then
7886    
7887 sf-exg 1.132 $as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7888 root 1.39
7889     fi
7890     if test x$support_fading = xyes; then
7891    
7892 sf-exg 1.132 $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7893 root 1.39
7894     fi
7895     if test x$support_inheritpixmap = xyes; then
7896 sf-exg 1.138 if test x$rxvt_have_xrender = xyes; then
7897     LIBS="$LIBS -lm"
7898    
7899     $as_echo "#define XRENDER 1" >>confdefs.h
7900    
7901     fi
7902 root 1.39
7903 sf-exg 1.132 $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7904 root 1.39
7905     fi
7906     if test x$support_keepscrolling = xno; then
7907    
7908 sf-exg 1.132 $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7909 root 1.39
7910     fi
7911     if test x$support_selectionscrolling = xyes; then
7912    
7913 sf-exg 1.132 $as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
7914 root 1.39
7915     fi
7916 ayin 1.111 if test x$support_frills = xyes; then
7917    
7918 sf-exg 1.132 $as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
7919 ayin 1.111
7920     fi
7921 pcg 1.1 if test x$support_mousewheel = xyes; then
7922 pcg 1.11
7923 sf-exg 1.132 $as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
7924 pcg 1.1
7925     fi
7926     if test x$support_mouseslipwheel = xyes; then
7927 pcg 1.11
7928 sf-exg 1.132 $as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7929 pcg 1.1
7930     fi
7931 root 1.103
7932 ayin 1.126 scrolltypes=plain
7933    
7934 sf-exg 1.132 $as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7935 ayin 1.126
7936    
7937 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
7938 pcg 1.11
7939 sf-exg 1.132 $as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
7940 pcg 1.1
7941 ayin 1.126 scrolltypes="$scrolltypes rxvt"
7942 pcg 1.1 fi
7943     if test x$support_scroll_next = xyes; then
7944 pcg 1.11
7945 sf-exg 1.132 $as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
7946 pcg 1.1
7947     scrolltypes="$scrolltypes next"
7948     fi
7949     if test x$support_scroll_xterm = xyes; then
7950 pcg 1.11
7951 sf-exg 1.132 $as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
7952 pcg 1.1
7953     scrolltypes="$scrolltypes xterm"
7954     fi
7955     if test x$support_pointer_blank = xyes; then
7956 pcg 1.11
7957 sf-exg 1.132 $as_echo "#define POINTER_BLANK 1" >>confdefs.h
7958 pcg 1.1
7959     fi
7960 pcg 1.11 if test x$support_text_blink = xyes; then
7961    
7962 sf-exg 1.132 $as_echo "#define TEXT_BLINK 1" >>confdefs.h
7963 pcg 1.1
7964     fi
7965     if test x$support_unicode3 = xyes; then
7966 pcg 1.11
7967 sf-exg 1.132 $as_echo "#define UNICODE_3 1" >>confdefs.h
7968 pcg 1.1
7969     fi
7970 pcg 1.18 if test x$support_combining = xyes; then
7971    
7972 sf-exg 1.132 $as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
7973 pcg 1.18
7974     fi
7975 pcg 1.1 if test x$codesets = xall; then
7976 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
7977 pcg 1.1 fi
7978 pcg 1.11
7979 sf-exg 1.132 $as_echo "#define ENCODING_EU 1" >>confdefs.h
7980 pcg 1.1
7981 pcg 1.13
7982 sf-exg 1.132 $as_echo "#define ENCODING_VN 1" >>confdefs.h
7983 pcg 1.13
7984 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7985 pcg 1.13 case "$codeset" in
7986 pcg 1.11 JP )
7987 sf-exg 1.132 $as_echo "#define ENCODING_JP 1" >>confdefs.h
7988 pcg 1.1 ;;
7989 pcg 1.11 JP_EXT )
7990 sf-exg 1.132 $as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
7991 pcg 1.1 ;;
7992 pcg 1.11 KR )
7993 sf-exg 1.132 $as_echo "#define ENCODING_KR 1" >>confdefs.h
7994 pcg 1.1 ;;
7995 root 1.40 ZH )
7996 sf-exg 1.132 $as_echo "#define ENCODING_ZH 1" >>confdefs.h
7997 pcg 1.1 ;;
7998 root 1.40 ZH_EXT )
7999 sf-exg 1.132 $as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
8000 pcg 1.1 ;;
8001     esac
8002     done
8003    
8004 root 1.60 IF_PERL=\#
8005     if test x$support_perl = xyes; then
8006     # Extract the first word of "perl5", so it can be a program name with args.
8007     set dummy perl5; ac_word=$2
8008 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009     $as_echo_n "checking for $ac_word... " >&6; }
8010 sf-exg 1.151 if ${ac_cv_path_PERL+:} false; then :
8011 sf-exg 1.132 $as_echo_n "(cached) " >&6
8012 root 1.60 else
8013     case $PERL in
8014     [\\/]* | ?:[\\/]*)
8015     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8016     ;;
8017     *)
8018     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019     for as_dir in $PATH
8020     do
8021     IFS=$as_save_IFS
8022     test -z "$as_dir" && as_dir=.
8023 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
8024 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8026 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8027 root 1.60 break 2
8028     fi
8029     done
8030 sf-exg 1.132 done
8031 ayin 1.108 IFS=$as_save_IFS
8032 root 1.60
8033     ;;
8034     esac
8035     fi
8036     PERL=$ac_cv_path_PERL
8037     if test -n "$PERL"; then
8038 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8039     $as_echo "$PERL" >&6; }
8040 root 1.60 else
8041 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042     $as_echo "no" >&6; }
8043 root 1.60 fi
8044    
8045 ayin 1.108
8046 root 1.60 # Extract the first word of "perl", so it can be a program name with args.
8047     set dummy perl; ac_word=$2
8048 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049     $as_echo_n "checking for $ac_word... " >&6; }
8050 sf-exg 1.151 if ${ac_cv_path_PERL+:} false; then :
8051 sf-exg 1.132 $as_echo_n "(cached) " >&6
8052 root 1.60 else
8053     case $PERL in
8054     [\\/]* | ?:[\\/]*)
8055     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
8056     ;;
8057     *)
8058     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059     for as_dir in $PATH
8060     do
8061     IFS=$as_save_IFS
8062     test -z "$as_dir" && as_dir=.
8063 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
8064 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8065 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
8066 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8067 root 1.60 break 2
8068     fi
8069     done
8070 sf-exg 1.132 done
8071 ayin 1.108 IFS=$as_save_IFS
8072 root 1.60
8073     ;;
8074     esac
8075     fi
8076     PERL=$ac_cv_path_PERL
8077     if test -n "$PERL"; then
8078 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
8079     $as_echo "$PERL" >&6; }
8080 root 1.60 else
8081 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082     $as_echo "no" >&6; }
8083 root 1.60 fi
8084    
8085    
8086 ayin 1.108
8087 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
8088     $as_echo_n "checking for $PERL suitability... " >&6; }
8089 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
8090    
8091 root 1.62 save_CXXFLAGS="$CXXFLAGS"
8092     save_LIBS="$LIBS"
8093     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
8094     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
8095 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8096 root 1.62 /* end confdefs.h. */
8097    
8098     #include <EXTERN.h>
8099     #include <perl.h>
8100     #include <XSUB.h>
8101    
8102     int
8103     main ()
8104     {
8105    
8106     PerlInterpreter *perl = perl_alloc ();
8107    
8108     ;
8109     return 0;
8110     }
8111     _ACEOF
8112 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
8113 root 1.62 rxvt_perl_link=yes
8114     else
8115 sf-exg 1.132 rxvt_perl_link=no
8116 root 1.62 fi
8117 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
8118     conftest$ac_exeext conftest.$ac_ext
8119 root 1.62 CXXFLAGS="$save_CXXFLAGS"
8120     LIBS="$save_LIBS"
8121    
8122     if test x$rxvt_perl_link = xyes; then
8123 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8124     $as_echo "ok" >&6; }
8125 root 1.62
8126 sf-exg 1.132 $as_echo "#define ENABLE_PERL 1" >>confdefs.h
8127 root 1.60
8128 root 1.62 IF_PERL=
8129     PERL_O=rxvtperl.o
8130     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
8131     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
8132     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
8133     else
8134 root 1.137 as_fn_error $? "no, unable to link" "$LINENO" 5
8135 root 1.62 fi
8136 root 1.60 else
8137 root 1.137 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
8138 root 1.60 fi
8139     fi
8140    
8141    
8142    
8143    
8144    
8145    
8146    
8147 pcg 1.1
8148 ayin 1.124 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
8149 root 1.32
8150 pcg 1.11 cat >confcache <<\_ACEOF
8151 pcg 1.1 # This file is a shell script that caches the results of configure
8152     # tests run on this system so they can be shared between configure
8153 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
8154     # It is not useful on other systems. If it contains results you don't
8155     # want to keep, you may remove or edit it.
8156 pcg 1.1 #
8157 pcg 1.11 # config.status only pays attention to the cache file if you give it
8158     # the --recheck option to rerun configure.
8159 pcg 1.1 #
8160 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8161     # loading this file, other *unset* `ac_cv_foo' will be assigned the
8162     # following values.
8163    
8164     _ACEOF
8165    
8166 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
8167     # but we know of no workaround that is simple, portable, and efficient.
8168 ayin 1.108 # So, we kill variables containing newlines.
8169 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
8170     # and sets the high bit in the cache file unless we assign to the vars.
8171 ayin 1.108 (
8172     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8173     eval ac_val=\$$ac_var
8174     case $ac_val in #(
8175     *${as_nl}*)
8176     case $ac_var in #(
8177 sf-exg 1.132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8178     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8179 ayin 1.108 esac
8180     case $ac_var in #(
8181     _ | IFS | as_nl) ;; #(
8182 sf-exg 1.132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8183     *) { eval $ac_var=; unset $ac_var;} ;;
8184 ayin 1.108 esac ;;
8185     esac
8186     done
8187    
8188 pcg 1.11 (set) 2>&1 |
8189 ayin 1.108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8190     *${as_nl}ac_space=\ *)
8191 sf-exg 1.132 # `set' does not quote correctly, so add quotes: double-quote
8192     # substitution turns \\\\ into \\, and sed turns \\ into \.
8193 pcg 1.11 sed -n \
8194     "s/'/'\\\\''/g;
8195     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8196 ayin 1.108 ;; #(
8197 pcg 1.11 *)
8198     # `set' quotes correctly as required by POSIX, so do not add quotes.
8199 ayin 1.108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8200 pcg 1.11 ;;
8201 ayin 1.108 esac |
8202     sort
8203     ) |
8204 pcg 1.11 sed '
8205 ayin 1.108 /^ac_cv_env_/b end
8206 pcg 1.11 t clear
8207 ayin 1.108 :clear
8208 pcg 1.11 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8209     t end
8210 ayin 1.108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8211     :end' >>confcache
8212     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8213     if test -w "$cache_file"; then
8214 sf-exg 1.151 if test "x$cache_file" != "x/dev/null"; then
8215 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8216     $as_echo "$as_me: updating cache $cache_file" >&6;}
8217 sf-exg 1.151 if test ! -f "$cache_file" || test -h "$cache_file"; then
8218     cat confcache >"$cache_file"
8219     else
8220     case $cache_file in #(
8221     */* | ?:*)
8222     mv -f confcache "$cache_file"$$ &&
8223     mv -f "$cache_file"$$ "$cache_file" ;; #(
8224     *)
8225     mv -f confcache "$cache_file" ;;
8226     esac
8227     fi
8228     fi
8229 pcg 1.1 else
8230 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8231     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8232 pcg 1.1 fi
8233     fi
8234     rm -f confcache
8235    
8236     test "x$prefix" = xNONE && prefix=$ac_default_prefix
8237     # Let make expand exec_prefix.
8238     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8239    
8240 pcg 1.11 DEFS=-DHAVE_CONFIG_H
8241    
8242     ac_libobjs=
8243     ac_ltlibobjs=
8244 root 1.137 U=
8245 pcg 1.11 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8246     # 1. Remove the extension, and $U if already installed.
8247 ayin 1.108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8248 sf-exg 1.132 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8249 ayin 1.108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8250     # will be set to the directory where LIBOBJS objects are built.
8251 sf-exg 1.132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8252     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8253 pcg 1.11 done
8254     LIBOBJS=$ac_libobjs
8255    
8256     LTLIBOBJS=$ac_ltlibobjs
8257    
8258 pcg 1.1
8259    
8260 sf-exg 1.151 : "${CONFIG_STATUS=./config.status}"
8261 sf-exg 1.132 ac_write_fail=0
8262 pcg 1.11 ac_clean_files_save=$ac_clean_files
8263     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8264 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8265     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8266     as_write_fail=0
8267     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8268 pcg 1.11 #! $SHELL
8269     # Generated by $as_me.
8270 pcg 1.1 # Run this file to recreate the current configuration.
8271     # Compiler output produced by configure, useful for debugging
8272 pcg 1.11 # configure, is in config.log if it exists.
8273    
8274     debug=false
8275     ac_cs_recheck=false
8276     ac_cs_silent=false
8277 sf-exg 1.132
8278 pcg 1.11 SHELL=\${CONFIG_SHELL-$SHELL}
8279 sf-exg 1.132 export SHELL
8280     _ASEOF
8281     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8282     ## -------------------- ##
8283     ## M4sh Initialization. ##
8284     ## -------------------- ##
8285 pcg 1.11
8286 ayin 1.108 # Be more Bourne compatible
8287     DUALCASE=1; export DUALCASE # for MKS sh
8288 sf-exg 1.132 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8289 pcg 1.11 emulate sh
8290     NULLCMD=:
8291 sf-exg 1.132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8292 pcg 1.11 # is contrary to our usage. Disable this feature.
8293     alias -g '${1+"$@"}'='"$@"'
8294 ayin 1.108 setopt NO_GLOB_SUBST
8295     else
8296 sf-exg 1.132 case `(set -o) 2>/dev/null` in #(
8297     *posix*) :
8298     set -o posix ;; #(
8299     *) :
8300     ;;
8301 ayin 1.108 esac
8302     fi
8303    
8304    
8305 sf-exg 1.132 as_nl='
8306     '
8307     export as_nl
8308     # Printing a long string crashes Solaris 7 /usr/bin/printf.
8309     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8310     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8311     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8312     # Prefer a ksh shell builtin over an external printf program on Solaris,
8313     # but without wasting forks for bash or zsh.
8314     if test -z "$BASH_VERSION$ZSH_VERSION" \
8315     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8316     as_echo='print -r --'
8317     as_echo_n='print -rn --'
8318     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8319     as_echo='printf %s\n'
8320     as_echo_n='printf %s'
8321     else
8322     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8323     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8324     as_echo_n='/usr/ucb/echo -n'
8325 ayin 1.108 else
8326 sf-exg 1.132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8327     as_echo_n_body='eval
8328     arg=$1;
8329     case $arg in #(
8330     *"$as_nl"*)
8331     expr "X$arg" : "X\\(.*\\)$as_nl";
8332     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8333     esac;
8334     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8335     '
8336     export as_echo_n_body
8337     as_echo_n='sh -c $as_echo_n_body as_echo'
8338 ayin 1.108 fi
8339 sf-exg 1.132 export as_echo_body
8340     as_echo='sh -c $as_echo_body as_echo'
8341 ayin 1.106 fi
8342    
8343 sf-exg 1.132 # The user is always right.
8344     if test "${PATH_SEPARATOR+set}" != set; then
8345     PATH_SEPARATOR=:
8346     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8347     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8348     PATH_SEPARATOR=';'
8349     }
8350 pcg 1.11 fi
8351    
8352    
8353 ayin 1.108 # IFS
8354     # We need space, tab and new line, in precisely that order. Quoting is
8355     # there to prevent editors from complaining about space-tab.
8356     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8357     # splitting by setting IFS to empty value.)
8358     IFS=" "" $as_nl"
8359    
8360     # Find who we are. Look in the path if we contain no directory separator.
8361 sf-exg 1.151 as_myself=
8362 sf-exg 1.132 case $0 in #((
8363 ayin 1.108 *[\\/]* ) as_myself=$0 ;;
8364     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365     for as_dir in $PATH
8366     do
8367     IFS=$as_save_IFS
8368     test -z "$as_dir" && as_dir=.
8369 sf-exg 1.132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8370     done
8371 ayin 1.108 IFS=$as_save_IFS
8372    
8373     ;;
8374     esac
8375     # We did not find ourselves, most probably we were run as `sh COMMAND'
8376     # in which case we are not to be found in the path.
8377     if test "x$as_myself" = x; then
8378     as_myself=$0
8379     fi
8380     if test ! -f "$as_myself"; then
8381 sf-exg 1.132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8382     exit 1
8383 ayin 1.108 fi
8384    
8385 sf-exg 1.132 # Unset variables that we do not need and which cause bugs (e.g. in
8386     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8387     # suppresses any "Segmentation fault" message there. '((' could
8388     # trigger a bug in pdksh 5.2.14.
8389     for as_var in BASH_ENV ENV MAIL MAILPATH
8390     do eval test x\${$as_var+set} = xset \
8391     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8392 ayin 1.108 done
8393 ayin 1.106 PS1='$ '
8394     PS2='> '
8395 root 1.105 PS4='+ '
8396    
8397     # NLS nuisances.
8398 sf-exg 1.132 LC_ALL=C
8399     export LC_ALL
8400     LANGUAGE=C
8401     export LANGUAGE
8402    
8403     # CDPATH.
8404     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8405    
8406    
8407 root 1.137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8408     # ----------------------------------------
8409 sf-exg 1.132 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8410     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8411 root 1.137 # script with STATUS, using 1 if that was 0.
8412 sf-exg 1.132 as_fn_error ()
8413     {
8414 root 1.137 as_status=$1; test $as_status -eq 0 && as_status=1
8415     if test "$4"; then
8416     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8417     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8418 sf-exg 1.132 fi
8419 root 1.137 $as_echo "$as_me: error: $2" >&2
8420 sf-exg 1.132 as_fn_exit $as_status
8421     } # as_fn_error
8422    
8423    
8424     # as_fn_set_status STATUS
8425     # -----------------------
8426     # Set $? to STATUS, without forking.
8427     as_fn_set_status ()
8428     {
8429     return $1
8430     } # as_fn_set_status
8431    
8432     # as_fn_exit STATUS
8433     # -----------------
8434     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8435     as_fn_exit ()
8436     {
8437     set +e
8438     as_fn_set_status $1
8439     exit $1
8440     } # as_fn_exit
8441    
8442     # as_fn_unset VAR
8443     # ---------------
8444     # Portably unset VAR.
8445     as_fn_unset ()
8446     {
8447     { eval $1=; unset $1;}
8448     }
8449     as_unset=as_fn_unset
8450     # as_fn_append VAR VALUE
8451     # ----------------------
8452     # Append the text in VALUE to the end of the definition contained in VAR. Take
8453     # advantage of any shell optimizations that allow amortized linear growth over
8454     # repeated appends, instead of the typical quadratic growth present in naive
8455     # implementations.
8456     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8457     eval 'as_fn_append ()
8458     {
8459     eval $1+=\$2
8460     }'
8461     else
8462     as_fn_append ()
8463     {
8464     eval $1=\$$1\$2
8465     }
8466     fi # as_fn_append
8467    
8468     # as_fn_arith ARG...
8469     # ------------------
8470     # Perform arithmetic evaluation on the ARGs, and store the result in the
8471     # global $as_val. Take advantage of shells that can avoid forks. The arguments
8472     # must be portable across $(()) and expr.
8473     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8474     eval 'as_fn_arith ()
8475     {
8476     as_val=$(( $* ))
8477     }'
8478     else
8479     as_fn_arith ()
8480     {
8481     as_val=`expr "$@" || test $? -eq 1`
8482     }
8483     fi # as_fn_arith
8484    
8485 root 1.105
8486 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
8487     test "X`expr 00001 : '.*\(...\)'`" = X001; then
8488 root 1.105 as_expr=expr
8489     else
8490     as_expr=false
8491     fi
8492    
8493 ayin 1.108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8494 root 1.105 as_basename=basename
8495     else
8496     as_basename=false
8497     fi
8498    
8499 sf-exg 1.132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8500     as_dirname=dirname
8501     else
8502     as_dirname=false
8503     fi
8504 root 1.105
8505 ayin 1.108 as_me=`$as_basename -- "$0" ||
8506 root 1.105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8507     X"$0" : 'X\(//\)$' \| \
8508 ayin 1.108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8509 sf-exg 1.132 $as_echo X/"$0" |
8510 ayin 1.108 sed '/^.*\/\([^/][^/]*\)\/*$/{
8511     s//\1/
8512     q
8513     }
8514     /^X\/\(\/\/\)$/{
8515     s//\1/
8516     q
8517     }
8518     /^X\/\(\/\).*/{
8519     s//\1/
8520     q
8521     }
8522     s/.*/./; q'`
8523    
8524 sf-exg 1.132 # Avoid depending upon Character Ranges.
8525     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8526     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8527     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8528     as_cr_digits='0123456789'
8529     as_cr_alnum=$as_cr_Letters$as_cr_digits
8530 ayin 1.108
8531     ECHO_C= ECHO_N= ECHO_T=
8532 sf-exg 1.132 case `echo -n x` in #(((((
8533 ayin 1.108 -n*)
8534 sf-exg 1.132 case `echo 'xy\c'` in
8535 ayin 1.108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8536 sf-exg 1.132 xy) ECHO_C='\c';;
8537     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8538     ECHO_T=' ';;
8539 ayin 1.108 esac;;
8540     *)
8541     ECHO_N='-n';;
8542 pcg 1.11 esac
8543    
8544     rm -f conf$$ conf$$.exe conf$$.file
8545 ayin 1.108 if test -d conf$$.dir; then
8546     rm -f conf$$.dir/conf$$.file
8547     else
8548     rm -f conf$$.dir
8549 sf-exg 1.132 mkdir conf$$.dir 2>/dev/null
8550 ayin 1.108 fi
8551 sf-exg 1.132 if (echo >conf$$.file) 2>/dev/null; then
8552     if ln -s conf$$.file conf$$ 2>/dev/null; then
8553     as_ln_s='ln -s'
8554     # ... but there are two gotchas:
8555     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8556     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8557     # In both cases, we have to default to `cp -p'.
8558     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8559     as_ln_s='cp -p'
8560     elif ln conf$$.file conf$$ 2>/dev/null; then
8561     as_ln_s=ln
8562     else
8563 pcg 1.11 as_ln_s='cp -p'
8564 sf-exg 1.132 fi
8565 pcg 1.11 else
8566     as_ln_s='cp -p'
8567     fi
8568 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8569     rmdir conf$$.dir 2>/dev/null
8570 pcg 1.11
8571 sf-exg 1.132
8572     # as_fn_mkdir_p
8573     # -------------
8574     # Create "$as_dir" as a directory, including parents if necessary.
8575     as_fn_mkdir_p ()
8576     {
8577    
8578     case $as_dir in #(
8579     -*) as_dir=./$as_dir;;
8580     esac
8581     test -d "$as_dir" || eval $as_mkdir_p || {
8582     as_dirs=
8583     while :; do
8584     case $as_dir in #(
8585     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8586     *) as_qdir=$as_dir;;
8587     esac
8588     as_dirs="'$as_qdir' $as_dirs"
8589     as_dir=`$as_dirname -- "$as_dir" ||
8590     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8591     X"$as_dir" : 'X\(//\)[^/]' \| \
8592     X"$as_dir" : 'X\(//\)$' \| \
8593     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8594     $as_echo X"$as_dir" |
8595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8596     s//\1/
8597     q
8598     }
8599     /^X\(\/\/\)[^/].*/{
8600     s//\1/
8601     q
8602     }
8603     /^X\(\/\/\)$/{
8604     s//\1/
8605     q
8606     }
8607     /^X\(\/\).*/{
8608     s//\1/
8609     q
8610     }
8611     s/.*/./; q'`
8612     test -d "$as_dir" && break
8613     done
8614     test -z "$as_dirs" || eval "mkdir $as_dirs"
8615 root 1.137 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8616 sf-exg 1.132
8617    
8618     } # as_fn_mkdir_p
8619 pcg 1.11 if mkdir -p . 2>/dev/null; then
8620 sf-exg 1.132 as_mkdir_p='mkdir -p "$as_dir"'
8621 pcg 1.11 else
8622     test -d ./-p && rmdir ./-p
8623     as_mkdir_p=false
8624     fi
8625    
8626 ayin 1.108 if test -x / >/dev/null 2>&1; then
8627     as_test_x='test -x'
8628     else
8629     if ls -dL / >/dev/null 2>&1; then
8630     as_ls_L_option=L
8631     else
8632     as_ls_L_option=
8633     fi
8634     as_test_x='
8635     eval sh -c '\''
8636     if test -d "$1"; then
8637 sf-exg 1.132 test -d "$1/.";
8638 ayin 1.108 else
8639 sf-exg 1.132 case $1 in #(
8640     -*)set "./$1";;
8641 ayin 1.108 esac;
8642 sf-exg 1.132 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8643 ayin 1.108 ???[sx]*):;;*)false;;esac;fi
8644     '\'' sh
8645     '
8646     fi
8647     as_executable_p=$as_test_x
8648 pcg 1.11
8649     # Sed expression to map a string onto a valid CPP name.
8650     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8651    
8652     # Sed expression to map a string onto a valid variable name.
8653     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8654    
8655    
8656     exec 6>&1
8657 sf-exg 1.132 ## ----------------------------------- ##
8658     ## Main body of $CONFIG_STATUS script. ##
8659     ## ----------------------------------- ##
8660     _ASEOF
8661     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8662 pcg 1.11
8663 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8664     # Save the log message, to keep $0 and so on meaningful, and to
8665 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
8666 ayin 1.108 # values after options handling.
8667     ac_log="
8668 pcg 1.11 This file was extended by $as_me, which was
8669 sf-exg 1.151 generated by GNU Autoconf 2.68. Invocation command line was
8670 pcg 1.11
8671     CONFIG_FILES = $CONFIG_FILES
8672     CONFIG_HEADERS = $CONFIG_HEADERS
8673     CONFIG_LINKS = $CONFIG_LINKS
8674     CONFIG_COMMANDS = $CONFIG_COMMANDS
8675     $ $0 $@
8676    
8677 ayin 1.108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8678     "
8679    
8680 pcg 1.11 _ACEOF
8681    
8682 sf-exg 1.132 case $ac_config_files in *"
8683     "*) set x $ac_config_files; shift; ac_config_files=$*;;
8684     esac
8685    
8686     case $ac_config_headers in *"
8687     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8688     esac
8689    
8690    
8691     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8692 pcg 1.11 # Files that config.status was made for.
8693 ayin 1.108 config_files="$ac_config_files"
8694     config_headers="$ac_config_headers"
8695 ayin 1.106
8696 ayin 1.108 _ACEOF
8697 pcg 1.11
8698 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8699 pcg 1.11 ac_cs_usage="\
8700 sf-exg 1.132 \`$as_me' instantiates files and other configuration actions
8701     from templates according to the current configuration. Unless the files
8702     and actions are specified as TAGs, all are instantiated by default.
8703 pcg 1.11
8704 sf-exg 1.132 Usage: $0 [OPTION]... [TAG]...
8705 pcg 1.11
8706     -h, --help print this help, then exit
8707 ayin 1.108 -V, --version print version number and configuration settings, then exit
8708 sf-exg 1.132 --config print configuration, then exit
8709     -q, --quiet, --silent
8710     do not print progress messages
8711 pcg 1.11 -d, --debug don't remove temporary files
8712     --recheck update $as_me by reconfiguring in the same conditions
8713 sf-exg 1.132 --file=FILE[:TEMPLATE]
8714     instantiate the configuration file FILE
8715     --header=FILE[:TEMPLATE]
8716     instantiate the configuration header FILE
8717 pcg 1.11
8718     Configuration files:
8719     $config_files
8720    
8721     Configuration headers:
8722     $config_headers
8723    
8724 sf-exg 1.132 Report bugs to the package provider."
8725 ayin 1.108
8726 ayin 1.106 _ACEOF
8727 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8728     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8729 pcg 1.11 ac_cs_version="\\
8730     config.status
8731 sf-exg 1.151 configured by $0, generated by GNU Autoconf 2.68,
8732 sf-exg 1.132 with options \\"\$ac_cs_config\\"
8733 pcg 1.11
8734 root 1.137 Copyright (C) 2010 Free Software Foundation, Inc.
8735 pcg 1.11 This config.status script is free software; the Free Software Foundation
8736     gives unlimited permission to copy, distribute and modify it."
8737 ayin 1.108
8738     ac_pwd='$ac_pwd'
8739     srcdir='$srcdir'
8740     INSTALL='$INSTALL'
8741 sf-exg 1.132 test -n "\$AWK" || AWK=awk
8742 pcg 1.11 _ACEOF
8743    
8744 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8745     # The default lists apply if the user does not specify any file.
8746 pcg 1.11 ac_need_defaults=:
8747     while test $# != 0
8748 pcg 1.1 do
8749 pcg 1.11 case $1 in
8750 root 1.137 --*=?*)
8751 ayin 1.108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8752     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8753 pcg 1.11 ac_shift=:
8754     ;;
8755 root 1.137 --*=)
8756     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8757     ac_optarg=
8758     ac_shift=:
8759     ;;
8760 ayin 1.108 *)
8761 pcg 1.11 ac_option=$1
8762     ac_optarg=$2
8763     ac_shift=shift
8764     ;;
8765     esac
8766    
8767     case $ac_option in
8768     # Handling of the options.
8769 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8770 pcg 1.11 ac_cs_recheck=: ;;
8771 ayin 1.108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8772 sf-exg 1.132 $as_echo "$ac_cs_version"; exit ;;
8773     --config | --confi | --conf | --con | --co | --c )
8774     $as_echo "$ac_cs_config"; exit ;;
8775 ayin 1.108 --debug | --debu | --deb | --de | --d | -d )
8776 pcg 1.11 debug=: ;;
8777     --file | --fil | --fi | --f )
8778     $ac_shift
8779 sf-exg 1.132 case $ac_optarg in
8780     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8781 root 1.137 '') as_fn_error $? "missing file argument" ;;
8782 sf-exg 1.132 esac
8783     as_fn_append CONFIG_FILES " '$ac_optarg'"
8784 pcg 1.11 ac_need_defaults=false;;
8785     --header | --heade | --head | --hea )
8786     $ac_shift
8787 sf-exg 1.132 case $ac_optarg in
8788     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8789     esac
8790     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8791 pcg 1.11 ac_need_defaults=false;;
8792 ayin 1.108 --he | --h)
8793     # Conflict between --help and --header
8794 root 1.137 as_fn_error $? "ambiguous option: \`$1'
8795 sf-exg 1.132 Try \`$0 --help' for more information.";;
8796 ayin 1.108 --help | --hel | -h )
8797 sf-exg 1.132 $as_echo "$ac_cs_usage"; exit ;;
8798 pcg 1.11 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8799     | -silent | --silent | --silen | --sile | --sil | --si | --s)
8800     ac_cs_silent=: ;;
8801    
8802     # This is an error.
8803 root 1.137 -*) as_fn_error $? "unrecognized option: \`$1'
8804 sf-exg 1.132 Try \`$0 --help' for more information." ;;
8805 pcg 1.11
8806 sf-exg 1.132 *) as_fn_append ac_config_targets " $1"
8807 ayin 1.108 ac_need_defaults=false ;;
8808 pcg 1.11
8809     esac
8810     shift
8811     done
8812    
8813     ac_configure_extra_args=
8814    
8815     if $ac_cs_silent; then
8816     exec 6>/dev/null
8817     ac_configure_extra_args="$ac_configure_extra_args --silent"
8818     fi
8819    
8820     _ACEOF
8821 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8822 pcg 1.11 if \$ac_cs_recheck; then
8823 sf-exg 1.132 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8824     shift
8825     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8826     CONFIG_SHELL='$SHELL'
8827 ayin 1.108 export CONFIG_SHELL
8828 sf-exg 1.132 exec "\$@"
8829 pcg 1.11 fi
8830    
8831     _ACEOF
8832 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8833 ayin 1.108 exec 5>>config.log
8834     {
8835     echo
8836     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8837     ## Running $as_me. ##
8838     _ASBOX
8839 sf-exg 1.132 $as_echo "$ac_log"
8840 ayin 1.108 } >&5
8841 pcg 1.11
8842 ayin 1.108 _ACEOF
8843 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8844 ayin 1.108 _ACEOF
8845 ayin 1.106
8846 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8847 ayin 1.106
8848 ayin 1.108 # Handling of arguments.
8849 pcg 1.11 for ac_config_target in $ac_config_targets
8850     do
8851 ayin 1.108 case $ac_config_target in
8852     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8853     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8854     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8855     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8856    
8857 sf-exg 1.151 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8858 pcg 1.1 esac
8859     done
8860    
8861 ayin 1.108
8862 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
8863     # then the envvar interface is used. Set only those that are not.
8864     # We use the long form for the default assignment because of an extremely
8865     # bizarre bug on SunOS 4.1.3.
8866     if $ac_need_defaults; then
8867     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8868     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8869     fi
8870    
8871     # Have a temporary directory for convenience. Make it in the build tree
8872 ayin 1.108 # simply because there is no reason against having it here, and in addition,
8873 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
8874 ayin 1.108 # Hook for its removal unless debugging.
8875     # Note that there is a small window in which the directory will not be cleaned:
8876     # after its creation but before its name has been assigned to `$tmp'.
8877 pcg 1.11 $debug ||
8878     {
8879 sf-exg 1.151 tmp= ac_tmp=
8880 ayin 1.108 trap 'exit_status=$?
8881 sf-exg 1.151 : "${ac_tmp:=$tmp}"
8882     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8883 ayin 1.108 ' 0
8884 sf-exg 1.132 trap 'as_fn_exit 1' 1 2 13 15
8885 pcg 1.11 }
8886     # Create a (secure) tmp directory for tmp files.
8887    
8888     {
8889 ayin 1.108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8890 sf-exg 1.151 test -d "$tmp"
8891 pcg 1.11 } ||
8892     {
8893 ayin 1.108 tmp=./conf$$-$RANDOM
8894     (umask 077 && mkdir "$tmp")
8895 root 1.137 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8896 sf-exg 1.151 ac_tmp=$tmp
8897 sf-exg 1.132
8898     # Set up the scripts for CONFIG_FILES section.
8899     # No need to generate them if there are no CONFIG_FILES.
8900     # This happens for instance with `./config.status config.h'.
8901     if test -n "$CONFIG_FILES"; then
8902 pcg 1.11
8903 ayin 1.108
8904 sf-exg 1.132 ac_cr=`echo X | tr X '\015'`
8905     # On cygwin, bash can eat \r inside `` if the user requested igncr.
8906     # But we know of no other shell where ac_cr would be empty at this
8907     # point, so we can use a bashism as a fallback.
8908     if test "x$ac_cr" = x; then
8909     eval ac_cr=\$\'\\r\'
8910     fi
8911     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8912     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8913 root 1.137 ac_cs_awk_cr='\\r'
8914 sf-exg 1.132 else
8915     ac_cs_awk_cr=$ac_cr
8916     fi
8917 ayin 1.108
8918 sf-exg 1.151 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8919 ayin 1.106 _ACEOF
8920    
8921 ayin 1.108
8922 sf-exg 1.132 {
8923     echo "cat >conf$$subs.awk <<_ACEOF" &&
8924     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8925     echo "_ACEOF"
8926     } >conf$$subs.sh ||
8927 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8928     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8929 ayin 1.108 ac_delim='%!_!# '
8930     for ac_last_try in false false false false false :; do
8931 sf-exg 1.132 . ./conf$$subs.sh ||
8932 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8933 root 1.105
8934 sf-exg 1.132 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8935     if test $ac_delim_n = $ac_delim_num; then
8936 ayin 1.108 break
8937     elif $ac_last_try; then
8938 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8939 ayin 1.108 else
8940     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8941 root 1.105 fi
8942 ayin 1.108 done
8943 sf-exg 1.132 rm -f conf$$subs.sh
8944 ayin 1.108
8945 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8946 sf-exg 1.151 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8947 ayin 1.108 _ACEOF
8948 sf-exg 1.132 sed -n '
8949     h
8950     s/^/S["/; s/!.*/"]=/
8951     p
8952     g
8953     s/^[^!]*!//
8954     :repl
8955     t repl
8956     s/'"$ac_delim"'$//
8957     t delim
8958     :nl
8959     h
8960     s/\(.\{148\}\)..*/\1/
8961     t more1
8962     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8963     p
8964     n
8965     b repl
8966     :more1
8967     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8968     p
8969     g
8970     s/.\{148\}//
8971     t nl
8972     :delim
8973     h
8974     s/\(.\{148\}\)..*/\1/
8975     t more2
8976     s/["\\]/\\&/g; s/^/"/; s/$/"/
8977     p
8978     b
8979     :more2
8980     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8981     p
8982     g
8983     s/.\{148\}//
8984     t delim
8985     ' <conf$$subs.awk | sed '
8986     /^[^""]/{
8987     N
8988     s/\n//
8989     }
8990     ' >>$CONFIG_STATUS || ac_write_fail=1
8991     rm -f conf$$subs.awk
8992     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8993     _ACAWK
8994 sf-exg 1.151 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8995 sf-exg 1.132 for (key in S) S_is_set[key] = 1
8996     FS = ""
8997 ayin 1.108
8998 sf-exg 1.132 }
8999     {
9000     line = $ 0
9001     nfields = split(line, field, "@")
9002     substed = 0
9003     len = length(field[1])
9004     for (i = 2; i < nfields; i++) {
9005     key = field[i]
9006     keylen = length(key)
9007     if (S_is_set[key]) {
9008     value = S[key]
9009     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9010     len += length(value) + length(field[++i])
9011     substed = 1
9012     } else
9013     len += 1 + keylen
9014     }
9015    
9016     print line
9017     }
9018    
9019     _ACAWK
9020     _ACEOF
9021     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9022     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9023     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9024     else
9025     cat
9026 sf-exg 1.151 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9027 root 1.137 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9028 sf-exg 1.132 _ACEOF
9029 ayin 1.108
9030 root 1.137 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9031     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9032 ayin 1.108 # trailing colons and then remove the whole line if VPATH becomes empty
9033     # (actually we leave an empty line to preserve line numbers).
9034     if test "x$srcdir" = x.; then
9035 root 1.137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9036     h
9037     s///
9038     s/^/:/
9039     s/[ ]*$/:/
9040     s/:\$(srcdir):/:/g
9041     s/:\${srcdir}:/:/g
9042     s/:@srcdir@:/:/g
9043     s/^:*//
9044 ayin 1.108 s/:*$//
9045 root 1.137 x
9046     s/\(=[ ]*\).*/\1/
9047     G
9048     s/\n//
9049 ayin 1.108 s/^[^=]*=[ ]*$//
9050     }'
9051     fi
9052    
9053 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9054 ayin 1.108 fi # test -n "$CONFIG_FILES"
9055    
9056 sf-exg 1.132 # Set up the scripts for CONFIG_HEADERS section.
9057     # No need to generate them if there are no CONFIG_HEADERS.
9058     # This happens for instance with `./config.status Makefile'.
9059     if test -n "$CONFIG_HEADERS"; then
9060 sf-exg 1.151 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9061 sf-exg 1.132 BEGIN {
9062     _ACEOF
9063    
9064     # Transform confdefs.h into an awk script `defines.awk', embedded as
9065     # here-document in config.status, that substitutes the proper values into
9066     # config.h.in to produce config.h.
9067    
9068     # Create a delimiter string that does not exist in confdefs.h, to ease
9069     # handling of long lines.
9070     ac_delim='%!_!# '
9071     for ac_last_try in false false :; do
9072 sf-exg 1.151 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9073     if test -z "$ac_tt"; then
9074 sf-exg 1.132 break
9075     elif $ac_last_try; then
9076 root 1.137 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9077 sf-exg 1.132 else
9078     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9079     fi
9080     done
9081    
9082     # For the awk script, D is an array of macro values keyed by name,
9083     # likewise P contains macro parameters if any. Preserve backslash
9084     # newline sequences.
9085    
9086     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9087     sed -n '
9088     s/.\{148\}/&'"$ac_delim"'/g
9089     t rset
9090     :rset
9091     s/^[ ]*#[ ]*define[ ][ ]*/ /
9092     t def
9093     d
9094     :def
9095     s/\\$//
9096     t bsnl
9097     s/["\\]/\\&/g
9098     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9099     D["\1"]=" \3"/p
9100     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9101     d
9102     :bsnl
9103     s/["\\]/\\&/g
9104     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9105     D["\1"]=" \3\\\\\\n"\\/p
9106     t cont
9107     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9108     t cont
9109     d
9110     :cont
9111     n
9112     s/.\{148\}/&'"$ac_delim"'/g
9113     t clear
9114     :clear
9115     s/\\$//
9116     t bsnlc
9117     s/["\\]/\\&/g; s/^/"/; s/$/"/p
9118     d
9119     :bsnlc
9120     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9121     b cont
9122     ' <confdefs.h | sed '
9123     s/'"$ac_delim"'/"\\\
9124     "/g' >>$CONFIG_STATUS || ac_write_fail=1
9125    
9126     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9127     for (key in D) D_is_set[key] = 1
9128     FS = ""
9129     }
9130     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9131     line = \$ 0
9132     split(line, arg, " ")
9133     if (arg[1] == "#") {
9134     defundef = arg[2]
9135     mac1 = arg[3]
9136     } else {
9137     defundef = substr(arg[1], 2)
9138     mac1 = arg[2]
9139     }
9140     split(mac1, mac2, "(") #)
9141     macro = mac2[1]
9142     prefix = substr(line, 1, index(line, defundef) - 1)
9143     if (D_is_set[macro]) {
9144     # Preserve the white space surrounding the "#".
9145     print prefix "define", macro P[macro] D[macro]
9146     next
9147     } else {
9148     # Replace #undef with comments. This is necessary, for example,
9149     # in the case of _POSIX_SOURCE, which is predefined and required
9150     # on some systems where configure will not decide to define it.
9151     if (defundef == "undef") {
9152     print "/*", prefix defundef, macro, "*/"
9153     next
9154     }
9155     }
9156     }
9157     { print }
9158     _ACAWK
9159     _ACEOF
9160     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9161 root 1.137 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9162 sf-exg 1.132 fi # test -n "$CONFIG_HEADERS"
9163    
9164 ayin 1.108
9165 sf-exg 1.132 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9166     shift
9167     for ac_tag
9168 ayin 1.108 do
9169     case $ac_tag in
9170     :[FHLC]) ac_mode=$ac_tag; continue;;
9171     esac
9172     case $ac_mode$ac_tag in
9173     :[FHL]*:*);;
9174 sf-exg 1.151 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9175 ayin 1.108 :[FH]-) ac_tag=-:-;;
9176     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9177     esac
9178     ac_save_IFS=$IFS
9179     IFS=:
9180     set x $ac_tag
9181     IFS=$ac_save_IFS
9182     shift
9183     ac_file=$1
9184     shift
9185    
9186     case $ac_mode in
9187     :L) ac_source=$1;;
9188     :[FH])
9189     ac_file_inputs=
9190     for ac_f
9191     do
9192     case $ac_f in
9193 sf-exg 1.151 -) ac_f="$ac_tmp/stdin";;
9194 ayin 1.108 *) # Look for the file first in the build tree, then in the source tree
9195     # (if the path is not absolute). The absolute path cannot be DOS-style,
9196     # because $ac_f cannot contain `:'.
9197     test -f "$ac_f" ||
9198     case $ac_f in
9199     [\\/$]*) false;;
9200     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9201     esac ||
9202 sf-exg 1.151 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9203 ayin 1.108 esac
9204 sf-exg 1.132 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9205     as_fn_append ac_file_inputs " '$ac_f'"
9206 ayin 1.108 done
9207    
9208     # Let's still pretend it is `configure' which instantiates (i.e., don't
9209     # use $as_me), people would be surprised to read:
9210     # /* config.h. Generated by config.status. */
9211 sf-exg 1.132 configure_input='Generated from '`
9212     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9213     `' by configure.'
9214 ayin 1.108 if test x"$ac_file" != x-; then
9215     configure_input="$ac_file. $configure_input"
9216 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9217     $as_echo "$as_me: creating $ac_file" >&6;}
9218 ayin 1.108 fi
9219 sf-exg 1.132 # Neutralize special characters interpreted by sed in replacement strings.
9220     case $configure_input in #(
9221     *\&* | *\|* | *\\* )
9222     ac_sed_conf_input=`$as_echo "$configure_input" |
9223     sed 's/[\\\\&|]/\\\\&/g'`;; #(
9224     *) ac_sed_conf_input=$configure_input;;
9225     esac
9226 ayin 1.108
9227     case $ac_tag in
9228 sf-exg 1.151 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9229     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9230 ayin 1.108 esac
9231     ;;
9232 ayin 1.102 esac
9233    
9234 ayin 1.108 ac_dir=`$as_dirname -- "$ac_file" ||
9235 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9236     X"$ac_file" : 'X\(//\)[^/]' \| \
9237     X"$ac_file" : 'X\(//\)$' \| \
9238 ayin 1.108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9239 sf-exg 1.132 $as_echo X"$ac_file" |
9240 ayin 1.108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9241     s//\1/
9242     q
9243     }
9244     /^X\(\/\/\)[^/].*/{
9245     s//\1/
9246     q
9247     }
9248     /^X\(\/\/\)$/{
9249     s//\1/
9250     q
9251     }
9252     /^X\(\/\).*/{
9253     s//\1/
9254     q
9255     }
9256     s/.*/./; q'`
9257 sf-exg 1.132 as_dir="$ac_dir"; as_fn_mkdir_p
9258 pcg 1.11 ac_builddir=.
9259    
9260 ayin 1.108 case "$ac_dir" in
9261     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9262     *)
9263 sf-exg 1.132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9264 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
9265 sf-exg 1.132 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9266 ayin 1.108 case $ac_top_builddir_sub in
9267     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9268     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9269     esac ;;
9270     esac
9271     ac_abs_top_builddir=$ac_pwd
9272     ac_abs_builddir=$ac_pwd$ac_dir_suffix
9273     # for backward compatibility:
9274     ac_top_builddir=$ac_top_build_prefix
9275 pcg 1.11
9276     case $srcdir in
9277 ayin 1.108 .) # We are building in place.
9278 pcg 1.11 ac_srcdir=.
9279 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
9280     ac_abs_top_srcdir=$ac_pwd ;;
9281     [\\/]* | ?:[\\/]* ) # Absolute name.
9282 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
9283 ayin 1.108 ac_top_srcdir=$srcdir
9284     ac_abs_top_srcdir=$srcdir ;;
9285     *) # Relative name.
9286     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9287     ac_top_srcdir=$ac_top_build_prefix$srcdir
9288     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9289 pcg 1.11 esac
9290 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9291 pcg 1.11
9292    
9293 ayin 1.108 case $ac_mode in
9294     :F)
9295     #
9296     # CONFIG_FILE
9297     #
9298 pcg 1.1
9299 pcg 1.11 case $INSTALL in
9300     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9301 ayin 1.108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9302 pcg 1.1 esac
9303 ayin 1.108 _ACEOF
9304 pcg 1.1
9305 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9306 ayin 1.108 # If the template does not know about datarootdir, expand it.
9307     # FIXME: This hack should be removed a few years after 2.60.
9308     ac_datarootdir_hack=; ac_datarootdir_seen=
9309 sf-exg 1.132 ac_sed_dataroot='
9310     /datarootdir/ {
9311 ayin 1.108 p
9312     q
9313     }
9314     /@datadir@/p
9315     /@docdir@/p
9316     /@infodir@/p
9317     /@localedir@/p
9318 sf-exg 1.132 /@mandir@/p'
9319     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9320 ayin 1.108 *datarootdir*) ac_datarootdir_seen=yes;;
9321     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9322 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9323     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9324 ayin 1.108 _ACEOF
9325 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9326 ayin 1.108 ac_datarootdir_hack='
9327     s&@datadir@&$datadir&g
9328     s&@docdir@&$docdir&g
9329     s&@infodir@&$infodir&g
9330     s&@localedir@&$localedir&g
9331     s&@mandir@&$mandir&g
9332 sf-exg 1.132 s&\\\${datarootdir}&$datarootdir&g' ;;
9333 ayin 1.108 esac
9334 root 1.105 _ACEOF
9335 ayin 1.108
9336     # Neutralize VPATH when `$srcdir' = `.'.
9337     # Shell code in configure.ac might set extrasub.
9338     # FIXME: do we really want to maintain this feature?
9339 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9340     ac_sed_extra="$ac_vpsub
9341 pcg 1.11 $extrasub
9342     _ACEOF
9343 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9344 pcg 1.11 :t
9345     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9346 sf-exg 1.132 s|@configure_input@|$ac_sed_conf_input|;t t
9347 ayin 1.108 s&@top_builddir@&$ac_top_builddir_sub&;t t
9348 sf-exg 1.132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9349 ayin 1.108 s&@srcdir@&$ac_srcdir&;t t
9350     s&@abs_srcdir@&$ac_abs_srcdir&;t t
9351     s&@top_srcdir@&$ac_top_srcdir&;t t
9352     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9353     s&@builddir@&$ac_builddir&;t t
9354     s&@abs_builddir@&$ac_abs_builddir&;t t
9355     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9356     s&@INSTALL@&$ac_INSTALL&;t t
9357     $ac_datarootdir_hack
9358 sf-exg 1.132 "
9359 sf-exg 1.151 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9360     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9361 ayin 1.108
9362     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9363 sf-exg 1.151 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9364     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9365     "$ac_tmp/out"`; test -z "$ac_out"; } &&
9366 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9367 root 1.137 which seems to be undefined. Please make sure it is defined" >&5
9368 sf-exg 1.132 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9369 root 1.137 which seems to be undefined. Please make sure it is defined" >&2;}
9370 ayin 1.106
9371 sf-exg 1.151 rm -f "$ac_tmp/stdin"
9372 pcg 1.11 case $ac_file in
9373 sf-exg 1.151 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9374     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9375 sf-exg 1.132 esac \
9376 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9377 ayin 1.108 ;;
9378     :H)
9379     #
9380     # CONFIG_HEADER
9381     #
9382 pcg 1.11 if test x"$ac_file" != x-; then
9383 sf-exg 1.132 {
9384     $as_echo "/* $configure_input */" \
9385 sf-exg 1.151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9386     } >"$ac_tmp/config.h" \
9387 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9388 sf-exg 1.151 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9389 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9390     $as_echo "$as_me: $ac_file is unchanged" >&6;}
9391 pcg 1.11 else
9392 sf-exg 1.132 rm -f "$ac_file"
9393 sf-exg 1.151 mv "$ac_tmp/config.h" "$ac_file" \
9394 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9395 pcg 1.1 fi
9396 pcg 1.11 else
9397 sf-exg 1.132 $as_echo "/* $configure_input */" \
9398 sf-exg 1.151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9399 root 1.137 || as_fn_error $? "could not create -" "$LINENO" 5
9400 pcg 1.1 fi
9401 ayin 1.108 ;;
9402    
9403    
9404     esac
9405    
9406     done # for ac_tag
9407 pcg 1.11
9408 pcg 1.1
9409 sf-exg 1.132 as_fn_exit 0
9410 pcg 1.11 _ACEOF
9411     ac_clean_files=$ac_clean_files_save
9412 pcg 1.1
9413 sf-exg 1.132 test $ac_write_fail = 0 ||
9414 root 1.137 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9415 sf-exg 1.132
9416 pcg 1.1
9417 pcg 1.11 # configure is writing to config.log, and then calls config.status.
9418     # config.status does its own redirection, appending to config.log.
9419     # Unfortunately, on DOS this fails, as config.log is still kept open
9420     # by configure, so config.status won't be able to write to it; its
9421     # output is simply discarded. So we exec the FD to /dev/null,
9422     # effectively closing config.log, so it can be properly (re)opened and
9423     # appended to by config.status. When coming back to configure, we
9424     # need to make the FD available again.
9425     if test "$no_create" != yes; then
9426     ac_cs_success=:
9427     ac_config_status_args=
9428     test "$silent" = yes &&
9429     ac_config_status_args="$ac_config_status_args --quiet"
9430     exec 5>/dev/null
9431     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9432     exec 5>>config.log
9433     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9434     # would make configure fail if this is the last instruction.
9435 root 1.137 $ac_cs_success || as_fn_exit 1
9436 sf-exg 1.132 fi
9437     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9438     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9439     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9440 pcg 1.11 fi
9441 pcg 1.1
9442    
9443     echo "Configuration:
9444    
9445     Rxvt version: $VERSION : $DATE
9446     Source code location: $srcdir
9447     Install path: ${prefix}/bin
9448 pcg 1.13 Compiler: $CXX
9449 root 1.100 Compiler flags: $CXXFLAGS
9450 pcg 1.13 Linker: $LINKER"
9451 pcg 1.1
9452     if test x$term != x; then
9453 pcg 1.18 echo " set TERM to: $term"
9454 pcg 1.1 fi
9455     if test x$terminfo != x; then
9456 pcg 1.18 echo " set TERMINFO to: $terminfo"
9457     fi
9458     echo " default resource name: $RESNAME"
9459     echo " resource class: $RESCLASS"
9460     if test x$RESFALLBACK != x; then
9461     echo " resource class fallback: $RESFALLBACK"
9462 pcg 1.1 fi
9463 pcg 1.18 echo
9464 root 1.89 echo " embedded perl: $support_perl"
9465 sf-exg 1.135 echo " image library: $image_lib"
9466 root 1.89 echo
9467 pcg 1.1 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
9468     echo ".----------------------------------------------------------------."
9469     echo ". WARNING: --enable-xim was specified however the locale support ."
9470     echo ". functions could not be found. ."
9471     echo ". XIM is now being DISABLED! ."
9472     echo ".----------------------------------------------------------------."
9473     fi
9474 pcg 1.20
9475 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
9476 pcg 1.20 echo
9477