Debian Codegraph @

configure

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