Debian Codegraph @

configure

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