ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.154
Committed: Thu May 10 22:42:03 2012 UTC (12 years, 1 month ago) by root
Branch: MAIN
Changes since 1.153: +1 -151 lines
Log Message:
improve message

File Contents

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