ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-UUlib/uulib/configure
Revision: 1.14
Committed: Sat Sep 24 06:22:47 2022 UTC (20 months, 1 week ago) by root
Branch: MAIN
Changes since 1.13: +1464 -1107 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.14 # Generated by GNU Autoconf 2.71.
4 root 1.12 #
5     #
6 root 1.14 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7     # Inc.
8 root 1.12 #
9 root 1.1 #
10     # This configure script is free software; the Free Software Foundation
11     # gives unlimited permission to copy, distribute and modify it.
12 root 1.12 ## -------------------- ##
13     ## M4sh Initialization. ##
14     ## -------------------- ##
15    
16     # Be more Bourne compatible
17     DUALCASE=1; export DUALCASE # for MKS sh
18 root 1.14 as_nop=:
19     if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20     then :
21 root 1.12 emulate sh
22     NULLCMD=:
23     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24     # is contrary to our usage. Disable this feature.
25     alias -g '${1+"$@"}'='"$@"'
26     setopt NO_GLOB_SUBST
27 root 1.14 else $as_nop
28 root 1.12 case `(set -o) 2>/dev/null` in #(
29     *posix*) :
30     set -o posix ;; #(
31     *) :
32     ;;
33     esac
34     fi
35    
36    
37 root 1.14
38     # Reset variables that may have inherited troublesome values from
39     # the environment.
40    
41     # IFS needs to be set, to space, tab, and newline, in precisely that order.
42     # (If _AS_PATH_WALK were called with IFS unset, it would have the
43     # side effect of setting IFS to empty, thus disabling word splitting.)
44     # Quoting is to prevent editors from complaining about space-tab.
45 root 1.12 as_nl='
46     '
47     export as_nl
48 root 1.14 IFS=" "" $as_nl"
49    
50     PS1='$ '
51     PS2='> '
52     PS4='+ '
53    
54     # Ensure predictable behavior from utilities with locale-dependent output.
55     LC_ALL=C
56     export LC_ALL
57     LANGUAGE=C
58     export LANGUAGE
59    
60     # We cannot yet rely on "unset" to work, but we need these variables
61     # to be unset--not just set to an empty or harmless value--now, to
62     # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63     # also avoids known problems related to "unset" and subshell syntax
64     # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65     for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66     do eval test \${$as_var+y} \
67     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68     done
69    
70     # Ensure that fds 0, 1, and 2 are open.
71     if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72     if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73     if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74 root 1.12
75     # The user is always right.
76 root 1.14 if ${PATH_SEPARATOR+false} :; then
77 root 1.12 PATH_SEPARATOR=:
78     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80     PATH_SEPARATOR=';'
81     }
82     fi
83    
84    
85     # Find who we are. Look in the path if we contain no directory separator.
86     as_myself=
87     case $0 in #((
88     *[\\/]* ) as_myself=$0 ;;
89     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90     for as_dir in $PATH
91     do
92     IFS=$as_save_IFS
93 root 1.14 case $as_dir in #(((
94     '') as_dir=./ ;;
95     */) ;;
96     *) as_dir=$as_dir/ ;;
97     esac
98     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 root 1.12 done
100     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.14 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 root 1.12 exit 1
112     fi
113    
114    
115     # Use a proper internal environment variable to ensure we don't fall
116     # into an infinite loop, continuously re-executing ourselves.
117     if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118     _as_can_reexec=no; export _as_can_reexec;
119     # We cannot yet assume a decent shell, so we have to provide a
120     # neutralization value for shells without unset; and this also
121     # works around shells that cannot unset nonexistent variables.
122     # Preserve -v and -x to the replacement shell.
123     BASH_ENV=/dev/null
124     ENV=/dev/null
125     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126     case $- in # ((((
127     *v*x* | *x*v* ) as_opts=-vx ;;
128     *v* ) as_opts=-v ;;
129     *x* ) as_opts=-x ;;
130     * ) as_opts= ;;
131     esac
132     exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133     # Admittedly, this is quite paranoid, since all the known shells bail
134     # out after a failed `exec'.
135 root 1.14 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136     exit 255
137 root 1.12 fi
138     # We don't want this to propagate to other subprocesses.
139     { _as_can_reexec=; unset _as_can_reexec;}
140     if test "x$CONFIG_SHELL" = x; then
141 root 1.14 as_bourne_compatible="as_nop=:
142     if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143     then :
144 root 1.12 emulate sh
145     NULLCMD=:
146     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147     # is contrary to our usage. Disable this feature.
148     alias -g '\${1+\"\$@\"}'='\"\$@\"'
149     setopt NO_GLOB_SUBST
150 root 1.14 else \$as_nop
151 root 1.12 case \`(set -o) 2>/dev/null\` in #(
152     *posix*) :
153     set -o posix ;; #(
154     *) :
155     ;;
156     esac
157     fi
158     "
159     as_required="as_fn_return () { (exit \$1); }
160     as_fn_success () { as_fn_return 0; }
161     as_fn_failure () { as_fn_return 1; }
162     as_fn_ret_success () { return 0; }
163     as_fn_ret_failure () { return 1; }
164    
165     exitcode=0
166     as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 root 1.14 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171     then :
172 root 1.12
173 root 1.14 else \$as_nop
174 root 1.12 exitcode=1; echo positional parameters were not saved.
175     fi
176     test x\$exitcode = x0 || exit 1
177 root 1.14 blah=\$(echo \$(echo blah))
178     test x\"\$blah\" = xblah || exit 1
179 root 1.12 test -x / || exit 1"
180     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184     test \$(( 1 + 1 )) = 2 || exit 1"
185 root 1.14 if (eval "$as_required") 2>/dev/null
186     then :
187 root 1.12 as_have_required=yes
188 root 1.14 else $as_nop
189 root 1.12 as_have_required=no
190     fi
191 root 1.14 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192     then :
193 root 1.12
194 root 1.14 else $as_nop
195 root 1.12 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196     as_found=false
197     for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198     do
199     IFS=$as_save_IFS
200 root 1.14 case $as_dir in #(((
201     '') as_dir=./ ;;
202     */) ;;
203     *) as_dir=$as_dir/ ;;
204     esac
205 root 1.12 as_found=:
206     case $as_dir in #(
207     /*)
208     for as_base in sh bash ksh sh5; do
209     # Try only shells that exist, to save several forks.
210 root 1.14 as_shell=$as_dir$as_base
211 root 1.12 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
212 root 1.14 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213     then :
214 root 1.12 CONFIG_SHELL=$as_shell as_have_required=yes
215 root 1.14 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216     then :
217 root 1.12 break 2
218     fi
219     fi
220     done;;
221     esac
222     as_found=false
223     done
224 root 1.14 IFS=$as_save_IFS
225     if $as_found
226     then :
227    
228     else $as_nop
229     if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230     as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231     then :
232 root 1.12 CONFIG_SHELL=$SHELL as_have_required=yes
233 root 1.14 fi
234     fi
235 root 1.12
236    
237 root 1.14 if test "x$CONFIG_SHELL" != x
238     then :
239 root 1.12 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 root 1.14 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
257 root 1.12 exit 255
258     fi
259    
260 root 1.14 if test x$as_have_required = xno
261     then :
262     printf "%s\n" "$0: This script requires a shell more modern than all"
263     printf "%s\n" "$0: the shells that I found on your system."
264     if test ${ZSH_VERSION+y} ; then
265     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
267 root 1.12 else
268 root 1.14 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
269 root 1.12 $0: including any error possibly output before this
270     $0: message. Then install a modern shell, or manually run
271     $0: the script under such a shell if you do have one."
272     fi
273     exit 1
274     fi
275     fi
276     fi
277     SHELL=${CONFIG_SHELL-/bin/sh}
278     export SHELL
279     # Unset more variables known to interfere with behavior of common tools.
280     CLICOLOR_FORCE= GREP_OPTIONS=
281     unset CLICOLOR_FORCE GREP_OPTIONS
282    
283     ## --------------------- ##
284     ## M4sh Shell Functions. ##
285     ## --------------------- ##
286     # as_fn_unset VAR
287     # ---------------
288     # Portably unset VAR.
289     as_fn_unset ()
290     {
291     { eval $1=; unset $1;}
292     }
293     as_unset=as_fn_unset
294    
295 root 1.14
296 root 1.12 # as_fn_set_status STATUS
297     # -----------------------
298     # Set $? to STATUS, without forking.
299     as_fn_set_status ()
300     {
301     return $1
302     } # as_fn_set_status
303    
304     # as_fn_exit STATUS
305     # -----------------
306     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307     as_fn_exit ()
308     {
309     set +e
310     as_fn_set_status $1
311     exit $1
312     } # as_fn_exit
313 root 1.14 # as_fn_nop
314     # ---------
315     # Do nothing but, unlike ":", preserve the value of $?.
316     as_fn_nop ()
317     {
318     return $?
319     }
320     as_nop=as_fn_nop
321 root 1.12
322     # as_fn_mkdir_p
323     # -------------
324     # Create "$as_dir" as a directory, including parents if necessary.
325     as_fn_mkdir_p ()
326     {
327    
328     case $as_dir in #(
329     -*) as_dir=./$as_dir;;
330     esac
331     test -d "$as_dir" || eval $as_mkdir_p || {
332     as_dirs=
333     while :; do
334     case $as_dir in #(
335 root 1.14 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 root 1.12 *) as_qdir=$as_dir;;
337     esac
338     as_dirs="'$as_qdir' $as_dirs"
339     as_dir=`$as_dirname -- "$as_dir" ||
340     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341     X"$as_dir" : 'X\(//\)[^/]' \| \
342     X"$as_dir" : 'X\(//\)$' \| \
343     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 root 1.14 printf "%s\n" X"$as_dir" |
345 root 1.12 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346     s//\1/
347     q
348     }
349     /^X\(\/\/\)[^/].*/{
350     s//\1/
351     q
352     }
353     /^X\(\/\/\)$/{
354     s//\1/
355     q
356     }
357     /^X\(\/\).*/{
358     s//\1/
359     q
360     }
361     s/.*/./; q'`
362     test -d "$as_dir" && break
363     done
364     test -z "$as_dirs" || eval "mkdir $as_dirs"
365     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366    
367    
368     } # as_fn_mkdir_p
369    
370     # as_fn_executable_p FILE
371     # -----------------------
372     # Test if FILE is an executable regular file.
373     as_fn_executable_p ()
374     {
375     test -f "$1" && test -x "$1"
376     } # as_fn_executable_p
377     # as_fn_append VAR VALUE
378     # ----------------------
379     # Append the text in VALUE to the end of the definition contained in VAR. Take
380     # advantage of any shell optimizations that allow amortized linear growth over
381     # repeated appends, instead of the typical quadratic growth present in naive
382     # implementations.
383 root 1.14 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384     then :
385 root 1.12 eval 'as_fn_append ()
386     {
387     eval $1+=\$2
388     }'
389 root 1.14 else $as_nop
390 root 1.12 as_fn_append ()
391     {
392     eval $1=\$$1\$2
393     }
394     fi # as_fn_append
395    
396     # as_fn_arith ARG...
397     # ------------------
398     # Perform arithmetic evaluation on the ARGs, and store the result in the
399     # global $as_val. Take advantage of shells that can avoid forks. The arguments
400     # must be portable across $(()) and expr.
401 root 1.14 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402     then :
403 root 1.12 eval 'as_fn_arith ()
404     {
405     as_val=$(( $* ))
406     }'
407 root 1.14 else $as_nop
408 root 1.12 as_fn_arith ()
409     {
410     as_val=`expr "$@" || test $? -eq 1`
411     }
412     fi # as_fn_arith
413    
414 root 1.14 # as_fn_nop
415     # ---------
416     # Do nothing but, unlike ":", preserve the value of $?.
417     as_fn_nop ()
418     {
419     return $?
420     }
421     as_nop=as_fn_nop
422 root 1.12
423     # as_fn_error STATUS ERROR [LINENO LOG_FD]
424     # ----------------------------------------
425     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427     # script with STATUS, using 1 if that was 0.
428     as_fn_error ()
429     {
430     as_status=$1; test $as_status -eq 0 && as_status=1
431     if test "$4"; then
432     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 root 1.12 fi
435 root 1.14 printf "%s\n" "$as_me: error: $2" >&2
436 root 1.12 as_fn_exit $as_status
437     } # as_fn_error
438    
439     if expr a : '\(a\)' >/dev/null 2>&1 &&
440     test "X`expr 00001 : '.*\(...\)'`" = X001; then
441     as_expr=expr
442     else
443     as_expr=false
444     fi
445    
446     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447     as_basename=basename
448     else
449     as_basename=false
450     fi
451    
452     if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453     as_dirname=dirname
454     else
455     as_dirname=false
456     fi
457    
458     as_me=`$as_basename -- "$0" ||
459     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460     X"$0" : 'X\(//\)$' \| \
461     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 root 1.14 printf "%s\n" X/"$0" |
463 root 1.12 sed '/^.*\/\([^/][^/]*\)\/*$/{
464     s//\1/
465     q
466     }
467     /^X\/\(\/\/\)$/{
468     s//\1/
469     q
470     }
471     /^X\/\(\/\).*/{
472     s//\1/
473     q
474     }
475     s/.*/./; q'`
476    
477     # Avoid depending upon Character Ranges.
478     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481     as_cr_digits='0123456789'
482     as_cr_alnum=$as_cr_Letters$as_cr_digits
483    
484    
485     as_lineno_1=$LINENO as_lineno_1a=$LINENO
486     as_lineno_2=$LINENO as_lineno_2a=$LINENO
487     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490     sed -n '
491     p
492     /[$]LINENO/=
493     ' <$as_myself |
494     sed '
495     s/[$]LINENO.*/&-/
496     t lineno
497     b
498     :lineno
499     N
500     :loop
501     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502     t loop
503     s/-\n.*//
504     ' >$as_me.lineno &&
505     chmod +x "$as_me.lineno" ||
506 root 1.14 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507 root 1.12
508     # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509     # already done that, so ensure we don't try to do so again and fall
510     # in an infinite loop. This has already happened in practice.
511     _as_can_reexec=no; export _as_can_reexec
512     # Don't try to exec as it changes $[0], causing all sort of problems
513     # (the dirname of $[0] is not the place where we might find the
514     # original and so on. Autoconf is especially sensitive to this).
515     . "./$as_me.lineno"
516     # Exit status is that of the last command.
517     exit
518     }
519    
520 root 1.14
521     # Determine whether it's possible to make 'echo' print without a newline.
522     # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523     # for compatibility with existing Makefiles.
524 root 1.12 ECHO_C= ECHO_N= ECHO_T=
525     case `echo -n x` in #(((((
526     -n*)
527     case `echo 'xy\c'` in
528     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529     xy) ECHO_C='\c';;
530     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531     ECHO_T=' ';;
532     esac;;
533     *)
534     ECHO_N='-n';;
535     esac
536    
537 root 1.14 # For backward compatibility with old third-party macros, we provide
538     # the shell variables $as_echo and $as_echo_n. New code should use
539     # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540     as_echo='printf %s\n'
541     as_echo_n='printf %s'
542    
543    
544 root 1.12 rm -f conf$$ conf$$.exe conf$$.file
545     if test -d conf$$.dir; then
546     rm -f conf$$.dir/conf$$.file
547     else
548     rm -f conf$$.dir
549     mkdir conf$$.dir 2>/dev/null
550     fi
551     if (echo >conf$$.file) 2>/dev/null; then
552     if ln -s conf$$.file conf$$ 2>/dev/null; then
553     as_ln_s='ln -s'
554     # ... but there are two gotchas:
555     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
557     # In both cases, we have to default to `cp -pR'.
558     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
559     as_ln_s='cp -pR'
560     elif ln conf$$.file conf$$ 2>/dev/null; then
561     as_ln_s=ln
562     else
563     as_ln_s='cp -pR'
564     fi
565     else
566     as_ln_s='cp -pR'
567     fi
568     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569     rmdir conf$$.dir 2>/dev/null
570    
571     if mkdir -p . 2>/dev/null; then
572     as_mkdir_p='mkdir -p "$as_dir"'
573     else
574     test -d ./-p && rmdir ./-p
575     as_mkdir_p=false
576     fi
577    
578     as_test_x='test -x'
579     as_executable_p=as_fn_executable_p
580    
581     # Sed expression to map a string onto a valid CPP name.
582     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
583    
584     # Sed expression to map a string onto a valid variable name.
585     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
586 root 1.1
587 root 1.12
588     test -n "$DJDIR" || exec 7<&0 </dev/null
589     exec 6>&1
590    
591     # Name of the host.
592     # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
593     # so uname gets run too.
594     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
595    
596     #
597     # Initializations.
598     #
599 root 1.1 ac_default_prefix=/usr/local
600 root 1.12 ac_clean_files=
601     ac_config_libobj_dir=.
602     LIBOBJS=
603     cross_compiling=no
604     subdirs=
605     MFLAGS=
606     MAKEFLAGS=
607    
608     # Identity of this package.
609 root 1.14 PACKAGE_NAME=''
610     PACKAGE_TARNAME=''
611     PACKAGE_VERSION=''
612     PACKAGE_STRING=''
613     PACKAGE_BUGREPORT=''
614     PACKAGE_URL=''
615 root 1.12
616     ac_unique_file="uulib.c"
617     # Factoring default headers for most tests.
618     ac_includes_default="\
619 root 1.14 #include <stddef.h>
620     #ifdef HAVE_STDIO_H
621     # include <stdio.h>
622 root 1.12 #endif
623 root 1.14 #ifdef HAVE_STDLIB_H
624 root 1.12 # include <stdlib.h>
625     #endif
626     #ifdef HAVE_STRING_H
627     # include <string.h>
628     #endif
629     #ifdef HAVE_INTTYPES_H
630     # include <inttypes.h>
631     #endif
632     #ifdef HAVE_STDINT_H
633     # include <stdint.h>
634     #endif
635 root 1.14 #ifdef HAVE_STRINGS_H
636     # include <strings.h>
637     #endif
638     #ifdef HAVE_SYS_TYPES_H
639     # include <sys/types.h>
640     #endif
641     #ifdef HAVE_SYS_STAT_H
642     # include <sys/stat.h>
643     #endif
644 root 1.12 #ifdef HAVE_UNISTD_H
645     # include <unistd.h>
646     #endif"
647    
648 root 1.14 ac_header_c_list=
649 root 1.12 ac_subst_vars='LTLIBOBJS
650     LIBOBJS
651     PATCH
652     VERSION
653     EGREP
654     GREP
655     RANLIB
656     SET_MAKE
657     CPP
658     OBJEXT
659     EXEEXT
660     ac_ct_CC
661     CPPFLAGS
662     LDFLAGS
663     CFLAGS
664     CC
665     target_alias
666     host_alias
667     build_alias
668     LIBS
669     ECHO_T
670     ECHO_N
671     ECHO_C
672     DEFS
673     mandir
674     localedir
675     libdir
676     psdir
677     pdfdir
678     dvidir
679     htmldir
680     infodir
681     docdir
682     oldincludedir
683     includedir
684     runstatedir
685     localstatedir
686     sharedstatedir
687     sysconfdir
688     datadir
689     datarootdir
690     libexecdir
691     sbindir
692     bindir
693     program_transform_name
694     prefix
695     exec_prefix
696     PACKAGE_URL
697     PACKAGE_BUGREPORT
698     PACKAGE_STRING
699     PACKAGE_VERSION
700     PACKAGE_TARNAME
701     PACKAGE_NAME
702     PATH_SEPARATOR
703     SHELL'
704     ac_subst_files=''
705     ac_user_opts='
706     enable_option_checking
707     with_cc
708     with_cflags
709     '
710     ac_precious_vars='build_alias
711     host_alias
712     target_alias
713     CC
714     CFLAGS
715     LDFLAGS
716     LIBS
717     CPPFLAGS
718     CPP'
719    
720 root 1.1
721     # Initialize some variables set by options.
722 root 1.12 ac_init_help=
723     ac_init_version=false
724     ac_unrecognized_opts=
725     ac_unrecognized_sep=
726 root 1.1 # The variables have the same names as the options, with
727     # dashes changed to underlines.
728 root 1.12 cache_file=/dev/null
729 root 1.1 exec_prefix=NONE
730     no_create=
731     no_recursion=
732     prefix=NONE
733     program_prefix=NONE
734     program_suffix=NONE
735     program_transform_name=s,x,x,
736     silent=
737     site=
738     srcdir=
739     verbose=
740     x_includes=NONE
741     x_libraries=NONE
742 root 1.12
743     # Installation directory options.
744     # These are left unexpanded so users can "make install exec_prefix=/foo"
745     # and all the variables that are supposed to be based on exec_prefix
746     # by default will actually change.
747     # Use braces instead of parens because sh, perl, etc. also accept them.
748     # (The list follows the same order as the GNU Coding Standards.)
749 root 1.1 bindir='${exec_prefix}/bin'
750     sbindir='${exec_prefix}/sbin'
751     libexecdir='${exec_prefix}/libexec'
752 root 1.12 datarootdir='${prefix}/share'
753     datadir='${datarootdir}'
754 root 1.1 sysconfdir='${prefix}/etc'
755     sharedstatedir='${prefix}/com'
756     localstatedir='${prefix}/var'
757 root 1.12 runstatedir='${localstatedir}/run'
758 root 1.1 includedir='${prefix}/include'
759     oldincludedir='/usr/include'
760 root 1.12 docdir='${datarootdir}/doc/${PACKAGE}'
761     infodir='${datarootdir}/info'
762     htmldir='${docdir}'
763     dvidir='${docdir}'
764     pdfdir='${docdir}'
765     psdir='${docdir}'
766     libdir='${exec_prefix}/lib'
767     localedir='${datarootdir}/locale'
768     mandir='${datarootdir}/man'
769 root 1.1
770     ac_prev=
771 root 1.12 ac_dashdash=
772 root 1.1 for ac_option
773     do
774     # If the previous option needs an argument, assign it.
775     if test -n "$ac_prev"; then
776 root 1.12 eval $ac_prev=\$ac_option
777 root 1.1 ac_prev=
778     continue
779     fi
780    
781 root 1.12 case $ac_option in
782     *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
783     *=) ac_optarg= ;;
784     *) ac_optarg=yes ;;
785 root 1.7 esac
786 root 1.1
787 root 1.12 case $ac_dashdash$ac_option in
788     --)
789     ac_dashdash=yes ;;
790 root 1.1
791     -bindir | --bindir | --bindi | --bind | --bin | --bi)
792     ac_prev=bindir ;;
793     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
794 root 1.12 bindir=$ac_optarg ;;
795 root 1.1
796     -build | --build | --buil | --bui | --bu)
797 root 1.12 ac_prev=build_alias ;;
798 root 1.1 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
799 root 1.12 build_alias=$ac_optarg ;;
800 root 1.1
801     -cache-file | --cache-file | --cache-fil | --cache-fi \
802     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
803     ac_prev=cache_file ;;
804     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
805     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
806 root 1.12 cache_file=$ac_optarg ;;
807 root 1.1
808 root 1.12 --config-cache | -C)
809     cache_file=config.cache ;;
810    
811     -datadir | --datadir | --datadi | --datad)
812 root 1.1 ac_prev=datadir ;;
813 root 1.12 -datadir=* | --datadir=* | --datadi=* | --datad=*)
814     datadir=$ac_optarg ;;
815    
816     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
817     | --dataroo | --dataro | --datar)
818     ac_prev=datarootdir ;;
819     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
820     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
821     datarootdir=$ac_optarg ;;
822 root 1.1
823     -disable-* | --disable-*)
824 root 1.12 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
825 root 1.1 # Reject names that are not valid shell variable names.
826 root 1.12 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827 root 1.14 as_fn_error $? "invalid feature name: \`$ac_useropt'"
828 root 1.12 ac_useropt_orig=$ac_useropt
829 root 1.14 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
830 root 1.12 case $ac_user_opts in
831     *"
832     "enable_$ac_useropt"
833     "*) ;;
834     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
835     ac_unrecognized_sep=', ';;
836     esac
837     eval enable_$ac_useropt=no ;;
838    
839     -docdir | --docdir | --docdi | --doc | --do)
840     ac_prev=docdir ;;
841     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842     docdir=$ac_optarg ;;
843    
844     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845     ac_prev=dvidir ;;
846     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847     dvidir=$ac_optarg ;;
848 root 1.1
849     -enable-* | --enable-*)
850 root 1.12 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851 root 1.1 # Reject names that are not valid shell variable names.
852 root 1.12 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 root 1.14 as_fn_error $? "invalid feature name: \`$ac_useropt'"
854 root 1.12 ac_useropt_orig=$ac_useropt
855 root 1.14 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
856 root 1.12 case $ac_user_opts in
857     *"
858     "enable_$ac_useropt"
859     "*) ;;
860     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
861     ac_unrecognized_sep=', ';;
862 root 1.1 esac
863 root 1.12 eval enable_$ac_useropt=\$ac_optarg ;;
864 root 1.1
865     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867     | --exec | --exe | --ex)
868     ac_prev=exec_prefix ;;
869     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871     | --exec=* | --exe=* | --ex=*)
872 root 1.12 exec_prefix=$ac_optarg ;;
873 root 1.1
874     -gas | --gas | --ga | --g)
875     # Obsolete; use --with-gas.
876     with_gas=yes ;;
877    
878 root 1.12 -help | --help | --hel | --he | -h)
879     ac_init_help=long ;;
880     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881     ac_init_help=recursive ;;
882     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883     ac_init_help=short ;;
884 root 1.1
885     -host | --host | --hos | --ho)
886 root 1.12 ac_prev=host_alias ;;
887 root 1.1 -host=* | --host=* | --hos=* | --ho=*)
888 root 1.12 host_alias=$ac_optarg ;;
889    
890     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891     ac_prev=htmldir ;;
892     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893     | --ht=*)
894     htmldir=$ac_optarg ;;
895 root 1.1
896     -includedir | --includedir | --includedi | --included | --include \
897     | --includ | --inclu | --incl | --inc)
898     ac_prev=includedir ;;
899     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900     | --includ=* | --inclu=* | --incl=* | --inc=*)
901 root 1.12 includedir=$ac_optarg ;;
902 root 1.1
903     -infodir | --infodir | --infodi | --infod | --info | --inf)
904     ac_prev=infodir ;;
905     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906 root 1.12 infodir=$ac_optarg ;;
907 root 1.1
908     -libdir | --libdir | --libdi | --libd)
909     ac_prev=libdir ;;
910     -libdir=* | --libdir=* | --libdi=* | --libd=*)
911 root 1.12 libdir=$ac_optarg ;;
912 root 1.1
913     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914     | --libexe | --libex | --libe)
915     ac_prev=libexecdir ;;
916     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917     | --libexe=* | --libex=* | --libe=*)
918 root 1.12 libexecdir=$ac_optarg ;;
919    
920     -localedir | --localedir | --localedi | --localed | --locale)
921     ac_prev=localedir ;;
922     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923     localedir=$ac_optarg ;;
924 root 1.1
925     -localstatedir | --localstatedir | --localstatedi | --localstated \
926 root 1.12 | --localstate | --localstat | --localsta | --localst | --locals)
927 root 1.1 ac_prev=localstatedir ;;
928     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929 root 1.12 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930     localstatedir=$ac_optarg ;;
931 root 1.1
932     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933     ac_prev=mandir ;;
934     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935 root 1.12 mandir=$ac_optarg ;;
936 root 1.1
937     -nfp | --nfp | --nf)
938     # Obsolete; use --without-fp.
939     with_fp=no ;;
940    
941     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942 root 1.12 | --no-cr | --no-c | -n)
943 root 1.1 no_create=yes ;;
944    
945     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947     no_recursion=yes ;;
948    
949     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951     | --oldin | --oldi | --old | --ol | --o)
952     ac_prev=oldincludedir ;;
953     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956 root 1.12 oldincludedir=$ac_optarg ;;
957 root 1.1
958     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959     ac_prev=prefix ;;
960     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961 root 1.12 prefix=$ac_optarg ;;
962 root 1.1
963     -program-prefix | --program-prefix | --program-prefi | --program-pref \
964     | --program-pre | --program-pr | --program-p)
965     ac_prev=program_prefix ;;
966     -program-prefix=* | --program-prefix=* | --program-prefi=* \
967     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968 root 1.12 program_prefix=$ac_optarg ;;
969 root 1.1
970     -program-suffix | --program-suffix | --program-suffi | --program-suff \
971     | --program-suf | --program-su | --program-s)
972     ac_prev=program_suffix ;;
973     -program-suffix=* | --program-suffix=* | --program-suffi=* \
974     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975 root 1.12 program_suffix=$ac_optarg ;;
976 root 1.1
977     -program-transform-name | --program-transform-name \
978     | --program-transform-nam | --program-transform-na \
979     | --program-transform-n | --program-transform- \
980     | --program-transform | --program-transfor \
981     | --program-transfo | --program-transf \
982     | --program-trans | --program-tran \
983     | --progr-tra | --program-tr | --program-t)
984     ac_prev=program_transform_name ;;
985     -program-transform-name=* | --program-transform-name=* \
986     | --program-transform-nam=* | --program-transform-na=* \
987     | --program-transform-n=* | --program-transform-=* \
988     | --program-transform=* | --program-transfor=* \
989     | --program-transfo=* | --program-transf=* \
990     | --program-trans=* | --program-tran=* \
991     | --progr-tra=* | --program-tr=* | --program-t=*)
992 root 1.12 program_transform_name=$ac_optarg ;;
993    
994     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995     ac_prev=pdfdir ;;
996     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997     pdfdir=$ac_optarg ;;
998    
999     -psdir | --psdir | --psdi | --psd | --ps)
1000     ac_prev=psdir ;;
1001     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002     psdir=$ac_optarg ;;
1003 root 1.1
1004     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005     | -silent | --silent | --silen | --sile | --sil)
1006     silent=yes ;;
1007    
1008 root 1.12 -runstatedir | --runstatedir | --runstatedi | --runstated \
1009     | --runstate | --runstat | --runsta | --runst | --runs \
1010     | --run | --ru | --r)
1011     ac_prev=runstatedir ;;
1012     -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1013     | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1014     | --run=* | --ru=* | --r=*)
1015     runstatedir=$ac_optarg ;;
1016    
1017 root 1.1 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1018     ac_prev=sbindir ;;
1019     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1020     | --sbi=* | --sb=*)
1021 root 1.12 sbindir=$ac_optarg ;;
1022 root 1.1
1023     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1024     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1025     | --sharedst | --shareds | --shared | --share | --shar \
1026     | --sha | --sh)
1027     ac_prev=sharedstatedir ;;
1028     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1029     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1030     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1031     | --sha=* | --sh=*)
1032 root 1.12 sharedstatedir=$ac_optarg ;;
1033 root 1.1
1034     -site | --site | --sit)
1035     ac_prev=site ;;
1036     -site=* | --site=* | --sit=*)
1037 root 1.12 site=$ac_optarg ;;
1038 root 1.1
1039     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1040     ac_prev=srcdir ;;
1041     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1042 root 1.12 srcdir=$ac_optarg ;;
1043 root 1.1
1044     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1045     | --syscon | --sysco | --sysc | --sys | --sy)
1046     ac_prev=sysconfdir ;;
1047     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1048     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1049 root 1.12 sysconfdir=$ac_optarg ;;
1050 root 1.1
1051     -target | --target | --targe | --targ | --tar | --ta | --t)
1052 root 1.12 ac_prev=target_alias ;;
1053 root 1.1 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1054 root 1.12 target_alias=$ac_optarg ;;
1055 root 1.1
1056     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1057     verbose=yes ;;
1058    
1059 root 1.12 -version | --version | --versio | --versi | --vers | -V)
1060     ac_init_version=: ;;
1061 root 1.1
1062     -with-* | --with-*)
1063 root 1.12 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1064 root 1.1 # Reject names that are not valid shell variable names.
1065 root 1.12 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 root 1.14 as_fn_error $? "invalid package name: \`$ac_useropt'"
1067 root 1.12 ac_useropt_orig=$ac_useropt
1068 root 1.14 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 root 1.12 case $ac_user_opts in
1070     *"
1071     "with_$ac_useropt"
1072     "*) ;;
1073     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1074     ac_unrecognized_sep=', ';;
1075 root 1.1 esac
1076 root 1.12 eval with_$ac_useropt=\$ac_optarg ;;
1077 root 1.1
1078     -without-* | --without-*)
1079 root 1.12 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1080 root 1.1 # Reject names that are not valid shell variable names.
1081 root 1.12 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1082 root 1.14 as_fn_error $? "invalid package name: \`$ac_useropt'"
1083 root 1.12 ac_useropt_orig=$ac_useropt
1084 root 1.14 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1085 root 1.12 case $ac_user_opts in
1086     *"
1087     "with_$ac_useropt"
1088     "*) ;;
1089     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1090     ac_unrecognized_sep=', ';;
1091     esac
1092     eval with_$ac_useropt=no ;;
1093 root 1.1
1094     --x)
1095     # Obsolete; use --with-x.
1096     with_x=yes ;;
1097    
1098     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1099     | --x-incl | --x-inc | --x-in | --x-i)
1100     ac_prev=x_includes ;;
1101     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1102     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1103 root 1.12 x_includes=$ac_optarg ;;
1104 root 1.1
1105     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1106     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1107     ac_prev=x_libraries ;;
1108     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1109     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1110 root 1.12 x_libraries=$ac_optarg ;;
1111 root 1.1
1112 root 1.12 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1113     Try \`$0 --help' for more information"
1114 root 1.1 ;;
1115    
1116 root 1.12 *=*)
1117     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1118     # Reject names that are not valid shell variable names.
1119     case $ac_envvar in #(
1120     '' | [0-9]* | *[!_$as_cr_alnum]* )
1121     as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1122     esac
1123     eval $ac_envvar=\$ac_optarg
1124     export $ac_envvar ;;
1125    
1126 root 1.1 *)
1127 root 1.12 # FIXME: should be removed in autoconf 3.0.
1128 root 1.14 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1129 root 1.12 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 root 1.14 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1131 root 1.12 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1132 root 1.1 ;;
1133    
1134     esac
1135     done
1136    
1137     if test -n "$ac_prev"; then
1138 root 1.12 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1139     as_fn_error $? "missing argument to $ac_option"
1140 root 1.7 fi
1141    
1142 root 1.12 if test -n "$ac_unrecognized_opts"; then
1143     case $enable_option_checking in
1144     no) ;;
1145     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1146 root 1.14 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1147 root 1.12 esac
1148 root 1.1 fi
1149    
1150 root 1.12 # Check all directory arguments for consistency.
1151     for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1152     datadir sysconfdir sharedstatedir localstatedir includedir \
1153     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1154     libdir localedir mandir runstatedir
1155 root 1.1 do
1156 root 1.12 eval ac_val=\$$ac_var
1157     # Remove trailing slashes.
1158     case $ac_val in
1159     */ )
1160     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1161     eval $ac_var=\$ac_val;;
1162     esac
1163     # Be sure to have absolute directory names.
1164     case $ac_val in
1165     [\\/$]* | ?:[\\/]* ) continue;;
1166     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1167 root 1.1 esac
1168 root 1.12 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1169 root 1.1 done
1170    
1171 root 1.12 # There might be people who depend on the old broken behavior: `$host'
1172     # used to hold the argument of --host etc.
1173     # FIXME: To remove some day.
1174     build=$build_alias
1175     host=$host_alias
1176     target=$target_alias
1177    
1178     # FIXME: To remove some day.
1179     if test "x$host_alias" != x; then
1180     if test "x$build_alias" = x; then
1181     cross_compiling=maybe
1182     elif test "x$build_alias" != "x$host_alias"; then
1183     cross_compiling=yes
1184     fi
1185     fi
1186    
1187     ac_tool_prefix=
1188     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1189    
1190     test "$silent" = yes && exec 6>/dev/null
1191    
1192    
1193     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1194     ac_ls_di=`ls -di .` &&
1195     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1196     as_fn_error $? "working directory cannot be determined"
1197     test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1198     as_fn_error $? "pwd does not report name of working directory"
1199 root 1.1
1200    
1201     # Find the source files, if location was not specified.
1202     if test -z "$srcdir"; then
1203     ac_srcdir_defaulted=yes
1204 root 1.12 # Try the directory containing this script, then the parent directory.
1205     ac_confdir=`$as_dirname -- "$as_myself" ||
1206     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1207     X"$as_myself" : 'X\(//\)[^/]' \| \
1208     X"$as_myself" : 'X\(//\)$' \| \
1209     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1210 root 1.14 printf "%s\n" X"$as_myself" |
1211 root 1.12 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212     s//\1/
1213     q
1214     }
1215     /^X\(\/\/\)[^/].*/{
1216     s//\1/
1217     q
1218     }
1219     /^X\(\/\/\)$/{
1220     s//\1/
1221     q
1222     }
1223     /^X\(\/\).*/{
1224     s//\1/
1225     q
1226     }
1227     s/.*/./; q'`
1228 root 1.1 srcdir=$ac_confdir
1229 root 1.12 if test ! -r "$srcdir/$ac_unique_file"; then
1230 root 1.1 srcdir=..
1231     fi
1232     else
1233     ac_srcdir_defaulted=no
1234     fi
1235 root 1.12 if test ! -r "$srcdir/$ac_unique_file"; then
1236     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1237     as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1238     fi
1239     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1240     ac_abs_confdir=`(
1241     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1242     pwd)`
1243     # When building in place, set srcdir=.
1244     if test "$ac_abs_confdir" = "$ac_pwd"; then
1245     srcdir=.
1246     fi
1247     # Remove unnecessary trailing slashes from srcdir.
1248     # Double slashes in file names in object file debugging info
1249     # mess up M-x gdb in Emacs.
1250     case $srcdir in
1251     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1252     esac
1253     for ac_var in $ac_precious_vars; do
1254     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1255     eval ac_env_${ac_var}_value=\$${ac_var}
1256     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1257     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1258     done
1259    
1260     #
1261     # Report the --help message.
1262     #
1263     if test "$ac_init_help" = "long"; then
1264     # Omit some internal or obsolete options to make the list less imposing.
1265     # This message is too long to be a string in the A/UX 3.1 sh.
1266     cat <<_ACEOF
1267     \`configure' configures this package to adapt to many kinds of systems.
1268    
1269     Usage: $0 [OPTION]... [VAR=VALUE]...
1270    
1271     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1272     VAR=VALUE. See below for descriptions of some of the useful variables.
1273    
1274     Defaults for the options are specified in brackets.
1275    
1276     Configuration:
1277     -h, --help display this help and exit
1278     --help=short display options specific to this package
1279     --help=recursive display the short help of all the included packages
1280     -V, --version display version information and exit
1281     -q, --quiet, --silent do not print \`checking ...' messages
1282     --cache-file=FILE cache test results in FILE [disabled]
1283     -C, --config-cache alias for \`--cache-file=config.cache'
1284     -n, --no-create do not create output files
1285     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1286    
1287     Installation directories:
1288     --prefix=PREFIX install architecture-independent files in PREFIX
1289     [$ac_default_prefix]
1290     --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1291     [PREFIX]
1292    
1293     By default, \`make install' will install all the files in
1294     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1295     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1296     for instance \`--prefix=\$HOME'.
1297    
1298     For better control, use the options below.
1299    
1300     Fine tuning of the installation directories:
1301     --bindir=DIR user executables [EPREFIX/bin]
1302     --sbindir=DIR system admin executables [EPREFIX/sbin]
1303     --libexecdir=DIR program executables [EPREFIX/libexec]
1304     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1305     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1306     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1307     --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1308     --libdir=DIR object code libraries [EPREFIX/lib]
1309     --includedir=DIR C header files [PREFIX/include]
1310     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1311     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1312     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1313     --infodir=DIR info documentation [DATAROOTDIR/info]
1314     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1315     --mandir=DIR man documentation [DATAROOTDIR/man]
1316     --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1317     --htmldir=DIR html documentation [DOCDIR]
1318     --dvidir=DIR dvi documentation [DOCDIR]
1319     --pdfdir=DIR pdf documentation [DOCDIR]
1320     --psdir=DIR ps documentation [DOCDIR]
1321     _ACEOF
1322    
1323     cat <<\_ACEOF
1324     _ACEOF
1325     fi
1326    
1327     if test -n "$ac_init_help"; then
1328    
1329     cat <<\_ACEOF
1330    
1331     Optional Packages:
1332     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1333     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1334    
1335    
1336     Some influential environment variables:
1337     CC C compiler command
1338     CFLAGS C compiler flags
1339     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1340     nonstandard directory <lib dir>
1341     LIBS libraries to pass to the linker, e.g. -l<library>
1342     CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1343     you have headers in a nonstandard directory <include dir>
1344     CPP C preprocessor
1345    
1346     Use these variables to override the choices made by `configure' or to help
1347     it to find libraries and programs with nonstandard names/locations.
1348    
1349     Report bugs to the package provider.
1350     _ACEOF
1351     ac_status=$?
1352     fi
1353    
1354     if test "$ac_init_help" = "recursive"; then
1355     # If there are subdirs, report their specific --help.
1356     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1357     test -d "$ac_dir" ||
1358     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1359     continue
1360     ac_builddir=.
1361    
1362     case "$ac_dir" in
1363     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364     *)
1365 root 1.14 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1366 root 1.12 # A ".." for each directory in $ac_dir_suffix.
1367 root 1.14 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1368 root 1.12 case $ac_top_builddir_sub in
1369     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1370     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1371     esac ;;
1372     esac
1373     ac_abs_top_builddir=$ac_pwd
1374     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1375     # for backward compatibility:
1376     ac_top_builddir=$ac_top_build_prefix
1377    
1378     case $srcdir in
1379     .) # We are building in place.
1380     ac_srcdir=.
1381     ac_top_srcdir=$ac_top_builddir_sub
1382     ac_abs_top_srcdir=$ac_pwd ;;
1383     [\\/]* | ?:[\\/]* ) # Absolute name.
1384     ac_srcdir=$srcdir$ac_dir_suffix;
1385     ac_top_srcdir=$srcdir
1386     ac_abs_top_srcdir=$srcdir ;;
1387     *) # Relative name.
1388     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1389     ac_top_srcdir=$ac_top_build_prefix$srcdir
1390     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1391     esac
1392     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1393    
1394     cd "$ac_dir" || { ac_status=$?; continue; }
1395 root 1.14 # Check for configure.gnu first; this name is used for a wrapper for
1396     # Metaconfig's "Configure" on case-insensitive file systems.
1397 root 1.12 if test -f "$ac_srcdir/configure.gnu"; then
1398     echo &&
1399     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1400     elif test -f "$ac_srcdir/configure"; then
1401     echo &&
1402     $SHELL "$ac_srcdir/configure" --help=recursive
1403     else
1404 root 1.14 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1405 root 1.12 fi || ac_status=$?
1406     cd "$ac_pwd" || { ac_status=$?; break; }
1407     done
1408 root 1.1 fi
1409    
1410 root 1.12 test -n "$ac_init_help" && exit $ac_status
1411     if $ac_init_version; then
1412     cat <<\_ACEOF
1413     configure
1414 root 1.14 generated by GNU Autoconf 2.71
1415 root 1.12
1416 root 1.14 Copyright (C) 2021 Free Software Foundation, Inc.
1417 root 1.12 This configure script is free software; the Free Software Foundation
1418     gives unlimited permission to copy, distribute and modify it.
1419     _ACEOF
1420     exit
1421     fi
1422    
1423     ## ------------------------ ##
1424     ## Autoconf initialization. ##
1425     ## ------------------------ ##
1426    
1427     # ac_fn_c_try_compile LINENO
1428     # --------------------------
1429     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1430     ac_fn_c_try_compile ()
1431     {
1432     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1433 root 1.14 rm -f conftest.$ac_objext conftest.beam
1434 root 1.12 if { { ac_try="$ac_compile"
1435     case "(($ac_try" in
1436     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1437     *) ac_try_echo=$ac_try;;
1438     esac
1439     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1440 root 1.14 printf "%s\n" "$ac_try_echo"; } >&5
1441 root 1.12 (eval "$ac_compile") 2>conftest.err
1442     ac_status=$?
1443     if test -s conftest.err; then
1444     grep -v '^ *+' conftest.err >conftest.er1
1445     cat conftest.er1 >&5
1446     mv -f conftest.er1 conftest.err
1447     fi
1448 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1449 root 1.12 test $ac_status = 0; } && {
1450     test -z "$ac_c_werror_flag" ||
1451     test ! -s conftest.err
1452 root 1.14 } && test -s conftest.$ac_objext
1453     then :
1454 root 1.12 ac_retval=0
1455 root 1.14 else $as_nop
1456     printf "%s\n" "$as_me: failed program was:" >&5
1457 root 1.12 sed 's/^/| /' conftest.$ac_ext >&5
1458    
1459     ac_retval=1
1460     fi
1461     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1462     as_fn_set_status $ac_retval
1463    
1464     } # ac_fn_c_try_compile
1465    
1466     # ac_fn_c_try_cpp LINENO
1467     # ----------------------
1468     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1469     ac_fn_c_try_cpp ()
1470     {
1471     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1472     if { { ac_try="$ac_cpp conftest.$ac_ext"
1473     case "(($ac_try" in
1474     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475     *) ac_try_echo=$ac_try;;
1476     esac
1477     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478 root 1.14 printf "%s\n" "$ac_try_echo"; } >&5
1479 root 1.12 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1480     ac_status=$?
1481     if test -s conftest.err; then
1482     grep -v '^ *+' conftest.err >conftest.er1
1483     cat conftest.er1 >&5
1484     mv -f conftest.er1 conftest.err
1485     fi
1486 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487 root 1.12 test $ac_status = 0; } > conftest.i && {
1488     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1489     test ! -s conftest.err
1490 root 1.14 }
1491     then :
1492 root 1.12 ac_retval=0
1493 root 1.14 else $as_nop
1494     printf "%s\n" "$as_me: failed program was:" >&5
1495 root 1.12 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_cpp
1503    
1504 root 1.14 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1505     # -------------------------------------------------------
1506     # Tests whether HEADER exists and can be compiled using the include files in
1507     # INCLUDES, setting the cache variable VAR accordingly.
1508     ac_fn_c_check_header_compile ()
1509 root 1.12 {
1510     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1512     printf %s "checking for $2... " >&6; }
1513     if eval test \${$3+y}
1514     then :
1515     printf %s "(cached) " >&6
1516     else $as_nop
1517     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1518     /* end confdefs.h. */
1519     $4
1520     #include <$2>
1521     _ACEOF
1522     if ac_fn_c_try_compile "$LINENO"
1523     then :
1524     eval "$3=yes"
1525     else $as_nop
1526     eval "$3=no"
1527     fi
1528     rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1529 root 1.12 fi
1530 root 1.14 eval ac_res=\$$3
1531     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1532     printf "%s\n" "$ac_res" >&6; }
1533 root 1.12 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1534    
1535 root 1.14 } # ac_fn_c_check_header_compile
1536 root 1.12
1537     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1538     # -------------------------------------------
1539     # Tests whether TYPE exists after having included INCLUDES, setting cache
1540     # variable VAR accordingly.
1541     ac_fn_c_check_type ()
1542     {
1543     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1545     printf %s "checking for $2... " >&6; }
1546     if eval test \${$3+y}
1547     then :
1548     printf %s "(cached) " >&6
1549     else $as_nop
1550 root 1.12 eval "$3=no"
1551     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552     /* end confdefs.h. */
1553     $4
1554     int
1555 root 1.14 main (void)
1556 root 1.12 {
1557     if (sizeof ($2))
1558     return 0;
1559     ;
1560     return 0;
1561     }
1562     _ACEOF
1563 root 1.14 if ac_fn_c_try_compile "$LINENO"
1564     then :
1565 root 1.12 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1566     /* end confdefs.h. */
1567     $4
1568     int
1569 root 1.14 main (void)
1570 root 1.12 {
1571     if (sizeof (($2)))
1572     return 0;
1573     ;
1574     return 0;
1575     }
1576     _ACEOF
1577 root 1.14 if ac_fn_c_try_compile "$LINENO"
1578     then :
1579 root 1.12
1580 root 1.14 else $as_nop
1581 root 1.12 eval "$3=yes"
1582     fi
1583 root 1.14 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1584 root 1.12 fi
1585 root 1.14 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1586 root 1.12 fi
1587     eval ac_res=\$$3
1588 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589     printf "%s\n" "$ac_res" >&6; }
1590 root 1.12 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591    
1592     } # ac_fn_c_check_type
1593    
1594     # ac_fn_c_try_link LINENO
1595     # -----------------------
1596     # Try to link conftest.$ac_ext, and return whether this succeeded.
1597     ac_fn_c_try_link ()
1598     {
1599     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 root 1.14 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1601 root 1.12 if { { ac_try="$ac_link"
1602     case "(($ac_try" in
1603     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604     *) ac_try_echo=$ac_try;;
1605     esac
1606     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 root 1.14 printf "%s\n" "$ac_try_echo"; } >&5
1608 root 1.12 (eval "$ac_link") 2>conftest.err
1609     ac_status=$?
1610     if test -s conftest.err; then
1611     grep -v '^ *+' conftest.err >conftest.er1
1612     cat conftest.er1 >&5
1613     mv -f conftest.er1 conftest.err
1614 root 1.1 fi
1615 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 root 1.12 test $ac_status = 0; } && {
1617     test -z "$ac_c_werror_flag" ||
1618     test ! -s conftest.err
1619     } && test -s conftest$ac_exeext && {
1620     test "$cross_compiling" = yes ||
1621     test -x conftest$ac_exeext
1622 root 1.14 }
1623     then :
1624 root 1.12 ac_retval=0
1625 root 1.14 else $as_nop
1626     printf "%s\n" "$as_me: failed program was:" >&5
1627 root 1.12 sed 's/^/| /' conftest.$ac_ext >&5
1628    
1629     ac_retval=1
1630     fi
1631     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633     # interfere with the next link command; also delete a directory that is
1634     # left behind by Apple's compiler. We do this before executing the actions.
1635     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636     eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637     as_fn_set_status $ac_retval
1638    
1639     } # ac_fn_c_try_link
1640    
1641     # ac_fn_c_check_func LINENO FUNC VAR
1642     # ----------------------------------
1643     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1644     ac_fn_c_check_func ()
1645     {
1646     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648     printf %s "checking for $2... " >&6; }
1649     if eval test \${$3+y}
1650     then :
1651     printf %s "(cached) " >&6
1652     else $as_nop
1653 root 1.12 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654     /* end confdefs.h. */
1655     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1656     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1657     #define $2 innocuous_$2
1658    
1659     /* System header to define __stub macros and hopefully few prototypes,
1660 root 1.14 which can conflict with char $2 (); below. */
1661 root 1.12
1662 root 1.14 #include <limits.h>
1663 root 1.12 #undef $2
1664    
1665     /* Override any GCC internal prototype to avoid an error.
1666     Use char because int might match the return type of a GCC
1667     builtin and then its argument prototype would still apply. */
1668     #ifdef __cplusplus
1669     extern "C"
1670     #endif
1671     char $2 ();
1672     /* The GNU C library defines this for functions which it implements
1673     to always fail with ENOSYS. Some functions are actually named
1674     something starting with __ and the normal name is an alias. */
1675     #if defined __stub_$2 || defined __stub___$2
1676     choke me
1677     #endif
1678    
1679     int
1680 root 1.14 main (void)
1681 root 1.12 {
1682     return $2 ();
1683     ;
1684     return 0;
1685     }
1686     _ACEOF
1687 root 1.14 if ac_fn_c_try_link "$LINENO"
1688     then :
1689 root 1.12 eval "$3=yes"
1690 root 1.14 else $as_nop
1691 root 1.12 eval "$3=no"
1692     fi
1693 root 1.14 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1694 root 1.12 conftest$ac_exeext conftest.$ac_ext
1695     fi
1696     eval ac_res=\$$3
1697 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698     printf "%s\n" "$ac_res" >&6; }
1699 root 1.12 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700    
1701     } # ac_fn_c_check_func
1702 root 1.14 ac_configure_args_raw=
1703     for ac_arg
1704     do
1705     case $ac_arg in
1706     *\'*)
1707     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1708     esac
1709     as_fn_append ac_configure_args_raw " '$ac_arg'"
1710     done
1711    
1712     case $ac_configure_args_raw in
1713     *$as_nl*)
1714     ac_safe_unquote= ;;
1715     *)
1716     ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1717     ac_unsafe_a="$ac_unsafe_z#~"
1718     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1719     ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1720     esac
1721    
1722 root 1.12 cat >config.log <<_ACEOF
1723     This file contains any messages produced by compilers while
1724     running configure, to aid debugging if configure makes a mistake.
1725    
1726     It was created by $as_me, which was
1727 root 1.14 generated by GNU Autoconf 2.71. Invocation command line was
1728 root 1.12
1729 root 1.14 $ $0$ac_configure_args_raw
1730 root 1.12
1731     _ACEOF
1732     exec 5>>config.log
1733     {
1734     cat <<_ASUNAME
1735     ## --------- ##
1736     ## Platform. ##
1737     ## --------- ##
1738    
1739     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1740     uname -m = `(uname -m) 2>/dev/null || echo unknown`
1741     uname -r = `(uname -r) 2>/dev/null || echo unknown`
1742     uname -s = `(uname -s) 2>/dev/null || echo unknown`
1743     uname -v = `(uname -v) 2>/dev/null || echo unknown`
1744    
1745     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1746     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1747    
1748     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1749     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1750     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1751     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1752     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1753     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1754     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1755    
1756     _ASUNAME
1757    
1758     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759     for as_dir in $PATH
1760     do
1761     IFS=$as_save_IFS
1762 root 1.14 case $as_dir in #(((
1763     '') as_dir=./ ;;
1764     */) ;;
1765     *) as_dir=$as_dir/ ;;
1766     esac
1767     printf "%s\n" "PATH: $as_dir"
1768 root 1.12 done
1769     IFS=$as_save_IFS
1770    
1771     } >&5
1772    
1773     cat >&5 <<_ACEOF
1774    
1775    
1776     ## ----------- ##
1777     ## Core tests. ##
1778     ## ----------- ##
1779    
1780     _ACEOF
1781    
1782    
1783     # Keep a trace of the command line.
1784     # Strip out --no-create and --no-recursion so they do not pile up.
1785     # Strip out --silent because we don't want to record it for future runs.
1786     # Also quote any args containing shell meta-characters.
1787     # Make two passes to allow for proper duplicate-argument suppression.
1788     ac_configure_args=
1789     ac_configure_args0=
1790     ac_configure_args1=
1791     ac_must_keep_next=false
1792     for ac_pass in 1 2
1793     do
1794     for ac_arg
1795     do
1796     case $ac_arg in
1797     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1798     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1799     | -silent | --silent | --silen | --sile | --sil)
1800     continue ;;
1801     *\'*)
1802 root 1.14 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803 root 1.12 esac
1804     case $ac_pass in
1805     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1806     2)
1807     as_fn_append ac_configure_args1 " '$ac_arg'"
1808     if test $ac_must_keep_next = true; then
1809     ac_must_keep_next=false # Got value, back to normal.
1810     else
1811     case $ac_arg in
1812     *=* | --config-cache | -C | -disable-* | --disable-* \
1813     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1814     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1815     | -with-* | --with-* | -without-* | --without-* | --x)
1816     case "$ac_configure_args0 " in
1817     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1818     esac
1819     ;;
1820     -* ) ac_must_keep_next=true ;;
1821     esac
1822     fi
1823     as_fn_append ac_configure_args " '$ac_arg'"
1824     ;;
1825     esac
1826     done
1827     done
1828     { ac_configure_args0=; unset ac_configure_args0;}
1829     { ac_configure_args1=; unset ac_configure_args1;}
1830    
1831     # When interrupted or exit'd, cleanup temporary files, and complete
1832     # config.log. We remove comments because anyway the quotes in there
1833     # would cause problems or look ugly.
1834     # WARNING: Use '\'' to represent an apostrophe within the trap.
1835     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1836     trap 'exit_status=$?
1837 root 1.14 # Sanitize IFS.
1838     IFS=" "" $as_nl"
1839 root 1.12 # Save into config.log some information that might help in debugging.
1840     {
1841     echo
1842    
1843 root 1.14 printf "%s\n" "## ---------------- ##
1844 root 1.12 ## Cache variables. ##
1845     ## ---------------- ##"
1846     echo
1847     # The following way of writing the cache mishandles newlines in values,
1848     (
1849     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1850     eval ac_val=\$$ac_var
1851     case $ac_val in #(
1852     *${as_nl}*)
1853     case $ac_var in #(
1854 root 1.14 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1855     printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1856 root 1.12 esac
1857     case $ac_var in #(
1858     _ | IFS | as_nl) ;; #(
1859     BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1860     *) { eval $ac_var=; unset $ac_var;} ;;
1861     esac ;;
1862     esac
1863     done
1864     (set) 2>&1 |
1865     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1866     *${as_nl}ac_space=\ *)
1867     sed -n \
1868     "s/'\''/'\''\\\\'\'''\''/g;
1869     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1870     ;; #(
1871     *)
1872     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1873     ;;
1874     esac |
1875     sort
1876     )
1877     echo
1878    
1879 root 1.14 printf "%s\n" "## ----------------- ##
1880 root 1.12 ## Output variables. ##
1881     ## ----------------- ##"
1882     echo
1883     for ac_var in $ac_subst_vars
1884     do
1885     eval ac_val=\$$ac_var
1886     case $ac_val in
1887 root 1.14 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1888 root 1.12 esac
1889 root 1.14 printf "%s\n" "$ac_var='\''$ac_val'\''"
1890 root 1.12 done | sort
1891     echo
1892    
1893     if test -n "$ac_subst_files"; then
1894 root 1.14 printf "%s\n" "## ------------------- ##
1895 root 1.12 ## File substitutions. ##
1896     ## ------------------- ##"
1897     echo
1898     for ac_var in $ac_subst_files
1899     do
1900     eval ac_val=\$$ac_var
1901     case $ac_val in
1902 root 1.14 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903 root 1.12 esac
1904 root 1.14 printf "%s\n" "$ac_var='\''$ac_val'\''"
1905 root 1.12 done | sort
1906     echo
1907     fi
1908    
1909     if test -s confdefs.h; then
1910 root 1.14 printf "%s\n" "## ----------- ##
1911 root 1.12 ## confdefs.h. ##
1912     ## ----------- ##"
1913     echo
1914     cat confdefs.h
1915     echo
1916     fi
1917     test "$ac_signal" != 0 &&
1918 root 1.14 printf "%s\n" "$as_me: caught signal $ac_signal"
1919     printf "%s\n" "$as_me: exit $exit_status"
1920 root 1.12 } >&5
1921     rm -f core *.core core.conftest.* &&
1922     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1923     exit $exit_status
1924     ' 0
1925     for ac_signal in 1 2 13 15; do
1926     trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1927     done
1928     ac_signal=0
1929    
1930     # confdefs.h avoids OS command line length limits that DEFS can exceed.
1931     rm -f -r conftest* confdefs.h
1932    
1933 root 1.14 printf "%s\n" "/* confdefs.h */" > confdefs.h
1934 root 1.12
1935     # Predefined preprocessor variables.
1936    
1937 root 1.14 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1938 root 1.12
1939 root 1.14 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1940 root 1.12
1941 root 1.14 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1942 root 1.12
1943 root 1.14 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1944 root 1.12
1945 root 1.14 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1946 root 1.12
1947 root 1.14 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1948 root 1.12
1949    
1950     # Let the site file select an alternate cache file if it wants to.
1951     # Prefer an explicitly selected file to automatically selected ones.
1952     if test -n "$CONFIG_SITE"; then
1953 root 1.14 ac_site_files="$CONFIG_SITE"
1954 root 1.12 elif test "x$prefix" != xNONE; then
1955 root 1.14 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1956 root 1.12 else
1957 root 1.14 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1958 root 1.1 fi
1959 root 1.14
1960     for ac_site_file in $ac_site_files
1961 root 1.12 do
1962 root 1.14 case $ac_site_file in #(
1963     */*) :
1964     ;; #(
1965     *) :
1966     ac_site_file=./$ac_site_file ;;
1967     esac
1968     if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1969     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1970     printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1971 root 1.12 sed 's/^/| /' "$ac_site_file" >&5
1972     . "$ac_site_file" \
1973 root 1.14 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1974     printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1975 root 1.12 as_fn_error $? "failed to load site script $ac_site_file
1976     See \`config.log' for more details" "$LINENO" 5; }
1977 root 1.1 fi
1978     done
1979    
1980     if test -r "$cache_file"; then
1981 root 1.12 # Some versions of bash will fail to source /dev/null (special files
1982     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1983     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1984 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1985     printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1986 root 1.12 case $cache_file in
1987     [\\/]* | ?:[\\/]* ) . "$cache_file";;
1988     *) . "./$cache_file";;
1989     esac
1990     fi
1991 root 1.1 else
1992 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1993     printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1994 root 1.12 >$cache_file
1995     fi
1996    
1997 root 1.14 # Test code for whether the C compiler supports C89 (global declarations)
1998     ac_c_conftest_c89_globals='
1999     /* Does the compiler advertise C89 conformance?
2000     Do not test the value of __STDC__, because some compilers set it to 0
2001     while being otherwise adequately conformant. */
2002     #if !defined __STDC__
2003     # error "Compiler does not advertise C89 conformance"
2004     #endif
2005    
2006     #include <stddef.h>
2007     #include <stdarg.h>
2008     struct stat;
2009     /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2010     struct buf { int x; };
2011     struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2012     static char *e (p, i)
2013     char **p;
2014     int i;
2015     {
2016     return p[i];
2017     }
2018     static char *f (char * (*g) (char **, int), char **p, ...)
2019     {
2020     char *s;
2021     va_list v;
2022     va_start (v,p);
2023     s = g (p, va_arg (v,int));
2024     va_end (v);
2025     return s;
2026     }
2027    
2028     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2029     function prototypes and stuff, but not \xHH hex character constants.
2030     These do not provoke an error unfortunately, instead are silently treated
2031     as an "x". The following induces an error, until -std is added to get
2032     proper ANSI mode. Curiously \x00 != x always comes out true, for an
2033     array size at least. It is necessary to write \x00 == 0 to get something
2034     that is true only with -std. */
2035     int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2036    
2037     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2038     inside strings and character constants. */
2039     #define FOO(x) '\''x'\''
2040     int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2041    
2042     int test (int i, double x);
2043     struct s1 {int (*f) (int a);};
2044     struct s2 {int (*f) (double a);};
2045     int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2046     int, int);'
2047    
2048     # Test code for whether the C compiler supports C89 (body of main).
2049     ac_c_conftest_c89_main='
2050     ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2051     '
2052    
2053     # Test code for whether the C compiler supports C99 (global declarations)
2054     ac_c_conftest_c99_globals='
2055     // Does the compiler advertise C99 conformance?
2056     #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2057     # error "Compiler does not advertise C99 conformance"
2058     #endif
2059    
2060     #include <stdbool.h>
2061     extern int puts (const char *);
2062     extern int printf (const char *, ...);
2063     extern int dprintf (int, const char *, ...);
2064     extern void *malloc (size_t);
2065    
2066     // Check varargs macros. These examples are taken from C99 6.10.3.5.
2067     // dprintf is used instead of fprintf to avoid needing to declare
2068     // FILE and stderr.
2069     #define debug(...) dprintf (2, __VA_ARGS__)
2070     #define showlist(...) puts (#__VA_ARGS__)
2071     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2072     static void
2073     test_varargs_macros (void)
2074     {
2075     int x = 1234;
2076     int y = 5678;
2077     debug ("Flag");
2078     debug ("X = %d\n", x);
2079     showlist (The first, second, and third items.);
2080     report (x>y, "x is %d but y is %d", x, y);
2081     }
2082    
2083     // Check long long types.
2084     #define BIG64 18446744073709551615ull
2085     #define BIG32 4294967295ul
2086     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2087     #if !BIG_OK
2088     #error "your preprocessor is broken"
2089     #endif
2090     #if BIG_OK
2091     #else
2092     #error "your preprocessor is broken"
2093     #endif
2094     static long long int bignum = -9223372036854775807LL;
2095     static unsigned long long int ubignum = BIG64;
2096    
2097     struct incomplete_array
2098     {
2099     int datasize;
2100     double data[];
2101     };
2102    
2103     struct named_init {
2104     int number;
2105     const wchar_t *name;
2106     double average;
2107     };
2108    
2109     typedef const char *ccp;
2110    
2111     static inline int
2112     test_restrict (ccp restrict text)
2113     {
2114     // See if C++-style comments work.
2115     // Iterate through items via the restricted pointer.
2116     // Also check for declarations in for loops.
2117     for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2118     continue;
2119     return 0;
2120     }
2121    
2122     // Check varargs and va_copy.
2123     static bool
2124     test_varargs (const char *format, ...)
2125     {
2126     va_list args;
2127     va_start (args, format);
2128     va_list args_copy;
2129     va_copy (args_copy, args);
2130    
2131     const char *str = "";
2132     int number = 0;
2133     float fnumber = 0;
2134    
2135     while (*format)
2136     {
2137     switch (*format++)
2138     {
2139     case '\''s'\'': // string
2140     str = va_arg (args_copy, const char *);
2141     break;
2142     case '\''d'\'': // int
2143     number = va_arg (args_copy, int);
2144     break;
2145     case '\''f'\'': // float
2146     fnumber = va_arg (args_copy, double);
2147     break;
2148     default:
2149     break;
2150     }
2151     }
2152     va_end (args_copy);
2153     va_end (args);
2154    
2155     return *str && number && fnumber;
2156     }
2157     '
2158    
2159     # Test code for whether the C compiler supports C99 (body of main).
2160     ac_c_conftest_c99_main='
2161     // Check bool.
2162     _Bool success = false;
2163     success |= (argc != 0);
2164    
2165     // Check restrict.
2166     if (test_restrict ("String literal") == 0)
2167     success = true;
2168     char *restrict newvar = "Another string";
2169    
2170     // Check varargs.
2171     success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2172     test_varargs_macros ();
2173    
2174     // Check flexible array members.
2175     struct incomplete_array *ia =
2176     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2177     ia->datasize = 10;
2178     for (int i = 0; i < ia->datasize; ++i)
2179     ia->data[i] = i * 1.234;
2180    
2181     // Check named initializers.
2182     struct named_init ni = {
2183     .number = 34,
2184     .name = L"Test wide string",
2185     .average = 543.34343,
2186     };
2187    
2188     ni.number = 58;
2189    
2190     int dynamic_array[ni.number];
2191     dynamic_array[0] = argv[0][0];
2192     dynamic_array[ni.number - 1] = 543;
2193    
2194     // work around unused variable warnings
2195     ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2196     || dynamic_array[ni.number - 1] != 543);
2197     '
2198    
2199     # Test code for whether the C compiler supports C11 (global declarations)
2200     ac_c_conftest_c11_globals='
2201     // Does the compiler advertise C11 conformance?
2202     #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2203     # error "Compiler does not advertise C11 conformance"
2204     #endif
2205    
2206     // Check _Alignas.
2207     char _Alignas (double) aligned_as_double;
2208     char _Alignas (0) no_special_alignment;
2209     extern char aligned_as_int;
2210     char _Alignas (0) _Alignas (int) aligned_as_int;
2211    
2212     // Check _Alignof.
2213     enum
2214     {
2215     int_alignment = _Alignof (int),
2216     int_array_alignment = _Alignof (int[100]),
2217     char_alignment = _Alignof (char)
2218     };
2219     _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2220    
2221     // Check _Noreturn.
2222     int _Noreturn does_not_return (void) { for (;;) continue; }
2223    
2224     // Check _Static_assert.
2225     struct test_static_assert
2226     {
2227     int x;
2228     _Static_assert (sizeof (int) <= sizeof (long int),
2229     "_Static_assert does not work in struct");
2230     long int y;
2231     };
2232    
2233     // Check UTF-8 literals.
2234     #define u8 syntax error!
2235     char const utf8_literal[] = u8"happens to be ASCII" "another string";
2236    
2237     // Check duplicate typedefs.
2238     typedef long *long_ptr;
2239     typedef long int *long_ptr;
2240     typedef long_ptr long_ptr;
2241    
2242     // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2243     struct anonymous
2244     {
2245     union {
2246     struct { int i; int j; };
2247     struct { int k; long int l; } w;
2248     };
2249     int m;
2250     } v1;
2251     '
2252    
2253     # Test code for whether the C compiler supports C11 (body of main).
2254     ac_c_conftest_c11_main='
2255     _Static_assert ((offsetof (struct anonymous, i)
2256     == offsetof (struct anonymous, w.k)),
2257     "Anonymous union alignment botch");
2258     v1.i = 2;
2259     v1.w.k = 5;
2260     ok |= v1.i != 5;
2261     '
2262    
2263     # Test code for whether the C compiler supports C11 (complete).
2264     ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2265     ${ac_c_conftest_c99_globals}
2266     ${ac_c_conftest_c11_globals}
2267    
2268     int
2269     main (int argc, char **argv)
2270     {
2271     int ok = 0;
2272     ${ac_c_conftest_c89_main}
2273     ${ac_c_conftest_c99_main}
2274     ${ac_c_conftest_c11_main}
2275     return ok;
2276     }
2277     "
2278    
2279     # Test code for whether the C compiler supports C99 (complete).
2280     ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2281     ${ac_c_conftest_c99_globals}
2282    
2283     int
2284     main (int argc, char **argv)
2285     {
2286     int ok = 0;
2287     ${ac_c_conftest_c89_main}
2288     ${ac_c_conftest_c99_main}
2289     return ok;
2290     }
2291     "
2292    
2293     # Test code for whether the C compiler supports C89 (complete).
2294     ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2295    
2296     int
2297     main (int argc, char **argv)
2298     {
2299     int ok = 0;
2300     ${ac_c_conftest_c89_main}
2301     return ok;
2302     }
2303     "
2304    
2305     as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2306     as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2307     as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2308     as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2309     as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2310     as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2311     as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2312     as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2313     as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2314     as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
2315 root 1.12 # Check that the precious variables saved in the cache have kept the same
2316     # value.
2317     ac_cache_corrupted=false
2318     for ac_var in $ac_precious_vars; do
2319     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2320     eval ac_new_set=\$ac_env_${ac_var}_set
2321     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2322     eval ac_new_val=\$ac_env_${ac_var}_value
2323     case $ac_old_set,$ac_new_set in
2324     set,)
2325 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2326     printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2327 root 1.12 ac_cache_corrupted=: ;;
2328     ,set)
2329 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2330     printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2331 root 1.12 ac_cache_corrupted=: ;;
2332     ,);;
2333     *)
2334     if test "x$ac_old_val" != "x$ac_new_val"; then
2335     # differences in whitespace do not lead to failure.
2336     ac_old_val_w=`echo x $ac_old_val`
2337     ac_new_val_w=`echo x $ac_new_val`
2338     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2339 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2340     printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2341 root 1.12 ac_cache_corrupted=:
2342     else
2343 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2344     printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2345 root 1.12 eval $ac_var=\$ac_old_val
2346     fi
2347 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2348     printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2349     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2350     printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2351 root 1.12 fi;;
2352     esac
2353     # Pass precious variables to config.status.
2354     if test "$ac_new_set" = set; then
2355     case $ac_new_val in
2356 root 1.14 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2357 root 1.12 *) ac_arg=$ac_var=$ac_new_val ;;
2358     esac
2359     case " $ac_configure_args " in
2360     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2361     *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2362     esac
2363     fi
2364     done
2365     if $ac_cache_corrupted; then
2366 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367     printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2368     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2369     printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2370     as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2371     and start over" "$LINENO" 5
2372 root 1.12 fi
2373     ## -------------------- ##
2374     ## Main body of script. ##
2375     ## -------------------- ##
2376 root 1.1
2377     ac_ext=c
2378     ac_cpp='$CPP $CPPFLAGS'
2379 root 1.12 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2382 root 1.1
2383 root 1.7
2384    
2385 root 1.12 ac_config_headers="$ac_config_headers config.h"
2386 root 1.7
2387 root 1.1
2388     #
2389     # package revision
2390     #
2391     VERSION=0.5
2392 root 1.8 PATCH=20
2393 root 1.1
2394 root 1.12
2395     # Check whether --with-cc was given.
2396 root 1.14 if test ${with_cc+y}
2397     then :
2398 root 1.12 withval=$with_cc; CC=$with_cc
2399 root 1.7 fi
2400 root 1.1
2401 root 1.12
2402     # Check whether --with-cflags was given.
2403 root 1.14 if test ${with_cflags+y}
2404     then :
2405 root 1.12 withval=$with_cflags; CFLAGS=$with_cflags
2406 root 1.7 fi
2407 root 1.4
2408    
2409 root 1.14
2410    
2411    
2412    
2413    
2414    
2415    
2416    
2417    
2418 root 1.12 ac_ext=c
2419     ac_cpp='$CPP $CPPFLAGS'
2420     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423     if test -n "$ac_tool_prefix"; then
2424     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2425     set dummy ${ac_tool_prefix}gcc; ac_word=$2
2426 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2427     printf %s "checking for $ac_word... " >&6; }
2428     if test ${ac_cv_prog_CC+y}
2429     then :
2430     printf %s "(cached) " >&6
2431     else $as_nop
2432 root 1.1 if test -n "$CC"; then
2433     ac_cv_prog_CC="$CC" # Let the user override the test.
2434     else
2435 root 1.12 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436     for as_dir in $PATH
2437     do
2438     IFS=$as_save_IFS
2439 root 1.14 case $as_dir in #(((
2440     '') as_dir=./ ;;
2441     */) ;;
2442     *) as_dir=$as_dir/ ;;
2443     esac
2444 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
2445 root 1.14 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2446 root 1.12 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2447 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2448 root 1.12 break 2
2449     fi
2450     done
2451 root 1.7 done
2452 root 1.12 IFS=$as_save_IFS
2453    
2454 root 1.1 fi
2455     fi
2456 root 1.12 CC=$ac_cv_prog_CC
2457 root 1.1 if test -n "$CC"; then
2458 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2459     printf "%s\n" "$CC" >&6; }
2460 root 1.1 else
2461 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462     printf "%s\n" "no" >&6; }
2463 root 1.1 fi
2464    
2465 root 1.12
2466     fi
2467     if test -z "$ac_cv_prog_CC"; then
2468     ac_ct_CC=$CC
2469     # Extract the first word of "gcc", so it can be a program name with args.
2470     set dummy gcc; ac_word=$2
2471 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472     printf %s "checking for $ac_word... " >&6; }
2473     if test ${ac_cv_prog_ac_ct_CC+y}
2474     then :
2475     printf %s "(cached) " >&6
2476     else $as_nop
2477 root 1.12 if test -n "$ac_ct_CC"; then
2478     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479 root 1.1 else
2480 root 1.12 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481     for as_dir in $PATH
2482     do
2483     IFS=$as_save_IFS
2484 root 1.14 case $as_dir in #(((
2485     '') as_dir=./ ;;
2486     */) ;;
2487     *) as_dir=$as_dir/ ;;
2488     esac
2489 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
2490 root 1.14 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2491 root 1.12 ac_cv_prog_ac_ct_CC="gcc"
2492 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2493 root 1.12 break 2
2494     fi
2495     done
2496 root 1.7 done
2497 root 1.12 IFS=$as_save_IFS
2498    
2499 root 1.1 fi
2500     fi
2501 root 1.12 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2502     if test -n "$ac_ct_CC"; then
2503 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2504     printf "%s\n" "$ac_ct_CC" >&6; }
2505 root 1.12 else
2506 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507     printf "%s\n" "no" >&6; }
2508 root 1.1 fi
2509 root 1.12
2510     if test "x$ac_ct_CC" = x; then
2511     CC=""
2512     else
2513     case $cross_compiling:$ac_tool_warned in
2514     yes:)
2515 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2516     printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2517 root 1.12 ac_tool_warned=yes ;;
2518     esac
2519     CC=$ac_ct_CC
2520     fi
2521 root 1.1 else
2522 root 1.12 CC="$ac_cv_prog_CC"
2523 root 1.1 fi
2524    
2525 root 1.12 if test -z "$CC"; then
2526     if test -n "$ac_tool_prefix"; then
2527     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2528     set dummy ${ac_tool_prefix}cc; ac_word=$2
2529 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2530     printf %s "checking for $ac_word... " >&6; }
2531     if test ${ac_cv_prog_CC+y}
2532     then :
2533     printf %s "(cached) " >&6
2534     else $as_nop
2535 root 1.1 if test -n "$CC"; then
2536     ac_cv_prog_CC="$CC" # Let the user override the test.
2537     else
2538 root 1.12 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539     for as_dir in $PATH
2540     do
2541     IFS=$as_save_IFS
2542 root 1.14 case $as_dir in #(((
2543     '') as_dir=./ ;;
2544     */) ;;
2545     *) as_dir=$as_dir/ ;;
2546     esac
2547 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
2548 root 1.14 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2549 root 1.12 ac_cv_prog_CC="${ac_tool_prefix}cc"
2550 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2551 root 1.12 break 2
2552     fi
2553     done
2554     done
2555     IFS=$as_save_IFS
2556    
2557     fi
2558     fi
2559     CC=$ac_cv_prog_CC
2560     if test -n "$CC"; then
2561 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562     printf "%s\n" "$CC" >&6; }
2563 root 1.12 else
2564 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565     printf "%s\n" "no" >&6; }
2566 root 1.12 fi
2567    
2568    
2569     fi
2570     fi
2571     if test -z "$CC"; then
2572     # Extract the first word of "cc", so it can be a program name with args.
2573     set dummy cc; ac_word=$2
2574 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575     printf %s "checking for $ac_word... " >&6; }
2576     if test ${ac_cv_prog_CC+y}
2577     then :
2578     printf %s "(cached) " >&6
2579     else $as_nop
2580 root 1.12 if test -n "$CC"; then
2581     ac_cv_prog_CC="$CC" # Let the user override the test.
2582     else
2583     ac_prog_rejected=no
2584     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585     for as_dir in $PATH
2586     do
2587     IFS=$as_save_IFS
2588 root 1.14 case $as_dir in #(((
2589     '') as_dir=./ ;;
2590     */) ;;
2591     *) as_dir=$as_dir/ ;;
2592     esac
2593 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
2594 root 1.14 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2595     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2596 root 1.12 ac_prog_rejected=yes
2597     continue
2598     fi
2599     ac_cv_prog_CC="cc"
2600 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2601 root 1.12 break 2
2602     fi
2603     done
2604     done
2605     IFS=$as_save_IFS
2606    
2607     if test $ac_prog_rejected = yes; then
2608     # We found a bogon in the path, so make sure we never use it.
2609     set dummy $ac_cv_prog_CC
2610     shift
2611     if test $# != 0; then
2612     # We chose a different compiler from the bogus one.
2613     # However, it has the same basename, so the bogon will be chosen
2614     # first if we set CC to just the basename; use the full file name.
2615     shift
2616 root 1.14 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2617 root 1.12 fi
2618     fi
2619     fi
2620     fi
2621     CC=$ac_cv_prog_CC
2622     if test -n "$CC"; then
2623 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2624     printf "%s\n" "$CC" >&6; }
2625     else
2626     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627     printf "%s\n" "no" >&6; }
2628     fi
2629    
2630    
2631     fi
2632     if test -z "$CC"; then
2633     if test -n "$ac_tool_prefix"; then
2634     for ac_prog in cl.exe
2635     do
2636     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2637     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2638     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639     printf %s "checking for $ac_word... " >&6; }
2640     if test ${ac_cv_prog_CC+y}
2641     then :
2642     printf %s "(cached) " >&6
2643     else $as_nop
2644     if test -n "$CC"; then
2645     ac_cv_prog_CC="$CC" # Let the user override the test.
2646     else
2647     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648     for as_dir in $PATH
2649     do
2650     IFS=$as_save_IFS
2651     case $as_dir in #(((
2652     '') as_dir=./ ;;
2653     */) ;;
2654     *) as_dir=$as_dir/ ;;
2655     esac
2656     for ac_exec_ext in '' $ac_executable_extensions; do
2657     if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2658     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2659     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2660     break 2
2661     fi
2662     done
2663     done
2664     IFS=$as_save_IFS
2665    
2666     fi
2667     fi
2668     CC=$ac_cv_prog_CC
2669     if test -n "$CC"; then
2670     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2671     printf "%s\n" "$CC" >&6; }
2672 root 1.12 else
2673 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674     printf "%s\n" "no" >&6; }
2675 root 1.12 fi
2676    
2677    
2678 root 1.14 test -n "$CC" && break
2679     done
2680     fi
2681     if test -z "$CC"; then
2682     ac_ct_CC=$CC
2683     for ac_prog in cl.exe
2684     do
2685     # Extract the first word of "$ac_prog", so it can be a program name with args.
2686     set dummy $ac_prog; ac_word=$2
2687     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2688     printf %s "checking for $ac_word... " >&6; }
2689     if test ${ac_cv_prog_ac_ct_CC+y}
2690     then :
2691     printf %s "(cached) " >&6
2692     else $as_nop
2693     if test -n "$ac_ct_CC"; then
2694     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2695     else
2696     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697     for as_dir in $PATH
2698     do
2699     IFS=$as_save_IFS
2700     case $as_dir in #(((
2701     '') as_dir=./ ;;
2702     */) ;;
2703     *) as_dir=$as_dir/ ;;
2704     esac
2705     for ac_exec_ext in '' $ac_executable_extensions; do
2706     if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2707     ac_cv_prog_ac_ct_CC="$ac_prog"
2708     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2709     break 2
2710     fi
2711     done
2712     done
2713     IFS=$as_save_IFS
2714    
2715     fi
2716     fi
2717     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2718     if test -n "$ac_ct_CC"; then
2719     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2720     printf "%s\n" "$ac_ct_CC" >&6; }
2721     else
2722     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2723     printf "%s\n" "no" >&6; }
2724     fi
2725    
2726    
2727     test -n "$ac_ct_CC" && break
2728     done
2729    
2730     if test "x$ac_ct_CC" = x; then
2731     CC=""
2732     else
2733     case $cross_compiling:$ac_tool_warned in
2734     yes:)
2735     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2736     printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2737     ac_tool_warned=yes ;;
2738     esac
2739     CC=$ac_ct_CC
2740     fi
2741     fi
2742    
2743 root 1.12 fi
2744     if test -z "$CC"; then
2745     if test -n "$ac_tool_prefix"; then
2746 root 1.14 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2747     set dummy ${ac_tool_prefix}clang; ac_word=$2
2748     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749     printf %s "checking for $ac_word... " >&6; }
2750     if test ${ac_cv_prog_CC+y}
2751     then :
2752     printf %s "(cached) " >&6
2753     else $as_nop
2754 root 1.12 if test -n "$CC"; then
2755     ac_cv_prog_CC="$CC" # Let the user override the test.
2756     else
2757     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2758     for as_dir in $PATH
2759     do
2760     IFS=$as_save_IFS
2761 root 1.14 case $as_dir in #(((
2762     '') as_dir=./ ;;
2763     */) ;;
2764     *) as_dir=$as_dir/ ;;
2765     esac
2766 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
2767 root 1.14 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2768     ac_cv_prog_CC="${ac_tool_prefix}clang"
2769     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2770 root 1.12 break 2
2771     fi
2772     done
2773 root 1.7 done
2774 root 1.12 IFS=$as_save_IFS
2775    
2776 root 1.1 fi
2777     fi
2778 root 1.12 CC=$ac_cv_prog_CC
2779 root 1.1 if test -n "$CC"; then
2780 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2781     printf "%s\n" "$CC" >&6; }
2782 root 1.1 else
2783 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784     printf "%s\n" "no" >&6; }
2785 root 1.4 fi
2786 root 1.12
2787    
2788     fi
2789 root 1.14 if test -z "$ac_cv_prog_CC"; then
2790 root 1.12 ac_ct_CC=$CC
2791 root 1.14 # Extract the first word of "clang", so it can be a program name with args.
2792     set dummy clang; ac_word=$2
2793     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794     printf %s "checking for $ac_word... " >&6; }
2795     if test ${ac_cv_prog_ac_ct_CC+y}
2796     then :
2797     printf %s "(cached) " >&6
2798     else $as_nop
2799 root 1.12 if test -n "$ac_ct_CC"; then
2800     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2801     else
2802     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2803     for as_dir in $PATH
2804     do
2805     IFS=$as_save_IFS
2806 root 1.14 case $as_dir in #(((
2807     '') as_dir=./ ;;
2808     */) ;;
2809     *) as_dir=$as_dir/ ;;
2810     esac
2811 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
2812 root 1.14 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2813     ac_cv_prog_ac_ct_CC="clang"
2814     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2815 root 1.12 break 2
2816 root 1.7 fi
2817 root 1.12 done
2818     done
2819     IFS=$as_save_IFS
2820    
2821     fi
2822     fi
2823     ac_ct_CC=$ac_cv_prog_ac_ct_CC
2824     if test -n "$ac_ct_CC"; then
2825 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2826     printf "%s\n" "$ac_ct_CC" >&6; }
2827 root 1.12 else
2828 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829     printf "%s\n" "no" >&6; }
2830 root 1.7 fi
2831    
2832 root 1.12 if test "x$ac_ct_CC" = x; then
2833     CC=""
2834 root 1.7 else
2835 root 1.12 case $cross_compiling:$ac_tool_warned in
2836     yes:)
2837 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838     printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839 root 1.12 ac_tool_warned=yes ;;
2840     esac
2841     CC=$ac_ct_CC
2842 root 1.7 fi
2843 root 1.14 else
2844     CC="$ac_cv_prog_CC"
2845 root 1.12 fi
2846    
2847     fi
2848    
2849    
2850 root 1.14 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2851     printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2852 root 1.12 as_fn_error $? "no acceptable C compiler found in \$PATH
2853     See \`config.log' for more details" "$LINENO" 5; }
2854    
2855     # Provide some information about the compiler.
2856 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2857 root 1.12 set X $ac_compile
2858     ac_compiler=$2
2859 root 1.14 for ac_option in --version -v -V -qversion -version; do
2860 root 1.12 { { ac_try="$ac_compiler $ac_option >&5"
2861     case "(($ac_try" in
2862     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2863     *) ac_try_echo=$ac_try;;
2864     esac
2865     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2866 root 1.14 printf "%s\n" "$ac_try_echo"; } >&5
2867 root 1.12 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2868     ac_status=$?
2869     if test -s conftest.err; then
2870     sed '10a\
2871     ... rest of stderr output deleted ...
2872     10q' conftest.err >conftest.er1
2873     cat conftest.er1 >&5
2874     fi
2875     rm -f conftest.er1 conftest.err
2876 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 root 1.12 test $ac_status = 0; }
2878     done
2879    
2880     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881     /* end confdefs.h. */
2882    
2883     int
2884 root 1.14 main (void)
2885 root 1.12 {
2886    
2887     ;
2888     return 0;
2889     }
2890     _ACEOF
2891     ac_clean_files_save=$ac_clean_files
2892     ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2893     # Try to create an executable without -o first, disregard a.out.
2894     # It will help us diagnose broken compilers, and finding out an intuition
2895     # of exeext.
2896 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2897     printf %s "checking whether the C compiler works... " >&6; }
2898     ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2899 root 1.12
2900     # The possible output files:
2901     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2902    
2903     ac_rmfiles=
2904     for ac_file in $ac_files
2905     do
2906     case $ac_file in
2907     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2908     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2909     esac
2910     done
2911     rm -f $ac_rmfiles
2912    
2913     if { { ac_try="$ac_link_default"
2914     case "(($ac_try" in
2915     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916     *) ac_try_echo=$ac_try;;
2917     esac
2918     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2919 root 1.14 printf "%s\n" "$ac_try_echo"; } >&5
2920 root 1.12 (eval "$ac_link_default") 2>&5
2921     ac_status=$?
2922 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2923     test $ac_status = 0; }
2924     then :
2925 root 1.12 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2926     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2927     # in a Makefile. We should not override ac_cv_exeext if it was cached,
2928     # so that the user can short-circuit this test for compilers unknown to
2929     # Autoconf.
2930     for ac_file in $ac_files ''
2931     do
2932     test -f "$ac_file" || continue
2933     case $ac_file in
2934     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2935     ;;
2936     [ab].out )
2937     # We found the default executable, but exeext='' is most
2938     # certainly right.
2939     break;;
2940     *.* )
2941 root 1.14 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
2942 root 1.12 then :; else
2943     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2944     fi
2945     # We set ac_cv_exeext here because the later test for it is not
2946     # safe: cross compilers may not add the suffix if given an `-o'
2947     # argument, so we may need to know it at that point already.
2948     # Even if this section looks crufty: it has the advantage of
2949     # actually working.
2950     break;;
2951     * )
2952     break;;
2953     esac
2954     done
2955     test "$ac_cv_exeext" = no && ac_cv_exeext=
2956    
2957 root 1.14 else $as_nop
2958 root 1.12 ac_file=''
2959 root 1.1 fi
2960 root 1.14 if test -z "$ac_file"
2961     then :
2962     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963     printf "%s\n" "no" >&6; }
2964     printf "%s\n" "$as_me: failed program was:" >&5
2965 root 1.12 sed 's/^/| /' conftest.$ac_ext >&5
2966    
2967 root 1.14 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968     printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2969 root 1.12 as_fn_error 77 "C compiler cannot create executables
2970     See \`config.log' for more details" "$LINENO" 5; }
2971 root 1.14 else $as_nop
2972     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973     printf "%s\n" "yes" >&6; }
2974     fi
2975     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2976     printf %s "checking for C compiler default output file name... " >&6; }
2977     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2978     printf "%s\n" "$ac_file" >&6; }
2979 root 1.12 ac_exeext=$ac_cv_exeext
2980    
2981     rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2982     ac_clean_files=$ac_clean_files_save
2983 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2984     printf %s "checking for suffix of executables... " >&6; }
2985 root 1.12 if { { ac_try="$ac_link"
2986     case "(($ac_try" in
2987     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988     *) ac_try_echo=$ac_try;;
2989     esac
2990     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 root 1.14 printf "%s\n" "$ac_try_echo"; } >&5
2992 root 1.12 (eval "$ac_link") 2>&5
2993     ac_status=$?
2994 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995     test $ac_status = 0; }
2996     then :
2997 root 1.12 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2998     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2999     # work properly (i.e., refer to `conftest.exe'), while it won't with
3000     # `rm'.
3001     for ac_file in conftest.exe conftest conftest.*; do
3002     test -f "$ac_file" || continue
3003     case $ac_file in
3004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3005     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006     break;;
3007     * ) break;;
3008     esac
3009     done
3010 root 1.14 else $as_nop
3011     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012     printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3013 root 1.12 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3014     See \`config.log' for more details" "$LINENO" 5; }
3015     fi
3016     rm -f conftest conftest$ac_cv_exeext
3017 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3018     printf "%s\n" "$ac_cv_exeext" >&6; }
3019 root 1.12
3020     rm -f conftest.$ac_ext
3021     EXEEXT=$ac_cv_exeext
3022     ac_exeext=$EXEEXT
3023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024     /* end confdefs.h. */
3025     #include <stdio.h>
3026     int
3027 root 1.14 main (void)
3028 root 1.12 {
3029     FILE *f = fopen ("conftest.out", "w");
3030     return ferror (f) || fclose (f) != 0;
3031    
3032     ;
3033     return 0;
3034     }
3035     _ACEOF
3036     ac_clean_files="$ac_clean_files conftest.out"
3037     # Check that the compiler produces executables we can run. If not, either
3038     # the compiler is broken, or we cross compile.
3039 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3040     printf %s "checking whether we are cross compiling... " >&6; }
3041 root 1.12 if test "$cross_compiling" != yes; then
3042     { { ac_try="$ac_link"
3043     case "(($ac_try" in
3044     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045     *) ac_try_echo=$ac_try;;
3046     esac
3047     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 root 1.14 printf "%s\n" "$ac_try_echo"; } >&5
3049 root 1.12 (eval "$ac_link") 2>&5
3050     ac_status=$?
3051 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 root 1.12 test $ac_status = 0; }
3053     if { ac_try='./conftest$ac_cv_exeext'
3054     { { case "(($ac_try" in
3055     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056     *) ac_try_echo=$ac_try;;
3057     esac
3058     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 root 1.14 printf "%s\n" "$ac_try_echo"; } >&5
3060 root 1.12 (eval "$ac_try") 2>&5
3061     ac_status=$?
3062 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 root 1.12 test $ac_status = 0; }; }; then
3064     cross_compiling=no
3065     else
3066     if test "$cross_compiling" = maybe; then
3067     cross_compiling=yes
3068     else
3069 root 1.14 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070     printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3071     as_fn_error 77 "cannot run C compiled programs.
3072 root 1.12 If you meant to cross compile, use \`--host'.
3073     See \`config.log' for more details" "$LINENO" 5; }
3074     fi
3075     fi
3076 root 1.1 fi
3077 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3078     printf "%s\n" "$cross_compiling" >&6; }
3079 root 1.12
3080     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3081     ac_clean_files=$ac_clean_files_save
3082 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3083     printf %s "checking for suffix of object files... " >&6; }
3084     if test ${ac_cv_objext+y}
3085     then :
3086     printf %s "(cached) " >&6
3087     else $as_nop
3088 root 1.12 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089     /* end confdefs.h. */
3090    
3091     int
3092 root 1.14 main (void)
3093 root 1.12 {
3094    
3095     ;
3096     return 0;
3097     }
3098     _ACEOF
3099     rm -f conftest.o conftest.obj
3100     if { { ac_try="$ac_compile"
3101     case "(($ac_try" in
3102     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103     *) ac_try_echo=$ac_try;;
3104     esac
3105     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 root 1.14 printf "%s\n" "$ac_try_echo"; } >&5
3107 root 1.12 (eval "$ac_compile") 2>&5
3108     ac_status=$?
3109 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110     test $ac_status = 0; }
3111     then :
3112 root 1.12 for ac_file in conftest.o conftest.obj conftest.*; do
3113     test -f "$ac_file" || continue;
3114     case $ac_file in
3115     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3117     break;;
3118     esac
3119     done
3120 root 1.14 else $as_nop
3121     printf "%s\n" "$as_me: failed program was:" >&5
3122 root 1.12 sed 's/^/| /' conftest.$ac_ext >&5
3123 root 1.1
3124 root 1.14 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125     printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3126 root 1.12 as_fn_error $? "cannot compute suffix of object files: cannot compile
3127     See \`config.log' for more details" "$LINENO" 5; }
3128     fi
3129     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130     fi
3131 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3132     printf "%s\n" "$ac_cv_objext" >&6; }
3133 root 1.12 OBJEXT=$ac_cv_objext
3134     ac_objext=$OBJEXT
3135 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3136     printf %s "checking whether the compiler supports GNU C... " >&6; }
3137     if test ${ac_cv_c_compiler_gnu+y}
3138     then :
3139     printf %s "(cached) " >&6
3140     else $as_nop
3141 root 1.12 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142     /* end confdefs.h. */
3143    
3144     int
3145 root 1.14 main (void)
3146 root 1.12 {
3147     #ifndef __GNUC__
3148     choke me
3149     #endif
3150 root 1.4
3151 root 1.12 ;
3152     return 0;
3153     }
3154     _ACEOF
3155 root 1.14 if ac_fn_c_try_compile "$LINENO"
3156     then :
3157 root 1.12 ac_compiler_gnu=yes
3158 root 1.14 else $as_nop
3159 root 1.12 ac_compiler_gnu=no
3160     fi
3161 root 1.14 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3162 root 1.12 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163    
3164     fi
3165 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3166     printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3167     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168    
3169 root 1.12 if test $ac_compiler_gnu = yes; then
3170 root 1.7 GCC=yes
3171     else
3172     GCC=
3173 root 1.4 fi
3174 root 1.14 ac_test_CFLAGS=${CFLAGS+y}
3175 root 1.12 ac_save_CFLAGS=$CFLAGS
3176 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3177     printf %s "checking whether $CC accepts -g... " >&6; }
3178     if test ${ac_cv_prog_cc_g+y}
3179     then :
3180     printf %s "(cached) " >&6
3181     else $as_nop
3182 root 1.12 ac_save_c_werror_flag=$ac_c_werror_flag
3183     ac_c_werror_flag=yes
3184     ac_cv_prog_cc_g=no
3185     CFLAGS="-g"
3186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3187     /* end confdefs.h. */
3188    
3189     int
3190 root 1.14 main (void)
3191 root 1.12 {
3192    
3193     ;
3194     return 0;
3195     }
3196     _ACEOF
3197 root 1.14 if ac_fn_c_try_compile "$LINENO"
3198     then :
3199 root 1.12 ac_cv_prog_cc_g=yes
3200 root 1.14 else $as_nop
3201 root 1.12 CFLAGS=""
3202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203     /* end confdefs.h. */
3204    
3205     int
3206 root 1.14 main (void)
3207 root 1.12 {
3208    
3209     ;
3210     return 0;
3211     }
3212     _ACEOF
3213 root 1.14 if ac_fn_c_try_compile "$LINENO"
3214     then :
3215 root 1.12
3216 root 1.14 else $as_nop
3217 root 1.12 ac_c_werror_flag=$ac_save_c_werror_flag
3218     CFLAGS="-g"
3219     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220     /* end confdefs.h. */
3221    
3222     int
3223 root 1.14 main (void)
3224 root 1.12 {
3225    
3226     ;
3227     return 0;
3228     }
3229     _ACEOF
3230 root 1.14 if ac_fn_c_try_compile "$LINENO"
3231     then :
3232 root 1.7 ac_cv_prog_cc_g=yes
3233 root 1.4 fi
3234 root 1.14 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3235 root 1.12 fi
3236 root 1.14 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3237 root 1.12 fi
3238 root 1.14 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3239 root 1.12 ac_c_werror_flag=$ac_save_c_werror_flag
3240 root 1.4 fi
3241 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3242     printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3243     if test $ac_test_CFLAGS; then
3244 root 1.12 CFLAGS=$ac_save_CFLAGS
3245 root 1.7 elif test $ac_cv_prog_cc_g = yes; then
3246 root 1.1 if test "$GCC" = yes; then
3247     CFLAGS="-g -O2"
3248     else
3249     CFLAGS="-g"
3250     fi
3251     else
3252     if test "$GCC" = yes; then
3253     CFLAGS="-O2"
3254     else
3255     CFLAGS=
3256     fi
3257     fi
3258 root 1.14 ac_prog_cc_stdc=no
3259     if test x$ac_prog_cc_stdc = xno
3260     then :
3261     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3262     printf %s "checking for $CC option to enable C11 features... " >&6; }
3263     if test ${ac_cv_prog_cc_c11+y}
3264     then :
3265     printf %s "(cached) " >&6
3266     else $as_nop
3267     ac_cv_prog_cc_c11=no
3268 root 1.12 ac_save_CC=$CC
3269     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270     /* end confdefs.h. */
3271 root 1.14 $ac_c_conftest_c11_program
3272     _ACEOF
3273     for ac_arg in '' -std=gnu11
3274     do
3275     CC="$ac_save_CC $ac_arg"
3276     if ac_fn_c_try_compile "$LINENO"
3277     then :
3278     ac_cv_prog_cc_c11=$ac_arg
3279     fi
3280     rm -f core conftest.err conftest.$ac_objext conftest.beam
3281     test "x$ac_cv_prog_cc_c11" != "xno" && break
3282     done
3283     rm -f conftest.$ac_ext
3284     CC=$ac_save_CC
3285     fi
3286 root 1.12
3287 root 1.14 if test "x$ac_cv_prog_cc_c11" = xno
3288     then :
3289     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3290     printf "%s\n" "unsupported" >&6; }
3291     else $as_nop
3292     if test "x$ac_cv_prog_cc_c11" = x
3293     then :
3294     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3295     printf "%s\n" "none needed" >&6; }
3296     else $as_nop
3297     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3298     printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3299     CC="$CC $ac_cv_prog_cc_c11"
3300     fi
3301     ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3302     ac_prog_cc_stdc=c11
3303     fi
3304     fi
3305     if test x$ac_prog_cc_stdc = xno
3306     then :
3307     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3308     printf %s "checking for $CC option to enable C99 features... " >&6; }
3309     if test ${ac_cv_prog_cc_c99+y}
3310     then :
3311     printf %s "(cached) " >&6
3312     else $as_nop
3313     ac_cv_prog_cc_c99=no
3314     ac_save_CC=$CC
3315     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316     /* end confdefs.h. */
3317     $ac_c_conftest_c99_program
3318     _ACEOF
3319     for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3320     do
3321     CC="$ac_save_CC $ac_arg"
3322     if ac_fn_c_try_compile "$LINENO"
3323     then :
3324     ac_cv_prog_cc_c99=$ac_arg
3325     fi
3326     rm -f core conftest.err conftest.$ac_objext conftest.beam
3327     test "x$ac_cv_prog_cc_c99" != "xno" && break
3328     done
3329     rm -f conftest.$ac_ext
3330     CC=$ac_save_CC
3331     fi
3332 root 1.12
3333 root 1.14 if test "x$ac_cv_prog_cc_c99" = xno
3334     then :
3335     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3336     printf "%s\n" "unsupported" >&6; }
3337     else $as_nop
3338     if test "x$ac_cv_prog_cc_c99" = x
3339     then :
3340     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3341     printf "%s\n" "none needed" >&6; }
3342     else $as_nop
3343     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3344     printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3345     CC="$CC $ac_cv_prog_cc_c99"
3346     fi
3347     ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3348     ac_prog_cc_stdc=c99
3349     fi
3350     fi
3351     if test x$ac_prog_cc_stdc = xno
3352     then :
3353     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3354     printf %s "checking for $CC option to enable C89 features... " >&6; }
3355     if test ${ac_cv_prog_cc_c89+y}
3356     then :
3357     printf %s "(cached) " >&6
3358     else $as_nop
3359     ac_cv_prog_cc_c89=no
3360     ac_save_CC=$CC
3361     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362     /* end confdefs.h. */
3363     $ac_c_conftest_c89_program
3364 root 1.12 _ACEOF
3365 root 1.14 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3366 root 1.12 do
3367     CC="$ac_save_CC $ac_arg"
3368 root 1.14 if ac_fn_c_try_compile "$LINENO"
3369     then :
3370 root 1.12 ac_cv_prog_cc_c89=$ac_arg
3371     fi
3372 root 1.14 rm -f core conftest.err conftest.$ac_objext conftest.beam
3373 root 1.12 test "x$ac_cv_prog_cc_c89" != "xno" && break
3374     done
3375     rm -f conftest.$ac_ext
3376     CC=$ac_save_CC
3377 root 1.14 fi
3378 root 1.4
3379 root 1.14 if test "x$ac_cv_prog_cc_c89" = xno
3380     then :
3381     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3382     printf "%s\n" "unsupported" >&6; }
3383     else $as_nop
3384     if test "x$ac_cv_prog_cc_c89" = x
3385     then :
3386     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3387     printf "%s\n" "none needed" >&6; }
3388     else $as_nop
3389     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3390     printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3391     CC="$CC $ac_cv_prog_cc_c89"
3392     fi
3393     ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3394     ac_prog_cc_stdc=c89
3395 root 1.12 fi
3396     fi
3397    
3398     ac_ext=c
3399     ac_cpp='$CPP $CPPFLAGS'
3400     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3401     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3402     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3403    
3404     ac_ext=c
3405     ac_cpp='$CPP $CPPFLAGS'
3406     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3410     printf %s "checking how to run the C preprocessor... " >&6; }
3411 root 1.1 # On Suns, sometimes $CPP names a directory.
3412     if test -n "$CPP" && test -d "$CPP"; then
3413     CPP=
3414     fi
3415     if test -z "$CPP"; then
3416 root 1.14 if test ${ac_cv_prog_CPP+y}
3417     then :
3418     printf %s "(cached) " >&6
3419     else $as_nop
3420     # Double quotes because $CC needs to be expanded
3421     for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
3422 root 1.12 do
3423     ac_preproc_ok=false
3424     for ac_c_preproc_warn_flag in '' yes
3425     do
3426     # Use a header file that comes with gcc, so configuring glibc
3427     # with a fresh cross-compiler works.
3428 root 1.1 # On the NeXT, cc -E runs the code through the compiler's parser,
3429 root 1.12 # not just through cpp. "Syntax error" is here to catch this case.
3430     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3431     /* end confdefs.h. */
3432 root 1.14 #include <limits.h>
3433 root 1.12 Syntax error
3434     _ACEOF
3435 root 1.14 if ac_fn_c_try_cpp "$LINENO"
3436     then :
3437 root 1.12
3438 root 1.14 else $as_nop
3439 root 1.12 # Broken: fails on valid input.
3440     continue
3441     fi
3442     rm -f conftest.err conftest.i conftest.$ac_ext
3443    
3444     # OK, works on sane cases. Now check whether nonexistent headers
3445     # can be detected and how.
3446     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447     /* end confdefs.h. */
3448     #include <ac_nonexistent.h>
3449     _ACEOF
3450 root 1.14 if ac_fn_c_try_cpp "$LINENO"
3451     then :
3452 root 1.12 # Broken: success on invalid input.
3453     continue
3454 root 1.14 else $as_nop
3455 root 1.12 # Passes both tests.
3456     ac_preproc_ok=:
3457     break
3458     fi
3459     rm -f conftest.err conftest.i conftest.$ac_ext
3460    
3461     done
3462     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3463     rm -f conftest.i conftest.err conftest.$ac_ext
3464 root 1.14 if $ac_preproc_ok
3465     then :
3466 root 1.12 break
3467 root 1.1 fi
3468 root 1.12
3469     done
3470     ac_cv_prog_CPP=$CPP
3471    
3472 root 1.7 fi
3473 root 1.12 CPP=$ac_cv_prog_CPP
3474     else
3475     ac_cv_prog_CPP=$CPP
3476 root 1.1 fi
3477 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3478     printf "%s\n" "$CPP" >&6; }
3479 root 1.12 ac_preproc_ok=false
3480     for ac_c_preproc_warn_flag in '' yes
3481     do
3482     # Use a header file that comes with gcc, so configuring glibc
3483     # with a fresh cross-compiler works.
3484     # On the NeXT, cc -E runs the code through the compiler's parser,
3485     # not just through cpp. "Syntax error" is here to catch this case.
3486     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487     /* end confdefs.h. */
3488 root 1.14 #include <limits.h>
3489 root 1.12 Syntax error
3490     _ACEOF
3491 root 1.14 if ac_fn_c_try_cpp "$LINENO"
3492     then :
3493 root 1.12
3494 root 1.14 else $as_nop
3495 root 1.12 # Broken: fails on valid input.
3496     continue
3497     fi
3498     rm -f conftest.err conftest.i conftest.$ac_ext
3499    
3500     # OK, works on sane cases. Now check whether nonexistent headers
3501     # can be detected and how.
3502     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503     /* end confdefs.h. */
3504     #include <ac_nonexistent.h>
3505     _ACEOF
3506 root 1.14 if ac_fn_c_try_cpp "$LINENO"
3507     then :
3508 root 1.12 # Broken: success on invalid input.
3509     continue
3510 root 1.14 else $as_nop
3511 root 1.12 # Passes both tests.
3512     ac_preproc_ok=:
3513     break
3514 root 1.1 fi
3515 root 1.12 rm -f conftest.err conftest.i conftest.$ac_ext
3516    
3517     done
3518     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3519     rm -f conftest.i conftest.err conftest.$ac_ext
3520 root 1.14 if $ac_preproc_ok
3521     then :
3522 root 1.12
3523 root 1.14 else $as_nop
3524     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525     printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3526 root 1.12 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3527     See \`config.log' for more details" "$LINENO" 5; }
3528 root 1.1 fi
3529 root 1.12
3530     ac_ext=c
3531     ac_cpp='$CPP $CPPFLAGS'
3532     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3533     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3534     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3535 root 1.1
3536 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3537     printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3538 root 1.12 set x ${MAKE-make}
3539 root 1.14 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3540     if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3541     then :
3542     printf %s "(cached) " >&6
3543     else $as_nop
3544 root 1.12 cat >conftest.make <<\_ACEOF
3545     SHELL = /bin/sh
3546 root 1.1 all:
3547 root 1.12 @echo '@@@%%%=$(MAKE)=@@@%%%'
3548     _ACEOF
3549     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3550     case `${MAKE-make} -f conftest.make 2>/dev/null` in
3551     *@@@%%%=?*=@@@%%%*)
3552     eval ac_cv_prog_make_${ac_make}_set=yes;;
3553     *)
3554     eval ac_cv_prog_make_${ac_make}_set=no;;
3555     esac
3556     rm -f conftest.make
3557     fi
3558     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3559 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3560     printf "%s\n" "yes" >&6; }
3561 root 1.1 SET_MAKE=
3562     else
3563 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564     printf "%s\n" "no" >&6; }
3565 root 1.1 SET_MAKE="MAKE=${MAKE-make}"
3566     fi
3567    
3568 root 1.12 if test -n "$ac_tool_prefix"; then
3569     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3570     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3571 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572     printf %s "checking for $ac_word... " >&6; }
3573     if test ${ac_cv_prog_RANLIB+y}
3574     then :
3575     printf %s "(cached) " >&6
3576     else $as_nop
3577 root 1.1 if test -n "$RANLIB"; then
3578     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3579     else
3580 root 1.12 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3581     for as_dir in $PATH
3582     do
3583     IFS=$as_save_IFS
3584 root 1.14 case $as_dir in #(((
3585     '') as_dir=./ ;;
3586     */) ;;
3587     *) as_dir=$as_dir/ ;;
3588     esac
3589 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
3590 root 1.14 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3591 root 1.12 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3592 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3593 root 1.12 break 2
3594     fi
3595     done
3596 root 1.7 done
3597 root 1.12 IFS=$as_save_IFS
3598    
3599 root 1.1 fi
3600     fi
3601 root 1.12 RANLIB=$ac_cv_prog_RANLIB
3602 root 1.1 if test -n "$RANLIB"; then
3603 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3604     printf "%s\n" "$RANLIB" >&6; }
3605 root 1.12 else
3606 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607     printf "%s\n" "no" >&6; }
3608 root 1.12 fi
3609    
3610    
3611     fi
3612     if test -z "$ac_cv_prog_RANLIB"; then
3613     ac_ct_RANLIB=$RANLIB
3614     # Extract the first word of "ranlib", so it can be a program name with args.
3615     set dummy ranlib; ac_word=$2
3616 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617     printf %s "checking for $ac_word... " >&6; }
3618     if test ${ac_cv_prog_ac_ct_RANLIB+y}
3619     then :
3620     printf %s "(cached) " >&6
3621     else $as_nop
3622 root 1.12 if test -n "$ac_ct_RANLIB"; then
3623     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3624 root 1.4 else
3625 root 1.12 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626     for as_dir in $PATH
3627     do
3628     IFS=$as_save_IFS
3629 root 1.14 case $as_dir in #(((
3630     '') as_dir=./ ;;
3631     */) ;;
3632     *) as_dir=$as_dir/ ;;
3633     esac
3634 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
3635 root 1.14 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3636 root 1.12 ac_cv_prog_ac_ct_RANLIB="ranlib"
3637 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3638 root 1.12 break 2
3639     fi
3640     done
3641     done
3642     IFS=$as_save_IFS
3643    
3644     fi
3645     fi
3646     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3647     if test -n "$ac_ct_RANLIB"; then
3648 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3649     printf "%s\n" "$ac_ct_RANLIB" >&6; }
3650 root 1.12 else
3651 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3652     printf "%s\n" "no" >&6; }
3653 root 1.12 fi
3654    
3655     if test "x$ac_ct_RANLIB" = x; then
3656     RANLIB=":"
3657     else
3658     case $cross_compiling:$ac_tool_warned in
3659     yes:)
3660 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3661     printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3662 root 1.12 ac_tool_warned=yes ;;
3663     esac
3664     RANLIB=$ac_ct_RANLIB
3665     fi
3666     else
3667     RANLIB="$ac_cv_prog_RANLIB"
3668 root 1.4 fi
3669    
3670 root 1.1
3671     #
3672     # Checks for header files and library functions
3673     #
3674    
3675 root 1.12
3676 root 1.14 ac_header= ac_cache=
3677     for ac_item in $ac_header_c_list
3678     do
3679     if test $ac_cache; then
3680     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3681     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3682     printf "%s\n" "#define $ac_item 1" >> confdefs.h
3683     fi
3684     ac_header= ac_cache=
3685     elif test $ac_header; then
3686     ac_cache=$ac_item
3687     else
3688     ac_header=$ac_item
3689     fi
3690     done
3691    
3692    
3693    
3694    
3695    
3696    
3697    
3698 root 1.13
3699 root 1.14 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3700     then :
3701    
3702     printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3703    
3704     fi
3705     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3706     printf %s "checking for grep that handles long lines and -e... " >&6; }
3707     if test ${ac_cv_path_GREP+y}
3708     then :
3709     printf %s "(cached) " >&6
3710     else $as_nop
3711 root 1.12 if test -z "$GREP"; then
3712     ac_path_GREP_found=false
3713     # Loop through the user's path and test for each of PROGNAME-LIST
3714     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3716     do
3717     IFS=$as_save_IFS
3718 root 1.14 case $as_dir in #(((
3719     '') as_dir=./ ;;
3720     */) ;;
3721     *) as_dir=$as_dir/ ;;
3722     esac
3723     for ac_prog in grep ggrep
3724     do
3725 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
3726 root 1.14 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
3727 root 1.12 as_fn_executable_p "$ac_path_GREP" || continue
3728     # Check for GNU ac_path_GREP and select it if it is found.
3729     # Check for GNU $ac_path_GREP
3730     case `"$ac_path_GREP" --version 2>&1` in
3731     *GNU*)
3732     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3733     *)
3734     ac_count=0
3735 root 1.14 printf %s 0123456789 >"conftest.in"
3736 root 1.12 while :
3737     do
3738     cat "conftest.in" "conftest.in" >"conftest.tmp"
3739     mv "conftest.tmp" "conftest.in"
3740     cp "conftest.in" "conftest.nl"
3741 root 1.14 printf "%s\n" 'GREP' >> "conftest.nl"
3742 root 1.12 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3743     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3744     as_fn_arith $ac_count + 1 && ac_count=$as_val
3745     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3746     # Best one so far, save it but keep looking for a better one
3747     ac_cv_path_GREP="$ac_path_GREP"
3748     ac_path_GREP_max=$ac_count
3749     fi
3750     # 10*(2^10) chars as input seems more than enough
3751     test $ac_count -gt 10 && break
3752     done
3753     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3754     esac
3755    
3756     $ac_path_GREP_found && break 3
3757     done
3758     done
3759     done
3760     IFS=$as_save_IFS
3761     if test -z "$ac_cv_path_GREP"; then
3762     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3763     fi
3764     else
3765     ac_cv_path_GREP=$GREP
3766     fi
3767    
3768     fi
3769 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3770     printf "%s\n" "$ac_cv_path_GREP" >&6; }
3771 root 1.12 GREP="$ac_cv_path_GREP"
3772    
3773    
3774 root 1.14 # Autoupdate added the next two lines to ensure that your configure
3775     # script's behavior did not change. They are probably safe to remove.
3776    
3777     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3778     printf %s "checking for egrep... " >&6; }
3779     if test ${ac_cv_path_EGREP+y}
3780     then :
3781     printf %s "(cached) " >&6
3782     else $as_nop
3783 root 1.12 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3784     then ac_cv_path_EGREP="$GREP -E"
3785     else
3786     if test -z "$EGREP"; then
3787     ac_path_EGREP_found=false
3788     # Loop through the user's path and test for each of PROGNAME-LIST
3789     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3791     do
3792     IFS=$as_save_IFS
3793 root 1.14 case $as_dir in #(((
3794     '') as_dir=./ ;;
3795     */) ;;
3796     *) as_dir=$as_dir/ ;;
3797     esac
3798     for ac_prog in egrep
3799     do
3800 root 1.12 for ac_exec_ext in '' $ac_executable_extensions; do
3801 root 1.14 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
3802 root 1.12 as_fn_executable_p "$ac_path_EGREP" || continue
3803     # Check for GNU ac_path_EGREP and select it if it is found.
3804     # Check for GNU $ac_path_EGREP
3805     case `"$ac_path_EGREP" --version 2>&1` in
3806     *GNU*)
3807     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3808     *)
3809     ac_count=0
3810 root 1.14 printf %s 0123456789 >"conftest.in"
3811 root 1.12 while :
3812     do
3813     cat "conftest.in" "conftest.in" >"conftest.tmp"
3814     mv "conftest.tmp" "conftest.in"
3815     cp "conftest.in" "conftest.nl"
3816 root 1.14 printf "%s\n" 'EGREP' >> "conftest.nl"
3817 root 1.12 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3818     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3819     as_fn_arith $ac_count + 1 && ac_count=$as_val
3820     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3821     # Best one so far, save it but keep looking for a better one
3822     ac_cv_path_EGREP="$ac_path_EGREP"
3823     ac_path_EGREP_max=$ac_count
3824     fi
3825     # 10*(2^10) chars as input seems more than enough
3826     test $ac_count -gt 10 && break
3827     done
3828     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3829     esac
3830    
3831     $ac_path_EGREP_found && break 3
3832     done
3833     done
3834     done
3835     IFS=$as_save_IFS
3836     if test -z "$ac_cv_path_EGREP"; then
3837     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3838     fi
3839     else
3840     ac_cv_path_EGREP=$EGREP
3841     fi
3842    
3843     fi
3844     fi
3845 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3846     printf "%s\n" "$ac_cv_path_EGREP" >&6; }
3847 root 1.12 EGREP="$ac_cv_path_EGREP"
3848    
3849    
3850    
3851 root 1.14 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
3852     if test "x$ac_cv_type_size_t" = xyes
3853     then :
3854 root 1.1
3855 root 1.14 else $as_nop
3856 root 1.12
3857 root 1.14 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
3858 root 1.12
3859 root 1.1 fi
3860    
3861    
3862 root 1.12
3863 root 1.14 # Obsolete code to be removed.
3864     if test $ac_cv_header_sys_time_h = yes; then
3865 root 1.12
3866 root 1.14 printf "%s\n" "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
3867 root 1.1
3868     fi
3869 root 1.14 # End of obsolete code.
3870 root 1.1
3871 root 1.14 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
3872     if test "x$ac_cv_header_fcntl_h" = xyes
3873     then :
3874     printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
3875 root 1.12
3876 root 1.1 fi
3877 root 1.14 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
3878     if test "x$ac_cv_header_unistd_h" = xyes
3879     then :
3880     printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
3881 root 1.7
3882 root 1.1 fi
3883 root 1.12
3884 root 1.14 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
3885     if test "x$ac_cv_header_io_h" = xyes
3886     then :
3887     printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
3888 root 1.12
3889     fi
3890 root 1.14 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
3891     if test "x$ac_cv_header_sys_time_h" = xyes
3892     then :
3893     printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
3894 root 1.1
3895     fi
3896    
3897 root 1.12
3898 root 1.14 CFLAGS="$CFLAGS -D_GNU_SOURCE"
3899     ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam"
3900     if test "x$ac_cv_func_tempnam" = xyes
3901     then :
3902     printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h
3903 root 1.12
3904 root 1.14 fi
3905     ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
3906     if test "x$ac_cv_func_gettimeofday" = xyes
3907     then :
3908     printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
3909 root 1.12
3910 root 1.14 fi
3911     ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
3912     if test "x$ac_cv_func_flockfile" = xyes
3913     then :
3914     printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
3915 root 1.1
3916     fi
3917 root 1.14 ac_fn_c_check_func "$LINENO" "getc_unlocked" "ac_cv_func_getc_unlocked"
3918     if test "x$ac_cv_func_getc_unlocked" = xyes
3919     then :
3920     printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
3921 root 1.1
3922     fi
3923 root 1.14 ac_fn_c_check_func "$LINENO" "feof_unlocked" "ac_cv_func_feof_unlocked"
3924     if test "x$ac_cv_func_feof_unlocked" = xyes
3925     then :
3926     printf "%s\n" "#define HAVE_FEOF_UNLOCKED 1" >>confdefs.h
3927 root 1.1
3928     fi
3929 root 1.14 ac_fn_c_check_func "$LINENO" "ferror_unlocked" "ac_cv_func_ferror_unlocked"
3930     if test "x$ac_cv_func_ferror_unlocked" = xyes
3931     then :
3932     printf "%s\n" "#define HAVE_FERROR_UNLOCKED 1" >>confdefs.h
3933 root 1.12
3934 root 1.1 fi
3935    
3936    
3937 root 1.14 ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod"
3938     if test "x$ac_cv_func_chmod" = xyes
3939     then :
3940     printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
3941 root 1.10
3942 root 1.7 fi
3943 root 1.14 ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask"
3944     if test "x$ac_cv_func_umask" = xyes
3945     then :
3946     printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
3947 root 1.7
3948     fi
3949 root 1.14 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
3950     if test "x$ac_cv_func_mkstemp" = xyes
3951     then :
3952     printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
3953 root 1.12
3954 root 1.1 fi
3955    
3956    
3957     #
3958     # On some systems (so far, OS2 and WINDOWS), functions that are exported
3959     # from a DLL must be declared specifically.
3960     #
3961    
3962 root 1.14 printf "%s\n" "#define UUEXPORT /**/" >>confdefs.h
3963 root 1.12
3964 root 1.14 printf "%s\n" "#define TOOLEXPORT /**/" >>confdefs.h
3965 root 1.1
3966 root 1.7
3967 root 1.1 #
3968     # set version number
3969     #
3970 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking version number" >&5
3971     printf %s "checking version number... " >&6; }
3972 root 1.1 version_number="$VERSION"pl"$PATCH"
3973 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $version_number" >&5
3974     printf "%s\n" "$version_number" >&6; }
3975 root 1.7
3976    
3977 root 1.1
3978     #
3979     # done
3980     #
3981    
3982 root 1.12 ac_config_files="$ac_config_files Makefile"
3983    
3984     cat >confcache <<\_ACEOF
3985 root 1.1 # This file is a shell script that caches the results of configure
3986     # tests run on this system so they can be shared between configure
3987 root 1.12 # scripts and configure runs, see configure's option --config-cache.
3988     # It is not useful on other systems. If it contains results you don't
3989     # want to keep, you may remove or edit it.
3990 root 1.1 #
3991 root 1.12 # config.status only pays attention to the cache file if you give it
3992     # the --recheck option to rerun configure.
3993 root 1.1 #
3994 root 1.12 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3995     # loading this file, other *unset* `ac_cv_foo' will be assigned the
3996     # following values.
3997    
3998     _ACEOF
3999    
4000 root 1.1 # The following way of writing the cache mishandles newlines in values,
4001     # but we know of no workaround that is simple, portable, and efficient.
4002 root 1.12 # So, we kill variables containing newlines.
4003 root 1.1 # Ultrix sh set writes to stderr and can't be redirected directly,
4004     # and sets the high bit in the cache file unless we assign to the vars.
4005 root 1.12 (
4006     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4007     eval ac_val=\$$ac_var
4008     case $ac_val in #(
4009     *${as_nl}*)
4010     case $ac_var in #(
4011 root 1.14 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4012     printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4013 root 1.12 esac
4014     case $ac_var in #(
4015     _ | IFS | as_nl) ;; #(
4016     BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4017     *) { eval $ac_var=; unset $ac_var;} ;;
4018     esac ;;
4019     esac
4020     done
4021    
4022     (set) 2>&1 |
4023     case $as_nl`(ac_space=' '; set) 2>&1` in #(
4024     *${as_nl}ac_space=\ *)
4025     # `set' does not quote correctly, so add quotes: double-quote
4026     # substitution turns \\\\ into \\, and sed turns \\ into \.
4027     sed -n \
4028     "s/'/'\\\\''/g;
4029     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4030     ;; #(
4031     *)
4032     # `set' quotes correctly as required by POSIX, so do not add quotes.
4033     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4034     ;;
4035     esac |
4036     sort
4037     ) |
4038     sed '
4039     /^ac_cv_env_/b end
4040     t clear
4041     :clear
4042 root 1.14 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
4043 root 1.12 t end
4044     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4045     :end' >>confcache
4046     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4047     if test -w "$cache_file"; then
4048     if test "x$cache_file" != "x/dev/null"; then
4049 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4050     printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4051 root 1.12 if test ! -f "$cache_file" || test -h "$cache_file"; then
4052     cat confcache >"$cache_file"
4053     else
4054     case $cache_file in #(
4055     */* | ?:*)
4056     mv -f confcache "$cache_file"$$ &&
4057     mv -f "$cache_file"$$ "$cache_file" ;; #(
4058     *)
4059     mv -f confcache "$cache_file" ;;
4060     esac
4061     fi
4062     fi
4063 root 1.1 else
4064 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4065     printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
4066 root 1.1 fi
4067     fi
4068     rm -f confcache
4069    
4070     test "x$prefix" = xNONE && prefix=$ac_default_prefix
4071     # Let make expand exec_prefix.
4072     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4073    
4074 root 1.12 DEFS=-DHAVE_CONFIG_H
4075    
4076     ac_libobjs=
4077     ac_ltlibobjs=
4078     U=
4079     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4080     # 1. Remove the extension, and $U if already installed.
4081     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4082 root 1.14 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
4083 root 1.12 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4084     # will be set to the directory where LIBOBJS objects are built.
4085     as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4086     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4087     done
4088     LIBOBJS=$ac_libobjs
4089 root 1.1
4090 root 1.12 LTLIBOBJS=$ac_ltlibobjs
4091 root 1.7
4092 root 1.1
4093 root 1.7
4094 root 1.12 : "${CONFIG_STATUS=./config.status}"
4095     ac_write_fail=0
4096     ac_clean_files_save=$ac_clean_files
4097     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4098 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4099     printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
4100 root 1.12 as_write_fail=0
4101     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4102     #! $SHELL
4103     # Generated by $as_me.
4104 root 1.1 # Run this file to recreate the current configuration.
4105     # Compiler output produced by configure, useful for debugging
4106 root 1.12 # configure, is in config.log if it exists.
4107    
4108     debug=false
4109     ac_cs_recheck=false
4110     ac_cs_silent=false
4111    
4112     SHELL=\${CONFIG_SHELL-$SHELL}
4113     export SHELL
4114     _ASEOF
4115     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4116     ## -------------------- ##
4117     ## M4sh Initialization. ##
4118     ## -------------------- ##
4119    
4120     # Be more Bourne compatible
4121     DUALCASE=1; export DUALCASE # for MKS sh
4122 root 1.14 as_nop=:
4123     if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
4124     then :
4125 root 1.12 emulate sh
4126     NULLCMD=:
4127     # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4128     # is contrary to our usage. Disable this feature.
4129     alias -g '${1+"$@"}'='"$@"'
4130     setopt NO_GLOB_SUBST
4131 root 1.14 else $as_nop
4132 root 1.12 case `(set -o) 2>/dev/null` in #(
4133     *posix*) :
4134     set -o posix ;; #(
4135     *) :
4136     ;;
4137     esac
4138     fi
4139    
4140    
4141 root 1.14
4142     # Reset variables that may have inherited troublesome values from
4143     # the environment.
4144    
4145     # IFS needs to be set, to space, tab, and newline, in precisely that order.
4146     # (If _AS_PATH_WALK were called with IFS unset, it would have the
4147     # side effect of setting IFS to empty, thus disabling word splitting.)
4148     # Quoting is to prevent editors from complaining about space-tab.
4149 root 1.12 as_nl='
4150     '
4151     export as_nl
4152 root 1.14 IFS=" "" $as_nl"
4153    
4154     PS1='$ '
4155     PS2='> '
4156     PS4='+ '
4157    
4158     # Ensure predictable behavior from utilities with locale-dependent output.
4159     LC_ALL=C
4160     export LC_ALL
4161     LANGUAGE=C
4162     export LANGUAGE
4163    
4164     # We cannot yet rely on "unset" to work, but we need these variables
4165     # to be unset--not just set to an empty or harmless value--now, to
4166     # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
4167     # also avoids known problems related to "unset" and subshell syntax
4168     # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
4169     for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
4170     do eval test \${$as_var+y} \
4171     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4172     done
4173    
4174     # Ensure that fds 0, 1, and 2 are open.
4175     if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
4176     if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
4177     if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
4178 root 1.12
4179     # The user is always right.
4180 root 1.14 if ${PATH_SEPARATOR+false} :; then
4181 root 1.12 PATH_SEPARATOR=:
4182     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4183     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4184     PATH_SEPARATOR=';'
4185     }
4186     fi
4187    
4188    
4189     # Find who we are. Look in the path if we contain no directory separator.
4190     as_myself=
4191     case $0 in #((
4192     *[\\/]* ) as_myself=$0 ;;
4193     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194     for as_dir in $PATH
4195     do
4196     IFS=$as_save_IFS
4197 root 1.14 case $as_dir in #(((
4198     '') as_dir=./ ;;
4199     */) ;;
4200     *) as_dir=$as_dir/ ;;
4201     esac
4202     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
4203 root 1.12 done
4204     IFS=$as_save_IFS
4205    
4206     ;;
4207     esac
4208     # We did not find ourselves, most probably we were run as `sh COMMAND'
4209     # in which case we are not to be found in the path.
4210     if test "x$as_myself" = x; then
4211     as_myself=$0
4212     fi
4213     if test ! -f "$as_myself"; then
4214 root 1.14 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4215 root 1.12 exit 1
4216     fi
4217    
4218    
4219    
4220     # as_fn_error STATUS ERROR [LINENO LOG_FD]
4221     # ----------------------------------------
4222     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4223     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4224     # script with STATUS, using 1 if that was 0.
4225     as_fn_error ()
4226     {
4227     as_status=$1; test $as_status -eq 0 && as_status=1
4228     if test "$4"; then
4229     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4230 root 1.14 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4231 root 1.12 fi
4232 root 1.14 printf "%s\n" "$as_me: error: $2" >&2
4233 root 1.12 as_fn_exit $as_status
4234     } # as_fn_error
4235    
4236    
4237 root 1.14
4238 root 1.12 # as_fn_set_status STATUS
4239     # -----------------------
4240     # Set $? to STATUS, without forking.
4241     as_fn_set_status ()
4242     {
4243     return $1
4244     } # as_fn_set_status
4245    
4246     # as_fn_exit STATUS
4247     # -----------------
4248     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4249     as_fn_exit ()
4250     {
4251     set +e
4252     as_fn_set_status $1
4253     exit $1
4254     } # as_fn_exit
4255    
4256     # as_fn_unset VAR
4257     # ---------------
4258     # Portably unset VAR.
4259     as_fn_unset ()
4260     {
4261     { eval $1=; unset $1;}
4262     }
4263     as_unset=as_fn_unset
4264 root 1.14
4265 root 1.12 # as_fn_append VAR VALUE
4266     # ----------------------
4267     # Append the text in VALUE to the end of the definition contained in VAR. Take
4268     # advantage of any shell optimizations that allow amortized linear growth over
4269     # repeated appends, instead of the typical quadratic growth present in naive
4270     # implementations.
4271 root 1.14 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
4272     then :
4273 root 1.12 eval 'as_fn_append ()
4274     {
4275     eval $1+=\$2
4276     }'
4277 root 1.14 else $as_nop
4278 root 1.12 as_fn_append ()
4279     {
4280     eval $1=\$$1\$2
4281     }
4282     fi # as_fn_append
4283    
4284     # as_fn_arith ARG...
4285     # ------------------
4286     # Perform arithmetic evaluation on the ARGs, and store the result in the
4287     # global $as_val. Take advantage of shells that can avoid forks. The arguments
4288     # must be portable across $(()) and expr.
4289 root 1.14 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
4290     then :
4291 root 1.12 eval 'as_fn_arith ()
4292     {
4293     as_val=$(( $* ))
4294     }'
4295 root 1.14 else $as_nop
4296 root 1.12 as_fn_arith ()
4297     {
4298     as_val=`expr "$@" || test $? -eq 1`
4299     }
4300     fi # as_fn_arith
4301    
4302    
4303     if expr a : '\(a\)' >/dev/null 2>&1 &&
4304     test "X`expr 00001 : '.*\(...\)'`" = X001; then
4305     as_expr=expr
4306     else
4307     as_expr=false
4308     fi
4309    
4310     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4311     as_basename=basename
4312     else
4313     as_basename=false
4314     fi
4315    
4316     if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4317     as_dirname=dirname
4318     else
4319     as_dirname=false
4320     fi
4321    
4322     as_me=`$as_basename -- "$0" ||
4323     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4324     X"$0" : 'X\(//\)$' \| \
4325     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4326 root 1.14 printf "%s\n" X/"$0" |
4327 root 1.12 sed '/^.*\/\([^/][^/]*\)\/*$/{
4328     s//\1/
4329     q
4330     }
4331     /^X\/\(\/\/\)$/{
4332     s//\1/
4333     q
4334     }
4335     /^X\/\(\/\).*/{
4336     s//\1/
4337     q
4338     }
4339     s/.*/./; q'`
4340    
4341     # Avoid depending upon Character Ranges.
4342     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4343     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4344     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4345     as_cr_digits='0123456789'
4346     as_cr_alnum=$as_cr_Letters$as_cr_digits
4347    
4348 root 1.14
4349     # Determine whether it's possible to make 'echo' print without a newline.
4350     # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
4351     # for compatibility with existing Makefiles.
4352 root 1.12 ECHO_C= ECHO_N= ECHO_T=
4353     case `echo -n x` in #(((((
4354     -n*)
4355     case `echo 'xy\c'` in
4356     *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4357     xy) ECHO_C='\c';;
4358     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4359     ECHO_T=' ';;
4360     esac;;
4361     *)
4362     ECHO_N='-n';;
4363     esac
4364    
4365 root 1.14 # For backward compatibility with old third-party macros, we provide
4366     # the shell variables $as_echo and $as_echo_n. New code should use
4367     # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
4368     as_echo='printf %s\n'
4369     as_echo_n='printf %s'
4370    
4371 root 1.12 rm -f conf$$ conf$$.exe conf$$.file
4372     if test -d conf$$.dir; then
4373     rm -f conf$$.dir/conf$$.file
4374     else
4375     rm -f conf$$.dir
4376     mkdir conf$$.dir 2>/dev/null
4377     fi
4378     if (echo >conf$$.file) 2>/dev/null; then
4379     if ln -s conf$$.file conf$$ 2>/dev/null; then
4380     as_ln_s='ln -s'
4381     # ... but there are two gotchas:
4382     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4383     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4384     # In both cases, we have to default to `cp -pR'.
4385     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4386     as_ln_s='cp -pR'
4387     elif ln conf$$.file conf$$ 2>/dev/null; then
4388     as_ln_s=ln
4389     else
4390     as_ln_s='cp -pR'
4391     fi
4392     else
4393     as_ln_s='cp -pR'
4394     fi
4395     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4396     rmdir conf$$.dir 2>/dev/null
4397    
4398    
4399     # as_fn_mkdir_p
4400     # -------------
4401     # Create "$as_dir" as a directory, including parents if necessary.
4402     as_fn_mkdir_p ()
4403     {
4404    
4405     case $as_dir in #(
4406     -*) as_dir=./$as_dir;;
4407     esac
4408     test -d "$as_dir" || eval $as_mkdir_p || {
4409     as_dirs=
4410     while :; do
4411     case $as_dir in #(
4412 root 1.14 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4413 root 1.12 *) as_qdir=$as_dir;;
4414     esac
4415     as_dirs="'$as_qdir' $as_dirs"
4416     as_dir=`$as_dirname -- "$as_dir" ||
4417     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4418     X"$as_dir" : 'X\(//\)[^/]' \| \
4419     X"$as_dir" : 'X\(//\)$' \| \
4420     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4421 root 1.14 printf "%s\n" X"$as_dir" |
4422 root 1.12 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4423     s//\1/
4424     q
4425     }
4426     /^X\(\/\/\)[^/].*/{
4427     s//\1/
4428     q
4429     }
4430     /^X\(\/\/\)$/{
4431     s//\1/
4432     q
4433     }
4434     /^X\(\/\).*/{
4435     s//\1/
4436     q
4437     }
4438     s/.*/./; q'`
4439     test -d "$as_dir" && break
4440     done
4441     test -z "$as_dirs" || eval "mkdir $as_dirs"
4442     } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4443    
4444    
4445     } # as_fn_mkdir_p
4446     if mkdir -p . 2>/dev/null; then
4447     as_mkdir_p='mkdir -p "$as_dir"'
4448     else
4449     test -d ./-p && rmdir ./-p
4450     as_mkdir_p=false
4451     fi
4452    
4453    
4454     # as_fn_executable_p FILE
4455     # -----------------------
4456     # Test if FILE is an executable regular file.
4457     as_fn_executable_p ()
4458     {
4459     test -f "$1" && test -x "$1"
4460     } # as_fn_executable_p
4461     as_test_x='test -x'
4462     as_executable_p=as_fn_executable_p
4463    
4464     # Sed expression to map a string onto a valid CPP name.
4465     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4466    
4467     # Sed expression to map a string onto a valid variable name.
4468     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4469    
4470    
4471     exec 6>&1
4472     ## ----------------------------------- ##
4473     ## Main body of $CONFIG_STATUS script. ##
4474     ## ----------------------------------- ##
4475     _ASEOF
4476     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4477    
4478     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4479     # Save the log message, to keep $0 and so on meaningful, and to
4480     # report actual input values of CONFIG_FILES etc. instead of their
4481     # values after options handling.
4482     ac_log="
4483     This file was extended by $as_me, which was
4484 root 1.14 generated by GNU Autoconf 2.71. Invocation command line was
4485 root 1.12
4486     CONFIG_FILES = $CONFIG_FILES
4487     CONFIG_HEADERS = $CONFIG_HEADERS
4488     CONFIG_LINKS = $CONFIG_LINKS
4489     CONFIG_COMMANDS = $CONFIG_COMMANDS
4490     $ $0 $@
4491    
4492     on `(hostname || uname -n) 2>/dev/null | sed 1q`
4493     "
4494 root 1.4
4495 root 1.12 _ACEOF
4496    
4497     case $ac_config_files in *"
4498     "*) set x $ac_config_files; shift; ac_config_files=$*;;
4499     esac
4500    
4501     case $ac_config_headers in *"
4502     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4503     esac
4504    
4505    
4506     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4507     # Files that config.status was made for.
4508     config_files="$ac_config_files"
4509     config_headers="$ac_config_headers"
4510    
4511     _ACEOF
4512    
4513     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4514     ac_cs_usage="\
4515     \`$as_me' instantiates files and other configuration actions
4516     from templates according to the current configuration. Unless the files
4517     and actions are specified as TAGs, all are instantiated by default.
4518    
4519     Usage: $0 [OPTION]... [TAG]...
4520    
4521     -h, --help print this help, then exit
4522     -V, --version print version number and configuration settings, then exit
4523     --config print configuration, then exit
4524     -q, --quiet, --silent
4525     do not print progress messages
4526     -d, --debug don't remove temporary files
4527     --recheck update $as_me by reconfiguring in the same conditions
4528     --file=FILE[:TEMPLATE]
4529     instantiate the configuration file FILE
4530     --header=FILE[:TEMPLATE]
4531     instantiate the configuration header FILE
4532    
4533     Configuration files:
4534     $config_files
4535    
4536     Configuration headers:
4537     $config_headers
4538    
4539     Report bugs to the package provider."
4540    
4541     _ACEOF
4542 root 1.14 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
4543     ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
4544 root 1.12 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4545 root 1.14 ac_cs_config='$ac_cs_config_escaped'
4546 root 1.12 ac_cs_version="\\
4547     config.status
4548 root 1.14 configured by $0, generated by GNU Autoconf 2.71,
4549 root 1.12 with options \\"\$ac_cs_config\\"
4550    
4551 root 1.14 Copyright (C) 2021 Free Software Foundation, Inc.
4552 root 1.12 This config.status script is free software; the Free Software Foundation
4553     gives unlimited permission to copy, distribute and modify it."
4554    
4555     ac_pwd='$ac_pwd'
4556     srcdir='$srcdir'
4557     test -n "\$AWK" || AWK=awk
4558     _ACEOF
4559    
4560     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4561     # The default lists apply if the user does not specify any file.
4562     ac_need_defaults=:
4563     while test $# != 0
4564 root 1.1 do
4565 root 1.12 case $1 in
4566     --*=?*)
4567     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4568     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4569     ac_shift=:
4570     ;;
4571     --*=)
4572     ac_option=`expr "X$1" : 'X\([^=]*\)='`
4573     ac_optarg=
4574     ac_shift=:
4575     ;;
4576     *)
4577     ac_option=$1
4578     ac_optarg=$2
4579     ac_shift=shift
4580     ;;
4581     esac
4582    
4583     case $ac_option in
4584     # Handling of the options.
4585 root 1.1 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4586 root 1.12 ac_cs_recheck=: ;;
4587     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4588 root 1.14 printf "%s\n" "$ac_cs_version"; exit ;;
4589 root 1.12 --config | --confi | --conf | --con | --co | --c )
4590 root 1.14 printf "%s\n" "$ac_cs_config"; exit ;;
4591 root 1.12 --debug | --debu | --deb | --de | --d | -d )
4592     debug=: ;;
4593     --file | --fil | --fi | --f )
4594     $ac_shift
4595     case $ac_optarg in
4596 root 1.14 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4597 root 1.12 '') as_fn_error $? "missing file argument" ;;
4598     esac
4599     as_fn_append CONFIG_FILES " '$ac_optarg'"
4600     ac_need_defaults=false;;
4601     --header | --heade | --head | --hea )
4602     $ac_shift
4603     case $ac_optarg in
4604 root 1.14 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4605 root 1.12 esac
4606     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4607     ac_need_defaults=false;;
4608     --he | --h)
4609     # Conflict between --help and --header
4610     as_fn_error $? "ambiguous option: \`$1'
4611     Try \`$0 --help' for more information.";;
4612     --help | --hel | -h )
4613 root 1.14 printf "%s\n" "$ac_cs_usage"; exit ;;
4614 root 1.12 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4615     | -silent | --silent | --silen | --sile | --sil | --si | --s)
4616     ac_cs_silent=: ;;
4617    
4618     # This is an error.
4619     -*) as_fn_error $? "unrecognized option: \`$1'
4620     Try \`$0 --help' for more information." ;;
4621    
4622     *) as_fn_append ac_config_targets " $1"
4623     ac_need_defaults=false ;;
4624    
4625 root 1.1 esac
4626 root 1.12 shift
4627 root 1.1 done
4628    
4629 root 1.12 ac_configure_extra_args=
4630 root 1.4
4631 root 1.12 if $ac_cs_silent; then
4632     exec 6>/dev/null
4633     ac_configure_extra_args="$ac_configure_extra_args --silent"
4634     fi
4635    
4636     _ACEOF
4637     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4638     if \$ac_cs_recheck; then
4639     set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4640     shift
4641 root 1.14 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
4642 root 1.12 CONFIG_SHELL='$SHELL'
4643     export CONFIG_SHELL
4644     exec "\$@"
4645     fi
4646    
4647     _ACEOF
4648     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4649     exec 5>>config.log
4650     {
4651     echo
4652     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4653     ## Running $as_me. ##
4654     _ASBOX
4655 root 1.14 printf "%s\n" "$ac_log"
4656 root 1.12 } >&5
4657    
4658     _ACEOF
4659     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4660     _ACEOF
4661    
4662     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4663    
4664     # Handling of arguments.
4665     for ac_config_target in $ac_config_targets
4666     do
4667     case $ac_config_target in
4668     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4669     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4670    
4671     *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4672     esac
4673     done
4674    
4675    
4676     # If the user did not use the arguments to specify the items to instantiate,
4677     # then the envvar interface is used. Set only those that are not.
4678     # We use the long form for the default assignment because of an extremely
4679     # bizarre bug on SunOS 4.1.3.
4680     if $ac_need_defaults; then
4681 root 1.14 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
4682     test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
4683 root 1.12 fi
4684    
4685     # Have a temporary directory for convenience. Make it in the build tree
4686     # simply because there is no reason against having it here, and in addition,
4687     # creating and moving files from /tmp can sometimes cause problems.
4688     # Hook for its removal unless debugging.
4689     # Note that there is a small window in which the directory will not be cleaned:
4690     # after its creation but before its name has been assigned to `$tmp'.
4691     $debug ||
4692     {
4693     tmp= ac_tmp=
4694     trap 'exit_status=$?
4695     : "${ac_tmp:=$tmp}"
4696     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4697     ' 0
4698     trap 'as_fn_exit 1' 1 2 13 15
4699     }
4700     # Create a (secure) tmp directory for tmp files.
4701    
4702     {
4703     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4704     test -d "$tmp"
4705     } ||
4706     {
4707     tmp=./conf$$-$RANDOM
4708     (umask 077 && mkdir "$tmp")
4709     } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4710     ac_tmp=$tmp
4711    
4712     # Set up the scripts for CONFIG_FILES section.
4713     # No need to generate them if there are no CONFIG_FILES.
4714     # This happens for instance with `./config.status config.h'.
4715     if test -n "$CONFIG_FILES"; then
4716    
4717    
4718     ac_cr=`echo X | tr X '\015'`
4719     # On cygwin, bash can eat \r inside `` if the user requested igncr.
4720     # But we know of no other shell where ac_cr would be empty at this
4721     # point, so we can use a bashism as a fallback.
4722     if test "x$ac_cr" = x; then
4723     eval ac_cr=\$\'\\r\'
4724     fi
4725     ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4726     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4727     ac_cs_awk_cr='\\r'
4728     else
4729     ac_cs_awk_cr=$ac_cr
4730     fi
4731    
4732     echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4733     _ACEOF
4734    
4735    
4736     {
4737     echo "cat >conf$$subs.awk <<_ACEOF" &&
4738     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4739     echo "_ACEOF"
4740     } >conf$$subs.sh ||
4741     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4742     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4743     ac_delim='%!_!# '
4744     for ac_last_try in false false false false false :; do
4745     . ./conf$$subs.sh ||
4746     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4747    
4748     ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4749     if test $ac_delim_n = $ac_delim_num; then
4750     break
4751     elif $ac_last_try; then
4752     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4753 root 1.7 else
4754 root 1.12 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4755 root 1.7 fi
4756 root 1.12 done
4757     rm -f conf$$subs.sh
4758 root 1.1
4759 root 1.12 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4760     cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4761     _ACEOF
4762     sed -n '
4763     h
4764     s/^/S["/; s/!.*/"]=/
4765     p
4766     g
4767     s/^[^!]*!//
4768     :repl
4769     t repl
4770     s/'"$ac_delim"'$//
4771     t delim
4772     :nl
4773     h
4774     s/\(.\{148\}\)..*/\1/
4775     t more1
4776     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4777     p
4778     n
4779     b repl
4780     :more1
4781     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4782     p
4783     g
4784     s/.\{148\}//
4785     t nl
4786     :delim
4787     h
4788     s/\(.\{148\}\)..*/\1/
4789     t more2
4790     s/["\\]/\\&/g; s/^/"/; s/$/"/
4791     p
4792     b
4793     :more2
4794     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4795     p
4796     g
4797     s/.\{148\}//
4798     t delim
4799     ' <conf$$subs.awk | sed '
4800     /^[^""]/{
4801     N
4802     s/\n//
4803     }
4804     ' >>$CONFIG_STATUS || ac_write_fail=1
4805     rm -f conf$$subs.awk
4806     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4807     _ACAWK
4808     cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4809     for (key in S) S_is_set[key] = 1
4810     FS = ""
4811    
4812     }
4813     {
4814     line = $ 0
4815     nfields = split(line, field, "@")
4816     substed = 0
4817     len = length(field[1])
4818     for (i = 2; i < nfields; i++) {
4819     key = field[i]
4820     keylen = length(key)
4821     if (S_is_set[key]) {
4822     value = S[key]
4823     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4824     len += length(value) + length(field[++i])
4825     substed = 1
4826     } else
4827     len += 1 + keylen
4828     }
4829    
4830     print line
4831     }
4832    
4833     _ACAWK
4834     _ACEOF
4835     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4836     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4837     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4838     else
4839     cat
4840     fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4841     || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4842     _ACEOF
4843    
4844     # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4845     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4846     # trailing colons and then remove the whole line if VPATH becomes empty
4847     # (actually we leave an empty line to preserve line numbers).
4848     if test "x$srcdir" = x.; then
4849     ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4850     h
4851     s///
4852     s/^/:/
4853     s/[ ]*$/:/
4854     s/:\$(srcdir):/:/g
4855     s/:\${srcdir}:/:/g
4856     s/:@srcdir@:/:/g
4857     s/^:*//
4858     s/:*$//
4859     x
4860     s/\(=[ ]*\).*/\1/
4861     G
4862     s/\n//
4863     s/^[^=]*=[ ]*$//
4864     }'
4865     fi
4866    
4867     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4868     fi # test -n "$CONFIG_FILES"
4869    
4870     # Set up the scripts for CONFIG_HEADERS section.
4871     # No need to generate them if there are no CONFIG_HEADERS.
4872     # This happens for instance with `./config.status Makefile'.
4873     if test -n "$CONFIG_HEADERS"; then
4874     cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4875     BEGIN {
4876     _ACEOF
4877    
4878     # Transform confdefs.h into an awk script `defines.awk', embedded as
4879     # here-document in config.status, that substitutes the proper values into
4880     # config.h.in to produce config.h.
4881    
4882     # Create a delimiter string that does not exist in confdefs.h, to ease
4883     # handling of long lines.
4884     ac_delim='%!_!# '
4885     for ac_last_try in false false :; do
4886     ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4887     if test -z "$ac_tt"; then
4888     break
4889     elif $ac_last_try; then
4890     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4891 root 1.1 else
4892 root 1.12 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4893 root 1.1 fi
4894 root 1.12 done
4895 root 1.1
4896 root 1.12 # For the awk script, D is an array of macro values keyed by name,
4897     # likewise P contains macro parameters if any. Preserve backslash
4898     # newline sequences.
4899    
4900     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4901     sed -n '
4902     s/.\{148\}/&'"$ac_delim"'/g
4903     t rset
4904     :rset
4905     s/^[ ]*#[ ]*define[ ][ ]*/ /
4906     t def
4907     d
4908     :def
4909     s/\\$//
4910     t bsnl
4911     s/["\\]/\\&/g
4912     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4913     D["\1"]=" \3"/p
4914     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4915     d
4916     :bsnl
4917     s/["\\]/\\&/g
4918     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4919     D["\1"]=" \3\\\\\\n"\\/p
4920     t cont
4921     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4922     t cont
4923     d
4924     :cont
4925     n
4926     s/.\{148\}/&'"$ac_delim"'/g
4927     t clear
4928     :clear
4929     s/\\$//
4930     t bsnlc
4931     s/["\\]/\\&/g; s/^/"/; s/$/"/p
4932     d
4933     :bsnlc
4934     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4935     b cont
4936     ' <confdefs.h | sed '
4937     s/'"$ac_delim"'/"\\\
4938     "/g' >>$CONFIG_STATUS || ac_write_fail=1
4939    
4940     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4941     for (key in D) D_is_set[key] = 1
4942     FS = ""
4943     }
4944     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4945     line = \$ 0
4946     split(line, arg, " ")
4947     if (arg[1] == "#") {
4948     defundef = arg[2]
4949     mac1 = arg[3]
4950     } else {
4951     defundef = substr(arg[1], 2)
4952     mac1 = arg[2]
4953     }
4954     split(mac1, mac2, "(") #)
4955     macro = mac2[1]
4956     prefix = substr(line, 1, index(line, defundef) - 1)
4957     if (D_is_set[macro]) {
4958     # Preserve the white space surrounding the "#".
4959     print prefix "define", macro P[macro] D[macro]
4960     next
4961     } else {
4962     # Replace #undef with comments. This is necessary, for example,
4963     # in the case of _POSIX_SOURCE, which is predefined and required
4964     # on some systems where configure will not decide to define it.
4965     if (defundef == "undef") {
4966     print "/*", prefix defundef, macro, "*/"
4967     next
4968     }
4969     }
4970     }
4971     { print }
4972     _ACAWK
4973     _ACEOF
4974     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4975     as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4976     fi # test -n "$CONFIG_HEADERS"
4977    
4978    
4979     eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4980     shift
4981     for ac_tag
4982     do
4983     case $ac_tag in
4984     :[FHLC]) ac_mode=$ac_tag; continue;;
4985 root 1.1 esac
4986 root 1.12 case $ac_mode$ac_tag in
4987     :[FHL]*:*);;
4988     :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4989     :[FH]-) ac_tag=-:-;;
4990     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4991     esac
4992     ac_save_IFS=$IFS
4993     IFS=:
4994     set x $ac_tag
4995     IFS=$ac_save_IFS
4996     shift
4997     ac_file=$1
4998     shift
4999 root 1.1
5000 root 1.12 case $ac_mode in
5001     :L) ac_source=$1;;
5002     :[FH])
5003     ac_file_inputs=
5004     for ac_f
5005     do
5006     case $ac_f in
5007     -) ac_f="$ac_tmp/stdin";;
5008     *) # Look for the file first in the build tree, then in the source tree
5009     # (if the path is not absolute). The absolute path cannot be DOS-style,
5010     # because $ac_f cannot contain `:'.
5011     test -f "$ac_f" ||
5012     case $ac_f in
5013     [\\/$]*) false;;
5014     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5015     esac ||
5016     as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5017     esac
5018 root 1.14 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5019 root 1.12 as_fn_append ac_file_inputs " '$ac_f'"
5020     done
5021    
5022     # Let's still pretend it is `configure' which instantiates (i.e., don't
5023     # use $as_me), people would be surprised to read:
5024     # /* config.h. Generated by config.status. */
5025     configure_input='Generated from '`
5026 root 1.14 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5027 root 1.12 `' by configure.'
5028     if test x"$ac_file" != x-; then
5029     configure_input="$ac_file. $configure_input"
5030 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5031     printf "%s\n" "$as_me: creating $ac_file" >&6;}
5032 root 1.12 fi
5033     # Neutralize special characters interpreted by sed in replacement strings.
5034     case $configure_input in #(
5035     *\&* | *\|* | *\\* )
5036 root 1.14 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
5037 root 1.12 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5038     *) ac_sed_conf_input=$configure_input;;
5039     esac
5040 root 1.1
5041 root 1.12 case $ac_tag in
5042     *:-:* | *:-) cat >"$ac_tmp/stdin" \
5043     || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
5044     esac
5045     ;;
5046 root 1.7 esac
5047 root 1.1
5048 root 1.12 ac_dir=`$as_dirname -- "$ac_file" ||
5049     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5050     X"$ac_file" : 'X\(//\)[^/]' \| \
5051     X"$ac_file" : 'X\(//\)$' \| \
5052     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5053 root 1.14 printf "%s\n" X"$ac_file" |
5054 root 1.12 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5055     s//\1/
5056     q
5057     }
5058     /^X\(\/\/\)[^/].*/{
5059     s//\1/
5060     q
5061     }
5062     /^X\(\/\/\)$/{
5063     s//\1/
5064     q
5065     }
5066     /^X\(\/\).*/{
5067     s//\1/
5068     q
5069     }
5070     s/.*/./; q'`
5071     as_dir="$ac_dir"; as_fn_mkdir_p
5072     ac_builddir=.
5073    
5074     case "$ac_dir" in
5075     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5076     *)
5077 root 1.14 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
5078 root 1.12 # A ".." for each directory in $ac_dir_suffix.
5079 root 1.14 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5080 root 1.12 case $ac_top_builddir_sub in
5081     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5082     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5083     esac ;;
5084     esac
5085     ac_abs_top_builddir=$ac_pwd
5086     ac_abs_builddir=$ac_pwd$ac_dir_suffix
5087     # for backward compatibility:
5088     ac_top_builddir=$ac_top_build_prefix
5089    
5090     case $srcdir in
5091     .) # We are building in place.
5092     ac_srcdir=.
5093     ac_top_srcdir=$ac_top_builddir_sub
5094     ac_abs_top_srcdir=$ac_pwd ;;
5095     [\\/]* | ?:[\\/]* ) # Absolute name.
5096     ac_srcdir=$srcdir$ac_dir_suffix;
5097     ac_top_srcdir=$srcdir
5098     ac_abs_top_srcdir=$srcdir ;;
5099     *) # Relative name.
5100     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5101     ac_top_srcdir=$ac_top_build_prefix$srcdir
5102     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5103     esac
5104     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5105    
5106    
5107     case $ac_mode in
5108     :F)
5109     #
5110     # CONFIG_FILE
5111     #
5112    
5113     _ACEOF
5114    
5115     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5116     # If the template does not know about datarootdir, expand it.
5117     # FIXME: This hack should be removed a few years after 2.60.
5118     ac_datarootdir_hack=; ac_datarootdir_seen=
5119     ac_sed_dataroot='
5120     /datarootdir/ {
5121     p
5122     q
5123     }
5124     /@datadir@/p
5125     /@docdir@/p
5126     /@infodir@/p
5127     /@localedir@/p
5128     /@mandir@/p'
5129     case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5130     *datarootdir*) ac_datarootdir_seen=yes;;
5131     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5132 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5133     printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5134 root 1.12 _ACEOF
5135     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5136     ac_datarootdir_hack='
5137     s&@datadir@&$datadir&g
5138     s&@docdir@&$docdir&g
5139     s&@infodir@&$infodir&g
5140     s&@localedir@&$localedir&g
5141     s&@mandir@&$mandir&g
5142     s&\\\${datarootdir}&$datarootdir&g' ;;
5143     esac
5144     _ACEOF
5145    
5146     # Neutralize VPATH when `$srcdir' = `.'.
5147     # Shell code in configure.ac might set extrasub.
5148     # FIXME: do we really want to maintain this feature?
5149     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5150     ac_sed_extra="$ac_vpsub
5151     $extrasub
5152     _ACEOF
5153     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5154     :t
5155     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5156     s|@configure_input@|$ac_sed_conf_input|;t t
5157     s&@top_builddir@&$ac_top_builddir_sub&;t t
5158     s&@top_build_prefix@&$ac_top_build_prefix&;t t
5159     s&@srcdir@&$ac_srcdir&;t t
5160     s&@abs_srcdir@&$ac_abs_srcdir&;t t
5161     s&@top_srcdir@&$ac_top_srcdir&;t t
5162     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5163     s&@builddir@&$ac_builddir&;t t
5164     s&@abs_builddir@&$ac_abs_builddir&;t t
5165     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5166     $ac_datarootdir_hack
5167     "
5168     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5169     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5170 root 1.1
5171 root 1.12 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5172     { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5173     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5174     "$ac_tmp/out"`; test -z "$ac_out"; } &&
5175 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5176 root 1.12 which seems to be undefined. Please make sure it is defined" >&5
5177 root 1.14 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5178 root 1.12 which seems to be undefined. Please make sure it is defined" >&2;}
5179    
5180     rm -f "$ac_tmp/stdin"
5181     case $ac_file in
5182     -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5183     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5184     esac \
5185     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5186     ;;
5187     :H)
5188     #
5189     # CONFIG_HEADER
5190     #
5191     if test x"$ac_file" != x-; then
5192     {
5193 root 1.14 printf "%s\n" "/* $configure_input */" >&1 \
5194 root 1.12 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5195     } >"$ac_tmp/config.h" \
5196     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5197     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5198 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5199     printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
5200 root 1.12 else
5201     rm -f "$ac_file"
5202     mv "$ac_tmp/config.h" "$ac_file" \
5203     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5204     fi
5205 root 1.1 else
5206 root 1.14 printf "%s\n" "/* $configure_input */" >&1 \
5207 root 1.12 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5208     || as_fn_error $? "could not create -" "$LINENO" 5
5209 root 1.1 fi
5210 root 1.12 ;;
5211 root 1.7
5212 root 1.1
5213 root 1.12 esac
5214    
5215     done # for ac_tag
5216    
5217    
5218     as_fn_exit 0
5219     _ACEOF
5220     ac_clean_files=$ac_clean_files_save
5221    
5222     test $ac_write_fail = 0 ||
5223     as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5224    
5225    
5226     # configure is writing to config.log, and then calls config.status.
5227     # config.status does its own redirection, appending to config.log.
5228     # Unfortunately, on DOS this fails, as config.log is still kept open
5229     # by configure, so config.status won't be able to write to it; its
5230     # output is simply discarded. So we exec the FD to /dev/null,
5231     # effectively closing config.log, so it can be properly (re)opened and
5232     # appended to by config.status. When coming back to configure, we
5233     # need to make the FD available again.
5234     if test "$no_create" != yes; then
5235     ac_cs_success=:
5236     ac_config_status_args=
5237     test "$silent" = yes &&
5238     ac_config_status_args="$ac_config_status_args --quiet"
5239     exec 5>/dev/null
5240     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5241     exec 5>>config.log
5242     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5243     # would make configure fail if this is the last instruction.
5244     $ac_cs_success || as_fn_exit 1
5245     fi
5246     if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5247 root 1.14 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5248     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5249 root 1.12 fi
5250 root 1.1
5251    
5252 root 1.14