ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
Revision: 1.155
Committed: Sun Jun 10 16:18:26 2012 UTC (12 years ago) by root
Branch: MAIN
Changes since 1.154: +96 -89 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 pcg 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 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 root 1.155 PIXBUF_LIBS
603     PIXBUF_CFLAGS
604 sf-exg 1.132 XFT_CONFIG
605 mikachu 1.147 STARTUP_NOTIFICATION_LIBS
606     STARTUP_NOTIFICATION_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 mikachu 1.147 STARTUP_NOTIFICATION_CFLAGS=
6248     STARTUP_NOTIFICATION_LIBS=
6249    
6250     if test x$support_startup_notification = xyes; then
6251     support_startup_notification=no
6252     # Extract the first word of "pkg-config", so it can be a program name with args.
6253     set dummy pkg-config; ac_word=$2
6254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6255     $as_echo_n "checking for $ac_word... " >&6; }
6256 root 1.152 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6257 mikachu 1.147 $as_echo_n "(cached) " >&6
6258     else
6259     case $PKG_CONFIG in
6260     [\\/]* | ?:[\\/]*)
6261     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6262     ;;
6263     *)
6264     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265     for as_dir in $PATH
6266     do
6267     IFS=$as_save_IFS
6268     test -z "$as_dir" && as_dir=.
6269     for ac_exec_ext in '' $ac_executable_extensions; do
6270     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273     break 2
6274     fi
6275     done
6276     done
6277     IFS=$as_save_IFS
6278    
6279     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6280     ;;
6281     esac
6282     fi
6283     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6284     if test -n "$PKG_CONFIG"; then
6285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6286     $as_echo "$PKG_CONFIG" >&6; }
6287     else
6288     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289     $as_echo "no" >&6; }
6290     fi
6291    
6292    
6293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6294     $as_echo_n "checking for libstartup-notification... " >&6; }
6295     if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6296     STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6297     STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6298     support_startup_notification=yes
6299     fi
6300    
6301     if test x$support_startup_notification = xyes; then
6302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6303     $as_echo "ok" >&6; }
6304    
6305     $as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6306    
6307     else
6308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309     $as_echo "no" >&6; }
6310     fi
6311     fi
6312    
6313    
6314    
6315    
6316 sf-exg 1.132 for ac_header in \
6317 sf-exg 1.141 sys/byteorder.h \
6318 sf-exg 1.132 sys/ioctl.h \
6319     sys/sockio.h \
6320     sys/strredir.h \
6321     stdint.h \
6322     wchar.h \
6323 ayin 1.122
6324 sf-exg 1.132 do :
6325     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6326     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6327 root 1.137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6328 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6329     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6330     _ACEOF
6331 ayin 1.122
6332 pcg 1.1 fi
6333 ayin 1.108
6334 sf-exg 1.132 done
6335 ayin 1.122
6336 pcg 1.1
6337 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6338     $as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6339 root 1.152 if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6340 sf-exg 1.132 $as_echo_n "(cached) " >&6
6341 root 1.83 else
6342 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6343 root 1.83 /* end confdefs.h. */
6344    
6345 sf-exg 1.132 #define XLIB_ILLEGAL_ACCESS
6346     #include <X11/Xlib.h>
6347 pcg 1.11
6348 root 1.83 int
6349     main ()
6350     {
6351 sf-exg 1.132
6352     Display *dpy;
6353     dpy->xdefaults = (char *)0;
6354    
6355 root 1.83 ;
6356     return 0;
6357     }
6358     _ACEOF
6359 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6360     rxvt_cv_xlib_illegal_access=yes
6361 root 1.83 else
6362 sf-exg 1.132 rxvt_cv_xlib_illegal_access=no
6363 pcg 1.11
6364 root 1.83 fi
6365 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6366 root 1.83 fi
6367 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6368     $as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6369     if test x$rxvt_cv_xlib_illegal_access = xyes; then
6370 pcg 1.11
6371 sf-exg 1.132 $as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6372 pcg 1.11
6373 ayin 1.108 fi
6374 ayin 1.102
6375 sf-exg 1.132 ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6376 root 1.152 if test "x$ac_cv_type_mode_t" = x""yes; then :
6377 ayin 1.108
6378 sf-exg 1.132 else
6379 ayin 1.102
6380 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6381     #define mode_t int
6382     _ACEOF
6383 ayin 1.108
6384     fi
6385    
6386 sf-exg 1.132 ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6387 root 1.152 if test "x$ac_cv_type_pid_t" = x""yes; then :
6388 root 1.92
6389 sf-exg 1.132 else
6390 root 1.92
6391 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6392     #define pid_t int
6393 root 1.92 _ACEOF
6394    
6395     fi
6396    
6397 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6398     $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6399 root 1.152 if test "${ac_cv_type_uid_t+set}" = set; then :
6400 sf-exg 1.132 $as_echo_n "(cached) " >&6
6401     else
6402     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403     /* end confdefs.h. */
6404     #include <sys/types.h>
6405    
6406 root 1.92 _ACEOF
6407 sf-exg 1.132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6408     $EGREP "uid_t" >/dev/null 2>&1; then :
6409     ac_cv_type_uid_t=yes
6410     else
6411     ac_cv_type_uid_t=no
6412 root 1.92 fi
6413 sf-exg 1.132 rm -f conftest*
6414 root 1.92
6415     fi
6416 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6417     $as_echo "$ac_cv_type_uid_t" >&6; }
6418     if test $ac_cv_type_uid_t = no; then
6419 root 1.92
6420 sf-exg 1.132 $as_echo "#define uid_t int" >>confdefs.h
6421 pcg 1.11
6422 root 1.88
6423 sf-exg 1.132 $as_echo "#define gid_t int" >>confdefs.h
6424 root 1.88
6425 sf-exg 1.132 fi
6426 root 1.88
6427 sf-exg 1.132 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6428     case $ac_cv_c_int16_t in #(
6429     no|yes) ;; #(
6430     *)
6431 root 1.88
6432 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6433     #define int16_t $ac_cv_c_int16_t
6434 root 1.88 _ACEOF
6435 sf-exg 1.132 ;;
6436 ayin 1.108 esac
6437 root 1.88
6438 sf-exg 1.132 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6439     case $ac_cv_c_uint16_t in #(
6440     no|yes) ;; #(
6441     *)
6442    
6443 ayin 1.108
6444 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6445     #define uint16_t $ac_cv_c_uint16_t
6446 root 1.88 _ACEOF
6447 sf-exg 1.132 ;;
6448     esac
6449 root 1.88
6450 sf-exg 1.132 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6451     case $ac_cv_c_int32_t in #(
6452     no|yes) ;; #(
6453     *)
6454 root 1.88
6455 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6456     #define int32_t $ac_cv_c_int32_t
6457 root 1.88 _ACEOF
6458 sf-exg 1.132 ;;
6459 ayin 1.108 esac
6460 root 1.88
6461 sf-exg 1.132 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6462     case $ac_cv_c_uint32_t in #(
6463     no|yes) ;; #(
6464     *)
6465    
6466     $as_echo "#define _UINT32_T 1" >>confdefs.h
6467 ayin 1.108
6468 root 1.88
6469 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6470     #define uint32_t $ac_cv_c_uint32_t
6471 root 1.88 _ACEOF
6472 sf-exg 1.132 ;;
6473     esac
6474    
6475    
6476     for ac_func in unsetenv
6477     do :
6478     ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6479 root 1.152 if test "x$ac_cv_func_unsetenv" = x""yes; then :
6480 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6481     #define HAVE_UNSETENV 1
6482 root 1.88 _ACEOF
6483    
6484     fi
6485 sf-exg 1.132 done
6486    
6487    
6488    
6489     support_utmp=yes
6490     support_wtmp=yes
6491     support_lastlog=yes
6492 ayin 1.108
6493 sf-exg 1.132 # Check whether --enable-utmp was given.
6494     if test "${enable_utmp+set}" = set; then :
6495     enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6496     support_utmp=$enableval
6497     fi
6498     fi
6499 root 1.88
6500 ayin 1.108
6501 sf-exg 1.132 # Check whether --enable-wtmp was given.
6502     if test "${enable_wtmp+set}" = set; then :
6503     enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6504     support_wtmp=$enableval
6505     fi
6506 root 1.88 fi
6507    
6508 sf-exg 1.132
6509     # Check whether --enable-lastlog was given.
6510     if test "${enable_lastlog+set}" = set; then :
6511     enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6512     support_lastlog=$enableval
6513     fi
6514 root 1.88 fi
6515 sf-exg 1.132
6516    
6517     if test x$support_utmp = xyes; then
6518    
6519     $as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6520 root 1.88
6521     fi
6522 sf-exg 1.132 if test x$support_wtmp = xyes; then
6523    
6524     $as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6525 root 1.88
6526 sf-exg 1.132 fi
6527     if test x$support_lastlog = xyes; then
6528 root 1.88
6529 sf-exg 1.132 $as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6530 root 1.88
6531 sf-exg 1.132 fi
6532 root 1.88
6533 sf-exg 1.132 for ac_func in \
6534     updwtmp \
6535     updwtmpx \
6536     updlastlogx \
6537 root 1.128
6538 sf-exg 1.132 do :
6539     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6540     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6541 root 1.137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6542 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6543     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6544 root 1.88 _ACEOF
6545    
6546     fi
6547 sf-exg 1.132 done
6548 ayin 1.108
6549 root 1.88
6550 sf-exg 1.132 for ac_header in lastlog.h
6551     do :
6552     ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6553 root 1.152 if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6554 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
6555     #define HAVE_LASTLOG_H 1
6556 root 1.88 _ACEOF
6557    
6558     fi
6559 ayin 1.108
6560 sf-exg 1.132 done
6561 root 1.88
6562 ayin 1.108
6563 sf-exg 1.151 case $host in
6564     *-*-solaris*)
6565    
6566     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6567    
6568     ;;
6569     esac
6570    
6571 root 1.88
6572 sf-exg 1.132 for ac_header in utmp.h
6573     do :
6574     ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6575 root 1.152 if test "x$ac_cv_header_utmp_h" = x""yes; then :
6576 root 1.128 cat >>confdefs.h <<_ACEOF
6577 sf-exg 1.132 #define HAVE_UTMP_H 1
6578 root 1.128 _ACEOF
6579 sf-exg 1.145 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6580 root 1.88 #include <sys/types.h>
6581     #include <utmp.h>
6582 sf-exg 1.145
6583     "
6584 root 1.152 if test "x$ac_cv_type_struct_utmp" = x""yes; then :
6585 sf-exg 1.145
6586     cat >>confdefs.h <<_ACEOF
6587     #define HAVE_STRUCT_UTMP 1
6588 root 1.88 _ACEOF
6589    
6590    
6591     fi
6592    
6593    
6594 sf-exg 1.145
6595     # ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6596     # ------------------------------------------------------
6597     # Tries to find if the field MEMBER exists in type AGGR, after including
6598     # INCLUDES, setting cache variable VAR accordingly.
6599     ac_fn_cxx_check_member ()
6600     {
6601     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6603     $as_echo_n "checking for $2.$3... " >&6; }
6604 root 1.152 if eval "test \"\${$4+set}\"" = set; then :
6605 sf-exg 1.132 $as_echo_n "(cached) " >&6
6606 root 1.88 else
6607 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 root 1.88 /* end confdefs.h. */
6609 sf-exg 1.145 $5
6610 root 1.88 int
6611     main ()
6612     {
6613 sf-exg 1.145 static $2 ac_aggr;
6614     if (ac_aggr.$3)
6615     return 0;
6616 root 1.88 ;
6617     return 0;
6618     }
6619     _ACEOF
6620 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6621 sf-exg 1.145 eval "$4=yes"
6622 root 1.88 else
6623 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 root 1.88 /* end confdefs.h. */
6625 sf-exg 1.145 $5
6626 root 1.88 int
6627     main ()
6628     {
6629 sf-exg 1.145 static $2 ac_aggr;
6630     if (sizeof ac_aggr.$3)
6631     return 0;
6632 root 1.88 ;
6633     return 0;
6634     }
6635     _ACEOF
6636 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6637 sf-exg 1.145 eval "$4=yes"
6638 root 1.88 else
6639 sf-exg 1.145 eval "$4=no"
6640 root 1.88 fi
6641 ayin 1.108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6642 root 1.88 fi
6643 sf-exg 1.145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644     fi
6645     eval ac_res=\$$4
6646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6647     $as_echo "$ac_res" >&6; }
6648 root 1.152 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
6649 sf-exg 1.145
6650     } # ac_fn_cxx_check_member
6651     ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
6652     #include <sys/types.h>
6653     #include <utmp.h>
6654    
6655     "
6656 root 1.152 if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
6657 sf-exg 1.145
6658     $as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
6659    
6660     fi
6661    
6662    
6663     ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
6664     #include <sys/types.h>
6665     #include <utmp.h>
6666    
6667     "
6668 root 1.152 if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
6669 root 1.88
6670 sf-exg 1.132 $as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
6671 root 1.88
6672     fi
6673    
6674 sf-exg 1.145
6675 root 1.88 fi
6676    
6677 root 1.128 done
6678    
6679 root 1.88
6680 root 1.128 for ac_header in utmpx.h
6681 sf-exg 1.132 do :
6682     ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6683 root 1.152 if test "x$ac_cv_header_utmpx_h" = x""yes; then :
6684 root 1.128 cat >>confdefs.h <<_ACEOF
6685 sf-exg 1.132 #define HAVE_UTMPX_H 1
6686 root 1.128 _ACEOF
6687 sf-exg 1.145 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
6688 root 1.88 #include <sys/types.h>
6689     #include <utmpx.h>
6690 sf-exg 1.145
6691     "
6692 root 1.152 if test "x$ac_cv_type_struct_utmpx" = x""yes; then :
6693 sf-exg 1.145
6694     cat >>confdefs.h <<_ACEOF
6695     #define HAVE_STRUCT_UTMPX 1
6696 root 1.88 _ACEOF
6697    
6698    
6699     fi
6700    
6701    
6702 sf-exg 1.145 ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
6703 root 1.88 #include <sys/types.h>
6704     #include <utmpx.h>
6705 sf-exg 1.145
6706     "
6707 root 1.152 if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
6708 root 1.88
6709 sf-exg 1.132 $as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
6710 root 1.88
6711     fi
6712    
6713 sf-exg 1.145
6714 root 1.88 fi
6715    
6716 root 1.128 done
6717 root 1.88
6718 sf-exg 1.145 ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
6719 root 1.88 #include <sys/types.h>
6720     #include <utmp.h>
6721     #ifdef HAVE_LASTLOG_H
6722     #include <lastlog.h>
6723     #endif
6724    
6725 sf-exg 1.145 "
6726 root 1.152 if test "x$ac_cv_type_struct_lastlog" = x""yes; then :
6727 sf-exg 1.145
6728     cat >>confdefs.h <<_ACEOF
6729     #define HAVE_STRUCT_LASTLOG 1
6730 root 1.88 _ACEOF
6731    
6732    
6733     fi
6734    
6735 sf-exg 1.145
6736     ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
6737 root 1.88 #include <sys/types.h>
6738     #include <utmpx.h>
6739     #ifdef HAVE_LASTLOG_H
6740     #include <lastlog.h>
6741     #endif
6742    
6743 sf-exg 1.145 "
6744 root 1.152 if test "x$ac_cv_type_struct_lastlogx" = x""yes; then :
6745 sf-exg 1.145
6746     cat >>confdefs.h <<_ACEOF
6747     #define HAVE_STRUCT_LASTLOGX 1
6748 root 1.88 _ACEOF
6749    
6750    
6751     fi
6752    
6753    
6754 sf-exg 1.145
6755 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6756     $as_echo_n "checking for a fallback location of utmp... " >&6; }
6757 root 1.152 if test "${pt_cv_path_utmp+set}" = set; then :
6758 sf-exg 1.132 $as_echo_n "(cached) " >&6
6759 root 1.88 else
6760 sf-exg 1.145
6761 sf-exg 1.149 if test "$cross_compiling" != yes; then
6762     for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6763     if test -f "$file"; then
6764     pt_cv_path_utmp=$file
6765     break
6766     fi
6767     done
6768 root 1.88 fi
6769     fi
6770 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6771     $as_echo "$pt_cv_path_utmp" >&6; }
6772     if test x$pt_cv_path_utmp != x; then
6773 root 1.88
6774     cat >>confdefs.h <<_ACEOF
6775 sf-exg 1.149 #define PT_UTMP_FILE "$pt_cv_path_utmp"
6776 root 1.88 _ACEOF
6777    
6778 sf-exg 1.149 elif test "$cross_compiling" = yes; then
6779     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6780     $as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6781 root 1.88 fi
6782    
6783    
6784 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6785     $as_echo_n "checking for a fallback location of wtmp... " >&6; }
6786 root 1.152 if test "${pt_cv_path_wtmp+set}" = set; then :
6787 sf-exg 1.132 $as_echo_n "(cached) " >&6
6788 root 1.88 else
6789 sf-exg 1.145
6790 sf-exg 1.149 if test "$cross_compiling" != yes; then
6791     for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
6792     if test -f "$file"; then
6793     pt_cv_path_wtmp=$file
6794     break
6795     fi
6796     done
6797 root 1.88 fi
6798     fi
6799 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6800     $as_echo "$pt_cv_path_wtmp" >&6; }
6801     if test x$pt_cv_path_wtmp != x; then
6802 root 1.88
6803     cat >>confdefs.h <<_ACEOF
6804 sf-exg 1.149 #define PT_WTMP_FILE "$pt_cv_path_wtmp"
6805 root 1.88 _ACEOF
6806    
6807 sf-exg 1.149 elif test "$cross_compiling" = yes; then
6808     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
6809     $as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
6810 root 1.88 fi
6811    
6812 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
6813     $as_echo_n "checking for a fallback location of wtmpx... " >&6; }
6814 root 1.152 if test "${pt_cv_path_wtmpx+set}" = set; then :
6815 sf-exg 1.132 $as_echo_n "(cached) " >&6
6816 root 1.88 else
6817 sf-exg 1.145
6818 sf-exg 1.149 if test "$cross_compiling" != yes; then
6819     for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
6820     if test -f "$file"; then
6821     pt_cv_path_wtmpx=$file
6822     break
6823     fi
6824     done
6825 root 1.88 fi
6826     fi
6827 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
6828     $as_echo "$pt_cv_path_wtmpx" >&6; }
6829     if test x$pt_cv_path_wtmpx != x; then
6830 root 1.88
6831     cat >>confdefs.h <<_ACEOF
6832 sf-exg 1.149 #define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
6833 root 1.88 _ACEOF
6834    
6835 sf-exg 1.149 elif test "$cross_compiling" = yes; then
6836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
6837     $as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
6838 root 1.88 fi
6839    
6840 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
6841     $as_echo_n "checking for a fallback location of lastlog... " >&6; }
6842 root 1.152 if test "${pt_cv_path_lastlog+set}" = set; then :
6843 sf-exg 1.132 $as_echo_n "(cached) " >&6
6844 root 1.88 else
6845 sf-exg 1.145
6846 sf-exg 1.149 if test "$cross_compiling" != yes; then
6847 sf-exg 1.151 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
6848 sf-exg 1.149 if test -f "$file"; then
6849     pt_cv_path_lastlog=$file
6850     break
6851     fi
6852     done
6853 root 1.88 fi
6854     fi
6855 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
6856     $as_echo "$pt_cv_path_lastlog" >&6; }
6857     if test x$pt_cv_path_lastlog != x; then
6858 root 1.88
6859     cat >>confdefs.h <<_ACEOF
6860 sf-exg 1.149 #define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
6861 root 1.88 _ACEOF
6862    
6863 sf-exg 1.149 elif test "$cross_compiling" = yes; then
6864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
6865     $as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
6866 root 1.88 fi
6867    
6868 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
6869     $as_echo_n "checking for a fallback location of lastlogx... " >&6; }
6870 root 1.152 if test "${pt_cv_path_lastlogx+set}" = set; then :
6871 sf-exg 1.132 $as_echo_n "(cached) " >&6
6872 root 1.88 else
6873 sf-exg 1.145
6874 sf-exg 1.149 if test "$cross_compiling" != yes; then
6875     for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
6876     if test -f "$file"; then
6877     pt_cv_path_lastlogx=$file
6878     break
6879     fi
6880     done
6881 root 1.88 fi
6882     fi
6883 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
6884     $as_echo "$pt_cv_path_lastlogx" >&6; }
6885     if test x$pt_cv_path_lastlogx != x; then
6886 root 1.88
6887     cat >>confdefs.h <<_ACEOF
6888 sf-exg 1.149 #define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
6889 root 1.88 _ACEOF
6890    
6891 sf-exg 1.149 elif test "$cross_compiling" = yes; then
6892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
6893     $as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
6894 root 1.88 fi
6895    
6896    
6897    
6898    
6899 ayin 1.114 save_LIBS=$LIBS
6900     save_CFLAGS=$CFLAGS
6901 root 1.88 CFLAGS="$CFLAGS $X_CFLAGS"
6902     LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
6903 ayin 1.111 if test x$support_xim = xyes; then
6904 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
6905     $as_echo_n "checking for working Xlocale... " >&6; }
6906 root 1.152 if test "${rxvt_cv_func_xlocale+set}" = set; then :
6907 sf-exg 1.132 $as_echo_n "(cached) " >&6
6908 root 1.88 else
6909 sf-exg 1.132 if test "$cross_compiling" = yes; then :
6910 root 1.143 :
6911 root 1.88 else
6912 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 root 1.88 /* end confdefs.h. */
6914 root 1.143
6915     #include <X11/Xlib.h>
6916 ayin 1.111 #include <stdlib.h>
6917 root 1.143 int main() {
6918     char *p;
6919     if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
6920     exit (XSupportsLocale() ? 0 : 1);
6921     else
6922     exit (1);
6923     }
6924    
6925 root 1.88 _ACEOF
6926 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
6927 root 1.143 rxvt_cv_func_xlocale=yes
6928 root 1.88 else
6929 sf-exg 1.132 rxvt_cv_func_xlocale=no
6930 root 1.88 fi
6931 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6932     conftest.$ac_objext conftest.beam conftest.$ac_ext
6933 root 1.88 fi
6934 ayin 1.108
6935 root 1.88 fi
6936 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
6937     $as_echo "$rxvt_cv_func_xlocale" >&6; }
6938 root 1.105 if test x$rxvt_cv_func_xlocale = xyes; then
6939 root 1.88
6940 sf-exg 1.132 $as_echo "#define USE_XIM 1" >>confdefs.h
6941 root 1.88
6942 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
6943     $as_echo_n "checking for broken XIM callback... " >&6; }
6944 root 1.152 if test "${rxvt_cv_broken_ximcb+set}" = set; then :
6945 sf-exg 1.132 $as_echo_n "(cached) " >&6
6946 ayin 1.111 else
6947 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948     /* end confdefs.h. */
6949 ayin 1.111
6950     #include <X11/Xlib.h>
6951    
6952     void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
6953    
6954     void f() {
6955     XIMCallback cb;
6956     cb.callback = im_destroy_cb;
6957     }
6958    
6959     _ACEOF
6960 sf-exg 1.132 if ac_fn_cxx_try_compile "$LINENO"; then :
6961 root 1.131 rxvt_cv_broken_ximcb=yes
6962 ayin 1.111 else
6963 sf-exg 1.132 rxvt_cv_broken_ximcb=no
6964 ayin 1.111 fi
6965     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966     fi
6967 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
6968     $as_echo "$rxvt_cv_broken_ximcb" >&6; }
6969 ayin 1.111
6970 root 1.131 if test x$rxvt_cv_broken_ximcb = xyes; then
6971 ayin 1.111
6972 sf-exg 1.132 $as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
6973 ayin 1.111
6974     fi
6975 root 1.105 fi
6976 root 1.88 fi
6977    
6978 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
6979     $as_echo_n "checking for working X setlocale... " >&6; }
6980 root 1.152 if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
6981 sf-exg 1.132 $as_echo_n "(cached) " >&6
6982 root 1.88 else
6983 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 root 1.88 /* end confdefs.h. */
6985     #define X_LOCALE 1
6986     #include <X11/Xlocale.h>
6987     int
6988     main ()
6989     {
6990     setlocale(LC_CTYPE, "");
6991     ;
6992     return 0;
6993     }
6994     _ACEOF
6995 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
6996 root 1.88 rxvt_cv_func_xsetlocale=yes
6997     else
6998 sf-exg 1.132 rxvt_cv_func_xsetlocale=no
6999 root 1.88 fi
7000 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7001     conftest$ac_exeext conftest.$ac_ext
7002 root 1.88 fi
7003 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
7004     $as_echo "$rxvt_cv_func_xsetlocale" >&6; }
7005 root 1.88 if test x$rxvt_cv_func_xsetlocale = xyes; then
7006    
7007 sf-exg 1.132 $as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
7008 root 1.88
7009     fi
7010 ayin 1.114 LIBS=$save_LIBS
7011     CFLAGS=$save_CFLAGS
7012 root 1.88
7013 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
7014     $as_echo_n "checking for working nl_langinfo... " >&6; }
7015 root 1.152 if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
7016 sf-exg 1.132 $as_echo_n "(cached) " >&6
7017 root 1.88 else
7018 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 root 1.88 /* end confdefs.h. */
7020     #include <langinfo.h>
7021     int
7022     main ()
7023     {
7024     nl_langinfo(CODESET);
7025     ;
7026     return 0;
7027     }
7028     _ACEOF
7029 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7030 root 1.88 rxvt_cv_func_nl_langinfo=yes
7031     else
7032 sf-exg 1.132 rxvt_cv_func_nl_langinfo=no
7033 root 1.88 fi
7034 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7035     conftest$ac_exeext conftest.$ac_ext
7036 root 1.88 fi
7037 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7038     $as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7039 root 1.88 if test x$rxvt_cv_func_nl_langinfo = xyes; then
7040    
7041 sf-exg 1.132 $as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7042 root 1.88
7043     fi
7044    
7045    
7046 sf-exg 1.151 case $host in
7047     *-*-solaris*)
7048    
7049     $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7050    
7051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7052     $as_echo_n "checking for library containing sendmsg... " >&6; }
7053 root 1.152 if test "${ac_cv_search_sendmsg+set}" = set; then :
7054 sf-exg 1.151 $as_echo_n "(cached) " >&6
7055     else
7056     ac_func_search_save_LIBS=$LIBS
7057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058     /* end confdefs.h. */
7059    
7060     /* Override any GCC internal prototype to avoid an error.
7061     Use char because int might match the return type of a GCC
7062     builtin and then its argument prototype would still apply. */
7063     #ifdef __cplusplus
7064     extern "C"
7065     #endif
7066     char sendmsg ();
7067     int
7068     main ()
7069     {
7070     return sendmsg ();
7071     ;
7072     return 0;
7073     }
7074     _ACEOF
7075     for ac_lib in '' socket; do
7076     if test -z "$ac_lib"; then
7077     ac_res="none required"
7078     else
7079     ac_res=-l$ac_lib
7080     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7081     fi
7082     if ac_fn_cxx_try_link "$LINENO"; then :
7083     ac_cv_search_sendmsg=$ac_res
7084     fi
7085     rm -f core conftest.err conftest.$ac_objext \
7086     conftest$ac_exeext
7087 root 1.152 if test "${ac_cv_search_sendmsg+set}" = set; then :
7088 sf-exg 1.151 break
7089     fi
7090     done
7091 root 1.152 if test "${ac_cv_search_sendmsg+set}" = set; then :
7092 sf-exg 1.151
7093     else
7094     ac_cv_search_sendmsg=no
7095     fi
7096     rm conftest.$ac_ext
7097     LIBS=$ac_func_search_save_LIBS
7098     fi
7099     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7100     $as_echo "$ac_cv_search_sendmsg" >&6; }
7101     ac_res=$ac_cv_search_sendmsg
7102     if test "$ac_res" != no; then :
7103     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7104    
7105     fi
7106    
7107     ;;
7108     esac
7109    
7110 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7111     $as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7112 root 1.152 if test "${pt_cv_can_pass_fds+set}" = set; then :
7113 sf-exg 1.132 $as_echo_n "(cached) " >&6
7114 root 1.88 else
7115 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 root 1.88 /* end confdefs.h. */
7117    
7118 root 1.152 #include <stddef.h> // broken bsds (is that redundant?) need this
7119 root 1.88 #include <sys/types.h>
7120     #include <sys/socket.h>
7121     #include <sys/uio.h>
7122    
7123     int
7124     main ()
7125     {
7126    
7127     {
7128     msghdr msg;
7129     iovec iov;
7130     char buf [100];
7131     char data = 0;
7132    
7133     iov.iov_base = &data;
7134     iov.iov_len = 1;
7135    
7136     msg.msg_iov = &iov;
7137     msg.msg_iovlen = 1;
7138     msg.msg_control = buf;
7139     msg.msg_controllen = sizeof buf;
7140    
7141     cmsghdr *cmsg = CMSG_FIRSTHDR (&msg);
7142     cmsg->cmsg_level = SOL_SOCKET;
7143     cmsg->cmsg_type = SCM_RIGHTS;
7144     cmsg->cmsg_len = 100;
7145    
7146     *(int *)CMSG_DATA (cmsg) = 5;
7147    
7148     return sendmsg (3, &msg, 0);
7149     }
7150    
7151     ;
7152     return 0;
7153     }
7154     _ACEOF
7155 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7156     pt_cv_can_pass_fds=yes
7157 root 1.88 else
7158 sf-exg 1.132 pt_cv_can_pass_fds=no
7159 root 1.88 fi
7160 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7161     conftest$ac_exeext conftest.$ac_ext
7162 pcg 1.11 fi
7163 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
7164     $as_echo "$pt_cv_can_pass_fds" >&6; }
7165     if test x$pt_cv_can_pass_fds = xyes; then
7166 root 1.83
7167 sf-exg 1.132 $as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7168 root 1.83
7169 sf-exg 1.132 else
7170 root 1.137 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7171 sf-exg 1.132 fi
7172 root 1.83
7173    
7174    
7175 sf-exg 1.132 for ac_header in \
7176     pty.h \
7177     util.h \
7178     libutil.h \
7179     sys/ioctl.h \
7180     stropts.h \
7181 root 1.83
7182 sf-exg 1.132 do :
7183     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7184     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7185 root 1.137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7186 sf-exg 1.132 cat >>confdefs.h <<_ACEOF
7187     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7188     _ACEOF
7189 root 1.94
7190 sf-exg 1.132 fi
7191 root 1.94
7192 sf-exg 1.132 done
7193 root 1.94
7194    
7195 root 1.88 for ac_func in \
7196     revoke \
7197     _getpty \
7198     getpt \
7199     posix_openpt \
7200     isastream \
7201 root 1.94 setuid \
7202     seteuid \
7203     setreuid \
7204     setresuid \
7205 root 1.83
7206 sf-exg 1.132 do :
7207     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7208     ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
7209 root 1.137 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7210 root 1.88 cat >>confdefs.h <<_ACEOF
7211 sf-exg 1.132 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7212 root 1.88 _ACEOF
7213    
7214     fi
7215     done
7216    
7217    
7218 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
7219 sf-exg 1.132 $as_echo_n "checking for UNIX98 ptys... " >&6; }
7220 sf-exg 1.149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 root 1.83 /* end confdefs.h. */
7222 root 1.88 #include <stdlib.h>
7223 root 1.83 int
7224     main ()
7225     {
7226 root 1.88 grantpt(0);unlockpt(0);ptsname(0);
7227 root 1.83 ;
7228     return 0;
7229 root 1.31 }
7230     _ACEOF
7231 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7232 root 1.88 unix98_pty=yes
7233    
7234 sf-exg 1.132 $as_echo "#define UNIX98_PTY 1" >>confdefs.h
7235 root 1.88
7236 sf-exg 1.149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7237 sf-exg 1.132 $as_echo "yes" >&6; }
7238 root 1.31 else
7239 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240     $as_echo "no" >&6; }
7241 root 1.31 fi
7242 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7243     conftest$ac_exeext conftest.$ac_ext
7244 root 1.31
7245 root 1.88 if test -z "$unix98_pty"; then
7246 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
7247     $as_echo_n "checking for library containing openpty... " >&6; }
7248 root 1.152 if test "${ac_cv_search_openpty+set}" = set; then :
7249 sf-exg 1.132 $as_echo_n "(cached) " >&6
7250 root 1.66 else
7251 sf-exg 1.133 ac_func_search_save_LIBS=$LIBS
7252 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 root 1.88 /* end confdefs.h. */
7254 root 1.87
7255 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7256     Use char because int might match the return type of a GCC
7257     builtin and then its argument prototype would still apply. */
7258 root 1.88 #ifdef __cplusplus
7259     extern "C"
7260     #endif
7261     char openpty ();
7262     int
7263     main ()
7264     {
7265 ayin 1.108 return openpty ();
7266 root 1.88 ;
7267     return 0;
7268 root 1.66 }
7269     _ACEOF
7270 sf-exg 1.133 for ac_lib in '' util; do
7271     if test -z "$ac_lib"; then
7272     ac_res="none required"
7273     else
7274     ac_res=-l$ac_lib
7275     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7276     fi
7277     if ac_fn_cxx_try_link "$LINENO"; then :
7278     ac_cv_search_openpty=$ac_res
7279 root 1.88 fi
7280 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7281 sf-exg 1.133 conftest$ac_exeext
7282 root 1.152 if test "${ac_cv_search_openpty+set}" = set; then :
7283 sf-exg 1.133 break
7284     fi
7285     done
7286 root 1.152 if test "${ac_cv_search_openpty+set}" = set; then :
7287 sf-exg 1.133
7288     else
7289     ac_cv_search_openpty=no
7290 root 1.66 fi
7291 sf-exg 1.133 rm conftest.$ac_ext
7292     LIBS=$ac_func_search_save_LIBS
7293 root 1.66 fi
7294 sf-exg 1.133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7295     $as_echo "$ac_cv_search_openpty" >&6; }
7296     ac_res=$ac_cv_search_openpty
7297     if test "$ac_res" != no; then :
7298     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7299    
7300     $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
7301 root 1.87
7302 root 1.88 fi
7303 pcg 1.1
7304     fi
7305    
7306    
7307 root 1.90
7308 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
7309     $as_echo_n "checking for tty group... " >&6; }
7310 root 1.152 if test "${pt_cv_tty_group+set}" = set; then :
7311 sf-exg 1.132 $as_echo_n "(cached) " >&6
7312 root 1.90 else
7313 sf-exg 1.132 if test "$cross_compiling" = yes; then :
7314     pt_cv_tty_group=no
7315 root 1.90 else
7316 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317 root 1.90 /* end confdefs.h. */
7318    
7319     #include <sys/types.h>
7320     #include <sys/stat.h>
7321     #include <unistd.h>
7322     #include <grp.h>
7323    
7324 sf-exg 1.144 int main()
7325 root 1.90 {
7326     struct stat st;
7327     struct group *gr;
7328     char *tty;
7329     gr = getgrnam("tty");
7330     tty = ttyname(0);
7331     if (gr != 0
7332     && tty != 0
7333     && (stat(tty, &st)) == 0
7334     && st.st_gid == gr->gr_gid)
7335     return 0;
7336     else
7337     return 1;
7338     }
7339     _ACEOF
7340 sf-exg 1.132 if ac_fn_cxx_try_run "$LINENO"; then :
7341     pt_cv_tty_group=yes
7342 root 1.90 else
7343 sf-exg 1.132 pt_cv_tty_group=no
7344 root 1.90 fi
7345 sf-exg 1.132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7346     conftest.$ac_objext conftest.beam conftest.$ac_ext
7347 root 1.90 fi
7348 ayin 1.108
7349 root 1.90 fi
7350 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7351     $as_echo "$pt_cv_tty_group" >&6; }
7352     if test x$pt_cv_tty_group = xyes; then
7353 root 1.90
7354 sf-exg 1.132 $as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
7355 root 1.90
7356     fi
7357    
7358 root 1.155 support_image=no
7359     if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7360     support_image=yes
7361     fi
7362     if test x$support_xft = xyes || test x$support_image = xyes; then
7363 sf-exg 1.138 rxvt_have_xrender=no
7364     # Extract the first word of "pkg-config", so it can be a program name with args.
7365     set dummy pkg-config; ac_word=$2
7366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367     $as_echo_n "checking for $ac_word... " >&6; }
7368 root 1.152 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7369 sf-exg 1.138 $as_echo_n "(cached) " >&6
7370     else
7371     case $PKG_CONFIG in
7372     [\\/]* | ?:[\\/]*)
7373     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7374     ;;
7375     *)
7376     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377     for as_dir in $PATH
7378     do
7379     IFS=$as_save_IFS
7380     test -z "$as_dir" && as_dir=.
7381     for ac_exec_ext in '' $ac_executable_extensions; do
7382     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7383     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385     break 2
7386     fi
7387     done
7388     done
7389     IFS=$as_save_IFS
7390    
7391     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7392     ;;
7393     esac
7394     fi
7395     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7396     if test -n "$PKG_CONFIG"; then
7397     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7398     $as_echo "$PKG_CONFIG" >&6; }
7399     else
7400     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401     $as_echo "no" >&6; }
7402     fi
7403    
7404    
7405     if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7406     X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
7407     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
7408     rxvt_have_xrender=yes
7409    
7410     save_LIBS="$LIBS"
7411     LIBS="$LIBS $X_LIBS"
7412     ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7413 root 1.152 if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
7414 sf-exg 1.138
7415     else
7416     rxvt_have_xrender=no
7417     fi
7418    
7419    
7420     ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7421 root 1.152 if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then :
7422 sf-exg 1.138
7423     else
7424     rxvt_have_xrender=no
7425     fi
7426    
7427     LIBS="$save_LIBS"
7428     fi
7429     fi
7430    
7431     if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7432 root 1.86 # Extract the first word of "pkg-config", so it can be a program name with args.
7433     set dummy pkg-config; ac_word=$2
7434 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435     $as_echo_n "checking for $ac_word... " >&6; }
7436 root 1.152 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7437 sf-exg 1.132 $as_echo_n "(cached) " >&6
7438 root 1.86 else
7439     case $PKG_CONFIG in
7440     [\\/]* | ?:[\\/]*)
7441     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7442     ;;
7443     *)
7444     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445     for as_dir in $PATH
7446     do
7447     IFS=$as_save_IFS
7448     test -z "$as_dir" && as_dir=.
7449 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7450 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 root 1.86 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7452 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 root 1.86 break 2
7454     fi
7455     done
7456 sf-exg 1.132 done
7457 ayin 1.108 IFS=$as_save_IFS
7458 root 1.86
7459     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7460     ;;
7461     esac
7462     fi
7463     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7464     if test -n "$PKG_CONFIG"; then
7465 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7466     $as_echo "$PKG_CONFIG" >&6; }
7467 root 1.86 else
7468 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469     $as_echo "no" >&6; }
7470 root 1.86 fi
7471    
7472 ayin 1.108
7473 root 1.90 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
7474 root 1.117 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
7475 root 1.90 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
7476     else
7477     # Extract the first word of "xft-config", so it can be a program name with args.
7478 root 1.86 set dummy xft-config; ac_word=$2
7479 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7480     $as_echo_n "checking for $ac_word... " >&6; }
7481 root 1.152 if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
7482 sf-exg 1.132 $as_echo_n "(cached) " >&6
7483 root 1.86 else
7484     case $XFT_CONFIG in
7485     [\\/]* | ?:[\\/]*)
7486     ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7487     ;;
7488     *)
7489     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490     for as_dir in $PATH
7491     do
7492     IFS=$as_save_IFS
7493     test -z "$as_dir" && as_dir=.
7494 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7495 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 root 1.86 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7497 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 root 1.86 break 2
7499     fi
7500     done
7501 sf-exg 1.132 done
7502 ayin 1.108 IFS=$as_save_IFS
7503 root 1.86
7504     test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7505     ;;
7506     esac
7507     fi
7508     XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7509     if test -n "$XFT_CONFIG"; then
7510 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7511     $as_echo "$XFT_CONFIG" >&6; }
7512 root 1.86 else
7513 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514     $as_echo "no" >&6; }
7515 root 1.86 fi
7516    
7517 ayin 1.108
7518 root 1.86 if test $XFT_CONFIG != no; then
7519 root 1.117 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7520 root 1.86 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7521     fi
7522     fi
7523 root 1.34
7524 sf-exg 1.138 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7525     X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7526     CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7527     fi
7528    
7529 root 1.118 save_LIBS="$LIBS"
7530     LIBS="$LIBS $X_LIBS"
7531 sf-exg 1.132 for ac_header in X11/Xft/Xft.h
7532     do :
7533     ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
7534 root 1.152 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
7535 root 1.39 cat >>confdefs.h <<_ACEOF
7536 sf-exg 1.132 #define HAVE_X11_XFT_XFT_H 1
7537 pcg 1.11 _ACEOF
7538 pcg 1.1
7539 root 1.39 else
7540     support_xft=no
7541 pcg 1.1 fi
7542 pcg 1.11
7543 root 1.39 done
7544 pcg 1.1
7545 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
7546     $as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
7547 root 1.152 if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
7548 sf-exg 1.132 $as_echo_n "(cached) " >&6
7549 root 1.39 else
7550     ac_check_lib_save_LIBS=$LIBS
7551     LIBS="-lXft $LIBS"
7552 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7553 root 1.39 /* end confdefs.h. */
7554    
7555 ayin 1.108 /* Override any GCC internal prototype to avoid an error.
7556     Use char because int might match the return type of a GCC
7557     builtin and then its argument prototype would still apply. */
7558 root 1.39 #ifdef __cplusplus
7559     extern "C"
7560     #endif
7561     char XftDrawString32 ();
7562     int
7563     main ()
7564     {
7565 ayin 1.108 return XftDrawString32 ();
7566 root 1.39 ;
7567     return 0;
7568     }
7569     _ACEOF
7570 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7571 root 1.39 ac_cv_lib_Xft_XftDrawString32=yes
7572     else
7573 sf-exg 1.132 ac_cv_lib_Xft_XftDrawString32=no
7574 root 1.39 fi
7575 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7576     conftest$ac_exeext conftest.$ac_ext
7577 root 1.39 LIBS=$ac_check_lib_save_LIBS
7578     fi
7579 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7580     $as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7581 root 1.152 if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7582 root 1.118 :
7583 root 1.39 else
7584     support_xft=no
7585     fi
7586    
7587 sf-exg 1.138 for ac_header in fontconfig/fontconfig.h
7588     do :
7589     ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7590 root 1.152 if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
7591 sf-exg 1.138 cat >>confdefs.h <<_ACEOF
7592     #define HAVE_FONTCONFIG_FONTCONFIG_H 1
7593     _ACEOF
7594 root 1.39
7595 sf-exg 1.138 else
7596     support_xft=no
7597     fi
7598 root 1.39
7599 sf-exg 1.138 done
7600 root 1.39
7601 sf-exg 1.138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7602     $as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7603 root 1.152 if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then :
7604 sf-exg 1.136 $as_echo_n "(cached) " >&6
7605     else
7606 sf-exg 1.138 ac_check_lib_save_LIBS=$LIBS
7607     LIBS="-lfontconfig $LIBS"
7608     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609     /* end confdefs.h. */
7610 sf-exg 1.136
7611 sf-exg 1.138 /* Override any GCC internal prototype to avoid an error.
7612     Use char because int might match the return type of a GCC
7613     builtin and then its argument prototype would still apply. */
7614     #ifdef __cplusplus
7615     extern "C"
7616     #endif
7617     char FcPatternGet ();
7618     int
7619     main ()
7620     {
7621     return FcPatternGet ();
7622     ;
7623     return 0;
7624     }
7625     _ACEOF
7626     if ac_fn_cxx_try_link "$LINENO"; then :
7627     ac_cv_lib_fontconfig_FcPatternGet=yes
7628 sf-exg 1.136 else
7629 sf-exg 1.138 ac_cv_lib_fontconfig_FcPatternGet=no
7630 sf-exg 1.136 fi
7631 sf-exg 1.138 rm -f core conftest.err conftest.$ac_objext \
7632     conftest$ac_exeext conftest.$ac_ext
7633     LIBS=$ac_check_lib_save_LIBS
7634 sf-exg 1.136 fi
7635 sf-exg 1.138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7636     $as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7637 root 1.152 if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then :
7638 sf-exg 1.138 :
7639 sf-exg 1.136 else
7640 sf-exg 1.138 support_xft=no
7641 sf-exg 1.136 fi
7642    
7643 sf-exg 1.138 LIBS="$save_LIBS"
7644 sf-exg 1.136
7645 sf-exg 1.138 if test x$support_xft = xyes; then
7646 sf-exg 1.136
7647 sf-exg 1.138 $as_echo "#define XFT 1" >>confdefs.h
7648 sf-exg 1.136
7649     fi
7650     fi
7651 root 1.155
7652     image_lib=none
7653    
7654     PIXBUF_CFLAGS=
7655     PIXBUF_LIBS=
7656    
7657     if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7658     LIBS="$LIBS -lm"
7659    
7660     $as_echo "#define XRENDER 1" >>confdefs.h
7661    
7662    
7663     if test x$support_inheritpixmap = xyes; then
7664    
7665     $as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7666    
7667     fi
7668    
7669     if test x$support_pixbuf = xyes; then
7670     support_pixbuf=no
7671     # Extract the first word of "pkg-config", so it can be a program name with args.
7672     set dummy pkg-config; ac_word=$2
7673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674     $as_echo_n "checking for $ac_word... " >&6; }
7675     if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7676     $as_echo_n "(cached) " >&6
7677     else
7678     case $PKG_CONFIG in
7679     [\\/]* | ?:[\\/]*)
7680     ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7681     ;;
7682     *)
7683     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7684     for as_dir in $PATH
7685     do
7686     IFS=$as_save_IFS
7687     test -z "$as_dir" && as_dir=.
7688     for ac_exec_ext in '' $ac_executable_extensions; do
7689     if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7692     break 2
7693     fi
7694     done
7695     done
7696     IFS=$as_save_IFS
7697    
7698     test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7699     ;;
7700     esac
7701     fi
7702     PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7703     if test -n "$PKG_CONFIG"; then
7704     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7705     $as_echo "$PKG_CONFIG" >&6; }
7706     else
7707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708     $as_echo "no" >&6; }
7709     fi
7710    
7711    
7712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
7713     $as_echo_n "checking for gdk-pixbuf... " >&6; }
7714     if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
7715     PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
7716     PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
7717     support_pixbuf=yes
7718     fi
7719    
7720     if test x$support_pixbuf = xyes; then
7721     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7722     $as_echo "ok" >&6; }
7723     image_lib=gdk-pixbuf
7724    
7725     $as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
7726    
7727    
7728     $as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
7729    
7730     else
7731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732     $as_echo "no" >&6; }
7733     fi
7734     fi
7735     fi
7736    
7737    
7738    
7739    
7740 root 1.39 if test x$support_styles = xyes; then
7741    
7742 sf-exg 1.132 $as_echo "#define ENABLE_STYLES 1" >>confdefs.h
7743 root 1.39
7744     fi
7745     if test x$support_iso14755 = xyes; then
7746    
7747 sf-exg 1.132 $as_echo "#define ISO_14755 1" >>confdefs.h
7748 root 1.39
7749     fi
7750     if test x$support_8bitctrls = xyes; then
7751    
7752 sf-exg 1.132 $as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
7753 root 1.39
7754     fi
7755     if test x$support_fading = xyes; then
7756    
7757 sf-exg 1.132 $as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
7758 root 1.39
7759     fi
7760     if test x$support_keepscrolling = xno; then
7761    
7762 sf-exg 1.132 $as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
7763 root 1.39
7764     fi
7765     if test x$support_selectionscrolling = xyes; then
7766    
7767 sf-exg 1.132 $as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
7768 root 1.39
7769     fi
7770 ayin 1.111 if test x$support_frills = xyes; then
7771    
7772 sf-exg 1.132 $as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
7773 ayin 1.111
7774     fi
7775 pcg 1.1 if test x$support_mousewheel = xyes; then
7776 pcg 1.11
7777 sf-exg 1.132 $as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
7778 pcg 1.1
7779     fi
7780     if test x$support_mouseslipwheel = xyes; then
7781 pcg 1.11
7782 sf-exg 1.132 $as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
7783 pcg 1.1
7784     fi
7785 root 1.103
7786 ayin 1.126 scrolltypes=plain
7787    
7788 sf-exg 1.132 $as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
7789 ayin 1.126
7790    
7791 pcg 1.1 if test x$support_scroll_rxvt = xyes; then
7792 pcg 1.11
7793 sf-exg 1.132 $as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
7794 pcg 1.1
7795 ayin 1.126 scrolltypes="$scrolltypes rxvt"
7796 pcg 1.1 fi
7797     if test x$support_scroll_next = xyes; then
7798 pcg 1.11
7799 sf-exg 1.132 $as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
7800 pcg 1.1
7801     scrolltypes="$scrolltypes next"
7802     fi
7803     if test x$support_scroll_xterm = xyes; then
7804 pcg 1.11
7805 sf-exg 1.132 $as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
7806 pcg 1.1
7807     scrolltypes="$scrolltypes xterm"
7808     fi
7809     if test x$support_pointer_blank = xyes; then
7810 pcg 1.11
7811 sf-exg 1.132 $as_echo "#define POINTER_BLANK 1" >>confdefs.h
7812 pcg 1.1
7813     fi
7814 pcg 1.11 if test x$support_text_blink = xyes; then
7815    
7816 sf-exg 1.132 $as_echo "#define TEXT_BLINK 1" >>confdefs.h
7817 pcg 1.1
7818     fi
7819     if test x$support_unicode3 = xyes; then
7820 pcg 1.11
7821 sf-exg 1.132 $as_echo "#define UNICODE_3 1" >>confdefs.h
7822 pcg 1.1
7823     fi
7824 pcg 1.18 if test x$support_combining = xyes; then
7825    
7826 sf-exg 1.132 $as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
7827 pcg 1.18
7828     fi
7829 pcg 1.1 if test x$codesets = xall; then
7830 root 1.40 codesets=jp,jp-ext,kr,zh,zh-ext
7831 pcg 1.1 fi
7832 pcg 1.11
7833 sf-exg 1.132 $as_echo "#define ENCODING_EU 1" >>confdefs.h
7834 pcg 1.1
7835 pcg 1.13
7836 sf-exg 1.132 $as_echo "#define ENCODING_VN 1" >>confdefs.h
7837 pcg 1.13
7838 root 1.34 for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
7839 pcg 1.13 case "$codeset" in
7840 pcg 1.11 JP )
7841 sf-exg 1.132 $as_echo "#define ENCODING_JP 1" >>confdefs.h
7842 pcg 1.1 ;;
7843 pcg 1.11 JP_EXT )
7844 sf-exg 1.132 $as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
7845 pcg 1.1 ;;
7846 pcg 1.11 KR )
7847 sf-exg 1.132 $as_echo "#define ENCODING_KR 1" >>confdefs.h
7848 pcg 1.1 ;;
7849 root 1.40 ZH )
7850 sf-exg 1.132 $as_echo "#define ENCODING_ZH 1" >>confdefs.h
7851 pcg 1.1 ;;
7852 root 1.40 ZH_EXT )
7853 sf-exg 1.132 $as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
7854 pcg 1.1 ;;
7855     esac
7856     done
7857    
7858 root 1.60 IF_PERL=\#
7859     if test x$support_perl = xyes; then
7860     # Extract the first word of "perl5", so it can be a program name with args.
7861     set dummy perl5; ac_word=$2
7862 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7863     $as_echo_n "checking for $ac_word... " >&6; }
7864 root 1.152 if test "${ac_cv_path_PERL+set}" = set; then :
7865 sf-exg 1.132 $as_echo_n "(cached) " >&6
7866 root 1.60 else
7867     case $PERL in
7868     [\\/]* | ?:[\\/]*)
7869     ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7870     ;;
7871     *)
7872     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873     for as_dir in $PATH
7874     do
7875     IFS=$as_save_IFS
7876     test -z "$as_dir" && as_dir=.
7877 sf-exg 1.132 for ac_exec_ext in '' $ac_executable_extensions; do
7878 ayin 1.108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879 root 1.60 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7880 sf-exg 1.132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 root 1.60 break 2
7882     fi
7883     done
7884 sf-exg 1.132 done
7885 ayin 1.108 IFS=$as_save_IFS
7886 root 1.60
7887 root 1.154 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
7888 root 1.60 ;;
7889     esac
7890     fi
7891     PERL=$ac_cv_path_PERL
7892     if test -n "$PERL"; then
7893 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7894     $as_echo "$PERL" >&6; }
7895 root 1.60 else
7896 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897     $as_echo "no" >&6; }
7898 root 1.60 fi
7899    
7900    
7901 ayin 1.108
7902 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
7903     $as_echo_n "checking for $PERL suitability... " >&6; }
7904 root 1.60 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
7905    
7906 root 1.62 save_CXXFLAGS="$CXXFLAGS"
7907     save_LIBS="$LIBS"
7908     CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
7909     LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
7910 sf-exg 1.132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 root 1.62 /* end confdefs.h. */
7912    
7913     #include <EXTERN.h>
7914     #include <perl.h>
7915     #include <XSUB.h>
7916    
7917     int
7918     main ()
7919     {
7920    
7921     PerlInterpreter *perl = perl_alloc ();
7922    
7923     ;
7924     return 0;
7925     }
7926     _ACEOF
7927 sf-exg 1.132 if ac_fn_cxx_try_link "$LINENO"; then :
7928 root 1.62 rxvt_perl_link=yes
7929     else
7930 sf-exg 1.132 rxvt_perl_link=no
7931 root 1.62 fi
7932 sf-exg 1.132 rm -f core conftest.err conftest.$ac_objext \
7933     conftest$ac_exeext conftest.$ac_ext
7934 root 1.62 CXXFLAGS="$save_CXXFLAGS"
7935     LIBS="$save_LIBS"
7936    
7937     if test x$rxvt_perl_link = xyes; then
7938 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7939     $as_echo "ok" >&6; }
7940 root 1.62
7941 sf-exg 1.132 $as_echo "#define ENABLE_PERL 1" >>confdefs.h
7942 root 1.60
7943 root 1.62 IF_PERL=
7944     PERL_O=rxvtperl.o
7945     PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
7946     PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
7947     PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
7948     else
7949 root 1.137 as_fn_error $? "no, unable to link" "$LINENO" 5
7950 root 1.62 fi
7951 root 1.60 else
7952 root 1.137 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
7953 root 1.60 fi
7954     fi
7955    
7956    
7957    
7958    
7959    
7960    
7961    
7962 pcg 1.1
7963 ayin 1.124 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
7964 root 1.32
7965 pcg 1.11 cat >confcache <<\_ACEOF
7966 pcg 1.1 # This file is a shell script that caches the results of configure
7967     # tests run on this system so they can be shared between configure
7968 pcg 1.11 # scripts and configure runs, see configure's option --config-cache.
7969     # It is not useful on other systems. If it contains results you don't
7970     # want to keep, you may remove or edit it.
7971 pcg 1.1 #
7972 pcg 1.11 # config.status only pays attention to the cache file if you give it
7973     # the --recheck option to rerun configure.
7974 pcg 1.1 #
7975 pcg 1.11 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7976     # loading this file, other *unset* `ac_cv_foo' will be assigned the
7977     # following values.
7978    
7979     _ACEOF
7980    
7981 pcg 1.1 # The following way of writing the cache mishandles newlines in values,
7982     # but we know of no workaround that is simple, portable, and efficient.
7983 ayin 1.108 # So, we kill variables containing newlines.
7984 pcg 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
7985     # and sets the high bit in the cache file unless we assign to the vars.
7986 ayin 1.108 (
7987     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7988     eval ac_val=\$$ac_var
7989     case $ac_val in #(
7990     *${as_nl}*)
7991     case $ac_var in #(
7992 sf-exg 1.132 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7993     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7994 ayin 1.108 esac
7995     case $ac_var in #(
7996     _ | IFS | as_nl) ;; #(
7997 sf-exg 1.132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7998     *) { eval $ac_var=; unset $ac_var;} ;;
7999 ayin 1.108 esac ;;
8000     esac
8001     done
8002    
8003 pcg 1.11 (set) 2>&1 |
8004 ayin 1.108 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8005     *${as_nl}ac_space=\ *)
8006 sf-exg 1.132 # `set' does not quote correctly, so add quotes: double-quote
8007     # substitution turns \\\\ into \\, and sed turns \\ into \.
8008 pcg 1.11 sed -n \
8009     "s/'/'\\\\''/g;
8010     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8011 ayin 1.108 ;; #(
8012 pcg 1.11 *)
8013     # `set' quotes correctly as required by POSIX, so do not add quotes.
8014 ayin 1.108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8015 pcg 1.11 ;;
8016 ayin 1.108 esac |
8017     sort
8018     ) |
8019 pcg 1.11 sed '
8020 ayin 1.108 /^ac_cv_env_/b end
8021 pcg 1.11 t clear
8022 ayin 1.108 :clear
8023 pcg 1.11 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8024     t end
8025 ayin 1.108 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8026     :end' >>confcache
8027     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8028     if test -w "$cache_file"; then
8029 root 1.152 test "x$cache_file" != "x/dev/null" &&
8030 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8031     $as_echo "$as_me: updating cache $cache_file" >&6;}
8032 root 1.152 cat confcache >$cache_file
8033 pcg 1.1 else
8034 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8035     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8036 pcg 1.1 fi
8037     fi
8038     rm -f confcache
8039    
8040     test "x$prefix" = xNONE && prefix=$ac_default_prefix
8041     # Let make expand exec_prefix.
8042     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8043    
8044 pcg 1.11 DEFS=-DHAVE_CONFIG_H
8045    
8046     ac_libobjs=
8047     ac_ltlibobjs=
8048 root 1.137 U=
8049 pcg 1.11 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8050     # 1. Remove the extension, and $U if already installed.
8051 ayin 1.108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8052 sf-exg 1.132 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8053 ayin 1.108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8054     # will be set to the directory where LIBOBJS objects are built.
8055 sf-exg 1.132 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8056     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8057 pcg 1.11 done
8058     LIBOBJS=$ac_libobjs
8059    
8060     LTLIBOBJS=$ac_ltlibobjs
8061    
8062 pcg 1.1
8063    
8064 root 1.152 : ${CONFIG_STATUS=./config.status}
8065 sf-exg 1.132 ac_write_fail=0
8066 pcg 1.11 ac_clean_files_save=$ac_clean_files
8067     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8068 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8069     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8070     as_write_fail=0
8071     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8072 pcg 1.11 #! $SHELL
8073     # Generated by $as_me.
8074 pcg 1.1 # Run this file to recreate the current configuration.
8075     # Compiler output produced by configure, useful for debugging
8076 pcg 1.11 # configure, is in config.log if it exists.
8077    
8078     debug=false
8079     ac_cs_recheck=false
8080     ac_cs_silent=false
8081 sf-exg 1.132
8082 pcg 1.11 SHELL=\${CONFIG_SHELL-$SHELL}
8083 sf-exg 1.132 export SHELL
8084     _ASEOF
8085     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8086     ## -------------------- ##
8087     ## M4sh Initialization. ##
8088     ## -------------------- ##
8089 pcg 1.11
8090 ayin 1.108 # Be more Bourne compatible
8091     DUALCASE=1; export DUALCASE # for MKS sh
8092 sf-exg 1.132 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8093 pcg 1.11 emulate sh
8094     NULLCMD=:
8095 sf-exg 1.132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8096 pcg 1.11 # is contrary to our usage. Disable this feature.
8097     alias -g '${1+"$@"}'='"$@"'
8098 ayin 1.108 setopt NO_GLOB_SUBST
8099     else
8100 sf-exg 1.132 case `(set -o) 2>/dev/null` in #(
8101     *posix*) :
8102     set -o posix ;; #(
8103     *) :
8104     ;;
8105 ayin 1.108 esac
8106     fi
8107    
8108    
8109 sf-exg 1.132 as_nl='
8110     '
8111     export as_nl
8112     # Printing a long string crashes Solaris 7 /usr/bin/printf.
8113     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8114     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8115     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8116     # Prefer a ksh shell builtin over an external printf program on Solaris,
8117     # but without wasting forks for bash or zsh.
8118     if test -z "$BASH_VERSION$ZSH_VERSION" \
8119     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8120     as_echo='print -r --'
8121     as_echo_n='print -rn --'
8122     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8123     as_echo='printf %s\n'
8124     as_echo_n='printf %s'
8125     else
8126     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8127     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8128     as_echo_n='/usr/ucb/echo -n'
8129 ayin 1.108 else
8130 sf-exg 1.132 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8131     as_echo_n_body='eval
8132     arg=$1;
8133     case $arg in #(
8134     *"$as_nl"*)
8135     expr "X$arg" : "X\\(.*\\)$as_nl";
8136     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8137     esac;
8138     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8139     '
8140     export as_echo_n_body
8141     as_echo_n='sh -c $as_echo_n_body as_echo'
8142 ayin 1.108 fi
8143 sf-exg 1.132 export as_echo_body
8144     as_echo='sh -c $as_echo_body as_echo'
8145 ayin 1.106 fi
8146    
8147 sf-exg 1.132 # The user is always right.
8148     if test "${PATH_SEPARATOR+set}" != set; then
8149     PATH_SEPARATOR=:
8150     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8151     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8152     PATH_SEPARATOR=';'
8153     }
8154 pcg 1.11 fi
8155    
8156    
8157 ayin 1.108 # IFS
8158     # We need space, tab and new line, in precisely that order. Quoting is
8159     # there to prevent editors from complaining about space-tab.
8160     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8161     # splitting by setting IFS to empty value.)
8162     IFS=" "" $as_nl"
8163    
8164     # Find who we are. Look in the path if we contain no directory separator.
8165 sf-exg 1.132 case $0 in #((
8166 ayin 1.108 *[\\/]* ) as_myself=$0 ;;
8167     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168     for as_dir in $PATH
8169     do
8170     IFS=$as_save_IFS
8171     test -z "$as_dir" && as_dir=.
8172 sf-exg 1.132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8173     done
8174 ayin 1.108 IFS=$as_save_IFS
8175    
8176     ;;
8177     esac
8178     # We did not find ourselves, most probably we were run as `sh COMMAND'
8179     # in which case we are not to be found in the path.
8180     if test "x$as_myself" = x; then
8181     as_myself=$0
8182     fi
8183     if test ! -f "$as_myself"; then
8184 sf-exg 1.132 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8185     exit 1
8186 ayin 1.108 fi
8187    
8188 sf-exg 1.132 # Unset variables that we do not need and which cause bugs (e.g. in
8189     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8190     # suppresses any "Segmentation fault" message there. '((' could
8191     # trigger a bug in pdksh 5.2.14.
8192     for as_var in BASH_ENV ENV MAIL MAILPATH
8193     do eval test x\${$as_var+set} = xset \
8194     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8195 ayin 1.108 done
8196 ayin 1.106 PS1='$ '
8197     PS2='> '
8198 root 1.105 PS4='+ '
8199    
8200     # NLS nuisances.
8201 sf-exg 1.132 LC_ALL=C
8202     export LC_ALL
8203     LANGUAGE=C
8204     export LANGUAGE
8205    
8206     # CDPATH.
8207     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8208    
8209    
8210 root 1.137 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8211     # ----------------------------------------
8212 sf-exg 1.132 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8213     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8214 root 1.137 # script with STATUS, using 1 if that was 0.
8215 sf-exg 1.132 as_fn_error ()
8216     {
8217 root 1.137 as_status=$1; test $as_status -eq 0 && as_status=1
8218     if test "$4"; then
8219     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8220     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8221 sf-exg 1.132 fi
8222 root 1.137 $as_echo "$as_me: error: $2" >&2
8223 sf-exg 1.132 as_fn_exit $as_status
8224     } # as_fn_error
8225    
8226    
8227     # as_fn_set_status STATUS
8228     # -----------------------
8229     # Set $? to STATUS, without forking.
8230     as_fn_set_status ()
8231     {
8232     return $1
8233     } # as_fn_set_status
8234    
8235     # as_fn_exit STATUS
8236     # -----------------
8237     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8238     as_fn_exit ()
8239     {
8240     set +e
8241     as_fn_set_status $1
8242     exit $1
8243     } # as_fn_exit
8244    
8245     # as_fn_unset VAR
8246     # ---------------
8247     # Portably unset VAR.
8248     as_fn_unset ()
8249     {
8250     { eval $1=; unset $1;}
8251     }
8252     as_unset=as_fn_unset
8253     # as_fn_append VAR VALUE
8254     # ----------------------
8255     # Append the text in VALUE to the end of the definition contained in VAR. Take
8256     # advantage of any shell optimizations that allow amortized linear growth over
8257     # repeated appends, instead of the typical quadratic growth present in naive
8258     # implementations.
8259     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8260     eval 'as_fn_append ()
8261     {
8262     eval $1+=\$2
8263     }'
8264     else
8265     as_fn_append ()
8266     {
8267     eval $1=\$$1\$2
8268     }
8269     fi # as_fn_append
8270    
8271     # as_fn_arith ARG...
8272     # ------------------
8273     # Perform arithmetic evaluation on the ARGs, and store the result in the
8274     # global $as_val. Take advantage of shells that can avoid forks. The arguments
8275     # must be portable across $(()) and expr.
8276     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8277     eval 'as_fn_arith ()
8278     {
8279     as_val=$(( $* ))
8280     }'
8281     else
8282     as_fn_arith ()
8283     {
8284     as_val=`expr "$@" || test $? -eq 1`
8285     }
8286     fi # as_fn_arith
8287    
8288 root 1.105
8289 ayin 1.108 if expr a : '\(a\)' >/dev/null 2>&1 &&
8290     test "X`expr 00001 : '.*\(...\)'`" = X001; then
8291 root 1.105 as_expr=expr
8292     else
8293     as_expr=false
8294     fi
8295    
8296 ayin 1.108 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8297 root 1.105 as_basename=basename
8298     else
8299     as_basename=false
8300     fi
8301    
8302 sf-exg 1.132 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8303     as_dirname=dirname
8304     else
8305     as_dirname=false
8306     fi
8307 root 1.105
8308 ayin 1.108 as_me=`$as_basename -- "$0" ||
8309 root 1.105 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8310     X"$0" : 'X\(//\)$' \| \
8311 ayin 1.108 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8312 sf-exg 1.132 $as_echo X/"$0" |
8313 ayin 1.108 sed '/^.*\/\([^/][^/]*\)\/*$/{
8314     s//\1/
8315     q
8316     }
8317     /^X\/\(\/\/\)$/{
8318     s//\1/
8319     q
8320     }
8321     /^X\/\(\/\).*/{
8322     s//\1/
8323     q
8324     }
8325     s/.*/./; q'`
8326    
8327 sf-exg 1.132 # Avoid depending upon Character Ranges.
8328     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8329     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8330     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8331     as_cr_digits='0123456789'
8332     as_cr_alnum=$as_cr_Letters$as_cr_digits
8333 ayin 1.108
8334     ECHO_C= ECHO_N= ECHO_T=
8335 sf-exg 1.132 case `echo -n x` in #(((((
8336 ayin 1.108 -n*)
8337 sf-exg 1.132 case `echo 'xy\c'` in
8338 ayin 1.108 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8339 sf-exg 1.132 xy) ECHO_C='\c';;
8340     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8341     ECHO_T=' ';;
8342 ayin 1.108 esac;;
8343     *)
8344     ECHO_N='-n';;
8345 pcg 1.11 esac
8346    
8347     rm -f conf$$ conf$$.exe conf$$.file
8348 ayin 1.108 if test -d conf$$.dir; then
8349     rm -f conf$$.dir/conf$$.file
8350     else
8351     rm -f conf$$.dir
8352 sf-exg 1.132 mkdir conf$$.dir 2>/dev/null
8353 ayin 1.108 fi
8354 sf-exg 1.132 if (echo >conf$$.file) 2>/dev/null; then
8355     if ln -s conf$$.file conf$$ 2>/dev/null; then
8356     as_ln_s='ln -s'
8357     # ... but there are two gotchas:
8358     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8359     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8360     # In both cases, we have to default to `cp -p'.
8361     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8362     as_ln_s='cp -p'
8363     elif ln conf$$.file conf$$ 2>/dev/null; then
8364     as_ln_s=ln
8365     else
8366 pcg 1.11 as_ln_s='cp -p'
8367 sf-exg 1.132 fi
8368 pcg 1.11 else
8369     as_ln_s='cp -p'
8370     fi
8371 ayin 1.108 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8372     rmdir conf$$.dir 2>/dev/null
8373 pcg 1.11
8374 sf-exg 1.132
8375     # as_fn_mkdir_p
8376     # -------------
8377     # Create "$as_dir" as a directory, including parents if necessary.
8378     as_fn_mkdir_p ()
8379     {
8380    
8381     case $as_dir in #(
8382     -*) as_dir=./$as_dir;;
8383     esac
8384     test -d "$as_dir" || eval $as_mkdir_p || {
8385     as_dirs=
8386     while :; do
8387     case $as_dir in #(
8388     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8389     *) as_qdir=$as_dir;;
8390     esac
8391     as_dirs="'$as_qdir' $as_dirs"
8392     as_dir=`$as_dirname -- "$as_dir" ||
8393     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8394     X"$as_dir" : 'X\(//\)[^/]' \| \
8395     X"$as_dir" : 'X\(//\)$' \| \
8396     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8397     $as_echo X"$as_dir" |
8398     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8399     s//\1/
8400     q
8401     }
8402     /^X\(\/\/\)[^/].*/{
8403     s//\1/
8404     q
8405     }
8406     /^X\(\/\/\)$/{
8407     s//\1/
8408     q
8409     }
8410     /^X\(\/\).*/{
8411     s//\1/
8412     q
8413     }
8414     s/.*/./; q'`
8415     test -d "$as_dir" && break
8416     done
8417     test -z "$as_dirs" || eval "mkdir $as_dirs"
8418 root 1.137 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8419 sf-exg 1.132
8420    
8421     } # as_fn_mkdir_p
8422 pcg 1.11 if mkdir -p . 2>/dev/null; then
8423 sf-exg 1.132 as_mkdir_p='mkdir -p "$as_dir"'
8424 pcg 1.11 else
8425     test -d ./-p && rmdir ./-p
8426     as_mkdir_p=false
8427     fi
8428    
8429 ayin 1.108 if test -x / >/dev/null 2>&1; then
8430     as_test_x='test -x'
8431     else
8432     if ls -dL / >/dev/null 2>&1; then
8433     as_ls_L_option=L
8434     else
8435     as_ls_L_option=
8436     fi
8437     as_test_x='
8438     eval sh -c '\''
8439     if test -d "$1"; then
8440 sf-exg 1.132 test -d "$1/.";
8441 ayin 1.108 else
8442 sf-exg 1.132 case $1 in #(
8443     -*)set "./$1";;
8444 ayin 1.108 esac;
8445 sf-exg 1.132 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8446 ayin 1.108 ???[sx]*):;;*)false;;esac;fi
8447     '\'' sh
8448     '
8449     fi
8450     as_executable_p=$as_test_x
8451 pcg 1.11
8452     # Sed expression to map a string onto a valid CPP name.
8453     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8454    
8455     # Sed expression to map a string onto a valid variable name.
8456     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8457    
8458    
8459     exec 6>&1
8460 sf-exg 1.132 ## ----------------------------------- ##
8461     ## Main body of $CONFIG_STATUS script. ##
8462     ## ----------------------------------- ##
8463     _ASEOF
8464     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8465 pcg 1.11
8466 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8467     # Save the log message, to keep $0 and so on meaningful, and to
8468 pcg 1.11 # report actual input values of CONFIG_FILES etc. instead of their
8469 ayin 1.108 # values after options handling.
8470     ac_log="
8471 pcg 1.11 This file was extended by $as_me, which was
8472 root 1.152 generated by GNU Autoconf 2.67. Invocation command line was
8473 pcg 1.11
8474     CONFIG_FILES = $CONFIG_FILES
8475     CONFIG_HEADERS = $CONFIG_HEADERS
8476     CONFIG_LINKS = $CONFIG_LINKS
8477     CONFIG_COMMANDS = $CONFIG_COMMANDS
8478     $ $0 $@
8479    
8480 ayin 1.108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8481     "
8482    
8483 pcg 1.11 _ACEOF
8484    
8485 sf-exg 1.132 case $ac_config_files in *"
8486     "*) set x $ac_config_files; shift; ac_config_files=$*;;
8487     esac
8488    
8489     case $ac_config_headers in *"
8490     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8491     esac
8492    
8493    
8494     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8495 pcg 1.11 # Files that config.status was made for.
8496 ayin 1.108 config_files="$ac_config_files"
8497     config_headers="$ac_config_headers"
8498 ayin 1.106
8499 ayin 1.108 _ACEOF
8500 pcg 1.11
8501 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8502 pcg 1.11 ac_cs_usage="\
8503 sf-exg 1.132 \`$as_me' instantiates files and other configuration actions
8504     from templates according to the current configuration. Unless the files
8505     and actions are specified as TAGs, all are instantiated by default.
8506 pcg 1.11
8507 sf-exg 1.132 Usage: $0 [OPTION]... [TAG]...
8508 pcg 1.11
8509     -h, --help print this help, then exit
8510 ayin 1.108 -V, --version print version number and configuration settings, then exit
8511 sf-exg 1.132 --config print configuration, then exit
8512     -q, --quiet, --silent
8513     do not print progress messages
8514 pcg 1.11 -d, --debug don't remove temporary files
8515     --recheck update $as_me by reconfiguring in the same conditions
8516 sf-exg 1.132 --file=FILE[:TEMPLATE]
8517     instantiate the configuration file FILE
8518     --header=FILE[:TEMPLATE]
8519     instantiate the configuration header FILE
8520 pcg 1.11
8521     Configuration files:
8522     $config_files
8523    
8524     Configuration headers:
8525     $config_headers
8526    
8527 sf-exg 1.132 Report bugs to the package provider."
8528 ayin 1.108
8529 ayin 1.106 _ACEOF
8530 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8531     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8532 pcg 1.11 ac_cs_version="\\
8533     config.status
8534 root 1.152 configured by $0, generated by GNU Autoconf 2.67,
8535 sf-exg 1.132 with options \\"\$ac_cs_config\\"
8536 pcg 1.11
8537 root 1.137 Copyright (C) 2010 Free Software Foundation, Inc.
8538 pcg 1.11 This config.status script is free software; the Free Software Foundation
8539     gives unlimited permission to copy, distribute and modify it."
8540 ayin 1.108
8541     ac_pwd='$ac_pwd'
8542     srcdir='$srcdir'
8543     INSTALL='$INSTALL'
8544 sf-exg 1.132 test -n "\$AWK" || AWK=awk
8545 pcg 1.11 _ACEOF
8546    
8547 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8548     # The default lists apply if the user does not specify any file.
8549 pcg 1.11 ac_need_defaults=:
8550     while test $# != 0
8551 pcg 1.1 do
8552 pcg 1.11 case $1 in
8553 root 1.137 --*=?*)
8554 ayin 1.108 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8555     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8556 pcg 1.11 ac_shift=:
8557     ;;
8558 root 1.137 --*=)
8559     ac_option=`expr "X$1" : 'X\([^=]*\)='`
8560     ac_optarg=
8561     ac_shift=:
8562     ;;
8563 ayin 1.108 *)
8564 pcg 1.11 ac_option=$1
8565     ac_optarg=$2
8566     ac_shift=shift
8567     ;;
8568     esac
8569    
8570     case $ac_option in
8571     # Handling of the options.
8572 pcg 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8573 pcg 1.11 ac_cs_recheck=: ;;
8574 ayin 1.108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8575 sf-exg 1.132 $as_echo "$ac_cs_version"; exit ;;
8576     --config | --confi | --conf | --con | --co | --c )
8577     $as_echo "$ac_cs_config"; exit ;;
8578 ayin 1.108 --debug | --debu | --deb | --de | --d | -d )
8579 pcg 1.11 debug=: ;;
8580     --file | --fil | --fi | --f )
8581     $ac_shift
8582 sf-exg 1.132 case $ac_optarg in
8583     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8584 root 1.137 '') as_fn_error $? "missing file argument" ;;
8585 sf-exg 1.132 esac
8586     as_fn_append CONFIG_FILES " '$ac_optarg'"
8587 pcg 1.11 ac_need_defaults=false;;
8588     --header | --heade | --head | --hea )
8589     $ac_shift
8590 sf-exg 1.132 case $ac_optarg in
8591     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8592     esac
8593     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8594 pcg 1.11 ac_need_defaults=false;;
8595 ayin 1.108 --he | --h)
8596     # Conflict between --help and --header
8597 root 1.137 as_fn_error $? "ambiguous option: \`$1'
8598 sf-exg 1.132 Try \`$0 --help' for more information.";;
8599 ayin 1.108 --help | --hel | -h )
8600 sf-exg 1.132 $as_echo "$ac_cs_usage"; exit ;;
8601 pcg 1.11 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8602     | -silent | --silent | --silen | --sile | --sil | --si | --s)
8603     ac_cs_silent=: ;;
8604    
8605     # This is an error.
8606 root 1.137 -*) as_fn_error $? "unrecognized option: \`$1'
8607 sf-exg 1.132 Try \`$0 --help' for more information." ;;
8608 pcg 1.11
8609 sf-exg 1.132 *) as_fn_append ac_config_targets " $1"
8610 ayin 1.108 ac_need_defaults=false ;;
8611 pcg 1.11
8612     esac
8613     shift
8614     done
8615    
8616     ac_configure_extra_args=
8617    
8618     if $ac_cs_silent; then
8619     exec 6>/dev/null
8620     ac_configure_extra_args="$ac_configure_extra_args --silent"
8621     fi
8622    
8623     _ACEOF
8624 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8625 pcg 1.11 if \$ac_cs_recheck; then
8626 sf-exg 1.132 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8627     shift
8628     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8629     CONFIG_SHELL='$SHELL'
8630 ayin 1.108 export CONFIG_SHELL
8631 sf-exg 1.132 exec "\$@"
8632 pcg 1.11 fi
8633    
8634     _ACEOF
8635 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8636 ayin 1.108 exec 5>>config.log
8637     {
8638     echo
8639     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8640     ## Running $as_me. ##
8641     _ASBOX
8642 sf-exg 1.132 $as_echo "$ac_log"
8643 ayin 1.108 } >&5
8644 pcg 1.11
8645 ayin 1.108 _ACEOF
8646 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8647 ayin 1.108 _ACEOF
8648 ayin 1.106
8649 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8650 ayin 1.106
8651 ayin 1.108 # Handling of arguments.
8652 pcg 1.11 for ac_config_target in $ac_config_targets
8653     do
8654 ayin 1.108 case $ac_config_target in
8655     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8656     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8657     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8658     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8659    
8660 root 1.152 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
8661 pcg 1.1 esac
8662     done
8663    
8664 ayin 1.108
8665 pcg 1.11 # If the user did not use the arguments to specify the items to instantiate,
8666     # then the envvar interface is used. Set only those that are not.
8667     # We use the long form for the default assignment because of an extremely
8668     # bizarre bug on SunOS 4.1.3.
8669     if $ac_need_defaults; then
8670     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8671     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8672     fi
8673    
8674     # Have a temporary directory for convenience. Make it in the build tree
8675 ayin 1.108 # simply because there is no reason against having it here, and in addition,
8676 pcg 1.11 # creating and moving files from /tmp can sometimes cause problems.
8677 ayin 1.108 # Hook for its removal unless debugging.
8678     # Note that there is a small window in which the directory will not be cleaned:
8679     # after its creation but before its name has been assigned to `$tmp'.
8680 pcg 1.11 $debug ||
8681     {
8682 root 1.152 tmp=
8683 ayin 1.108 trap 'exit_status=$?
8684 root 1.152 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8685 ayin 1.108 ' 0
8686 sf-exg 1.132 trap 'as_fn_exit 1' 1 2 13 15
8687 pcg 1.11 }
8688     # Create a (secure) tmp directory for tmp files.
8689    
8690     {
8691 ayin 1.108 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8692 root 1.152 test -n "$tmp" && test -d "$tmp"
8693 pcg 1.11 } ||
8694     {
8695 ayin 1.108 tmp=./conf$$-$RANDOM
8696     (umask 077 && mkdir "$tmp")
8697 root 1.137 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8698 sf-exg 1.132
8699     # Set up the scripts for CONFIG_FILES section.
8700     # No need to generate them if there are no CONFIG_FILES.
8701     # This happens for instance with `./config.status config.h'.
8702     if test -n "$CONFIG_FILES"; then
8703 pcg 1.11
8704 ayin 1.108
8705 sf-exg 1.132 ac_cr=`echo X | tr X '\015'`
8706     # On cygwin, bash can eat \r inside `` if the user requested igncr.
8707     # But we know of no other shell where ac_cr would be empty at this
8708     # point, so we can use a bashism as a fallback.
8709     if test "x$ac_cr" = x; then
8710     eval ac_cr=\$\'\\r\'
8711     fi
8712     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8713     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8714 root 1.137 ac_cs_awk_cr='\\r'
8715 sf-exg 1.132 else
8716     ac_cs_awk_cr=$ac_cr
8717     fi
8718 ayin 1.108
8719 root 1.152 echo 'BEGIN {' >"$tmp/subs1.awk" &&
8720 ayin 1.106 _ACEOF
8721    
8722 ayin 1.108
8723 sf-exg 1.132 {
8724     echo "cat >conf$$subs.awk <<_ACEOF" &&
8725     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8726     echo "_ACEOF"
8727     } >conf$$subs.sh ||
8728 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8729     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8730 ayin 1.108 ac_delim='%!_!# '
8731     for ac_last_try in false false false false false :; do
8732 sf-exg 1.132 . ./conf$$subs.sh ||
8733 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8734 root 1.105
8735 sf-exg 1.132 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8736     if test $ac_delim_n = $ac_delim_num; then
8737 ayin 1.108 break
8738     elif $ac_last_try; then
8739 root 1.137 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8740 ayin 1.108 else
8741     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8742 root 1.105 fi
8743 ayin 1.108 done
8744 sf-exg 1.132 rm -f conf$$subs.sh
8745 ayin 1.108
8746 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8747 root 1.152 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8748 ayin 1.108 _ACEOF
8749 sf-exg 1.132 sed -n '
8750     h
8751     s/^/S["/; s/!.*/"]=/
8752     p
8753     g
8754     s/^[^!]*!//
8755     :repl
8756     t repl
8757     s/'"$ac_delim"'$//
8758     t delim
8759     :nl
8760     h
8761     s/\(.\{148\}\)..*/\1/
8762     t more1
8763     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8764     p
8765     n
8766     b repl
8767     :more1
8768     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8769     p
8770     g
8771     s/.\{148\}//
8772     t nl
8773     :delim
8774     h
8775     s/\(.\{148\}\)..*/\1/
8776     t more2
8777     s/["\\]/\\&/g; s/^/"/; s/$/"/
8778     p
8779     b
8780     :more2
8781     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8782     p
8783     g
8784     s/.\{148\}//
8785     t delim
8786     ' <conf$$subs.awk | sed '
8787     /^[^""]/{
8788     N
8789     s/\n//
8790     }
8791     ' >>$CONFIG_STATUS || ac_write_fail=1
8792     rm -f conf$$subs.awk
8793     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8794     _ACAWK
8795 root 1.152 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8796 sf-exg 1.132 for (key in S) S_is_set[key] = 1
8797     FS = ""
8798 ayin 1.108
8799 sf-exg 1.132 }
8800     {
8801     line = $ 0
8802     nfields = split(line, field, "@")
8803     substed = 0
8804     len = length(field[1])
8805     for (i = 2; i < nfields; i++) {
8806     key = field[i]
8807     keylen = length(key)
8808     if (S_is_set[key]) {
8809     value = S[key]
8810     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8811     len += length(value) + length(field[++i])
8812     substed = 1
8813     } else
8814     len += 1 + keylen
8815     }
8816    
8817     print line
8818     }
8819    
8820     _ACAWK
8821     _ACEOF
8822     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8823     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8824     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8825     else
8826     cat
8827 root 1.152 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8828 root 1.137 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8829 sf-exg 1.132 _ACEOF
8830 ayin 1.108
8831 root 1.137 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8832     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8833 ayin 1.108 # trailing colons and then remove the whole line if VPATH becomes empty
8834     # (actually we leave an empty line to preserve line numbers).
8835     if test "x$srcdir" = x.; then
8836 root 1.137 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8837     h
8838     s///
8839     s/^/:/
8840     s/[ ]*$/:/
8841     s/:\$(srcdir):/:/g
8842     s/:\${srcdir}:/:/g
8843     s/:@srcdir@:/:/g
8844     s/^:*//
8845 ayin 1.108 s/:*$//
8846 root 1.137 x
8847     s/\(=[ ]*\).*/\1/
8848     G
8849     s/\n//
8850 ayin 1.108 s/^[^=]*=[ ]*$//
8851     }'
8852     fi
8853    
8854 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8855 ayin 1.108 fi # test -n "$CONFIG_FILES"
8856    
8857 sf-exg 1.132 # Set up the scripts for CONFIG_HEADERS section.
8858     # No need to generate them if there are no CONFIG_HEADERS.
8859     # This happens for instance with `./config.status Makefile'.
8860     if test -n "$CONFIG_HEADERS"; then
8861 root 1.152 cat >"$tmp/defines.awk" <<\_ACAWK ||
8862 sf-exg 1.132 BEGIN {
8863     _ACEOF
8864    
8865     # Transform confdefs.h into an awk script `defines.awk', embedded as
8866     # here-document in config.status, that substitutes the proper values into
8867     # config.h.in to produce config.h.
8868    
8869     # Create a delimiter string that does not exist in confdefs.h, to ease
8870     # handling of long lines.
8871     ac_delim='%!_!# '
8872     for ac_last_try in false false :; do
8873 root 1.152 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8874     if test -z "$ac_t"; then
8875 sf-exg 1.132 break
8876     elif $ac_last_try; then
8877 root 1.137 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8878 sf-exg 1.132 else
8879     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8880     fi
8881     done
8882    
8883     # For the awk script, D is an array of macro values keyed by name,
8884     # likewise P contains macro parameters if any. Preserve backslash
8885     # newline sequences.
8886    
8887     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8888     sed -n '
8889     s/.\{148\}/&'"$ac_delim"'/g
8890     t rset
8891     :rset
8892     s/^[ ]*#[ ]*define[ ][ ]*/ /
8893     t def
8894     d
8895     :def
8896     s/\\$//
8897     t bsnl
8898     s/["\\]/\\&/g
8899     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8900     D["\1"]=" \3"/p
8901     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8902     d
8903     :bsnl
8904     s/["\\]/\\&/g
8905     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8906     D["\1"]=" \3\\\\\\n"\\/p
8907     t cont
8908     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8909     t cont
8910     d
8911     :cont
8912     n
8913     s/.\{148\}/&'"$ac_delim"'/g
8914     t clear
8915     :clear
8916     s/\\$//
8917     t bsnlc
8918     s/["\\]/\\&/g; s/^/"/; s/$/"/p
8919     d
8920     :bsnlc
8921     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8922     b cont
8923     ' <confdefs.h | sed '
8924     s/'"$ac_delim"'/"\\\
8925     "/g' >>$CONFIG_STATUS || ac_write_fail=1
8926    
8927     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8928     for (key in D) D_is_set[key] = 1
8929     FS = ""
8930     }
8931     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8932     line = \$ 0
8933     split(line, arg, " ")
8934     if (arg[1] == "#") {
8935     defundef = arg[2]
8936     mac1 = arg[3]
8937     } else {
8938     defundef = substr(arg[1], 2)
8939     mac1 = arg[2]
8940     }
8941     split(mac1, mac2, "(") #)
8942     macro = mac2[1]
8943     prefix = substr(line, 1, index(line, defundef) - 1)
8944     if (D_is_set[macro]) {
8945     # Preserve the white space surrounding the "#".
8946     print prefix "define", macro P[macro] D[macro]
8947     next
8948     } else {
8949     # Replace #undef with comments. This is necessary, for example,
8950     # in the case of _POSIX_SOURCE, which is predefined and required
8951     # on some systems where configure will not decide to define it.
8952     if (defundef == "undef") {
8953     print "/*", prefix defundef, macro, "*/"
8954     next
8955     }
8956     }
8957     }
8958     { print }
8959     _ACAWK
8960     _ACEOF
8961     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8962 root 1.137 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8963 sf-exg 1.132 fi # test -n "$CONFIG_HEADERS"
8964    
8965 ayin 1.108
8966 sf-exg 1.132 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8967     shift
8968     for ac_tag
8969 ayin 1.108 do
8970     case $ac_tag in
8971     :[FHLC]) ac_mode=$ac_tag; continue;;
8972     esac
8973     case $ac_mode$ac_tag in
8974     :[FHL]*:*);;
8975 root 1.152 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
8976 ayin 1.108 :[FH]-) ac_tag=-:-;;
8977     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8978     esac
8979     ac_save_IFS=$IFS
8980     IFS=:
8981     set x $ac_tag
8982     IFS=$ac_save_IFS
8983     shift
8984     ac_file=$1
8985     shift
8986    
8987     case $ac_mode in
8988     :L) ac_source=$1;;
8989     :[FH])
8990     ac_file_inputs=
8991     for ac_f
8992     do
8993     case $ac_f in
8994 root 1.152 -) ac_f="$tmp/stdin";;
8995 ayin 1.108 *) # Look for the file first in the build tree, then in the source tree
8996     # (if the path is not absolute). The absolute path cannot be DOS-style,
8997     # because $ac_f cannot contain `:'.
8998     test -f "$ac_f" ||
8999     case $ac_f in
9000     [\\/$]*) false;;
9001     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9002     esac ||
9003 root 1.152 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9004 ayin 1.108 esac
9005 sf-exg 1.132 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9006     as_fn_append ac_file_inputs " '$ac_f'"
9007 ayin 1.108 done
9008    
9009     # Let's still pretend it is `configure' which instantiates (i.e., don't
9010     # use $as_me), people would be surprised to read:
9011     # /* config.h. Generated by config.status. */
9012 sf-exg 1.132 configure_input='Generated from '`
9013     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9014     `' by configure.'
9015 ayin 1.108 if test x"$ac_file" != x-; then
9016     configure_input="$ac_file. $configure_input"
9017 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9018     $as_echo "$as_me: creating $ac_file" >&6;}
9019 ayin 1.108 fi
9020 sf-exg 1.132 # Neutralize special characters interpreted by sed in replacement strings.
9021     case $configure_input in #(
9022     *\&* | *\|* | *\\* )
9023     ac_sed_conf_input=`$as_echo "$configure_input" |
9024     sed 's/[\\\\&|]/\\\\&/g'`;; #(
9025     *) ac_sed_conf_input=$configure_input;;
9026     esac
9027 ayin 1.108
9028     case $ac_tag in
9029 root 1.152 *:-:* | *:-) cat >"$tmp/stdin" \
9030     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9031 ayin 1.108 esac
9032     ;;
9033 ayin 1.102 esac
9034    
9035 ayin 1.108 ac_dir=`$as_dirname -- "$ac_file" ||
9036 pcg 1.11 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9037     X"$ac_file" : 'X\(//\)[^/]' \| \
9038     X"$ac_file" : 'X\(//\)$' \| \
9039 ayin 1.108 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9040 sf-exg 1.132 $as_echo X"$ac_file" |
9041 ayin 1.108 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9042     s//\1/
9043     q
9044     }
9045     /^X\(\/\/\)[^/].*/{
9046     s//\1/
9047     q
9048     }
9049     /^X\(\/\/\)$/{
9050     s//\1/
9051     q
9052     }
9053     /^X\(\/\).*/{
9054     s//\1/
9055     q
9056     }
9057     s/.*/./; q'`
9058 sf-exg 1.132 as_dir="$ac_dir"; as_fn_mkdir_p
9059 pcg 1.11 ac_builddir=.
9060    
9061 ayin 1.108 case "$ac_dir" in
9062     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9063     *)
9064 sf-exg 1.132 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9065 ayin 1.108 # A ".." for each directory in $ac_dir_suffix.
9066 sf-exg 1.132 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9067 ayin 1.108 case $ac_top_builddir_sub in
9068     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9069     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9070     esac ;;
9071     esac
9072     ac_abs_top_builddir=$ac_pwd
9073     ac_abs_builddir=$ac_pwd$ac_dir_suffix
9074     # for backward compatibility:
9075     ac_top_builddir=$ac_top_build_prefix
9076 pcg 1.11
9077     case $srcdir in
9078 ayin 1.108 .) # We are building in place.
9079 pcg 1.11 ac_srcdir=.
9080 ayin 1.108 ac_top_srcdir=$ac_top_builddir_sub
9081     ac_abs_top_srcdir=$ac_pwd ;;
9082     [\\/]* | ?:[\\/]* ) # Absolute name.
9083 pcg 1.11 ac_srcdir=$srcdir$ac_dir_suffix;
9084 ayin 1.108 ac_top_srcdir=$srcdir
9085     ac_abs_top_srcdir=$srcdir ;;
9086     *) # Relative name.
9087     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9088     ac_top_srcdir=$ac_top_build_prefix$srcdir
9089     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9090 pcg 1.11 esac
9091 ayin 1.108 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9092 pcg 1.11
9093    
9094 ayin 1.108 case $ac_mode in
9095     :F)
9096     #
9097     # CONFIG_FILE
9098     #
9099 pcg 1.1
9100 pcg 1.11 case $INSTALL in
9101     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9102 ayin 1.108 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9103 pcg 1.1 esac
9104 ayin 1.108 _ACEOF
9105 pcg 1.1
9106 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9107 ayin 1.108 # If the template does not know about datarootdir, expand it.
9108     # FIXME: This hack should be removed a few years after 2.60.
9109     ac_datarootdir_hack=; ac_datarootdir_seen=
9110 sf-exg 1.132 ac_sed_dataroot='
9111     /datarootdir/ {
9112 ayin 1.108 p
9113     q
9114     }
9115     /@datadir@/p
9116     /@docdir@/p
9117     /@infodir@/p
9118     /@localedir@/p
9119 sf-exg 1.132 /@mandir@/p'
9120     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9121 ayin 1.108 *datarootdir*) ac_datarootdir_seen=yes;;
9122     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9123 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9124     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9125 ayin 1.108 _ACEOF
9126 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9127 ayin 1.108 ac_datarootdir_hack='
9128     s&@datadir@&$datadir&g
9129     s&@docdir@&$docdir&g
9130     s&@infodir@&$infodir&g
9131     s&@localedir@&$localedir&g
9132     s&@mandir@&$mandir&g
9133 sf-exg 1.132 s&\\\${datarootdir}&$datarootdir&g' ;;
9134 ayin 1.108 esac
9135 root 1.105 _ACEOF
9136 ayin 1.108
9137     # Neutralize VPATH when `$srcdir' = `.'.
9138     # Shell code in configure.ac might set extrasub.
9139     # FIXME: do we really want to maintain this feature?
9140 sf-exg 1.132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9141     ac_sed_extra="$ac_vpsub
9142 pcg 1.11 $extrasub
9143     _ACEOF
9144 sf-exg 1.132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9145 pcg 1.11 :t
9146     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9147 sf-exg 1.132 s|@configure_input@|$ac_sed_conf_input|;t t
9148 ayin 1.108 s&@top_builddir@&$ac_top_builddir_sub&;t t
9149 sf-exg 1.132 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9150 ayin 1.108 s&@srcdir@&$ac_srcdir&;t t
9151     s&@abs_srcdir@&$ac_abs_srcdir&;t t
9152     s&@top_srcdir@&$ac_top_srcdir&;t t
9153     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9154     s&@builddir@&$ac_builddir&;t t
9155     s&@abs_builddir@&$ac_abs_builddir&;t t
9156     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9157     s&@INSTALL@&$ac_INSTALL&;t t
9158     $ac_datarootdir_hack
9159 sf-exg 1.132 "
9160 root 1.152 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9161     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9162 ayin 1.108
9163     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9164 root 1.152 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9165     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9166 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9167 root 1.137 which seems to be undefined. Please make sure it is defined" >&5
9168 sf-exg 1.132 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9169 root 1.137 which seems to be undefined. Please make sure it is defined" >&2;}
9170 ayin 1.106
9171 root 1.152 rm -f "$tmp/stdin"
9172 pcg 1.11 case $ac_file in
9173 root 1.152 -) cat "$tmp/out" && rm -f "$tmp/out";;
9174     *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
9175 sf-exg 1.132 esac \
9176 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9177 ayin 1.108 ;;
9178     :H)
9179     #
9180     # CONFIG_HEADER
9181     #
9182 pcg 1.11 if test x"$ac_file" != x-; then
9183 sf-exg 1.132 {
9184     $as_echo "/* $configure_input */" \
9185 root 1.152 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9186     } >"$tmp/config.h" \
9187 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9188 root 1.152 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
9189 sf-exg 1.132 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9190     $as_echo "$as_me: $ac_file is unchanged" >&6;}
9191 pcg 1.11 else
9192 sf-exg 1.132 rm -f "$ac_file"
9193 root 1.152 mv "$tmp/config.h" "$ac_file" \
9194 root 1.137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9195 pcg 1.1 fi
9196 pcg 1.11 else
9197 sf-exg 1.132 $as_echo "/* $configure_input */" \
9198 root 1.152 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9199 root 1.137 || as_fn_error $? "could not create -" "$LINENO" 5
9200 pcg 1.1 fi
9201 ayin 1.108 ;;
9202    
9203    
9204     esac
9205    
9206     done # for ac_tag
9207 pcg 1.11
9208 pcg 1.1
9209 sf-exg 1.132 as_fn_exit 0
9210 pcg 1.11 _ACEOF
9211     ac_clean_files=$ac_clean_files_save
9212 pcg 1.1
9213 sf-exg 1.132 test $ac_write_fail = 0 ||
9214 root 1.137 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9215 sf-exg 1.132
9216 pcg 1.1
9217 pcg 1.11 # configure is writing to config.log, and then calls config.status.
9218     # config.status does its own redirection, appending to config.log.
9219     # Unfortunately, on DOS this fails, as config.log is still kept open
9220     # by configure, so config.status won't be able to write to it; its
9221     # output is simply discarded. So we exec the FD to /dev/null,
9222     # effectively closing config.log, so it can be properly (re)opened and
9223     # appended to by config.status. When coming back to configure, we
9224     # need to make the FD available again.
9225     if test "$no_create" != yes; then
9226     ac_cs_success=:
9227     ac_config_status_args=
9228     test "$silent" = yes &&
9229     ac_config_status_args="$ac_config_status_args --quiet"
9230     exec 5>/dev/null
9231     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9232     exec 5>>config.log
9233     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9234     # would make configure fail if this is the last instruction.
9235 root 1.137 $ac_cs_success || as_fn_exit 1
9236 sf-exg 1.132 fi
9237     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9238     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9239     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9240 pcg 1.11 fi
9241 pcg 1.1
9242    
9243     echo "Configuration:
9244    
9245     Rxvt version: $VERSION : $DATE
9246     Source code location: $srcdir
9247     Install path: ${prefix}/bin
9248 pcg 1.13 Compiler: $CXX
9249 root 1.100 Compiler flags: $CXXFLAGS
9250 pcg 1.13 Linker: $LINKER"
9251 pcg 1.1
9252     if test x$term != x; then
9253 pcg 1.18 echo " set TERM to: $term"
9254 pcg 1.1 fi
9255     if test x$terminfo != x; then
9256 pcg 1.18 echo " set TERMINFO to: $terminfo"
9257     fi
9258     echo " default resource name: $RESNAME"
9259     echo " resource class: $RESCLASS"
9260     if test x$RESFALLBACK != x; then
9261     echo " resource class fallback: $RESFALLBACK"
9262 pcg 1.1 fi
9263 pcg 1.18 echo
9264 root 1.89 echo " embedded perl: $support_perl"
9265 sf-exg 1.135 echo " image library: $image_lib"
9266 root 1.89 echo
9267 pcg 1.1 if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
9268     echo ".----------------------------------------------------------------."
9269     echo ". WARNING: --enable-xim was specified however the locale support ."
9270     echo ". functions could not be found. ."
9271     echo ". XIM is now being DISABLED! ."
9272     echo ".----------------------------------------------------------------."
9273     fi
9274 pcg 1.20
9275 root 1.96 echo "*** Optionally check src/feature.h for further, rarely used options ***"
9276 pcg 1.20 echo
9277