Debian Codegraph @

src/plugins/dive/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else $as_nop
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
150 else \$as_nop
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174 exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184 if (eval "$as_required") 2>/dev/null
185 then :
186 as_have_required=yes
187 else $as_nop
188 as_have_required=no
189 fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191 then :
192
193 else $as_nop
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 case $as_dir in #(((
200 '') as_dir=./ ;;
201 */) ;;
202 *) as_dir=$as_dir/ ;;
203 esac
204 as_found=:
205 case $as_dir in #(
206 /*)
207 for as_base in sh bash ksh sh5; do
208 # Try only shells that exist, to save several forks.
209 as_shell=$as_dir$as_base
210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 then :
213 CONFIG_SHELL=$as_shell as_have_required=yes
214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215 then :
216 break 2
217 fi
218 fi
219 done;;
220 esac
221 as_found=false
222 done
223 IFS=$as_save_IFS
224 if $as_found
225 then :
226
227 else $as_nop
228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 then :
231 CONFIG_SHELL=$SHELL as_have_required=yes
232 fi
233 fi
234
235
236 if test "x$CONFIG_SHELL" != x
237 then :
238 export CONFIG_SHELL
239 # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247 *v*x* | *x*v* ) as_opts=-vx ;;
248 *v* ) as_opts=-v ;;
249 *x* ) as_opts=-x ;;
250 * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259 if test x$as_have_required = xno
260 then :
261 printf "%s\n" "$0: This script requires a shell more modern than all"
262 printf "%s\n" "$0: the shells that I found on your system."
263 if test ${ZSH_VERSION+y} ; then
264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 printf "%s\n" "$0: Please tell [email protected] about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271 fi
272 exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290 { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300 return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308 set +e
309 as_fn_set_status $1
310 exit $1
311 } # as_fn_exit
312 # as_fn_nop
313 # ---------
314 # Do nothing but, unlike ":", preserve the value of $?.
315 as_fn_nop ()
316 {
317 return $?
318 }
319 as_nop=as_fn_nop
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327 case $as_dir in #(
328 -*) as_dir=./$as_dir;;
329 esac
330 test -d "$as_dir" || eval $as_mkdir_p || {
331 as_dirs=
332 while :; do
333 case $as_dir in #(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335 *) as_qdir=$as_dir;;
336 esac
337 as_dirs="'$as_qdir' $as_dirs"
338 as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340 X"$as_dir" : 'X\(//\)[^/]' \| \
341 X"$as_dir" : 'X\(//\)$' \| \
342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345 s//\1/
346 q
347 }
348 /^X\(\/\/\)[^/].*/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\).*/{
357 s//\1/
358 q
359 }
360 s/.*/./; q'`
361 test -d "$as_dir" && break
362 done
363 test -z "$as_dirs" || eval "mkdir $as_dirs"
364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374 test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else $as_nop
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else $as_nop
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413 # as_fn_nop
414 # ---------
415 # Do nothing but, unlike ":", preserve the value of $?.
416 as_fn_nop ()
417 {
418 return $?
419 }
420 as_nop=as_fn_nop
421
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
427 as_fn_error ()
428 {
429 as_status=$1; test $as_status -eq 0 && as_status=1
430 if test "$4"; then
431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433 fi
434 printf "%s\n" "$as_me: error: $2" >&2
435 as_fn_exit $as_status
436 } # as_fn_error
437
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439 test "X`expr 00001 : '.*\(...\)'`" = X001; then
440 as_expr=expr
441 else
442 as_expr=false
443 fi
444
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446 as_basename=basename
447 else
448 as_basename=false
449 fi
450
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452 as_dirname=dirname
453 else
454 as_dirname=false
455 fi
456
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459 X"$0" : 'X\(//\)$' \| \
460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462 sed '/^.*\/\([^/][^/]*\)\/*$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\/\)$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\).*/{
471 s//\1/
472 q
473 }
474 s/.*/./; q'`
475
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484 as_lineno_1=$LINENO as_lineno_1a=$LINENO
485 as_lineno_2=$LINENO as_lineno_2a=$LINENO
486 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 sed -n '
490 p
491 /[$]LINENO/=
492 ' <$as_myself |
493 sed '
494 s/[$]LINENO.*/&-/
495 t lineno
496 b
497 :lineno
498 N
499 :loop
500 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501 t loop
502 s/-\n.*//
503 ' >$as_me.lineno &&
504 chmod +x "$as_me.lineno" ||
505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506
507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508 # already done that, so ensure we don't try to do so again and fall
509 # in an infinite loop. This has already happened in practice.
510 _as_can_reexec=no; export _as_can_reexec
511 # Don't try to exec as it changes $[0], causing all sort of problems
512 # (the dirname of $[0] is not the place where we might find the
513 # original and so on. Autoconf is especially sensitive to this).
514 . "./$as_me.lineno"
515 # Exit status is that of the last command.
516 exit
517 }
518
519
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
525 -n*)
526 case `echo 'xy\c'` in
527 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
528 xy) ECHO_C='\c';;
529 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
530 ECHO_T=' ';;
531 esac;;
532 *)
533 ECHO_N='-n';;
534 esac
535
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n. New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
541
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556 # In both cases, we have to default to `cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586
587 test -n "$DJDIR" || exec 7<&0 </dev/null
588 exec 6>&1
589
590 # Name of the host.
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
594
595 #
596 # Initializations.
597 #
598 ac_default_prefix=/usr/local
599 ac_clean_files=
600 ac_config_libobj_dir=.
601 LIBOBJS=
602 cross_compiling=no
603 subdirs=
604 MFLAGS=
605 MAKEFLAGS=
606
607 # Identity of this package.
608 PACKAGE_NAME=''
609 PACKAGE_TARNAME=''
610 PACKAGE_VERSION=''
611 PACKAGE_STRING=''
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 ac_unique_file="Makefile.in"
616 ac_subst_vars='LTLIBOBJS
617 LIBOBJS
618 ENABLE_DIVE
619 ENABLE_GUI
620 FRAMAC_VERSION
621 target_alias
622 host_alias
623 build_alias
624 LIBS
625 ECHO_T
626 ECHO_N
627 ECHO_C
628 DEFS
629 mandir
630 localedir
631 libdir
632 psdir
633 pdfdir
634 dvidir
635 htmldir
636 infodir
637 docdir
638 oldincludedir
639 includedir
640 runstatedir
641 localstatedir
642 sharedstatedir
643 sysconfdir
644 datadir
645 datarootdir
646 libexecdir
647 sbindir
648 bindir
649 program_transform_name
650 prefix
651 exec_prefix
652 PACKAGE_URL
653 PACKAGE_BUGREPORT
654 PACKAGE_STRING
655 PACKAGE_VERSION
656 PACKAGE_TARNAME
657 PACKAGE_NAME
658 PATH_SEPARATOR
659 SHELL'
660 ac_subst_files=''
661 ac_user_opts='
662 enable_option_checking
663 enable_dive
664 '
665 ac_precious_vars='build_alias
666 host_alias
667 target_alias'
668
669
670 # Initialize some variables set by options.
671 ac_init_help=
672 ac_init_version=false
673 ac_unrecognized_opts=
674 ac_unrecognized_sep=
675 # The variables have the same names as the options, with
676 # dashes changed to underlines.
677 cache_file=/dev/null
678 exec_prefix=NONE
679 no_create=
680 no_recursion=
681 prefix=NONE
682 program_prefix=NONE
683 program_suffix=NONE
684 program_transform_name=s,x,x,
685 silent=
686 site=
687 srcdir=
688 verbose=
689 x_includes=NONE
690 x_libraries=NONE
691
692 # Installation directory options.
693 # These are left unexpanded so users can "make install exec_prefix=/foo"
694 # and all the variables that are supposed to be based on exec_prefix
695 # by default will actually change.
696 # Use braces instead of parens because sh, perl, etc. also accept them.
697 # (The list follows the same order as the GNU Coding Standards.)
698 bindir='${exec_prefix}/bin'
699 sbindir='${exec_prefix}/sbin'
700 libexecdir='${exec_prefix}/libexec'
701 datarootdir='${prefix}/share'
702 datadir='${datarootdir}'
703 sysconfdir='${prefix}/etc'
704 sharedstatedir='${prefix}/com'
705 localstatedir='${prefix}/var'
706 runstatedir='${localstatedir}/run'
707 includedir='${prefix}/include'
708 oldincludedir='/usr/include'
709 docdir='${datarootdir}/doc/${PACKAGE}'
710 infodir='${datarootdir}/info'
711 htmldir='${docdir}'
712 dvidir='${docdir}'
713 pdfdir='${docdir}'
714 psdir='${docdir}'
715 libdir='${exec_prefix}/lib'
716 localedir='${datarootdir}/locale'
717 mandir='${datarootdir}/man'
718
719 ac_prev=
720 ac_dashdash=
721 for ac_option
722 do
723 # If the previous option needs an argument, assign it.
724 if test -n "$ac_prev"; then
725 eval $ac_prev=\$ac_option
726 ac_prev=
727 continue
728 fi
729
730 case $ac_option in
731 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
732 *=) ac_optarg= ;;
733 *) ac_optarg=yes ;;
734 esac
735
736 case $ac_dashdash$ac_option in
737 --)
738 ac_dashdash=yes ;;
739
740 -bindir | --bindir | --bindi | --bind | --bin | --bi)
741 ac_prev=bindir ;;
742 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
743 bindir=$ac_optarg ;;
744
745 -build | --build | --buil | --bui | --bu)
746 ac_prev=build_alias ;;
747 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
748 build_alias=$ac_optarg ;;
749
750 -cache-file | --cache-file | --cache-fil | --cache-fi \
751 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
752 ac_prev=cache_file ;;
753 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
754 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
755 cache_file=$ac_optarg ;;
756
757 --config-cache | -C)
758 cache_file=config.cache ;;
759
760 -datadir | --datadir | --datadi | --datad)
761 ac_prev=datadir ;;
762 -datadir=* | --datadir=* | --datadi=* | --datad=*)
763 datadir=$ac_optarg ;;
764
765 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
766 | --dataroo | --dataro | --datar)
767 ac_prev=datarootdir ;;
768 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
769 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
770 datarootdir=$ac_optarg ;;
771
772 -disable-* | --disable-*)
773 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
774 # Reject names that are not valid shell variable names.
775 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
776 as_fn_error $? "invalid feature name: \`$ac_useropt'"
777 ac_useropt_orig=$ac_useropt
778 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
779 case $ac_user_opts in
780 *"
781 "enable_$ac_useropt"
782 "*) ;;
783 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
784 ac_unrecognized_sep=', ';;
785 esac
786 eval enable_$ac_useropt=no ;;
787
788 -docdir | --docdir | --docdi | --doc | --do)
789 ac_prev=docdir ;;
790 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
791 docdir=$ac_optarg ;;
792
793 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
794 ac_prev=dvidir ;;
795 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
796 dvidir=$ac_optarg ;;
797
798 -enable-* | --enable-*)
799 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
802 as_fn_error $? "invalid feature name: \`$ac_useropt'"
803 ac_useropt_orig=$ac_useropt
804 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
805 case $ac_user_opts in
806 *"
807 "enable_$ac_useropt"
808 "*) ;;
809 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
810 ac_unrecognized_sep=', ';;
811 esac
812 eval enable_$ac_useropt=\$ac_optarg ;;
813
814 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
815 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
816 | --exec | --exe | --ex)
817 ac_prev=exec_prefix ;;
818 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
819 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
820 | --exec=* | --exe=* | --ex=*)
821 exec_prefix=$ac_optarg ;;
822
823 -gas | --gas | --ga | --g)
824 # Obsolete; use --with-gas.
825 with_gas=yes ;;
826
827 -help | --help | --hel | --he | -h)
828 ac_init_help=long ;;
829 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
830 ac_init_help=recursive ;;
831 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
832 ac_init_help=short ;;
833
834 -host | --host | --hos | --ho)
835 ac_prev=host_alias ;;
836 -host=* | --host=* | --hos=* | --ho=*)
837 host_alias=$ac_optarg ;;
838
839 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
840 ac_prev=htmldir ;;
841 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
842 | --ht=*)
843 htmldir=$ac_optarg ;;
844
845 -includedir | --includedir | --includedi | --included | --include \
846 | --includ | --inclu | --incl | --inc)
847 ac_prev=includedir ;;
848 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
849 | --includ=* | --inclu=* | --incl=* | --inc=*)
850 includedir=$ac_optarg ;;
851
852 -infodir | --infodir | --infodi | --infod | --info | --inf)
853 ac_prev=infodir ;;
854 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
855 infodir=$ac_optarg ;;
856
857 -libdir | --libdir | --libdi | --libd)
858 ac_prev=libdir ;;
859 -libdir=* | --libdir=* | --libdi=* | --libd=*)
860 libdir=$ac_optarg ;;
861
862 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
863 | --libexe | --libex | --libe)
864 ac_prev=libexecdir ;;
865 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
866 | --libexe=* | --libex=* | --libe=*)
867 libexecdir=$ac_optarg ;;
868
869 -localedir | --localedir | --localedi | --localed | --locale)
870 ac_prev=localedir ;;
871 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
872 localedir=$ac_optarg ;;
873
874 -localstatedir | --localstatedir | --localstatedi | --localstated \
875 | --localstate | --localstat | --localsta | --localst | --locals)
876 ac_prev=localstatedir ;;
877 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
878 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
879 localstatedir=$ac_optarg ;;
880
881 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
882 ac_prev=mandir ;;
883 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
884 mandir=$ac_optarg ;;
885
886 -nfp | --nfp | --nf)
887 # Obsolete; use --without-fp.
888 with_fp=no ;;
889
890 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
891 | --no-cr | --no-c | -n)
892 no_create=yes ;;
893
894 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
895 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
896 no_recursion=yes ;;
897
898 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
899 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
900 | --oldin | --oldi | --old | --ol | --o)
901 ac_prev=oldincludedir ;;
902 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
903 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
904 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
905 oldincludedir=$ac_optarg ;;
906
907 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
908 ac_prev=prefix ;;
909 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
910 prefix=$ac_optarg ;;
911
912 -program-prefix | --program-prefix | --program-prefi | --program-pref \
913 | --program-pre | --program-pr | --program-p)
914 ac_prev=program_prefix ;;
915 -program-prefix=* | --program-prefix=* | --program-prefi=* \
916 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
917 program_prefix=$ac_optarg ;;
918
919 -program-suffix | --program-suffix | --program-suffi | --program-suff \
920 | --program-suf | --program-su | --program-s)
921 ac_prev=program_suffix ;;
922 -program-suffix=* | --program-suffix=* | --program-suffi=* \
923 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
924 program_suffix=$ac_optarg ;;
925
926 -program-transform-name | --program-transform-name \
927 | --program-transform-nam | --program-transform-na \
928 | --program-transform-n | --program-transform- \
929 | --program-transform | --program-transfor \
930 | --program-transfo | --program-transf \
931 | --program-trans | --program-tran \
932 | --progr-tra | --program-tr | --program-t)
933 ac_prev=program_transform_name ;;
934 -program-transform-name=* | --program-transform-name=* \
935 | --program-transform-nam=* | --program-transform-na=* \
936 | --program-transform-n=* | --program-transform-=* \
937 | --program-transform=* | --program-transfor=* \
938 | --program-transfo=* | --program-transf=* \
939 | --program-trans=* | --program-tran=* \
940 | --progr-tra=* | --program-tr=* | --program-t=*)
941 program_transform_name=$ac_optarg ;;
942
943 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
944 ac_prev=pdfdir ;;
945 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
946 pdfdir=$ac_optarg ;;
947
948 -psdir | --psdir | --psdi | --psd | --ps)
949 ac_prev=psdir ;;
950 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
951 psdir=$ac_optarg ;;
952
953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
954 | -silent | --silent | --silen | --sile | --sil)
955 silent=yes ;;
956
957 -runstatedir | --runstatedir | --runstatedi | --runstated \
958 | --runstate | --runstat | --runsta | --runst | --runs \
959 | --run | --ru | --r)
960 ac_prev=runstatedir ;;
961 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
962 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
963 | --run=* | --ru=* | --r=*)
964 runstatedir=$ac_optarg ;;
965
966 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
967 ac_prev=sbindir ;;
968 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
969 | --sbi=* | --sb=*)
970 sbindir=$ac_optarg ;;
971
972 -sharedstatedir | --sharedstatedir | --sharedstatedi \
973 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
974 | --sharedst | --shareds | --shared | --share | --shar \
975 | --sha | --sh)
976 ac_prev=sharedstatedir ;;
977 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
978 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
979 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
980 | --sha=* | --sh=*)
981 sharedstatedir=$ac_optarg ;;
982
983 -site | --site | --sit)
984 ac_prev=site ;;
985 -site=* | --site=* | --sit=*)
986 site=$ac_optarg ;;
987
988 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
989 ac_prev=srcdir ;;
990 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
991 srcdir=$ac_optarg ;;
992
993 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
994 | --syscon | --sysco | --sysc | --sys | --sy)
995 ac_prev=sysconfdir ;;
996 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
997 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
998 sysconfdir=$ac_optarg ;;
999
1000 -target | --target | --targe | --targ | --tar | --ta | --t)
1001 ac_prev=target_alias ;;
1002 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1003 target_alias=$ac_optarg ;;
1004
1005 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1006 verbose=yes ;;
1007
1008 -version | --version | --versio | --versi | --vers | -V)
1009 ac_init_version=: ;;
1010
1011 -with-* | --with-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid package name: \`$ac_useropt'"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "with_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval with_$ac_useropt=\$ac_optarg ;;
1026
1027 -without-* | --without-*)
1028 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031 as_fn_error $? "invalid package name: \`$ac_useropt'"
1032 ac_useropt_orig=$ac_useropt
1033 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1034 case $ac_user_opts in
1035 *"
1036 "with_$ac_useropt"
1037 "*) ;;
1038 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1039 ac_unrecognized_sep=', ';;
1040 esac
1041 eval with_$ac_useropt=no ;;
1042
1043 --x)
1044 # Obsolete; use --with-x.
1045 with_x=yes ;;
1046
1047 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1048 | --x-incl | --x-inc | --x-in | --x-i)
1049 ac_prev=x_includes ;;
1050 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1051 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1052 x_includes=$ac_optarg ;;
1053
1054 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1055 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1056 ac_prev=x_libraries ;;
1057 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1058 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1059 x_libraries=$ac_optarg ;;
1060
1061 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1062 Try \`$0 --help' for more information"
1063 ;;
1064
1065 *=*)
1066 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1067 # Reject names that are not valid shell variable names.
1068 case $ac_envvar in #(
1069 '' | [0-9]* | *[!_$as_cr_alnum]* )
1070 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1071 esac
1072 eval $ac_envvar=\$ac_optarg
1073 export $ac_envvar ;;
1074
1075 *)
1076 # FIXME: should be removed in autoconf 3.0.
1077 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1078 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1079 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1080 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1081 ;;
1082
1083 esac
1084 done
1085
1086 if test -n "$ac_prev"; then
1087 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1088 as_fn_error $? "missing argument to $ac_option"
1089 fi
1090
1091 if test -n "$ac_unrecognized_opts"; then
1092 case $enable_option_checking in
1093 no) ;;
1094 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1095 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1096 esac
1097 fi
1098
1099 # Check all directory arguments for consistency.
1100 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1101 datadir sysconfdir sharedstatedir localstatedir includedir \
1102 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1103 libdir localedir mandir runstatedir
1104 do
1105 eval ac_val=\$$ac_var
1106 # Remove trailing slashes.
1107 case $ac_val in
1108 */ )
1109 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1110 eval $ac_var=\$ac_val;;
1111 esac
1112 # Be sure to have absolute directory names.
1113 case $ac_val in
1114 [\\/$]* | ?:[\\/]* ) continue;;
1115 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1116 esac
1117 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1118 done
1119
1120 # There might be people who depend on the old broken behavior: `$host'
1121 # used to hold the argument of --host etc.
1122 # FIXME: To remove some day.
1123 build=$build_alias
1124 host=$host_alias
1125 target=$target_alias
1126
1127 # FIXME: To remove some day.
1128 if test "x$host_alias" != x; then
1129 if test "x$build_alias" = x; then
1130 cross_compiling=maybe
1131 elif test "x$build_alias" != "x$host_alias"; then
1132 cross_compiling=yes
1133 fi
1134 fi
1135
1136 ac_tool_prefix=
1137 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1138
1139 test "$silent" = yes && exec 6>/dev/null
1140
1141
1142 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1143 ac_ls_di=`ls -di .` &&
1144 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1145 as_fn_error $? "working directory cannot be determined"
1146 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1147 as_fn_error $? "pwd does not report name of working directory"
1148
1149
1150 # Find the source files, if location was not specified.
1151 if test -z "$srcdir"; then
1152 ac_srcdir_defaulted=yes
1153 # Try the directory containing this script, then the parent directory.
1154 ac_confdir=`$as_dirname -- "$as_myself" ||
1155 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156 X"$as_myself" : 'X\(//\)[^/]' \| \
1157 X"$as_myself" : 'X\(//\)$' \| \
1158 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1159 printf "%s\n" X"$as_myself" |
1160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1161 s//\1/
1162 q
1163 }
1164 /^X\(\/\/\)[^/].*/{
1165 s//\1/
1166 q
1167 }
1168 /^X\(\/\/\)$/{
1169 s//\1/
1170 q
1171 }
1172 /^X\(\/\).*/{
1173 s//\1/
1174 q
1175 }
1176 s/.*/./; q'`
1177 srcdir=$ac_confdir
1178 if test ! -r "$srcdir/$ac_unique_file"; then
1179 srcdir=..
1180 fi
1181 else
1182 ac_srcdir_defaulted=no
1183 fi
1184 if test ! -r "$srcdir/$ac_unique_file"; then
1185 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1187 fi
1188 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189 ac_abs_confdir=`(
1190 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1191 pwd)`
1192 # When building in place, set srcdir=.
1193 if test "$ac_abs_confdir" = "$ac_pwd"; then
1194 srcdir=.
1195 fi
1196 # Remove unnecessary trailing slashes from srcdir.
1197 # Double slashes in file names in object file debugging info
1198 # mess up M-x gdb in Emacs.
1199 case $srcdir in
1200 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1201 esac
1202 for ac_var in $ac_precious_vars; do
1203 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_env_${ac_var}_value=\$${ac_var}
1205 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1206 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1207 done
1208
1209 #
1210 # Report the --help message.
1211 #
1212 if test "$ac_init_help" = "long"; then
1213 # Omit some internal or obsolete options to make the list less imposing.
1214 # This message is too long to be a string in the A/UX 3.1 sh.
1215 cat <<_ACEOF
1216 \`configure' configures this package to adapt to many kinds of systems.
1217
1218 Usage: $0 [OPTION]... [VAR=VALUE]...
1219
1220 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1221 VAR=VALUE. See below for descriptions of some of the useful variables.
1222
1223 Defaults for the options are specified in brackets.
1224
1225 Configuration:
1226 -h, --help display this help and exit
1227 --help=short display options specific to this package
1228 --help=recursive display the short help of all the included packages
1229 -V, --version display version information and exit
1230 -q, --quiet, --silent do not print \`checking ...' messages
1231 --cache-file=FILE cache test results in FILE [disabled]
1232 -C, --config-cache alias for \`--cache-file=config.cache'
1233 -n, --no-create do not create output files
1234 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1235
1236 Installation directories:
1237 --prefix=PREFIX install architecture-independent files in PREFIX
1238 [$ac_default_prefix]
1239 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1240 [PREFIX]
1241
1242 By default, \`make install' will install all the files in
1243 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1244 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1245 for instance \`--prefix=\$HOME'.
1246
1247 For better control, use the options below.
1248
1249 Fine tuning of the installation directories:
1250 --bindir=DIR user executables [EPREFIX/bin]
1251 --sbindir=DIR system admin executables [EPREFIX/sbin]
1252 --libexecdir=DIR program executables [EPREFIX/libexec]
1253 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1254 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1255 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1256 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1270 _ACEOF
1271
1272 cat <<\_ACEOF
1273 _ACEOF
1274 fi
1275
1276 if test -n "$ac_init_help"; then
1277
1278 cat <<\_ACEOF
1279
1280 Optional Features:
1281 --disable-option-checking ignore unrecognized --enable/--with options
1282 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1283 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1284 --enable-dive support for Dive plug-in (default: yes)
1285
1286 Report bugs to the package provider.
1287 _ACEOF
1288 ac_status=$?
1289 fi
1290
1291 if test "$ac_init_help" = "recursive"; then
1292 # If there are subdirs, report their specific --help.
1293 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1294 test -d "$ac_dir" ||
1295 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1296 continue
1297 ac_builddir=.
1298
1299 case "$ac_dir" in
1300 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1301 *)
1302 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1303 # A ".." for each directory in $ac_dir_suffix.
1304 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1305 case $ac_top_builddir_sub in
1306 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1307 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1308 esac ;;
1309 esac
1310 ac_abs_top_builddir=$ac_pwd
1311 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1312 # for backward compatibility:
1313 ac_top_builddir=$ac_top_build_prefix
1314
1315 case $srcdir in
1316 .) # We are building in place.
1317 ac_srcdir=.
1318 ac_top_srcdir=$ac_top_builddir_sub
1319 ac_abs_top_srcdir=$ac_pwd ;;
1320 [\\/]* | ?:[\\/]* ) # Absolute name.
1321 ac_srcdir=$srcdir$ac_dir_suffix;
1322 ac_top_srcdir=$srcdir
1323 ac_abs_top_srcdir=$srcdir ;;
1324 *) # Relative name.
1325 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1326 ac_top_srcdir=$ac_top_build_prefix$srcdir
1327 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1328 esac
1329 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1330
1331 cd "$ac_dir" || { ac_status=$?; continue; }
1332 # Check for configure.gnu first; this name is used for a wrapper for
1333 # Metaconfig's "Configure" on case-insensitive file systems.
1334 if test -f "$ac_srcdir/configure.gnu"; then
1335 echo &&
1336 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1337 elif test -f "$ac_srcdir/configure"; then
1338 echo &&
1339 $SHELL "$ac_srcdir/configure" --help=recursive
1340 else
1341 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1342 fi || ac_status=$?
1343 cd "$ac_pwd" || { ac_status=$?; break; }
1344 done
1345 fi
1346
1347 test -n "$ac_init_help" && exit $ac_status
1348 if $ac_init_version; then
1349 cat <<\_ACEOF
1350 configure
1351 generated by GNU Autoconf 2.71
1352
1353 Copyright (C) 2021 Free Software Foundation, Inc.
1354 This configure script is free software; the Free Software Foundation
1355 gives unlimited permission to copy, distribute and modify it.
1356 _ACEOF
1357 exit
1358 fi
1359
1360 ## ------------------------ ##
1361 ## Autoconf initialization. ##
1362 ## ------------------------ ##
1363 ac_configure_args_raw=
1364 for ac_arg
1365 do
1366 case $ac_arg in
1367 *\'*)
1368 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1369 esac
1370 as_fn_append ac_configure_args_raw " '$ac_arg'"
1371 done
1372
1373 case $ac_configure_args_raw in
1374 *$as_nl*)
1375 ac_safe_unquote= ;;
1376 *)
1377 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1378 ac_unsafe_a="$ac_unsafe_z#~"
1379 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1380 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1381 esac
1382
1383 cat >config.log <<_ACEOF
1384 This file contains any messages produced by compilers while
1385 running configure, to aid debugging if configure makes a mistake.
1386
1387 It was created by $as_me, which was
1388 generated by GNU Autoconf 2.71. Invocation command line was
1389
1390 $ $0$ac_configure_args_raw
1391
1392 _ACEOF
1393 exec 5>>config.log
1394 {
1395 cat <<_ASUNAME
1396 ## --------- ##
1397 ## Platform. ##
1398 ## --------- ##
1399
1400 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1401 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1402 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1403 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1404 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1405
1406 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1407 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1408
1409 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1410 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1411 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1412 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1413 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1414 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1415 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1416
1417 _ASUNAME
1418
1419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1420 for as_dir in $PATH
1421 do
1422 IFS=$as_save_IFS
1423 case $as_dir in #(((
1424 '') as_dir=./ ;;
1425 */) ;;
1426 *) as_dir=$as_dir/ ;;
1427 esac
1428 printf "%s\n" "PATH: $as_dir"
1429 done
1430 IFS=$as_save_IFS
1431
1432 } >&5
1433
1434 cat >&5 <<_ACEOF
1435
1436
1437 ## ----------- ##
1438 ## Core tests. ##
1439 ## ----------- ##
1440
1441 _ACEOF
1442
1443
1444 # Keep a trace of the command line.
1445 # Strip out --no-create and --no-recursion so they do not pile up.
1446 # Strip out --silent because we don't want to record it for future runs.
1447 # Also quote any args containing shell meta-characters.
1448 # Make two passes to allow for proper duplicate-argument suppression.
1449 ac_configure_args=
1450 ac_configure_args0=
1451 ac_configure_args1=
1452 ac_must_keep_next=false
1453 for ac_pass in 1 2
1454 do
1455 for ac_arg
1456 do
1457 case $ac_arg in
1458 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1459 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1460 | -silent | --silent | --silen | --sile | --sil)
1461 continue ;;
1462 *\'*)
1463 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1464 esac
1465 case $ac_pass in
1466 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1467 2)
1468 as_fn_append ac_configure_args1 " '$ac_arg'"
1469 if test $ac_must_keep_next = true; then
1470 ac_must_keep_next=false # Got value, back to normal.
1471 else
1472 case $ac_arg in
1473 *=* | --config-cache | -C | -disable-* | --disable-* \
1474 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1475 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1476 | -with-* | --with-* | -without-* | --without-* | --x)
1477 case "$ac_configure_args0 " in
1478 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1479 esac
1480 ;;
1481 -* ) ac_must_keep_next=true ;;
1482 esac
1483 fi
1484 as_fn_append ac_configure_args " '$ac_arg'"
1485 ;;
1486 esac
1487 done
1488 done
1489 { ac_configure_args0=; unset ac_configure_args0;}
1490 { ac_configure_args1=; unset ac_configure_args1;}
1491
1492 # When interrupted or exit'd, cleanup temporary files, and complete
1493 # config.log. We remove comments because anyway the quotes in there
1494 # would cause problems or look ugly.
1495 # WARNING: Use '\'' to represent an apostrophe within the trap.
1496 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1497 trap 'exit_status=$?
1498 # Sanitize IFS.
1499 IFS=" "" $as_nl"
1500 # Save into config.log some information that might help in debugging.
1501 {
1502 echo
1503
1504 printf "%s\n" "## ---------------- ##
1505 ## Cache variables. ##
1506 ## ---------------- ##"
1507 echo
1508 # The following way of writing the cache mishandles newlines in values,
1509 (
1510 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1511 eval ac_val=\$$ac_var
1512 case $ac_val in #(
1513 *${as_nl}*)
1514 case $ac_var in #(
1515 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1516 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1517 esac
1518 case $ac_var in #(
1519 _ | IFS | as_nl) ;; #(
1520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1521 *) { eval $ac_var=; unset $ac_var;} ;;
1522 esac ;;
1523 esac
1524 done
1525 (set) 2>&1 |
1526 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1527 *${as_nl}ac_space=\ *)
1528 sed -n \
1529 "s/'\''/'\''\\\\'\'''\''/g;
1530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1531 ;; #(
1532 *)
1533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1534 ;;
1535 esac |
1536 sort
1537 )
1538 echo
1539
1540 printf "%s\n" "## ----------------- ##
1541 ## Output variables. ##
1542 ## ----------------- ##"
1543 echo
1544 for ac_var in $ac_subst_vars
1545 do
1546 eval ac_val=\$$ac_var
1547 case $ac_val in
1548 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1549 esac
1550 printf "%s\n" "$ac_var='\''$ac_val'\''"
1551 done | sort
1552 echo
1553
1554 if test -n "$ac_subst_files"; then
1555 printf "%s\n" "## ------------------- ##
1556 ## File substitutions. ##
1557 ## ------------------- ##"
1558 echo
1559 for ac_var in $ac_subst_files
1560 do
1561 eval ac_val=\$$ac_var
1562 case $ac_val in
1563 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1564 esac
1565 printf "%s\n" "$ac_var='\''$ac_val'\''"
1566 done | sort
1567 echo
1568 fi
1569
1570 if test -s confdefs.h; then
1571 printf "%s\n" "## ----------- ##
1572 ## confdefs.h. ##
1573 ## ----------- ##"
1574 echo
1575 cat confdefs.h
1576 echo
1577 fi
1578 test "$ac_signal" != 0 &&
1579 printf "%s\n" "$as_me: caught signal $ac_signal"
1580 printf "%s\n" "$as_me: exit $exit_status"
1581 } >&5
1582 rm -f core *.core core.conftest.* &&
1583 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1584 exit $exit_status
1585 ' 0
1586 for ac_signal in 1 2 13 15; do
1587 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1588 done
1589 ac_signal=0
1590
1591 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1592 rm -f -r conftest* confdefs.h
1593
1594 printf "%s\n" "/* confdefs.h */" > confdefs.h
1595
1596 # Predefined preprocessor variables.
1597
1598 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1599
1600 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1601
1602 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1603
1604 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1605
1606 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1607
1608 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1609
1610
1611 # Let the site file select an alternate cache file if it wants to.
1612 # Prefer an explicitly selected file to automatically selected ones.
1613 if test -n "$CONFIG_SITE"; then
1614 ac_site_files="$CONFIG_SITE"
1615 elif test "x$prefix" != xNONE; then
1616 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1617 else
1618 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1619 fi
1620
1621 for ac_site_file in $ac_site_files
1622 do
1623 case $ac_site_file in #(
1624 */*) :
1625 ;; #(
1626 *) :
1627 ac_site_file=./$ac_site_file ;;
1628 esac
1629 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1631 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1632 sed 's/^/| /' "$ac_site_file" >&5
1633 . "$ac_site_file" \
1634 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1635 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1636 as_fn_error $? "failed to load site script $ac_site_file
1637 See \`config.log' for more details" "$LINENO" 5; }
1638 fi
1639 done
1640
1641 if test -r "$cache_file"; then
1642 # Some versions of bash will fail to source /dev/null (special files
1643 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1644 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1646 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
1647 case $cache_file in
1648 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1649 *) . "./$cache_file";;
1650 esac
1651 fi
1652 else
1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1654 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
1655 >$cache_file
1656 fi
1657
1658 # Check that the precious variables saved in the cache have kept the same
1659 # value.
1660 ac_cache_corrupted=false
1661 for ac_var in $ac_precious_vars; do
1662 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1663 eval ac_new_set=\$ac_env_${ac_var}_set
1664 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1665 eval ac_new_val=\$ac_env_${ac_var}_value
1666 case $ac_old_set,$ac_new_set in
1667 set,)
1668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1669 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1670 ac_cache_corrupted=: ;;
1671 ,set)
1672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1673 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1674 ac_cache_corrupted=: ;;
1675 ,);;
1676 *)
1677 if test "x$ac_old_val" != "x$ac_new_val"; then
1678 # differences in whitespace do not lead to failure.
1679 ac_old_val_w=`echo x $ac_old_val`
1680 ac_new_val_w=`echo x $ac_new_val`
1681 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1683 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1684 ac_cache_corrupted=:
1685 else
1686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1687 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1688 eval $ac_var=\$ac_old_val
1689 fi
1690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1691 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
1692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1693 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
1694 fi;;
1695 esac
1696 # Pass precious variables to config.status.
1697 if test "$ac_new_set" = set; then
1698 case $ac_new_val in
1699 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1700 *) ac_arg=$ac_var=$ac_new_val ;;
1701 esac
1702 case " $ac_configure_args " in
1703 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1704 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1705 esac
1706 fi
1707 done
1708 if $ac_cache_corrupted; then
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1710 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1712 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
1713 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
1714 and start over" "$LINENO" 5
1715 fi
1716 ## -------------------- ##
1717 ## Main body of script. ##
1718 ## -------------------- ##
1719
1720 ac_ext=c
1721 ac_cpp='$CPP $CPPFLAGS'
1722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1725
1726
1727 KNOWN_PLUGINS=$(frama-c -plugins | \
1728 sed -e '/\[kernel\]/d' -e 's/\([^ ][^ ]*\( [^ ][^ ]*\)*\) .*/\1/' \
1729 -e '/^ /d' -e '/^$/d' | \
1730 tr "a-z- " "A-Z__")
1731 for plugin in ${KNOWN_PLUGINS}; do
1732 export $(echo ENABLE_$plugin)=yes
1733 done
1734
1735 FRAMAC_VERSION=`frama-c -version`
1736
1737 # Extract the first word of "frama-c-gui", so it can be a program name with args.
1738 set dummy frama-c-gui; ac_word=$2
1739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1740 printf %s "checking for $ac_word... " >&6; }
1741 if test ${ac_cv_prog_ENABLE_GUI+y}
1742 then :
1743 printf %s "(cached) " >&6
1744 else $as_nop
1745 if test -n "$ENABLE_GUI"; then
1746 ac_cv_prog_ENABLE_GUI="$ENABLE_GUI" # Let the user override the test.
1747 else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 for as_dir in $PATH
1750 do
1751 IFS=$as_save_IFS
1752 case $as_dir in #(((
1753 '') as_dir=./ ;;
1754 */) ;;
1755 *) as_dir=$as_dir/ ;;
1756 esac
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_ENABLE_GUI="yes"
1760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1761 break 2
1762 fi
1763 done
1764 done
1765 IFS=$as_save_IFS
1766
1767 test -z "$ac_cv_prog_ENABLE_GUI" && ac_cv_prog_ENABLE_GUI="no"
1768 fi
1769 fi
1770 ENABLE_GUI=$ac_cv_prog_ENABLE_GUI
1771 if test -n "$ENABLE_GUI"; then
1772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENABLE_GUI" >&5
1773 printf "%s\n" "$ENABLE_GUI" >&6; }
1774 else
1775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
1776 printf "%s\n" "no" >&6; }
1777 fi
1778
1779
1780
1781
1782
1783
1784 upper() {
1785 echo "$1" | tr "a-z-" "A-Z_"
1786 }
1787
1788 lower() {
1789 echo "$1" | tr "A-Z" "a-z"
1790 }
1791
1792
1793
1794 new_section() {
1795 banner=`echo "* $1 *" | sed -e 's/./*/g'`
1796 title=`echo "* $1 *" | tr "a-z" "A-Z"`
1797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $banner" >&5
1798 printf "%s\n" "$as_me: $banner" >&6;}
1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $title" >&5
1800 printf "%s\n" "$as_me: $title" >&6;}
1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $banner" >&5
1802 printf "%s\n" "$as_me: $banner" >&6;}
1803 }
1804
1805
1806
1807 # sadly, there's no way to define a new diversion beside the internal ones.
1808 # hoping for the best here...
1809
1810
1811
1812
1813 # to distinguish internal plugins, known by the main configure, from
1814 # purely external plugins living in src/ and compiled together with the main
1815 # frama-c
1816
1817
1818
1819 # end of check_plugin
1820
1821 # 1st param: uppercase name of the library
1822 # 2nd param: file which must exist. This parameter can be a list of files.
1823 # In this case, they will be tried in turn until one of them exists. The
1824 # name of the file found will be put in the variable SELECTED_$1
1825 # 3d param: warning to display if problem
1826 # 4th param: yes iff checking the library must always to be done
1827 # (even if there is no plug-in using it)
1828
1829
1830 # 1st param: actual name of the ocamlfind package (often lowercase)
1831 # 2nd param: warning to display if problem
1832
1833
1834 # 1st param: uppercase name of the program
1835 # 2nd param: program which must exist. See comment on configure_library()
1836 # on how to deal with multiple choices for a given program.
1837 # 3d param: warning to display if problem
1838 # 4th param: yes iff checking the tool must always to be done
1839 # (even if there is no plug-in using it)
1840
1841
1842
1843 EXTERNAL_PLUGINS=
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857 # Usage: plugin_disable([plugin],[reason])
1858
1859
1860
1861
1862
1863 # Implementation of an ordering $1 < $2: "" < yes < partial < no
1864 lt_mark () {
1865 first=`echo "$1" | sed -e 's/ .*//' `
1866 second=`echo "$2" | sed -e 's/ .*//' `
1867 case $first in
1868 "") echo "true";;
1869 "yes"*)
1870 case $second in
1871 "yes") echo "";;
1872 "partial" | "no") echo "true";;
1873 esac;;
1874 "partial"*)
1875 case $second in
1876 "yes" | "partial") echo "";;
1877 "no") echo "true";;
1878 esac;;
1879 "no"*) echo "";;
1880 esac
1881 }
1882
1883 # Check and propagate marks to requires and users.
1884 # $1: parent plugin
1885 # $2: mark to propagate to requires
1886 # $3: mark to propagate to users
1887 check_and_propagate () {
1888 # for each requires
1889 r=REQUIRE_$1
1890 eval require="\$$r"
1891 for p in $require; do
1892 up=`upper "$p"`
1893 m=MARK_"$up"
1894 eval mark="\$$m"
1895 if test -z "$mark"; then
1896 m=ENABLE_"$up"
1897 eval mark="\$$m"
1898 fi
1899 if test `lt_mark "$mark" "$2" `; then
1900 # update marks
1901 eval MARK_$up=\"$2\";
1902 TODOLIST=$TODOLIST" "$p
1903 # display a warning or an error if required
1904 short_mark=`echo $2 | sed -e 's/ .*//'`
1905 lp=`lower $p`
1906 reason=`echo $2 | sed -e 's/no (\(.*\))/\1/' `
1907 if test "$short_mark" = "no"; then
1908 fp=FORCE_"$up"
1909 if eval test "\$$fp" = "yes"; then
1910 as_fn_error $? "$lp requested but $reason." "$LINENO" 5
1911 else
1912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $lp disabled because $reason." >&5
1913 printf "%s\n" "$as_me: WARNING: $lp disabled because $reason." >&2;}
1914 fi
1915 else
1916 if test "$short_mark" = "partial"; then
1917 reason=`echo $2 | sed -e 's/partial (\(.*\))/\1/' `
1918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $lp only partially enable because $reason." >&5
1919 printf "%s\n" "$as_me: WARNING: $lp only partially enable because $reason." >&2;}
1920 fi
1921 fi
1922 eval INFO_$up=\", $reason\"
1923 fi
1924 done
1925 # for each users
1926 u=USE_$1
1927 eval use="\$$u"
1928 for p in $use; do
1929 up=`upper "$p"`
1930 m=MARK_$up
1931 eval mark="\$$m"
1932 if test -z "$mark"; then
1933 m=ENABLE_"$up"
1934 eval mark="\$$m"
1935 fi
1936 if test `lt_mark "$mark" "$3" `; then
1937 # update marks
1938 eval MARK_$up=\"$3\";
1939 TODOLIST=$TODOLIST" "$p
1940 # display a warning if required
1941 lp=`lower $p`
1942 reason=`echo $3 | sed -e 's/partial (\(.*\))/\1/' `
1943 if test "$reason" != "$3"; then
1944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $lp only partially enabled because $reason." >&5
1945 printf "%s\n" "$as_me: WARNING: $lp only partially enabled because $reason." >&2;}
1946 fi
1947 eval INFO_$up=\", $reason\"
1948 fi
1949 done
1950 }
1951
1952 # checks direct dependencies of a plugin. Useful for dynamic plugins which
1953 # have a dependency toward already installed (or not) plug-ins, since the old
1954 # plugins are not in the TODO list from the beginning (and need not their
1955 # mutual dependencies be rechecked anyway
1956 check_required_used () {
1957 ep=ENABLE_$1
1958 eval enabled=\$$ep
1959
1960 if test "$enabled" != "no"; then
1961
1962 r=REQUIRED_$1
1963 u=USED_$1
1964 m=MARK_$1
1965 eval required=\$$r
1966 eval used=\$$u
1967 eval $m=yes
1968
1969 reason=
1970
1971 for p in $required; do
1972 up=`upper $p`
1973 ec=ENABLE_$up
1974 eval enabled=\$$ec
1975 case `echo "$enabled" | sed -e 's/ .*//'` in
1976 "") reason="$p unknown";;
1977 "yes" | "partial");;
1978 "no") reason="$p not enabled";;
1979 esac
1980 done
1981 if test -n "$reason"; then
1982 eval $m=\"no\ \($reason\)\"
1983 p_name=`lower $1`
1984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p_name disabled because $reason." >&5
1985 printf "%s\n" "$as_me: WARNING: $p_name disabled because $reason." >&2;}
1986 eval INFO_$1=\", $reason\"
1987 else
1988 for p in $used; do
1989 up=`upper $p`
1990 ec=ENABLE_$up
1991 eval enabled=\$$ec
1992 case `echo "$enabled" | sed -e 's/ .*//'` in
1993 "") reason="$p unknown";;
1994 "yes" | "partial");;
1995 "no") reason="$p not enabled";;
1996 esac
1997 done
1998 if test -n "$reason"; then
1999 eval $m=\"partial\ \($reason\)\"
2000 p_name=`lower $1`
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $p_name partially enabled because $reason." >&5
2002 printf "%s\n" "$as_me: WARNING: $p_name partially enabled because $reason." >&2;}
2003 eval INFO_$1=\", $reason\"
2004 fi
2005 fi
2006
2007 else # $enabled = "no"
2008 eval $m=\"no\"
2009 fi
2010 }
2011
2012 # Recursively check the plug-in dependencies using the plug-in dependency graph
2013 compute_dependency () {
2014 plugin=`echo $TODOLIST | sed -e 's/ .*//' `
2015 TODOLIST=`echo $TODOLIST | sed -e 's/[^ ]* *\(.*\)/\1/' `
2016
2017 lplugin=`lower "$plugin"`
2018 uplugin=`upper "$plugin"`
2019 # new mark to consider
2020 m=MARK_$uplugin
2021 eval mark="\$$m"
2022 # old mark to consider
2023 r=REMEMBER_$uplugin
2024 eval remember="\$$r"
2025 # the exact mark (final result),
2026 # also the old mark if plugin already visited
2027 e=ENABLE_$uplugin
2028 eval enable="\$$e"
2029 #first visit. Performs additional checks over requirements.
2030 if test -z "$mark"; then
2031 check_required_used "$uplugin";
2032 eval mark=\$$m
2033 fi
2034
2035 # echo "plug-in $lplugin (mark=$mark, remember=$remember, enable=$enable)"
2036 if test `lt_mark "$remember" "$mark"`; then
2037 # visit the current plugin:
2038 # mark <- max(mark, enable)
2039 case `echo "$mark" | sed -e 's/ .*//' ` in
2040 "") echo "problem?"; exit 3;;
2041 "yes")
2042 if test -n "$enable"; then mark="$enable"; else mark="yes"; fi;;
2043 "partial") if test "$enable" = "no"; then mark="no"; fi;;
2044 "no") ;;
2045 esac
2046 # update plug-in attributes with the new mark
2047 # echo "update attributes with $mark"
2048 eval $m=\"$mark\"
2049 eval $e=\"`echo "$mark" | sed -e 's/ .*//' `\"
2050 enable="$mark"
2051 eval $r=\"$mark\"
2052 # compute and propagate a new mark to requires and users
2053 case `echo "$enable" | sed -e 's/ .*//' ` in
2054 "") echo "problem?"; exit 3;;
2055 "yes") check_and_propagate $uplugin "yes" "yes";;
2056 "partial")
2057 # if a plug-in is partial, does not consider its dependencies as partial
2058 # so the second argument is "yes" and not "partial"
2059 check_and_propagate \
2060 "$uplugin" \
2061 "yes" \
2062 "yes";;
2063 "no")
2064 check_and_propagate \
2065 "$uplugin" \
2066 "no ($lplugin not enabled)" \
2067 "partial ($lplugin not enabled)";;
2068 esac
2069 fi
2070 # recursively consider the next plugins
2071 if test -n "$TODOLIST"; then
2072 compute_dependency;
2073 fi
2074 }
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Makefile.in" >&5
2094 printf %s "checking for Makefile.in... " >&6; }
2095 if test ${ac_cv_file_Makefile_in+y}
2096 then :
2097 printf %s "(cached) " >&6
2098 else $as_nop
2099 test "$cross_compiling" = yes &&
2100 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
2101 if test -r "Makefile.in"; then
2102 ac_cv_file_Makefile_in=yes
2103 else
2104 ac_cv_file_Makefile_in=no
2105 fi
2106 fi
2107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_Makefile_in" >&5
2108 printf "%s\n" "$ac_cv_file_Makefile_in" >&6; }
2109 if test "x$ac_cv_file_Makefile_in" = xyes
2110 then :
2111 default=yes;plugin_present=yes
2112 else $as_nop
2113 plugin_present=no;default=no
2114 fi
2115
2116
2117 FORCE=no
2118
2119 # Check whether --enable-dive was given.
2120 if test ${enable_dive+y}
2121 then :
2122 enableval=$enable_dive; ENABLE=$enableval;FORCE=$enableval
2123 else $as_nop
2124 ENABLE=$default
2125
2126 fi
2127
2128
2129 if test "$ONLY_KERNEL" = "yes" -a "$FORCE" = "no"; then
2130 ENABLE=no
2131 fi
2132
2133
2134
2135 if test "$plugin_present" = "no" -a "$FORCE" = "yes"; then
2136 as_fn_error $? "dive is not available" "$LINENO" 5
2137 fi
2138
2139 FORCE_DIVE=$FORCE
2140 PLUGINS_FORCE_LIST=${PLUGINS_FORCE_LIST}" "FORCE_DIVE
2141
2142 ENABLE_DIVE=$ENABLE
2143 NAME_DIVE=dive
2144 if test "$default" = "no" -a "$FORCE" = "no"; then
2145 INFO_DIVE=" (not available by default)"
2146 fi
2147
2148
2149 echo "dive... $ENABLE"
2150 # kept defined for write_plugin_config. A bit ugly, but not more than
2151 # usual autoconf stuff.
2152 # m4_undefine([PLUGIN_NAME])
2153
2154
2155
2156
2157
2158
2159
2160 # Plug-in dependencies
2161 ######################
2162
2163
2164
2165
2166
2167 REQUIRE_EVA=$REQUIRE_EVA" "dive
2168 REQUIRED_DIVE=$REQUIRED_DIVE" "eva
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178 REQUIRE_STUDIA=$REQUIRE_STUDIA" "dive
2179 REQUIRED_DIVE=$REQUIRED_DIVE" "studia
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189 REQUIRE_SERVER=$REQUIRE_SERVER" "dive
2190 REQUIRED_DIVE=$REQUIRED_DIVE" "server
2191
2192
2193
2194
2195
2196 #plugin_use(dive,usable_plugin_but_not_mandatory)
2197
2198
2199
2200 # First, initialize some variables
2201 for fp in ${PLUGINS_FORCE_LIST}; do
2202 if test "$fp" != "FORCE_GTKSOURCEVIEW"; then
2203 plugin=`echo $fp | sed -e "s/FORCE_\(.*\)/\1/" `
2204 TODOLIST=$TODOLIST" "$plugin
2205 eval MARK_$plugin=
2206 eval REMEMBER_$plugin=
2207 fi
2208 done
2209 # main call
2210 compute_dependency
2211
2212
2213 #######################
2214 # Generating Makefile #
2215 #######################
2216
2217
2218
2219
2220 ac_config_files="$ac_config_files ./Makefile"
2221
2222
2223
2224
2225 # Compute INFO_* and exported ENABLE_* from previously computed ENABLE_*
2226 for fp in ${PLUGINS_FORCE_LIST}; do
2227 if test "$fp" != "FORCE_GTKSOURCEVIEW"; then
2228 plugin=`echo $fp | sed -e "s/FORCE_\(.*\)/\1/" `
2229 ep=ENABLE_$plugin
2230 eval v=\$$ep
2231 eval ep_v=`echo $v | sed -e 's/ .*//' `
2232 eval ENABLE_$plugin=$ep_v
2233 reason=`echo $v | sed -e 's/[a-z]*\( .*\)/\1/' `
2234 n=NAME_$plugin
2235 eval name=\$$n
2236 info=
2237 if test "$reason" != "$ep_v"; then
2238 info=$reason
2239 fi
2240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $name: $ep_v$info" >&5
2241 printf "%s\n" "$as_me: $name: $ep_v$info" >&6;}
2242 fi
2243 done
2244 cat >confcache <<\_ACEOF
2245 # This file is a shell script that caches the results of configure
2246 # tests run on this system so they can be shared between configure
2247 # scripts and configure runs, see configure's option --config-cache.
2248 # It is not useful on other systems. If it contains results you don't
2249 # want to keep, you may remove or edit it.
2250 #
2251 # config.status only pays attention to the cache file if you give it
2252 # the --recheck option to rerun configure.
2253 #
2254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2256 # following values.
2257
2258 _ACEOF
2259
2260 # The following way of writing the cache mishandles newlines in values,
2261 # but we know of no workaround that is simple, portable, and efficient.
2262 # So, we kill variables containing newlines.
2263 # Ultrix sh set writes to stderr and can't be redirected directly,
2264 # and sets the high bit in the cache file unless we assign to the vars.
2265 (
2266 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
2267 eval ac_val=\$$ac_var
2268 case $ac_val in #(
2269 *${as_nl}*)
2270 case $ac_var in #(
2271 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2272 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2273 esac
2274 case $ac_var in #(
2275 _ | IFS | as_nl) ;; #(
2276 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2277 *) { eval $ac_var=; unset $ac_var;} ;;
2278 esac ;;
2279 esac
2280 done
2281
2282 (set) 2>&1 |
2283 case $as_nl`(ac_space=' '; set) 2>&1` in #(
2284 *${as_nl}ac_space=\ *)
2285 # `set' does not quote correctly, so add quotes: double-quote
2286 # substitution turns \\\\ into \\, and sed turns \\ into \.
2287 sed -n \
2288 "s/'/'\\\\''/g;
2289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2290 ;; #(
2291 *)
2292 # `set' quotes correctly as required by POSIX, so do not add quotes.
2293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2294 ;;
2295 esac |
2296 sort
2297 ) |
2298 sed '
2299 /^ac_cv_env_/b end
2300 t clear
2301 :clear
2302 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
2303 t end
2304 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2305 :end' >>confcache
2306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
2307 if test -w "$cache_file"; then
2308 if test "x$cache_file" != "x/dev/null"; then
2309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
2310 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
2311 if test ! -f "$cache_file" || test -h "$cache_file"; then
2312 cat confcache >"$cache_file"
2313 else
2314 case $cache_file in #(
2315 */* | ?:*)
2316 mv -f confcache "$cache_file"$$ &&
2317 mv -f "$cache_file"$$ "$cache_file" ;; #(
2318 *)
2319 mv -f confcache "$cache_file" ;;
2320 esac
2321 fi
2322 fi
2323 else
2324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
2325 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
2326 fi
2327 fi
2328 rm -f confcache
2329
2330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2331 # Let make expand exec_prefix.
2332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2333
2334 # Transform confdefs.h into DEFS.
2335 # Protect against shell expansion while executing Makefile rules.
2336 # Protect against Makefile macro expansion.
2337 #
2338 # If the first sed substitution is executed (which looks for macros that
2339 # take arguments), then branch to the quote section. Otherwise,
2340 # look for a macro that doesn't take arguments.
2341 ac_script='
2342 :mline
2343 /\\$/{
2344 N
2345 s,\\\n,,
2346 b mline
2347 }
2348 t clear
2349 :clear
2350 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
2351 t quote
2352 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
2353 t quote
2354 b any
2355 :quote
2356 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
2357 s/\[/\\&/g
2358 s/\]/\\&/g
2359 s/\$/$$/g
2360 H
2361 :any
2362 ${
2363 g
2364 s/^\n//
2365 s/\n/ /g
2366 p
2367 }
2368 '
2369 DEFS=`sed -n "$ac_script" confdefs.h`
2370
2371
2372 ac_libobjs=
2373 ac_ltlibobjs=
2374 U=
2375 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2376 # 1. Remove the extension, and $U if already installed.
2377 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
2378 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
2379 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
2380 # will be set to the directory where LIBOBJS objects are built.
2381 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
2382 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
2383 done
2384 LIBOBJS=$ac_libobjs
2385
2386 LTLIBOBJS=$ac_ltlibobjs
2387
2388
2389
2390 : "${CONFIG_STATUS=./config.status}"
2391 ac_write_fail=0
2392 ac_clean_files_save=$ac_clean_files
2393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
2395 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
2396 as_write_fail=0
2397 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
2398 #! $SHELL
2399 # Generated by $as_me.
2400 # Run this file to recreate the current configuration.
2401 # Compiler output produced by configure, useful for debugging
2402 # configure, is in config.log if it exists.
2403
2404 debug=false
2405 ac_cs_recheck=false
2406 ac_cs_silent=false
2407
2408 SHELL=\${CONFIG_SHELL-$SHELL}
2409 export SHELL
2410 _ASEOF
2411 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
2412 ## -------------------- ##
2413 ## M4sh Initialization. ##
2414 ## -------------------- ##
2415
2416 # Be more Bourne compatible
2417 DUALCASE=1; export DUALCASE # for MKS sh
2418 as_nop=:
2419 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
2420 then :
2421 emulate sh
2422 NULLCMD=:
2423 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2424 # is contrary to our usage. Disable this feature.
2425 alias -g '${1+"$@"}'='"$@"'
2426 setopt NO_GLOB_SUBST
2427 else $as_nop
2428 case `(set -o) 2>/dev/null` in #(
2429 *posix*) :
2430 set -o posix ;; #(
2431 *) :
2432 ;;
2433 esac
2434 fi
2435
2436
2437
2438 # Reset variables that may have inherited troublesome values from
2439 # the environment.
2440
2441 # IFS needs to be set, to space, tab, and newline, in precisely that order.
2442 # (If _AS_PATH_WALK were called with IFS unset, it would have the
2443 # side effect of setting IFS to empty, thus disabling word splitting.)
2444 # Quoting is to prevent editors from complaining about space-tab.
2445 as_nl='
2446 '
2447 export as_nl
2448 IFS=" "" $as_nl"
2449
2450 PS1='$ '
2451 PS2='> '
2452 PS4='+ '
2453
2454 # Ensure predictable behavior from utilities with locale-dependent output.
2455 LC_ALL=C
2456 export LC_ALL
2457 LANGUAGE=C
2458 export LANGUAGE
2459
2460 # We cannot yet rely on "unset" to work, but we need these variables
2461 # to be unset--not just set to an empty or harmless value--now, to
2462 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
2463 # also avoids known problems related to "unset" and subshell syntax
2464 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
2465 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
2466 do eval test \${$as_var+y} \
2467 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
2468 done
2469
2470 # Ensure that fds 0, 1, and 2 are open.
2471 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
2472 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
2473 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
2474
2475 # The user is always right.
2476 if ${PATH_SEPARATOR+false} :; then
2477 PATH_SEPARATOR=:
2478 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
2479 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
2480 PATH_SEPARATOR=';'
2481 }
2482 fi
2483
2484
2485 # Find who we are. Look in the path if we contain no directory separator.
2486 as_myself=
2487 case $0 in #((
2488 *[\\/]* ) as_myself=$0 ;;
2489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492 IFS=$as_save_IFS
2493 case $as_dir in #(((
2494 '') as_dir=./ ;;
2495 */) ;;
2496 *) as_dir=$as_dir/ ;;
2497 esac
2498 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
2499 done
2500 IFS=$as_save_IFS
2501
2502 ;;
2503 esac
2504 # We did not find ourselves, most probably we were run as `sh COMMAND'
2505 # in which case we are not to be found in the path.
2506 if test "x$as_myself" = x; then
2507 as_myself=$0
2508 fi
2509 if test ! -f "$as_myself"; then
2510 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
2511 exit 1
2512 fi
2513
2514
2515
2516 # as_fn_error STATUS ERROR [LINENO LOG_FD]
2517 # ----------------------------------------
2518 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
2519 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
2520 # script with STATUS, using 1 if that was 0.
2521 as_fn_error ()
2522 {
2523 as_status=$1; test $as_status -eq 0 && as_status=1
2524 if test "$4"; then
2525 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
2527 fi
2528 printf "%s\n" "$as_me: error: $2" >&2
2529 as_fn_exit $as_status
2530 } # as_fn_error
2531
2532
2533
2534 # as_fn_set_status STATUS
2535 # -----------------------
2536 # Set $? to STATUS, without forking.
2537 as_fn_set_status ()
2538 {
2539 return $1
2540 } # as_fn_set_status
2541
2542 # as_fn_exit STATUS
2543 # -----------------
2544 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
2545 as_fn_exit ()
2546 {
2547 set +e
2548 as_fn_set_status $1
2549 exit $1
2550 } # as_fn_exit
2551
2552 # as_fn_unset VAR
2553 # ---------------
2554 # Portably unset VAR.
2555 as_fn_unset ()
2556 {
2557 { eval $1=; unset $1;}
2558 }
2559 as_unset=as_fn_unset
2560
2561 # as_fn_append VAR VALUE
2562 # ----------------------
2563 # Append the text in VALUE to the end of the definition contained in VAR. Take
2564 # advantage of any shell optimizations that allow amortized linear growth over
2565 # repeated appends, instead of the typical quadratic growth present in naive
2566 # implementations.
2567 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
2568 then :
2569 eval 'as_fn_append ()
2570 {
2571 eval $1+=\$2
2572 }'
2573 else $as_nop
2574 as_fn_append ()
2575 {
2576 eval $1=\$$1\$2
2577 }
2578 fi # as_fn_append
2579
2580 # as_fn_arith ARG...
2581 # ------------------
2582 # Perform arithmetic evaluation on the ARGs, and store the result in the
2583 # global $as_val. Take advantage of shells that can avoid forks. The arguments
2584 # must be portable across $(()) and expr.
2585 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
2586 then :
2587 eval 'as_fn_arith ()
2588 {
2589 as_val=$(( $* ))
2590 }'
2591 else $as_nop
2592 as_fn_arith ()
2593 {
2594 as_val=`expr "$@" || test $? -eq 1`
2595 }
2596 fi # as_fn_arith
2597
2598
2599 if expr a : '\(a\)' >/dev/null 2>&1 &&
2600 test "X`expr 00001 : '.*\(...\)'`" = X001; then
2601 as_expr=expr
2602 else
2603 as_expr=false
2604 fi
2605
2606 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
2607 as_basename=basename
2608 else
2609 as_basename=false
2610 fi
2611
2612 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
2613 as_dirname=dirname
2614 else
2615 as_dirname=false
2616 fi
2617
2618 as_me=`$as_basename -- "$0" ||
2619 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2620 X"$0" : 'X\(//\)$' \| \
2621 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
2622 printf "%s\n" X/"$0" |
2623 sed '/^.*\/\([^/][^/]*\)\/*$/{
2624 s//\1/
2625 q
2626 }
2627 /^X\/\(\/\/\)$/{
2628 s//\1/
2629 q
2630 }
2631 /^X\/\(\/\).*/{
2632 s//\1/
2633 q
2634 }
2635 s/.*/./; q'`
2636
2637 # Avoid depending upon Character Ranges.
2638 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2639 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2640 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2641 as_cr_digits='0123456789'
2642 as_cr_alnum=$as_cr_Letters$as_cr_digits
2643
2644
2645 # Determine whether it's possible to make 'echo' print without a newline.
2646 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2647 # for compatibility with existing Makefiles.
2648 ECHO_C= ECHO_N= ECHO_T=
2649 case `echo -n x` in #(((((
2650 -n*)
2651 case `echo 'xy\c'` in
2652 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2653 xy) ECHO_C='\c';;
2654 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2655 ECHO_T=' ';;
2656 esac;;
2657 *)
2658 ECHO_N='-n';;
2659 esac
2660
2661 # For backward compatibility with old third-party macros, we provide
2662 # the shell variables $as_echo and $as_echo_n. New code should use
2663 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
2664 as_echo='printf %s\n'
2665 as_echo_n='printf %s'
2666
2667 rm -f conf$$ conf$$.exe conf$$.file
2668 if test -d conf$$.dir; then
2669 rm -f conf$$.dir/conf$$.file
2670 else
2671 rm -f conf$$.dir
2672 mkdir conf$$.dir 2>/dev/null
2673 fi
2674 if (echo >conf$$.file) 2>/dev/null; then
2675 if ln -s conf$$.file conf$$ 2>/dev/null; then
2676 as_ln_s='ln -s'
2677 # ... but there are two gotchas:
2678 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
2679 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
2680 # In both cases, we have to default to `cp -pR'.
2681 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
2682 as_ln_s='cp -pR'
2683 elif ln conf$$.file conf$$ 2>/dev/null; then
2684 as_ln_s=ln
2685 else
2686 as_ln_s='cp -pR'
2687 fi
2688 else
2689 as_ln_s='cp -pR'
2690 fi
2691 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
2692 rmdir conf$$.dir 2>/dev/null
2693
2694
2695 # as_fn_mkdir_p
2696 # -------------
2697 # Create "$as_dir" as a directory, including parents if necessary.
2698 as_fn_mkdir_p ()
2699 {
2700
2701 case $as_dir in #(
2702 -*) as_dir=./$as_dir;;
2703 esac
2704 test -d "$as_dir" || eval $as_mkdir_p || {
2705 as_dirs=
2706 while :; do
2707 case $as_dir in #(
2708 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2709 *) as_qdir=$as_dir;;
2710 esac
2711 as_dirs="'$as_qdir' $as_dirs"
2712 as_dir=`$as_dirname -- "$as_dir" ||
2713 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2714 X"$as_dir" : 'X\(//\)[^/]' \| \
2715 X"$as_dir" : 'X\(//\)$' \| \
2716 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2717 printf "%s\n" X"$as_dir" |
2718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2719 s//\1/
2720 q
2721 }
2722 /^X\(\/\/\)[^/].*/{
2723 s//\1/
2724 q
2725 }
2726 /^X\(\/\/\)$/{
2727 s//\1/
2728 q
2729 }
2730 /^X\(\/\).*/{
2731 s//\1/
2732 q
2733 }
2734 s/.*/./; q'`
2735 test -d "$as_dir" && break
2736 done
2737 test -z "$as_dirs" || eval "mkdir $as_dirs"
2738 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
2739
2740
2741 } # as_fn_mkdir_p
2742 if mkdir -p . 2>/dev/null; then
2743 as_mkdir_p='mkdir -p "$as_dir"'
2744 else
2745 test -d ./-p && rmdir ./-p
2746 as_mkdir_p=false
2747 fi
2748
2749
2750 # as_fn_executable_p FILE
2751 # -----------------------
2752 # Test if FILE is an executable regular file.
2753 as_fn_executable_p ()
2754 {
2755 test -f "$1" && test -x "$1"
2756 } # as_fn_executable_p
2757 as_test_x='test -x'
2758 as_executable_p=as_fn_executable_p
2759
2760 # Sed expression to map a string onto a valid CPP name.
2761 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2762
2763 # Sed expression to map a string onto a valid variable name.
2764 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2765
2766
2767 exec 6>&1
2768 ## ----------------------------------- ##
2769 ## Main body of $CONFIG_STATUS script. ##
2770 ## ----------------------------------- ##
2771 _ASEOF
2772 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
2773
2774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2775 # Save the log message, to keep $0 and so on meaningful, and to
2776 # report actual input values of CONFIG_FILES etc. instead of their
2777 # values after options handling.
2778 ac_log="
2779 This file was extended by $as_me, which was
2780 generated by GNU Autoconf 2.71. Invocation command line was
2781
2782 CONFIG_FILES = $CONFIG_FILES
2783 CONFIG_HEADERS = $CONFIG_HEADERS
2784 CONFIG_LINKS = $CONFIG_LINKS
2785 CONFIG_COMMANDS = $CONFIG_COMMANDS
2786 $ $0 $@
2787
2788 on `(hostname || uname -n) 2>/dev/null | sed 1q`
2789 "
2790
2791 _ACEOF
2792
2793 case $ac_config_files in *"
2794 "*) set x $ac_config_files; shift; ac_config_files=$*;;
2795 esac
2796
2797
2798
2799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2800 # Files that config.status was made for.
2801 config_files="$ac_config_files"
2802
2803 _ACEOF
2804
2805 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2806 ac_cs_usage="\
2807 \`$as_me' instantiates files and other configuration actions
2808 from templates according to the current configuration. Unless the files
2809 and actions are specified as TAGs, all are instantiated by default.
2810
2811 Usage: $0 [OPTION]... [TAG]...
2812
2813 -h, --help print this help, then exit
2814 -V, --version print version number and configuration settings, then exit
2815 --config print configuration, then exit
2816 -q, --quiet, --silent
2817 do not print progress messages
2818 -d, --debug don't remove temporary files
2819 --recheck update $as_me by reconfiguring in the same conditions
2820 --file=FILE[:TEMPLATE]
2821 instantiate the configuration file FILE
2822
2823 Configuration files:
2824 $config_files
2825
2826 Report bugs to the package provider."
2827
2828 _ACEOF
2829 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
2830 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
2831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2832 ac_cs_config='$ac_cs_config_escaped'
2833 ac_cs_version="\\
2834 config.status
2835 configured by $0, generated by GNU Autoconf 2.71,
2836 with options \\"\$ac_cs_config\\"
2837
2838 Copyright (C) 2021 Free Software Foundation, Inc.
2839 This config.status script is free software; the Free Software Foundation
2840 gives unlimited permission to copy, distribute and modify it."
2841
2842 ac_pwd='$ac_pwd'
2843 srcdir='$srcdir'
2844 test -n "\$AWK" || AWK=awk
2845 _ACEOF
2846
2847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2848 # The default lists apply if the user does not specify any file.
2849 ac_need_defaults=:
2850 while test $# != 0
2851 do
2852 case $1 in
2853 --*=?*)
2854 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2855 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
2856 ac_shift=:
2857 ;;
2858 --*=)
2859 ac_option=`expr "X$1" : 'X\([^=]*\)='`
2860 ac_optarg=
2861 ac_shift=:
2862 ;;
2863 *)
2864 ac_option=$1
2865 ac_optarg=$2
2866 ac_shift=shift
2867 ;;
2868 esac
2869
2870 case $ac_option in
2871 # Handling of the options.
2872 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2873 ac_cs_recheck=: ;;
2874 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
2875 printf "%s\n" "$ac_cs_version"; exit ;;
2876 --config | --confi | --conf | --con | --co | --c )
2877 printf "%s\n" "$ac_cs_config"; exit ;;
2878 --debug | --debu | --deb | --de | --d | -d )
2879 debug=: ;;
2880 --file | --fil | --fi | --f )
2881 $ac_shift
2882 case $ac_optarg in
2883 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
2884 '') as_fn_error $? "missing file argument" ;;
2885 esac
2886 as_fn_append CONFIG_FILES " '$ac_optarg'"
2887 ac_need_defaults=false;;
2888 --he | --h | --help | --hel | -h )
2889 printf "%s\n" "$ac_cs_usage"; exit ;;
2890 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2891 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2892 ac_cs_silent=: ;;
2893
2894 # This is an error.
2895 -*) as_fn_error $? "unrecognized option: \`$1'
2896 Try \`$0 --help' for more information." ;;
2897
2898 *) as_fn_append ac_config_targets " $1"
2899 ac_need_defaults=false ;;
2900
2901 esac
2902 shift
2903 done
2904
2905 ac_configure_extra_args=
2906
2907 if $ac_cs_silent; then
2908 exec 6>/dev/null
2909 ac_configure_extra_args="$ac_configure_extra_args --silent"
2910 fi
2911
2912 _ACEOF
2913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2914 if \$ac_cs_recheck; then
2915 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
2916 shift
2917 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
2918 CONFIG_SHELL='$SHELL'
2919 export CONFIG_SHELL
2920 exec "\$@"
2921 fi
2922
2923 _ACEOF
2924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2925 exec 5>>config.log
2926 {
2927 echo
2928 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2929 ## Running $as_me. ##
2930 _ASBOX
2931 printf "%s\n" "$ac_log"
2932 } >&5
2933
2934 _ACEOF
2935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
2936 _ACEOF
2937
2938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
2939
2940 # Handling of arguments.
2941 for ac_config_target in $ac_config_targets
2942 do
2943 case $ac_config_target in
2944 "./Makefile") CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
2945
2946 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
2947 esac
2948 done
2949
2950
2951 # If the user did not use the arguments to specify the items to instantiate,
2952 # then the envvar interface is used. Set only those that are not.
2953 # We use the long form for the default assignment because of an extremely
2954 # bizarre bug on SunOS 4.1.3.
2955 if $ac_need_defaults; then
2956 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
2957 fi
2958
2959 # Have a temporary directory for convenience. Make it in the build tree
2960 # simply because there is no reason against having it here, and in addition,
2961 # creating and moving files from /tmp can sometimes cause problems.
2962 # Hook for its removal unless debugging.
2963 # Note that there is a small window in which the directory will not be cleaned:
2964 # after its creation but before its name has been assigned to `$tmp'.
2965 $debug ||
2966 {
2967 tmp= ac_tmp=
2968 trap 'exit_status=$?
2969 : "${ac_tmp:=$tmp}"
2970 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
2971 ' 0
2972 trap 'as_fn_exit 1' 1 2 13 15
2973 }
2974 # Create a (secure) tmp directory for tmp files.
2975
2976 {
2977 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
2978 test -d "$tmp"
2979 } ||
2980 {
2981 tmp=./conf$$-$RANDOM
2982 (umask 077 && mkdir "$tmp")
2983 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
2984 ac_tmp=$tmp
2985
2986 # Set up the scripts for CONFIG_FILES section.
2987 # No need to generate them if there are no CONFIG_FILES.
2988 # This happens for instance with `./config.status config.h'.
2989 if test -n "$CONFIG_FILES"; then
2990
2991
2992 ac_cr=`echo X | tr X '\015'`
2993 # On cygwin, bash can eat \r inside `` if the user requested igncr.
2994 # But we know of no other shell where ac_cr would be empty at this
2995 # point, so we can use a bashism as a fallback.
2996 if test "x$ac_cr" = x; then
2997 eval ac_cr=\$\'\\r\'
2998 fi
2999 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
3000 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
3001 ac_cs_awk_cr='\\r'
3002 else
3003 ac_cs_awk_cr=$ac_cr
3004 fi
3005
3006 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
3007 _ACEOF
3008
3009
3010 {
3011 echo "cat >conf$$subs.awk <<_ACEOF" &&
3012 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
3013 echo "_ACEOF"
3014 } >conf$$subs.sh ||
3015 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3016 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
3017 ac_delim='%!_!# '
3018 for ac_last_try in false false false false false :; do
3019 . ./conf$$subs.sh ||
3020 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3021
3022 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
3023 if test $ac_delim_n = $ac_delim_num; then
3024 break
3025 elif $ac_last_try; then
3026 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
3027 else
3028 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
3029 fi
3030 done
3031 rm -f conf$$subs.sh
3032
3033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3034 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
3035 _ACEOF
3036 sed -n '
3037 h
3038 s/^/S["/; s/!.*/"]=/
3039 p
3040 g
3041 s/^[^!]*!//
3042 :repl
3043 t repl
3044 s/'"$ac_delim"'$//
3045 t delim
3046 :nl
3047 h
3048 s/\(.\{148\}\)..*/\1/
3049 t more1
3050 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
3051 p
3052 n
3053 b repl
3054 :more1
3055 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3056 p
3057 g
3058 s/.\{148\}//
3059 t nl
3060 :delim
3061 h
3062 s/\(.\{148\}\)..*/\1/
3063 t more2
3064 s/["\\]/\\&/g; s/^/"/; s/$/"/
3065 p
3066 b
3067 :more2
3068 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
3069 p
3070 g
3071 s/.\{148\}//
3072 t delim
3073 ' <conf$$subs.awk | sed '
3074 /^[^""]/{
3075 N
3076 s/\n//
3077 }
3078 ' >>$CONFIG_STATUS || ac_write_fail=1
3079 rm -f conf$$subs.awk
3080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3081 _ACAWK
3082 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
3083 for (key in S) S_is_set[key] = 1
3084 FS = ""
3085
3086 }
3087 {
3088 line = $ 0
3089 nfields = split(line, field, "@")
3090 substed = 0
3091 len = length(field[1])
3092 for (i = 2; i < nfields; i++) {
3093 key = field[i]
3094 keylen = length(key)
3095 if (S_is_set[key]) {
3096 value = S[key]
3097 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
3098 len += length(value) + length(field[++i])
3099 substed = 1
3100 } else
3101 len += 1 + keylen
3102 }
3103
3104 print line
3105 }
3106
3107 _ACAWK
3108 _ACEOF
3109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3110 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
3111 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
3112 else
3113 cat
3114 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
3115 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
3116 _ACEOF
3117
3118 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
3119 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
3120 # trailing colons and then remove the whole line if VPATH becomes empty
3121 # (actually we leave an empty line to preserve line numbers).
3122 if test "x$srcdir" = x.; then
3123 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
3124 h
3125 s///
3126 s/^/:/
3127 s/[ ]*$/:/
3128 s/:\$(srcdir):/:/g
3129 s/:\${srcdir}:/:/g
3130 s/:@srcdir@:/:/g
3131 s/^:*//
3132 s/:*$//
3133 x
3134 s/\(=[ ]*\).*/\1/
3135 G
3136 s/\n//
3137 s/^[^=]*=[ ]*$//
3138 }'
3139 fi
3140
3141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3142 fi # test -n "$CONFIG_FILES"
3143
3144
3145 eval set X " :F $CONFIG_FILES "
3146 shift
3147 for ac_tag
3148 do
3149 case $ac_tag in
3150 :[FHLC]) ac_mode=$ac_tag; continue;;
3151 esac
3152 case $ac_mode$ac_tag in
3153 :[FHL]*:*);;
3154 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
3155 :[FH]-) ac_tag=-:-;;
3156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
3157 esac
3158 ac_save_IFS=$IFS
3159 IFS=:
3160 set x $ac_tag
3161 IFS=$ac_save_IFS
3162 shift
3163 ac_file=$1
3164 shift
3165
3166 case $ac_mode in
3167 :L) ac_source=$1;;
3168 :[FH])
3169 ac_file_inputs=
3170 for ac_f
3171 do
3172 case $ac_f in
3173 -) ac_f="$ac_tmp/stdin";;
3174 *) # Look for the file first in the build tree, then in the source tree
3175 # (if the path is not absolute). The absolute path cannot be DOS-style,
3176 # because $ac_f cannot contain `:'.
3177 test -f "$ac_f" ||
3178 case $ac_f in
3179 [\\/$]*) false;;
3180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
3181 esac ||
3182 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
3183 esac
3184 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
3185 as_fn_append ac_file_inputs " '$ac_f'"
3186 done
3187
3188 # Let's still pretend it is `configure' which instantiates (i.e., don't
3189 # use $as_me), people would be surprised to read:
3190 # /* config.h. Generated by config.status. */
3191 configure_input='Generated from '`
3192 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
3193 `' by configure.'
3194 if test x"$ac_file" != x-; then
3195 configure_input="$ac_file. $configure_input"
3196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
3197 printf "%s\n" "$as_me: creating $ac_file" >&6;}
3198 fi
3199 # Neutralize special characters interpreted by sed in replacement strings.
3200 case $configure_input in #(
3201 *\&* | *\|* | *\\* )
3202 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
3203 sed 's/[\\\\&|]/\\\\&/g'`;; #(
3204 *) ac_sed_conf_input=$configure_input;;
3205 esac
3206
3207 case $ac_tag in
3208 *:-:* | *:-) cat >"$ac_tmp/stdin" \
3209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
3210 esac
3211 ;;
3212 esac
3213
3214 ac_dir=`$as_dirname -- "$ac_file" ||
3215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3216 X"$ac_file" : 'X\(//\)[^/]' \| \
3217 X"$ac_file" : 'X\(//\)$' \| \
3218 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
3219 printf "%s\n" X"$ac_file" |
3220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
3221 s//\1/
3222 q
3223 }
3224 /^X\(\/\/\)[^/].*/{
3225 s//\1/
3226 q
3227 }
3228 /^X\(\/\/\)$/{
3229 s//\1/
3230 q
3231 }
3232 /^X\(\/\).*/{
3233 s//\1/
3234 q
3235 }
3236 s/.*/./; q'`
3237 as_dir="$ac_dir"; as_fn_mkdir_p
3238 ac_builddir=.
3239
3240 case "$ac_dir" in
3241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
3242 *)
3243 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
3244 # A ".." for each directory in $ac_dir_suffix.
3245 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
3246 case $ac_top_builddir_sub in
3247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
3248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
3249 esac ;;
3250 esac
3251 ac_abs_top_builddir=$ac_pwd
3252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
3253 # for backward compatibility:
3254 ac_top_builddir=$ac_top_build_prefix
3255
3256 case $srcdir in
3257 .) # We are building in place.
3258 ac_srcdir=.
3259 ac_top_srcdir=$ac_top_builddir_sub
3260 ac_abs_top_srcdir=$ac_pwd ;;
3261 [\\/]* | ?:[\\/]* ) # Absolute name.
3262 ac_srcdir=$srcdir$ac_dir_suffix;
3263 ac_top_srcdir=$srcdir
3264 ac_abs_top_srcdir=$srcdir ;;
3265 *) # Relative name.
3266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
3267 ac_top_srcdir=$ac_top_build_prefix$srcdir
3268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
3269 esac
3270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
3271
3272
3273 case $ac_mode in
3274 :F)
3275 #
3276 # CONFIG_FILE
3277 #
3278
3279 _ACEOF
3280
3281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3282 # If the template does not know about datarootdir, expand it.
3283 # FIXME: This hack should be removed a few years after 2.60.
3284 ac_datarootdir_hack=; ac_datarootdir_seen=
3285 ac_sed_dataroot='
3286 /datarootdir/ {
3287 p
3288 q
3289 }
3290 /@datadir@/p
3291 /@docdir@/p
3292 /@infodir@/p
3293 /@localedir@/p
3294 /@mandir@/p'
3295 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
3296 *datarootdir*) ac_datarootdir_seen=yes;;
3297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
3299 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
3300 _ACEOF
3301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3302 ac_datarootdir_hack='
3303 s&@datadir@&$datadir&g
3304 s&@docdir@&$docdir&g
3305 s&@infodir@&$infodir&g
3306 s&@localedir@&$localedir&g
3307 s&@mandir@&$mandir&g
3308 s&\\\${datarootdir}&$datarootdir&g' ;;
3309 esac
3310 _ACEOF
3311
3312 # Neutralize VPATH when `$srcdir' = `.'.
3313 # Shell code in configure.ac might set extrasub.
3314 # FIXME: do we really want to maintain this feature?
3315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3316 ac_sed_extra="$ac_vpsub
3317 $extrasub
3318 _ACEOF
3319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
3320 :t
3321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3322 s|@configure_input@|$ac_sed_conf_input|;t t
3323 s&@top_builddir@&$ac_top_builddir_sub&;t t
3324 s&@top_build_prefix@&$ac_top_build_prefix&;t t
3325 s&@srcdir@&$ac_srcdir&;t t
3326 s&@abs_srcdir@&$ac_abs_srcdir&;t t
3327 s&@top_srcdir@&$ac_top_srcdir&;t t
3328 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
3329 s&@builddir@&$ac_builddir&;t t
3330 s&@abs_builddir@&$ac_abs_builddir&;t t
3331 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
3332 $ac_datarootdir_hack
3333 "
3334 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
3335 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3336
3337 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
3338 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
3339 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
3340 "$ac_tmp/out"`; test -z "$ac_out"; } &&
3341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3342 which seems to be undefined. Please make sure it is defined" >&5
3343 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
3344 which seems to be undefined. Please make sure it is defined" >&2;}
3345
3346 rm -f "$ac_tmp/stdin"
3347 case $ac_file in
3348 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
3349 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
3350 esac \
3351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
3352 ;;
3353
3354
3355
3356 esac
3357
3358
3359 case $ac_file$ac_mode in
3360 "./Makefile":F) chmod -w ./Makefile ;;
3361
3362 esac
3363 done # for ac_tag
3364
3365
3366 as_fn_exit 0
3367 _ACEOF
3368 ac_clean_files=$ac_clean_files_save
3369
3370 test $ac_write_fail = 0 ||
3371 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
3372
3373
3374 # configure is writing to config.log, and then calls config.status.
3375 # config.status does its own redirection, appending to config.log.
3376 # Unfortunately, on DOS this fails, as config.log is still kept open
3377 # by configure, so config.status won't be able to write to it; its
3378 # output is simply discarded. So we exec the FD to /dev/null,
3379 # effectively closing config.log, so it can be properly (re)opened and
3380 # appended to by config.status. When coming back to configure, we
3381 # need to make the FD available again.
3382 if test "$no_create" != yes; then
3383 ac_cs_success=:
3384 ac_config_status_args=
3385 test "$silent" = yes &&
3386 ac_config_status_args="$ac_config_status_args --quiet"
3387 exec 5>/dev/null
3388 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3389 exec 5>>config.log
3390 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3391 # would make configure fail if this is the last instruction.
3392 $ac_cs_success || as_fn_exit 1
3393 fi
3394 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
3396 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
3397 fi
3398
3399
3400
3401