ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/lsys/configure
Revision: 1.3
Committed: Wed Nov 7 12:50:17 2018 UTC (5 years, 6 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2695 -3507 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #! /bin/sh
2     # Guess values for system-dependent variables and create Makefiles.
3 root 1.3 # Generated by GNU Autoconf 2.69.
4     #
5     #
6     # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7     #
8 root 1.1 #
9     # This configure script is free software; the Free Software Foundation
10     # gives unlimited permission to copy, distribute and modify it.
11 root 1.3 ## -------------------- ##
12     ## M4sh Initialization. ##
13     ## -------------------- ##
14 root 1.1
15     # Be more Bourne compatible
16     DUALCASE=1; export DUALCASE # for MKS sh
17 root 1.3 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 root 1.1 emulate sh
19     NULLCMD=:
20 root 1.3 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 root 1.1 # is contrary to our usage. Disable this feature.
22     alias -g '${1+"$@"}'='"$@"'
23     setopt NO_GLOB_SUBST
24     else
25 root 1.3 case `(set -o) 2>/dev/null` in #(
26     *posix*) :
27     set -o posix ;; #(
28     *) :
29     ;;
30 root 1.1 esac
31     fi
32    
33    
34 root 1.3 as_nl='
35     '
36     export as_nl
37     # Printing a long string crashes Solaris 7 /usr/bin/printf.
38     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41     # Prefer a ksh shell builtin over an external printf program on Solaris,
42     # but without wasting forks for bash or zsh.
43     if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45     as_echo='print -r --'
46     as_echo_n='print -rn --'
47     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48     as_echo='printf %s\n'
49     as_echo_n='printf %s'
50     else
51     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54 root 1.1 else
55 root 1.3 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57     arg=$1;
58     case $arg in #(
59     *"$as_nl"*)
60     expr "X$arg" : "X\\(.*\\)$as_nl";
61     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62     esac;
63     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67 root 1.1 fi
68 root 1.3 export as_echo_body
69     as_echo='sh -c $as_echo_body as_echo'
70 root 1.1 fi
71    
72 root 1.3 # The user is always right.
73     if test "${PATH_SEPARATOR+set}" != set; then
74     PATH_SEPARATOR=:
75     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77     PATH_SEPARATOR=';'
78     }
79 root 1.1 fi
80    
81    
82     # IFS
83     # We need space, tab and new line, in precisely that order. Quoting is
84     # there to prevent editors from complaining about space-tab.
85     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86     # splitting by setting IFS to empty value.)
87     IFS=" "" $as_nl"
88    
89     # Find who we are. Look in the path if we contain no directory separator.
90 root 1.3 as_myself=
91     case $0 in #((
92 root 1.1 *[\\/]* ) as_myself=$0 ;;
93     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94     for as_dir in $PATH
95     do
96     IFS=$as_save_IFS
97     test -z "$as_dir" && as_dir=.
98 root 1.3 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99     done
100 root 1.1 IFS=$as_save_IFS
101    
102     ;;
103     esac
104     # We did not find ourselves, most probably we were run as `sh COMMAND'
105     # in which case we are not to be found in the path.
106     if test "x$as_myself" = x; then
107     as_myself=$0
108     fi
109     if test ! -f "$as_myself"; then
110 root 1.3 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111     exit 1
112 root 1.1 fi
113    
114 root 1.3 # Unset variables that we do not need and which cause bugs (e.g. in
115     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116     # suppresses any "Segmentation fault" message there. '((' could
117     # trigger a bug in pdksh 5.2.14.
118     for as_var in BASH_ENV ENV MAIL MAILPATH
119     do eval test x\${$as_var+set} = xset \
120     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 root 1.1 done
122     PS1='$ '
123     PS2='> '
124     PS4='+ '
125    
126     # NLS nuisances.
127 root 1.3 LC_ALL=C
128     export LC_ALL
129     LANGUAGE=C
130     export LANGUAGE
131 root 1.1
132     # CDPATH.
133 root 1.3 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 root 1.1
135 root 1.3 # Use a proper internal environment variable to ensure we don't fall
136     # into an infinite loop, continuously re-executing ourselves.
137     if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140     # neutralization value for shells without unset; and this also
141     # works around shells that cannot unset nonexistent variables.
142     # Preserve -v and -x to the replacement shell.
143     BASH_ENV=/dev/null
144     ENV=/dev/null
145     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146     case $- in # ((((
147     *v*x* | *x*v* ) as_opts=-vx ;;
148     *v* ) as_opts=-v ;;
149     *x* ) as_opts=-x ;;
150     * ) as_opts= ;;
151     esac
152     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153     # Admittedly, this is quite paranoid, since all the known shells bail
154     # out after a failed `exec'.
155     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156     as_fn_exit 255
157     fi
158     # We don't want this to propagate to other subprocesses.
159     { _as_can_reexec=; unset _as_can_reexec;}
160 root 1.1 if test "x$CONFIG_SHELL" = x; then
161 root 1.3 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162     emulate sh
163     NULLCMD=:
164     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165     # is contrary to our usage. Disable this feature.
166     alias -g '\${1+\"\$@\"}'='\"\$@\"'
167     setopt NO_GLOB_SUBST
168 root 1.1 else
169 root 1.3 case \`(set -o) 2>/dev/null\` in #(
170     *posix*) :
171     set -o posix ;; #(
172     *) :
173     ;;
174     esac
175 root 1.1 fi
176 root 1.3 "
177     as_required="as_fn_return () { (exit \$1); }
178     as_fn_success () { as_fn_return 0; }
179     as_fn_failure () { as_fn_return 1; }
180     as_fn_ret_success () { return 0; }
181     as_fn_ret_failure () { return 1; }
182 root 1.1
183     exitcode=0
184 root 1.3 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189    
190     else
191     exitcode=1; echo positional parameters were not saved.
192     fi
193     test x\$exitcode = x0 || exit 1
194     test -x / || exit 1"
195     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199     test \$(( 1 + 1 )) = 2 || exit 1"
200     if (eval "$as_required") 2>/dev/null; then :
201     as_have_required=yes
202 root 1.1 else
203 root 1.3 as_have_required=no
204 root 1.1 fi
205 root 1.3 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206 root 1.1
207     else
208 root 1.3 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209     as_found=false
210 root 1.1 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211     do
212     IFS=$as_save_IFS
213     test -z "$as_dir" && as_dir=.
214 root 1.3 as_found=:
215     case $as_dir in #(
216 root 1.1 /*)
217     for as_base in sh bash ksh sh5; do
218 root 1.3 # Try only shells that exist, to save several forks.
219     as_shell=$as_dir/$as_base
220     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222     CONFIG_SHELL=$as_shell as_have_required=yes
223     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224     break 2
225     fi
226     fi
227 root 1.1 done;;
228     esac
229 root 1.3 as_found=false
230 root 1.1 done
231 root 1.3 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233     CONFIG_SHELL=$SHELL as_have_required=yes
234     fi; }
235 root 1.1 IFS=$as_save_IFS
236    
237    
238 root 1.3 if test "x$CONFIG_SHELL" != x; then :
239     export CONFIG_SHELL
240     # We cannot yet assume a decent shell, so we have to provide a
241     # neutralization value for shells without unset; and this also
242     # works around shells that cannot unset nonexistent variables.
243     # Preserve -v and -x to the replacement shell.
244     BASH_ENV=/dev/null
245     ENV=/dev/null
246     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247     case $- in # ((((
248     *v*x* | *x*v* ) as_opts=-vx ;;
249     *v* ) as_opts=-v ;;
250     *x* ) as_opts=-x ;;
251     * ) as_opts= ;;
252     esac
253     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254     # Admittedly, this is quite paranoid, since all the known shells bail
255     # out after a failed `exec'.
256     $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257     exit 255
258     fi
259    
260     if test x$as_have_required = xno; then :
261     $as_echo "$0: This script requires a shell more modern than all"
262     $as_echo "$0: the shells that I found on your system."
263     if test x${ZSH_VERSION+set} = xset ; then
264     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266     else
267     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268     $0: including any error possibly output before this
269     $0: message. Then install a modern shell, or manually run
270     $0: the script under such a shell if you do have one."
271     fi
272     exit 1
273     fi
274     fi
275 root 1.1 fi
276 root 1.3 SHELL=${CONFIG_SHELL-/bin/sh}
277     export SHELL
278     # Unset more variables known to interfere with behavior of common tools.
279     CLICOLOR_FORCE= GREP_OPTIONS=
280     unset CLICOLOR_FORCE GREP_OPTIONS
281 root 1.1
282 root 1.3 ## --------------------- ##
283     ## M4sh Shell Functions. ##
284     ## --------------------- ##
285     # as_fn_unset VAR
286     # ---------------
287     # Portably unset VAR.
288     as_fn_unset ()
289     {
290     { eval $1=; unset $1;}
291     }
292     as_unset=as_fn_unset
293 root 1.1
294 root 1.3 # as_fn_set_status STATUS
295     # -----------------------
296     # Set $? to STATUS, without forking.
297     as_fn_set_status ()
298     {
299     return $1
300     } # as_fn_set_status
301 root 1.1
302 root 1.3 # as_fn_exit STATUS
303     # -----------------
304     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305     as_fn_exit ()
306     {
307     set +e
308     as_fn_set_status $1
309     exit $1
310     } # as_fn_exit
311    
312     # as_fn_mkdir_p
313     # -------------
314     # Create "$as_dir" as a directory, including parents if necessary.
315     as_fn_mkdir_p ()
316     {
317 root 1.1
318 root 1.3 case $as_dir in #(
319     -*) as_dir=./$as_dir;;
320     esac
321     test -d "$as_dir" || eval $as_mkdir_p || {
322     as_dirs=
323     while :; do
324     case $as_dir in #(
325     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326     *) as_qdir=$as_dir;;
327     esac
328     as_dirs="'$as_qdir' $as_dirs"
329     as_dir=`$as_dirname -- "$as_dir" ||
330     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331     X"$as_dir" : 'X\(//\)[^/]' \| \
332     X"$as_dir" : 'X\(//\)$' \| \
333     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334     $as_echo X"$as_dir" |
335     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336     s//\1/
337     q
338     }
339     /^X\(\/\/\)[^/].*/{
340     s//\1/
341     q
342     }
343     /^X\(\/\/\)$/{
344     s//\1/
345     q
346     }
347     /^X\(\/\).*/{
348     s//\1/
349     q
350     }
351     s/.*/./; q'`
352     test -d "$as_dir" && break
353     done
354     test -z "$as_dirs" || eval "mkdir $as_dirs"
355     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356 root 1.1
357    
358 root 1.3 } # as_fn_mkdir_p
359 root 1.1
360 root 1.3 # as_fn_executable_p FILE
361     # -----------------------
362     # Test if FILE is an executable regular file.
363     as_fn_executable_p ()
364     {
365     test -f "$1" && test -x "$1"
366     } # as_fn_executable_p
367     # as_fn_append VAR VALUE
368     # ----------------------
369     # Append the text in VALUE to the end of the definition contained in VAR. Take
370     # advantage of any shell optimizations that allow amortized linear growth over
371     # repeated appends, instead of the typical quadratic growth present in naive
372     # implementations.
373     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374     eval 'as_fn_append ()
375     {
376     eval $1+=\$2
377     }'
378 root 1.1 else
379 root 1.3 as_fn_append ()
380     {
381     eval $1=\$$1\$2
382     }
383     fi # as_fn_append
384    
385     # as_fn_arith ARG...
386     # ------------------
387     # Perform arithmetic evaluation on the ARGs, and store the result in the
388     # global $as_val. Take advantage of shells that can avoid forks. The arguments
389     # must be portable across $(()) and expr.
390     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391     eval 'as_fn_arith ()
392     {
393     as_val=$(( $* ))
394     }'
395 root 1.1 else
396 root 1.3 as_fn_arith ()
397     {
398     as_val=`expr "$@" || test $? -eq 1`
399     }
400     fi # as_fn_arith
401 root 1.1
402    
403 root 1.3 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404     # ----------------------------------------
405     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407     # script with STATUS, using 1 if that was 0.
408     as_fn_error ()
409     {
410     as_status=$1; test $as_status -eq 0 && as_status=1
411     if test "$4"; then
412     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414     fi
415     $as_echo "$as_me: error: $2" >&2
416     as_fn_exit $as_status
417     } # as_fn_error
418 root 1.1
419 root 1.3 if expr a : '\(a\)' >/dev/null 2>&1 &&
420     test "X`expr 00001 : '.*\(...\)'`" = X001; then
421     as_expr=expr
422 root 1.1 else
423 root 1.3 as_expr=false
424 root 1.1 fi
425    
426 root 1.3 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427     as_basename=basename
428 root 1.1 else
429 root 1.3 as_basename=false
430 root 1.1 fi
431    
432 root 1.3 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433     as_dirname=dirname
434 root 1.1 else
435 root 1.3 as_dirname=false
436 root 1.1 fi
437    
438 root 1.3 as_me=`$as_basename -- "$0" ||
439     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440     X"$0" : 'X\(//\)$' \| \
441     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442     $as_echo X/"$0" |
443     sed '/^.*\/\([^/][^/]*\)\/*$/{
444     s//\1/
445     q
446     }
447     /^X\/\(\/\/\)$/{
448     s//\1/
449     q
450     }
451     /^X\/\(\/\).*/{
452     s//\1/
453     q
454     }
455     s/.*/./; q'`
456 root 1.1
457 root 1.3 # Avoid depending upon Character Ranges.
458     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461     as_cr_digits='0123456789'
462     as_cr_alnum=$as_cr_Letters$as_cr_digits
463 root 1.1
464    
465 root 1.3 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466     as_lineno_2=$LINENO as_lineno_2a=$LINENO
467     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 root 1.1 sed -n '
471     p
472     /[$]LINENO/=
473     ' <$as_myself |
474     sed '
475     s/[$]LINENO.*/&-/
476     t lineno
477     b
478     :lineno
479     N
480     :loop
481     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482     t loop
483     s/-\n.*//
484     ' >$as_me.lineno &&
485     chmod +x "$as_me.lineno" ||
486 root 1.3 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487 root 1.1
488 root 1.3 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489     # already done that, so ensure we don't try to do so again and fall
490     # in an infinite loop. This has already happened in practice.
491     _as_can_reexec=no; export _as_can_reexec
492 root 1.1 # Don't try to exec as it changes $[0], causing all sort of problems
493     # (the dirname of $[0] is not the place where we might find the
494     # original and so on. Autoconf is especially sensitive to this).
495     . "./$as_me.lineno"
496     # Exit status is that of the last command.
497     exit
498     }
499    
500     ECHO_C= ECHO_N= ECHO_T=
501 root 1.3 case `echo -n x` in #(((((
502 root 1.1 -n*)
503 root 1.3 case `echo 'xy\c'` in
504 root 1.1 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 root 1.3 xy) ECHO_C='\c';;
506     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507     ECHO_T=' ';;
508 root 1.1 esac;;
509     *)
510     ECHO_N='-n';;
511     esac
512    
513     rm -f conf$$ conf$$.exe conf$$.file
514     if test -d conf$$.dir; then
515     rm -f conf$$.dir/conf$$.file
516     else
517     rm -f conf$$.dir
518 root 1.3 mkdir conf$$.dir 2>/dev/null
519 root 1.1 fi
520 root 1.3 if (echo >conf$$.file) 2>/dev/null; then
521     if ln -s conf$$.file conf$$ 2>/dev/null; then
522     as_ln_s='ln -s'
523     # ... but there are two gotchas:
524     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526     # In both cases, we have to default to `cp -pR'.
527     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528     as_ln_s='cp -pR'
529     elif ln conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s=ln
531     else
532     as_ln_s='cp -pR'
533     fi
534 root 1.1 else
535 root 1.3 as_ln_s='cp -pR'
536 root 1.1 fi
537     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538     rmdir conf$$.dir 2>/dev/null
539    
540     if mkdir -p . 2>/dev/null; then
541 root 1.3 as_mkdir_p='mkdir -p "$as_dir"'
542 root 1.1 else
543     test -d ./-p && rmdir ./-p
544     as_mkdir_p=false
545     fi
546    
547 root 1.3 as_test_x='test -x'
548     as_executable_p=as_fn_executable_p
549 root 1.1
550     # Sed expression to map a string onto a valid CPP name.
551     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552    
553     # Sed expression to map a string onto a valid variable name.
554     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555    
556    
557 root 1.3 test -n "$DJDIR" || exec 7<&0 </dev/null
558     exec 6>&1
559 root 1.1
560     # Name of the host.
561 root 1.3 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 root 1.1 # so uname gets run too.
563     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564    
565     #
566     # Initializations.
567     #
568     ac_default_prefix=/usr/local
569     ac_clean_files=
570     ac_config_libobj_dir=.
571     LIBOBJS=
572     cross_compiling=no
573     subdirs=
574     MFLAGS=
575     MAKEFLAGS=
576    
577     # Identity of this package.
578     PACKAGE_NAME=
579     PACKAGE_TARNAME=
580     PACKAGE_VERSION=
581     PACKAGE_STRING=
582     PACKAGE_BUGREPORT=
583 root 1.3 PACKAGE_URL=
584 root 1.1
585     ac_unique_file="parser.g"
586     # Factoring default headers for most tests.
587     ac_includes_default="\
588     #include <stdio.h>
589     #ifdef HAVE_SYS_TYPES_H
590     # include <sys/types.h>
591     #endif
592     #ifdef HAVE_SYS_STAT_H
593     # include <sys/stat.h>
594     #endif
595     #ifdef STDC_HEADERS
596     # include <stdlib.h>
597     # include <stddef.h>
598     #else
599     # ifdef HAVE_STDLIB_H
600     # include <stdlib.h>
601     # endif
602     #endif
603     #ifdef HAVE_STRING_H
604     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605     # include <memory.h>
606     # endif
607     # include <string.h>
608     #endif
609     #ifdef HAVE_STRINGS_H
610     # include <strings.h>
611     #endif
612     #ifdef HAVE_INTTYPES_H
613     # include <inttypes.h>
614     #endif
615 root 1.3 #ifdef HAVE_STDINT_H
616     # include <stdint.h>
617     #endif
618     #ifdef HAVE_UNISTD_H
619     # include <unistd.h>
620     #endif"
621    
622     ac_subst_vars='LTLIBOBJS
623     LIBOBJS
624     HAVE_PCCTS_FALSE
625     HAVE_PCCTS_TRUE
626     DLG
627     ANTLR
628     XMKMF
629     CXXCPP
630     am__fastdepCXX_FALSE
631     am__fastdepCXX_TRUE
632     CXXDEPMODE
633     ac_ct_CXX
634     CXXFLAGS
635     CXX
636     EGREP
637     GREP
638     CPP
639     am__fastdepCC_FALSE
640     am__fastdepCC_TRUE
641     CCDEPMODE
642     AMDEPBACKSLASH
643     AMDEP_FALSE
644     AMDEP_TRUE
645     am__quote
646     am__include
647     DEPDIR
648     OBJEXT
649     EXEEXT
650     ac_ct_CC
651     CPPFLAGS
652     LDFLAGS
653     CFLAGS
654     CC
655     am__untar
656     am__tar
657     AMTAR
658     am__leading_dot
659     SET_MAKE
660     AWK
661     mkdir_p
662     MKDIR_P
663     INSTALL_STRIP_PROGRAM
664     STRIP
665     install_sh
666     MAKEINFO
667     AUTOHEADER
668     AUTOMAKE
669     AUTOCONF
670     ACLOCAL
671     VERSION
672     PACKAGE
673     CYGPATH_W
674     am__isrc
675     INSTALL_DATA
676     INSTALL_SCRIPT
677     INSTALL_PROGRAM
678     target_alias
679     host_alias
680     build_alias
681     LIBS
682     ECHO_T
683     ECHO_N
684     ECHO_C
685     DEFS
686     mandir
687     localedir
688     libdir
689     psdir
690     pdfdir
691     dvidir
692     htmldir
693     infodir
694     docdir
695     oldincludedir
696     includedir
697     runstatedir
698     localstatedir
699     sharedstatedir
700     sysconfdir
701     datadir
702     datarootdir
703     libexecdir
704     sbindir
705     bindir
706     program_transform_name
707     prefix
708     exec_prefix
709     PACKAGE_URL
710     PACKAGE_BUGREPORT
711     PACKAGE_STRING
712     PACKAGE_VERSION
713     PACKAGE_TARNAME
714     PACKAGE_NAME
715 root 1.1 PATH_SEPARATOR
716 root 1.3 SHELL'
717 root 1.1 ac_subst_files=''
718 root 1.3 ac_user_opts='
719     enable_option_checking
720     enable_dependency_tracking
721     with_x
722     '
723 root 1.1 ac_precious_vars='build_alias
724     host_alias
725     target_alias
726     CC
727     CFLAGS
728     LDFLAGS
729     LIBS
730     CPPFLAGS
731     CPP
732     CXX
733     CXXFLAGS
734     CCC
735     CXXCPP
736     XMKMF'
737    
738    
739     # Initialize some variables set by options.
740     ac_init_help=
741     ac_init_version=false
742 root 1.3 ac_unrecognized_opts=
743     ac_unrecognized_sep=
744 root 1.1 # The variables have the same names as the options, with
745     # dashes changed to underlines.
746     cache_file=/dev/null
747     exec_prefix=NONE
748     no_create=
749     no_recursion=
750     prefix=NONE
751     program_prefix=NONE
752     program_suffix=NONE
753     program_transform_name=s,x,x,
754     silent=
755     site=
756     srcdir=
757     verbose=
758     x_includes=NONE
759     x_libraries=NONE
760    
761     # Installation directory options.
762     # These are left unexpanded so users can "make install exec_prefix=/foo"
763     # and all the variables that are supposed to be based on exec_prefix
764     # by default will actually change.
765     # Use braces instead of parens because sh, perl, etc. also accept them.
766     # (The list follows the same order as the GNU Coding Standards.)
767     bindir='${exec_prefix}/bin'
768     sbindir='${exec_prefix}/sbin'
769     libexecdir='${exec_prefix}/libexec'
770     datarootdir='${prefix}/share'
771     datadir='${datarootdir}'
772     sysconfdir='${prefix}/etc'
773     sharedstatedir='${prefix}/com'
774     localstatedir='${prefix}/var'
775 root 1.3 runstatedir='${localstatedir}/run'
776 root 1.1 includedir='${prefix}/include'
777     oldincludedir='/usr/include'
778     docdir='${datarootdir}/doc/${PACKAGE}'
779     infodir='${datarootdir}/info'
780     htmldir='${docdir}'
781     dvidir='${docdir}'
782     pdfdir='${docdir}'
783     psdir='${docdir}'
784     libdir='${exec_prefix}/lib'
785     localedir='${datarootdir}/locale'
786     mandir='${datarootdir}/man'
787    
788     ac_prev=
789     ac_dashdash=
790     for ac_option
791     do
792     # If the previous option needs an argument, assign it.
793     if test -n "$ac_prev"; then
794     eval $ac_prev=\$ac_option
795     ac_prev=
796     continue
797     fi
798    
799     case $ac_option in
800 root 1.3 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801     *=) ac_optarg= ;;
802     *) ac_optarg=yes ;;
803 root 1.1 esac
804    
805     # Accept the important Cygnus configure options, so we can diagnose typos.
806    
807     case $ac_dashdash$ac_option in
808     --)
809     ac_dashdash=yes ;;
810    
811     -bindir | --bindir | --bindi | --bind | --bin | --bi)
812     ac_prev=bindir ;;
813     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814     bindir=$ac_optarg ;;
815    
816     -build | --build | --buil | --bui | --bu)
817     ac_prev=build_alias ;;
818     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819     build_alias=$ac_optarg ;;
820    
821     -cache-file | --cache-file | --cache-fil | --cache-fi \
822     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823     ac_prev=cache_file ;;
824     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826     cache_file=$ac_optarg ;;
827    
828     --config-cache | -C)
829     cache_file=config.cache ;;
830    
831     -datadir | --datadir | --datadi | --datad)
832     ac_prev=datadir ;;
833     -datadir=* | --datadir=* | --datadi=* | --datad=*)
834     datadir=$ac_optarg ;;
835    
836     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837     | --dataroo | --dataro | --datar)
838     ac_prev=datarootdir ;;
839     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841     datarootdir=$ac_optarg ;;
842    
843     -disable-* | --disable-*)
844 root 1.3 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 root 1.1 # Reject names that are not valid shell variable names.
846 root 1.3 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847     as_fn_error $? "invalid feature name: $ac_useropt"
848     ac_useropt_orig=$ac_useropt
849     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
850     case $ac_user_opts in
851     *"
852     "enable_$ac_useropt"
853     "*) ;;
854     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
855     ac_unrecognized_sep=', ';;
856     esac
857     eval enable_$ac_useropt=no ;;
858 root 1.1
859     -docdir | --docdir | --docdi | --doc | --do)
860     ac_prev=docdir ;;
861     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
862     docdir=$ac_optarg ;;
863    
864     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
865     ac_prev=dvidir ;;
866     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
867     dvidir=$ac_optarg ;;
868    
869     -enable-* | --enable-*)
870 root 1.3 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
871 root 1.1 # Reject names that are not valid shell variable names.
872 root 1.3 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873     as_fn_error $? "invalid feature name: $ac_useropt"
874     ac_useropt_orig=$ac_useropt
875     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
876     case $ac_user_opts in
877     *"
878     "enable_$ac_useropt"
879     "*) ;;
880     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
881     ac_unrecognized_sep=', ';;
882     esac
883     eval enable_$ac_useropt=\$ac_optarg ;;
884 root 1.1
885     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
886     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
887     | --exec | --exe | --ex)
888     ac_prev=exec_prefix ;;
889     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
890     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
891     | --exec=* | --exe=* | --ex=*)
892     exec_prefix=$ac_optarg ;;
893    
894     -gas | --gas | --ga | --g)
895     # Obsolete; use --with-gas.
896     with_gas=yes ;;
897    
898     -help | --help | --hel | --he | -h)
899     ac_init_help=long ;;
900     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
901     ac_init_help=recursive ;;
902     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
903     ac_init_help=short ;;
904    
905     -host | --host | --hos | --ho)
906     ac_prev=host_alias ;;
907     -host=* | --host=* | --hos=* | --ho=*)
908     host_alias=$ac_optarg ;;
909    
910     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
911     ac_prev=htmldir ;;
912     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
913     | --ht=*)
914     htmldir=$ac_optarg ;;
915    
916     -includedir | --includedir | --includedi | --included | --include \
917     | --includ | --inclu | --incl | --inc)
918     ac_prev=includedir ;;
919     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
920     | --includ=* | --inclu=* | --incl=* | --inc=*)
921     includedir=$ac_optarg ;;
922    
923     -infodir | --infodir | --infodi | --infod | --info | --inf)
924     ac_prev=infodir ;;
925     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
926     infodir=$ac_optarg ;;
927    
928     -libdir | --libdir | --libdi | --libd)
929     ac_prev=libdir ;;
930     -libdir=* | --libdir=* | --libdi=* | --libd=*)
931     libdir=$ac_optarg ;;
932    
933     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
934     | --libexe | --libex | --libe)
935     ac_prev=libexecdir ;;
936     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
937     | --libexe=* | --libex=* | --libe=*)
938     libexecdir=$ac_optarg ;;
939    
940     -localedir | --localedir | --localedi | --localed | --locale)
941     ac_prev=localedir ;;
942     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
943     localedir=$ac_optarg ;;
944    
945     -localstatedir | --localstatedir | --localstatedi | --localstated \
946     | --localstate | --localstat | --localsta | --localst | --locals)
947     ac_prev=localstatedir ;;
948     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
949     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
950     localstatedir=$ac_optarg ;;
951    
952     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
953     ac_prev=mandir ;;
954     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
955     mandir=$ac_optarg ;;
956    
957     -nfp | --nfp | --nf)
958     # Obsolete; use --without-fp.
959     with_fp=no ;;
960    
961     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
962     | --no-cr | --no-c | -n)
963     no_create=yes ;;
964    
965     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
967     no_recursion=yes ;;
968    
969     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
970     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
971     | --oldin | --oldi | --old | --ol | --o)
972     ac_prev=oldincludedir ;;
973     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
974     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
975     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
976     oldincludedir=$ac_optarg ;;
977    
978     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
979     ac_prev=prefix ;;
980     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
981     prefix=$ac_optarg ;;
982    
983     -program-prefix | --program-prefix | --program-prefi | --program-pref \
984     | --program-pre | --program-pr | --program-p)
985     ac_prev=program_prefix ;;
986     -program-prefix=* | --program-prefix=* | --program-prefi=* \
987     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
988     program_prefix=$ac_optarg ;;
989    
990     -program-suffix | --program-suffix | --program-suffi | --program-suff \
991     | --program-suf | --program-su | --program-s)
992     ac_prev=program_suffix ;;
993     -program-suffix=* | --program-suffix=* | --program-suffi=* \
994     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
995     program_suffix=$ac_optarg ;;
996    
997     -program-transform-name | --program-transform-name \
998     | --program-transform-nam | --program-transform-na \
999     | --program-transform-n | --program-transform- \
1000     | --program-transform | --program-transfor \
1001     | --program-transfo | --program-transf \
1002     | --program-trans | --program-tran \
1003     | --progr-tra | --program-tr | --program-t)
1004     ac_prev=program_transform_name ;;
1005     -program-transform-name=* | --program-transform-name=* \
1006     | --program-transform-nam=* | --program-transform-na=* \
1007     | --program-transform-n=* | --program-transform-=* \
1008     | --program-transform=* | --program-transfor=* \
1009     | --program-transfo=* | --program-transf=* \
1010     | --program-trans=* | --program-tran=* \
1011     | --progr-tra=* | --program-tr=* | --program-t=*)
1012     program_transform_name=$ac_optarg ;;
1013    
1014     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1015     ac_prev=pdfdir ;;
1016     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1017     pdfdir=$ac_optarg ;;
1018    
1019     -psdir | --psdir | --psdi | --psd | --ps)
1020     ac_prev=psdir ;;
1021     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1022     psdir=$ac_optarg ;;
1023    
1024     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1025     | -silent | --silent | --silen | --sile | --sil)
1026     silent=yes ;;
1027    
1028 root 1.3 -runstatedir | --runstatedir | --runstatedi | --runstated \
1029     | --runstate | --runstat | --runsta | --runst | --runs \
1030     | --run | --ru | --r)
1031     ac_prev=runstatedir ;;
1032     -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1033     | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1034     | --run=* | --ru=* | --r=*)
1035     runstatedir=$ac_optarg ;;
1036    
1037 root 1.1 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1038     ac_prev=sbindir ;;
1039     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1040     | --sbi=* | --sb=*)
1041     sbindir=$ac_optarg ;;
1042    
1043     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1044     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1045     | --sharedst | --shareds | --shared | --share | --shar \
1046     | --sha | --sh)
1047     ac_prev=sharedstatedir ;;
1048     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1049     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1050     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1051     | --sha=* | --sh=*)
1052     sharedstatedir=$ac_optarg ;;
1053    
1054     -site | --site | --sit)
1055     ac_prev=site ;;
1056     -site=* | --site=* | --sit=*)
1057     site=$ac_optarg ;;
1058    
1059     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1060     ac_prev=srcdir ;;
1061     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1062     srcdir=$ac_optarg ;;
1063    
1064     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1065     | --syscon | --sysco | --sysc | --sys | --sy)
1066     ac_prev=sysconfdir ;;
1067     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1068     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1069     sysconfdir=$ac_optarg ;;
1070    
1071     -target | --target | --targe | --targ | --tar | --ta | --t)
1072     ac_prev=target_alias ;;
1073     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1074     target_alias=$ac_optarg ;;
1075    
1076     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1077     verbose=yes ;;
1078    
1079     -version | --version | --versio | --versi | --vers | -V)
1080     ac_init_version=: ;;
1081    
1082     -with-* | --with-*)
1083 root 1.3 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1084 root 1.1 # Reject names that are not valid shell variable names.
1085 root 1.3 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086     as_fn_error $? "invalid package name: $ac_useropt"
1087     ac_useropt_orig=$ac_useropt
1088     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089     case $ac_user_opts in
1090     *"
1091     "with_$ac_useropt"
1092     "*) ;;
1093     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1094     ac_unrecognized_sep=', ';;
1095     esac
1096     eval with_$ac_useropt=\$ac_optarg ;;
1097 root 1.1
1098     -without-* | --without-*)
1099 root 1.3 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1100 root 1.1 # Reject names that are not valid shell variable names.
1101 root 1.3 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102     as_fn_error $? "invalid package name: $ac_useropt"
1103     ac_useropt_orig=$ac_useropt
1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105     case $ac_user_opts in
1106     *"
1107     "with_$ac_useropt"
1108     "*) ;;
1109     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1110     ac_unrecognized_sep=', ';;
1111     esac
1112     eval with_$ac_useropt=no ;;
1113 root 1.1
1114     --x)
1115     # Obsolete; use --with-x.
1116     with_x=yes ;;
1117    
1118     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1119     | --x-incl | --x-inc | --x-in | --x-i)
1120     ac_prev=x_includes ;;
1121     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1122     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1123     x_includes=$ac_optarg ;;
1124    
1125     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1126     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1127     ac_prev=x_libraries ;;
1128     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1129     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1130     x_libraries=$ac_optarg ;;
1131    
1132 root 1.3 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1133     Try \`$0 --help' for more information"
1134 root 1.1 ;;
1135    
1136     *=*)
1137     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1138     # Reject names that are not valid shell variable names.
1139 root 1.3 case $ac_envvar in #(
1140     '' | [0-9]* | *[!_$as_cr_alnum]* )
1141     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1142     esac
1143 root 1.1 eval $ac_envvar=\$ac_optarg
1144     export $ac_envvar ;;
1145    
1146     *)
1147     # FIXME: should be removed in autoconf 3.0.
1148 root 1.3 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1149 root 1.1 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1150 root 1.3 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1151     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1152 root 1.1 ;;
1153    
1154     esac
1155     done
1156    
1157     if test -n "$ac_prev"; then
1158     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1159 root 1.3 as_fn_error $? "missing argument to $ac_option"
1160     fi
1161    
1162     if test -n "$ac_unrecognized_opts"; then
1163     case $enable_option_checking in
1164     no) ;;
1165     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1166     *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1167     esac
1168 root 1.1 fi
1169    
1170 root 1.3 # Check all directory arguments for consistency.
1171 root 1.1 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1172     datadir sysconfdir sharedstatedir localstatedir includedir \
1173     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1174 root 1.3 libdir localedir mandir runstatedir
1175 root 1.1 do
1176     eval ac_val=\$$ac_var
1177 root 1.3 # Remove trailing slashes.
1178     case $ac_val in
1179     */ )
1180     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1181     eval $ac_var=\$ac_val;;
1182     esac
1183     # Be sure to have absolute directory names.
1184 root 1.1 case $ac_val in
1185     [\\/$]* | ?:[\\/]* ) continue;;
1186     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1187     esac
1188 root 1.3 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1189 root 1.1 done
1190    
1191     # There might be people who depend on the old broken behavior: `$host'
1192     # used to hold the argument of --host etc.
1193     # FIXME: To remove some day.
1194     build=$build_alias
1195     host=$host_alias
1196     target=$target_alias
1197    
1198     # FIXME: To remove some day.
1199     if test "x$host_alias" != x; then
1200     if test "x$build_alias" = x; then
1201     cross_compiling=maybe
1202     elif test "x$build_alias" != "x$host_alias"; then
1203     cross_compiling=yes
1204     fi
1205     fi
1206    
1207     ac_tool_prefix=
1208     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209    
1210     test "$silent" = yes && exec 6>/dev/null
1211    
1212    
1213     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214     ac_ls_di=`ls -di .` &&
1215     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 root 1.3 as_fn_error $? "working directory cannot be determined"
1217 root 1.1 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 root 1.3 as_fn_error $? "pwd does not report name of working directory"
1219 root 1.1
1220    
1221     # Find the source files, if location was not specified.
1222     if test -z "$srcdir"; then
1223     ac_srcdir_defaulted=yes
1224     # Try the directory containing this script, then the parent directory.
1225 root 1.3 ac_confdir=`$as_dirname -- "$as_myself" ||
1226     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1227     X"$as_myself" : 'X\(//\)[^/]' \| \
1228     X"$as_myself" : 'X\(//\)$' \| \
1229     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1230     $as_echo X"$as_myself" |
1231 root 1.1 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1232     s//\1/
1233     q
1234     }
1235     /^X\(\/\/\)[^/].*/{
1236     s//\1/
1237     q
1238     }
1239     /^X\(\/\/\)$/{
1240     s//\1/
1241     q
1242     }
1243     /^X\(\/\).*/{
1244     s//\1/
1245     q
1246     }
1247     s/.*/./; q'`
1248     srcdir=$ac_confdir
1249     if test ! -r "$srcdir/$ac_unique_file"; then
1250     srcdir=..
1251     fi
1252     else
1253     ac_srcdir_defaulted=no
1254     fi
1255     if test ! -r "$srcdir/$ac_unique_file"; then
1256     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1257 root 1.3 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1258 root 1.1 fi
1259     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260     ac_abs_confdir=`(
1261 root 1.3 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1262 root 1.1 pwd)`
1263     # When building in place, set srcdir=.
1264     if test "$ac_abs_confdir" = "$ac_pwd"; then
1265     srcdir=.
1266     fi
1267     # Remove unnecessary trailing slashes from srcdir.
1268     # Double slashes in file names in object file debugging info
1269     # mess up M-x gdb in Emacs.
1270     case $srcdir in
1271     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1272     esac
1273     for ac_var in $ac_precious_vars; do
1274     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1275     eval ac_env_${ac_var}_value=\$${ac_var}
1276     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1277     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1278     done
1279    
1280     #
1281     # Report the --help message.
1282     #
1283     if test "$ac_init_help" = "long"; then
1284     # Omit some internal or obsolete options to make the list less imposing.
1285     # This message is too long to be a string in the A/UX 3.1 sh.
1286     cat <<_ACEOF
1287     \`configure' configures this package to adapt to many kinds of systems.
1288    
1289     Usage: $0 [OPTION]... [VAR=VALUE]...
1290    
1291     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1292     VAR=VALUE. See below for descriptions of some of the useful variables.
1293    
1294     Defaults for the options are specified in brackets.
1295    
1296     Configuration:
1297     -h, --help display this help and exit
1298     --help=short display options specific to this package
1299     --help=recursive display the short help of all the included packages
1300     -V, --version display version information and exit
1301 root 1.3 -q, --quiet, --silent do not print \`checking ...' messages
1302 root 1.1 --cache-file=FILE cache test results in FILE [disabled]
1303     -C, --config-cache alias for \`--cache-file=config.cache'
1304     -n, --no-create do not create output files
1305     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1306    
1307     Installation directories:
1308     --prefix=PREFIX install architecture-independent files in PREFIX
1309 root 1.3 [$ac_default_prefix]
1310 root 1.1 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1311 root 1.3 [PREFIX]
1312 root 1.1
1313     By default, \`make install' will install all the files in
1314     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1315     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1316     for instance \`--prefix=\$HOME'.
1317    
1318     For better control, use the options below.
1319    
1320     Fine tuning of the installation directories:
1321 root 1.3 --bindir=DIR user executables [EPREFIX/bin]
1322     --sbindir=DIR system admin executables [EPREFIX/sbin]
1323     --libexecdir=DIR program executables [EPREFIX/libexec]
1324     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1325     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1326     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1327     --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1328     --libdir=DIR object code libraries [EPREFIX/lib]
1329     --includedir=DIR C header files [PREFIX/include]
1330     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333     --infodir=DIR info documentation [DATAROOTDIR/info]
1334     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335     --mandir=DIR man documentation [DATAROOTDIR/man]
1336     --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337     --htmldir=DIR html documentation [DOCDIR]
1338     --dvidir=DIR dvi documentation [DOCDIR]
1339     --pdfdir=DIR pdf documentation [DOCDIR]
1340     --psdir=DIR ps documentation [DOCDIR]
1341 root 1.1 _ACEOF
1342    
1343     cat <<\_ACEOF
1344    
1345     Program names:
1346     --program-prefix=PREFIX prepend PREFIX to installed program names
1347     --program-suffix=SUFFIX append SUFFIX to installed program names
1348     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1349    
1350     X features:
1351     --x-includes=DIR X include files are in DIR
1352     --x-libraries=DIR X library files are in DIR
1353     _ACEOF
1354     fi
1355    
1356     if test -n "$ac_init_help"; then
1357    
1358     cat <<\_ACEOF
1359    
1360     Optional Features:
1361 root 1.3 --disable-option-checking ignore unrecognized --enable/--with options
1362 root 1.1 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1363     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1364 root 1.2 --disable-dependency-tracking speeds up one-time build
1365     --enable-dependency-tracking do not reject slow dependency extractors
1366 root 1.1
1367     Optional Packages:
1368     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1369     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1370     --with-x use the X Window System
1371    
1372     Some influential environment variables:
1373     CC C compiler command
1374     CFLAGS C compiler flags
1375     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1376     nonstandard directory <lib dir>
1377     LIBS libraries to pass to the linker, e.g. -l<library>
1378 root 1.3 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1379 root 1.1 you have headers in a nonstandard directory <include dir>
1380     CPP C preprocessor
1381     CXX C++ compiler command
1382     CXXFLAGS C++ compiler flags
1383 root 1.3 CXXCPP C++ preprocessor
1384     XMKMF Path to xmkmf, Makefile generator for X Window System
1385    
1386     Use these variables to override the choices made by `configure' or to help
1387     it to find libraries and programs with nonstandard names/locations.
1388    
1389     Report bugs to the package provider.
1390     _ACEOF
1391     ac_status=$?
1392     fi
1393    
1394     if test "$ac_init_help" = "recursive"; then
1395     # If there are subdirs, report their specific --help.
1396     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1397     test -d "$ac_dir" ||
1398     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1399     continue
1400     ac_builddir=.
1401    
1402     case "$ac_dir" in
1403     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1404     *)
1405     ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1406     # A ".." for each directory in $ac_dir_suffix.
1407     ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1408     case $ac_top_builddir_sub in
1409     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1411     esac ;;
1412     esac
1413     ac_abs_top_builddir=$ac_pwd
1414     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415     # for backward compatibility:
1416     ac_top_builddir=$ac_top_build_prefix
1417    
1418     case $srcdir in
1419     .) # We are building in place.
1420     ac_srcdir=.
1421     ac_top_srcdir=$ac_top_builddir_sub
1422     ac_abs_top_srcdir=$ac_pwd ;;
1423     [\\/]* | ?:[\\/]* ) # Absolute name.
1424     ac_srcdir=$srcdir$ac_dir_suffix;
1425     ac_top_srcdir=$srcdir
1426     ac_abs_top_srcdir=$srcdir ;;
1427     *) # Relative name.
1428     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429     ac_top_srcdir=$ac_top_build_prefix$srcdir
1430     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1431     esac
1432     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1433    
1434     cd "$ac_dir" || { ac_status=$?; continue; }
1435     # Check for guested configure.
1436     if test -f "$ac_srcdir/configure.gnu"; then
1437     echo &&
1438     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439     elif test -f "$ac_srcdir/configure"; then
1440     echo &&
1441     $SHELL "$ac_srcdir/configure" --help=recursive
1442     else
1443     $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1444     fi || ac_status=$?
1445     cd "$ac_pwd" || { ac_status=$?; break; }
1446     done
1447     fi
1448    
1449     test -n "$ac_init_help" && exit $ac_status
1450     if $ac_init_version; then
1451     cat <<\_ACEOF
1452     configure
1453     generated by GNU Autoconf 2.69
1454    
1455     Copyright (C) 2012 Free Software Foundation, Inc.
1456     This configure script is free software; the Free Software Foundation
1457     gives unlimited permission to copy, distribute and modify it.
1458     _ACEOF
1459     exit
1460     fi
1461    
1462     ## ------------------------ ##
1463     ## Autoconf initialization. ##
1464     ## ------------------------ ##
1465    
1466     # ac_fn_c_try_compile LINENO
1467     # --------------------------
1468     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1469     ac_fn_c_try_compile ()
1470     {
1471     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472     rm -f conftest.$ac_objext
1473     if { { ac_try="$ac_compile"
1474     case "(($ac_try" in
1475     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476     *) ac_try_echo=$ac_try;;
1477     esac
1478     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479     $as_echo "$ac_try_echo"; } >&5
1480     (eval "$ac_compile") 2>conftest.err
1481     ac_status=$?
1482     if test -s conftest.err; then
1483     grep -v '^ *+' conftest.err >conftest.er1
1484     cat conftest.er1 >&5
1485     mv -f conftest.er1 conftest.err
1486     fi
1487     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1488     test $ac_status = 0; } && {
1489     test -z "$ac_c_werror_flag" ||
1490     test ! -s conftest.err
1491     } && test -s conftest.$ac_objext; then :
1492     ac_retval=0
1493     else
1494     $as_echo "$as_me: failed program was:" >&5
1495     sed 's/^/| /' conftest.$ac_ext >&5
1496    
1497     ac_retval=1
1498     fi
1499     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1500     as_fn_set_status $ac_retval
1501    
1502     } # ac_fn_c_try_compile
1503    
1504     # ac_fn_c_try_cpp LINENO
1505     # ----------------------
1506     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1507     ac_fn_c_try_cpp ()
1508     {
1509     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1510     if { { ac_try="$ac_cpp conftest.$ac_ext"
1511     case "(($ac_try" in
1512     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1513     *) ac_try_echo=$ac_try;;
1514     esac
1515     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1516     $as_echo "$ac_try_echo"; } >&5
1517     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1518     ac_status=$?
1519     if test -s conftest.err; then
1520     grep -v '^ *+' conftest.err >conftest.er1
1521     cat conftest.er1 >&5
1522     mv -f conftest.er1 conftest.err
1523     fi
1524     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1525     test $ac_status = 0; } > conftest.i && {
1526     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1527     test ! -s conftest.err
1528     }; then :
1529     ac_retval=0
1530     else
1531     $as_echo "$as_me: failed program was:" >&5
1532     sed 's/^/| /' conftest.$ac_ext >&5
1533    
1534     ac_retval=1
1535     fi
1536     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1537     as_fn_set_status $ac_retval
1538    
1539     } # ac_fn_c_try_cpp
1540    
1541     # ac_fn_c_try_run LINENO
1542     # ----------------------
1543     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1544     # that executables *can* be run.
1545     ac_fn_c_try_run ()
1546     {
1547     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548     if { { ac_try="$ac_link"
1549     case "(($ac_try" in
1550     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1551     *) ac_try_echo=$ac_try;;
1552     esac
1553     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1554     $as_echo "$ac_try_echo"; } >&5
1555     (eval "$ac_link") 2>&5
1556     ac_status=$?
1557     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1559     { { case "(($ac_try" in
1560     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561     *) ac_try_echo=$ac_try;;
1562     esac
1563     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564     $as_echo "$ac_try_echo"; } >&5
1565     (eval "$ac_try") 2>&5
1566     ac_status=$?
1567     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1568     test $ac_status = 0; }; }; then :
1569     ac_retval=0
1570     else
1571     $as_echo "$as_me: program exited with status $ac_status" >&5
1572     $as_echo "$as_me: failed program was:" >&5
1573     sed 's/^/| /' conftest.$ac_ext >&5
1574    
1575     ac_retval=$ac_status
1576     fi
1577     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1578     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579     as_fn_set_status $ac_retval
1580    
1581     } # ac_fn_c_try_run
1582    
1583     # ac_fn_cxx_try_compile LINENO
1584     # ----------------------------
1585     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1586     ac_fn_cxx_try_compile ()
1587     {
1588     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589     rm -f conftest.$ac_objext
1590     if { { ac_try="$ac_compile"
1591     case "(($ac_try" in
1592     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1593     *) ac_try_echo=$ac_try;;
1594     esac
1595     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1596     $as_echo "$ac_try_echo"; } >&5
1597     (eval "$ac_compile") 2>conftest.err
1598     ac_status=$?
1599     if test -s conftest.err; then
1600     grep -v '^ *+' conftest.err >conftest.er1
1601     cat conftest.er1 >&5
1602     mv -f conftest.er1 conftest.err
1603     fi
1604     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1605     test $ac_status = 0; } && {
1606     test -z "$ac_cxx_werror_flag" ||
1607     test ! -s conftest.err
1608     } && test -s conftest.$ac_objext; then :
1609     ac_retval=0
1610     else
1611     $as_echo "$as_me: failed program was:" >&5
1612     sed 's/^/| /' conftest.$ac_ext >&5
1613    
1614     ac_retval=1
1615     fi
1616     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1617     as_fn_set_status $ac_retval
1618    
1619     } # ac_fn_cxx_try_compile
1620    
1621     # ac_fn_cxx_try_cpp LINENO
1622     # ------------------------
1623     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1624     ac_fn_cxx_try_cpp ()
1625     {
1626     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627     if { { ac_try="$ac_cpp conftest.$ac_ext"
1628     case "(($ac_try" in
1629     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630     *) ac_try_echo=$ac_try;;
1631     esac
1632     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633     $as_echo "$ac_try_echo"; } >&5
1634     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635     ac_status=$?
1636     if test -s conftest.err; then
1637     grep -v '^ *+' conftest.err >conftest.er1
1638     cat conftest.er1 >&5
1639     mv -f conftest.er1 conftest.err
1640     fi
1641     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642     test $ac_status = 0; } > conftest.i && {
1643     test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1644     test ! -s conftest.err
1645     }; then :
1646     ac_retval=0
1647     else
1648     $as_echo "$as_me: failed program was:" >&5
1649     sed 's/^/| /' conftest.$ac_ext >&5
1650    
1651     ac_retval=1
1652     fi
1653     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654     as_fn_set_status $ac_retval
1655 root 1.1
1656 root 1.3 } # ac_fn_cxx_try_cpp
1657 root 1.1
1658 root 1.3 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1659     # ---------------------------------------------------------
1660     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1661     # the include files in INCLUDES and setting the cache variable VAR
1662     # accordingly.
1663     ac_fn_cxx_check_header_mongrel ()
1664     {
1665     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666     if eval \${$3+:} false; then :
1667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668     $as_echo_n "checking for $2... " >&6; }
1669     if eval \${$3+:} false; then :
1670     $as_echo_n "(cached) " >&6
1671     fi
1672     eval ac_res=\$$3
1673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674     $as_echo "$ac_res" >&6; }
1675     else
1676     # Is the header compilable?
1677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1678     $as_echo_n "checking $2 usability... " >&6; }
1679     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680     /* end confdefs.h. */
1681     $4
1682     #include <$2>
1683 root 1.1 _ACEOF
1684 root 1.3 if ac_fn_cxx_try_compile "$LINENO"; then :
1685     ac_header_compiler=yes
1686     else
1687     ac_header_compiler=no
1688 root 1.1 fi
1689 root 1.3 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1690     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1691     $as_echo "$ac_header_compiler" >&6; }
1692 root 1.1
1693 root 1.3 # Is the header present?
1694     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1695     $as_echo_n "checking $2 presence... " >&6; }
1696     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697     /* end confdefs.h. */
1698     #include <$2>
1699     _ACEOF
1700     if ac_fn_cxx_try_cpp "$LINENO"; then :
1701     ac_header_preproc=yes
1702     else
1703     ac_header_preproc=no
1704     fi
1705     rm -f conftest.err conftest.i conftest.$ac_ext
1706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1707     $as_echo "$ac_header_preproc" >&6; }
1708 root 1.1
1709 root 1.3 # So? What about this header?
1710     case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1711     yes:no: )
1712     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1713     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1714     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1715     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1716     ;;
1717     no:yes:* )
1718     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1719     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1720     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1721     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1722     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1723     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1724     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1725     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1726     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1728     ;;
1729 root 1.1 esac
1730 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731     $as_echo_n "checking for $2... " >&6; }
1732     if eval \${$3+:} false; then :
1733     $as_echo_n "(cached) " >&6
1734     else
1735     eval "$3=\$ac_header_compiler"
1736     fi
1737     eval ac_res=\$$3
1738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1739     $as_echo "$ac_res" >&6; }
1740     fi
1741     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742    
1743     } # ac_fn_cxx_check_header_mongrel
1744    
1745     # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1746     # ---------------------------------------------------------
1747     # Tests whether HEADER exists and can be compiled using the include files in
1748     # INCLUDES, setting the cache variable VAR accordingly.
1749     ac_fn_cxx_check_header_compile ()
1750     {
1751     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753     $as_echo_n "checking for $2... " >&6; }
1754     if eval \${$3+:} false; then :
1755     $as_echo_n "(cached) " >&6
1756     else
1757     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758     /* end confdefs.h. */
1759     $4
1760     #include <$2>
1761     _ACEOF
1762     if ac_fn_cxx_try_compile "$LINENO"; then :
1763     eval "$3=yes"
1764     else
1765     eval "$3=no"
1766     fi
1767     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768     fi
1769     eval ac_res=\$$3
1770     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771     $as_echo "$ac_res" >&6; }
1772     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773    
1774     } # ac_fn_cxx_check_header_compile
1775    
1776     # ac_fn_cxx_try_link LINENO
1777     # -------------------------
1778     # Try to link conftest.$ac_ext, and return whether this succeeded.
1779     ac_fn_cxx_try_link ()
1780     {
1781     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782     rm -f conftest.$ac_objext conftest$ac_exeext
1783     if { { ac_try="$ac_link"
1784     case "(($ac_try" in
1785     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786     *) ac_try_echo=$ac_try;;
1787 root 1.1 esac
1788 root 1.3 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789     $as_echo "$ac_try_echo"; } >&5
1790     (eval "$ac_link") 2>conftest.err
1791     ac_status=$?
1792     if test -s conftest.err; then
1793     grep -v '^ *+' conftest.err >conftest.er1
1794     cat conftest.er1 >&5
1795     mv -f conftest.er1 conftest.err
1796     fi
1797     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798     test $ac_status = 0; } && {
1799     test -z "$ac_cxx_werror_flag" ||
1800     test ! -s conftest.err
1801     } && test -s conftest$ac_exeext && {
1802     test "$cross_compiling" = yes ||
1803     test -x conftest$ac_exeext
1804     }; then :
1805     ac_retval=0
1806     else
1807     $as_echo "$as_me: failed program was:" >&5
1808     sed 's/^/| /' conftest.$ac_ext >&5
1809 root 1.1
1810 root 1.3 ac_retval=1
1811 root 1.1 fi
1812 root 1.3 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1813     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1814     # interfere with the next link command; also delete a directory that is
1815     # left behind by Apple's compiler. We do this before executing the actions.
1816     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1818     as_fn_set_status $ac_retval
1819    
1820     } # ac_fn_cxx_try_link
1821    
1822     # ac_fn_cxx_check_func LINENO FUNC VAR
1823     # ------------------------------------
1824     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1825     ac_fn_cxx_check_func ()
1826     {
1827     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829     $as_echo_n "checking for $2... " >&6; }
1830     if eval \${$3+:} false; then :
1831     $as_echo_n "(cached) " >&6
1832     else
1833     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834     /* end confdefs.h. */
1835     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1837     #define $2 innocuous_$2
1838    
1839     /* System header to define __stub macros and hopefully few prototypes,
1840     which can conflict with char $2 (); below.
1841     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1842     <limits.h> exists even on freestanding compilers. */
1843    
1844     #ifdef __STDC__
1845     # include <limits.h>
1846     #else
1847     # include <assert.h>
1848     #endif
1849    
1850     #undef $2
1851 root 1.1
1852 root 1.3 /* Override any GCC internal prototype to avoid an error.
1853     Use char because int might match the return type of a GCC
1854     builtin and then its argument prototype would still apply. */
1855     #ifdef __cplusplus
1856     extern "C"
1857     #endif
1858     char $2 ();
1859     /* The GNU C library defines this for functions which it implements
1860     to always fail with ENOSYS. Some functions are actually named
1861     something starting with __ and the normal name is an alias. */
1862     #if defined __stub_$2 || defined __stub___$2
1863     choke me
1864     #endif
1865 root 1.1
1866 root 1.3 int
1867     main ()
1868     {
1869     return $2 ();
1870     ;
1871     return 0;
1872     }
1873 root 1.1 _ACEOF
1874 root 1.3 if ac_fn_cxx_try_link "$LINENO"; then :
1875     eval "$3=yes"
1876     else
1877     eval "$3=no"
1878     fi
1879     rm -f core conftest.err conftest.$ac_objext \
1880     conftest$ac_exeext conftest.$ac_ext
1881 root 1.1 fi
1882 root 1.3 eval ac_res=\$$3
1883     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884     $as_echo "$ac_res" >&6; }
1885     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1886    
1887     } # ac_fn_cxx_check_func
1888 root 1.1 cat >config.log <<_ACEOF
1889     This file contains any messages produced by compilers while
1890     running configure, to aid debugging if configure makes a mistake.
1891    
1892     It was created by $as_me, which was
1893 root 1.3 generated by GNU Autoconf 2.69. Invocation command line was
1894 root 1.1
1895     $ $0 $@
1896    
1897     _ACEOF
1898     exec 5>>config.log
1899     {
1900     cat <<_ASUNAME
1901     ## --------- ##
1902     ## Platform. ##
1903     ## --------- ##
1904    
1905     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1906     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1907     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1908     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1909     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1910    
1911     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1912     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1913    
1914     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1915     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1916     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1917     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1918     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1919     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1920     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1921    
1922     _ASUNAME
1923    
1924     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1925     for as_dir in $PATH
1926     do
1927     IFS=$as_save_IFS
1928     test -z "$as_dir" && as_dir=.
1929 root 1.3 $as_echo "PATH: $as_dir"
1930     done
1931 root 1.1 IFS=$as_save_IFS
1932    
1933     } >&5
1934    
1935     cat >&5 <<_ACEOF
1936    
1937    
1938     ## ----------- ##
1939     ## Core tests. ##
1940     ## ----------- ##
1941    
1942     _ACEOF
1943    
1944    
1945     # Keep a trace of the command line.
1946     # Strip out --no-create and --no-recursion so they do not pile up.
1947     # Strip out --silent because we don't want to record it for future runs.
1948     # Also quote any args containing shell meta-characters.
1949     # Make two passes to allow for proper duplicate-argument suppression.
1950     ac_configure_args=
1951     ac_configure_args0=
1952     ac_configure_args1=
1953     ac_must_keep_next=false
1954     for ac_pass in 1 2
1955     do
1956     for ac_arg
1957     do
1958     case $ac_arg in
1959     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1960     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1961     | -silent | --silent | --silen | --sile | --sil)
1962     continue ;;
1963     *\'*)
1964 root 1.3 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1965 root 1.1 esac
1966     case $ac_pass in
1967 root 1.3 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1968 root 1.1 2)
1969 root 1.3 as_fn_append ac_configure_args1 " '$ac_arg'"
1970 root 1.1 if test $ac_must_keep_next = true; then
1971     ac_must_keep_next=false # Got value, back to normal.
1972     else
1973     case $ac_arg in
1974     *=* | --config-cache | -C | -disable-* | --disable-* \
1975     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1976     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1977     | -with-* | --with-* | -without-* | --without-* | --x)
1978     case "$ac_configure_args0 " in
1979     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1980     esac
1981     ;;
1982     -* ) ac_must_keep_next=true ;;
1983     esac
1984     fi
1985 root 1.3 as_fn_append ac_configure_args " '$ac_arg'"
1986 root 1.1 ;;
1987     esac
1988     done
1989     done
1990 root 1.3 { ac_configure_args0=; unset ac_configure_args0;}
1991     { ac_configure_args1=; unset ac_configure_args1;}
1992 root 1.1
1993     # When interrupted or exit'd, cleanup temporary files, and complete
1994     # config.log. We remove comments because anyway the quotes in there
1995     # would cause problems or look ugly.
1996     # WARNING: Use '\'' to represent an apostrophe within the trap.
1997     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1998     trap 'exit_status=$?
1999     # Save into config.log some information that might help in debugging.
2000     {
2001     echo
2002    
2003 root 1.3 $as_echo "## ---------------- ##
2004 root 1.1 ## Cache variables. ##
2005 root 1.3 ## ---------------- ##"
2006 root 1.1 echo
2007     # The following way of writing the cache mishandles newlines in values,
2008     (
2009     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010     eval ac_val=\$$ac_var
2011     case $ac_val in #(
2012     *${as_nl}*)
2013     case $ac_var in #(
2014 root 1.3 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2016 root 1.1 esac
2017     case $ac_var in #(
2018     _ | IFS | as_nl) ;; #(
2019 root 1.3 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020     *) { eval $ac_var=; unset $ac_var;} ;;
2021 root 1.1 esac ;;
2022     esac
2023     done
2024     (set) 2>&1 |
2025     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026     *${as_nl}ac_space=\ *)
2027     sed -n \
2028     "s/'\''/'\''\\\\'\'''\''/g;
2029     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2030     ;; #(
2031     *)
2032     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033     ;;
2034     esac |
2035     sort
2036     )
2037     echo
2038    
2039 root 1.3 $as_echo "## ----------------- ##
2040 root 1.1 ## Output variables. ##
2041 root 1.3 ## ----------------- ##"
2042 root 1.1 echo
2043     for ac_var in $ac_subst_vars
2044     do
2045     eval ac_val=\$$ac_var
2046     case $ac_val in
2047 root 1.3 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048 root 1.1 esac
2049 root 1.3 $as_echo "$ac_var='\''$ac_val'\''"
2050 root 1.1 done | sort
2051     echo
2052    
2053     if test -n "$ac_subst_files"; then
2054 root 1.3 $as_echo "## ------------------- ##
2055 root 1.1 ## File substitutions. ##
2056 root 1.3 ## ------------------- ##"
2057 root 1.1 echo
2058     for ac_var in $ac_subst_files
2059     do
2060     eval ac_val=\$$ac_var
2061     case $ac_val in
2062 root 1.3 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063 root 1.1 esac
2064 root 1.3 $as_echo "$ac_var='\''$ac_val'\''"
2065 root 1.1 done | sort
2066     echo
2067     fi
2068    
2069     if test -s confdefs.h; then
2070 root 1.3 $as_echo "## ----------- ##
2071 root 1.1 ## confdefs.h. ##
2072 root 1.3 ## ----------- ##"
2073 root 1.1 echo
2074     cat confdefs.h
2075     echo
2076     fi
2077     test "$ac_signal" != 0 &&
2078 root 1.3 $as_echo "$as_me: caught signal $ac_signal"
2079     $as_echo "$as_me: exit $exit_status"
2080 root 1.1 } >&5
2081     rm -f core *.core core.conftest.* &&
2082     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2083     exit $exit_status
2084     ' 0
2085     for ac_signal in 1 2 13 15; do
2086 root 1.3 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2087 root 1.1 done
2088     ac_signal=0
2089    
2090     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2091     rm -f -r conftest* confdefs.h
2092    
2093 root 1.3 $as_echo "/* confdefs.h */" > confdefs.h
2094    
2095 root 1.1 # Predefined preprocessor variables.
2096    
2097     cat >>confdefs.h <<_ACEOF
2098     #define PACKAGE_NAME "$PACKAGE_NAME"
2099     _ACEOF
2100    
2101     cat >>confdefs.h <<_ACEOF
2102     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2103     _ACEOF
2104    
2105     cat >>confdefs.h <<_ACEOF
2106     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2107     _ACEOF
2108    
2109     cat >>confdefs.h <<_ACEOF
2110     #define PACKAGE_STRING "$PACKAGE_STRING"
2111     _ACEOF
2112    
2113 root 1.3 cat >>confdefs.h <<_ACEOF
2114     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2115     _ACEOF
2116 root 1.1
2117     cat >>confdefs.h <<_ACEOF
2118 root 1.3 #define PACKAGE_URL "$PACKAGE_URL"
2119 root 1.1 _ACEOF
2120    
2121    
2122     # Let the site file select an alternate cache file if it wants to.
2123 root 1.3 # Prefer an explicitly selected file to automatically selected ones.
2124     ac_site_file1=NONE
2125     ac_site_file2=NONE
2126 root 1.1 if test -n "$CONFIG_SITE"; then
2127 root 1.3 # We do not want a PATH search for config.site.
2128     case $CONFIG_SITE in #((
2129     -*) ac_site_file1=./$CONFIG_SITE;;
2130     */*) ac_site_file1=$CONFIG_SITE;;
2131     *) ac_site_file1=./$CONFIG_SITE;;
2132     esac
2133 root 1.1 elif test "x$prefix" != xNONE; then
2134 root 1.3 ac_site_file1=$prefix/share/config.site
2135     ac_site_file2=$prefix/etc/config.site
2136 root 1.1 else
2137 root 1.3 ac_site_file1=$ac_default_prefix/share/config.site
2138     ac_site_file2=$ac_default_prefix/etc/config.site
2139 root 1.1 fi
2140 root 1.3 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2141 root 1.1 do
2142 root 1.3 test "x$ac_site_file" = xNONE && continue
2143     if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2144     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2145     $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2146 root 1.1 sed 's/^/| /' "$ac_site_file" >&5
2147 root 1.3 . "$ac_site_file" \
2148     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2149     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2150     as_fn_error $? "failed to load site script $ac_site_file
2151     See \`config.log' for more details" "$LINENO" 5; }
2152 root 1.1 fi
2153     done
2154    
2155     if test -r "$cache_file"; then
2156 root 1.3 # Some versions of bash will fail to source /dev/null (special files
2157     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2158     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2160     $as_echo "$as_me: loading cache $cache_file" >&6;}
2161 root 1.1 case $cache_file in
2162     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2163     *) . "./$cache_file";;
2164     esac
2165     fi
2166     else
2167 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2168     $as_echo "$as_me: creating cache $cache_file" >&6;}
2169 root 1.1 >$cache_file
2170     fi
2171    
2172     # Check that the precious variables saved in the cache have kept the same
2173     # value.
2174     ac_cache_corrupted=false
2175     for ac_var in $ac_precious_vars; do
2176     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2177     eval ac_new_set=\$ac_env_${ac_var}_set
2178     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2179     eval ac_new_val=\$ac_env_${ac_var}_value
2180     case $ac_old_set,$ac_new_set in
2181     set,)
2182 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2183     $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2184 root 1.1 ac_cache_corrupted=: ;;
2185     ,set)
2186 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2187     $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2188 root 1.1 ac_cache_corrupted=: ;;
2189     ,);;
2190     *)
2191     if test "x$ac_old_val" != "x$ac_new_val"; then
2192 root 1.3 # differences in whitespace do not lead to failure.
2193     ac_old_val_w=`echo x $ac_old_val`
2194     ac_new_val_w=`echo x $ac_new_val`
2195     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2196     { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2197     $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2198     ac_cache_corrupted=:
2199     else
2200     { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2201     $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2202     eval $ac_var=\$ac_old_val
2203     fi
2204     { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2205     $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2206     { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2207     $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2208 root 1.1 fi;;
2209     esac
2210     # Pass precious variables to config.status.
2211     if test "$ac_new_set" = set; then
2212     case $ac_new_val in
2213 root 1.3 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2214 root 1.1 *) ac_arg=$ac_var=$ac_new_val ;;
2215     esac
2216     case " $ac_configure_args " in
2217     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2218 root 1.3 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2219 root 1.1 esac
2220     fi
2221     done
2222     if $ac_cache_corrupted; then
2223 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2224     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2225     { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2226     $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2227     as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2228     fi
2229     ## -------------------- ##
2230     ## Main body of script. ##
2231     ## -------------------- ##
2232 root 1.1
2233     ac_ext=c
2234     ac_cpp='$CPP $CPPFLAGS'
2235     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2236     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2237     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2238    
2239    
2240    
2241 root 1.2 am__api_version='1.10'
2242    
2243 root 1.1 ac_aux_dir=
2244     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2245     if test -f "$ac_dir/install-sh"; then
2246     ac_aux_dir=$ac_dir
2247     ac_install_sh="$ac_aux_dir/install-sh -c"
2248     break
2249     elif test -f "$ac_dir/install.sh"; then
2250     ac_aux_dir=$ac_dir
2251     ac_install_sh="$ac_aux_dir/install.sh -c"
2252     break
2253     elif test -f "$ac_dir/shtool"; then
2254     ac_aux_dir=$ac_dir
2255     ac_install_sh="$ac_aux_dir/shtool install -c"
2256     break
2257     fi
2258     done
2259     if test -z "$ac_aux_dir"; then
2260 root 1.3 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2261 root 1.1 fi
2262    
2263     # These three variables are undocumented and unsupported,
2264     # and are intended to be withdrawn in a future Autoconf release.
2265     # They can cause serious problems if a builder's source tree is in a directory
2266     # whose full name contains unusual characters.
2267     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2268     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2269     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2270    
2271    
2272     # Find a good install program. We prefer a C program (faster),
2273     # so one script is as good as another. But avoid the broken or
2274     # incompatible versions:
2275     # SysV /etc/install, /usr/sbin/install
2276     # SunOS /usr/etc/install
2277     # IRIX /sbin/install
2278     # AIX /bin/install
2279     # AmigaOS /C/install, which installs bootblocks on floppy discs
2280     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2281     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2282     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2283     # OS/2's system install, which has a completely different semantic
2284     # ./install, which can be erroneously created by make from ./install.sh.
2285 root 1.3 # Reject install programs that cannot install multiple files.
2286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2287     $as_echo_n "checking for a BSD-compatible install... " >&6; }
2288 root 1.1 if test -z "$INSTALL"; then
2289 root 1.3 if ${ac_cv_path_install+:} false; then :
2290     $as_echo_n "(cached) " >&6
2291 root 1.1 else
2292     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293     for as_dir in $PATH
2294     do
2295     IFS=$as_save_IFS
2296     test -z "$as_dir" && as_dir=.
2297 root 1.3 # Account for people who put trailing slashes in PATH elements.
2298     case $as_dir/ in #((
2299     ./ | .// | /[cC]/* | \
2300 root 1.1 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2301 root 1.3 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2302 root 1.1 /usr/ucb/* ) ;;
2303     *)
2304     # OSF1 and SCO ODT 3.0 have their own names for install.
2305     # Don't use installbsd from OSF since it installs stuff as root
2306     # by default.
2307     for ac_prog in ginstall scoinst install; do
2308     for ac_exec_ext in '' $ac_executable_extensions; do
2309 root 1.3 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2310 root 1.1 if test $ac_prog = install &&
2311     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2312     # AIX install. It has an incompatible calling convention.
2313     :
2314     elif test $ac_prog = install &&
2315     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2316     # program-specific install script used by HP pwplus--don't use.
2317     :
2318     else
2319 root 1.3 rm -rf conftest.one conftest.two conftest.dir
2320     echo one > conftest.one
2321     echo two > conftest.two
2322     mkdir conftest.dir
2323     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2324     test -s conftest.one && test -s conftest.two &&
2325     test -s conftest.dir/conftest.one &&
2326     test -s conftest.dir/conftest.two
2327     then
2328     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2329     break 3
2330     fi
2331 root 1.1 fi
2332     fi
2333     done
2334     done
2335     ;;
2336     esac
2337 root 1.3
2338     done
2339 root 1.1 IFS=$as_save_IFS
2340    
2341 root 1.3 rm -rf conftest.one conftest.two conftest.dir
2342 root 1.1
2343     fi
2344     if test "${ac_cv_path_install+set}" = set; then
2345     INSTALL=$ac_cv_path_install
2346     else
2347     # As a last resort, use the slow shell script. Don't cache a
2348     # value for INSTALL within a source directory, because that will
2349     # break other packages using the cache if that directory is
2350     # removed, or if the value is a relative name.
2351     INSTALL=$ac_install_sh
2352     fi
2353     fi
2354 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2355     $as_echo "$INSTALL" >&6; }
2356 root 1.1
2357     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2358     # It thinks the first close brace ends the variable substitution.
2359     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2360    
2361     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2362    
2363     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2364    
2365 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2366     $as_echo_n "checking whether build environment is sane... " >&6; }
2367 root 1.1 # Just in case
2368     sleep 1
2369     echo timestamp > conftest.file
2370     # Do `set' in a subshell so we don't clobber the current shell's
2371     # arguments. Must try -L first in case configure is actually a
2372     # symlink; some systems play weird games with the mod time of symlinks
2373     # (eg FreeBSD returns the mod time of the symlink's containing
2374     # directory).
2375     if (
2376     set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2377     if test "$*" = "X"; then
2378     # -L didn't work.
2379     set X `ls -t $srcdir/configure conftest.file`
2380     fi
2381     rm -f conftest.file
2382     if test "$*" != "X $srcdir/configure conftest.file" \
2383     && test "$*" != "X conftest.file $srcdir/configure"; then
2384    
2385     # If neither matched, then we have a broken ls. This can happen
2386     # if, for instance, CONFIG_SHELL is bash and it inherits a
2387     # broken ls alias from the environment. This has actually
2388     # happened. Such a system could not be considered "sane".
2389 root 1.3 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2390     alias in your environment" "$LINENO" 5
2391 root 1.1 fi
2392    
2393     test "$2" = conftest.file
2394     )
2395     then
2396     # Ok.
2397     :
2398     else
2399 root 1.3 as_fn_error $? "newly created file is older than distributed files!
2400     Check your system clock" "$LINENO" 5
2401 root 1.1 fi
2402 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2403     $as_echo "yes" >&6; }
2404 root 1.1 test "$program_prefix" != NONE &&
2405     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2406     # Use a double $ so make ignores it.
2407     test "$program_suffix" != NONE &&
2408     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2409 root 1.3 # Double any \ or $.
2410 root 1.1 # By default was `s,x,x', remove it if useless.
2411 root 1.3 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2412     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2413 root 1.1
2414     # expand $ac_aux_dir to an absolute path
2415     am_aux_dir=`cd $ac_aux_dir && pwd`
2416    
2417     test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2418     # Use eval to expand $SHELL
2419     if eval "$MISSING --run true"; then
2420     am_missing_run="$MISSING --run "
2421     else
2422     am_missing_run=
2423 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2424     $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2425 root 1.1 fi
2426    
2427 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2428     $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2429 root 1.2 if test -z "$MKDIR_P"; then
2430 root 1.3 if ${ac_cv_path_mkdir+:} false; then :
2431     $as_echo_n "(cached) " >&6
2432 root 1.2 else
2433     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2435     do
2436     IFS=$as_save_IFS
2437     test -z "$as_dir" && as_dir=.
2438 root 1.3 for ac_prog in mkdir gmkdir; do
2439 root 1.2 for ac_exec_ext in '' $ac_executable_extensions; do
2440 root 1.3 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2441 root 1.2 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2442     'mkdir (GNU coreutils) '* | \
2443     'mkdir (coreutils) '* | \
2444     'mkdir (fileutils) '4.1*)
2445     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2446     break 3;;
2447     esac
2448     done
2449     done
2450 root 1.3 done
2451 root 1.2 IFS=$as_save_IFS
2452    
2453     fi
2454    
2455 root 1.3 test -d ./--version && rmdir ./--version
2456 root 1.2 if test "${ac_cv_path_mkdir+set}" = set; then
2457     MKDIR_P="$ac_cv_path_mkdir -p"
2458     else
2459     # As a last resort, use the slow shell script. Don't cache a
2460     # value for MKDIR_P within a source directory, because that will
2461     # break other packages using the cache if that directory is
2462     # removed, or if the value is a relative name.
2463     MKDIR_P="$ac_install_sh -d"
2464     fi
2465     fi
2466 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2467     $as_echo "$MKDIR_P" >&6; }
2468 root 1.2
2469     mkdir_p="$MKDIR_P"
2470     case $mkdir_p in
2471     [\\/$]* | ?:[\\/]*) ;;
2472     */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2473     esac
2474    
2475 root 1.1 for ac_prog in gawk mawk nawk awk
2476     do
2477     # Extract the first word of "$ac_prog", so it can be a program name with args.
2478     set dummy $ac_prog; ac_word=$2
2479 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2480     $as_echo_n "checking for $ac_word... " >&6; }
2481     if ${ac_cv_prog_AWK+:} false; then :
2482     $as_echo_n "(cached) " >&6
2483 root 1.1 else
2484     if test -n "$AWK"; then
2485     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2486     else
2487     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488     for as_dir in $PATH
2489     do
2490     IFS=$as_save_IFS
2491     test -z "$as_dir" && as_dir=.
2492 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
2493     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2494 root 1.1 ac_cv_prog_AWK="$ac_prog"
2495 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2496 root 1.1 break 2
2497     fi
2498     done
2499 root 1.3 done
2500 root 1.1 IFS=$as_save_IFS
2501    
2502     fi
2503     fi
2504     AWK=$ac_cv_prog_AWK
2505     if test -n "$AWK"; then
2506 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2507     $as_echo "$AWK" >&6; }
2508 root 1.1 else
2509 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2510     $as_echo "no" >&6; }
2511 root 1.1 fi
2512    
2513    
2514     test -n "$AWK" && break
2515     done
2516    
2517 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2518     $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2519     set x ${MAKE-make}
2520     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2521     if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2522     $as_echo_n "(cached) " >&6
2523 root 1.1 else
2524     cat >conftest.make <<\_ACEOF
2525     SHELL = /bin/sh
2526     all:
2527     @echo '@@@%%%=$(MAKE)=@@@%%%'
2528     _ACEOF
2529 root 1.3 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2530 root 1.1 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2531     *@@@%%%=?*=@@@%%%*)
2532     eval ac_cv_prog_make_${ac_make}_set=yes;;
2533     *)
2534     eval ac_cv_prog_make_${ac_make}_set=no;;
2535     esac
2536     rm -f conftest.make
2537     fi
2538     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2539 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2540     $as_echo "yes" >&6; }
2541 root 1.1 SET_MAKE=
2542     else
2543 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544     $as_echo "no" >&6; }
2545 root 1.1 SET_MAKE="MAKE=${MAKE-make}"
2546     fi
2547    
2548     rm -rf .tst 2>/dev/null
2549     mkdir .tst 2>/dev/null
2550     if test -d .tst; then
2551     am__leading_dot=.
2552     else
2553     am__leading_dot=_
2554     fi
2555     rmdir .tst 2>/dev/null
2556    
2557 root 1.2 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2558     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2559     # is not polluted with repeated "-I."
2560     am__isrc=' -I$(srcdir)'
2561     # test to see if srcdir already configured
2562     if test -f $srcdir/config.status; then
2563 root 1.3 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2564 root 1.2 fi
2565 root 1.1 fi
2566    
2567     # test whether we have cygpath
2568     if test -z "$CYGPATH_W"; then
2569     if (cygpath --version) >/dev/null 2>/dev/null; then
2570     CYGPATH_W='cygpath -w'
2571     else
2572     CYGPATH_W=echo
2573     fi
2574     fi
2575    
2576    
2577     # Define the identity of the package.
2578     PACKAGE=lsys
2579 root 1.2 VERSION=0.8
2580 root 1.1
2581    
2582     cat >>confdefs.h <<_ACEOF
2583     #define PACKAGE "$PACKAGE"
2584     _ACEOF
2585    
2586    
2587     cat >>confdefs.h <<_ACEOF
2588     #define VERSION "$VERSION"
2589     _ACEOF
2590    
2591     # Some tools Automake needs.
2592    
2593     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2594    
2595    
2596     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2597    
2598    
2599     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2600    
2601    
2602     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2603    
2604    
2605     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2606    
2607 root 1.2 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2608 root 1.1
2609     # Installed binaries are usually stripped using `strip' when the user
2610     # run `make install-strip'. However `strip' might not be the right
2611     # tool to use in cross-compilation environments, therefore Automake
2612     # will honor the `STRIP' environment variable to overrule this program.
2613     if test "$cross_compiling" != no; then
2614     if test -n "$ac_tool_prefix"; then
2615     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2616     set dummy ${ac_tool_prefix}strip; ac_word=$2
2617 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618     $as_echo_n "checking for $ac_word... " >&6; }
2619     if ${ac_cv_prog_STRIP+:} false; then :
2620     $as_echo_n "(cached) " >&6
2621 root 1.1 else
2622     if test -n "$STRIP"; then
2623     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2624     else
2625     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626     for as_dir in $PATH
2627     do
2628     IFS=$as_save_IFS
2629     test -z "$as_dir" && as_dir=.
2630 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
2631     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632 root 1.1 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2633 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 root 1.1 break 2
2635     fi
2636     done
2637 root 1.3 done
2638 root 1.1 IFS=$as_save_IFS
2639    
2640     fi
2641     fi
2642     STRIP=$ac_cv_prog_STRIP
2643     if test -n "$STRIP"; then
2644 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2645     $as_echo "$STRIP" >&6; }
2646 root 1.1 else
2647 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648     $as_echo "no" >&6; }
2649 root 1.1 fi
2650    
2651    
2652     fi
2653     if test -z "$ac_cv_prog_STRIP"; then
2654     ac_ct_STRIP=$STRIP
2655     # Extract the first word of "strip", so it can be a program name with args.
2656     set dummy strip; ac_word=$2
2657 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658     $as_echo_n "checking for $ac_word... " >&6; }
2659     if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2660     $as_echo_n "(cached) " >&6
2661 root 1.1 else
2662     if test -n "$ac_ct_STRIP"; then
2663     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2664     else
2665     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666     for as_dir in $PATH
2667     do
2668     IFS=$as_save_IFS
2669     test -z "$as_dir" && as_dir=.
2670 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
2671     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 root 1.1 ac_cv_prog_ac_ct_STRIP="strip"
2673 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 root 1.1 break 2
2675     fi
2676     done
2677 root 1.3 done
2678 root 1.1 IFS=$as_save_IFS
2679    
2680     fi
2681     fi
2682     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2683     if test -n "$ac_ct_STRIP"; then
2684 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2685     $as_echo "$ac_ct_STRIP" >&6; }
2686 root 1.1 else
2687 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688     $as_echo "no" >&6; }
2689 root 1.1 fi
2690    
2691     if test "x$ac_ct_STRIP" = x; then
2692     STRIP=":"
2693     else
2694     case $cross_compiling:$ac_tool_warned in
2695     yes:)
2696 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2697     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2698 root 1.1 ac_tool_warned=yes ;;
2699     esac
2700     STRIP=$ac_ct_STRIP
2701     fi
2702     else
2703     STRIP="$ac_cv_prog_STRIP"
2704     fi
2705    
2706     fi
2707 root 1.2 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2708 root 1.1
2709     # We need awk for the "check" target. The system "awk" is bad on
2710     # some platforms.
2711 root 1.2 # Always define AMTAR for backward compatibility.
2712    
2713     AMTAR=${AMTAR-"${am_missing_run}tar"}
2714    
2715     am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2716    
2717    
2718 root 1.1
2719    
2720    
2721    
2722     ac_config_headers="$ac_config_headers config.h"
2723    
2724    
2725     ac_ext=c
2726     ac_cpp='$CPP $CPPFLAGS'
2727     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2728     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2729     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2730     if test -n "$ac_tool_prefix"; then
2731     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2732     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2733 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734     $as_echo_n "checking for $ac_word... " >&6; }
2735     if ${ac_cv_prog_CC+:} false; then :
2736     $as_echo_n "(cached) " >&6
2737 root 1.1 else
2738     if test -n "$CC"; then
2739     ac_cv_prog_CC="$CC" # Let the user override the test.
2740     else
2741     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742     for as_dir in $PATH
2743     do
2744     IFS=$as_save_IFS
2745     test -z "$as_dir" && as_dir=.
2746 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
2747     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 root 1.1 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2749 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 root 1.1 break 2
2751     fi
2752     done
2753 root 1.3 done
2754 root 1.1 IFS=$as_save_IFS
2755    
2756     fi
2757     fi
2758     CC=$ac_cv_prog_CC
2759     if test -n "$CC"; then
2760 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761     $as_echo "$CC" >&6; }
2762 root 1.1 else
2763 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764     $as_echo "no" >&6; }
2765 root 1.1 fi
2766    
2767    
2768     fi
2769     if test -z "$ac_cv_prog_CC"; then
2770     ac_ct_CC=$CC
2771     # Extract the first word of "gcc", so it can be a program name with args.
2772     set dummy gcc; ac_word=$2
2773 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774     $as_echo_n "checking for $ac_word... " >&6; }
2775     if ${ac_cv_prog_ac_ct_CC+:} false; then :
2776     $as_echo_n "(cached) " >&6
2777 root 1.1 else
2778     if test -n "$ac_ct_CC"; then
2779     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2780     else
2781     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782     for as_dir in $PATH
2783     do
2784     IFS=$as_save_IFS
2785     test -z "$as_dir" && as_dir=.
2786 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
2787     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2788 root 1.1 ac_cv_prog_ac_ct_CC="gcc"
2789 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 root 1.1 break 2
2791     fi
2792     done
2793 root 1.3 done
2794 root 1.1 IFS=$as_save_IFS
2795    
2796     fi
2797     fi
2798     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2799     if test -n "$ac_ct_CC"; then
2800 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2801     $as_echo "$ac_ct_CC" >&6; }
2802 root 1.1 else
2803 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2804     $as_echo "no" >&6; }
2805 root 1.1 fi
2806    
2807     if test "x$ac_ct_CC" = x; then
2808     CC=""
2809     else
2810     case $cross_compiling:$ac_tool_warned in
2811     yes:)
2812 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2813     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2814 root 1.1 ac_tool_warned=yes ;;
2815     esac
2816     CC=$ac_ct_CC
2817     fi
2818     else
2819     CC="$ac_cv_prog_CC"
2820     fi
2821    
2822     if test -z "$CC"; then
2823     if test -n "$ac_tool_prefix"; then
2824     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2825     set dummy ${ac_tool_prefix}cc; ac_word=$2
2826 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827     $as_echo_n "checking for $ac_word... " >&6; }
2828     if ${ac_cv_prog_CC+:} false; then :
2829     $as_echo_n "(cached) " >&6
2830 root 1.1 else
2831     if test -n "$CC"; then
2832     ac_cv_prog_CC="$CC" # Let the user override the test.
2833     else
2834     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835     for as_dir in $PATH
2836     do
2837     IFS=$as_save_IFS
2838     test -z "$as_dir" && as_dir=.
2839 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
2840     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 root 1.1 ac_cv_prog_CC="${ac_tool_prefix}cc"
2842 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 root 1.1 break 2
2844     fi
2845     done
2846 root 1.3 done
2847 root 1.1 IFS=$as_save_IFS
2848    
2849     fi
2850     fi
2851     CC=$ac_cv_prog_CC
2852     if test -n "$CC"; then
2853 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854     $as_echo "$CC" >&6; }
2855 root 1.1 else
2856 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857     $as_echo "no" >&6; }
2858 root 1.1 fi
2859    
2860    
2861     fi
2862     fi
2863     if test -z "$CC"; then
2864     # Extract the first word of "cc", so it can be a program name with args.
2865     set dummy cc; ac_word=$2
2866 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867     $as_echo_n "checking for $ac_word... " >&6; }
2868     if ${ac_cv_prog_CC+:} false; then :
2869     $as_echo_n "(cached) " >&6
2870 root 1.1 else
2871     if test -n "$CC"; then
2872     ac_cv_prog_CC="$CC" # Let the user override the test.
2873     else
2874     ac_prog_rejected=no
2875     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876     for as_dir in $PATH
2877     do
2878     IFS=$as_save_IFS
2879     test -z "$as_dir" && as_dir=.
2880 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
2881     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2882 root 1.1 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2883     ac_prog_rejected=yes
2884     continue
2885     fi
2886     ac_cv_prog_CC="cc"
2887 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 root 1.1 break 2
2889     fi
2890     done
2891 root 1.3 done
2892 root 1.1 IFS=$as_save_IFS
2893    
2894     if test $ac_prog_rejected = yes; then
2895     # We found a bogon in the path, so make sure we never use it.
2896     set dummy $ac_cv_prog_CC
2897     shift
2898     if test $# != 0; then
2899     # We chose a different compiler from the bogus one.
2900     # However, it has the same basename, so the bogon will be chosen
2901     # first if we set CC to just the basename; use the full file name.
2902     shift
2903     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2904     fi
2905     fi
2906     fi
2907     fi
2908     CC=$ac_cv_prog_CC
2909     if test -n "$CC"; then
2910 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2911     $as_echo "$CC" >&6; }
2912 root 1.1 else
2913 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2914     $as_echo "no" >&6; }
2915 root 1.1 fi
2916    
2917    
2918     fi
2919     if test -z "$CC"; then
2920     if test -n "$ac_tool_prefix"; then
2921     for ac_prog in cl.exe
2922     do
2923     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2924     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2925 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2926     $as_echo_n "checking for $ac_word... " >&6; }
2927     if ${ac_cv_prog_CC+:} false; then :
2928     $as_echo_n "(cached) " >&6
2929 root 1.1 else
2930     if test -n "$CC"; then
2931     ac_cv_prog_CC="$CC" # Let the user override the test.
2932     else
2933     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934     for as_dir in $PATH
2935     do
2936     IFS=$as_save_IFS
2937     test -z "$as_dir" && as_dir=.
2938 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
2939     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2940 root 1.1 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2941 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2942 root 1.1 break 2
2943     fi
2944     done
2945 root 1.3 done
2946 root 1.1 IFS=$as_save_IFS
2947    
2948     fi
2949     fi
2950     CC=$ac_cv_prog_CC
2951     if test -n "$CC"; then
2952 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953     $as_echo "$CC" >&6; }
2954 root 1.1 else
2955 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956     $as_echo "no" >&6; }
2957 root 1.1 fi
2958    
2959    
2960     test -n "$CC" && break
2961     done
2962     fi
2963     if test -z "$CC"; then
2964     ac_ct_CC=$CC
2965     for ac_prog in cl.exe
2966     do
2967     # Extract the first word of "$ac_prog", so it can be a program name with args.
2968     set dummy $ac_prog; ac_word=$2
2969 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970     $as_echo_n "checking for $ac_word... " >&6; }
2971     if ${ac_cv_prog_ac_ct_CC+:} false; then :
2972     $as_echo_n "(cached) " >&6
2973 root 1.1 else
2974     if test -n "$ac_ct_CC"; then
2975     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2976     else
2977     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978     for as_dir in $PATH
2979     do
2980     IFS=$as_save_IFS
2981     test -z "$as_dir" && as_dir=.
2982 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
2983     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2984 root 1.1 ac_cv_prog_ac_ct_CC="$ac_prog"
2985 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 root 1.1 break 2
2987     fi
2988     done
2989 root 1.3 done
2990 root 1.1 IFS=$as_save_IFS
2991    
2992     fi
2993     fi
2994     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995     if test -n "$ac_ct_CC"; then
2996 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997     $as_echo "$ac_ct_CC" >&6; }
2998 root 1.1 else
2999 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000     $as_echo "no" >&6; }
3001 root 1.1 fi
3002    
3003    
3004     test -n "$ac_ct_CC" && break
3005     done
3006    
3007     if test "x$ac_ct_CC" = x; then
3008     CC=""
3009     else
3010     case $cross_compiling:$ac_tool_warned in
3011     yes:)
3012 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 root 1.1 ac_tool_warned=yes ;;
3015     esac
3016     CC=$ac_ct_CC
3017     fi
3018     fi
3019    
3020     fi
3021    
3022    
3023 root 1.3 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025     as_fn_error $? "no acceptable C compiler found in \$PATH
3026     See \`config.log' for more details" "$LINENO" 5; }
3027 root 1.1
3028     # Provide some information about the compiler.
3029 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3030     set X $ac_compile
3031     ac_compiler=$2
3032     for ac_option in --version -v -V -qversion; do
3033     { { ac_try="$ac_compiler $ac_option >&5"
3034 root 1.1 case "(($ac_try" in
3035     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036     *) ac_try_echo=$ac_try;;
3037     esac
3038 root 1.3 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3039     $as_echo "$ac_try_echo"; } >&5
3040     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3041 root 1.1 ac_status=$?
3042 root 1.3 if test -s conftest.err; then
3043     sed '10a\
3044     ... rest of stderr output deleted ...
3045     10q' conftest.err >conftest.er1
3046     cat conftest.er1 >&5
3047     fi
3048     rm -f conftest.er1 conftest.err
3049     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3050     test $ac_status = 0; }
3051     done
3052 root 1.1
3053 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3054 root 1.1 /* end confdefs.h. */
3055    
3056     int
3057     main ()
3058     {
3059    
3060     ;
3061     return 0;
3062     }
3063     _ACEOF
3064     ac_clean_files_save=$ac_clean_files
3065 root 1.3 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3066 root 1.1 # Try to create an executable without -o first, disregard a.out.
3067     # It will help us diagnose broken compilers, and finding out an intuition
3068     # of exeext.
3069 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3070     $as_echo_n "checking whether the C compiler works... " >&6; }
3071     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072    
3073     # The possible output files:
3074     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3075    
3076 root 1.1 ac_rmfiles=
3077     for ac_file in $ac_files
3078     do
3079     case $ac_file in
3080 root 1.3 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3081 root 1.1 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3082     esac
3083     done
3084     rm -f $ac_rmfiles
3085    
3086 root 1.3 if { { ac_try="$ac_link_default"
3087 root 1.1 case "(($ac_try" in
3088     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089     *) ac_try_echo=$ac_try;;
3090     esac
3091 root 1.3 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3092     $as_echo "$ac_try_echo"; } >&5
3093 root 1.1 (eval "$ac_link_default") 2>&5
3094     ac_status=$?
3095 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3096     test $ac_status = 0; }; then :
3097 root 1.1 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3098     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3099     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3100     # so that the user can short-circuit this test for compilers unknown to
3101     # Autoconf.
3102     for ac_file in $ac_files ''
3103     do
3104     test -f "$ac_file" || continue
3105     case $ac_file in
3106 root 1.3 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3107 root 1.1 ;;
3108     [ab].out )
3109     # We found the default executable, but exeext='' is most
3110     # certainly right.
3111     break;;
3112     *.* )
3113 root 1.3 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3114 root 1.1 then :; else
3115     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3116     fi
3117     # We set ac_cv_exeext here because the later test for it is not
3118     # safe: cross compilers may not add the suffix if given an `-o'
3119     # argument, so we may need to know it at that point already.
3120     # Even if this section looks crufty: it has the advantage of
3121     # actually working.
3122     break;;
3123     * )
3124     break;;
3125     esac
3126     done
3127     test "$ac_cv_exeext" = no && ac_cv_exeext=
3128    
3129     else
3130     ac_file=''
3131     fi
3132 root 1.3 if test -z "$ac_file"; then :
3133     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134     $as_echo "no" >&6; }
3135     $as_echo "$as_me: failed program was:" >&5
3136     sed 's/^/| /' conftest.$ac_ext >&5
3137 root 1.1
3138 root 1.3 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140     as_fn_error 77 "C compiler cannot create executables
3141     See \`config.log' for more details" "$LINENO" 5; }
3142     else
3143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3144     $as_echo "yes" >&6; }
3145     fi
3146     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3147     $as_echo_n "checking for C compiler default output file name... " >&6; }
3148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3149     $as_echo "$ac_file" >&6; }
3150     ac_exeext=$ac_cv_exeext
3151 root 1.1
3152 root 1.3 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3153     ac_clean_files=$ac_clean_files_save
3154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3155     $as_echo_n "checking for suffix of executables... " >&6; }
3156     if { { ac_try="$ac_link"
3157     case "(($ac_try" in
3158     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159     *) ac_try_echo=$ac_try;;
3160     esac
3161     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162     $as_echo "$ac_try_echo"; } >&5
3163     (eval "$ac_link") 2>&5
3164     ac_status=$?
3165     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166     test $ac_status = 0; }; then :
3167     # If both `conftest.exe' and `conftest' are `present' (well, observable)
3168     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3169     # work properly (i.e., refer to `conftest.exe'), while it won't with
3170     # `rm'.
3171     for ac_file in conftest.exe conftest conftest.*; do
3172     test -f "$ac_file" || continue
3173     case $ac_file in
3174     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3175     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3176     break;;
3177     * ) break;;
3178     esac
3179     done
3180     else
3181     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3182     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3183     as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3184     See \`config.log' for more details" "$LINENO" 5; }
3185     fi
3186     rm -f conftest conftest$ac_cv_exeext
3187     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3188     $as_echo "$ac_cv_exeext" >&6; }
3189 root 1.1
3190 root 1.3 rm -f conftest.$ac_ext
3191     EXEEXT=$ac_cv_exeext
3192     ac_exeext=$EXEEXT
3193     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194     /* end confdefs.h. */
3195     #include <stdio.h>
3196     int
3197     main ()
3198     {
3199     FILE *f = fopen ("conftest.out", "w");
3200     return ferror (f) || fclose (f) != 0;
3201 root 1.1
3202 root 1.3 ;
3203     return 0;
3204     }
3205     _ACEOF
3206     ac_clean_files="$ac_clean_files conftest.out"
3207 root 1.1 # Check that the compiler produces executables we can run. If not, either
3208     # the compiler is broken, or we cross compile.
3209 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3210     $as_echo_n "checking whether we are cross compiling... " >&6; }
3211 root 1.1 if test "$cross_compiling" != yes; then
3212 root 1.3 { { ac_try="$ac_link"
3213     case "(($ac_try" in
3214     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215     *) ac_try_echo=$ac_try;;
3216     esac
3217     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218     $as_echo "$ac_try_echo"; } >&5
3219     (eval "$ac_link") 2>&5
3220     ac_status=$?
3221     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222     test $ac_status = 0; }
3223     if { ac_try='./conftest$ac_cv_exeext'
3224     { { case "(($ac_try" in
3225 root 1.1 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226     *) ac_try_echo=$ac_try;;
3227     esac
3228 root 1.3 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3229     $as_echo "$ac_try_echo"; } >&5
3230 root 1.1 (eval "$ac_try") 2>&5
3231     ac_status=$?
3232 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3233     test $ac_status = 0; }; }; then
3234 root 1.1 cross_compiling=no
3235     else
3236     if test "$cross_compiling" = maybe; then
3237     cross_compiling=yes
3238     else
3239 root 1.3 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3241     as_fn_error $? "cannot run C compiled programs.
3242 root 1.1 If you meant to cross compile, use \`--host'.
3243 root 1.3 See \`config.log' for more details" "$LINENO" 5; }
3244 root 1.1 fi
3245     fi
3246     fi
3247 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3248     $as_echo "$cross_compiling" >&6; }
3249 root 1.1
3250 root 1.3 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3251     ac_clean_files=$ac_clean_files_save
3252     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3253     $as_echo_n "checking for suffix of object files... " >&6; }
3254     if ${ac_cv_objext+:} false; then :
3255     $as_echo_n "(cached) " >&6
3256 root 1.1 else
3257 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 root 1.1 /* end confdefs.h. */
3259    
3260     int
3261     main ()
3262     {
3263    
3264     ;
3265     return 0;
3266     }
3267     _ACEOF
3268     rm -f conftest.o conftest.obj
3269 root 1.3 if { { ac_try="$ac_compile"
3270 root 1.1 case "(($ac_try" in
3271     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272     *) ac_try_echo=$ac_try;;
3273     esac
3274 root 1.3 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275     $as_echo "$ac_try_echo"; } >&5
3276 root 1.1 (eval "$ac_compile") 2>&5
3277     ac_status=$?
3278 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279     test $ac_status = 0; }; then :
3280 root 1.1 for ac_file in conftest.o conftest.obj conftest.*; do
3281     test -f "$ac_file" || continue;
3282     case $ac_file in
3283 root 1.3 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3284 root 1.1 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3285     break;;
3286     esac
3287     done
3288     else
3289 root 1.3 $as_echo "$as_me: failed program was:" >&5
3290 root 1.1 sed 's/^/| /' conftest.$ac_ext >&5
3291    
3292 root 1.3 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3293     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3294     as_fn_error $? "cannot compute suffix of object files: cannot compile
3295     See \`config.log' for more details" "$LINENO" 5; }
3296 root 1.1 fi
3297     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3298     fi
3299 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3300     $as_echo "$ac_cv_objext" >&6; }
3301 root 1.1 OBJEXT=$ac_cv_objext
3302     ac_objext=$OBJEXT
3303 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3304     $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3305     if ${ac_cv_c_compiler_gnu+:} false; then :
3306     $as_echo_n "(cached) " >&6
3307 root 1.1 else
3308 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 root 1.1 /* end confdefs.h. */
3310    
3311     int
3312     main ()
3313     {
3314     #ifndef __GNUC__
3315     choke me
3316     #endif
3317    
3318     ;
3319     return 0;
3320     }
3321     _ACEOF
3322 root 1.3 if ac_fn_c_try_compile "$LINENO"; then :
3323 root 1.1 ac_compiler_gnu=yes
3324     else
3325 root 1.3 ac_compiler_gnu=no
3326 root 1.1 fi
3327     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3329    
3330     fi
3331 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3332     $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3333     if test $ac_compiler_gnu = yes; then
3334     GCC=yes
3335     else
3336     GCC=
3337     fi
3338 root 1.1 ac_test_CFLAGS=${CFLAGS+set}
3339     ac_save_CFLAGS=$CFLAGS
3340 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3341     $as_echo_n "checking whether $CC accepts -g... " >&6; }
3342     if ${ac_cv_prog_cc_g+:} false; then :
3343     $as_echo_n "(cached) " >&6
3344 root 1.1 else
3345     ac_save_c_werror_flag=$ac_c_werror_flag
3346     ac_c_werror_flag=yes
3347     ac_cv_prog_cc_g=no
3348     CFLAGS="-g"
3349 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 root 1.1 /* end confdefs.h. */
3351    
3352     int
3353     main ()
3354     {
3355    
3356     ;
3357     return 0;
3358     }
3359     _ACEOF
3360 root 1.3 if ac_fn_c_try_compile "$LINENO"; then :
3361 root 1.1 ac_cv_prog_cc_g=yes
3362     else
3363 root 1.3 CFLAGS=""
3364     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 root 1.1 /* end confdefs.h. */
3366    
3367     int
3368     main ()
3369     {
3370    
3371     ;
3372     return 0;
3373     }
3374     _ACEOF
3375 root 1.3 if ac_fn_c_try_compile "$LINENO"; then :
3376    
3377 root 1.1 else
3378 root 1.3 ac_c_werror_flag=$ac_save_c_werror_flag
3379 root 1.1 CFLAGS="-g"
3380 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 root 1.1 /* end confdefs.h. */
3382    
3383     int
3384     main ()
3385     {
3386    
3387     ;
3388     return 0;
3389     }
3390     _ACEOF
3391 root 1.3 if ac_fn_c_try_compile "$LINENO"; then :
3392 root 1.1 ac_cv_prog_cc_g=yes
3393     fi
3394     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395     fi
3396     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3397     fi
3398     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399     ac_c_werror_flag=$ac_save_c_werror_flag
3400     fi
3401 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3402     $as_echo "$ac_cv_prog_cc_g" >&6; }
3403 root 1.1 if test "$ac_test_CFLAGS" = set; then
3404     CFLAGS=$ac_save_CFLAGS
3405     elif test $ac_cv_prog_cc_g = yes; then
3406     if test "$GCC" = yes; then
3407     CFLAGS="-g -O2"
3408     else
3409     CFLAGS="-g"
3410     fi
3411     else
3412     if test "$GCC" = yes; then
3413     CFLAGS="-O2"
3414     else
3415     CFLAGS=
3416     fi
3417     fi
3418 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3419     $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3420     if ${ac_cv_prog_cc_c89+:} false; then :
3421     $as_echo_n "(cached) " >&6
3422 root 1.1 else
3423     ac_cv_prog_cc_c89=no
3424     ac_save_CC=$CC
3425 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 root 1.1 /* end confdefs.h. */
3427     #include <stdarg.h>
3428     #include <stdio.h>
3429 root 1.3 struct stat;
3430 root 1.1 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3431     struct buf { int x; };
3432     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3433     static char *e (p, i)
3434     char **p;
3435     int i;
3436     {
3437     return p[i];
3438     }
3439     static char *f (char * (*g) (char **, int), char **p, ...)
3440     {
3441     char *s;
3442     va_list v;
3443     va_start (v,p);
3444     s = g (p, va_arg (v,int));
3445     va_end (v);
3446     return s;
3447     }
3448    
3449     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3450     function prototypes and stuff, but not '\xHH' hex character constants.
3451     These don't provoke an error unfortunately, instead are silently treated
3452     as 'x'. The following induces an error, until -std is added to get
3453     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3454     array size at least. It's necessary to write '\x00'==0 to get something
3455     that's true only with -std. */
3456     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3457    
3458     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3459     inside strings and character constants. */
3460     #define FOO(x) 'x'
3461     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3462    
3463     int test (int i, double x);
3464     struct s1 {int (*f) (int a);};
3465     struct s2 {int (*f) (double a);};
3466     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3467     int argc;
3468     char **argv;
3469     int
3470     main ()
3471     {
3472     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3473     ;
3474     return 0;
3475     }
3476     _ACEOF
3477     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3478     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3479     do
3480     CC="$ac_save_CC $ac_arg"
3481 root 1.3 if ac_fn_c_try_compile "$LINENO"; then :
3482 root 1.1 ac_cv_prog_cc_c89=$ac_arg
3483     fi
3484     rm -f core conftest.err conftest.$ac_objext
3485     test "x$ac_cv_prog_cc_c89" != "xno" && break
3486     done
3487     rm -f conftest.$ac_ext
3488     CC=$ac_save_CC
3489    
3490     fi
3491     # AC_CACHE_VAL
3492     case "x$ac_cv_prog_cc_c89" in
3493     x)
3494 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3495     $as_echo "none needed" >&6; } ;;
3496 root 1.1 xno)
3497 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3498     $as_echo "unsupported" >&6; } ;;
3499 root 1.1 *)
3500     CC="$CC $ac_cv_prog_cc_c89"
3501 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3502     $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3503 root 1.1 esac
3504 root 1.3 if test "x$ac_cv_prog_cc_c89" != xno; then :
3505 root 1.1
3506 root 1.3 fi
3507 root 1.1
3508     ac_ext=c
3509     ac_cpp='$CPP $CPPFLAGS'
3510     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513     DEPDIR="${am__leading_dot}deps"
3514    
3515     ac_config_commands="$ac_config_commands depfiles"
3516    
3517    
3518     am_make=${MAKE-make}
3519     cat > confinc << 'END'
3520     am__doit:
3521     @echo done
3522     .PHONY: am__doit
3523     END
3524     # If we don't find an include directive, just comment out the code.
3525 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3526     $as_echo_n "checking for style of include used by $am_make... " >&6; }
3527 root 1.1 am__include="#"
3528     am__quote=
3529     _am_result=none
3530     # First try GNU make style include.
3531     echo "include confinc" > confmf
3532     # We grep out `Entering directory' and `Leaving directory'
3533     # messages which can occur if `w' ends up in MAKEFLAGS.
3534     # In particular we don't look at `^make:' because GNU make might
3535     # be invoked under some other name (usually "gmake"), in which
3536     # case it prints its new name instead of `make'.
3537     if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3538     am__include=include
3539     am__quote=
3540     _am_result=GNU
3541     fi
3542     # Now try BSD make style include.
3543     if test "$am__include" = "#"; then
3544     echo '.include "confinc"' > confmf
3545     if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3546     am__include=.include
3547     am__quote="\""
3548     _am_result=BSD
3549     fi
3550     fi
3551    
3552    
3553 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3554     $as_echo "$_am_result" >&6; }
3555 root 1.1 rm -f confinc confmf
3556    
3557     # Check whether --enable-dependency-tracking was given.
3558 root 1.3 if test "${enable_dependency_tracking+set}" = set; then :
3559 root 1.1 enableval=$enable_dependency_tracking;
3560     fi
3561    
3562     if test "x$enable_dependency_tracking" != xno; then
3563     am_depcomp="$ac_aux_dir/depcomp"
3564     AMDEPBACKSLASH='\'
3565     fi
3566 root 1.2 if test "x$enable_dependency_tracking" != xno; then
3567 root 1.1 AMDEP_TRUE=
3568     AMDEP_FALSE='#'
3569     else
3570     AMDEP_TRUE='#'
3571     AMDEP_FALSE=
3572     fi
3573    
3574    
3575    
3576     depcc="$CC" am_compiler_list=
3577    
3578 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3579     $as_echo_n "checking dependency style of $depcc... " >&6; }
3580     if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3581     $as_echo_n "(cached) " >&6
3582 root 1.1 else
3583     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3584     # We make a subdir and do the tests there. Otherwise we can end up
3585     # making bogus files that we don't know about and never remove. For
3586     # instance it was reported that on HP-UX the gcc test will end up
3587     # making a dummy file named `D' -- because `-MD' means `put the output
3588     # in D'.
3589     mkdir conftest.dir
3590     # Copy depcomp to subdir because otherwise we won't find it if we're
3591     # using a relative directory.
3592     cp "$am_depcomp" conftest.dir
3593     cd conftest.dir
3594     # We will build objects and dependencies in a subdirectory because
3595     # it helps to detect inapplicable dependency modes. For instance
3596     # both Tru64's cc and ICC support -MD to output dependencies as a
3597     # side effect of compilation, but ICC will put the dependencies in
3598     # the current directory while Tru64 will put them in the object
3599     # directory.
3600     mkdir sub
3601    
3602     am_cv_CC_dependencies_compiler_type=none
3603     if test "$am_compiler_list" = ""; then
3604     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3605     fi
3606     for depmode in $am_compiler_list; do
3607     # Setup a source with many dependencies, because some compilers
3608     # like to wrap large dependency lists on column 80 (with \), and
3609     # we should not choose a depcomp mode which is confused by this.
3610     #
3611     # We need to recreate these files for each test, as the compiler may
3612     # overwrite some of them when testing with obscure command lines.
3613     # This happens at least with the AIX C compiler.
3614     : > sub/conftest.c
3615     for i in 1 2 3 4 5 6; do
3616     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3617 root 1.2 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3618     # Solaris 8's {/usr,}/bin/sh.
3619     touch sub/conftst$i.h
3620 root 1.1 done
3621     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3622    
3623     case $depmode in
3624     nosideeffect)
3625     # after this tag, mechanisms are not by side-effect, so they'll
3626     # only be used when explicitly requested
3627     if test "x$enable_dependency_tracking" = xyes; then
3628     continue
3629     else
3630     break
3631     fi
3632     ;;
3633     none) break ;;
3634     esac
3635     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3636     # mode. It turns out that the SunPro C++ compiler does not properly
3637     # handle `-M -o', and we need to detect this.
3638     if depmode=$depmode \
3639     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3640     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3641     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3642     >/dev/null 2>conftest.err &&
3643 root 1.2 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3644 root 1.1 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3645     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3646     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3647     # icc doesn't choke on unknown options, it will just issue warnings
3648 root 1.2 # or remarks (even with -Werror). So we grep stderr for any message
3649     # that says an option was ignored or not supported.
3650     # When given -MP, icc 7.0 and 7.1 complain thusly:
3651     # icc: Command line warning: ignoring option '-M'; no argument required
3652     # The diagnosis changed in icc 8.0:
3653     # icc: Command line remark: option '-MP' not supported
3654     if (grep 'ignoring option' conftest.err ||
3655     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3656 root 1.1 am_cv_CC_dependencies_compiler_type=$depmode
3657     break
3658     fi
3659     fi
3660     done
3661    
3662     cd ..
3663     rm -rf conftest.dir
3664     else
3665     am_cv_CC_dependencies_compiler_type=none
3666     fi
3667    
3668     fi
3669 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3670     $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3671 root 1.1 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3672    
3673 root 1.2 if
3674 root 1.1 test "x$enable_dependency_tracking" != xno \
3675     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3676     am__fastdepCC_TRUE=
3677     am__fastdepCC_FALSE='#'
3678     else
3679     am__fastdepCC_TRUE='#'
3680     am__fastdepCC_FALSE=
3681     fi
3682    
3683    
3684    
3685    
3686     ac_ext=c
3687     ac_cpp='$CPP $CPPFLAGS'
3688     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3692     $as_echo_n "checking how to run the C preprocessor... " >&6; }
3693 root 1.1 # On Suns, sometimes $CPP names a directory.
3694     if test -n "$CPP" && test -d "$CPP"; then
3695     CPP=
3696     fi
3697     if test -z "$CPP"; then
3698 root 1.3 if ${ac_cv_prog_CPP+:} false; then :
3699     $as_echo_n "(cached) " >&6
3700 root 1.1 else
3701     # Double quotes because CPP needs to be expanded
3702     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3703     do
3704     ac_preproc_ok=false
3705     for ac_c_preproc_warn_flag in '' yes
3706     do
3707     # Use a header file that comes with gcc, so configuring glibc
3708     # with a fresh cross-compiler works.
3709     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3710     # <limits.h> exists even on freestanding compilers.
3711     # On the NeXT, cc -E runs the code through the compiler's parser,
3712     # not just through cpp. "Syntax error" is here to catch this case.
3713 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 root 1.1 /* end confdefs.h. */
3715     #ifdef __STDC__
3716     # include <limits.h>
3717     #else
3718     # include <assert.h>
3719     #endif
3720     Syntax error
3721     _ACEOF
3722 root 1.3 if ac_fn_c_try_cpp "$LINENO"; then :
3723    
3724 root 1.1 else
3725     # Broken: fails on valid input.
3726     continue
3727     fi
3728 root 1.3 rm -f conftest.err conftest.i conftest.$ac_ext
3729 root 1.1
3730     # OK, works on sane cases. Now check whether nonexistent headers
3731     # can be detected and how.
3732 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 root 1.1 /* end confdefs.h. */
3734     #include <ac_nonexistent.h>
3735     _ACEOF
3736 root 1.3 if ac_fn_c_try_cpp "$LINENO"; then :
3737 root 1.1 # Broken: success on invalid input.
3738     continue
3739     else
3740     # Passes both tests.
3741     ac_preproc_ok=:
3742     break
3743     fi
3744 root 1.3 rm -f conftest.err conftest.i conftest.$ac_ext
3745 root 1.1
3746     done
3747     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3748 root 1.3 rm -f conftest.i conftest.err conftest.$ac_ext
3749     if $ac_preproc_ok; then :
3750 root 1.1 break
3751     fi
3752    
3753     done
3754     ac_cv_prog_CPP=$CPP
3755    
3756     fi
3757     CPP=$ac_cv_prog_CPP
3758     else
3759     ac_cv_prog_CPP=$CPP
3760     fi
3761 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3762     $as_echo "$CPP" >&6; }
3763 root 1.1 ac_preproc_ok=false
3764     for ac_c_preproc_warn_flag in '' yes
3765     do
3766     # Use a header file that comes with gcc, so configuring glibc
3767     # with a fresh cross-compiler works.
3768     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769     # <limits.h> exists even on freestanding compilers.
3770     # On the NeXT, cc -E runs the code through the compiler's parser,
3771     # not just through cpp. "Syntax error" is here to catch this case.
3772 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 root 1.1 /* end confdefs.h. */
3774     #ifdef __STDC__
3775     # include <limits.h>
3776     #else
3777     # include <assert.h>
3778     #endif
3779     Syntax error
3780     _ACEOF
3781 root 1.3 if ac_fn_c_try_cpp "$LINENO"; then :
3782    
3783 root 1.1 else
3784     # Broken: fails on valid input.
3785     continue
3786     fi
3787 root 1.3 rm -f conftest.err conftest.i conftest.$ac_ext
3788 root 1.1
3789     # OK, works on sane cases. Now check whether nonexistent headers
3790     # can be detected and how.
3791 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3792 root 1.1 /* end confdefs.h. */
3793     #include <ac_nonexistent.h>
3794     _ACEOF
3795 root 1.3 if ac_fn_c_try_cpp "$LINENO"; then :
3796 root 1.1 # Broken: success on invalid input.
3797     continue
3798     else
3799     # Passes both tests.
3800     ac_preproc_ok=:
3801     break
3802     fi
3803 root 1.3 rm -f conftest.err conftest.i conftest.$ac_ext
3804 root 1.1
3805     done
3806     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3807 root 1.3 rm -f conftest.i conftest.err conftest.$ac_ext
3808     if $ac_preproc_ok; then :
3809    
3810 root 1.1 else
3811 root 1.3 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813     as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3814     See \`config.log' for more details" "$LINENO" 5; }
3815 root 1.1 fi
3816    
3817     ac_ext=c
3818     ac_cpp='$CPP $CPPFLAGS'
3819     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3820     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3821     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3822    
3823    
3824 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3825     $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3826     if ${ac_cv_path_GREP+:} false; then :
3827     $as_echo_n "(cached) " >&6
3828 root 1.1 else
3829 root 1.3 if test -z "$GREP"; then
3830 root 1.1 ac_path_GREP_found=false
3831 root 1.3 # Loop through the user's path and test for each of PROGNAME-LIST
3832     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 root 1.1 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3834     do
3835     IFS=$as_save_IFS
3836     test -z "$as_dir" && as_dir=.
3837 root 1.3 for ac_prog in grep ggrep; do
3838     for ac_exec_ext in '' $ac_executable_extensions; do
3839     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3840     as_fn_executable_p "$ac_path_GREP" || continue
3841     # Check for GNU ac_path_GREP and select it if it is found.
3842 root 1.1 # Check for GNU $ac_path_GREP
3843     case `"$ac_path_GREP" --version 2>&1` in
3844     *GNU*)
3845     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3846     *)
3847     ac_count=0
3848 root 1.3 $as_echo_n 0123456789 >"conftest.in"
3849 root 1.1 while :
3850     do
3851     cat "conftest.in" "conftest.in" >"conftest.tmp"
3852     mv "conftest.tmp" "conftest.in"
3853     cp "conftest.in" "conftest.nl"
3854 root 1.3 $as_echo 'GREP' >> "conftest.nl"
3855 root 1.1 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3856     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3857 root 1.3 as_fn_arith $ac_count + 1 && ac_count=$as_val
3858 root 1.1 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3859     # Best one so far, save it but keep looking for a better one
3860     ac_cv_path_GREP="$ac_path_GREP"
3861     ac_path_GREP_max=$ac_count
3862     fi
3863     # 10*(2^10) chars as input seems more than enough
3864     test $ac_count -gt 10 && break
3865     done
3866     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3867     esac
3868    
3869 root 1.3 $ac_path_GREP_found && break 3
3870     done
3871     done
3872 root 1.1 done
3873     IFS=$as_save_IFS
3874 root 1.3 if test -z "$ac_cv_path_GREP"; then
3875     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3876     fi
3877 root 1.1 else
3878     ac_cv_path_GREP=$GREP
3879     fi
3880    
3881     fi
3882 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3883     $as_echo "$ac_cv_path_GREP" >&6; }
3884 root 1.1 GREP="$ac_cv_path_GREP"
3885    
3886    
3887 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3888     $as_echo_n "checking for egrep... " >&6; }
3889     if ${ac_cv_path_EGREP+:} false; then :
3890     $as_echo_n "(cached) " >&6
3891 root 1.1 else
3892     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3893     then ac_cv_path_EGREP="$GREP -E"
3894     else
3895 root 1.3 if test -z "$EGREP"; then
3896 root 1.1 ac_path_EGREP_found=false
3897 root 1.3 # Loop through the user's path and test for each of PROGNAME-LIST
3898     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 root 1.1 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3900     do
3901     IFS=$as_save_IFS
3902     test -z "$as_dir" && as_dir=.
3903 root 1.3 for ac_prog in egrep; do
3904     for ac_exec_ext in '' $ac_executable_extensions; do
3905     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3906     as_fn_executable_p "$ac_path_EGREP" || continue
3907     # Check for GNU ac_path_EGREP and select it if it is found.
3908 root 1.1 # Check for GNU $ac_path_EGREP
3909     case `"$ac_path_EGREP" --version 2>&1` in
3910     *GNU*)
3911     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3912     *)
3913     ac_count=0
3914 root 1.3 $as_echo_n 0123456789 >"conftest.in"
3915 root 1.1 while :
3916     do
3917     cat "conftest.in" "conftest.in" >"conftest.tmp"
3918     mv "conftest.tmp" "conftest.in"
3919     cp "conftest.in" "conftest.nl"
3920 root 1.3 $as_echo 'EGREP' >> "conftest.nl"
3921 root 1.1 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3922     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3923 root 1.3 as_fn_arith $ac_count + 1 && ac_count=$as_val
3924 root 1.1 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3925     # Best one so far, save it but keep looking for a better one
3926     ac_cv_path_EGREP="$ac_path_EGREP"
3927     ac_path_EGREP_max=$ac_count
3928     fi
3929     # 10*(2^10) chars as input seems more than enough
3930     test $ac_count -gt 10 && break
3931     done
3932     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3933     esac
3934    
3935 root 1.3 $ac_path_EGREP_found && break 3
3936     done
3937     done
3938 root 1.1 done
3939     IFS=$as_save_IFS
3940 root 1.3 if test -z "$ac_cv_path_EGREP"; then
3941     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3942     fi
3943 root 1.1 else
3944     ac_cv_path_EGREP=$EGREP
3945     fi
3946    
3947     fi
3948     fi
3949 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3950     $as_echo "$ac_cv_path_EGREP" >&6; }
3951 root 1.1 EGREP="$ac_cv_path_EGREP"
3952    
3953    
3954 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3955     $as_echo_n "checking for ANSI C header files... " >&6; }
3956     if ${ac_cv_header_stdc+:} false; then :
3957     $as_echo_n "(cached) " >&6
3958 root 1.1 else
3959 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 root 1.1 /* end confdefs.h. */
3961     #include <stdlib.h>
3962     #include <stdarg.h>
3963     #include <string.h>
3964     #include <float.h>
3965    
3966     int
3967     main ()
3968     {
3969    
3970     ;
3971     return 0;
3972     }
3973     _ACEOF
3974 root 1.3 if ac_fn_c_try_compile "$LINENO"; then :
3975 root 1.1 ac_cv_header_stdc=yes
3976     else
3977 root 1.3 ac_cv_header_stdc=no
3978 root 1.1 fi
3979     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980    
3981     if test $ac_cv_header_stdc = yes; then
3982     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3983 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 root 1.1 /* end confdefs.h. */
3985     #include <string.h>
3986    
3987     _ACEOF
3988     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3989 root 1.3 $EGREP "memchr" >/dev/null 2>&1; then :
3990    
3991 root 1.1 else
3992     ac_cv_header_stdc=no
3993     fi
3994     rm -f conftest*
3995    
3996     fi
3997    
3998     if test $ac_cv_header_stdc = yes; then
3999     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4000 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 root 1.1 /* end confdefs.h. */
4002     #include <stdlib.h>
4003    
4004     _ACEOF
4005     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4006 root 1.3 $EGREP "free" >/dev/null 2>&1; then :
4007    
4008 root 1.1 else
4009     ac_cv_header_stdc=no
4010     fi
4011     rm -f conftest*
4012    
4013     fi
4014    
4015     if test $ac_cv_header_stdc = yes; then
4016     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4017 root 1.3 if test "$cross_compiling" = yes; then :
4018 root 1.1 :
4019     else
4020 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 root 1.1 /* end confdefs.h. */
4022     #include <ctype.h>
4023     #include <stdlib.h>
4024     #if ((' ' & 0x0FF) == 0x020)
4025     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4026     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4027     #else
4028     # define ISLOWER(c) \
4029     (('a' <= (c) && (c) <= 'i') \
4030     || ('j' <= (c) && (c) <= 'r') \
4031     || ('s' <= (c) && (c) <= 'z'))
4032     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4033     #endif
4034    
4035     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4036     int
4037     main ()
4038     {
4039     int i;
4040     for (i = 0; i < 256; i++)
4041     if (XOR (islower (i), ISLOWER (i))
4042     || toupper (i) != TOUPPER (i))
4043     return 2;
4044     return 0;
4045     }
4046     _ACEOF
4047 root 1.3 if ac_fn_c_try_run "$LINENO"; then :
4048    
4049 root 1.1 else
4050 root 1.3 ac_cv_header_stdc=no
4051 root 1.1 fi
4052 root 1.3 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4053     conftest.$ac_objext conftest.beam conftest.$ac_ext
4054 root 1.1 fi
4055    
4056     fi
4057     fi
4058 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4059     $as_echo "$ac_cv_header_stdc" >&6; }
4060 root 1.1 if test $ac_cv_header_stdc = yes; then
4061    
4062 root 1.3 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4063 root 1.1
4064     fi
4065    
4066    
4067     ac_ext=cpp
4068     ac_cpp='$CXXCPP $CPPFLAGS'
4069     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4072     if test -z "$CXX"; then
4073     if test -n "$CCC"; then
4074     CXX=$CCC
4075     else
4076     if test -n "$ac_tool_prefix"; then
4077     for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4078     do
4079     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4080     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4081 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082     $as_echo_n "checking for $ac_word... " >&6; }
4083     if ${ac_cv_prog_CXX+:} false; then :
4084     $as_echo_n "(cached) " >&6
4085 root 1.1 else
4086     if test -n "$CXX"; then
4087     ac_cv_prog_CXX="$CXX" # Let the user override the test.
4088     else
4089     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090     for as_dir in $PATH
4091     do
4092     IFS=$as_save_IFS
4093     test -z "$as_dir" && as_dir=.
4094 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
4095     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4096 root 1.1 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4097 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4098 root 1.1 break 2
4099     fi
4100     done
4101 root 1.3 done
4102 root 1.1 IFS=$as_save_IFS
4103    
4104     fi
4105     fi
4106     CXX=$ac_cv_prog_CXX
4107     if test -n "$CXX"; then
4108 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4109     $as_echo "$CXX" >&6; }
4110 root 1.1 else
4111 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112     $as_echo "no" >&6; }
4113 root 1.1 fi
4114    
4115    
4116     test -n "$CXX" && break
4117     done
4118     fi
4119     if test -z "$CXX"; then
4120     ac_ct_CXX=$CXX
4121     for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4122     do
4123     # Extract the first word of "$ac_prog", so it can be a program name with args.
4124     set dummy $ac_prog; ac_word=$2
4125 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126     $as_echo_n "checking for $ac_word... " >&6; }
4127     if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4128     $as_echo_n "(cached) " >&6
4129 root 1.1 else
4130     if test -n "$ac_ct_CXX"; then
4131     ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4132     else
4133     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134     for as_dir in $PATH
4135     do
4136     IFS=$as_save_IFS
4137     test -z "$as_dir" && as_dir=.
4138 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
4139     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4140 root 1.1 ac_cv_prog_ac_ct_CXX="$ac_prog"
4141 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 root 1.1 break 2
4143     fi
4144     done
4145 root 1.3 done
4146 root 1.1 IFS=$as_save_IFS
4147    
4148     fi
4149     fi
4150     ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4151     if test -n "$ac_ct_CXX"; then
4152 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4153     $as_echo "$ac_ct_CXX" >&6; }
4154 root 1.1 else
4155 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156     $as_echo "no" >&6; }
4157 root 1.1 fi
4158    
4159    
4160     test -n "$ac_ct_CXX" && break
4161     done
4162    
4163     if test "x$ac_ct_CXX" = x; then
4164     CXX="g++"
4165     else
4166     case $cross_compiling:$ac_tool_warned in
4167     yes:)
4168 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4169     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4170 root 1.1 ac_tool_warned=yes ;;
4171     esac
4172     CXX=$ac_ct_CXX
4173     fi
4174     fi
4175    
4176     fi
4177     fi
4178     # Provide some information about the compiler.
4179 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4180     set X $ac_compile
4181     ac_compiler=$2
4182     for ac_option in --version -v -V -qversion; do
4183     { { ac_try="$ac_compiler $ac_option >&5"
4184 root 1.1 case "(($ac_try" in
4185     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186     *) ac_try_echo=$ac_try;;
4187     esac
4188 root 1.3 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189     $as_echo "$ac_try_echo"; } >&5
4190     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4191 root 1.1 ac_status=$?
4192 root 1.3 if test -s conftest.err; then
4193     sed '10a\
4194     ... rest of stderr output deleted ...
4195     10q' conftest.err >conftest.er1
4196     cat conftest.er1 >&5
4197     fi
4198     rm -f conftest.er1 conftest.err
4199     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4200     test $ac_status = 0; }
4201     done
4202 root 1.1
4203 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4204     $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4205     if ${ac_cv_cxx_compiler_gnu+:} false; then :
4206     $as_echo_n "(cached) " >&6
4207 root 1.1 else
4208 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 root 1.1 /* end confdefs.h. */
4210    
4211     int
4212     main ()
4213     {
4214     #ifndef __GNUC__
4215     choke me
4216     #endif
4217    
4218     ;
4219     return 0;
4220     }
4221     _ACEOF
4222 root 1.3 if ac_fn_cxx_try_compile "$LINENO"; then :
4223 root 1.1 ac_compiler_gnu=yes
4224     else
4225 root 1.3 ac_compiler_gnu=no
4226 root 1.1 fi
4227     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228     ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4229    
4230     fi
4231 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4232     $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4233     if test $ac_compiler_gnu = yes; then
4234     GXX=yes
4235     else
4236     GXX=
4237     fi
4238 root 1.1 ac_test_CXXFLAGS=${CXXFLAGS+set}
4239     ac_save_CXXFLAGS=$CXXFLAGS
4240 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4241     $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4242     if ${ac_cv_prog_cxx_g+:} false; then :
4243     $as_echo_n "(cached) " >&6
4244 root 1.1 else
4245     ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4246     ac_cxx_werror_flag=yes
4247     ac_cv_prog_cxx_g=no
4248     CXXFLAGS="-g"
4249 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 root 1.1 /* end confdefs.h. */
4251    
4252     int
4253     main ()
4254     {
4255    
4256     ;
4257     return 0;
4258     }
4259     _ACEOF
4260 root 1.3 if ac_fn_cxx_try_compile "$LINENO"; then :
4261 root 1.1 ac_cv_prog_cxx_g=yes
4262     else
4263 root 1.3 CXXFLAGS=""
4264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 root 1.1 /* end confdefs.h. */
4266    
4267     int
4268     main ()
4269     {
4270    
4271     ;
4272     return 0;
4273     }
4274     _ACEOF
4275 root 1.3 if ac_fn_cxx_try_compile "$LINENO"; then :
4276    
4277 root 1.1 else
4278 root 1.3 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4279 root 1.1 CXXFLAGS="-g"
4280 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 root 1.1 /* end confdefs.h. */
4282    
4283     int
4284     main ()
4285     {
4286    
4287     ;
4288     return 0;
4289     }
4290     _ACEOF
4291 root 1.3 if ac_fn_cxx_try_compile "$LINENO"; then :
4292 root 1.1 ac_cv_prog_cxx_g=yes
4293     fi
4294     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4295     fi
4296     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297     fi
4298     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299     ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4300     fi
4301 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4302     $as_echo "$ac_cv_prog_cxx_g" >&6; }
4303 root 1.1 if test "$ac_test_CXXFLAGS" = set; then
4304     CXXFLAGS=$ac_save_CXXFLAGS
4305     elif test $ac_cv_prog_cxx_g = yes; then
4306     if test "$GXX" = yes; then
4307     CXXFLAGS="-g -O2"
4308     else
4309     CXXFLAGS="-g"
4310     fi
4311     else
4312     if test "$GXX" = yes; then
4313     CXXFLAGS="-O2"
4314     else
4315     CXXFLAGS=
4316     fi
4317     fi
4318     ac_ext=c
4319     ac_cpp='$CPP $CPPFLAGS'
4320     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323    
4324     depcc="$CXX" am_compiler_list=
4325    
4326 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4327     $as_echo_n "checking dependency style of $depcc... " >&6; }
4328     if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4329     $as_echo_n "(cached) " >&6
4330 root 1.1 else
4331     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332     # We make a subdir and do the tests there. Otherwise we can end up
4333     # making bogus files that we don't know about and never remove. For
4334     # instance it was reported that on HP-UX the gcc test will end up
4335     # making a dummy file named `D' -- because `-MD' means `put the output
4336     # in D'.
4337     mkdir conftest.dir
4338     # Copy depcomp to subdir because otherwise we won't find it if we're
4339     # using a relative directory.
4340     cp "$am_depcomp" conftest.dir
4341     cd conftest.dir
4342     # We will build objects and dependencies in a subdirectory because
4343     # it helps to detect inapplicable dependency modes. For instance
4344     # both Tru64's cc and ICC support -MD to output dependencies as a
4345     # side effect of compilation, but ICC will put the dependencies in
4346     # the current directory while Tru64 will put them in the object
4347     # directory.
4348     mkdir sub
4349    
4350     am_cv_CXX_dependencies_compiler_type=none
4351     if test "$am_compiler_list" = ""; then
4352     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353     fi
4354     for depmode in $am_compiler_list; do
4355     # Setup a source with many dependencies, because some compilers
4356     # like to wrap large dependency lists on column 80 (with \), and
4357     # we should not choose a depcomp mode which is confused by this.
4358     #
4359     # We need to recreate these files for each test, as the compiler may
4360     # overwrite some of them when testing with obscure command lines.
4361     # This happens at least with the AIX C compiler.
4362     : > sub/conftest.c
4363     for i in 1 2 3 4 5 6; do
4364     echo '#include "conftst'$i'.h"' >> sub/conftest.c
4365 root 1.2 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4366     # Solaris 8's {/usr,}/bin/sh.
4367     touch sub/conftst$i.h
4368 root 1.1 done
4369     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4370    
4371     case $depmode in
4372     nosideeffect)
4373     # after this tag, mechanisms are not by side-effect, so they'll
4374     # only be used when explicitly requested
4375     if test "x$enable_dependency_tracking" = xyes; then
4376     continue
4377     else
4378     break
4379     fi
4380     ;;
4381     none) break ;;
4382     esac
4383     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4384     # mode. It turns out that the SunPro C++ compiler does not properly
4385     # handle `-M -o', and we need to detect this.
4386     if depmode=$depmode \
4387     source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4388     depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4389     $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4390     >/dev/null 2>conftest.err &&
4391 root 1.2 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4392 root 1.1 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4393     grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4394     ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4395     # icc doesn't choke on unknown options, it will just issue warnings
4396 root 1.2 # or remarks (even with -Werror). So we grep stderr for any message
4397     # that says an option was ignored or not supported.
4398     # When given -MP, icc 7.0 and 7.1 complain thusly:
4399     # icc: Command line warning: ignoring option '-M'; no argument required
4400     # The diagnosis changed in icc 8.0:
4401     # icc: Command line remark: option '-MP' not supported
4402     if (grep 'ignoring option' conftest.err ||
4403     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4404 root 1.1 am_cv_CXX_dependencies_compiler_type=$depmode
4405     break
4406     fi
4407     fi
4408     done
4409    
4410     cd ..
4411     rm -rf conftest.dir
4412     else
4413     am_cv_CXX_dependencies_compiler_type=none
4414     fi
4415    
4416     fi
4417 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4418     $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4419 root 1.1 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4420    
4421 root 1.2 if
4422 root 1.1 test "x$enable_dependency_tracking" != xno \
4423     && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4424     am__fastdepCXX_TRUE=
4425     am__fastdepCXX_FALSE='#'
4426     else
4427     am__fastdepCXX_TRUE='#'
4428     am__fastdepCXX_FALSE=
4429     fi
4430    
4431    
4432    
4433     ac_ext=cpp
4434     ac_cpp='$CXXCPP $CPPFLAGS'
4435     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4436     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4437     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4438    
4439    
4440    
4441    
4442    
4443     ac_ext=cpp
4444     ac_cpp='$CXXCPP $CPPFLAGS'
4445     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4448 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4449     $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4450 root 1.1 if test -z "$CXXCPP"; then
4451 root 1.3 if ${ac_cv_prog_CXXCPP+:} false; then :
4452     $as_echo_n "(cached) " >&6
4453 root 1.1 else
4454     # Double quotes because CXXCPP needs to be expanded
4455     for CXXCPP in "$CXX -E" "/lib/cpp"
4456     do
4457     ac_preproc_ok=false
4458     for ac_cxx_preproc_warn_flag in '' yes
4459     do
4460     # Use a header file that comes with gcc, so configuring glibc
4461     # with a fresh cross-compiler works.
4462     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4463     # <limits.h> exists even on freestanding compilers.
4464     # On the NeXT, cc -E runs the code through the compiler's parser,
4465     # not just through cpp. "Syntax error" is here to catch this case.
4466 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 root 1.1 /* end confdefs.h. */
4468     #ifdef __STDC__
4469     # include <limits.h>
4470     #else
4471     # include <assert.h>
4472     #endif
4473     Syntax error
4474     _ACEOF
4475 root 1.3 if ac_fn_cxx_try_cpp "$LINENO"; then :
4476    
4477 root 1.1 else
4478     # Broken: fails on valid input.
4479     continue
4480     fi
4481 root 1.3 rm -f conftest.err conftest.i conftest.$ac_ext
4482 root 1.1
4483     # OK, works on sane cases. Now check whether nonexistent headers
4484     # can be detected and how.
4485 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 root 1.1 /* end confdefs.h. */
4487     #include <ac_nonexistent.h>
4488     _ACEOF
4489 root 1.3 if ac_fn_cxx_try_cpp "$LINENO"; then :
4490 root 1.1 # Broken: success on invalid input.
4491     continue
4492     else
4493     # Passes both tests.
4494     ac_preproc_ok=:
4495     break
4496     fi
4497 root 1.3 rm -f conftest.err conftest.i conftest.$ac_ext
4498 root 1.1
4499     done
4500     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4501 root 1.3 rm -f conftest.i conftest.err conftest.$ac_ext
4502     if $ac_preproc_ok; then :
4503 root 1.1 break
4504     fi
4505    
4506     done
4507     ac_cv_prog_CXXCPP=$CXXCPP
4508    
4509     fi
4510     CXXCPP=$ac_cv_prog_CXXCPP
4511     else
4512     ac_cv_prog_CXXCPP=$CXXCPP
4513     fi
4514 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4515     $as_echo "$CXXCPP" >&6; }
4516 root 1.1 ac_preproc_ok=false
4517     for ac_cxx_preproc_warn_flag in '' yes
4518     do
4519     # Use a header file that comes with gcc, so configuring glibc
4520     # with a fresh cross-compiler works.
4521     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4522     # <limits.h> exists even on freestanding compilers.
4523     # On the NeXT, cc -E runs the code through the compiler's parser,
4524     # not just through cpp. "Syntax error" is here to catch this case.
4525 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 root 1.1 /* end confdefs.h. */
4527     #ifdef __STDC__
4528     # include <limits.h>
4529     #else
4530     # include <assert.h>
4531     #endif
4532     Syntax error
4533     _ACEOF
4534 root 1.3 if ac_fn_cxx_try_cpp "$LINENO"; then :
4535    
4536 root 1.1 else
4537     # Broken: fails on valid input.
4538     continue
4539     fi
4540 root 1.3 rm -f conftest.err conftest.i conftest.$ac_ext
4541 root 1.1
4542     # OK, works on sane cases. Now check whether nonexistent headers
4543     # can be detected and how.
4544 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 root 1.1 /* end confdefs.h. */
4546     #include <ac_nonexistent.h>
4547     _ACEOF
4548 root 1.3 if ac_fn_cxx_try_cpp "$LINENO"; then :
4549 root 1.1 # Broken: success on invalid input.
4550     continue
4551     else
4552     # Passes both tests.
4553     ac_preproc_ok=:
4554     break
4555     fi
4556 root 1.3 rm -f conftest.err conftest.i conftest.$ac_ext
4557 root 1.1
4558     done
4559     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 root 1.3 rm -f conftest.i conftest.err conftest.$ac_ext
4561     if $ac_preproc_ok; then :
4562    
4563 root 1.1 else
4564 root 1.3 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566     as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4567     See \`config.log' for more details" "$LINENO" 5; }
4568 root 1.1 fi
4569    
4570     ac_ext=cpp
4571     ac_cpp='$CXXCPP $CPPFLAGS'
4572     ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573     ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574     ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4575    
4576    
4577 root 1.3 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4578     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4579     inttypes.h stdint.h unistd.h
4580     do :
4581     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4582     ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4583     "
4584     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4585     cat >>confdefs.h <<_ACEOF
4586     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4587 root 1.1 _ACEOF
4588    
4589     fi
4590    
4591 root 1.3 done
4592 root 1.1
4593    
4594 root 1.3 for ac_header in GL/gl.h
4595     do :
4596     ac_fn_cxx_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default"
4597     if test "x$ac_cv_header_GL_gl_h" = xyes; then :
4598 root 1.1 cat >>confdefs.h <<_ACEOF
4599 root 1.3 #define HAVE_GL_GL_H 1
4600 root 1.1 _ACEOF
4601    
4602 root 1.3 for ac_header in GL/glu.h
4603     do :
4604     ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glu.h" "ac_cv_header_GL_glu_h" "$ac_includes_default"
4605     if test "x$ac_cv_header_GL_glu_h" = xyes; then :
4606 root 1.1 cat >>confdefs.h <<_ACEOF
4607 root 1.3 #define HAVE_GL_GLU_H 1
4608 root 1.1 _ACEOF
4609    
4610 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4611     $as_echo_n "checking for X... " >&6; }
4612 root 1.1
4613    
4614     # Check whether --with-x was given.
4615 root 1.3 if test "${with_x+set}" = set; then :
4616 root 1.1 withval=$with_x;
4617     fi
4618    
4619     # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4620     if test "x$with_x" = xno; then
4621     # The user explicitly disabled X.
4622     have_x=disabled
4623     else
4624     case $x_includes,$x_libraries in #(
4625 root 1.3 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4626     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4627     $as_echo_n "(cached) " >&6
4628 root 1.1 else
4629     # One or both of the vars are not set, and there is no cached value.
4630     ac_x_includes=no ac_x_libraries=no
4631     rm -f -r conftest.dir
4632     if mkdir conftest.dir; then
4633     cd conftest.dir
4634     cat >Imakefile <<'_ACEOF'
4635     incroot:
4636     @echo incroot='${INCROOT}'
4637     usrlibdir:
4638     @echo usrlibdir='${USRLIBDIR}'
4639     libdir:
4640     @echo libdir='${LIBDIR}'
4641     _ACEOF
4642     if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4643 root 1.3 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4644 root 1.1 for ac_var in incroot usrlibdir libdir; do
4645     eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4646     done
4647     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4648 root 1.3 for ac_extension in a so sl dylib la dll; do
4649 root 1.1 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4650     test -f "$ac_im_libdir/libX11.$ac_extension"; then
4651     ac_im_usrlibdir=$ac_im_libdir; break
4652     fi
4653     done
4654     # Screen out bogus values from the imake configuration. They are
4655     # bogus both because they are the default anyway, and because
4656     # using them would break gcc on systems where it needs fixed includes.
4657     case $ac_im_incroot in
4658     /usr/include) ac_x_includes= ;;
4659     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4660     esac
4661     case $ac_im_usrlibdir in
4662 root 1.3 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4663 root 1.1 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4664     esac
4665     fi
4666     cd ..
4667     rm -f -r conftest.dir
4668     fi
4669    
4670     # Standard set of common directories for X headers.
4671     # Check X11 before X11Rn because it is often a symlink to the current release.
4672     ac_x_header_dirs='
4673     /usr/X11/include
4674 root 1.3 /usr/X11R7/include
4675 root 1.1 /usr/X11R6/include
4676     /usr/X11R5/include
4677     /usr/X11R4/include
4678    
4679     /usr/include/X11
4680 root 1.3 /usr/include/X11R7
4681 root 1.1 /usr/include/X11R6
4682     /usr/include/X11R5
4683     /usr/include/X11R4
4684    
4685     /usr/local/X11/include
4686 root 1.3 /usr/local/X11R7/include
4687 root 1.1 /usr/local/X11R6/include
4688     /usr/local/X11R5/include
4689     /usr/local/X11R4/include
4690    
4691     /usr/local/include/X11
4692 root 1.3 /usr/local/include/X11R7
4693 root 1.1 /usr/local/include/X11R6
4694     /usr/local/include/X11R5
4695     /usr/local/include/X11R4
4696    
4697     /usr/X386/include
4698     /usr/x386/include
4699     /usr/XFree86/include/X11
4700    
4701     /usr/include
4702     /usr/local/include
4703     /usr/unsupported/include
4704     /usr/athena/include
4705     /usr/local/x11r5/include
4706     /usr/lpp/Xamples/include
4707    
4708     /usr/openwin/include
4709     /usr/openwin/share/include'
4710    
4711     if test "$ac_x_includes" = no; then
4712     # Guess where to find include files, by looking for Xlib.h.
4713     # First, try using that file with no special directory specified.
4714 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 root 1.1 /* end confdefs.h. */
4716     #include <X11/Xlib.h>
4717     _ACEOF
4718 root 1.3 if ac_fn_cxx_try_cpp "$LINENO"; then :
4719 root 1.1 # We can compile using X headers with no special include directory.
4720     ac_x_includes=
4721     else
4722     for ac_dir in $ac_x_header_dirs; do
4723     if test -r "$ac_dir/X11/Xlib.h"; then
4724     ac_x_includes=$ac_dir
4725     break
4726     fi
4727     done
4728     fi
4729 root 1.3 rm -f conftest.err conftest.i conftest.$ac_ext
4730 root 1.1 fi # $ac_x_includes = no
4731    
4732     if test "$ac_x_libraries" = no; then
4733     # Check for the libraries.
4734     # See if we find them without any special options.
4735     # Don't add to $LIBS permanently.
4736     ac_save_LIBS=$LIBS
4737     LIBS="-lX11 $LIBS"
4738 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 root 1.1 /* end confdefs.h. */
4740     #include <X11/Xlib.h>
4741     int
4742     main ()
4743     {
4744     XrmInitialize ()
4745     ;
4746     return 0;
4747     }
4748     _ACEOF
4749 root 1.3 if ac_fn_cxx_try_link "$LINENO"; then :
4750 root 1.1 LIBS=$ac_save_LIBS
4751     # We can link X programs with no special library path.
4752     ac_x_libraries=
4753     else
4754 root 1.3 LIBS=$ac_save_LIBS
4755     for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4756 root 1.1 do
4757     # Don't even attempt the hair of trying to link an X program!
4758 root 1.3 for ac_extension in a so sl dylib la dll; do
4759 root 1.1 if test -r "$ac_dir/libX11.$ac_extension"; then
4760     ac_x_libraries=$ac_dir
4761     break 2
4762     fi
4763     done
4764     done
4765     fi
4766 root 1.3 rm -f core conftest.err conftest.$ac_objext \
4767     conftest$ac_exeext conftest.$ac_ext
4768 root 1.1 fi # $ac_x_libraries = no
4769    
4770     case $ac_x_includes,$ac_x_libraries in #(
4771     no,* | *,no | *\'*)
4772     # Didn't find X, or a directory has "'" in its name.
4773     ac_cv_have_x="have_x=no";; #(
4774     *)
4775     # Record where we found X for the cache.
4776     ac_cv_have_x="have_x=yes\
4777     ac_x_includes='$ac_x_includes'\
4778     ac_x_libraries='$ac_x_libraries'"
4779     esac
4780     fi
4781     ;; #(
4782     *) have_x=yes;;
4783     esac
4784     eval "$ac_cv_have_x"
4785     fi # $with_x != no
4786    
4787     if test "$have_x" != yes; then
4788 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4789     $as_echo "$have_x" >&6; }
4790 root 1.1 no_x=yes
4791     else
4792     # If each of the values was on the command line, it overrides each guess.
4793     test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4794     test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4795     # Update the cache value to reflect the command line values.
4796     ac_cv_have_x="have_x=yes\
4797     ac_x_includes='$x_includes'\
4798     ac_x_libraries='$x_libraries'"
4799 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4800     $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4801 root 1.1 fi
4802    
4803 root 1.3 CPPFLAGS="$CPPFLAGS"
4804     LIBS="$LIBS -lX11"
4805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
4806     $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
4807     if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
4808     $as_echo_n "(cached) " >&6
4809 root 1.1 else
4810     ac_check_lib_save_LIBS=$LIBS
4811     LIBS="-lXext $LIBS"
4812 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 root 1.1 /* end confdefs.h. */
4814    
4815     /* Override any GCC internal prototype to avoid an error.
4816     Use char because int might match the return type of a GCC
4817     builtin and then its argument prototype would still apply. */
4818     #ifdef __cplusplus
4819     extern "C"
4820     #endif
4821     char XShapeQueryExtension ();
4822     int
4823     main ()
4824     {
4825     return XShapeQueryExtension ();
4826     ;
4827     return 0;
4828     }
4829     _ACEOF
4830 root 1.3 if ac_fn_cxx_try_link "$LINENO"; then :
4831 root 1.1 ac_cv_lib_Xext_XShapeQueryExtension=yes
4832     else
4833 root 1.3 ac_cv_lib_Xext_XShapeQueryExtension=no
4834 root 1.1 fi
4835 root 1.3 rm -f core conftest.err conftest.$ac_objext \
4836     conftest$ac_exeext conftest.$ac_ext
4837 root 1.1 LIBS=$ac_check_lib_save_LIBS
4838     fi
4839 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
4840     $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
4841     if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
4842 root 1.1
4843     LIBS="$LIBS -lXext"
4844 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lGL" >&5
4845     $as_echo_n "checking for glBegin in -lGL... " >&6; }
4846     if ${ac_cv_lib_GL_glBegin+:} false; then :
4847     $as_echo_n "(cached) " >&6
4848 root 1.1 else
4849     ac_check_lib_save_LIBS=$LIBS
4850     LIBS="-lGL $LIBS -lpthread $LIBS"
4851 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 root 1.1 /* end confdefs.h. */
4853    
4854     /* Override any GCC internal prototype to avoid an error.
4855     Use char because int might match the return type of a GCC
4856     builtin and then its argument prototype would still apply. */
4857     #ifdef __cplusplus
4858     extern "C"
4859     #endif
4860     char glBegin ();
4861     int
4862     main ()
4863     {
4864     return glBegin ();
4865     ;
4866     return 0;
4867     }
4868     _ACEOF
4869 root 1.3 if ac_fn_cxx_try_link "$LINENO"; then :
4870 root 1.1 ac_cv_lib_GL_glBegin=yes
4871     else
4872 root 1.3 ac_cv_lib_GL_glBegin=no
4873 root 1.1 fi
4874 root 1.3 rm -f core conftest.err conftest.$ac_objext \
4875     conftest$ac_exeext conftest.$ac_ext
4876 root 1.1 LIBS=$ac_check_lib_save_LIBS
4877     fi
4878 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glBegin" >&5
4879     $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
4880     if test "x$ac_cv_lib_GL_glBegin" = xyes; then :
4881    
4882     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluCylinder in -lGLU" >&5
4883     $as_echo_n "checking for gluCylinder in -lGLU... " >&6; }
4884     if ${ac_cv_lib_GLU_gluCylinder+:} false; then :
4885     $as_echo_n "(cached) " >&6
4886 root 1.1 else
4887     ac_check_lib_save_LIBS=$LIBS
4888     LIBS="-lGLU $LIBS -lGL -lpthread $LIBS"
4889 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 root 1.1 /* end confdefs.h. */
4891    
4892     /* Override any GCC internal prototype to avoid an error.
4893     Use char because int might match the return type of a GCC
4894     builtin and then its argument prototype would still apply. */
4895     #ifdef __cplusplus
4896     extern "C"
4897     #endif
4898     char gluCylinder ();
4899     int
4900     main ()
4901     {
4902     return gluCylinder ();
4903     ;
4904     return 0;
4905     }
4906     _ACEOF
4907 root 1.3 if ac_fn_cxx_try_link "$LINENO"; then :
4908 root 1.1 ac_cv_lib_GLU_gluCylinder=yes
4909     else
4910 root 1.3 ac_cv_lib_GLU_gluCylinder=no
4911 root 1.1 fi
4912 root 1.3 rm -f core conftest.err conftest.$ac_objext \
4913     conftest$ac_exeext conftest.$ac_ext
4914 root 1.1 LIBS=$ac_check_lib_save_LIBS
4915     fi
4916 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLU_gluCylinder" >&5
4917     $as_echo "$ac_cv_lib_GLU_gluCylinder" >&6; }
4918     if test "x$ac_cv_lib_GLU_gluCylinder" = xyes; then :
4919 root 1.1
4920     LIBS="$LIBS -lGL -lGLU -lpthread"
4921     have_gl=1
4922    
4923     fi
4924    
4925    
4926     fi
4927    
4928 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4929     $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4930     if ${ac_cv_lib_pthread_pthread_create+:} false; then :
4931     $as_echo_n "(cached) " >&6
4932 root 1.1 else
4933     ac_check_lib_save_LIBS=$LIBS
4934     LIBS="-lpthread $LIBS"
4935 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 root 1.1 /* end confdefs.h. */
4937    
4938     /* Override any GCC internal prototype to avoid an error.
4939     Use char because int might match the return type of a GCC
4940     builtin and then its argument prototype would still apply. */
4941     #ifdef __cplusplus
4942     extern "C"
4943     #endif
4944     char pthread_create ();
4945     int
4946     main ()
4947     {
4948     return pthread_create ();
4949     ;
4950     return 0;
4951     }
4952     _ACEOF
4953 root 1.3 if ac_fn_cxx_try_link "$LINENO"; then :
4954 root 1.1 ac_cv_lib_pthread_pthread_create=yes
4955     else
4956 root 1.3 ac_cv_lib_pthread_pthread_create=no
4957 root 1.1 fi
4958 root 1.3 rm -f core conftest.err conftest.$ac_objext \
4959     conftest$ac_exeext conftest.$ac_ext
4960 root 1.1 LIBS=$ac_check_lib_save_LIBS
4961     fi
4962 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4963     $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4964     if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
4965 root 1.1 PTHREAD=-lpthread
4966     fi
4967    
4968     if test -z "$have_gl" ; then
4969 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glBegin in -lMesaGL" >&5
4970     $as_echo_n "checking for glBegin in -lMesaGL... " >&6; }
4971     if ${ac_cv_lib_MesaGL_glBegin+:} false; then :
4972     $as_echo_n "(cached) " >&6
4973 root 1.1 else
4974     ac_check_lib_save_LIBS=$LIBS
4975     LIBS="-lMesaGL $PTHREAD $LIBS"
4976 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 root 1.1 /* end confdefs.h. */
4978    
4979     /* Override any GCC internal prototype to avoid an error.
4980     Use char because int might match the return type of a GCC
4981     builtin and then its argument prototype would still apply. */
4982     #ifdef __cplusplus
4983     extern "C"
4984     #endif
4985     char glBegin ();
4986     int
4987     main ()
4988     {
4989     return glBegin ();
4990     ;
4991     return 0;
4992     }
4993     _ACEOF
4994 root 1.3 if ac_fn_cxx_try_link "$LINENO"; then :
4995 root 1.1 ac_cv_lib_MesaGL_glBegin=yes
4996     else
4997 root 1.3 ac_cv_lib_MesaGL_glBegin=no
4998 root 1.1 fi
4999 root 1.3 rm -f core conftest.err conftest.$ac_objext \
5000     conftest$ac_exeext conftest.$ac_ext
5001 root 1.1 LIBS=$ac_check_lib_save_LIBS
5002     fi
5003 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGL_glBegin" >&5
5004     $as_echo "$ac_cv_lib_MesaGL_glBegin" >&6; }
5005     if test "x$ac_cv_lib_MesaGL_glBegin" = xyes; then :
5006    
5007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gluCylinder in -lMesaGLU" >&5
5008     $as_echo_n "checking for gluCylinder in -lMesaGLU... " >&6; }
5009     if ${ac_cv_lib_MesaGLU_gluCylinder+:} false; then :
5010     $as_echo_n "(cached) " >&6
5011 root 1.1 else
5012     ac_check_lib_save_LIBS=$LIBS
5013     LIBS="-lMesaGLU -lMesaGL $PTHREAD $LIBS"
5014 root 1.3 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 root 1.1 /* end confdefs.h. */
5016    
5017     /* Override any GCC internal prototype to avoid an error.
5018     Use char because int might match the return type of a GCC
5019     builtin and then its argument prototype would still apply. */
5020     #ifdef __cplusplus
5021     extern "C"
5022     #endif
5023     char gluCylinder ();
5024     int
5025     main ()
5026     {
5027     return gluCylinder ();
5028     ;
5029     return 0;
5030     }
5031     _ACEOF
5032 root 1.3 if ac_fn_cxx_try_link "$LINENO"; then :
5033 root 1.1 ac_cv_lib_MesaGLU_gluCylinder=yes
5034     else
5035 root 1.3 ac_cv_lib_MesaGLU_gluCylinder=no
5036 root 1.1 fi
5037 root 1.3 rm -f core conftest.err conftest.$ac_objext \
5038     conftest$ac_exeext conftest.$ac_ext
5039 root 1.1 LIBS=$ac_check_lib_save_LIBS
5040     fi
5041 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MesaGLU_gluCylinder" >&5
5042     $as_echo "$ac_cv_lib_MesaGLU_gluCylinder" >&6; }
5043     if test "x$ac_cv_lib_MesaGLU_gluCylinder" = xyes; then :
5044 root 1.1
5045     LIBS="$LIBS -lMesaGL -lMesaGLU"
5046     have_gl=1
5047     if test -n "$PTHREAD" ; then
5048 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking wether mesa requires $PTHREAD" >&5
5049     $as_echo_n "checking wether mesa requires $PTHREAD... " >&6; }
5050     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 root 1.1 /* end confdefs.h. */
5052    
5053     int
5054     main ()
5055     {
5056     glBegin()
5057     ;
5058     return 0;
5059     }
5060     _ACEOF
5061 root 1.3 if ac_fn_cxx_try_link "$LINENO"; then :
5062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063     $as_echo "no" >&6; }
5064 root 1.1 else
5065 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5066     $as_echo "yes" >&6; }
5067 root 1.1 LIBS="$LIBS $PTHREAD"
5068     fi
5069 root 1.3 rm -f core conftest.err conftest.$ac_objext \
5070     conftest$ac_exeext conftest.$ac_ext
5071 root 1.1 fi
5072    
5073     fi
5074    
5075    
5076     fi
5077    
5078     fi
5079    
5080     fi
5081    
5082    
5083     fi
5084    
5085     done
5086    
5087    
5088     fi
5089    
5090     done
5091    
5092    
5093 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opengl support" >&5
5094     $as_echo_n "checking for opengl support... " >&6; }
5095 root 1.1 if test -n "$have_gl" ; then
5096 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097     $as_echo "yes" >&6; }
5098 root 1.1
5099 root 1.3 $as_echo "#define HAVE_OPENGL 1" >>confdefs.h
5100 root 1.1
5101     else
5102 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103     $as_echo "no" >&6; }
5104 root 1.1 fi
5105    
5106     for ac_header in vector algorithm queue map string cstring cmath
5107 root 1.3 do :
5108     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5109     ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5110     if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5111 root 1.1 cat >>confdefs.h <<_ACEOF
5112 root 1.3 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5113 root 1.1 _ACEOF
5114    
5115     fi
5116    
5117     done
5118    
5119    
5120     # Extract the first word of "antlr", so it can be a program name with args.
5121     set dummy antlr; ac_word=$2
5122 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123     $as_echo_n "checking for $ac_word... " >&6; }
5124     if ${ac_cv_path_ANTLR+:} false; then :
5125     $as_echo_n "(cached) " >&6
5126 root 1.1 else
5127     case $ANTLR in
5128     [\\/]* | ?:[\\/]*)
5129     ac_cv_path_ANTLR="$ANTLR" # Let the user override the test with a path.
5130     ;;
5131     *)
5132     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133     for as_dir in $PATH
5134     do
5135     IFS=$as_save_IFS
5136     test -z "$as_dir" && as_dir=.
5137 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
5138     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5139 root 1.1 ac_cv_path_ANTLR="$as_dir/$ac_word$ac_exec_ext"
5140 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 root 1.1 break 2
5142     fi
5143     done
5144 root 1.3 done
5145 root 1.1 IFS=$as_save_IFS
5146    
5147     ;;
5148     esac
5149     fi
5150     ANTLR=$ac_cv_path_ANTLR
5151     if test -n "$ANTLR"; then
5152 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
5153     $as_echo "$ANTLR" >&6; }
5154 root 1.1 else
5155 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156     $as_echo "no" >&6; }
5157 root 1.1 fi
5158    
5159    
5160     if test -n "$ANTLR" ; then
5161 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking antlr version" >&5
5162     $as_echo_n "checking antlr version... " >&6; }
5163 root 1.1 ANTLR_VER=`$ANTLR 2>&1 | grep Version | sed -e 's/^.*Version \\([0-9MR.]\\+\\) .*$/\1/'`
5164     if test "$ANTLR_VER" = "1.33MR33" ; then
5165 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_VER, ok" >&5
5166     $as_echo "$ANTLR_VER, ok" >&6; }
5167 root 1.1 # Extract the first word of "dlg", so it can be a program name with args.
5168     set dummy dlg; ac_word=$2
5169 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170     $as_echo_n "checking for $ac_word... " >&6; }
5171     if ${ac_cv_path_DLG+:} false; then :
5172     $as_echo_n "(cached) " >&6
5173 root 1.1 else
5174     case $DLG in
5175     [\\/]* | ?:[\\/]*)
5176     ac_cv_path_DLG="$DLG" # Let the user override the test with a path.
5177     ;;
5178     *)
5179     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180     for as_dir in $PATH
5181     do
5182     IFS=$as_save_IFS
5183     test -z "$as_dir" && as_dir=.
5184 root 1.3 for ac_exec_ext in '' $ac_executable_extensions; do
5185     if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 root 1.1 ac_cv_path_DLG="$as_dir/$ac_word$ac_exec_ext"
5187 root 1.3 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 root 1.1 break 2
5189     fi
5190     done
5191 root 1.3 done
5192 root 1.1 IFS=$as_save_IFS
5193    
5194     ;;
5195     esac
5196     fi
5197     DLG=$ac_cv_path_DLG
5198     if test -n "$DLG"; then
5199 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLG" >&5
5200     $as_echo "$DLG" >&6; }
5201 root 1.1 else
5202 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203     $as_echo "no" >&6; }
5204 root 1.1 fi
5205    
5206    
5207     if test -n "$DLG" ; then
5208 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dlg version" >&5
5209     $as_echo_n "checking dlg version... " >&6; }
5210 root 1.1 DLG_VER=`$DLG 2>&1 | grep Version | sed -e 's/^.*Version \([0-9MR.]\+\) .*$/\1/'`
5211     if test "$DLG_VER" = "1.33MR33" ; then
5212 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLG_VER, ok" >&5
5213     $as_echo "$DLG_VER, ok" >&6; }
5214 root 1.1 HAVE_PCCTS=1
5215     else
5216 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLG_VER, but need 1.33MR33" >&5
5217     $as_echo "$DLG_VER, but need 1.33MR33" >&6; }
5218 root 1.1 fi
5219     fi
5220     else
5221 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_VER, but need 1.33MR33" >&5
5222     $as_echo "$ANTLR_VER, but need 1.33MR33" >&6; }
5223 root 1.1 fi
5224     fi
5225    
5226 root 1.2 if test -n "$HAVE_PCCTS"; then
5227 root 1.1 HAVE_PCCTS_TRUE=
5228     HAVE_PCCTS_FALSE='#'
5229     else
5230     HAVE_PCCTS_TRUE='#'
5231     HAVE_PCCTS_FALSE=
5232     fi
5233    
5234    
5235     for ac_header in getopt.h
5236 root 1.3 do :
5237     ac_fn_cxx_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
5238     if test "x$ac_cv_header_getopt_h" = xyes; then :
5239 root 1.1 cat >>confdefs.h <<_ACEOF
5240 root 1.3 #define HAVE_GETOPT_H 1
5241 root 1.1 _ACEOF
5242    
5243     fi
5244    
5245     done
5246    
5247     for ac_func in getopt_long
5248 root 1.3 do :
5249     ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5250     if test "x$ac_cv_func_getopt_long" = xyes; then :
5251 root 1.1 cat >>confdefs.h <<_ACEOF
5252 root 1.3 #define HAVE_GETOPT_LONG 1
5253 root 1.1 _ACEOF
5254    
5255     else
5256     case " $LIBOBJS " in
5257     *" getopt.$ac_objext "* ) ;;
5258     *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
5259     ;;
5260     esac
5261     case " $LIBOBJS " in
5262     *" getopt1.$ac_objext "* ) ;;
5263     *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
5264     ;;
5265     esac
5266    
5267     fi
5268     done
5269    
5270    
5271     ac_config_files="$ac_config_files Makefile"
5272    
5273     cat >confcache <<\_ACEOF
5274     # This file is a shell script that caches the results of configure
5275     # tests run on this system so they can be shared between configure
5276     # scripts and configure runs, see configure's option --config-cache.
5277     # It is not useful on other systems. If it contains results you don't
5278     # want to keep, you may remove or edit it.
5279     #
5280     # config.status only pays attention to the cache file if you give it
5281     # the --recheck option to rerun configure.
5282     #
5283     # `ac_cv_env_foo' variables (set or unset) will be overridden when
5284     # loading this file, other *unset* `ac_cv_foo' will be assigned the
5285     # following values.
5286    
5287     _ACEOF
5288    
5289     # The following way of writing the cache mishandles newlines in values,
5290     # but we know of no workaround that is simple, portable, and efficient.
5291     # So, we kill variables containing newlines.
5292     # Ultrix sh set writes to stderr and can't be redirected directly,
5293     # and sets the high bit in the cache file unless we assign to the vars.
5294     (
5295     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5296     eval ac_val=\$$ac_var
5297     case $ac_val in #(
5298     *${as_nl}*)
5299     case $ac_var in #(
5300 root 1.3 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5301     $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5302 root 1.1 esac
5303     case $ac_var in #(
5304     _ | IFS | as_nl) ;; #(
5305 root 1.3 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5306     *) { eval $ac_var=; unset $ac_var;} ;;
5307 root 1.1 esac ;;
5308     esac
5309     done
5310    
5311     (set) 2>&1 |
5312     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5313     *${as_nl}ac_space=\ *)
5314 root 1.3 # `set' does not quote correctly, so add quotes: double-quote
5315     # substitution turns \\\\ into \\, and sed turns \\ into \.
5316 root 1.1 sed -n \
5317     "s/'/'\\\\''/g;
5318     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5319     ;; #(
5320     *)
5321     # `set' quotes correctly as required by POSIX, so do not add quotes.
5322     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5323     ;;
5324     esac |
5325     sort
5326     ) |
5327     sed '
5328     /^ac_cv_env_/b end
5329     t clear
5330     :clear
5331     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5332     t end
5333     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5334     :end' >>confcache
5335     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5336     if test -w "$cache_file"; then
5337 root 1.3 if test "x$cache_file" != "x/dev/null"; then
5338     { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5339     $as_echo "$as_me: updating cache $cache_file" >&6;}
5340     if test ! -f "$cache_file" || test -h "$cache_file"; then
5341     cat confcache >"$cache_file"
5342     else
5343     case $cache_file in #(
5344     */* | ?:*)
5345     mv -f confcache "$cache_file"$$ &&
5346     mv -f "$cache_file"$$ "$cache_file" ;; #(
5347     *)
5348     mv -f confcache "$cache_file" ;;
5349     esac
5350     fi
5351     fi
5352 root 1.1 else
5353 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5354     $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5355 root 1.1 fi
5356     fi
5357     rm -f confcache
5358    
5359     test "x$prefix" = xNONE && prefix=$ac_default_prefix
5360     # Let make expand exec_prefix.
5361     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5362    
5363     DEFS=-DHAVE_CONFIG_H
5364    
5365     ac_libobjs=
5366     ac_ltlibobjs=
5367 root 1.3 U=
5368 root 1.1 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5369     # 1. Remove the extension, and $U if already installed.
5370     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5371 root 1.3 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5372 root 1.1 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5373     # will be set to the directory where LIBOBJS objects are built.
5374 root 1.3 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5375     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5376 root 1.1 done
5377     LIBOBJS=$ac_libobjs
5378    
5379     LTLIBOBJS=$ac_ltlibobjs
5380    
5381    
5382     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5383 root 1.3 as_fn_error $? "conditional \"AMDEP\" was never defined.
5384     Usually this means the macro was only invoked conditionally." "$LINENO" 5
5385 root 1.1 fi
5386     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5387 root 1.3 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5388     Usually this means the macro was only invoked conditionally." "$LINENO" 5
5389 root 1.1 fi
5390     if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
5391 root 1.3 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
5392     Usually this means the macro was only invoked conditionally." "$LINENO" 5
5393 root 1.1 fi
5394     if test -z "${HAVE_PCCTS_TRUE}" && test -z "${HAVE_PCCTS_FALSE}"; then
5395 root 1.3 as_fn_error $? "conditional \"HAVE_PCCTS\" was never defined.
5396     Usually this means the macro was only invoked conditionally." "$LINENO" 5
5397 root 1.1 fi
5398    
5399 root 1.3 : "${CONFIG_STATUS=./config.status}"
5400     ac_write_fail=0
5401 root 1.1 ac_clean_files_save=$ac_clean_files
5402     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5403 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5404     $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5405     as_write_fail=0
5406     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5407 root 1.1 #! $SHELL
5408     # Generated by $as_me.
5409     # Run this file to recreate the current configuration.
5410     # Compiler output produced by configure, useful for debugging
5411     # configure, is in config.log if it exists.
5412    
5413     debug=false
5414     ac_cs_recheck=false
5415     ac_cs_silent=false
5416 root 1.3
5417 root 1.1 SHELL=\${CONFIG_SHELL-$SHELL}
5418 root 1.3 export SHELL
5419     _ASEOF
5420     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5421     ## -------------------- ##
5422     ## M4sh Initialization. ##
5423     ## -------------------- ##
5424 root 1.1
5425     # Be more Bourne compatible
5426     DUALCASE=1; export DUALCASE # for MKS sh
5427 root 1.3 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5428 root 1.1 emulate sh
5429     NULLCMD=:
5430 root 1.3 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5431 root 1.1 # is contrary to our usage. Disable this feature.
5432     alias -g '${1+"$@"}'='"$@"'
5433     setopt NO_GLOB_SUBST
5434     else
5435 root 1.3 case `(set -o) 2>/dev/null` in #(
5436     *posix*) :
5437     set -o posix ;; #(
5438     *) :
5439     ;;
5440 root 1.1 esac
5441     fi
5442    
5443    
5444 root 1.3 as_nl='
5445     '
5446     export as_nl
5447     # Printing a long string crashes Solaris 7 /usr/bin/printf.
5448     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5449     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5450     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5451     # Prefer a ksh shell builtin over an external printf program on Solaris,
5452     # but without wasting forks for bash or zsh.
5453     if test -z "$BASH_VERSION$ZSH_VERSION" \
5454     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5455     as_echo='print -r --'
5456     as_echo_n='print -rn --'
5457     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5458     as_echo='printf %s\n'
5459     as_echo_n='printf %s'
5460     else
5461     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5462     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5463     as_echo_n='/usr/ucb/echo -n'
5464 root 1.1 else
5465 root 1.3 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5466     as_echo_n_body='eval
5467     arg=$1;
5468     case $arg in #(
5469     *"$as_nl"*)
5470     expr "X$arg" : "X\\(.*\\)$as_nl";
5471     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5472     esac;
5473     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5474     '
5475     export as_echo_n_body
5476     as_echo_n='sh -c $as_echo_n_body as_echo'
5477 root 1.1 fi
5478 root 1.3 export as_echo_body
5479     as_echo='sh -c $as_echo_body as_echo'
5480 root 1.1 fi
5481    
5482 root 1.3 # The user is always right.
5483     if test "${PATH_SEPARATOR+set}" != set; then
5484     PATH_SEPARATOR=:
5485     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5486     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5487     PATH_SEPARATOR=';'
5488     }
5489 root 1.1 fi
5490    
5491    
5492     # IFS
5493     # We need space, tab and new line, in precisely that order. Quoting is
5494     # there to prevent editors from complaining about space-tab.
5495     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5496     # splitting by setting IFS to empty value.)
5497     IFS=" "" $as_nl"
5498    
5499     # Find who we are. Look in the path if we contain no directory separator.
5500 root 1.3 as_myself=
5501     case $0 in #((
5502 root 1.1 *[\\/]* ) as_myself=$0 ;;
5503     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504     for as_dir in $PATH
5505     do
5506     IFS=$as_save_IFS
5507     test -z "$as_dir" && as_dir=.
5508 root 1.3 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5509     done
5510 root 1.1 IFS=$as_save_IFS
5511    
5512     ;;
5513     esac
5514     # We did not find ourselves, most probably we were run as `sh COMMAND'
5515     # in which case we are not to be found in the path.
5516     if test "x$as_myself" = x; then
5517     as_myself=$0
5518     fi
5519     if test ! -f "$as_myself"; then
5520 root 1.3 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5521     exit 1
5522 root 1.1 fi
5523    
5524 root 1.3 # Unset variables that we do not need and which cause bugs (e.g. in
5525     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5526     # suppresses any "Segmentation fault" message there. '((' could
5527     # trigger a bug in pdksh 5.2.14.
5528     for as_var in BASH_ENV ENV MAIL MAILPATH
5529     do eval test x\${$as_var+set} = xset \
5530     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5531 root 1.1 done
5532     PS1='$ '
5533     PS2='> '
5534     PS4='+ '
5535    
5536     # NLS nuisances.
5537 root 1.3 LC_ALL=C
5538     export LC_ALL
5539     LANGUAGE=C
5540     export LANGUAGE
5541    
5542     # CDPATH.
5543     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5544    
5545    
5546     # as_fn_error STATUS ERROR [LINENO LOG_FD]
5547     # ----------------------------------------
5548     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5549     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5550     # script with STATUS, using 1 if that was 0.
5551     as_fn_error ()
5552     {
5553     as_status=$1; test $as_status -eq 0 && as_status=1
5554     if test "$4"; then
5555     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5556     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5557     fi
5558     $as_echo "$as_me: error: $2" >&2
5559     as_fn_exit $as_status
5560     } # as_fn_error
5561    
5562    
5563     # as_fn_set_status STATUS
5564     # -----------------------
5565     # Set $? to STATUS, without forking.
5566     as_fn_set_status ()
5567     {
5568     return $1
5569     } # as_fn_set_status
5570    
5571     # as_fn_exit STATUS
5572     # -----------------
5573     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5574     as_fn_exit ()
5575     {
5576     set +e
5577     as_fn_set_status $1
5578     exit $1
5579     } # as_fn_exit
5580    
5581     # as_fn_unset VAR
5582     # ---------------
5583     # Portably unset VAR.
5584     as_fn_unset ()
5585     {
5586     { eval $1=; unset $1;}
5587     }
5588     as_unset=as_fn_unset
5589     # as_fn_append VAR VALUE
5590     # ----------------------
5591     # Append the text in VALUE to the end of the definition contained in VAR. Take
5592     # advantage of any shell optimizations that allow amortized linear growth over
5593     # repeated appends, instead of the typical quadratic growth present in naive
5594     # implementations.
5595     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5596     eval 'as_fn_append ()
5597     {
5598     eval $1+=\$2
5599     }'
5600     else
5601     as_fn_append ()
5602     {
5603     eval $1=\$$1\$2
5604     }
5605     fi # as_fn_append
5606    
5607     # as_fn_arith ARG...
5608     # ------------------
5609     # Perform arithmetic evaluation on the ARGs, and store the result in the
5610     # global $as_val. Take advantage of shells that can avoid forks. The arguments
5611     # must be portable across $(()) and expr.
5612     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5613     eval 'as_fn_arith ()
5614     {
5615     as_val=$(( $* ))
5616     }'
5617     else
5618     as_fn_arith ()
5619     {
5620     as_val=`expr "$@" || test $? -eq 1`
5621     }
5622     fi # as_fn_arith
5623    
5624 root 1.1
5625     if expr a : '\(a\)' >/dev/null 2>&1 &&
5626     test "X`expr 00001 : '.*\(...\)'`" = X001; then
5627     as_expr=expr
5628     else
5629     as_expr=false
5630     fi
5631    
5632     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5633     as_basename=basename
5634     else
5635     as_basename=false
5636     fi
5637    
5638 root 1.3 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5639     as_dirname=dirname
5640     else
5641     as_dirname=false
5642     fi
5643 root 1.1
5644     as_me=`$as_basename -- "$0" ||
5645     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5646     X"$0" : 'X\(//\)$' \| \
5647     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5648 root 1.3 $as_echo X/"$0" |
5649 root 1.1 sed '/^.*\/\([^/][^/]*\)\/*$/{
5650     s//\1/
5651     q
5652     }
5653     /^X\/\(\/\/\)$/{
5654     s//\1/
5655     q
5656     }
5657     /^X\/\(\/\).*/{
5658     s//\1/
5659     q
5660     }
5661     s/.*/./; q'`
5662    
5663 root 1.3 # Avoid depending upon Character Ranges.
5664     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5665     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5666     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5667     as_cr_digits='0123456789'
5668     as_cr_alnum=$as_cr_Letters$as_cr_digits
5669 root 1.1
5670     ECHO_C= ECHO_N= ECHO_T=
5671 root 1.3 case `echo -n x` in #(((((
5672 root 1.1 -n*)
5673 root 1.3 case `echo 'xy\c'` in
5674 root 1.1 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5675 root 1.3 xy) ECHO_C='\c';;
5676     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5677     ECHO_T=' ';;
5678 root 1.1 esac;;
5679     *)
5680     ECHO_N='-n';;
5681     esac
5682    
5683     rm -f conf$$ conf$$.exe conf$$.file
5684     if test -d conf$$.dir; then
5685     rm -f conf$$.dir/conf$$.file
5686     else
5687     rm -f conf$$.dir
5688 root 1.3 mkdir conf$$.dir 2>/dev/null
5689 root 1.1 fi
5690 root 1.3 if (echo >conf$$.file) 2>/dev/null; then
5691     if ln -s conf$$.file conf$$ 2>/dev/null; then
5692     as_ln_s='ln -s'
5693     # ... but there are two gotchas:
5694     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5695     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5696     # In both cases, we have to default to `cp -pR'.
5697     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5698     as_ln_s='cp -pR'
5699     elif ln conf$$.file conf$$ 2>/dev/null; then
5700     as_ln_s=ln
5701     else
5702     as_ln_s='cp -pR'
5703     fi
5704 root 1.1 else
5705 root 1.3 as_ln_s='cp -pR'
5706 root 1.1 fi
5707     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5708     rmdir conf$$.dir 2>/dev/null
5709    
5710 root 1.3
5711     # as_fn_mkdir_p
5712     # -------------
5713     # Create "$as_dir" as a directory, including parents if necessary.
5714     as_fn_mkdir_p ()
5715     {
5716    
5717     case $as_dir in #(
5718     -*) as_dir=./$as_dir;;
5719     esac
5720     test -d "$as_dir" || eval $as_mkdir_p || {
5721     as_dirs=
5722     while :; do
5723     case $as_dir in #(
5724     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5725     *) as_qdir=$as_dir;;
5726     esac
5727     as_dirs="'$as_qdir' $as_dirs"
5728     as_dir=`$as_dirname -- "$as_dir" ||
5729     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5730     X"$as_dir" : 'X\(//\)[^/]' \| \
5731     X"$as_dir" : 'X\(//\)$' \| \
5732     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5733     $as_echo X"$as_dir" |
5734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5735     s//\1/
5736     q
5737     }
5738     /^X\(\/\/\)[^/].*/{
5739     s//\1/
5740     q
5741     }
5742     /^X\(\/\/\)$/{
5743     s//\1/
5744     q
5745     }
5746     /^X\(\/\).*/{
5747     s//\1/
5748     q
5749     }
5750     s/.*/./; q'`
5751     test -d "$as_dir" && break
5752     done
5753     test -z "$as_dirs" || eval "mkdir $as_dirs"
5754     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5755    
5756    
5757     } # as_fn_mkdir_p
5758 root 1.1 if mkdir -p . 2>/dev/null; then
5759 root 1.3 as_mkdir_p='mkdir -p "$as_dir"'
5760 root 1.1 else
5761     test -d ./-p && rmdir ./-p
5762     as_mkdir_p=false
5763     fi
5764    
5765 root 1.3
5766     # as_fn_executable_p FILE
5767     # -----------------------
5768     # Test if FILE is an executable regular file.
5769     as_fn_executable_p ()
5770     {
5771     test -f "$1" && test -x "$1"
5772     } # as_fn_executable_p
5773     as_test_x='test -x'
5774     as_executable_p=as_fn_executable_p
5775 root 1.1
5776     # Sed expression to map a string onto a valid CPP name.
5777     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5778    
5779     # Sed expression to map a string onto a valid variable name.
5780     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5781    
5782    
5783     exec 6>&1
5784 root 1.3 ## ----------------------------------- ##
5785     ## Main body of $CONFIG_STATUS script. ##
5786     ## ----------------------------------- ##
5787     _ASEOF
5788     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5789 root 1.1
5790 root 1.3 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5791     # Save the log message, to keep $0 and so on meaningful, and to
5792 root 1.1 # report actual input values of CONFIG_FILES etc. instead of their
5793     # values after options handling.
5794     ac_log="
5795     This file was extended by $as_me, which was
5796 root 1.3 generated by GNU Autoconf 2.69. Invocation command line was
5797 root 1.1
5798     CONFIG_FILES = $CONFIG_FILES
5799     CONFIG_HEADERS = $CONFIG_HEADERS
5800     CONFIG_LINKS = $CONFIG_LINKS
5801     CONFIG_COMMANDS = $CONFIG_COMMANDS
5802     $ $0 $@
5803    
5804     on `(hostname || uname -n) 2>/dev/null | sed 1q`
5805     "
5806    
5807     _ACEOF
5808    
5809 root 1.3 case $ac_config_files in *"
5810     "*) set x $ac_config_files; shift; ac_config_files=$*;;
5811     esac
5812    
5813     case $ac_config_headers in *"
5814     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5815     esac
5816    
5817    
5818     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5819 root 1.1 # Files that config.status was made for.
5820     config_files="$ac_config_files"
5821     config_headers="$ac_config_headers"
5822     config_commands="$ac_config_commands"
5823    
5824     _ACEOF
5825    
5826 root 1.3 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5827 root 1.1 ac_cs_usage="\
5828 root 1.3 \`$as_me' instantiates files and other configuration actions
5829     from templates according to the current configuration. Unless the files
5830     and actions are specified as TAGs, all are instantiated by default.
5831 root 1.1
5832 root 1.3 Usage: $0 [OPTION]... [TAG]...
5833 root 1.1
5834     -h, --help print this help, then exit
5835     -V, --version print version number and configuration settings, then exit
5836 root 1.3 --config print configuration, then exit
5837     -q, --quiet, --silent
5838     do not print progress messages
5839 root 1.1 -d, --debug don't remove temporary files
5840     --recheck update $as_me by reconfiguring in the same conditions
5841 root 1.3 --file=FILE[:TEMPLATE]
5842     instantiate the configuration file FILE
5843     --header=FILE[:TEMPLATE]
5844     instantiate the configuration header FILE
5845 root 1.1
5846     Configuration files:
5847     $config_files
5848    
5849     Configuration headers:
5850     $config_headers
5851    
5852     Configuration commands:
5853     $config_commands
5854    
5855 root 1.3 Report bugs to the package provider."
5856 root 1.1
5857     _ACEOF
5858 root 1.3 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5859     ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5860 root 1.1 ac_cs_version="\\
5861     config.status
5862 root 1.3 configured by $0, generated by GNU Autoconf 2.69,
5863     with options \\"\$ac_cs_config\\"
5864 root 1.1
5865 root 1.3 Copyright (C) 2012 Free Software Foundation, Inc.
5866 root 1.1 This config.status script is free software; the Free Software Foundation
5867     gives unlimited permission to copy, distribute and modify it."
5868    
5869     ac_pwd='$ac_pwd'
5870     srcdir='$srcdir'
5871     INSTALL='$INSTALL'
5872 root 1.2 MKDIR_P='$MKDIR_P'
5873 root 1.3 AWK='$AWK'
5874     test -n "\$AWK" || AWK=awk
5875 root 1.1 _ACEOF
5876    
5877 root 1.3 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5878     # The default lists apply if the user does not specify any file.
5879 root 1.1 ac_need_defaults=:
5880     while test $# != 0
5881     do
5882     case $1 in
5883 root 1.3 --*=?*)
5884 root 1.1 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5885     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5886     ac_shift=:
5887     ;;
5888 root 1.3 --*=)
5889     ac_option=`expr "X$1" : 'X\([^=]*\)='`
5890     ac_optarg=
5891     ac_shift=:
5892     ;;
5893 root 1.1 *)
5894     ac_option=$1
5895     ac_optarg=$2
5896     ac_shift=shift
5897     ;;
5898     esac
5899    
5900     case $ac_option in
5901     # Handling of the options.
5902     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5903     ac_cs_recheck=: ;;
5904     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5905 root 1.3 $as_echo "$ac_cs_version"; exit ;;
5906     --config | --confi | --conf | --con | --co | --c )
5907     $as_echo "$ac_cs_config"; exit ;;
5908 root 1.1 --debug | --debu | --deb | --de | --d | -d )
5909     debug=: ;;
5910     --file | --fil | --fi | --f )
5911     $ac_shift
5912 root 1.3 case $ac_optarg in
5913     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5914     '') as_fn_error $? "missing file argument" ;;
5915     esac
5916     as_fn_append CONFIG_FILES " '$ac_optarg'"
5917 root 1.1 ac_need_defaults=false;;
5918     --header | --heade | --head | --hea )
5919     $ac_shift
5920 root 1.3 case $ac_optarg in
5921     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5922     esac
5923     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5924 root 1.1 ac_need_defaults=false;;
5925     --he | --h)
5926     # Conflict between --help and --header
5927 root 1.3 as_fn_error $? "ambiguous option: \`$1'
5928     Try \`$0 --help' for more information.";;
5929 root 1.1 --help | --hel | -h )
5930 root 1.3 $as_echo "$ac_cs_usage"; exit ;;
5931 root 1.1 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5932     | -silent | --silent | --silen | --sile | --sil | --si | --s)
5933     ac_cs_silent=: ;;
5934    
5935     # This is an error.
5936 root 1.3 -*) as_fn_error $? "unrecognized option: \`$1'
5937     Try \`$0 --help' for more information." ;;
5938 root 1.1
5939 root 1.3 *) as_fn_append ac_config_targets " $1"
5940 root 1.1 ac_need_defaults=false ;;
5941    
5942     esac
5943     shift
5944     done
5945    
5946     ac_configure_extra_args=
5947    
5948     if $ac_cs_silent; then
5949     exec 6>/dev/null
5950     ac_configure_extra_args="$ac_configure_extra_args --silent"
5951     fi
5952    
5953     _ACEOF
5954 root 1.3 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5955 root 1.1 if \$ac_cs_recheck; then
5956 root 1.3 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5957     shift
5958     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5959     CONFIG_SHELL='$SHELL'
5960 root 1.1 export CONFIG_SHELL
5961 root 1.3 exec "\$@"
5962 root 1.1 fi
5963    
5964     _ACEOF
5965 root 1.3 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5966 root 1.1 exec 5>>config.log
5967     {
5968     echo
5969     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5970     ## Running $as_me. ##
5971     _ASBOX
5972 root 1.3 $as_echo "$ac_log"
5973 root 1.1 } >&5
5974    
5975     _ACEOF
5976 root 1.3 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5977 root 1.1 #
5978     # INIT-COMMANDS
5979     #
5980     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5981    
5982     _ACEOF
5983    
5984 root 1.3 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5985 root 1.1
5986     # Handling of arguments.
5987     for ac_config_target in $ac_config_targets
5988     do
5989     case $ac_config_target in
5990     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5991     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5992     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5993    
5994 root 1.3 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5995 root 1.1 esac
5996     done
5997    
5998    
5999     # If the user did not use the arguments to specify the items to instantiate,
6000     # then the envvar interface is used. Set only those that are not.
6001     # We use the long form for the default assignment because of an extremely
6002     # bizarre bug on SunOS 4.1.3.
6003     if $ac_need_defaults; then
6004     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6005     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6006     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6007     fi
6008    
6009     # Have a temporary directory for convenience. Make it in the build tree
6010     # simply because there is no reason against having it here, and in addition,
6011     # creating and moving files from /tmp can sometimes cause problems.
6012     # Hook for its removal unless debugging.
6013     # Note that there is a small window in which the directory will not be cleaned:
6014     # after its creation but before its name has been assigned to `$tmp'.
6015     $debug ||
6016     {
6017 root 1.3 tmp= ac_tmp=
6018 root 1.1 trap 'exit_status=$?
6019 root 1.3 : "${ac_tmp:=$tmp}"
6020     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6021 root 1.1 ' 0
6022 root 1.3 trap 'as_fn_exit 1' 1 2 13 15
6023 root 1.1 }
6024     # Create a (secure) tmp directory for tmp files.
6025    
6026     {
6027     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6028 root 1.3 test -d "$tmp"
6029 root 1.1 } ||
6030     {
6031     tmp=./conf$$-$RANDOM
6032     (umask 077 && mkdir "$tmp")
6033 root 1.3 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6034     ac_tmp=$tmp
6035    
6036     # Set up the scripts for CONFIG_FILES section.
6037     # No need to generate them if there are no CONFIG_FILES.
6038     # This happens for instance with `./config.status config.h'.
6039     if test -n "$CONFIG_FILES"; then
6040 root 1.1
6041    
6042 root 1.3 ac_cr=`echo X | tr X '\015'`
6043     # On cygwin, bash can eat \r inside `` if the user requested igncr.
6044     # But we know of no other shell where ac_cr would be empty at this
6045     # point, so we can use a bashism as a fallback.
6046     if test "x$ac_cr" = x; then
6047     eval ac_cr=\$\'\\r\'
6048     fi
6049     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6050     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6051     ac_cs_awk_cr='\\r'
6052     else
6053     ac_cs_awk_cr=$ac_cr
6054     fi
6055 root 1.1
6056 root 1.3 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6057 root 1.1 _ACEOF
6058    
6059    
6060 root 1.3 {
6061     echo "cat >conf$$subs.awk <<_ACEOF" &&
6062     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6063     echo "_ACEOF"
6064     } >conf$$subs.sh ||
6065     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6066     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6067 root 1.1 ac_delim='%!_!# '
6068     for ac_last_try in false false false false false :; do
6069 root 1.3 . ./conf$$subs.sh ||
6070     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6071 root 1.1
6072 root 1.3 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6073     if test $ac_delim_n = $ac_delim_num; then
6074 root 1.1 break
6075     elif $ac_last_try; then
6076 root 1.3 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6077 root 1.1 else
6078     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6079     fi
6080     done
6081 root 1.3 rm -f conf$$subs.sh
6082 root 1.1
6083 root 1.3 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6084     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6085 root 1.1 _ACEOF
6086 root 1.3 sed -n '
6087     h
6088     s/^/S["/; s/!.*/"]=/
6089     p
6090     g
6091     s/^[^!]*!//
6092     :repl
6093     t repl
6094     s/'"$ac_delim"'$//
6095     t delim
6096     :nl
6097     h
6098     s/\(.\{148\}\)..*/\1/
6099     t more1
6100     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6101     p
6102     n
6103     b repl
6104     :more1
6105     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6106     p
6107     g
6108     s/.\{148\}//
6109     t nl
6110     :delim
6111     h
6112     s/\(.\{148\}\)..*/\1/
6113     t more2
6114     s/["\\]/\\&/g; s/^/"/; s/$/"/
6115     p
6116     b
6117     :more2
6118     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6119     p
6120     g
6121     s/.\{148\}//
6122     t delim
6123     ' <conf$$subs.awk | sed '
6124     /^[^""]/{
6125     N
6126     s/\n//
6127     }
6128     ' >>$CONFIG_STATUS || ac_write_fail=1
6129     rm -f conf$$subs.awk
6130     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6131     _ACAWK
6132     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6133     for (key in S) S_is_set[key] = 1
6134     FS = ""
6135 root 1.1
6136 root 1.3 }
6137     {
6138     line = $ 0
6139     nfields = split(line, field, "@")
6140     substed = 0
6141     len = length(field[1])
6142     for (i = 2; i < nfields; i++) {
6143     key = field[i]
6144     keylen = length(key)
6145     if (S_is_set[key]) {
6146     value = S[key]
6147     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6148     len += length(value) + length(field[++i])
6149     substed = 1
6150     } else
6151     len += 1 + keylen
6152     }
6153    
6154     print line
6155     }
6156    
6157     _ACAWK
6158     _ACEOF
6159     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6160     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6161     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6162     else
6163     cat
6164     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6165     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6166     _ACEOF
6167 root 1.1
6168 root 1.3 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6169     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6170 root 1.1 # trailing colons and then remove the whole line if VPATH becomes empty
6171     # (actually we leave an empty line to preserve line numbers).
6172     if test "x$srcdir" = x.; then
6173 root 1.3 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6174     h
6175     s///
6176     s/^/:/
6177     s/[ ]*$/:/
6178     s/:\$(srcdir):/:/g
6179     s/:\${srcdir}:/:/g
6180     s/:@srcdir@:/:/g
6181     s/^:*//
6182 root 1.1 s/:*$//
6183 root 1.3 x
6184     s/\(=[ ]*\).*/\1/
6185     G
6186     s/\n//
6187 root 1.1 s/^[^=]*=[ ]*$//
6188     }'
6189     fi
6190    
6191 root 1.3 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6192 root 1.1 fi # test -n "$CONFIG_FILES"
6193    
6194 root 1.3 # Set up the scripts for CONFIG_HEADERS section.
6195     # No need to generate them if there are no CONFIG_HEADERS.
6196     # This happens for instance with `./config.status Makefile'.
6197     if test -n "$CONFIG_HEADERS"; then
6198     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6199     BEGIN {
6200     _ACEOF
6201    
6202     # Transform confdefs.h into an awk script `defines.awk', embedded as
6203     # here-document in config.status, that substitutes the proper values into
6204     # config.h.in to produce config.h.
6205    
6206     # Create a delimiter string that does not exist in confdefs.h, to ease
6207     # handling of long lines.
6208     ac_delim='%!_!# '
6209     for ac_last_try in false false :; do
6210     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6211     if test -z "$ac_tt"; then
6212     break
6213     elif $ac_last_try; then
6214     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6215     else
6216     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6217     fi
6218     done
6219    
6220     # For the awk script, D is an array of macro values keyed by name,
6221     # likewise P contains macro parameters if any. Preserve backslash
6222     # newline sequences.
6223    
6224     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6225     sed -n '
6226     s/.\{148\}/&'"$ac_delim"'/g
6227     t rset
6228     :rset
6229     s/^[ ]*#[ ]*define[ ][ ]*/ /
6230     t def
6231     d
6232     :def
6233     s/\\$//
6234     t bsnl
6235     s/["\\]/\\&/g
6236     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6237     D["\1"]=" \3"/p
6238     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6239     d
6240     :bsnl
6241     s/["\\]/\\&/g
6242     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6243     D["\1"]=" \3\\\\\\n"\\/p
6244     t cont
6245     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6246     t cont
6247     d
6248     :cont
6249     n
6250     s/.\{148\}/&'"$ac_delim"'/g
6251     t clear
6252     :clear
6253     s/\\$//
6254     t bsnlc
6255     s/["\\]/\\&/g; s/^/"/; s/$/"/p
6256     d
6257     :bsnlc
6258     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6259     b cont
6260     ' <confdefs.h | sed '
6261     s/'"$ac_delim"'/"\\\
6262     "/g' >>$CONFIG_STATUS || ac_write_fail=1
6263    
6264     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6265     for (key in D) D_is_set[key] = 1
6266     FS = ""
6267     }
6268     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6269     line = \$ 0
6270     split(line, arg, " ")
6271     if (arg[1] == "#") {
6272     defundef = arg[2]
6273     mac1 = arg[3]
6274     } else {
6275     defundef = substr(arg[1], 2)
6276     mac1 = arg[2]
6277     }
6278     split(mac1, mac2, "(") #)
6279     macro = mac2[1]
6280     prefix = substr(line, 1, index(line, defundef) - 1)
6281     if (D_is_set[macro]) {
6282     # Preserve the white space surrounding the "#".
6283     print prefix "define", macro P[macro] D[macro]
6284     next
6285     } else {
6286     # Replace #undef with comments. This is necessary, for example,
6287     # in the case of _POSIX_SOURCE, which is predefined and required
6288     # on some systems where configure will not decide to define it.
6289     if (defundef == "undef") {
6290     print "/*", prefix defundef, macro, "*/"
6291     next
6292     }
6293     }
6294     }
6295     { print }
6296     _ACAWK
6297     _ACEOF
6298     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6299     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6300     fi # test -n "$CONFIG_HEADERS"
6301    
6302 root 1.1
6303 root 1.3 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6304     shift
6305     for ac_tag
6306 root 1.1 do
6307     case $ac_tag in
6308     :[FHLC]) ac_mode=$ac_tag; continue;;
6309     esac
6310     case $ac_mode$ac_tag in
6311     :[FHL]*:*);;
6312 root 1.3 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6313 root 1.1 :[FH]-) ac_tag=-:-;;
6314     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6315     esac
6316     ac_save_IFS=$IFS
6317     IFS=:
6318     set x $ac_tag
6319     IFS=$ac_save_IFS
6320     shift
6321     ac_file=$1
6322     shift
6323    
6324     case $ac_mode in
6325     :L) ac_source=$1;;
6326     :[FH])
6327     ac_file_inputs=
6328     for ac_f
6329     do
6330     case $ac_f in
6331 root 1.3 -) ac_f="$ac_tmp/stdin";;
6332 root 1.1 *) # Look for the file first in the build tree, then in the source tree
6333     # (if the path is not absolute). The absolute path cannot be DOS-style,
6334     # because $ac_f cannot contain `:'.
6335     test -f "$ac_f" ||
6336     case $ac_f in
6337     [\\/$]*) false;;
6338     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6339     esac ||
6340 root 1.3 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6341 root 1.1 esac
6342 root 1.3 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6343     as_fn_append ac_file_inputs " '$ac_f'"
6344 root 1.1 done
6345    
6346     # Let's still pretend it is `configure' which instantiates (i.e., don't
6347     # use $as_me), people would be surprised to read:
6348     # /* config.h. Generated by config.status. */
6349 root 1.3 configure_input='Generated from '`
6350     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6351     `' by configure.'
6352 root 1.1 if test x"$ac_file" != x-; then
6353     configure_input="$ac_file. $configure_input"
6354 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6355     $as_echo "$as_me: creating $ac_file" >&6;}
6356 root 1.1 fi
6357 root 1.3 # Neutralize special characters interpreted by sed in replacement strings.
6358     case $configure_input in #(
6359     *\&* | *\|* | *\\* )
6360     ac_sed_conf_input=`$as_echo "$configure_input" |
6361     sed 's/[\\\\&|]/\\\\&/g'`;; #(
6362     *) ac_sed_conf_input=$configure_input;;
6363     esac
6364 root 1.1
6365     case $ac_tag in
6366 root 1.3 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6367     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6368 root 1.1 esac
6369     ;;
6370     esac
6371    
6372     ac_dir=`$as_dirname -- "$ac_file" ||
6373     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6374     X"$ac_file" : 'X\(//\)[^/]' \| \
6375     X"$ac_file" : 'X\(//\)$' \| \
6376     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6377 root 1.3 $as_echo X"$ac_file" |
6378 root 1.1 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6379     s//\1/
6380     q
6381     }
6382     /^X\(\/\/\)[^/].*/{
6383     s//\1/
6384     q
6385     }
6386     /^X\(\/\/\)$/{
6387     s//\1/
6388     q
6389     }
6390     /^X\(\/\).*/{
6391     s//\1/
6392     q
6393     }
6394     s/.*/./; q'`
6395 root 1.3 as_dir="$ac_dir"; as_fn_mkdir_p
6396 root 1.1 ac_builddir=.
6397    
6398     case "$ac_dir" in
6399     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6400     *)
6401 root 1.3 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6402 root 1.1 # A ".." for each directory in $ac_dir_suffix.
6403 root 1.3 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6404 root 1.1 case $ac_top_builddir_sub in
6405     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6406     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6407     esac ;;
6408     esac
6409     ac_abs_top_builddir=$ac_pwd
6410     ac_abs_builddir=$ac_pwd$ac_dir_suffix
6411     # for backward compatibility:
6412     ac_top_builddir=$ac_top_build_prefix
6413    
6414     case $srcdir in
6415     .) # We are building in place.
6416     ac_srcdir=.
6417     ac_top_srcdir=$ac_top_builddir_sub
6418     ac_abs_top_srcdir=$ac_pwd ;;
6419     [\\/]* | ?:[\\/]* ) # Absolute name.
6420     ac_srcdir=$srcdir$ac_dir_suffix;
6421     ac_top_srcdir=$srcdir
6422     ac_abs_top_srcdir=$srcdir ;;
6423     *) # Relative name.
6424     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6425     ac_top_srcdir=$ac_top_build_prefix$srcdir
6426     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6427     esac
6428     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6429    
6430    
6431     case $ac_mode in
6432     :F)
6433     #
6434     # CONFIG_FILE
6435     #
6436    
6437     case $INSTALL in
6438     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6439     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6440     esac
6441 root 1.2 ac_MKDIR_P=$MKDIR_P
6442     case $MKDIR_P in
6443     [\\/$]* | ?:[\\/]* ) ;;
6444     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6445     esac
6446 root 1.1 _ACEOF
6447    
6448 root 1.3 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6449 root 1.1 # If the template does not know about datarootdir, expand it.
6450     # FIXME: This hack should be removed a few years after 2.60.
6451     ac_datarootdir_hack=; ac_datarootdir_seen=
6452 root 1.3 ac_sed_dataroot='
6453     /datarootdir/ {
6454 root 1.1 p
6455     q
6456     }
6457     /@datadir@/p
6458     /@docdir@/p
6459     /@infodir@/p
6460     /@localedir@/p
6461 root 1.3 /@mandir@/p'
6462     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6463 root 1.1 *datarootdir*) ac_datarootdir_seen=yes;;
6464     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6465 root 1.3 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6466     $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6467 root 1.1 _ACEOF
6468 root 1.3 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6469 root 1.1 ac_datarootdir_hack='
6470     s&@datadir@&$datadir&g
6471     s&@docdir@&$docdir&g
6472     s&@infodir@&$infodir&g
6473     s&@localedir@&$localedir&g
6474     s&@mandir@&$mandir&g
6475 root 1.3 s&\\\${datarootdir}&$datarootdir&g' ;;
6476 root 1.1 esac
6477     _ACEOF
6478    
6479     # Neutralize VPATH when `$srcdir' = `.'.
6480     # Shell code in configure.ac might set extrasub.
6481     # FIXME: do we really want to maintain this feature?
6482 root 1.3 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6483     ac_sed_extra="$ac_vpsub
6484 root 1.1 $extrasub
6485     _ACEOF
6486 root 1.3 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6487 root 1.1 :t
6488     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6489 root 1.3 s|@configure_input@|$ac_sed_conf_input|;t t
6490 root 1.1 s&@top_builddir@&$ac_top_builddir_sub&;t t
6491 root 1.3 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6492 root 1.1 s&@srcdir@&$ac_srcdir&;t t
6493     s&@abs_srcdir@&$ac_abs_srcdir&;t t
6494     s&@top_srcdir@&$ac_top_srcdir&;t t
6495     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6496     s&@builddir@&$ac_builddir&;t t
6497     s&@abs_builddir@&$ac_abs_builddir&;t t
6498     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6499     s&@INSTALL@&$ac_INSTALL&;t t
6500 root 1.2 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6501 root 1.1 $ac_datarootdir_hack
6502 root 1.3 "
6503     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6504     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6505 root 1.1
6506     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6507 root 1.3 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6508     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6509     "$ac_tmp/out"`; test -z "$ac_out"; } &&
6510     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6511     which seems to be undefined. Please make sure it is defined" >&5
6512     $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6513     which seems to be undefined. Please make sure it is defined" >&2;}
6514 root 1.1
6515 root 1.3 rm -f "$ac_tmp/stdin"
6516 root 1.1 case $ac_file in
6517 root 1.3 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6518     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6519     esac \
6520     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6521 root 1.1 ;;
6522     :H)
6523     #
6524     # CONFIG_HEADER
6525     #
6526     if test x"$ac_file" != x-; then
6527 root 1.3 {
6528     $as_echo "/* $configure_input */" \
6529     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6530     } >"$ac_tmp/config.h" \
6531     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6532     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6533     { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6534     $as_echo "$as_me: $ac_file is unchanged" >&6;}
6535 root 1.1 else
6536 root 1.3 rm -f "$ac_file"
6537     mv "$ac_tmp/config.h" "$ac_file" \
6538     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6539 root 1.1 fi
6540     else
6541 root 1.3 $as_echo "/* $configure_input */" \
6542     && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6543     || as_fn_error $? "could not create -" "$LINENO" 5
6544 root 1.1 fi
6545 root 1.3 # Compute "$ac_file"'s index in $config_headers.
6546     _am_arg="$ac_file"
6547 root 1.1 _am_stamp_count=1
6548     for _am_header in $config_headers :; do
6549     case $_am_header in
6550 root 1.2 $_am_arg | $_am_arg:* )
6551 root 1.1 break ;;
6552     * )
6553     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6554     esac
6555     done
6556 root 1.2 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6557     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6558     X"$_am_arg" : 'X\(//\)[^/]' \| \
6559     X"$_am_arg" : 'X\(//\)$' \| \
6560     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6561 root 1.3 $as_echo X"$_am_arg" |
6562 root 1.1 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6563     s//\1/
6564     q
6565     }
6566     /^X\(\/\/\)[^/].*/{
6567     s//\1/
6568     q
6569     }
6570     /^X\(\/\/\)$/{
6571     s//\1/
6572     q
6573     }
6574     /^X\(\/\).*/{
6575     s//\1/
6576     q
6577     }
6578     s/.*/./; q'`/stamp-h$_am_stamp_count
6579     ;;
6580    
6581 root 1.3 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6582     $as_echo "$as_me: executing $ac_file commands" >&6;}
6583 root 1.1 ;;
6584     esac
6585    
6586    
6587     case $ac_file$ac_mode in
6588     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6589     # Strip MF so we end up with the name of the file.
6590     mf=`echo "$mf" | sed -e 's/:.*$//'`
6591     # Check whether this is an Automake generated Makefile or not.
6592     # We used to match only the files named `Makefile.in', but
6593     # some people rename them; so instead we look at the file content.
6594     # Grep'ing the first line is not enough: some people post-process
6595     # each Makefile.in and add a new line on top of each file to say so.
6596 root 1.2 # Grep'ing the whole file is not good either: AIX grep has a line
6597     # limit of 2048, but all sed's we know have understand at least 4000.
6598     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6599 root 1.1 dirpart=`$as_dirname -- "$mf" ||
6600     $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6601     X"$mf" : 'X\(//\)[^/]' \| \
6602     X"$mf" : 'X\(//\)$' \| \
6603     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6604 root 1.3 $as_echo X"$mf" |
6605 root 1.1 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6606     s//\1/
6607     q
6608     }
6609     /^X\(\/\/\)[^/].*/{
6610     s//\1/
6611     q
6612     }
6613     /^X\(\/\/\)$/{
6614     s//\1/
6615     q
6616     }
6617     /^X\(\/\).*/{
6618     s//\1/
6619     q
6620     }
6621     s/.*/./; q'`
6622     else
6623     continue
6624     fi
6625 root 1.2 # Extract the definition of DEPDIR, am__include, and am__quote
6626     # from the Makefile without running `make'.
6627     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6628 root 1.1 test -z "$DEPDIR" && continue
6629 root 1.2 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6630     test -z "am__include" && continue
6631     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6632 root 1.1 # When using ansi2knr, U may be empty or an underscore; expand it
6633 root 1.2 U=`sed -n 's/^U = //p' < "$mf"`
6634     # Find all dependency output files, they are included files with
6635     # $(DEPDIR) in their names. We invoke sed twice because it is the
6636     # simplest approach to changing $(DEPDIR) to its actual value in the
6637     # expansion.
6638     for file in `sed -n "
6639     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6640 root 1.1 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6641     # Make sure the directory exists.
6642     test -f "$dirpart/$file" && continue
6643     fdir=`$as_dirname -- "$file" ||
6644     $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6645     X"$file" : 'X\(//\)[^/]' \| \
6646     X"$file" : 'X\(//\)$' \| \
6647     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6648 root 1.3 $as_echo X"$file" |
6649 root 1.1 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6650     s//\1/
6651     q
6652     }
6653     /^X\(\/\/\)[^/].*/{
6654     s//\1/
6655     q
6656     }
6657     /^X\(\/\/\)$/{
6658     s//\1/
6659     q
6660     }
6661     /^X\(\/\).*/{
6662     s//\1/
6663     q
6664     }
6665     s/.*/./; q'`
6666 root 1.3 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6667 root 1.1 # echo "creating $dirpart/$file"
6668     echo '# dummy' > "$dirpart/$file"
6669     done
6670     done
6671     ;;
6672    
6673     esac
6674     done # for ac_tag
6675    
6676    
6677 root 1.3 as_fn_exit 0
6678 root 1.1 _ACEOF
6679     ac_clean_files=$ac_clean_files_save
6680    
6681 root 1.3 test $ac_write_fail = 0 ||
6682     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6683    
6684 root 1.1
6685     # configure is writing to config.log, and then calls config.status.
6686     # config.status does its own redirection, appending to config.log.
6687     # Unfortunately, on DOS this fails, as config.log is still kept open
6688     # by configure, so config.status won't be able to write to it; its
6689     # output is simply discarded. So we exec the FD to /dev/null,
6690     # effectively closing config.log, so it can be properly (re)opened and
6691     # appended to by config.status. When coming back to configure, we
6692     # need to make the FD available again.
6693     if test "$no_create" != yes; then
6694     ac_cs_success=:
6695     ac_config_status_args=
6696     test "$silent" = yes &&
6697     ac_config_status_args="$ac_config_status_args --quiet"
6698     exec 5>/dev/null
6699     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6700     exec 5>>config.log
6701     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6702     # would make configure fail if this is the last instruction.
6703 root 1.3 $ac_cs_success || as_fn_exit 1
6704     fi
6705     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6706     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6707     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6708 root 1.1 fi
6709