Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for anymeal 1.35.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187
188 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
189 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
192 PATH=/empty FPATH=/empty; export PATH FPATH
193 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
194 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
195 test \$(( 1 + 1 )) = 2 || exit 1"
196 if (eval "$as_required") 2>/dev/null
197 then :
198 as_have_required=yes
199 else case e in #(
200 e) as_have_required=no ;;
201 esac
202 fi
203 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
204 then :
205
206 else case e in #(
207 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208 as_found=false
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210 do
211 IFS=$as_save_IFS
212 case $as_dir in #(((
213 '') as_dir=./ ;;
214 */) ;;
215 *) as_dir=$as_dir/ ;;
216 esac
217 as_found=:
218 case $as_dir in #(
219 /*)
220 for as_base in sh bash ksh sh5; do
221 # Try only shells that exist, to save several forks.
222 as_shell=$as_dir$as_base
223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
224 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
225 then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
228 then :
229 break 2
230 fi
231 fi
232 done;;
233 esac
234 as_found=false
235 done
236 IFS=$as_save_IFS
237 if $as_found
238 then :
239
240 else case e in #(
241 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
243 then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi ;;
246 esac
247 fi
248
249
250 if test "x$CONFIG_SHELL" != x
251 then :
252 export CONFIG_SHELL
253 # We cannot yet assume a decent shell, so we have to provide a
254 # neutralization value for shells without unset; and this also
255 # works around shells that cannot unset nonexistent variables.
256 # Preserve -v and -x to the replacement shell.
257 BASH_ENV=/dev/null
258 ENV=/dev/null
259 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
260 case $- in # ((((
261 *v*x* | *x*v* ) as_opts=-vx ;;
262 *v* ) as_opts=-v ;;
263 *x* ) as_opts=-x ;;
264 * ) as_opts= ;;
265 esac
266 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
267 # Admittedly, this is quite paranoid, since all the known shells bail
268 # out after a failed 'exec'.
269 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
270 exit 255
271 fi
272
273 if test x$as_have_required = xno
274 then :
275 printf "%s\n" "$0: This script requires a shell more modern than all"
276 printf "%s\n" "$0: the shells that I found on your system."
277 if test ${ZSH_VERSION+y} ; then
278 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 printf "%s\n" "$0: Please tell [email protected] and [email protected]
282 $0: about your system, including any error possibly output
283 $0: before this message. Then install a modern shell, or
284 $0: manually run the script under such a shell if you do
285 $0: have one."
286 fi
287 exit 1
288 fi ;;
289 esac
290 fi
291 fi
292 SHELL=${CONFIG_SHELL-/bin/sh}
293 export SHELL
294 # Unset more variables known to interfere with behavior of common tools.
295 CLICOLOR_FORCE= GREP_OPTIONS=
296 unset CLICOLOR_FORCE GREP_OPTIONS
297
298 ## --------------------- ##
299 ## M4sh Shell Functions. ##
300 ## --------------------- ##
301 # as_fn_unset VAR
302 # ---------------
303 # Portably unset VAR.
304 as_fn_unset ()
305 {
306 { eval $1=; unset $1;}
307 }
308 as_unset=as_fn_unset
309
310
311 # as_fn_set_status STATUS
312 # -----------------------
313 # Set $? to STATUS, without forking.
314 as_fn_set_status ()
315 {
316 return $1
317 } # as_fn_set_status
318
319 # as_fn_exit STATUS
320 # -----------------
321 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 as_fn_exit ()
323 {
324 set +e
325 as_fn_set_status $1
326 exit $1
327 } # as_fn_exit
328
329 # as_fn_mkdir_p
330 # -------------
331 # Create "$as_dir" as a directory, including parents if necessary.
332 as_fn_mkdir_p ()
333 {
334
335 case $as_dir in #(
336 -*) as_dir=./$as_dir;;
337 esac
338 test -d "$as_dir" || eval $as_mkdir_p || {
339 as_dirs=
340 while :; do
341 case $as_dir in #(
342 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 *) as_qdir=$as_dir;;
344 esac
345 as_dirs="'$as_qdir' $as_dirs"
346 as_dir=`$as_dirname -- "$as_dir" ||
347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
348 X"$as_dir" : 'X\(//\)[^/]' \| \
349 X"$as_dir" : 'X\(//\)$' \| \
350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
351 printf "%s\n" X"$as_dir" |
352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)[^/].*/{
357 s//\1/
358 q
359 }
360 /^X\(\/\/\)$/{
361 s//\1/
362 q
363 }
364 /^X\(\/\).*/{
365 s//\1/
366 q
367 }
368 s/.*/./; q'`
369 test -d "$as_dir" && break
370 done
371 test -z "$as_dirs" || eval "mkdir $as_dirs"
372 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
373
374
375 } # as_fn_mkdir_p
376
377 # as_fn_executable_p FILE
378 # -----------------------
379 # Test if FILE is an executable regular file.
380 as_fn_executable_p ()
381 {
382 test -f "$1" && test -x "$1"
383 } # as_fn_executable_p
384 # as_fn_append VAR VALUE
385 # ----------------------
386 # Append the text in VALUE to the end of the definition contained in VAR. Take
387 # advantage of any shell optimizations that allow amortized linear growth over
388 # repeated appends, instead of the typical quadratic growth present in naive
389 # implementations.
390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
391 then :
392 eval 'as_fn_append ()
393 {
394 eval $1+=\$2
395 }'
396 else case e in #(
397 e) as_fn_append ()
398 {
399 eval $1=\$$1\$2
400 } ;;
401 esac
402 fi # as_fn_append
403
404 # as_fn_arith ARG...
405 # ------------------
406 # Perform arithmetic evaluation on the ARGs, and store the result in the
407 # global $as_val. Take advantage of shells that can avoid forks. The arguments
408 # must be portable across $(()) and expr.
409 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
410 then :
411 eval 'as_fn_arith ()
412 {
413 as_val=$(( $* ))
414 }'
415 else case e in #(
416 e) as_fn_arith ()
417 {
418 as_val=`expr "$@" || test $? -eq 1`
419 } ;;
420 esac
421 fi # as_fn_arith
422
423
424 # as_fn_error STATUS ERROR [LINENO LOG_FD]
425 # ----------------------------------------
426 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
427 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
428 # script with STATUS, using 1 if that was 0.
429 as_fn_error ()
430 {
431 as_status=$1; test $as_status -eq 0 && as_status=1
432 if test "$4"; then
433 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
435 fi
436 printf "%s\n" "$as_me: error: $2" >&2
437 as_fn_exit $as_status
438 } # as_fn_error
439
440 if expr a : '\(a\)' >/dev/null 2>&1 &&
441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
442 as_expr=expr
443 else
444 as_expr=false
445 fi
446
447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
448 as_basename=basename
449 else
450 as_basename=false
451 fi
452
453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
454 as_dirname=dirname
455 else
456 as_dirname=false
457 fi
458
459 as_me=`$as_basename -- "$0" ||
460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
461 X"$0" : 'X\(//\)$' \| \
462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
463 printf "%s\n" X/"$0" |
464 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 s//\1/
466 q
467 }
468 /^X\/\(\/\/\)$/{
469 s//\1/
470 q
471 }
472 /^X\/\(\/\).*/{
473 s//\1/
474 q
475 }
476 s/.*/./; q'`
477
478 # Avoid depending upon Character Ranges.
479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
482 as_cr_digits='0123456789'
483 as_cr_alnum=$as_cr_Letters$as_cr_digits
484
485
486 as_lineno_1=$LINENO as_lineno_1a=$LINENO
487 as_lineno_2=$LINENO as_lineno_2a=$LINENO
488 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
489 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
490 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 sed -n '
492 p
493 /[$]LINENO/=
494 ' <$as_myself |
495 sed '
496 t clear
497 :clear
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
559 # In both cases, we have to default to 'cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
585 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
586
587 # Sed expression to map a string onto a valid variable name.
588 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
589 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
590
591 SHELL=${CONFIG_SHELL-/bin/sh}
592
593
594 test -n "$DJDIR" || exec 7<&0 </dev/null
595 exec 6>&1
596
597 # Name of the host.
598 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
599 # so uname gets run too.
600 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
601
602 #
603 # Initializations.
604 #
605 ac_default_prefix=/usr/local
606 ac_clean_files=
607 ac_config_libobj_dir=.
608 LIBOBJS=
609 cross_compiling=no
610 subdirs=
611 MFLAGS=
612 MAKEFLAGS=
613
614 # Identity of this package.
615 PACKAGE_NAME='anymeal'
616 PACKAGE_TARNAME='anymeal'
617 PACKAGE_VERSION='1.35'
618 PACKAGE_STRING='anymeal 1.35'
619 PACKAGE_BUGREPORT='[email protected]'
620 PACKAGE_URL=''
621
622 # Factoring default headers for most tests.
623 ac_includes_default="\
624 #include <stddef.h>
625 #ifdef HAVE_STDIO_H
626 # include <stdio.h>
627 #endif
628 #ifdef HAVE_STDLIB_H
629 # include <stdlib.h>
630 #endif
631 #ifdef HAVE_STRING_H
632 # include <string.h>
633 #endif
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
636 #endif
637 #ifdef HAVE_STDINT_H
638 # include <stdint.h>
639 #endif
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
642 #endif
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef HAVE_UNISTD_H
650 # include <unistd.h>
651 #endif"
652
653 ac_header_c_list=
654 ac_subst_vars='am__EXEEXT_FALSE
655 am__EXEEXT_TRUE
656 LTLIBOBJS
657 LIBOBJS
658 QT_LIBS
659 QT_DIR
660 QT_CXXFLAGS
661 QT_LUPDATE
662 QT_LCONVERT
663 QT_LRELEASE
664 QT_RCC
665 QT_UIC
666 QT_MOC
667 ac_ct_QMAKE
668 QMAKE
669 X_EXTRA_LIBS
670 X_LIBS
671 X_PRE_LIBS
672 X_CFLAGS
673 XMKMF
674 SQLITE3_VERSION
675 SQLITE3_LDFLAGS
676 SQLITE3_CFLAGS
677 GOOGLE_TEST_SRC_FALSE
678 GOOGLE_TEST_SRC_TRUE
679 ENABLE_TESTS_FALSE
680 ENABLE_TESTS_TRUE
681 GTEST_LIBS
682 GTEST_CFLAGS
683 GTESTSRC
684 HAVE_WINDRES_FALSE
685 HAVE_WINDRES_TRUE
686 WINDRES
687 LEXLIB
688 LEX_OUTPUT_ROOT
689 LEX
690 PKG_CONFIG_LIBDIR
691 PKG_CONFIG_PATH
692 PKG_CONFIG
693 CXXCPP
694 am__fastdepCXX_FALSE
695 am__fastdepCXX_TRUE
696 CXXDEPMODE
697 ac_ct_CXX
698 CXXFLAGS
699 CXX
700 LT_SYS_LIBRARY_PATH
701 OTOOL64
702 OTOOL
703 LIPO
704 NMEDIT
705 DSYMUTIL
706 MANIFEST_TOOL
707 RANLIB
708 ac_ct_AR
709 AR
710 DLLTOOL
711 OBJDUMP
712 FILECMD
713 LN_S
714 NM
715 ac_ct_DUMPBIN
716 DUMPBIN
717 LD
718 FGREP
719 EGREP
720 GREP
721 SED
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__include
730 DEPDIR
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 LIBTOOL
747 am__xargs_n
748 am__rm_f_notfound
749 AM_BACKSLASH
750 AM_DEFAULT_VERBOSITY
751 AM_DEFAULT_V
752 AM_V
753 CSCOPE
754 ETAGS
755 CTAGS
756 am__untar
757 am__tar
758 AMTAR
759 am__leading_dot
760 SET_MAKE
761 AWK
762 mkdir_p
763 MKDIR_P
764 INSTALL_STRIP_PROGRAM
765 STRIP
766 install_sh
767 MAKEINFO
768 AUTOHEADER
769 AUTOMAKE
770 AUTOCONF
771 ACLOCAL
772 VERSION
773 PACKAGE
774 CYGPATH_W
775 am__isrc
776 INSTALL_DATA
777 INSTALL_SCRIPT
778 INSTALL_PROGRAM
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 runstatedir
799 localstatedir
800 sharedstatedir
801 sysconfdir
802 datadir
803 datarootdir
804 libexecdir
805 sbindir
806 bindir
807 program_transform_name
808 prefix
809 exec_prefix
810 PACKAGE_URL
811 PACKAGE_BUGREPORT
812 PACKAGE_STRING
813 PACKAGE_VERSION
814 PACKAGE_TARNAME
815 PACKAGE_NAME
816 PATH_SEPARATOR
817 SHELL
818 am__quote'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_silent_rules
823 enable_shared
824 enable_static
825 enable_pic
826 with_pic
827 enable_fast_install
828 enable_aix_soname
829 with_aix_soname
830 enable_dependency_tracking
831 with_gnu_ld
832 with_sysroot
833 enable_libtool_lock
834 with_gtest
835 with_sqlite3
836 with_x
837 '
838 ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 LIBS
845 CPPFLAGS
846 LT_SYS_LIBRARY_PATH
847 CXX
848 CXXFLAGS
849 CCC
850 CXXCPP
851 PKG_CONFIG
852 PKG_CONFIG_PATH
853 PKG_CONFIG_LIBDIR
854 GTEST_CFLAGS
855 GTEST_LIBS
856 XMKMF'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
880
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 runstatedir='${localstatedir}/run'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912 # If the previous option needs an argument, assign it.
913 if test -n "$ac_prev"; then
914 eval $ac_prev=\$ac_option
915 ac_prev=
916 continue
917 fi
918
919 case $ac_option in
920 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921 *=) ac_optarg= ;;
922 *) ac_optarg=yes ;;
923 esac
924
925 case $ac_dashdash$ac_option in
926 --)
927 ac_dashdash=yes ;;
928
929 -bindir | --bindir | --bindi | --bind | --bin | --bi)
930 ac_prev=bindir ;;
931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
932 bindir=$ac_optarg ;;
933
934 -build | --build | --buil | --bui | --bu)
935 ac_prev=build_alias ;;
936 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
937 build_alias=$ac_optarg ;;
938
939 -cache-file | --cache-file | --cache-fil | --cache-fi \
940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
941 ac_prev=cache_file ;;
942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
944 cache_file=$ac_optarg ;;
945
946 --config-cache | -C)
947 cache_file=config.cache ;;
948
949 -datadir | --datadir | --datadi | --datad)
950 ac_prev=datadir ;;
951 -datadir=* | --datadir=* | --datadi=* | --datad=*)
952 datadir=$ac_optarg ;;
953
954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
955 | --dataroo | --dataro | --datar)
956 ac_prev=datarootdir ;;
957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
959 datarootdir=$ac_optarg ;;
960
961 -disable-* | --disable-*)
962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
963 # Reject names that are not valid shell variable names.
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error $? "invalid feature name: '$ac_useropt'"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970 "enable_$ac_useropt"
971 "*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
974 esac
975 eval enable_$ac_useropt=no ;;
976
977 -docdir | --docdir | --docdi | --doc | --do)
978 ac_prev=docdir ;;
979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
980 docdir=$ac_optarg ;;
981
982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
983 ac_prev=dvidir ;;
984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
985 dvidir=$ac_optarg ;;
986
987 -enable-* | --enable-*)
988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
989 # Reject names that are not valid shell variable names.
990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
991 as_fn_error $? "invalid feature name: '$ac_useropt'"
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996 "enable_$ac_useropt"
997 "*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=\$ac_optarg ;;
1002
1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1005 | --exec | --exe | --ex)
1006 ac_prev=exec_prefix ;;
1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1009 | --exec=* | --exe=* | --ex=*)
1010 exec_prefix=$ac_optarg ;;
1011
1012 -gas | --gas | --ga | --g)
1013 # Obsolete; use --with-gas.
1014 with_gas=yes ;;
1015
1016 -help | --help | --hel | --he | -h)
1017 ac_init_help=long ;;
1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1019 ac_init_help=recursive ;;
1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1021 ac_init_help=short ;;
1022
1023 -host | --host | --hos | --ho)
1024 ac_prev=host_alias ;;
1025 -host=* | --host=* | --hos=* | --ho=*)
1026 host_alias=$ac_optarg ;;
1027
1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1029 ac_prev=htmldir ;;
1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1031 | --ht=*)
1032 htmldir=$ac_optarg ;;
1033
1034 -includedir | --includedir | --includedi | --included | --include \
1035 | --includ | --inclu | --incl | --inc)
1036 ac_prev=includedir ;;
1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1038 | --includ=* | --inclu=* | --incl=* | --inc=*)
1039 includedir=$ac_optarg ;;
1040
1041 -infodir | --infodir | --infodi | --infod | --info | --inf)
1042 ac_prev=infodir ;;
1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1044 infodir=$ac_optarg ;;
1045
1046 -libdir | --libdir | --libdi | --libd)
1047 ac_prev=libdir ;;
1048 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1049 libdir=$ac_optarg ;;
1050
1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1052 | --libexe | --libex | --libe)
1053 ac_prev=libexecdir ;;
1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1055 | --libexe=* | --libex=* | --libe=*)
1056 libexecdir=$ac_optarg ;;
1057
1058 -localedir | --localedir | --localedi | --localed | --locale)
1059 ac_prev=localedir ;;
1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1061 localedir=$ac_optarg ;;
1062
1063 -localstatedir | --localstatedir | --localstatedi | --localstated \
1064 | --localstate | --localstat | --localsta | --localst | --locals)
1065 ac_prev=localstatedir ;;
1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1068 localstatedir=$ac_optarg ;;
1069
1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1071 ac_prev=mandir ;;
1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1073 mandir=$ac_optarg ;;
1074
1075 -nfp | --nfp | --nf)
1076 # Obsolete; use --without-fp.
1077 with_fp=no ;;
1078
1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1080 | --no-cr | --no-c | -n)
1081 no_create=yes ;;
1082
1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1085 no_recursion=yes ;;
1086
1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1089 | --oldin | --oldi | --old | --ol | --o)
1090 ac_prev=oldincludedir ;;
1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1094 oldincludedir=$ac_optarg ;;
1095
1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1097 ac_prev=prefix ;;
1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1099 prefix=$ac_optarg ;;
1100
1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1102 | --program-pre | --program-pr | --program-p)
1103 ac_prev=program_prefix ;;
1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1106 program_prefix=$ac_optarg ;;
1107
1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1109 | --program-suf | --program-su | --program-s)
1110 ac_prev=program_suffix ;;
1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1113 program_suffix=$ac_optarg ;;
1114
1115 -program-transform-name | --program-transform-name \
1116 | --program-transform-nam | --program-transform-na \
1117 | --program-transform-n | --program-transform- \
1118 | --program-transform | --program-transfor \
1119 | --program-transfo | --program-transf \
1120 | --program-trans | --program-tran \
1121 | --progr-tra | --program-tr | --program-t)
1122 ac_prev=program_transform_name ;;
1123 -program-transform-name=* | --program-transform-name=* \
1124 | --program-transform-nam=* | --program-transform-na=* \
1125 | --program-transform-n=* | --program-transform-=* \
1126 | --program-transform=* | --program-transfor=* \
1127 | --program-transfo=* | --program-transf=* \
1128 | --program-trans=* | --program-tran=* \
1129 | --progr-tra=* | --program-tr=* | --program-t=*)
1130 program_transform_name=$ac_optarg ;;
1131
1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1133 ac_prev=pdfdir ;;
1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1135 pdfdir=$ac_optarg ;;
1136
1137 -psdir | --psdir | --psdi | --psd | --ps)
1138 ac_prev=psdir ;;
1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1140 psdir=$ac_optarg ;;
1141
1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1143 | -silent | --silent | --silen | --sile | --sil)
1144 silent=yes ;;
1145
1146 -runstatedir | --runstatedir | --runstatedi | --runstated \
1147 | --runstate | --runstat | --runsta | --runst | --runs \
1148 | --run | --ru | --r)
1149 ac_prev=runstatedir ;;
1150 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1151 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1152 | --run=* | --ru=* | --r=*)
1153 runstatedir=$ac_optarg ;;
1154
1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1156 ac_prev=sbindir ;;
1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1158 | --sbi=* | --sb=*)
1159 sbindir=$ac_optarg ;;
1160
1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1163 | --sharedst | --shareds | --shared | --share | --shar \
1164 | --sha | --sh)
1165 ac_prev=sharedstatedir ;;
1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1169 | --sha=* | --sh=*)
1170 sharedstatedir=$ac_optarg ;;
1171
1172 -site | --site | --sit)
1173 ac_prev=site ;;
1174 -site=* | --site=* | --sit=*)
1175 site=$ac_optarg ;;
1176
1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1178 ac_prev=srcdir ;;
1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1180 srcdir=$ac_optarg ;;
1181
1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1183 | --syscon | --sysco | --sysc | --sys | --sy)
1184 ac_prev=sysconfdir ;;
1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1187 sysconfdir=$ac_optarg ;;
1188
1189 -target | --target | --targe | --targ | --tar | --ta | --t)
1190 ac_prev=target_alias ;;
1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1192 target_alias=$ac_optarg ;;
1193
1194 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 verbose=yes ;;
1196
1197 -version | --version | --versio | --versi | --vers | -V)
1198 ac_init_version=: ;;
1199
1200 -with-* | --with-*)
1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1202 # Reject names that are not valid shell variable names.
1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1204 as_fn_error $? "invalid package name: '$ac_useropt'"
1205 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in
1208 *"
1209 "with_$ac_useropt"
1210 "*) ;;
1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1212 ac_unrecognized_sep=', ';;
1213 esac
1214 eval with_$ac_useropt=\$ac_optarg ;;
1215
1216 -without-* | --without-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: '$ac_useropt'"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) as_fn_error $? "unrecognized option: '$ac_option'
1251 Try '$0 --help' for more information"
1252 ;;
1253
1254 *=*)
1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1256 # Reject names that are not valid shell variable names.
1257 case $ac_envvar in #(
1258 '' | [0-9]* | *[!_$as_cr_alnum]* )
1259 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1260 esac
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 as_fn_error $? "missing argument to $ac_option"
1278 fi
1279
1280 if test -n "$ac_unrecognized_opts"; then
1281 case $enable_option_checking in
1282 no) ;;
1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1284 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1285 esac
1286 fi
1287
1288 # Check all directory arguments for consistency.
1289 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1290 datadir sysconfdir sharedstatedir localstatedir includedir \
1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1292 libdir localedir mandir runstatedir
1293 do
1294 eval ac_val=\$$ac_var
1295 # Remove trailing slashes.
1296 case $ac_val in
1297 */ )
1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1299 eval $ac_var=\$ac_val;;
1300 esac
1301 # Be sure to have absolute directory names.
1302 case $ac_val in
1303 [\\/$]* | ?:[\\/]* ) continue;;
1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 esac
1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1307 done
1308
1309 # There might be people who depend on the old broken behavior: '$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1312 build=$build_alias
1313 host=$host_alias
1314 target=$target_alias
1315
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 elif test "x$build_alias" != "x$host_alias"; then
1321 cross_compiling=yes
1322 fi
1323 fi
1324
1325 ac_tool_prefix=
1326 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328 test "$silent" = yes && exec 6>/dev/null
1329
1330
1331 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332 ac_ls_di=`ls -di .` &&
1333 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334 as_fn_error $? "working directory cannot be determined"
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 as_fn_error $? "pwd does not report name of working directory"
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$as_myself" ||
1344 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$as_myself" : 'X\(//\)[^/]' \| \
1346 X"$as_myself" : 'X\(//\)$' \| \
1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1348 printf "%s\n" X"$as_myself" |
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\/\)[^/].*/{
1354 s//\1/
1355 q
1356 }
1357 /^X\(\/\/\)$/{
1358 s//\1/
1359 q
1360 }
1361 /^X\(\/\).*/{
1362 s//\1/
1363 q
1364 }
1365 s/.*/./; q'`
1366 srcdir=$ac_confdir
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 srcdir=..
1369 fi
1370 else
1371 ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1376 fi
1377 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1378 ac_abs_confdir=`(
1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1380 pwd)`
1381 # When building in place, set srcdir=.
1382 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 srcdir=.
1384 fi
1385 # Remove unnecessary trailing slashes from srcdir.
1386 # Double slashes in file names in object file debugging info
1387 # mess up M-x gdb in Emacs.
1388 case $srcdir in
1389 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1390 esac
1391 for ac_var in $ac_precious_vars; do
1392 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_env_${ac_var}_value=\$${ac_var}
1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1396 done
1397
1398 #
1399 # Report the --help message.
1400 #
1401 if test "$ac_init_help" = "long"; then
1402 # Omit some internal or obsolete options to make the list less imposing.
1403 # This message is too long to be a string in the A/UX 3.1 sh.
1404 cat <<_ACEOF
1405 'configure' configures anymeal 1.35 to adapt to many kinds of systems.
1406
1407 Usage: $0 [OPTION]... [VAR=VALUE]...
1408
1409 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1410 VAR=VALUE. See below for descriptions of some of the useful variables.
1411
1412 Defaults for the options are specified in brackets.
1413
1414 Configuration:
1415 -h, --help display this help and exit
1416 --help=short display options specific to this package
1417 --help=recursive display the short help of all the included packages
1418 -V, --version display version information and exit
1419 -q, --quiet, --silent do not print 'checking ...' messages
1420 --cache-file=FILE cache test results in FILE [disabled]
1421 -C, --config-cache alias for '--cache-file=config.cache'
1422 -n, --no-create do not create output files
1423 --srcdir=DIR find the sources in DIR [configure dir or '..']
1424
1425 Installation directories:
1426 --prefix=PREFIX install architecture-independent files in PREFIX
1427 [$ac_default_prefix]
1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 [PREFIX]
1430
1431 By default, 'make install' will install all the files in
1432 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1433 an installation prefix other than '$ac_default_prefix' using '--prefix',
1434 for instance '--prefix=\$HOME'.
1435
1436 For better control, use the options below.
1437
1438 Fine tuning of the installation directories:
1439 --bindir=DIR user executables [EPREFIX/bin]
1440 --sbindir=DIR system admin executables [EPREFIX/sbin]
1441 --libexecdir=DIR program executables [EPREFIX/libexec]
1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1445 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/anymeal]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1460
1461 cat <<\_ACEOF
1462
1463 Program names:
1464 --program-prefix=PREFIX prepend PREFIX to installed program names
1465 --program-suffix=SUFFIX append SUFFIX to installed program names
1466 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1467
1468 X features:
1469 --x-includes=DIR X include files are in DIR
1470 --x-libraries=DIR X library files are in DIR
1471
1472 System types:
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 _ACEOF
1476 fi
1477
1478 if test -n "$ac_init_help"; then
1479 case $ac_init_help in
1480 short | recursive ) echo "Configuration of anymeal 1.35:";;
1481 esac
1482 cat <<\_ACEOF
1483
1484 Optional Features:
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-silent-rules less verbose build output (undo: "make V=1")
1489 --disable-silent-rules verbose build output (undo: "make V=0")
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1493 both]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --enable-aix-soname=aix|svr4|both
1497 shared library versioning (aka "SONAME") variant to
1498 provide on AIX, [default=aix].
1499 --enable-dependency-tracking
1500 do not reject slow dependency extractors
1501 --disable-dependency-tracking
1502 speeds up one-time build
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1510 compiler's sysroot if not specified).
1511 --with-gtest=<dir> directory of Google Test framework
1512 --with-sqlite3=[ARG] use SQLite 3 library [default=yes], optionally
1513 specify the prefix for sqlite3 library
1514 --with-x use the X Window System
1515
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 LIBS libraries to pass to the linker, e.g. -l<library>
1522 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1524 LT_SYS_LIBRARY_PATH
1525 User-defined run-time library search path.
1526 CXX C++ compiler command
1527 CXXFLAGS C++ compiler flags
1528 CXXCPP C++ preprocessor
1529 PKG_CONFIG path to pkg-config utility
1530 PKG_CONFIG_PATH
1531 directories to add to pkg-config's search path
1532 PKG_CONFIG_LIBDIR
1533 path overriding pkg-config's built-in search path
1534 GTEST_CFLAGS
1535 C compiler flags for GTEST, overriding pkg-config
1536 GTEST_LIBS linker flags for GTEST, overriding pkg-config
1537 XMKMF Path to xmkmf, Makefile generator for X Window System
1538
1539 Use these variables to override the choices made by 'configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to <[email protected]>.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
1553 ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572 .) # We are building in place.
1573 ac_srcdir=.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for configure.gnu first; this name is used for a wrapper for
1589 # Metaconfig's "Configure" on case-insensitive file systems.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1596 else
1597 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1600 done
1601 fi
1602
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605 cat <<\_ACEOF
1606 anymeal configure 1.35
1607 generated by GNU Autoconf 2.72
1608
1609 Copyright (C) 2023 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613 exit
1614 fi
1615
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1619
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext conftest.beam
1627 if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 printf "%s\n" "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext
1646 then :
1647 ac_retval=0
1648 else case e in #(
1649 e) printf "%s\n" "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=1 ;;
1653 esac
1654 fi
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_compile
1659
1660 # ac_fn_c_try_link LINENO
1661 # -----------------------
1662 # Try to link conftest.$ac_ext, and return whether this succeeded.
1663 ac_fn_c_try_link ()
1664 {
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1667 if { { ac_try="$ac_link"
1668 case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 printf "%s\n" "$ac_try_echo"; } >&5
1674 (eval "$ac_link") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest$ac_exeext && {
1686 test "$cross_compiling" = yes ||
1687 test -x conftest$ac_exeext
1688 }
1689 then :
1690 ac_retval=0
1691 else case e in #(
1692 e) printf "%s\n" "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1 ;;
1696 esac
1697 fi
1698 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1699 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1700 # interfere with the next link command; also delete a directory that is
1701 # left behind by Apple's compiler. We do this before executing the actions.
1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1704 as_fn_set_status $ac_retval
1705
1706 } # ac_fn_c_try_link
1707
1708 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709 # -------------------------------------------------------
1710 # Tests whether HEADER exists and can be compiled using the include files in
1711 # INCLUDES, setting the cache variable VAR accordingly.
1712 ac_fn_c_check_header_compile ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716 printf %s "checking for $2... " >&6; }
1717 if eval test \${$3+y}
1718 then :
1719 printf %s "(cached) " >&6
1720 else case e in #(
1721 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1723 $4
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"
1727 then :
1728 eval "$3=yes"
1729 else case e in #(
1730 e) eval "$3=no" ;;
1731 esac
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1734 esac
1735 fi
1736 eval ac_res=\$$3
1737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 printf "%s\n" "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740
1741 } # ac_fn_c_check_header_compile
1742
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 printf %s "checking for $2... " >&6; }
1751 if eval test \${$3+y}
1752 then :
1753 printf %s "(cached) " >&6
1754 else case e in #(
1755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1756 /* end confdefs.h. */
1757 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1759 #define $2 innocuous_$2
1760
1761 /* System header to define __stub macros and hopefully few prototypes,
1762 which can conflict with char $2 (void); below. */
1763
1764 #include <limits.h>
1765 #undef $2
1766
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1770 #ifdef __cplusplus
1771 extern "C"
1772 #endif
1773 char $2 (void);
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1778 choke me
1779 #endif
1780
1781 int
1782 main (void)
1783 {
1784 return $2 ();
1785 ;
1786 return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_link "$LINENO"
1790 then :
1791 eval "$3=yes"
1792 else case e in #(
1793 e) eval "$3=no" ;;
1794 esac
1795 fi
1796 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1797 conftest$ac_exeext conftest.$ac_ext ;;
1798 esac
1799 fi
1800 eval ac_res=\$$3
1801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 printf "%s\n" "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1804
1805 } # ac_fn_c_check_func
1806
1807 # ac_fn_cxx_try_compile LINENO
1808 # ----------------------------
1809 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_cxx_try_compile ()
1811 {
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext conftest.beam
1814 if { { ac_try="$ac_compile"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 printf "%s\n" "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1827 fi
1828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext
1833 then :
1834 ac_retval=0
1835 else case e in #(
1836 e) printf "%s\n" "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839 ac_retval=1 ;;
1840 esac
1841 fi
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845 } # ac_fn_cxx_try_compile
1846
1847 # ac_fn_cxx_try_cpp LINENO
1848 # ------------------------
1849 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_cpp ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_cpp conftest.$ac_ext"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 printf "%s\n" "$ac_try_echo"; } >&5
1860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } > conftest.i && {
1869 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 }
1872 then :
1873 ac_retval=0
1874 else case e in #(
1875 e) printf "%s\n" "$as_me: failed program was:" >&5
1876 sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=1 ;;
1879 esac
1880 fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884 } # ac_fn_cxx_try_cpp
1885
1886 # ac_fn_cxx_try_link LINENO
1887 # -------------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_link ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1893 if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 printf "%s\n" "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest$ac_exeext && {
1912 test "$cross_compiling" = yes ||
1913 test -x conftest$ac_exeext
1914 }
1915 then :
1916 ac_retval=0
1917 else case e in #(
1918 e) printf "%s\n" "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=1 ;;
1922 esac
1923 fi
1924 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1925 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1926 # interfere with the next link command; also delete a directory that is
1927 # left behind by Apple's compiler. We do this before executing the actions.
1928 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1931
1932 } # ac_fn_cxx_try_link
1933
1934 # ac_fn_cxx_check_func LINENO FUNC VAR
1935 # ------------------------------------
1936 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1937 ac_fn_cxx_check_func ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 printf %s "checking for $2... " >&6; }
1942 if eval test \${$3+y}
1943 then :
1944 printf %s "(cached) " >&6
1945 else case e in #(
1946 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1948 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1950 #define $2 innocuous_$2
1951
1952 /* System header to define __stub macros and hopefully few prototypes,
1953 which can conflict with char $2 (void); below. */
1954
1955 #include <limits.h>
1956 #undef $2
1957
1958 /* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961 #ifdef __cplusplus
1962 extern "C"
1963 #endif
1964 char $2 (void);
1965 /* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968 #if defined __stub_$2 || defined __stub___$2
1969 choke me
1970 #endif
1971
1972 int
1973 main (void)
1974 {
1975 return $2 ();
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_cxx_try_link "$LINENO"
1981 then :
1982 eval "$3=yes"
1983 else case e in #(
1984 e) eval "$3=no" ;;
1985 esac
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1988 conftest$ac_exeext conftest.$ac_ext ;;
1989 esac
1990 fi
1991 eval ac_res=\$$3
1992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 printf "%s\n" "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1995
1996 } # ac_fn_cxx_check_func
1997
1998 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1999 # ---------------------------------------------------------
2000 # Tests whether HEADER exists and can be compiled using the include files in
2001 # INCLUDES, setting the cache variable VAR accordingly.
2002 ac_fn_cxx_check_header_compile ()
2003 {
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 printf %s "checking for $2... " >&6; }
2007 if eval test \${$3+y}
2008 then :
2009 printf %s "(cached) " >&6
2010 else case e in #(
2011 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h. */
2013 $4
2014 #include <$2>
2015 _ACEOF
2016 if ac_fn_cxx_try_compile "$LINENO"
2017 then :
2018 eval "$3=yes"
2019 else case e in #(
2020 e) eval "$3=no" ;;
2021 esac
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2024 esac
2025 fi
2026 eval ac_res=\$$3
2027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 printf "%s\n" "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2030
2031 } # ac_fn_cxx_check_header_compile
2032 ac_configure_args_raw=
2033 for ac_arg
2034 do
2035 case $ac_arg in
2036 *\'*)
2037 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2038 esac
2039 as_fn_append ac_configure_args_raw " '$ac_arg'"
2040 done
2041
2042 case $ac_configure_args_raw in
2043 *$as_nl*)
2044 ac_safe_unquote= ;;
2045 *)
2046 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2047 ac_unsafe_a="$ac_unsafe_z#~"
2048 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2049 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2050 esac
2051
2052 cat >config.log <<_ACEOF
2053 This file contains any messages produced by compilers while
2054 running configure, to aid debugging if configure makes a mistake.
2055
2056 It was created by anymeal $as_me 1.35, which was
2057 generated by GNU Autoconf 2.72. Invocation command line was
2058
2059 $ $0$ac_configure_args_raw
2060
2061 _ACEOF
2062 exec 5>>config.log
2063 {
2064 cat <<_ASUNAME
2065 ## --------- ##
2066 ## Platform. ##
2067 ## --------- ##
2068
2069 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2070 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2071 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2072 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2073 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074
2075 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2076 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2077
2078 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2079 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2080 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2081 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2082 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2083 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2084 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2085
2086 _ASUNAME
2087
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091 IFS=$as_save_IFS
2092 case $as_dir in #(((
2093 '') as_dir=./ ;;
2094 */) ;;
2095 *) as_dir=$as_dir/ ;;
2096 esac
2097 printf "%s\n" "PATH: $as_dir"
2098 done
2099 IFS=$as_save_IFS
2100
2101 } >&5
2102
2103 cat >&5 <<_ACEOF
2104
2105
2106 ## ----------- ##
2107 ## Core tests. ##
2108 ## ----------- ##
2109
2110 _ACEOF
2111
2112
2113 # Keep a trace of the command line.
2114 # Strip out --no-create and --no-recursion so they do not pile up.
2115 # Strip out --silent because we don't want to record it for future runs.
2116 # Also quote any args containing shell meta-characters.
2117 # Make two passes to allow for proper duplicate-argument suppression.
2118 ac_configure_args=
2119 ac_configure_args0=
2120 ac_configure_args1=
2121 ac_must_keep_next=false
2122 for ac_pass in 1 2
2123 do
2124 for ac_arg
2125 do
2126 case $ac_arg in
2127 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2128 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2129 | -silent | --silent | --silen | --sile | --sil)
2130 continue ;;
2131 *\'*)
2132 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2133 esac
2134 case $ac_pass in
2135 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2136 2)
2137 as_fn_append ac_configure_args1 " '$ac_arg'"
2138 if test $ac_must_keep_next = true; then
2139 ac_must_keep_next=false # Got value, back to normal.
2140 else
2141 case $ac_arg in
2142 *=* | --config-cache | -C | -disable-* | --disable-* \
2143 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2144 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2145 | -with-* | --with-* | -without-* | --without-* | --x)
2146 case "$ac_configure_args0 " in
2147 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2148 esac
2149 ;;
2150 -* ) ac_must_keep_next=true ;;
2151 esac
2152 fi
2153 as_fn_append ac_configure_args " '$ac_arg'"
2154 ;;
2155 esac
2156 done
2157 done
2158 { ac_configure_args0=; unset ac_configure_args0;}
2159 { ac_configure_args1=; unset ac_configure_args1;}
2160
2161 # When interrupted or exit'd, cleanup temporary files, and complete
2162 # config.log. We remove comments because anyway the quotes in there
2163 # would cause problems or look ugly.
2164 # WARNING: Use '\'' to represent an apostrophe within the trap.
2165 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2166 trap 'exit_status=$?
2167 # Sanitize IFS.
2168 IFS=" "" $as_nl"
2169 # Save into config.log some information that might help in debugging.
2170 {
2171 echo
2172
2173 printf "%s\n" "## ---------------- ##
2174 ## Cache variables. ##
2175 ## ---------------- ##"
2176 echo
2177 # The following way of writing the cache mishandles newlines in values,
2178 (
2179 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2180 eval ac_val=\$$ac_var
2181 case $ac_val in #(
2182 *${as_nl}*)
2183 case $ac_var in #(
2184 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2185 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2186 esac
2187 case $ac_var in #(
2188 _ | IFS | as_nl) ;; #(
2189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2190 *) { eval $ac_var=; unset $ac_var;} ;;
2191 esac ;;
2192 esac
2193 done
2194 (set) 2>&1 |
2195 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2196 *${as_nl}ac_space=\ *)
2197 sed -n \
2198 "s/'\''/'\''\\\\'\'''\''/g;
2199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2200 ;; #(
2201 *)
2202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2203 ;;
2204 esac |
2205 sort
2206 )
2207 echo
2208
2209 printf "%s\n" "## ----------------- ##
2210 ## Output variables. ##
2211 ## ----------------- ##"
2212 echo
2213 for ac_var in $ac_subst_vars
2214 do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in
2217 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2218 esac
2219 printf "%s\n" "$ac_var='\''$ac_val'\''"
2220 done | sort
2221 echo
2222
2223 if test -n "$ac_subst_files"; then
2224 printf "%s\n" "## ------------------- ##
2225 ## File substitutions. ##
2226 ## ------------------- ##"
2227 echo
2228 for ac_var in $ac_subst_files
2229 do
2230 eval ac_val=\$$ac_var
2231 case $ac_val in
2232 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233 esac
2234 printf "%s\n" "$ac_var='\''$ac_val'\''"
2235 done | sort
2236 echo
2237 fi
2238
2239 if test -s confdefs.h; then
2240 printf "%s\n" "## ----------- ##
2241 ## confdefs.h. ##
2242 ## ----------- ##"
2243 echo
2244 cat confdefs.h
2245 echo
2246 fi
2247 test "$ac_signal" != 0 &&
2248 printf "%s\n" "$as_me: caught signal $ac_signal"
2249 printf "%s\n" "$as_me: exit $exit_status"
2250 } >&5
2251 rm -f core *.core core.conftest.* &&
2252 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2253 exit $exit_status
2254 ' 0
2255 for ac_signal in 1 2 13 15; do
2256 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2257 done
2258 ac_signal=0
2259
2260 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2261 rm -f -r conftest* confdefs.h
2262
2263 printf "%s\n" "/* confdefs.h */" > confdefs.h
2264
2265 # Predefined preprocessor variables.
2266
2267 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2268
2269 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2270
2271 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2272
2273 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2274
2275 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2276
2277 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2278
2279
2280 # Let the site file select an alternate cache file if it wants to.
2281 # Prefer an explicitly selected file to automatically selected ones.
2282 if test -n "$CONFIG_SITE"; then
2283 ac_site_files="$CONFIG_SITE"
2284 elif test "x$prefix" != xNONE; then
2285 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2286 else
2287 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2288 fi
2289
2290 for ac_site_file in $ac_site_files
2291 do
2292 case $ac_site_file in #(
2293 */*) :
2294 ;; #(
2295 *) :
2296 ac_site_file=./$ac_site_file ;;
2297 esac
2298 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2300 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2301 sed 's/^/| /' "$ac_site_file" >&5
2302 . "$ac_site_file" \
2303 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2304 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2305 as_fn_error $? "failed to load site script $ac_site_file
2306 See 'config.log' for more details" "$LINENO" 5; }
2307 fi
2308 done
2309
2310 if test -r "$cache_file"; then
2311 # Some versions of bash will fail to source /dev/null (special files
2312 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2313 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2315 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2316 case $cache_file in
2317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2318 *) . "./$cache_file";;
2319 esac
2320 fi
2321 else
2322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2323 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2324 >$cache_file
2325 fi
2326
2327 # Test code for whether the C compiler supports C89 (global declarations)
2328 ac_c_conftest_c89_globals='
2329 /* Does the compiler advertise C89 conformance?
2330 Do not test the value of __STDC__, because some compilers set it to 0
2331 while being otherwise adequately conformant. */
2332 #if !defined __STDC__
2333 # error "Compiler does not advertise C89 conformance"
2334 #endif
2335
2336 #include <stddef.h>
2337 #include <stdarg.h>
2338 struct stat;
2339 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2340 struct buf { int x; };
2341 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2342 static char *e (char **p, int i)
2343 {
2344 return p[i];
2345 }
2346 static char *f (char * (*g) (char **, int), char **p, ...)
2347 {
2348 char *s;
2349 va_list v;
2350 va_start (v,p);
2351 s = g (p, va_arg (v,int));
2352 va_end (v);
2353 return s;
2354 }
2355
2356 /* C89 style stringification. */
2357 #define noexpand_stringify(a) #a
2358 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2359
2360 /* C89 style token pasting. Exercises some of the corner cases that
2361 e.g. old MSVC gets wrong, but not very hard. */
2362 #define noexpand_concat(a,b) a##b
2363 #define expand_concat(a,b) noexpand_concat(a,b)
2364 extern int vA;
2365 extern int vbee;
2366 #define aye A
2367 #define bee B
2368 int *pvA = &expand_concat(v,aye);
2369 int *pvbee = &noexpand_concat(v,bee);
2370
2371 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2372 function prototypes and stuff, but not \xHH hex character constants.
2373 These do not provoke an error unfortunately, instead are silently treated
2374 as an "x". The following induces an error, until -std is added to get
2375 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2376 array size at least. It is necessary to write \x00 == 0 to get something
2377 that is true only with -std. */
2378 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2379
2380 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2381 inside strings and character constants. */
2382 #define FOO(x) '\''x'\''
2383 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2384
2385 int test (int i, double x);
2386 struct s1 {int (*f) (int a);};
2387 struct s2 {int (*f) (double a);};
2388 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2389 int, int);'
2390
2391 # Test code for whether the C compiler supports C89 (body of main).
2392 ac_c_conftest_c89_main='
2393 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2394 '
2395
2396 # Test code for whether the C compiler supports C99 (global declarations)
2397 ac_c_conftest_c99_globals='
2398 /* Does the compiler advertise C99 conformance? */
2399 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2400 # error "Compiler does not advertise C99 conformance"
2401 #endif
2402
2403 // See if C++-style comments work.
2404
2405 #include <stdbool.h>
2406 extern int puts (const char *);
2407 extern int printf (const char *, ...);
2408 extern int dprintf (int, const char *, ...);
2409 extern void *malloc (size_t);
2410 extern void free (void *);
2411
2412 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2413 // dprintf is used instead of fprintf to avoid needing to declare
2414 // FILE and stderr.
2415 #define debug(...) dprintf (2, __VA_ARGS__)
2416 #define showlist(...) puts (#__VA_ARGS__)
2417 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2418 static void
2419 test_varargs_macros (void)
2420 {
2421 int x = 1234;
2422 int y = 5678;
2423 debug ("Flag");
2424 debug ("X = %d\n", x);
2425 showlist (The first, second, and third items.);
2426 report (x>y, "x is %d but y is %d", x, y);
2427 }
2428
2429 // Check long long types.
2430 #define BIG64 18446744073709551615ull
2431 #define BIG32 4294967295ul
2432 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2433 #if !BIG_OK
2434 #error "your preprocessor is broken"
2435 #endif
2436 #if BIG_OK
2437 #else
2438 #error "your preprocessor is broken"
2439 #endif
2440 static long long int bignum = -9223372036854775807LL;
2441 static unsigned long long int ubignum = BIG64;
2442
2443 struct incomplete_array
2444 {
2445 int datasize;
2446 double data[];
2447 };
2448
2449 struct named_init {
2450 int number;
2451 const wchar_t *name;
2452 double average;
2453 };
2454
2455 typedef const char *ccp;
2456
2457 static inline int
2458 test_restrict (ccp restrict text)
2459 {
2460 // Iterate through items via the restricted pointer.
2461 // Also check for declarations in for loops.
2462 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2463 continue;
2464 return 0;
2465 }
2466
2467 // Check varargs and va_copy.
2468 static bool
2469 test_varargs (const char *format, ...)
2470 {
2471 va_list args;
2472 va_start (args, format);
2473 va_list args_copy;
2474 va_copy (args_copy, args);
2475
2476 const char *str = "";
2477 int number = 0;
2478 float fnumber = 0;
2479
2480 while (*format)
2481 {
2482 switch (*format++)
2483 {
2484 case '\''s'\'': // string
2485 str = va_arg (args_copy, const char *);
2486 break;
2487 case '\''d'\'': // int
2488 number = va_arg (args_copy, int);
2489 break;
2490 case '\''f'\'': // float
2491 fnumber = va_arg (args_copy, double);
2492 break;
2493 default:
2494 break;
2495 }
2496 }
2497 va_end (args_copy);
2498 va_end (args);
2499
2500 return *str && number && fnumber;
2501 }
2502 '
2503
2504 # Test code for whether the C compiler supports C99 (body of main).
2505 ac_c_conftest_c99_main='
2506 // Check bool.
2507 _Bool success = false;
2508 success |= (argc != 0);
2509
2510 // Check restrict.
2511 if (test_restrict ("String literal") == 0)
2512 success = true;
2513 char *restrict newvar = "Another string";
2514
2515 // Check varargs.
2516 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2517 test_varargs_macros ();
2518
2519 // Check flexible array members.
2520 struct incomplete_array *ia =
2521 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2522 ia->datasize = 10;
2523 for (int i = 0; i < ia->datasize; ++i)
2524 ia->data[i] = i * 1.234;
2525 // Work around memory leak warnings.
2526 free (ia);
2527
2528 // Check named initializers.
2529 struct named_init ni = {
2530 .number = 34,
2531 .name = L"Test wide string",
2532 .average = 543.34343,
2533 };
2534
2535 ni.number = 58;
2536
2537 int dynamic_array[ni.number];
2538 dynamic_array[0] = argv[0][0];
2539 dynamic_array[ni.number - 1] = 543;
2540
2541 // work around unused variable warnings
2542 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2543 || dynamic_array[ni.number - 1] != 543);
2544 '
2545
2546 # Test code for whether the C compiler supports C11 (global declarations)
2547 ac_c_conftest_c11_globals='
2548 /* Does the compiler advertise C11 conformance? */
2549 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2550 # error "Compiler does not advertise C11 conformance"
2551 #endif
2552
2553 // Check _Alignas.
2554 char _Alignas (double) aligned_as_double;
2555 char _Alignas (0) no_special_alignment;
2556 extern char aligned_as_int;
2557 char _Alignas (0) _Alignas (int) aligned_as_int;
2558
2559 // Check _Alignof.
2560 enum
2561 {
2562 int_alignment = _Alignof (int),
2563 int_array_alignment = _Alignof (int[100]),
2564 char_alignment = _Alignof (char)
2565 };
2566 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2567
2568 // Check _Noreturn.
2569 int _Noreturn does_not_return (void) { for (;;) continue; }
2570
2571 // Check _Static_assert.
2572 struct test_static_assert
2573 {
2574 int x;
2575 _Static_assert (sizeof (int) <= sizeof (long int),
2576 "_Static_assert does not work in struct");
2577 long int y;
2578 };
2579
2580 // Check UTF-8 literals.
2581 #define u8 syntax error!
2582 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2583
2584 // Check duplicate typedefs.
2585 typedef long *long_ptr;
2586 typedef long int *long_ptr;
2587 typedef long_ptr long_ptr;
2588
2589 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2590 struct anonymous
2591 {
2592 union {
2593 struct { int i; int j; };
2594 struct { int k; long int l; } w;
2595 };
2596 int m;
2597 } v1;
2598 '
2599
2600 # Test code for whether the C compiler supports C11 (body of main).
2601 ac_c_conftest_c11_main='
2602 _Static_assert ((offsetof (struct anonymous, i)
2603 == offsetof (struct anonymous, w.k)),
2604 "Anonymous union alignment botch");
2605 v1.i = 2;
2606 v1.w.k = 5;
2607 ok |= v1.i != 5;
2608 '
2609
2610 # Test code for whether the C compiler supports C11 (complete).
2611 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2612 ${ac_c_conftest_c99_globals}
2613 ${ac_c_conftest_c11_globals}
2614
2615 int
2616 main (int argc, char **argv)
2617 {
2618 int ok = 0;
2619 ${ac_c_conftest_c89_main}
2620 ${ac_c_conftest_c99_main}
2621 ${ac_c_conftest_c11_main}
2622 return ok;
2623 }
2624 "
2625
2626 # Test code for whether the C compiler supports C99 (complete).
2627 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2628 ${ac_c_conftest_c99_globals}
2629
2630 int
2631 main (int argc, char **argv)
2632 {
2633 int ok = 0;
2634 ${ac_c_conftest_c89_main}
2635 ${ac_c_conftest_c99_main}
2636 return ok;
2637 }
2638 "
2639
2640 # Test code for whether the C compiler supports C89 (complete).
2641 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2642
2643 int
2644 main (int argc, char **argv)
2645 {
2646 int ok = 0;
2647 ${ac_c_conftest_c89_main}
2648 return ok;
2649 }
2650 "
2651
2652 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2653 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2654 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2655 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2656 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2657 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2658 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2659 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2660 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2661 # Test code for whether the C++ compiler supports C++98 (global declarations)
2662 ac_cxx_conftest_cxx98_globals='
2663 // Does the compiler advertise C++98 conformance?
2664 #if !defined __cplusplus || __cplusplus < 199711L
2665 # error "Compiler does not advertise C++98 conformance"
2666 #endif
2667
2668 // These inclusions are to reject old compilers that
2669 // lack the unsuffixed header files.
2670 #include <cstdlib>
2671 #include <exception>
2672
2673 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2674 extern void assert (int);
2675 namespace std {
2676 extern int strcmp (const char *, const char *);
2677 }
2678
2679 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2680 using std::exception;
2681 using std::strcmp;
2682
2683 namespace {
2684
2685 void test_exception_syntax()
2686 {
2687 try {
2688 throw "test";
2689 } catch (const char *s) {
2690 // Extra parentheses suppress a warning when building autoconf itself,
2691 // due to lint rules shared with more typical C programs.
2692 assert (!(strcmp) (s, "test"));
2693 }
2694 }
2695
2696 template <typename T> struct test_template
2697 {
2698 T const val;
2699 explicit test_template(T t) : val(t) {}
2700 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2701 };
2702
2703 } // anonymous namespace
2704 '
2705
2706 # Test code for whether the C++ compiler supports C++98 (body of main)
2707 ac_cxx_conftest_cxx98_main='
2708 assert (argc);
2709 assert (! argv[0]);
2710 {
2711 test_exception_syntax ();
2712 test_template<double> tt (2.0);
2713 assert (tt.add (4) == 6.0);
2714 assert (true && !false);
2715 }
2716 '
2717
2718 # Test code for whether the C++ compiler supports C++11 (global declarations)
2719 ac_cxx_conftest_cxx11_globals='
2720 // Does the compiler advertise C++ 2011 conformance?
2721 #if !defined __cplusplus || __cplusplus < 201103L
2722 # error "Compiler does not advertise C++11 conformance"
2723 #endif
2724
2725 namespace cxx11test
2726 {
2727 constexpr int get_val() { return 20; }
2728
2729 struct testinit
2730 {
2731 int i;
2732 double d;
2733 };
2734
2735 class delegate
2736 {
2737 public:
2738 delegate(int n) : n(n) {}
2739 delegate(): delegate(2354) {}
2740
2741 virtual int getval() { return this->n; };
2742 protected:
2743 int n;
2744 };
2745
2746 class overridden : public delegate
2747 {
2748 public:
2749 overridden(int n): delegate(n) {}
2750 virtual int getval() override final { return this->n * 2; }
2751 };
2752
2753 class nocopy
2754 {
2755 public:
2756 nocopy(int i): i(i) {}
2757 nocopy() = default;
2758 nocopy(const nocopy&) = delete;
2759 nocopy & operator=(const nocopy&) = delete;
2760 private:
2761 int i;
2762 };
2763
2764 // for testing lambda expressions
2765 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2766 {
2767 return f(v);
2768 }
2769
2770 // for testing variadic templates and trailing return types
2771 template <typename V> auto sum(V first) -> V
2772 {
2773 return first;
2774 }
2775 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2776 {
2777 return first + sum(rest...);
2778 }
2779 }
2780 '
2781
2782 # Test code for whether the C++ compiler supports C++11 (body of main)
2783 ac_cxx_conftest_cxx11_main='
2784 {
2785 // Test auto and decltype
2786 auto a1 = 6538;
2787 auto a2 = 48573953.4;
2788 auto a3 = "String literal";
2789
2790 int total = 0;
2791 for (auto i = a3; *i; ++i) { total += *i; }
2792
2793 decltype(a2) a4 = 34895.034;
2794 }
2795 {
2796 // Test constexpr
2797 short sa[cxx11test::get_val()] = { 0 };
2798 }
2799 {
2800 // Test initializer lists
2801 cxx11test::testinit il = { 4323, 435234.23544 };
2802 }
2803 {
2804 // Test range-based for
2805 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2806 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2807 for (auto &x : array) { x += 23; }
2808 }
2809 {
2810 // Test lambda expressions
2811 using cxx11test::eval;
2812 assert (eval ([](int x) { return x*2; }, 21) == 42);
2813 double d = 2.0;
2814 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2815 assert (d == 5.0);
2816 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2817 assert (d == 5.0);
2818 }
2819 {
2820 // Test use of variadic templates
2821 using cxx11test::sum;
2822 auto a = sum(1);
2823 auto b = sum(1, 2);
2824 auto c = sum(1.0, 2.0, 3.0);
2825 }
2826 {
2827 // Test constructor delegation
2828 cxx11test::delegate d1;
2829 cxx11test::delegate d2();
2830 cxx11test::delegate d3(45);
2831 }
2832 {
2833 // Test override and final
2834 cxx11test::overridden o1(55464);
2835 }
2836 {
2837 // Test nullptr
2838 char *c = nullptr;
2839 }
2840 {
2841 // Test template brackets
2842 test_template<::test_template<int>> v(test_template<int>(12));
2843 }
2844 {
2845 // Unicode literals
2846 char const *utf8 = u8"UTF-8 string \u2500";
2847 char16_t const *utf16 = u"UTF-8 string \u2500";
2848 char32_t const *utf32 = U"UTF-32 string \u2500";
2849 }
2850 '
2851
2852 # Test code for whether the C compiler supports C++11 (complete).
2853 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2854 ${ac_cxx_conftest_cxx11_globals}
2855
2856 int
2857 main (int argc, char **argv)
2858 {
2859 int ok = 0;
2860 ${ac_cxx_conftest_cxx98_main}
2861 ${ac_cxx_conftest_cxx11_main}
2862 return ok;
2863 }
2864 "
2865
2866 # Test code for whether the C compiler supports C++98 (complete).
2867 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2868 int
2869 main (int argc, char **argv)
2870 {
2871 int ok = 0;
2872 ${ac_cxx_conftest_cxx98_main}
2873 return ok;
2874 }
2875 "
2876
2877
2878 # Auxiliary files required by this configure script.
2879 ac_aux_files="compile config.guess config.sub ltmain.sh missing install-sh"
2880
2881 # Locations in which to look for auxiliary files.
2882 ac_aux_dir_candidates="${srcdir}/."
2883
2884 # Search for a directory containing all of the required auxiliary files,
2885 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2886 # If we don't find one directory that contains all the files we need,
2887 # we report the set of missing files from the *first* directory in
2888 # $ac_aux_dir_candidates and give up.
2889 ac_missing_aux_files=""
2890 ac_first_candidate=:
2891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 as_found=false
2894 for as_dir in $ac_aux_dir_candidates
2895 do
2896 IFS=$as_save_IFS
2897 case $as_dir in #(((
2898 '') as_dir=./ ;;
2899 */) ;;
2900 *) as_dir=$as_dir/ ;;
2901 esac
2902 as_found=:
2903
2904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2905 ac_aux_dir_found=yes
2906 ac_install_sh=
2907 for ac_aux in $ac_aux_files
2908 do
2909 # As a special case, if "install-sh" is required, that requirement
2910 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2911 # and $ac_install_sh is set appropriately for whichever one is found.
2912 if test x"$ac_aux" = x"install-sh"
2913 then
2914 if test -f "${as_dir}install-sh"; then
2915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2916 ac_install_sh="${as_dir}install-sh -c"
2917 elif test -f "${as_dir}install.sh"; then
2918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2919 ac_install_sh="${as_dir}install.sh -c"
2920 elif test -f "${as_dir}shtool"; then
2921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2922 ac_install_sh="${as_dir}shtool install -c"
2923 else
2924 ac_aux_dir_found=no
2925 if $ac_first_candidate; then
2926 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2927 else
2928 break
2929 fi
2930 fi
2931 else
2932 if test -f "${as_dir}${ac_aux}"; then
2933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2934 else
2935 ac_aux_dir_found=no
2936 if $ac_first_candidate; then
2937 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2938 else
2939 break
2940 fi
2941 fi
2942 fi
2943 done
2944 if test "$ac_aux_dir_found" = yes; then
2945 ac_aux_dir="$as_dir"
2946 break
2947 fi
2948 ac_first_candidate=false
2949
2950 as_found=false
2951 done
2952 IFS=$as_save_IFS
2953 if $as_found
2954 then :
2955
2956 else case e in #(
2957 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2958 esac
2959 fi
2960
2961
2962 # These three variables are undocumented and unsupported,
2963 # and are intended to be withdrawn in a future Autoconf release.
2964 # They can cause serious problems if a builder's source tree is in a directory
2965 # whose full name contains unusual characters.
2966 if test -f "${ac_aux_dir}config.guess"; then
2967 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2968 fi
2969 if test -f "${ac_aux_dir}config.sub"; then
2970 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2971 fi
2972 if test -f "$ac_aux_dir/configure"; then
2973 ac_configure="$SHELL ${ac_aux_dir}configure"
2974 fi
2975
2976 # Check that the precious variables saved in the cache have kept the same
2977 # value.
2978 ac_cache_corrupted=false
2979 for ac_var in $ac_precious_vars; do
2980 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2981 eval ac_new_set=\$ac_env_${ac_var}_set
2982 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2983 eval ac_new_val=\$ac_env_${ac_var}_value
2984 case $ac_old_set,$ac_new_set in
2985 set,)
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2987 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2988 ac_cache_corrupted=: ;;
2989 ,set)
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2991 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2992 ac_cache_corrupted=: ;;
2993 ,);;
2994 *)
2995 if test "x$ac_old_val" != "x$ac_new_val"; then
2996 # differences in whitespace do not lead to failure.
2997 ac_old_val_w=`echo x $ac_old_val`
2998 ac_new_val_w=`echo x $ac_new_val`
2999 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3001 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3002 ac_cache_corrupted=:
3003 else
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3005 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3006 eval $ac_var=\$ac_old_val
3007 fi
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3009 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3011 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3012 fi;;
3013 esac
3014 # Pass precious variables to config.status.
3015 if test "$ac_new_set" = set; then
3016 case $ac_new_val in
3017 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3018 *) ac_arg=$ac_var=$ac_new_val ;;
3019 esac
3020 case " $ac_configure_args " in
3021 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3022 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3023 esac
3024 fi
3025 done
3026 if $ac_cache_corrupted; then
3027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3028 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3030 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3031 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3032 and start over" "$LINENO" 5
3033 fi
3034 ## -------------------- ##
3035 ## Main body of script. ##
3036 ## -------------------- ##
3037
3038 ac_ext=c
3039 ac_cpp='$CPP $CPPFLAGS'
3040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043
3044
3045
3046 am__api_version='1.17'
3047
3048
3049
3050 # Find a good install program. We prefer a C program (faster),
3051 # so one script is as good as another. But avoid the broken or
3052 # incompatible versions:
3053 # SysV /etc/install, /usr/sbin/install
3054 # SunOS /usr/etc/install
3055 # IRIX /sbin/install
3056 # AIX /bin/install
3057 # AmigaOS /C/install, which installs bootblocks on floppy discs
3058 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3059 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3060 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3061 # OS/2's system install, which has a completely different semantic
3062 # ./install, which can be erroneously created by make from ./install.sh.
3063 # Reject install programs that cannot install multiple files.
3064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3065 printf %s "checking for a BSD-compatible install... " >&6; }
3066 if test -z "$INSTALL"; then
3067 if test ${ac_cv_path_install+y}
3068 then :
3069 printf %s "(cached) " >&6
3070 else case e in #(
3071 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 case $as_dir in #(((
3076 '') as_dir=./ ;;
3077 */) ;;
3078 *) as_dir=$as_dir/ ;;
3079 esac
3080 # Account for fact that we put trailing slashes in our PATH walk.
3081 case $as_dir in #((
3082 ./ | /[cC]/* | \
3083 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3084 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3085 /usr/ucb/* ) ;;
3086 *)
3087 # OSF1 and SCO ODT 3.0 have their own names for install.
3088 # Don't use installbsd from OSF since it installs stuff as root
3089 # by default.
3090 for ac_prog in ginstall scoinst install; do
3091 for ac_exec_ext in '' $ac_executable_extensions; do
3092 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3093 if test $ac_prog = install &&
3094 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3095 # AIX install. It has an incompatible calling convention.
3096 :
3097 elif test $ac_prog = install &&
3098 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3099 # program-specific install script used by HP pwplus--don't use.
3100 :
3101 else
3102 rm -rf conftest.one conftest.two conftest.dir
3103 echo one > conftest.one
3104 echo two > conftest.two
3105 mkdir conftest.dir
3106 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3107 test -s conftest.one && test -s conftest.two &&
3108 test -s conftest.dir/conftest.one &&
3109 test -s conftest.dir/conftest.two
3110 then
3111 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3112 break 3
3113 fi
3114 fi
3115 fi
3116 done
3117 done
3118 ;;
3119 esac
3120
3121 done
3122 IFS=$as_save_IFS
3123
3124 rm -rf conftest.one conftest.two conftest.dir
3125 ;;
3126 esac
3127 fi
3128 if test ${ac_cv_path_install+y}; then
3129 INSTALL=$ac_cv_path_install
3130 else
3131 # As a last resort, use the slow shell script. Don't cache a
3132 # value for INSTALL within a source directory, because that will
3133 # break other packages using the cache if that directory is
3134 # removed, or if the value is a relative name.
3135 INSTALL=$ac_install_sh
3136 fi
3137 fi
3138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3139 printf "%s\n" "$INSTALL" >&6; }
3140
3141 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3142 # It thinks the first close brace ends the variable substitution.
3143 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3144
3145 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3146
3147 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3148
3149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3150 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3151 if test ${am_cv_sleep_fractional_seconds+y}
3152 then :
3153 printf %s "(cached) " >&6
3154 else case e in #(
3155 e) if sleep 0.001 2>/dev/null
3156 then :
3157 am_cv_sleep_fractional_seconds=yes
3158 else case e in #(
3159 e) am_cv_sleep_fractional_seconds=no ;;
3160 esac
3161 fi
3162 ;;
3163 esac
3164 fi
3165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3166 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3167
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3169 printf %s "checking filesystem timestamp resolution... " >&6; }
3170 if test ${am_cv_filesystem_timestamp_resolution+y}
3171 then :
3172 printf %s "(cached) " >&6
3173 else case e in #(
3174 e) # Default to the worst case.
3175 am_cv_filesystem_timestamp_resolution=2
3176
3177 # Only try to go finer than 1 sec if sleep can do it.
3178 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3179 # - 1 sec is not much of a win compared to 2 sec, and
3180 # - it takes 2 seconds to perform the test whether 1 sec works.
3181 #
3182 # Instead, just use the default 2s on platforms that have 1s resolution,
3183 # accept the extra 1s delay when using $sleep in the Automake tests, in
3184 # exchange for not incurring the 2s delay for running the test for all
3185 # packages.
3186 #
3187 am_try_resolutions=
3188 if test "$am_cv_sleep_fractional_seconds" = yes; then
3189 # Even a millisecond often causes a bunch of false positives,
3190 # so just try a hundredth of a second. The time saved between .001 and
3191 # .01 is not terribly consequential.
3192 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3193 fi
3194
3195 # In order to catch current-generation FAT out, we must *modify* files
3196 # that already exist; the *creation* timestamp is finer. Use names
3197 # that make ls -t sort them differently when they have equal
3198 # timestamps than when they have distinct timestamps, keeping
3199 # in mind that ls -t prints the *newest* file first.
3200 rm -f conftest.ts?
3201 : > conftest.ts1
3202 : > conftest.ts2
3203 : > conftest.ts3
3204
3205 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3206 # clobber the current shell's arguments. (Outer-level square brackets
3207 # are removed by m4; they're present so that m4 does not expand
3208 # <dollar><star>; be careful, easy to get confused.)
3209 if (
3210 set X `ls -t conftest.ts[12]` &&
3211 {
3212 test "$*" != "X conftest.ts1 conftest.ts2" ||
3213 test "$*" != "X conftest.ts2 conftest.ts1";
3214 }
3215 ); then :; else
3216 # If neither matched, then we have a broken ls. This can happen
3217 # if, for instance, CONFIG_SHELL is bash and it inherits a
3218 # broken ls alias from the environment. This has actually
3219 # happened. Such a system could not be considered "sane".
3220 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3221 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3222 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3223 as_fn_error $? "ls -t produces unexpected output.
3224 Make sure there is not a broken ls alias in your environment.
3225 See 'config.log' for more details" "$LINENO" 5; }
3226 fi
3227
3228 for am_try_res in $am_try_resolutions; do
3229 # Any one fine-grained sleep might happen to cross the boundary
3230 # between two values of a coarser actual resolution, but if we do
3231 # two fine-grained sleeps in a row, at least one of them will fall
3232 # entirely within a coarse interval.
3233 echo alpha > conftest.ts1
3234 sleep $am_try_res
3235 echo beta > conftest.ts2
3236 sleep $am_try_res
3237 echo gamma > conftest.ts3
3238
3239 # We assume that 'ls -t' will make use of high-resolution
3240 # timestamps if the operating system supports them at all.
3241 if (set X `ls -t conftest.ts?` &&
3242 test "$2" = conftest.ts3 &&
3243 test "$3" = conftest.ts2 &&
3244 test "$4" = conftest.ts1); then
3245 #
3246 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3247 # because we don't need to test make.
3248 make_ok=true
3249 if test $am_try_res != 1; then
3250 # But if we've succeeded so far with a subsecond resolution, we
3251 # have one more thing to check: make. It can happen that
3252 # everything else supports the subsecond mtimes, but make doesn't;
3253 # notably on macOS, which ships make 3.81 from 2006 (the last one
3254 # released under GPLv2). https://bugs.gnu.org/68808
3255 #
3256 # We test $MAKE if it is defined in the environment, else "make".
3257 # It might get overridden later, but our hope is that in practice
3258 # it does not matter: it is the system "make" which is (by far)
3259 # the most likely to be broken, whereas if the user overrides it,
3260 # probably they did so with a better, or at least not worse, make.
3261 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3262 #
3263 # Create a Makefile (real tab character here):
3264 rm -f conftest.mk
3265 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3266 echo ' touch conftest.ts2' >>conftest.mk
3267 #
3268 # Now, running
3269 # touch conftest.ts1; touch conftest.ts2; make
3270 # should touch ts1 because ts2 is newer. This could happen by luck,
3271 # but most often, it will fail if make's support is insufficient. So
3272 # test for several consecutive successes.
3273 #
3274 # (We reuse conftest.ts[12] because we still want to modify existing
3275 # files, not create new ones, per above.)
3276 n=0
3277 make=${MAKE-make}
3278 until test $n -eq 3; do
3279 echo one > conftest.ts1
3280 sleep $am_try_res
3281 echo two > conftest.ts2 # ts2 should now be newer than ts1
3282 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3283 make_ok=false
3284 break # out of $n loop
3285 fi
3286 n=`expr $n + 1`
3287 done
3288 fi
3289 #
3290 if $make_ok; then
3291 # Everything we know to check worked out, so call this resolution good.
3292 am_cv_filesystem_timestamp_resolution=$am_try_res
3293 break # out of $am_try_res loop
3294 fi
3295 # Otherwise, we'll go on to check the next resolution.
3296 fi
3297 done
3298 rm -f conftest.ts?
3299 # (end _am_filesystem_timestamp_resolution)
3300 ;;
3301 esac
3302 fi
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3304 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3305
3306 # This check should not be cached, as it may vary across builds of
3307 # different projects.
3308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3309 printf %s "checking whether build environment is sane... " >&6; }
3310 # Reject unsafe characters in $srcdir or the absolute working directory
3311 # name. Accept space and tab only in the latter.
3312 am_lf='
3313 '
3314 case `pwd` in
3315 *[\\\"\#\$\&\'\`$am_lf]*)
3316 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3317 esac
3318 case $srcdir in
3319 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3320 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3321 esac
3322
3323 # Do 'set' in a subshell so we don't clobber the current shell's
3324 # arguments. Must try -L first in case configure is actually a
3325 # symlink; some systems play weird games with the mod time of symlinks
3326 # (eg FreeBSD returns the mod time of the symlink's containing
3327 # directory).
3328 am_build_env_is_sane=no
3329 am_has_slept=no
3330 rm -f conftest.file
3331 for am_try in 1 2; do
3332 echo "timestamp, slept: $am_has_slept" > conftest.file
3333 if (
3334 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3335 if test "$*" = "X"; then
3336 # -L didn't work.
3337 set X `ls -t "$srcdir/configure" conftest.file`
3338 fi
3339 test "$2" = conftest.file
3340 ); then
3341 am_build_env_is_sane=yes
3342 break
3343 fi
3344 # Just in case.
3345 sleep "$am_cv_filesystem_timestamp_resolution"
3346 am_has_slept=yes
3347 done
3348
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3350 printf "%s\n" "$am_build_env_is_sane" >&6; }
3351 if test "$am_build_env_is_sane" = no; then
3352 as_fn_error $? "newly created file is older than distributed files!
3353 Check your system clock" "$LINENO" 5
3354 fi
3355
3356 # If we didn't sleep, we still need to ensure time stamps of config.status and
3357 # generated files are strictly newer.
3358 am_sleep_pid=
3359 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3360 then :
3361
3362 else case e in #(
3363 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3364 am_sleep_pid=$!
3365 ;;
3366 esac
3367 fi
3368
3369 rm -f conftest.file
3370
3371 test "$program_prefix" != NONE &&
3372 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3373 # Use a double $ so make ignores it.
3374 test "$program_suffix" != NONE &&
3375 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3376 # Double any \ or $.
3377 # By default was 's,x,x', remove it if useless.
3378 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3379 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3380
3381
3382 # Expand $ac_aux_dir to an absolute path.
3383 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3384
3385
3386 if test x"${MISSING+set}" != xset; then
3387 MISSING="\${SHELL} '$am_aux_dir/missing'"
3388 fi
3389 # Use eval to expand $SHELL
3390 if eval "$MISSING --is-lightweight"; then
3391 am_missing_run="$MISSING "
3392 else
3393 am_missing_run=
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3395 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3396 fi
3397
3398 if test x"${install_sh+set}" != xset; then
3399 case $am_aux_dir in
3400 *\ * | *\ *)
3401 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3402 *)
3403 install_sh="\${SHELL} $am_aux_dir/install-sh"
3404 esac
3405 fi
3406
3407 # Installed binaries are usually stripped using 'strip' when the user
3408 # run "make install-strip". However 'strip' might not be the right
3409 # tool to use in cross-compilation environments, therefore Automake
3410 # will honor the 'STRIP' environment variable to overrule this program.
3411 if test "$cross_compiling" != no; then
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}strip; ac_word=$2
3415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 printf %s "checking for $ac_word... " >&6; }
3417 if test ${ac_cv_prog_STRIP+y}
3418 then :
3419 printf %s "(cached) " >&6
3420 else case e in #(
3421 e) if test -n "$STRIP"; then
3422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427 IFS=$as_save_IFS
3428 case $as_dir in #(((
3429 '') as_dir=./ ;;
3430 */) ;;
3431 *) as_dir=$as_dir/ ;;
3432 esac
3433 for ac_exec_ext in '' $ac_executable_extensions; do
3434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3435 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3437 break 2
3438 fi
3439 done
3440 done
3441 IFS=$as_save_IFS
3442
3443 fi ;;
3444 esac
3445 fi
3446 STRIP=$ac_cv_prog_STRIP
3447 if test -n "$STRIP"; then
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3449 printf "%s\n" "$STRIP" >&6; }
3450 else
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 printf "%s\n" "no" >&6; }
3453 fi
3454
3455
3456 fi
3457 if test -z "$ac_cv_prog_STRIP"; then
3458 ac_ct_STRIP=$STRIP
3459 # Extract the first word of "strip", so it can be a program name with args.
3460 set dummy strip; ac_word=$2
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 printf %s "checking for $ac_word... " >&6; }
3463 if test ${ac_cv_prog_ac_ct_STRIP+y}
3464 then :
3465 printf %s "(cached) " >&6
3466 else case e in #(
3467 e) if test -n "$ac_ct_STRIP"; then
3468 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3469 else
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473 IFS=$as_save_IFS
3474 case $as_dir in #(((
3475 '') as_dir=./ ;;
3476 */) ;;
3477 *) as_dir=$as_dir/ ;;
3478 esac
3479 for ac_exec_ext in '' $ac_executable_extensions; do
3480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3481 ac_cv_prog_ac_ct_STRIP="strip"
3482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3483 break 2
3484 fi
3485 done
3486 done
3487 IFS=$as_save_IFS
3488
3489 fi ;;
3490 esac
3491 fi
3492 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3493 if test -n "$ac_ct_STRIP"; then
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3495 printf "%s\n" "$ac_ct_STRIP" >&6; }
3496 else
3497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 printf "%s\n" "no" >&6; }
3499 fi
3500
3501 if test "x$ac_ct_STRIP" = x; then
3502 STRIP=":"
3503 else
3504 case $cross_compiling:$ac_tool_warned in
3505 yes:)
3506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3507 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3508 ac_tool_warned=yes ;;
3509 esac
3510 STRIP=$ac_ct_STRIP
3511 fi
3512 else
3513 STRIP="$ac_cv_prog_STRIP"
3514 fi
3515
3516 fi
3517 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3518
3519
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3521 printf %s "checking for a race-free mkdir -p... " >&6; }
3522 if test -z "$MKDIR_P"; then
3523 if test ${ac_cv_path_mkdir+y}
3524 then :
3525 printf %s "(cached) " >&6
3526 else case e in #(
3527 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3528 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3529 do
3530 IFS=$as_save_IFS
3531 case $as_dir in #(((
3532 '') as_dir=./ ;;
3533 */) ;;
3534 *) as_dir=$as_dir/ ;;
3535 esac
3536 for ac_prog in mkdir gmkdir; do
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3539 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3540 'mkdir ('*'coreutils) '* | \
3541 *'BusyBox '* | \
3542 'mkdir (fileutils) '4.1*)
3543 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3544 break 3;;
3545 esac
3546 done
3547 done
3548 done
3549 IFS=$as_save_IFS
3550 ;;
3551 esac
3552 fi
3553
3554 test -d ./--version && rmdir ./--version
3555 if test ${ac_cv_path_mkdir+y}; then
3556 MKDIR_P="$ac_cv_path_mkdir -p"
3557 else
3558 # As a last resort, use plain mkdir -p,
3559 # in the hope it doesn't have the bugs of ancient mkdir.
3560 MKDIR_P='mkdir -p'
3561 fi
3562 fi
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3564 printf "%s\n" "$MKDIR_P" >&6; }
3565
3566 for ac_prog in gawk mawk nawk awk
3567 do
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569 set dummy $ac_prog; ac_word=$2
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 printf %s "checking for $ac_word... " >&6; }
3572 if test ${ac_cv_prog_AWK+y}
3573 then :
3574 printf %s "(cached) " >&6
3575 else case e in #(
3576 e) if test -n "$AWK"; then
3577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582 IFS=$as_save_IFS
3583 case $as_dir in #(((
3584 '') as_dir=./ ;;
3585 */) ;;
3586 *) as_dir=$as_dir/ ;;
3587 esac
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_AWK="$ac_prog"
3591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594 done
3595 done
3596 IFS=$as_save_IFS
3597
3598 fi ;;
3599 esac
3600 fi
3601 AWK=$ac_cv_prog_AWK
3602 if test -n "$AWK"; then
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3604 printf "%s\n" "$AWK" >&6; }
3605 else
3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 printf "%s\n" "no" >&6; }
3608 fi
3609
3610
3611 test -n "$AWK" && break
3612 done
3613
3614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3615 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3616 set x ${MAKE-make}
3617 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3618 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3619 then :
3620 printf %s "(cached) " >&6
3621 else case e in #(
3622 e) cat >conftest.make <<\_ACEOF
3623 SHELL = /bin/sh
3624 all:
3625 @echo '@@@%%%=$(MAKE)=@@@%%%'
3626 _ACEOF
3627 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3628 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3629 *@@@%%%=?*=@@@%%%*)
3630 eval ac_cv_prog_make_${ac_make}_set=yes;;
3631 *)
3632 eval ac_cv_prog_make_${ac_make}_set=no;;
3633 esac
3634 rm -f conftest.make ;;
3635 esac
3636 fi
3637 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3639 printf "%s\n" "yes" >&6; }
3640 SET_MAKE=
3641 else
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 printf "%s\n" "no" >&6; }
3644 SET_MAKE="MAKE=${MAKE-make}"
3645 fi
3646
3647 rm -rf .tst 2>/dev/null
3648 mkdir .tst 2>/dev/null
3649 if test -d .tst; then
3650 am__leading_dot=.
3651 else
3652 am__leading_dot=_
3653 fi
3654 rmdir .tst 2>/dev/null
3655
3656 AM_DEFAULT_VERBOSITY=1
3657 # Check whether --enable-silent-rules was given.
3658 if test ${enable_silent_rules+y}
3659 then :
3660 enableval=$enable_silent_rules;
3661 fi
3662
3663 am_make=${MAKE-make}
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3665 printf %s "checking whether $am_make supports nested variables... " >&6; }
3666 if test ${am_cv_make_support_nested_variables+y}
3667 then :
3668 printf %s "(cached) " >&6
3669 else case e in #(
3670 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3671 BAR0=false
3672 BAR1=true
3673 V=1
3674 am__doit:
3675 @$(TRUE)
3676 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3677 am_cv_make_support_nested_variables=yes
3678 else
3679 am_cv_make_support_nested_variables=no
3680 fi ;;
3681 esac
3682 fi
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3684 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3685 AM_BACKSLASH='\'
3686
3687 am__rm_f_notfound=
3688 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3689 then :
3690
3691 else case e in #(
3692 e) am__rm_f_notfound='""' ;;
3693 esac
3694 fi
3695
3696
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3698 printf %s "checking xargs -n works... " >&6; }
3699 if test ${am_cv_xargs_n_works+y}
3700 then :
3701 printf %s "(cached) " >&6
3702 else case e in #(
3703 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3704 3"
3705 then :
3706 am_cv_xargs_n_works=yes
3707 else case e in #(
3708 e) am_cv_xargs_n_works=no ;;
3709 esac
3710 fi ;;
3711 esac
3712 fi
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3714 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3715 if test "$am_cv_xargs_n_works" = yes
3716 then :
3717 am__xargs_n='xargs -n'
3718 else case e in #(
3719 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3720 ;;
3721 esac
3722 fi
3723
3724 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3725 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3726 # is not polluted with repeated "-I."
3727 am__isrc=' -I$(srcdir)'
3728 # test to see if srcdir already configured
3729 if test -f $srcdir/config.status; then
3730 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3731 fi
3732 fi
3733
3734 # test whether we have cygpath
3735 if test -z "$CYGPATH_W"; then
3736 if (cygpath --version) >/dev/null 2>/dev/null; then
3737 CYGPATH_W='cygpath -w'
3738 else
3739 CYGPATH_W=echo
3740 fi
3741 fi
3742
3743
3744 # Define the identity of the package.
3745 PACKAGE='anymeal'
3746 VERSION='1.35'
3747
3748
3749 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3750
3751
3752 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3753
3754 # Some tools Automake needs.
3755
3756 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3757
3758
3759 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3760
3761
3762 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3763
3764
3765 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3766
3767
3768 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3769
3770 # For better backward compatibility. To be removed once Automake 1.9.x
3771 # dies out for good. For more background, see:
3772 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3773 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3774 mkdir_p='$(MKDIR_P)'
3775
3776 # We need awk for the "check" target (and possibly the TAP driver). The
3777 # system "awk" is bad on some platforms.
3778 # Always define AMTAR for backward compatibility. Yes, it's still used
3779 # in the wild :-( We should find a proper way to deprecate it ...
3780 AMTAR='$${TAR-tar}'
3781
3782
3783 # We'll loop over all known methods to create a tar archive until one works.
3784 _am_tools='gnutar pax cpio none'
3785
3786 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3787
3788
3789
3790
3791
3792 # Variables for tags utilities; see am/tags.am
3793 if test -z "$CTAGS"; then
3794 CTAGS=ctags
3795 fi
3796
3797 if test -z "$ETAGS"; then
3798 ETAGS=etags
3799 fi
3800
3801 if test -z "$CSCOPE"; then
3802 CSCOPE=cscope
3803 fi
3804
3805
3806
3807
3808
3809
3810
3811
3812 case `pwd` in
3813 *\ * | *\ *)
3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3815 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3816 esac
3817
3818
3819
3820 macro_version='2.5.4'
3821 macro_revision='2.5.4'
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836 ltmain=$ac_aux_dir/ltmain.sh
3837
3838
3839
3840 # Make sure we can run config.sub.
3841 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3842 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3843
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3845 printf %s "checking build system type... " >&6; }
3846 if test ${ac_cv_build+y}
3847 then :
3848 printf %s "(cached) " >&6
3849 else case e in #(
3850 e) ac_build_alias=$build_alias
3851 test "x$ac_build_alias" = x &&
3852 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3853 test "x$ac_build_alias" = x &&
3854 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3855 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3856 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3857 ;;
3858 esac
3859 fi
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3861 printf "%s\n" "$ac_cv_build" >&6; }
3862 case $ac_cv_build in
3863 *-*-*) ;;
3864 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3865 esac
3866 build=$ac_cv_build
3867 ac_save_IFS=$IFS; IFS='-'
3868 set x $ac_cv_build
3869 shift
3870 build_cpu=$1
3871 build_vendor=$2
3872 shift; shift
3873 # Remember, the first character of IFS is used to create $*,
3874 # except with old shells:
3875 build_os=$*
3876 IFS=$ac_save_IFS
3877 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3878
3879
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3881 printf %s "checking host system type... " >&6; }
3882 if test ${ac_cv_host+y}
3883 then :
3884 printf %s "(cached) " >&6
3885 else case e in #(
3886 e) if test "x$host_alias" = x; then
3887 ac_cv_host=$ac_cv_build
3888 else
3889 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3890 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3891 fi
3892 ;;
3893 esac
3894 fi
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3896 printf "%s\n" "$ac_cv_host" >&6; }
3897 case $ac_cv_host in
3898 *-*-*) ;;
3899 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3900 esac
3901 host=$ac_cv_host
3902 ac_save_IFS=$IFS; IFS='-'
3903 set x $ac_cv_host
3904 shift
3905 host_cpu=$1
3906 host_vendor=$2
3907 shift; shift
3908 # Remember, the first character of IFS is used to create $*,
3909 # except with old shells:
3910 host_os=$*
3911 IFS=$ac_save_IFS
3912 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3913
3914
3915 # Backslashify metacharacters that are still active within
3916 # double-quoted strings.
3917 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3918
3919 # Same as above, but do not quote variable references.
3920 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3921
3922 # Sed substitution to delay expansion of an escaped shell variable in a
3923 # double_quote_subst'ed string.
3924 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3925
3926 # Sed substitution to delay expansion of an escaped single quote.
3927 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3928
3929 # Sed substitution to avoid accidental globbing in evaled expressions
3930 no_glob_subst='s/\*/\\\*/g'
3931
3932 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3933 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3934 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3935
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3937 printf %s "checking how to print strings... " >&6; }
3938 # Test print first, because it will be a builtin if present.
3939 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3940 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3941 ECHO='print -r --'
3942 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3943 ECHO='printf %s\n'
3944 else
3945 # Use this function as a fallback that always works.
3946 func_fallback_echo ()
3947 {
3948 eval 'cat <<_LTECHO_EOF
3949 $1
3950 _LTECHO_EOF'
3951 }
3952 ECHO='func_fallback_echo'
3953 fi
3954
3955 # func_echo_all arg...
3956 # Invoke $ECHO with all args, space-separated.
3957 func_echo_all ()
3958 {
3959 $ECHO ""
3960 }
3961
3962 case $ECHO in
3963 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3964 printf "%s\n" "printf" >&6; } ;;
3965 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3966 printf "%s\n" "print -r" >&6; } ;;
3967 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3968 printf "%s\n" "cat" >&6; } ;;
3969 esac
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993 DEPDIR="${am__leading_dot}deps"
3994
3995 ac_config_commands="$ac_config_commands depfiles"
3996
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3998 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3999 cat > confinc.mk << 'END'
4000 am__doit:
4001 @echo this is the am__doit target >confinc.out
4002 .PHONY: am__doit
4003 END
4004 am__include="#"
4005 am__quote=
4006 # BSD make does it like this.
4007 echo '.include "confinc.mk" # ignored' > confmf.BSD
4008 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4009 echo 'include confinc.mk # ignored' > confmf.GNU
4010 _am_result=no
4011 for s in GNU BSD; do
4012 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4013 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4014 ac_status=$?
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }
4017 case $?:`cat confinc.out 2>/dev/null` in #(
4018 '0:this is the am__doit target') :
4019 case $s in #(
4020 BSD) :
4021 am__include='.include' am__quote='"' ;; #(
4022 *) :
4023 am__include='include' am__quote='' ;;
4024 esac ;; #(
4025 *) :
4026 ;;
4027 esac
4028 if test "$am__include" != "#"; then
4029 _am_result="yes ($s style)"
4030 break
4031 fi
4032 done
4033 rm -f confinc.* confmf.*
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4035 printf "%s\n" "${_am_result}" >&6; }
4036
4037 # Check whether --enable-dependency-tracking was given.
4038 if test ${enable_dependency_tracking+y}
4039 then :
4040 enableval=$enable_dependency_tracking;
4041 fi
4042
4043 if test "x$enable_dependency_tracking" != xno; then
4044 am_depcomp="$ac_aux_dir/depcomp"
4045 AMDEPBACKSLASH='\'
4046 am__nodep='_no'
4047 fi
4048 if test "x$enable_dependency_tracking" != xno; then
4049 AMDEP_TRUE=
4050 AMDEP_FALSE='#'
4051 else
4052 AMDEP_TRUE='#'
4053 AMDEP_FALSE=
4054 fi
4055
4056
4057 ac_ext=c
4058 ac_cpp='$CPP $CPPFLAGS'
4059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4062 if test -n "$ac_tool_prefix"; then
4063 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4064 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 printf %s "checking for $ac_word... " >&6; }
4067 if test ${ac_cv_prog_CC+y}
4068 then :
4069 printf %s "(cached) " >&6
4070 else case e in #(
4071 e) if test -n "$CC"; then
4072 ac_cv_prog_CC="$CC" # Let the user override the test.
4073 else
4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077 IFS=$as_save_IFS
4078 case $as_dir in #(((
4079 '') as_dir=./ ;;
4080 */) ;;
4081 *) as_dir=$as_dir/ ;;
4082 esac
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4087 break 2
4088 fi
4089 done
4090 done
4091 IFS=$as_save_IFS
4092
4093 fi ;;
4094 esac
4095 fi
4096 CC=$ac_cv_prog_CC
4097 if test -n "$CC"; then
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099 printf "%s\n" "$CC" >&6; }
4100 else
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4103 fi
4104
4105
4106 fi
4107 if test -z "$ac_cv_prog_CC"; then
4108 ac_ct_CC=$CC
4109 # Extract the first word of "gcc", so it can be a program name with args.
4110 set dummy gcc; ac_word=$2
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 printf %s "checking for $ac_word... " >&6; }
4113 if test ${ac_cv_prog_ac_ct_CC+y}
4114 then :
4115 printf %s "(cached) " >&6
4116 else case e in #(
4117 e) if test -n "$ac_ct_CC"; then
4118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4122 do
4123 IFS=$as_save_IFS
4124 case $as_dir in #(((
4125 '') as_dir=./ ;;
4126 */) ;;
4127 *) as_dir=$as_dir/ ;;
4128 esac
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_ac_ct_CC="gcc"
4132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4133 break 2
4134 fi
4135 done
4136 done
4137 IFS=$as_save_IFS
4138
4139 fi ;;
4140 esac
4141 fi
4142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4143 if test -n "$ac_ct_CC"; then
4144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4145 printf "%s\n" "$ac_ct_CC" >&6; }
4146 else
4147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 printf "%s\n" "no" >&6; }
4149 fi
4150
4151 if test "x$ac_ct_CC" = x; then
4152 CC=""
4153 else
4154 case $cross_compiling:$ac_tool_warned in
4155 yes:)
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4157 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4158 ac_tool_warned=yes ;;
4159 esac
4160 CC=$ac_ct_CC
4161 fi
4162 else
4163 CC="$ac_cv_prog_CC"
4164 fi
4165
4166 if test -z "$CC"; then
4167 if test -n "$ac_tool_prefix"; then
4168 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4169 set dummy ${ac_tool_prefix}cc; ac_word=$2
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 printf %s "checking for $ac_word... " >&6; }
4172 if test ${ac_cv_prog_CC+y}
4173 then :
4174 printf %s "(cached) " >&6
4175 else case e in #(
4176 e) if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178 else
4179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182 IFS=$as_save_IFS
4183 case $as_dir in #(((
4184 '') as_dir=./ ;;
4185 */) ;;
4186 *) as_dir=$as_dir/ ;;
4187 esac
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4190 ac_cv_prog_CC="${ac_tool_prefix}cc"
4191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4192 break 2
4193 fi
4194 done
4195 done
4196 IFS=$as_save_IFS
4197
4198 fi ;;
4199 esac
4200 fi
4201 CC=$ac_cv_prog_CC
4202 if test -n "$CC"; then
4203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4204 printf "%s\n" "$CC" >&6; }
4205 else
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 printf "%s\n" "no" >&6; }
4208 fi
4209
4210
4211 fi
4212 fi
4213 if test -z "$CC"; then
4214 # Extract the first word of "cc", so it can be a program name with args.
4215 set dummy cc; ac_word=$2
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 printf %s "checking for $ac_word... " >&6; }
4218 if test ${ac_cv_prog_CC+y}
4219 then :
4220 printf %s "(cached) " >&6
4221 else case e in #(
4222 e) if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 else
4225 ac_prog_rejected=no
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229 IFS=$as_save_IFS
4230 case $as_dir in #(((
4231 '') as_dir=./ ;;
4232 */) ;;
4233 *) as_dir=$as_dir/ ;;
4234 esac
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4237 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4238 ac_prog_rejected=yes
4239 continue
4240 fi
4241 ac_cv_prog_CC="cc"
4242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4243 break 2
4244 fi
4245 done
4246 done
4247 IFS=$as_save_IFS
4248
4249 if test $ac_prog_rejected = yes; then
4250 # We found a bogon in the path, so make sure we never use it.
4251 set dummy $ac_cv_prog_CC
4252 shift
4253 if test $# != 0; then
4254 # We chose a different compiler from the bogus one.
4255 # However, it has the same basename, so the bogon will be chosen
4256 # first if we set CC to just the basename; use the full file name.
4257 shift
4258 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4259 fi
4260 fi
4261 fi ;;
4262 esac
4263 fi
4264 CC=$ac_cv_prog_CC
4265 if test -n "$CC"; then
4266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4267 printf "%s\n" "$CC" >&6; }
4268 else
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4270 printf "%s\n" "no" >&6; }
4271 fi
4272
4273
4274 fi
4275 if test -z "$CC"; then
4276 if test -n "$ac_tool_prefix"; then
4277 for ac_prog in cl.exe
4278 do
4279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4280 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282 printf %s "checking for $ac_word... " >&6; }
4283 if test ${ac_cv_prog_CC+y}
4284 then :
4285 printf %s "(cached) " >&6
4286 else case e in #(
4287 e) if test -n "$CC"; then
4288 ac_cv_prog_CC="$CC" # Let the user override the test.
4289 else
4290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 for as_dir in $PATH
4292 do
4293 IFS=$as_save_IFS
4294 case $as_dir in #(((
4295 '') as_dir=./ ;;
4296 */) ;;
4297 *) as_dir=$as_dir/ ;;
4298 esac
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4301 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4303 break 2
4304 fi
4305 done
4306 done
4307 IFS=$as_save_IFS
4308
4309 fi ;;
4310 esac
4311 fi
4312 CC=$ac_cv_prog_CC
4313 if test -n "$CC"; then
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4315 printf "%s\n" "$CC" >&6; }
4316 else
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4318 printf "%s\n" "no" >&6; }
4319 fi
4320
4321
4322 test -n "$CC" && break
4323 done
4324 fi
4325 if test -z "$CC"; then
4326 ac_ct_CC=$CC
4327 for ac_prog in cl.exe
4328 do
4329 # Extract the first word of "$ac_prog", so it can be a program name with args.
4330 set dummy $ac_prog; ac_word=$2
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 printf %s "checking for $ac_word... " >&6; }
4333 if test ${ac_cv_prog_ac_ct_CC+y}
4334 then :
4335 printf %s "(cached) " >&6
4336 else case e in #(
4337 e) if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 case $as_dir in #(((
4345 '') as_dir=./ ;;
4346 */) ;;
4347 *) as_dir=$as_dir/ ;;
4348 esac
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4351 ac_cv_prog_ac_ct_CC="$ac_prog"
4352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4353 break 2
4354 fi
4355 done
4356 done
4357 IFS=$as_save_IFS
4358
4359 fi ;;
4360 esac
4361 fi
4362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4363 if test -n "$ac_ct_CC"; then
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4365 printf "%s\n" "$ac_ct_CC" >&6; }
4366 else
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 printf "%s\n" "no" >&6; }
4369 fi
4370
4371
4372 test -n "$ac_ct_CC" && break
4373 done
4374
4375 if test "x$ac_ct_CC" = x; then
4376 CC=""
4377 else
4378 case $cross_compiling:$ac_tool_warned in
4379 yes:)
4380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382 ac_tool_warned=yes ;;
4383 esac
4384 CC=$ac_ct_CC
4385 fi
4386 fi
4387
4388 fi
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4392 set dummy ${ac_tool_prefix}clang; ac_word=$2
4393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 printf %s "checking for $ac_word... " >&6; }
4395 if test ${ac_cv_prog_CC+y}
4396 then :
4397 printf %s "(cached) " >&6
4398 else case e in #(
4399 e) if test -n "$CC"; then
4400 ac_cv_prog_CC="$CC" # Let the user override the test.
4401 else
4402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403 for as_dir in $PATH
4404 do
4405 IFS=$as_save_IFS
4406 case $as_dir in #(((
4407 '') as_dir=./ ;;
4408 */) ;;
4409 *) as_dir=$as_dir/ ;;
4410 esac
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4413 ac_cv_prog_CC="${ac_tool_prefix}clang"
4414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417 done
4418 done
4419 IFS=$as_save_IFS
4420
4421 fi ;;
4422 esac
4423 fi
4424 CC=$ac_cv_prog_CC
4425 if test -n "$CC"; then
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4427 printf "%s\n" "$CC" >&6; }
4428 else
4429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 printf "%s\n" "no" >&6; }
4431 fi
4432
4433
4434 fi
4435 if test -z "$ac_cv_prog_CC"; then
4436 ac_ct_CC=$CC
4437 # Extract the first word of "clang", so it can be a program name with args.
4438 set dummy clang; ac_word=$2
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 printf %s "checking for $ac_word... " >&6; }
4441 if test ${ac_cv_prog_ac_ct_CC+y}
4442 then :
4443 printf %s "(cached) " >&6
4444 else case e in #(
4445 e) if test -n "$ac_ct_CC"; then
4446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4447 else
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451 IFS=$as_save_IFS
4452 case $as_dir in #(((
4453 '') as_dir=./ ;;
4454 */) ;;
4455 *) as_dir=$as_dir/ ;;
4456 esac
4457 for ac_exec_ext in '' $ac_executable_extensions; do
4458 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4459 ac_cv_prog_ac_ct_CC="clang"
4460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4461 break 2
4462 fi
4463 done
4464 done
4465 IFS=$as_save_IFS
4466
4467 fi ;;
4468 esac
4469 fi
4470 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4471 if test -n "$ac_ct_CC"; then
4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4473 printf "%s\n" "$ac_ct_CC" >&6; }
4474 else
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 printf "%s\n" "no" >&6; }
4477 fi
4478
4479 if test "x$ac_ct_CC" = x; then
4480 CC=""
4481 else
4482 case $cross_compiling:$ac_tool_warned in
4483 yes:)
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4485 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4486 ac_tool_warned=yes ;;
4487 esac
4488 CC=$ac_ct_CC
4489 fi
4490 else
4491 CC="$ac_cv_prog_CC"
4492 fi
4493
4494 fi
4495
4496
4497 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4498 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4499 as_fn_error $? "no acceptable C compiler found in \$PATH
4500 See 'config.log' for more details" "$LINENO" 5; }
4501
4502 # Provide some information about the compiler.
4503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4504 set X $ac_compile
4505 ac_compiler=$2
4506 for ac_option in --version -v -V -qversion -version; do
4507 { { ac_try="$ac_compiler $ac_option >&5"
4508 case "(($ac_try" in
4509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510 *) ac_try_echo=$ac_try;;
4511 esac
4512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4513 printf "%s\n" "$ac_try_echo"; } >&5
4514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4515 ac_status=$?
4516 if test -s conftest.err; then
4517 sed '10a\
4518 ... rest of stderr output deleted ...
4519 10q' conftest.err >conftest.er1
4520 cat conftest.er1 >&5
4521 fi
4522 rm -f conftest.er1 conftest.err
4523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4524 test $ac_status = 0; }
4525 done
4526
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529
4530 int
4531 main (void)
4532 {
4533
4534 ;
4535 return 0;
4536 }
4537 _ACEOF
4538 ac_clean_files_save=$ac_clean_files
4539 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4540 # Try to create an executable without -o first, disregard a.out.
4541 # It will help us diagnose broken compilers, and finding out an intuition
4542 # of exeext.
4543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4544 printf %s "checking whether the C compiler works... " >&6; }
4545 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4546
4547 # The possible output files:
4548 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4549
4550 ac_rmfiles=
4551 for ac_file in $ac_files
4552 do
4553 case $ac_file in
4554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4555 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4556 esac
4557 done
4558 rm -f $ac_rmfiles
4559
4560 if { { ac_try="$ac_link_default"
4561 case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4566 printf "%s\n" "$ac_try_echo"; } >&5
4567 (eval "$ac_link_default") 2>&5
4568 ac_status=$?
4569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4570 test $ac_status = 0; }
4571 then :
4572 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4573 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4574 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4575 # so that the user can short-circuit this test for compilers unknown to
4576 # Autoconf.
4577 for ac_file in $ac_files ''
4578 do
4579 test -f "$ac_file" || continue
4580 case $ac_file in
4581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4582 ;;
4583 [ab].out )
4584 # We found the default executable, but exeext='' is most
4585 # certainly right.
4586 break;;
4587 *.* )
4588 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4589 then :; else
4590 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4591 fi
4592 # We set ac_cv_exeext here because the later test for it is not
4593 # safe: cross compilers may not add the suffix if given an '-o'
4594 # argument, so we may need to know it at that point already.
4595 # Even if this section looks crufty: it has the advantage of
4596 # actually working.
4597 break;;
4598 * )
4599 break;;
4600 esac
4601 done
4602 test "$ac_cv_exeext" = no && ac_cv_exeext=
4603
4604 else case e in #(
4605 e) ac_file='' ;;
4606 esac
4607 fi
4608 if test -z "$ac_file"
4609 then :
4610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4611 printf "%s\n" "no" >&6; }
4612 printf "%s\n" "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4614
4615 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4616 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4617 as_fn_error 77 "C compiler cannot create executables
4618 See 'config.log' for more details" "$LINENO" 5; }
4619 else case e in #(
4620 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4621 printf "%s\n" "yes" >&6; } ;;
4622 esac
4623 fi
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4625 printf %s "checking for C compiler default output file name... " >&6; }
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4627 printf "%s\n" "$ac_file" >&6; }
4628 ac_exeext=$ac_cv_exeext
4629
4630 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4631 ac_clean_files=$ac_clean_files_save
4632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4633 printf %s "checking for suffix of executables... " >&6; }
4634 if { { ac_try="$ac_link"
4635 case "(($ac_try" in
4636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640 printf "%s\n" "$ac_try_echo"; } >&5
4641 (eval "$ac_link") 2>&5
4642 ac_status=$?
4643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644 test $ac_status = 0; }
4645 then :
4646 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4647 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4648 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4649 # 'rm'.
4650 for ac_file in conftest.exe conftest conftest.*; do
4651 test -f "$ac_file" || continue
4652 case $ac_file in
4653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4654 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4655 break;;
4656 * ) break;;
4657 esac
4658 done
4659 else case e in #(
4660 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4661 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4662 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4663 See 'config.log' for more details" "$LINENO" 5; } ;;
4664 esac
4665 fi
4666 rm -f conftest conftest$ac_cv_exeext
4667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4668 printf "%s\n" "$ac_cv_exeext" >&6; }
4669
4670 rm -f conftest.$ac_ext
4671 EXEEXT=$ac_cv_exeext
4672 ac_exeext=$EXEEXT
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675 #include <stdio.h>
4676 int
4677 main (void)
4678 {
4679 FILE *f = fopen ("conftest.out", "w");
4680 if (!f)
4681 return 1;
4682 return ferror (f) || fclose (f) != 0;
4683
4684 ;
4685 return 0;
4686 }
4687 _ACEOF
4688 ac_clean_files="$ac_clean_files conftest.out"
4689 # Check that the compiler produces executables we can run. If not, either
4690 # the compiler is broken, or we cross compile.
4691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4692 printf %s "checking whether we are cross compiling... " >&6; }
4693 if test "$cross_compiling" != yes; then
4694 { { ac_try="$ac_link"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 printf "%s\n" "$ac_try_echo"; } >&5
4701 (eval "$ac_link") 2>&5
4702 ac_status=$?
4703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4704 test $ac_status = 0; }
4705 if { ac_try='./conftest$ac_cv_exeext'
4706 { { case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 printf "%s\n" "$ac_try_echo"; } >&5
4712 (eval "$ac_try") 2>&5
4713 ac_status=$?
4714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }; }; then
4716 cross_compiling=no
4717 else
4718 if test "$cross_compiling" = maybe; then
4719 cross_compiling=yes
4720 else
4721 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4722 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4723 as_fn_error 77 "cannot run C compiled programs.
4724 If you meant to cross compile, use '--host'.
4725 See 'config.log' for more details" "$LINENO" 5; }
4726 fi
4727 fi
4728 fi
4729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4730 printf "%s\n" "$cross_compiling" >&6; }
4731
4732 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4733 conftest.o conftest.obj conftest.out
4734 ac_clean_files=$ac_clean_files_save
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4736 printf %s "checking for suffix of object files... " >&6; }
4737 if test ${ac_cv_objext+y}
4738 then :
4739 printf %s "(cached) " >&6
4740 else case e in #(
4741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743
4744 int
4745 main (void)
4746 {
4747
4748 ;
4749 return 0;
4750 }
4751 _ACEOF
4752 rm -f conftest.o conftest.obj
4753 if { { ac_try="$ac_compile"
4754 case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757 esac
4758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759 printf "%s\n" "$ac_try_echo"; } >&5
4760 (eval "$ac_compile") 2>&5
4761 ac_status=$?
4762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763 test $ac_status = 0; }
4764 then :
4765 for ac_file in conftest.o conftest.obj conftest.*; do
4766 test -f "$ac_file" || continue;
4767 case $ac_file in
4768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4770 break;;
4771 esac
4772 done
4773 else case e in #(
4774 e) printf "%s\n" "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4778 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4779 as_fn_error $? "cannot compute suffix of object files: cannot compile
4780 See 'config.log' for more details" "$LINENO" 5; } ;;
4781 esac
4782 fi
4783 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4784 esac
4785 fi
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4787 printf "%s\n" "$ac_cv_objext" >&6; }
4788 OBJEXT=$ac_cv_objext
4789 ac_objext=$OBJEXT
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4791 printf %s "checking whether the compiler supports GNU C... " >&6; }
4792 if test ${ac_cv_c_compiler_gnu+y}
4793 then :
4794 printf %s "(cached) " >&6
4795 else case e in #(
4796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798
4799 int
4800 main (void)
4801 {
4802 #ifndef __GNUC__
4803 choke me
4804 #endif
4805
4806 ;
4807 return 0;
4808 }
4809 _ACEOF
4810 if ac_fn_c_try_compile "$LINENO"
4811 then :
4812 ac_compiler_gnu=yes
4813 else case e in #(
4814 e) ac_compiler_gnu=no ;;
4815 esac
4816 fi
4817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4818 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4819 ;;
4820 esac
4821 fi
4822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4823 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4825
4826 if test $ac_compiler_gnu = yes; then
4827 GCC=yes
4828 else
4829 GCC=
4830 fi
4831 ac_test_CFLAGS=${CFLAGS+y}
4832 ac_save_CFLAGS=$CFLAGS
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4834 printf %s "checking whether $CC accepts -g... " >&6; }
4835 if test ${ac_cv_prog_cc_g+y}
4836 then :
4837 printf %s "(cached) " >&6
4838 else case e in #(
4839 e) ac_save_c_werror_flag=$ac_c_werror_flag
4840 ac_c_werror_flag=yes
4841 ac_cv_prog_cc_g=no
4842 CFLAGS="-g"
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845
4846 int
4847 main (void)
4848 {
4849
4850 ;
4851 return 0;
4852 }
4853 _ACEOF
4854 if ac_fn_c_try_compile "$LINENO"
4855 then :
4856 ac_cv_prog_cc_g=yes
4857 else case e in #(
4858 e) CFLAGS=""
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861
4862 int
4863 main (void)
4864 {
4865
4866 ;
4867 return 0;
4868 }
4869 _ACEOF
4870 if ac_fn_c_try_compile "$LINENO"
4871 then :
4872
4873 else case e in #(
4874 e) ac_c_werror_flag=$ac_save_c_werror_flag
4875 CFLAGS="-g"
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4878
4879 int
4880 main (void)
4881 {
4882
4883 ;
4884 return 0;
4885 }
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"
4888 then :
4889 ac_cv_prog_cc_g=yes
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4892 esac
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4895 esac
4896 fi
4897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4898 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4899 esac
4900 fi
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4902 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4903 if test $ac_test_CFLAGS; then
4904 CFLAGS=$ac_save_CFLAGS
4905 elif test $ac_cv_prog_cc_g = yes; then
4906 if test "$GCC" = yes; then
4907 CFLAGS="-g -O2"
4908 else
4909 CFLAGS="-g"
4910 fi
4911 else
4912 if test "$GCC" = yes; then
4913 CFLAGS="-O2"
4914 else
4915 CFLAGS=
4916 fi
4917 fi
4918 ac_prog_cc_stdc=no
4919 if test x$ac_prog_cc_stdc = xno
4920 then :
4921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4922 printf %s "checking for $CC option to enable C11 features... " >&6; }
4923 if test ${ac_cv_prog_cc_c11+y}
4924 then :
4925 printf %s "(cached) " >&6
4926 else case e in #(
4927 e) ac_cv_prog_cc_c11=no
4928 ac_save_CC=$CC
4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4930 /* end confdefs.h. */
4931 $ac_c_conftest_c11_program
4932 _ACEOF
4933 for ac_arg in '' -std=gnu11
4934 do
4935 CC="$ac_save_CC $ac_arg"
4936 if ac_fn_c_try_compile "$LINENO"
4937 then :
4938 ac_cv_prog_cc_c11=$ac_arg
4939 fi
4940 rm -f core conftest.err conftest.$ac_objext conftest.beam
4941 test "x$ac_cv_prog_cc_c11" != "xno" && break
4942 done
4943 rm -f conftest.$ac_ext
4944 CC=$ac_save_CC ;;
4945 esac
4946 fi
4947
4948 if test "x$ac_cv_prog_cc_c11" = xno
4949 then :
4950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4951 printf "%s\n" "unsupported" >&6; }
4952 else case e in #(
4953 e) if test "x$ac_cv_prog_cc_c11" = x
4954 then :
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4956 printf "%s\n" "none needed" >&6; }
4957 else case e in #(
4958 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4959 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4960 CC="$CC $ac_cv_prog_cc_c11" ;;
4961 esac
4962 fi
4963 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4964 ac_prog_cc_stdc=c11 ;;
4965 esac
4966 fi
4967 fi
4968 if test x$ac_prog_cc_stdc = xno
4969 then :
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4971 printf %s "checking for $CC option to enable C99 features... " >&6; }
4972 if test ${ac_cv_prog_cc_c99+y}
4973 then :
4974 printf %s "(cached) " >&6
4975 else case e in #(
4976 e) ac_cv_prog_cc_c99=no
4977 ac_save_CC=$CC
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4980 $ac_c_conftest_c99_program
4981 _ACEOF
4982 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4983 do
4984 CC="$ac_save_CC $ac_arg"
4985 if ac_fn_c_try_compile "$LINENO"
4986 then :
4987 ac_cv_prog_cc_c99=$ac_arg
4988 fi
4989 rm -f core conftest.err conftest.$ac_objext conftest.beam
4990 test "x$ac_cv_prog_cc_c99" != "xno" && break
4991 done
4992 rm -f conftest.$ac_ext
4993 CC=$ac_save_CC ;;
4994 esac
4995 fi
4996
4997 if test "x$ac_cv_prog_cc_c99" = xno
4998 then :
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5000 printf "%s\n" "unsupported" >&6; }
5001 else case e in #(
5002 e) if test "x$ac_cv_prog_cc_c99" = x
5003 then :
5004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5005 printf "%s\n" "none needed" >&6; }
5006 else case e in #(
5007 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5008 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5009 CC="$CC $ac_cv_prog_cc_c99" ;;
5010 esac
5011 fi
5012 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5013 ac_prog_cc_stdc=c99 ;;
5014 esac
5015 fi
5016 fi
5017 if test x$ac_prog_cc_stdc = xno
5018 then :
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5020 printf %s "checking for $CC option to enable C89 features... " >&6; }
5021 if test ${ac_cv_prog_cc_c89+y}
5022 then :
5023 printf %s "(cached) " >&6
5024 else case e in #(
5025 e) ac_cv_prog_cc_c89=no
5026 ac_save_CC=$CC
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5029 $ac_c_conftest_c89_program
5030 _ACEOF
5031 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5032 do
5033 CC="$ac_save_CC $ac_arg"
5034 if ac_fn_c_try_compile "$LINENO"
5035 then :
5036 ac_cv_prog_cc_c89=$ac_arg
5037 fi
5038 rm -f core conftest.err conftest.$ac_objext conftest.beam
5039 test "x$ac_cv_prog_cc_c89" != "xno" && break
5040 done
5041 rm -f conftest.$ac_ext
5042 CC=$ac_save_CC ;;
5043 esac
5044 fi
5045
5046 if test "x$ac_cv_prog_cc_c89" = xno
5047 then :
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5049 printf "%s\n" "unsupported" >&6; }
5050 else case e in #(
5051 e) if test "x$ac_cv_prog_cc_c89" = x
5052 then :
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5054 printf "%s\n" "none needed" >&6; }
5055 else case e in #(
5056 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5057 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5058 CC="$CC $ac_cv_prog_cc_c89" ;;
5059 esac
5060 fi
5061 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5062 ac_prog_cc_stdc=c89 ;;
5063 esac
5064 fi
5065 fi
5066
5067 ac_ext=c
5068 ac_cpp='$CPP $CPPFLAGS'
5069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5072
5073
5074 ac_ext=c
5075 ac_cpp='$CPP $CPPFLAGS'
5076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5080 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5081 if test ${am_cv_prog_cc_c_o+y}
5082 then :
5083 printf %s "(cached) " >&6
5084 else case e in #(
5085 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087
5088 int
5089 main (void)
5090 {
5091
5092 ;
5093 return 0;
5094 }
5095 _ACEOF
5096 # Make sure it works both with $CC and with simple cc.
5097 # Following AC_PROG_CC_C_O, we do the test twice because some
5098 # compilers refuse to overwrite an existing .o file with -o,
5099 # though they will create one.
5100 am_cv_prog_cc_c_o=yes
5101 for am_i in 1 2; do
5102 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5103 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); } \
5107 && test -f conftest2.$ac_objext; then
5108 : OK
5109 else
5110 am_cv_prog_cc_c_o=no
5111 break
5112 fi
5113 done
5114 rm -f core conftest*
5115 unset am_i ;;
5116 esac
5117 fi
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5119 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5120 if test "$am_cv_prog_cc_c_o" != yes; then
5121 # Losing compiler, so override with the script.
5122 # FIXME: It is wrong to rewrite CC.
5123 # But if we don't then we get into trouble of one sort or another.
5124 # A longer-term fix would be to have automake use am__CC in this case,
5125 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5126 CC="$am_aux_dir/compile $CC"
5127 fi
5128 ac_ext=c
5129 ac_cpp='$CPP $CPPFLAGS'
5130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5133
5134
5135 depcc="$CC" am_compiler_list=
5136
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5138 printf %s "checking dependency style of $depcc... " >&6; }
5139 if test ${am_cv_CC_dependencies_compiler_type+y}
5140 then :
5141 printf %s "(cached) " >&6
5142 else case e in #(
5143 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5144 # We make a subdir and do the tests there. Otherwise we can end up
5145 # making bogus files that we don't know about and never remove. For
5146 # instance it was reported that on HP-UX the gcc test will end up
5147 # making a dummy file named 'D' -- because '-MD' means "put the output
5148 # in D".
5149 rm -rf conftest.dir
5150 mkdir conftest.dir
5151 # Copy depcomp to subdir because otherwise we won't find it if we're
5152 # using a relative directory.
5153 cp "$am_depcomp" conftest.dir
5154 cd conftest.dir
5155 # We will build objects and dependencies in a subdirectory because
5156 # it helps to detect inapplicable dependency modes. For instance
5157 # both Tru64's cc and ICC support -MD to output dependencies as a
5158 # side effect of compilation, but ICC will put the dependencies in
5159 # the current directory while Tru64 will put them in the object
5160 # directory.
5161 mkdir sub
5162
5163 am_cv_CC_dependencies_compiler_type=none
5164 if test "$am_compiler_list" = ""; then
5165 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5166 fi
5167 am__universal=false
5168 case " $depcc " in #(
5169 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5170 esac
5171
5172 for depmode in $am_compiler_list; do
5173 # Setup a source with many dependencies, because some compilers
5174 # like to wrap large dependency lists on column 80 (with \), and
5175 # we should not choose a depcomp mode which is confused by this.
5176 #
5177 # We need to recreate these files for each test, as the compiler may
5178 # overwrite some of them when testing with obscure command lines.
5179 # This happens at least with the AIX C compiler.
5180 : > sub/conftest.c
5181 for i in 1 2 3 4 5 6; do
5182 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5183 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5184 # Solaris 10 /bin/sh.
5185 echo '/* dummy */' > sub/conftst$i.h
5186 done
5187 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5188
5189 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5190 # mode. It turns out that the SunPro C++ compiler does not properly
5191 # handle '-M -o', and we need to detect this. Also, some Intel
5192 # versions had trouble with output in subdirs.
5193 am__obj=sub/conftest.${OBJEXT-o}
5194 am__minus_obj="-o $am__obj"
5195 case $depmode in
5196 gcc)
5197 # This depmode causes a compiler race in universal mode.
5198 test "$am__universal" = false || continue
5199 ;;
5200 nosideeffect)
5201 # After this tag, mechanisms are not by side-effect, so they'll
5202 # only be used when explicitly requested.
5203 if test "x$enable_dependency_tracking" = xyes; then
5204 continue
5205 else
5206 break
5207 fi
5208 ;;
5209 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5210 # This compiler won't grok '-c -o', but also, the minuso test has
5211 # not run yet. These depmodes are late enough in the game, and
5212 # so weak that their functioning should not be impacted.
5213 am__obj=conftest.${OBJEXT-o}
5214 am__minus_obj=
5215 ;;
5216 none) break ;;
5217 esac
5218 if depmode=$depmode \
5219 source=sub/conftest.c object=$am__obj \
5220 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5221 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5222 >/dev/null 2>conftest.err &&
5223 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5224 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5225 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5226 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5227 # icc doesn't choke on unknown options, it will just issue warnings
5228 # or remarks (even with -Werror). So we grep stderr for any message
5229 # that says an option was ignored or not supported.
5230 # When given -MP, icc 7.0 and 7.1 complain thus:
5231 # icc: Command line warning: ignoring option '-M'; no argument required
5232 # The diagnosis changed in icc 8.0:
5233 # icc: Command line remark: option '-MP' not supported
5234 if (grep 'ignoring option' conftest.err ||
5235 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5236 am_cv_CC_dependencies_compiler_type=$depmode
5237 break
5238 fi
5239 fi
5240 done
5241
5242 cd ..
5243 rm -rf conftest.dir
5244 else
5245 am_cv_CC_dependencies_compiler_type=none
5246 fi
5247 ;;
5248 esac
5249 fi
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5251 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5252 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5253
5254 if
5255 test "x$enable_dependency_tracking" != xno \
5256 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5257 am__fastdepCC_TRUE=
5258 am__fastdepCC_FALSE='#'
5259 else
5260 am__fastdepCC_TRUE='#'
5261 am__fastdepCC_FALSE=
5262 fi
5263
5264
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5266 printf %s "checking for a sed that does not truncate output... " >&6; }
5267 if test ${ac_cv_path_SED+y}
5268 then :
5269 printf %s "(cached) " >&6
5270 else case e in #(
5271 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5272 for ac_i in 1 2 3 4 5 6 7; do
5273 ac_script="$ac_script$as_nl$ac_script"
5274 done
5275 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5276 { ac_script=; unset ac_script;}
5277 if test -z "$SED"; then
5278 ac_path_SED_found=false
5279 # Loop through the user's path and test for each of PROGNAME-LIST
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283 IFS=$as_save_IFS
5284 case $as_dir in #(((
5285 '') as_dir=./ ;;
5286 */) ;;
5287 *) as_dir=$as_dir/ ;;
5288 esac
5289 for ac_prog in sed gsed
5290 do
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5293 as_fn_executable_p "$ac_path_SED" || continue
5294 # Check for GNU ac_path_SED and select it if it is found.
5295 # Check for GNU $ac_path_SED
5296 case `"$ac_path_SED" --version 2>&1` in #(
5297 *GNU*)
5298 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5299 #(
5300 *)
5301 ac_count=0
5302 printf %s 0123456789 >"conftest.in"
5303 while :
5304 do
5305 cat "conftest.in" "conftest.in" >"conftest.tmp"
5306 mv "conftest.tmp" "conftest.in"
5307 cp "conftest.in" "conftest.nl"
5308 printf "%s\n" '' >> "conftest.nl"
5309 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5310 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5311 as_fn_arith $ac_count + 1 && ac_count=$as_val
5312 if test $ac_count -gt ${ac_path_SED_max-0}; then
5313 # Best one so far, save it but keep looking for a better one
5314 ac_cv_path_SED="$ac_path_SED"
5315 ac_path_SED_max=$ac_count
5316 fi
5317 # 10*(2^10) chars as input seems more than enough
5318 test $ac_count -gt 10 && break
5319 done
5320 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5321 esac
5322
5323 $ac_path_SED_found && break 3
5324 done
5325 done
5326 done
5327 IFS=$as_save_IFS
5328 if test -z "$ac_cv_path_SED"; then
5329 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5330 fi
5331 else
5332 ac_cv_path_SED=$SED
5333 fi
5334 ;;
5335 esac
5336 fi
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5338 printf "%s\n" "$ac_cv_path_SED" >&6; }
5339 SED="$ac_cv_path_SED"
5340 rm -f conftest.sed
5341
5342 test -z "$SED" && SED=sed
5343 Xsed="$SED -e 1s/^X//"
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5356 printf %s "checking for grep that handles long lines and -e... " >&6; }
5357 if test ${ac_cv_path_GREP+y}
5358 then :
5359 printf %s "(cached) " >&6
5360 else case e in #(
5361 e) if test -z "$GREP"; then
5362 ac_path_GREP_found=false
5363 # Loop through the user's path and test for each of PROGNAME-LIST
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5365 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5366 do
5367 IFS=$as_save_IFS
5368 case $as_dir in #(((
5369 '') as_dir=./ ;;
5370 */) ;;
5371 *) as_dir=$as_dir/ ;;
5372 esac
5373 for ac_prog in grep ggrep
5374 do
5375 for ac_exec_ext in '' $ac_executable_extensions; do
5376 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5377 as_fn_executable_p "$ac_path_GREP" || continue
5378 # Check for GNU ac_path_GREP and select it if it is found.
5379 # Check for GNU $ac_path_GREP
5380 case `"$ac_path_GREP" --version 2>&1` in #(
5381 *GNU*)
5382 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5383 #(
5384 *)
5385 ac_count=0
5386 printf %s 0123456789 >"conftest.in"
5387 while :
5388 do
5389 cat "conftest.in" "conftest.in" >"conftest.tmp"
5390 mv "conftest.tmp" "conftest.in"
5391 cp "conftest.in" "conftest.nl"
5392 printf "%s\n" 'GREP' >> "conftest.nl"
5393 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5395 as_fn_arith $ac_count + 1 && ac_count=$as_val
5396 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5397 # Best one so far, save it but keep looking for a better one
5398 ac_cv_path_GREP="$ac_path_GREP"
5399 ac_path_GREP_max=$ac_count
5400 fi
5401 # 10*(2^10) chars as input seems more than enough
5402 test $ac_count -gt 10 && break
5403 done
5404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5405 esac
5406
5407 $ac_path_GREP_found && break 3
5408 done
5409 done
5410 done
5411 IFS=$as_save_IFS
5412 if test -z "$ac_cv_path_GREP"; then
5413 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5414 fi
5415 else
5416 ac_cv_path_GREP=$GREP
5417 fi
5418 ;;
5419 esac
5420 fi
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5422 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5423 GREP="$ac_cv_path_GREP"
5424
5425
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5427 printf %s "checking for egrep... " >&6; }
5428 if test ${ac_cv_path_EGREP+y}
5429 then :
5430 printf %s "(cached) " >&6
5431 else case e in #(
5432 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5433 then ac_cv_path_EGREP="$GREP -E"
5434 else
5435 if test -z "$EGREP"; then
5436 ac_path_EGREP_found=false
5437 # Loop through the user's path and test for each of PROGNAME-LIST
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5440 do
5441 IFS=$as_save_IFS
5442 case $as_dir in #(((
5443 '') as_dir=./ ;;
5444 */) ;;
5445 *) as_dir=$as_dir/ ;;
5446 esac
5447 for ac_prog in egrep
5448 do
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5451 as_fn_executable_p "$ac_path_EGREP" || continue
5452 # Check for GNU ac_path_EGREP and select it if it is found.
5453 # Check for GNU $ac_path_EGREP
5454 case `"$ac_path_EGREP" --version 2>&1` in #(
5455 *GNU*)
5456 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5457 #(
5458 *)
5459 ac_count=0
5460 printf %s 0123456789 >"conftest.in"
5461 while :
5462 do
5463 cat "conftest.in" "conftest.in" >"conftest.tmp"
5464 mv "conftest.tmp" "conftest.in"
5465 cp "conftest.in" "conftest.nl"
5466 printf "%s\n" 'EGREP' >> "conftest.nl"
5467 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5469 as_fn_arith $ac_count + 1 && ac_count=$as_val
5470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5471 # Best one so far, save it but keep looking for a better one
5472 ac_cv_path_EGREP="$ac_path_EGREP"
5473 ac_path_EGREP_max=$ac_count
5474 fi
5475 # 10*(2^10) chars as input seems more than enough
5476 test $ac_count -gt 10 && break
5477 done
5478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5479 esac
5480
5481 $ac_path_EGREP_found && break 3
5482 done
5483 done
5484 done
5485 IFS=$as_save_IFS
5486 if test -z "$ac_cv_path_EGREP"; then
5487 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5488 fi
5489 else
5490 ac_cv_path_EGREP=$EGREP
5491 fi
5492
5493 fi ;;
5494 esac
5495 fi
5496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5497 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5498 EGREP="$ac_cv_path_EGREP"
5499
5500 EGREP_TRADITIONAL=$EGREP
5501 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5502
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5504 printf %s "checking for fgrep... " >&6; }
5505 if test ${ac_cv_path_FGREP+y}
5506 then :
5507 printf %s "(cached) " >&6
5508 else case e in #(
5509 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5510 then ac_cv_path_FGREP="$GREP -F"
5511 else
5512 if test -z "$FGREP"; then
5513 ac_path_FGREP_found=false
5514 # Loop through the user's path and test for each of PROGNAME-LIST
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5517 do
5518 IFS=$as_save_IFS
5519 case $as_dir in #(((
5520 '') as_dir=./ ;;
5521 */) ;;
5522 *) as_dir=$as_dir/ ;;
5523 esac
5524 for ac_prog in fgrep
5525 do
5526 for ac_exec_ext in '' $ac_executable_extensions; do
5527 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5528 as_fn_executable_p "$ac_path_FGREP" || continue
5529 # Check for GNU ac_path_FGREP and select it if it is found.
5530 # Check for GNU $ac_path_FGREP
5531 case `"$ac_path_FGREP" --version 2>&1` in #(
5532 *GNU*)
5533 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5534 #(
5535 *)
5536 ac_count=0
5537 printf %s 0123456789 >"conftest.in"
5538 while :
5539 do
5540 cat "conftest.in" "conftest.in" >"conftest.tmp"
5541 mv "conftest.tmp" "conftest.in"
5542 cp "conftest.in" "conftest.nl"
5543 printf "%s\n" 'FGREP' >> "conftest.nl"
5544 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5546 as_fn_arith $ac_count + 1 && ac_count=$as_val
5547 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5548 # Best one so far, save it but keep looking for a better one
5549 ac_cv_path_FGREP="$ac_path_FGREP"
5550 ac_path_FGREP_max=$ac_count
5551 fi
5552 # 10*(2^10) chars as input seems more than enough
5553 test $ac_count -gt 10 && break
5554 done
5555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5556 esac
5557
5558 $ac_path_FGREP_found && break 3
5559 done
5560 done
5561 done
5562 IFS=$as_save_IFS
5563 if test -z "$ac_cv_path_FGREP"; then
5564 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5565 fi
5566 else
5567 ac_cv_path_FGREP=$FGREP
5568 fi
5569
5570 fi ;;
5571 esac
5572 fi
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5574 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5575 FGREP="$ac_cv_path_FGREP"
5576
5577
5578 test -z "$GREP" && GREP=grep
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598 # Check whether --with-gnu-ld was given.
5599 if test ${with_gnu_ld+y}
5600 then :
5601 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5602 else case e in #(
5603 e) with_gnu_ld=no ;;
5604 esac
5605 fi
5606
5607 ac_prog=ld
5608 if test yes = "$GCC"; then
5609 # Check if gcc -print-prog-name=ld gives a path.
5610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5611 printf %s "checking for ld used by $CC... " >&6; }
5612 case $host in
5613 *-*-mingw* | *-*-windows*)
5614 # gcc leaves a trailing carriage return, which upsets mingw
5615 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5616 *)
5617 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5618 esac
5619 case $ac_prog in
5620 # Accept absolute paths.
5621 [\\/]* | ?:[\\/]*)
5622 re_direlt='/[^/][^/]*/\.\./'
5623 # Canonicalize the pathname of ld
5624 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5625 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5626 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5627 done
5628 test -z "$LD" && LD=$ac_prog
5629 ;;
5630 "")
5631 # If it fails, then pretend we aren't using GCC.
5632 ac_prog=ld
5633 ;;
5634 *)
5635 # If it is relative, then search for the first ld in PATH.
5636 with_gnu_ld=unknown
5637 ;;
5638 esac
5639 elif test yes = "$with_gnu_ld"; then
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5641 printf %s "checking for GNU ld... " >&6; }
5642 else
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5644 printf %s "checking for non-GNU ld... " >&6; }
5645 fi
5646 if test ${lt_cv_path_LD+y}
5647 then :
5648 printf %s "(cached) " >&6
5649 else case e in #(
5650 e) if test -z "$LD"; then
5651 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5652 for ac_dir in $PATH; do
5653 IFS=$lt_save_ifs
5654 test -z "$ac_dir" && ac_dir=.
5655 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5656 lt_cv_path_LD=$ac_dir/$ac_prog
5657 # Check to see if the program is GNU ld. I'd rather use --version,
5658 # but apparently some variants of GNU ld only accept -v.
5659 # Break only if it was the GNU/non-GNU ld that we prefer.
5660 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5661 *GNU* | *'with BFD'*)
5662 test no != "$with_gnu_ld" && break
5663 ;;
5664 *)
5665 test yes != "$with_gnu_ld" && break
5666 ;;
5667 esac
5668 fi
5669 done
5670 IFS=$lt_save_ifs
5671 else
5672 lt_cv_path_LD=$LD # Let the user override the test with a path.
5673 fi ;;
5674 esac
5675 fi
5676
5677 LD=$lt_cv_path_LD
5678 if test -n "$LD"; then
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5680 printf "%s\n" "$LD" >&6; }
5681 else
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5683 printf "%s\n" "no" >&6; }
5684 fi
5685 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5687 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5688 if test ${lt_cv_prog_gnu_ld+y}
5689 then :
5690 printf %s "(cached) " >&6
5691 else case e in #(
5692 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5693 case `$LD -v 2>&1 </dev/null` in
5694 *GNU* | *'with BFD'*)
5695 lt_cv_prog_gnu_ld=yes
5696 ;;
5697 *)
5698 lt_cv_prog_gnu_ld=no
5699 ;;
5700 esac ;;
5701 esac
5702 fi
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5704 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5705 with_gnu_ld=$lt_cv_prog_gnu_ld
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5716 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5717 if test ${lt_cv_path_NM+y}
5718 then :
5719 printf %s "(cached) " >&6
5720 else case e in #(
5721 e) if test -n "$NM"; then
5722 # Let the user override the test.
5723 lt_cv_path_NM=$NM
5724 else
5725 lt_nm_to_check=${ac_tool_prefix}nm
5726 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5727 lt_nm_to_check="$lt_nm_to_check nm"
5728 fi
5729 for lt_tmp_nm in $lt_nm_to_check; do
5730 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5731 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5732 IFS=$lt_save_ifs
5733 test -z "$ac_dir" && ac_dir=.
5734 tmp_nm=$ac_dir/$lt_tmp_nm
5735 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5736 # Check to see if the nm accepts a BSD-compat flag.
5737 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5738 # nm: unknown option "B" ignored
5739 # Tru64's nm complains that /dev/null is an invalid object file
5740 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5741 case $build_os in
5742 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5743 *) lt_bad_file=/dev/null ;;
5744 esac
5745 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5746 *$lt_bad_file* | *'Invalid file or object type'*)
5747 lt_cv_path_NM="$tmp_nm -B"
5748 break 2
5749 ;;
5750 *)
5751 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5752 */dev/null*)
5753 lt_cv_path_NM="$tmp_nm -p"
5754 break 2
5755 ;;
5756 *)
5757 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5758 continue # so that we can try to find one that supports BSD flags
5759 ;;
5760 esac
5761 ;;
5762 esac
5763 fi
5764 done
5765 IFS=$lt_save_ifs
5766 done
5767 : ${lt_cv_path_NM=no}
5768 fi ;;
5769 esac
5770 fi
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5772 printf "%s\n" "$lt_cv_path_NM" >&6; }
5773 if test no != "$lt_cv_path_NM"; then
5774 NM=$lt_cv_path_NM
5775 else
5776 # Didn't find any BSD compatible name lister, look for dumpbin.
5777 if test -n "$DUMPBIN"; then :
5778 # Let the user override the test.
5779 else
5780 if test -n "$ac_tool_prefix"; then
5781 for ac_prog in dumpbin "link -dump"
5782 do
5783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5786 printf %s "checking for $ac_word... " >&6; }
5787 if test ${ac_cv_prog_DUMPBIN+y}
5788 then :
5789 printf %s "(cached) " >&6
5790 else case e in #(
5791 e) if test -n "$DUMPBIN"; then
5792 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5793 else
5794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795 for as_dir in $PATH
5796 do
5797 IFS=$as_save_IFS
5798 case $as_dir in #(((
5799 '') as_dir=./ ;;
5800 */) ;;
5801 *) as_dir=$as_dir/ ;;
5802 esac
5803 for ac_exec_ext in '' $ac_executable_extensions; do
5804 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5805 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5806 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5807 break 2
5808 fi
5809 done
5810 done
5811 IFS=$as_save_IFS
5812
5813 fi ;;
5814 esac
5815 fi
5816 DUMPBIN=$ac_cv_prog_DUMPBIN
5817 if test -n "$DUMPBIN"; then
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5819 printf "%s\n" "$DUMPBIN" >&6; }
5820 else
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 printf "%s\n" "no" >&6; }
5823 fi
5824
5825
5826 test -n "$DUMPBIN" && break
5827 done
5828 fi
5829 if test -z "$DUMPBIN"; then
5830 ac_ct_DUMPBIN=$DUMPBIN
5831 for ac_prog in dumpbin "link -dump"
5832 do
5833 # Extract the first word of "$ac_prog", so it can be a program name with args.
5834 set dummy $ac_prog; ac_word=$2
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 printf %s "checking for $ac_word... " >&6; }
5837 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else case e in #(
5841 e) if test -n "$ac_ct_DUMPBIN"; then
5842 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5843 else
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 for as_dir in $PATH
5846 do
5847 IFS=$as_save_IFS
5848 case $as_dir in #(((
5849 '') as_dir=./ ;;
5850 */) ;;
5851 *) as_dir=$as_dir/ ;;
5852 esac
5853 for ac_exec_ext in '' $ac_executable_extensions; do
5854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5855 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5857 break 2
5858 fi
5859 done
5860 done
5861 IFS=$as_save_IFS
5862
5863 fi ;;
5864 esac
5865 fi
5866 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5867 if test -n "$ac_ct_DUMPBIN"; then
5868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5869 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5870 else
5871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 printf "%s\n" "no" >&6; }
5873 fi
5874
5875
5876 test -n "$ac_ct_DUMPBIN" && break
5877 done
5878
5879 if test "x$ac_ct_DUMPBIN" = x; then
5880 DUMPBIN=":"
5881 else
5882 case $cross_compiling:$ac_tool_warned in
5883 yes:)
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5885 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5886 ac_tool_warned=yes ;;
5887 esac
5888 DUMPBIN=$ac_ct_DUMPBIN
5889 fi
5890 fi
5891
5892 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5893 *COFF*)
5894 DUMPBIN="$DUMPBIN -symbols -headers"
5895 ;;
5896 *)
5897 DUMPBIN=:
5898 ;;
5899 esac
5900 fi
5901
5902 if test : != "$DUMPBIN"; then
5903 NM=$DUMPBIN
5904 fi
5905 fi
5906 test -z "$NM" && NM=nm
5907
5908
5909
5910
5911
5912
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5914 printf %s "checking the name lister ($NM) interface... " >&6; }
5915 if test ${lt_cv_nm_interface+y}
5916 then :
5917 printf %s "(cached) " >&6
5918 else case e in #(
5919 e) lt_cv_nm_interface="BSD nm"
5920 echo "int some_variable = 0;" > conftest.$ac_ext
5921 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5922 (eval "$ac_compile" 2>conftest.err)
5923 cat conftest.err >&5
5924 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5925 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5926 cat conftest.err >&5
5927 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5928 cat conftest.out >&5
5929 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5930 lt_cv_nm_interface="MS dumpbin"
5931 fi
5932 rm -f conftest* ;;
5933 esac
5934 fi
5935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5936 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5937
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5939 printf %s "checking whether ln -s works... " >&6; }
5940 LN_S=$as_ln_s
5941 if test "$LN_S" = "ln -s"; then
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5943 printf "%s\n" "yes" >&6; }
5944 else
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5946 printf "%s\n" "no, using $LN_S" >&6; }
5947 fi
5948
5949 # find the maximum length of command line arguments
5950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5951 printf %s "checking the maximum length of command line arguments... " >&6; }
5952 if test ${lt_cv_sys_max_cmd_len+y}
5953 then :
5954 printf %s "(cached) " >&6
5955 else case e in #(
5956 e) i=0
5957 teststring=ABCD
5958
5959 case $build_os in
5960 msdosdjgpp*)
5961 # On DJGPP, this test can blow up pretty badly due to problems in libc
5962 # (any single argument exceeding 2000 bytes causes a buffer overrun
5963 # during glob expansion). Even if it were fixed, the result of this
5964 # check would be larger than it should be.
5965 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5966 ;;
5967
5968 gnu* | ironclad*)
5969 # Under GNU Hurd and Ironclad, this test is not required because there
5970 # is no limit to the length of command line arguments.
5971 # Libtool will interpret -1 as no limit whatsoever
5972 lt_cv_sys_max_cmd_len=-1;
5973 ;;
5974
5975 cygwin* | mingw* | windows* | cegcc*)
5976 # On Win9x/ME, this test blows up -- it succeeds, but takes
5977 # about 5 minutes as the teststring grows exponentially.
5978 # Worse, since 9x/ME are not pre-emptively multitasking,
5979 # you end up with a "frozen" computer, even though with patience
5980 # the test eventually succeeds (with a max line length of 256k).
5981 # Instead, let's just punt: use the minimum linelength reported by
5982 # all of the supported platforms: 8192 (on NT/2K/XP).
5983 lt_cv_sys_max_cmd_len=8192;
5984 ;;
5985
5986 mint*)
5987 # On MiNT this can take a long time and run out of memory.
5988 lt_cv_sys_max_cmd_len=8192;
5989 ;;
5990
5991 amigaos*)
5992 # On AmigaOS with pdksh, this test takes hours, literally.
5993 # So we just punt and use a minimum line length of 8192.
5994 lt_cv_sys_max_cmd_len=8192;
5995 ;;
5996
5997 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5998 # This has been around since 386BSD, at least. Likely further.
5999 if test -x /sbin/sysctl; then
6000 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6001 elif test -x /usr/sbin/sysctl; then
6002 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6003 else
6004 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6005 fi
6006 # And add a safety zone
6007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6009 ;;
6010
6011 interix*)
6012 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6013 lt_cv_sys_max_cmd_len=196608
6014 ;;
6015
6016 os2*)
6017 # The test takes a long time on OS/2.
6018 lt_cv_sys_max_cmd_len=8192
6019 ;;
6020
6021 osf*)
6022 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6023 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6024 # nice to cause kernel panics so lets avoid the loop below.
6025 # First set a reasonable default.
6026 lt_cv_sys_max_cmd_len=16384
6027 #
6028 if test -x /sbin/sysconfig; then
6029 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6030 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6031 esac
6032 fi
6033 ;;
6034 sco3.2v5*)
6035 lt_cv_sys_max_cmd_len=102400
6036 ;;
6037 sysv5* | sco5v6* | sysv4.2uw2*)
6038 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6039 if test -n "$kargmax"; then
6040 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
6041 else
6042 lt_cv_sys_max_cmd_len=32768
6043 fi
6044 ;;
6045 *)
6046 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6047 if test -n "$lt_cv_sys_max_cmd_len" && \
6048 test undefined != "$lt_cv_sys_max_cmd_len"; then
6049 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6051 else
6052 # Make teststring a little bigger before we do anything with it.
6053 # a 1K string should be a reasonable start.
6054 for i in 1 2 3 4 5 6 7 8; do
6055 teststring=$teststring$teststring
6056 done
6057 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6058 # If test is not a shell built-in, we'll probably end up computing a
6059 # maximum length that is only half of the actual maximum length, but
6060 # we can't tell.
6061 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6062 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6063 test 17 != "$i" # 1/2 MB should be enough
6064 do
6065 i=`expr $i + 1`
6066 teststring=$teststring$teststring
6067 done
6068 # Only check the string length outside the loop.
6069 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6070 teststring=
6071 # Add a significant safety factor because C++ compilers can tack on
6072 # massive amounts of additional arguments before passing them to the
6073 # linker. It appears as though 1/2 is a usable value.
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6075 fi
6076 ;;
6077 esac
6078 ;;
6079 esac
6080 fi
6081
6082 if test -n "$lt_cv_sys_max_cmd_len"; then
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6084 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6085 else
6086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6087 printf "%s\n" "none" >&6; }
6088 fi
6089 max_cmd_len=$lt_cv_sys_max_cmd_len
6090
6091
6092
6093
6094
6095
6096 : ${CP="cp -f"}
6097 : ${MV="mv -f"}
6098 : ${RM="rm -f"}
6099
6100 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6101 lt_unset=unset
6102 else
6103 lt_unset=false
6104 fi
6105
6106
6107
6108
6109
6110 # test EBCDIC or ASCII
6111 case `echo X|tr X '\101'` in
6112 A) # ASCII based system
6113 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6114 lt_SP2NL='tr \040 \012'
6115 lt_NL2SP='tr \015\012 \040\040'
6116 ;;
6117 *) # EBCDIC based system
6118 lt_SP2NL='tr \100 \n'
6119 lt_NL2SP='tr \r\n \100\100'
6120 ;;
6121 esac
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6132 printf %s "checking how to convert $build file names to $host format... " >&6; }
6133 if test ${lt_cv_to_host_file_cmd+y}
6134 then :
6135 printf %s "(cached) " >&6
6136 else case e in #(
6137 e) case $host in
6138 *-*-mingw* )
6139 case $build in
6140 *-*-mingw* | *-*-windows* ) # actually msys
6141 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6142 ;;
6143 *-*-cygwin* )
6144 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6145 ;;
6146 * ) # otherwise, assume *nix
6147 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6148 ;;
6149 esac
6150 ;;
6151 *-*-cygwin* )
6152 case $build in
6153 *-*-mingw* | *-*-windows* ) # actually msys
6154 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6155 ;;
6156 *-*-cygwin* )
6157 lt_cv_to_host_file_cmd=func_convert_file_noop
6158 ;;
6159 * ) # otherwise, assume *nix
6160 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6161 ;;
6162 esac
6163 ;;
6164 * ) # unhandled hosts (and "normal" native builds)
6165 lt_cv_to_host_file_cmd=func_convert_file_noop
6166 ;;
6167 esac
6168 ;;
6169 esac
6170 fi
6171
6172 to_host_file_cmd=$lt_cv_to_host_file_cmd
6173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6174 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6175
6176
6177
6178
6179
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6181 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6182 if test ${lt_cv_to_tool_file_cmd+y}
6183 then :
6184 printf %s "(cached) " >&6
6185 else case e in #(
6186 e) #assume ordinary cross tools, or native build.
6187 lt_cv_to_tool_file_cmd=func_convert_file_noop
6188 case $host in
6189 *-*-mingw* | *-*-windows* )
6190 case $build in
6191 *-*-mingw* | *-*-windows* ) # actually msys
6192 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6193 ;;
6194 esac
6195 ;;
6196 esac
6197 ;;
6198 esac
6199 fi
6200
6201 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6203 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6204
6205
6206
6207
6208
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6210 printf %s "checking for $LD option to reload object files... " >&6; }
6211 if test ${lt_cv_ld_reload_flag+y}
6212 then :
6213 printf %s "(cached) " >&6
6214 else case e in #(
6215 e) lt_cv_ld_reload_flag='-r' ;;
6216 esac
6217 fi
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6219 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6220 reload_flag=$lt_cv_ld_reload_flag
6221 case $reload_flag in
6222 "" | " "*) ;;
6223 *) reload_flag=" $reload_flag" ;;
6224 esac
6225 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 case $host_os in
6227 cygwin* | mingw* | windows* | pw32* | cegcc*)
6228 if test yes != "$GCC"; then
6229 reload_cmds=false
6230 fi
6231 ;;
6232 darwin*)
6233 if test yes = "$GCC"; then
6234 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6235 else
6236 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6237 fi
6238 ;;
6239 esac
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249 # Extract the first word of "file", so it can be a program name with args.
6250 set dummy file; ac_word=$2
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252 printf %s "checking for $ac_word... " >&6; }
6253 if test ${ac_cv_prog_FILECMD+y}
6254 then :
6255 printf %s "(cached) " >&6
6256 else case e in #(
6257 e) if test -n "$FILECMD"; then
6258 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6262 do
6263 IFS=$as_save_IFS
6264 case $as_dir in #(((
6265 '') as_dir=./ ;;
6266 */) ;;
6267 *) as_dir=$as_dir/ ;;
6268 esac
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6271 ac_cv_prog_FILECMD="file"
6272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6273 break 2
6274 fi
6275 done
6276 done
6277 IFS=$as_save_IFS
6278
6279 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6280 fi ;;
6281 esac
6282 fi
6283 FILECMD=$ac_cv_prog_FILECMD
6284 if test -n "$FILECMD"; then
6285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6286 printf "%s\n" "$FILECMD" >&6; }
6287 else
6288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 printf "%s\n" "no" >&6; }
6290 fi
6291
6292
6293
6294
6295
6296
6297
6298
6299 if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6301 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303 printf %s "checking for $ac_word... " >&6; }
6304 if test ${ac_cv_prog_OBJDUMP+y}
6305 then :
6306 printf %s "(cached) " >&6
6307 else case e in #(
6308 e) if test -n "$OBJDUMP"; then
6309 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6310 else
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312 for as_dir in $PATH
6313 do
6314 IFS=$as_save_IFS
6315 case $as_dir in #(((
6316 '') as_dir=./ ;;
6317 */) ;;
6318 *) as_dir=$as_dir/ ;;
6319 esac
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6322 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6324 break 2
6325 fi
6326 done
6327 done
6328 IFS=$as_save_IFS
6329
6330 fi ;;
6331 esac
6332 fi
6333 OBJDUMP=$ac_cv_prog_OBJDUMP
6334 if test -n "$OBJDUMP"; then
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6336 printf "%s\n" "$OBJDUMP" >&6; }
6337 else
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 printf "%s\n" "no" >&6; }
6340 fi
6341
6342
6343 fi
6344 if test -z "$ac_cv_prog_OBJDUMP"; then
6345 ac_ct_OBJDUMP=$OBJDUMP
6346 # Extract the first word of "objdump", so it can be a program name with args.
6347 set dummy objdump; ac_word=$2
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 printf %s "checking for $ac_word... " >&6; }
6350 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6351 then :
6352 printf %s "(cached) " >&6
6353 else case e in #(
6354 e) if test -n "$ac_ct_OBJDUMP"; then
6355 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360 IFS=$as_save_IFS
6361 case $as_dir in #(((
6362 '') as_dir=./ ;;
6363 */) ;;
6364 *) as_dir=$as_dir/ ;;
6365 esac
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6368 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6370 break 2
6371 fi
6372 done
6373 done
6374 IFS=$as_save_IFS
6375
6376 fi ;;
6377 esac
6378 fi
6379 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6380 if test -n "$ac_ct_OBJDUMP"; then
6381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6382 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6383 else
6384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 printf "%s\n" "no" >&6; }
6386 fi
6387
6388 if test "x$ac_ct_OBJDUMP" = x; then
6389 OBJDUMP="false"
6390 else
6391 case $cross_compiling:$ac_tool_warned in
6392 yes:)
6393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6394 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6395 ac_tool_warned=yes ;;
6396 esac
6397 OBJDUMP=$ac_ct_OBJDUMP
6398 fi
6399 else
6400 OBJDUMP="$ac_cv_prog_OBJDUMP"
6401 fi
6402
6403 test -z "$OBJDUMP" && OBJDUMP=objdump
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6414 printf %s "checking how to recognize dependent libraries... " >&6; }
6415 if test ${lt_cv_deplibs_check_method+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else case e in #(
6419 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6420 lt_cv_file_magic_test_file=
6421 lt_cv_deplibs_check_method='unknown'
6422 # Need to set the preceding variable on all platforms that support
6423 # interlibrary dependencies.
6424 # 'none' -- dependencies not supported.
6425 # 'unknown' -- same as none, but documents that we really don't know.
6426 # 'pass_all' -- all dependencies passed with no checks.
6427 # 'file_magic [[regex]]' -- check by looking for files in library path
6428 # that responds to the $file_magic_cmd with a given extended regex.
6429 # If you have 'file' or equivalent on your system and you're not sure
6430 # whether 'pass_all' will *always* work, you probably want this one.
6431
6432 case $host_os in
6433 aix[4-9]*)
6434 lt_cv_deplibs_check_method=pass_all
6435 ;;
6436
6437 beos*)
6438 lt_cv_deplibs_check_method=pass_all
6439 ;;
6440
6441 bsdi[45]*)
6442 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6443 lt_cv_file_magic_cmd='$FILECMD -L'
6444 lt_cv_file_magic_test_file=/shlib/libc.so
6445 ;;
6446
6447 cygwin*)
6448 # func_win32_libid is a shell function defined in ltmain.sh
6449 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6450 lt_cv_file_magic_cmd='func_win32_libid'
6451 ;;
6452
6453 mingw* | windows* | pw32*)
6454 # Base MSYS/MinGW do not provide the 'file' command needed by
6455 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6456 # unless we find 'file', for example because we are cross-compiling.
6457 if ( file / ) >/dev/null 2>&1; then
6458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6459 lt_cv_file_magic_cmd='func_win32_libid'
6460 else
6461 # Keep this pattern in sync with the one in func_win32_libid.
6462 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6463 lt_cv_file_magic_cmd='$OBJDUMP -f'
6464 fi
6465 ;;
6466
6467 cegcc*)
6468 # use the weaker test based on 'objdump'. See mingw*.
6469 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6470 lt_cv_file_magic_cmd='$OBJDUMP -f'
6471 ;;
6472
6473 darwin* | rhapsody*)
6474 lt_cv_deplibs_check_method=pass_all
6475 ;;
6476
6477 freebsd* | dragonfly* | midnightbsd*)
6478 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6479 case $host_cpu in
6480 i*86 )
6481 # Not sure whether the presence of OpenBSD here was a mistake.
6482 # Let's accept both of them until this is cleared up.
6483 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6484 lt_cv_file_magic_cmd=$FILECMD
6485 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6486 ;;
6487 esac
6488 else
6489 lt_cv_deplibs_check_method=pass_all
6490 fi
6491 ;;
6492
6493 haiku*)
6494 lt_cv_deplibs_check_method=pass_all
6495 ;;
6496
6497 hpux10.20* | hpux11*)
6498 lt_cv_file_magic_cmd=$FILECMD
6499 case $host_cpu in
6500 ia64*)
6501 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6502 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6503 ;;
6504 hppa*64*)
6505 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6506 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6507 ;;
6508 *)
6509 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6510 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6511 ;;
6512 esac
6513 ;;
6514
6515 interix[3-9]*)
6516 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6517 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6518 ;;
6519
6520 irix5* | irix6* | nonstopux*)
6521 case $LD in
6522 *-32|*"-32 ") libmagic=32-bit;;
6523 *-n32|*"-n32 ") libmagic=N32;;
6524 *-64|*"-64 ") libmagic=64-bit;;
6525 *) libmagic=never-match;;
6526 esac
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529
6530 # This must be glibc/ELF.
6531 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6532 lt_cv_deplibs_check_method=pass_all
6533 ;;
6534
6535 *-mlibc)
6536 lt_cv_deplibs_check_method=pass_all
6537 ;;
6538
6539 netbsd* | netbsdelf*-gnu)
6540 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6542 else
6543 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6544 fi
6545 ;;
6546
6547 newos6*)
6548 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6549 lt_cv_file_magic_cmd=$FILECMD
6550 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6551 ;;
6552
6553 *nto* | *qnx*)
6554 lt_cv_deplibs_check_method=pass_all
6555 ;;
6556
6557 openbsd*)
6558 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6560 else
6561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6562 fi
6563 ;;
6564
6565 osf3* | osf4* | osf5*)
6566 lt_cv_deplibs_check_method=pass_all
6567 ;;
6568
6569 rdos*)
6570 lt_cv_deplibs_check_method=pass_all
6571 ;;
6572
6573 serenity*)
6574 lt_cv_deplibs_check_method=pass_all
6575 ;;
6576
6577 solaris*)
6578 lt_cv_deplibs_check_method=pass_all
6579 ;;
6580
6581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6582 lt_cv_deplibs_check_method=pass_all
6583 ;;
6584
6585 sysv4 | sysv4.3*)
6586 case $host_vendor in
6587 motorola)
6588 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6589 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6590 ;;
6591 ncr)
6592 lt_cv_deplibs_check_method=pass_all
6593 ;;
6594 sequent)
6595 lt_cv_file_magic_cmd='/bin/file'
6596 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6597 ;;
6598 sni)
6599 lt_cv_file_magic_cmd='/bin/file'
6600 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6601 lt_cv_file_magic_test_file=/lib/libc.so
6602 ;;
6603 siemens)
6604 lt_cv_deplibs_check_method=pass_all
6605 ;;
6606 pc)
6607 lt_cv_deplibs_check_method=pass_all
6608 ;;
6609 esac
6610 ;;
6611
6612 tpf*)
6613 lt_cv_deplibs_check_method=pass_all
6614 ;;
6615 os2*)
6616 lt_cv_deplibs_check_method=pass_all
6617 ;;
6618 esac
6619 ;;
6620 esac
6621 fi
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6623 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6624
6625 file_magic_glob=
6626 want_nocaseglob=no
6627 if test "$build" = "$host"; then
6628 case $host_os in
6629 mingw* | windows* | pw32*)
6630 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6631 want_nocaseglob=yes
6632 else
6633 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6634 fi
6635 ;;
6636 esac
6637 fi
6638
6639 file_magic_cmd=$lt_cv_file_magic_cmd
6640 deplibs_check_method=$lt_cv_deplibs_check_method
6641 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664 if test -n "$ac_tool_prefix"; then
6665 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6666 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 printf %s "checking for $ac_word... " >&6; }
6669 if test ${ac_cv_prog_DLLTOOL+y}
6670 then :
6671 printf %s "(cached) " >&6
6672 else case e in #(
6673 e) if test -n "$DLLTOOL"; then
6674 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6675 else
6676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677 for as_dir in $PATH
6678 do
6679 IFS=$as_save_IFS
6680 case $as_dir in #(((
6681 '') as_dir=./ ;;
6682 */) ;;
6683 *) as_dir=$as_dir/ ;;
6684 esac
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6687 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6689 break 2
6690 fi
6691 done
6692 done
6693 IFS=$as_save_IFS
6694
6695 fi ;;
6696 esac
6697 fi
6698 DLLTOOL=$ac_cv_prog_DLLTOOL
6699 if test -n "$DLLTOOL"; then
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6701 printf "%s\n" "$DLLTOOL" >&6; }
6702 else
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 printf "%s\n" "no" >&6; }
6705 fi
6706
6707
6708 fi
6709 if test -z "$ac_cv_prog_DLLTOOL"; then
6710 ac_ct_DLLTOOL=$DLLTOOL
6711 # Extract the first word of "dlltool", so it can be a program name with args.
6712 set dummy dlltool; ac_word=$2
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 printf %s "checking for $ac_word... " >&6; }
6715 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else case e in #(
6719 e) if test -n "$ac_ct_DLLTOOL"; then
6720 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6721 else
6722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6723 for as_dir in $PATH
6724 do
6725 IFS=$as_save_IFS
6726 case $as_dir in #(((
6727 '') as_dir=./ ;;
6728 */) ;;
6729 *) as_dir=$as_dir/ ;;
6730 esac
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6735 break 2
6736 fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi ;;
6742 esac
6743 fi
6744 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6745 if test -n "$ac_ct_DLLTOOL"; then
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6747 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6748 else
6749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 printf "%s\n" "no" >&6; }
6751 fi
6752
6753 if test "x$ac_ct_DLLTOOL" = x; then
6754 DLLTOOL="false"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762 DLLTOOL=$ac_ct_DLLTOOL
6763 fi
6764 else
6765 DLLTOOL="$ac_cv_prog_DLLTOOL"
6766 fi
6767
6768 test -z "$DLLTOOL" && DLLTOOL=dlltool
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6780 printf %s "checking how to associate runtime and link libraries... " >&6; }
6781 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6782 then :
6783 printf %s "(cached) " >&6
6784 else case e in #(
6785 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6786
6787 case $host_os in
6788 cygwin* | mingw* | windows* | pw32* | cegcc*)
6789 # two different shell functions defined in ltmain.sh;
6790 # decide which one to use based on capabilities of $DLLTOOL
6791 case `$DLLTOOL --help 2>&1` in
6792 *--identify-strict*)
6793 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6794 ;;
6795 *)
6796 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6797 ;;
6798 esac
6799 ;;
6800 *)
6801 # fallback: assume linklib IS sharedlib
6802 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6803 ;;
6804 esac
6805 ;;
6806 esac
6807 fi
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6809 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6810 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6811 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6812
6813
6814
6815
6816
6817
6818
6819
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 printf %s "checking for $ac_word... " >&6; }
6825 if test ${ac_cv_prog_RANLIB+y}
6826 then :
6827 printf %s "(cached) " >&6
6828 else case e in #(
6829 e) if test -n "$RANLIB"; then
6830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6831 else
6832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 for as_dir in $PATH
6834 do
6835 IFS=$as_save_IFS
6836 case $as_dir in #(((
6837 '') as_dir=./ ;;
6838 */) ;;
6839 *) as_dir=$as_dir/ ;;
6840 esac
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6845 break 2
6846 fi
6847 done
6848 done
6849 IFS=$as_save_IFS
6850
6851 fi ;;
6852 esac
6853 fi
6854 RANLIB=$ac_cv_prog_RANLIB
6855 if test -n "$RANLIB"; then
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6857 printf "%s\n" "$RANLIB" >&6; }
6858 else
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6860 printf "%s\n" "no" >&6; }
6861 fi
6862
6863
6864 fi
6865 if test -z "$ac_cv_prog_RANLIB"; then
6866 ac_ct_RANLIB=$RANLIB
6867 # Extract the first word of "ranlib", so it can be a program name with args.
6868 set dummy ranlib; ac_word=$2
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870 printf %s "checking for $ac_word... " >&6; }
6871 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6872 then :
6873 printf %s "(cached) " >&6
6874 else case e in #(
6875 e) if test -n "$ac_ct_RANLIB"; then
6876 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6877 else
6878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 for as_dir in $PATH
6880 do
6881 IFS=$as_save_IFS
6882 case $as_dir in #(((
6883 '') as_dir=./ ;;
6884 */) ;;
6885 *) as_dir=$as_dir/ ;;
6886 esac
6887 for ac_exec_ext in '' $ac_executable_extensions; do
6888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6889 ac_cv_prog_ac_ct_RANLIB="ranlib"
6890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6891 break 2
6892 fi
6893 done
6894 done
6895 IFS=$as_save_IFS
6896
6897 fi ;;
6898 esac
6899 fi
6900 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6901 if test -n "$ac_ct_RANLIB"; then
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6903 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6904 else
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 printf "%s\n" "no" >&6; }
6907 fi
6908
6909 if test "x$ac_ct_RANLIB" = x; then
6910 RANLIB=":"
6911 else
6912 case $cross_compiling:$ac_tool_warned in
6913 yes:)
6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 ac_tool_warned=yes ;;
6917 esac
6918 RANLIB=$ac_ct_RANLIB
6919 fi
6920 else
6921 RANLIB="$ac_cv_prog_RANLIB"
6922 fi
6923
6924 if test -n "$ac_tool_prefix"; then
6925 for ac_prog in ar
6926 do
6927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 printf %s "checking for $ac_word... " >&6; }
6931 if test ${ac_cv_prog_AR+y}
6932 then :
6933 printf %s "(cached) " >&6
6934 else case e in #(
6935 e) if test -n "$AR"; then
6936 ac_cv_prog_AR="$AR" # Let the user override the test.
6937 else
6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6939 for as_dir in $PATH
6940 do
6941 IFS=$as_save_IFS
6942 case $as_dir in #(((
6943 '') as_dir=./ ;;
6944 */) ;;
6945 *) as_dir=$as_dir/ ;;
6946 esac
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi ;;
6958 esac
6959 fi
6960 AR=$ac_cv_prog_AR
6961 if test -n "$AR"; then
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6963 printf "%s\n" "$AR" >&6; }
6964 else
6965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 printf "%s\n" "no" >&6; }
6967 fi
6968
6969
6970 test -n "$AR" && break
6971 done
6972 fi
6973 if test -z "$AR"; then
6974 ac_ct_AR=$AR
6975 for ac_prog in ar
6976 do
6977 # Extract the first word of "$ac_prog", so it can be a program name with args.
6978 set dummy $ac_prog; ac_word=$2
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 printf %s "checking for $ac_word... " >&6; }
6981 if test ${ac_cv_prog_ac_ct_AR+y}
6982 then :
6983 printf %s "(cached) " >&6
6984 else case e in #(
6985 e) if test -n "$ac_ct_AR"; then
6986 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6987 else
6988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6989 for as_dir in $PATH
6990 do
6991 IFS=$as_save_IFS
6992 case $as_dir in #(((
6993 '') as_dir=./ ;;
6994 */) ;;
6995 *) as_dir=$as_dir/ ;;
6996 esac
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_ac_ct_AR="$ac_prog"
7000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi ;;
7008 esac
7009 fi
7010 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7011 if test -n "$ac_ct_AR"; then
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7013 printf "%s\n" "$ac_ct_AR" >&6; }
7014 else
7015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7016 printf "%s\n" "no" >&6; }
7017 fi
7018
7019
7020 test -n "$ac_ct_AR" && break
7021 done
7022
7023 if test "x$ac_ct_AR" = x; then
7024 AR="false"
7025 else
7026 case $cross_compiling:$ac_tool_warned in
7027 yes:)
7028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7029 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7030 ac_tool_warned=yes ;;
7031 esac
7032 AR=$ac_ct_AR
7033 fi
7034 fi
7035
7036 : ${AR=ar}
7037
7038
7039
7040
7041
7042
7043 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
7044 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
7045 # higher priority because that's what people were doing historically (setting
7046 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
7047 # variable obsoleted/removed.
7048
7049 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
7050 lt_ar_flags=$AR_FLAGS
7051
7052
7053
7054
7055
7056
7057 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
7058 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
7059
7060
7061
7062
7063
7064
7065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7066 printf %s "checking for archiver @FILE support... " >&6; }
7067 if test ${lt_cv_ar_at_file+y}
7068 then :
7069 printf %s "(cached) " >&6
7070 else case e in #(
7071 e) lt_cv_ar_at_file=no
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074
7075 int
7076 main (void)
7077 {
7078
7079 ;
7080 return 0;
7081 }
7082 _ACEOF
7083 if ac_fn_c_try_compile "$LINENO"
7084 then :
7085 echo conftest.$ac_objext > conftest.lst
7086 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7088 (eval $lt_ar_try) 2>&5
7089 ac_status=$?
7090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }
7092 if test 0 -eq "$ac_status"; then
7093 # Ensure the archiver fails upon bogus file names.
7094 rm -f conftest.$ac_objext libconftest.a
7095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7096 (eval $lt_ar_try) 2>&5
7097 ac_status=$?
7098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }
7100 if test 0 -ne "$ac_status"; then
7101 lt_cv_ar_at_file=@
7102 fi
7103 fi
7104 rm -f conftest.* libconftest.a
7105
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7108 ;;
7109 esac
7110 fi
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7112 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7113
7114 if test no = "$lt_cv_ar_at_file"; then
7115 archiver_list_spec=
7116 else
7117 archiver_list_spec=$lt_cv_ar_at_file
7118 fi
7119
7120
7121
7122
7123
7124
7125
7126 if test -n "$ac_tool_prefix"; then
7127 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7128 set dummy ${ac_tool_prefix}strip; ac_word=$2
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 printf %s "checking for $ac_word... " >&6; }
7131 if test ${ac_cv_prog_STRIP+y}
7132 then :
7133 printf %s "(cached) " >&6
7134 else case e in #(
7135 e) if test -n "$STRIP"; then
7136 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7140 do
7141 IFS=$as_save_IFS
7142 case $as_dir in #(((
7143 '') as_dir=./ ;;
7144 */) ;;
7145 *) as_dir=$as_dir/ ;;
7146 esac
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7149 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7151 break 2
7152 fi
7153 done
7154 done
7155 IFS=$as_save_IFS
7156
7157 fi ;;
7158 esac
7159 fi
7160 STRIP=$ac_cv_prog_STRIP
7161 if test -n "$STRIP"; then
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7163 printf "%s\n" "$STRIP" >&6; }
7164 else
7165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 printf "%s\n" "no" >&6; }
7167 fi
7168
7169
7170 fi
7171 if test -z "$ac_cv_prog_STRIP"; then
7172 ac_ct_STRIP=$STRIP
7173 # Extract the first word of "strip", so it can be a program name with args.
7174 set dummy strip; ac_word=$2
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 printf %s "checking for $ac_word... " >&6; }
7177 if test ${ac_cv_prog_ac_ct_STRIP+y}
7178 then :
7179 printf %s "(cached) " >&6
7180 else case e in #(
7181 e) if test -n "$ac_ct_STRIP"; then
7182 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7183 else
7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7185 for as_dir in $PATH
7186 do
7187 IFS=$as_save_IFS
7188 case $as_dir in #(((
7189 '') as_dir=./ ;;
7190 */) ;;
7191 *) as_dir=$as_dir/ ;;
7192 esac
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7195 ac_cv_prog_ac_ct_STRIP="strip"
7196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7197 break 2
7198 fi
7199 done
7200 done
7201 IFS=$as_save_IFS
7202
7203 fi ;;
7204 esac
7205 fi
7206 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7207 if test -n "$ac_ct_STRIP"; then
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7209 printf "%s\n" "$ac_ct_STRIP" >&6; }
7210 else
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 printf "%s\n" "no" >&6; }
7213 fi
7214
7215 if test "x$ac_ct_STRIP" = x; then
7216 STRIP=":"
7217 else
7218 case $cross_compiling:$ac_tool_warned in
7219 yes:)
7220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7221 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7222 ac_tool_warned=yes ;;
7223 esac
7224 STRIP=$ac_ct_STRIP
7225 fi
7226 else
7227 STRIP="$ac_cv_prog_STRIP"
7228 fi
7229
7230 test -z "$STRIP" && STRIP=:
7231
7232
7233
7234
7235
7236
7237
7238 test -z "$RANLIB" && RANLIB=:
7239
7240
7241
7242
7243
7244
7245 # Determine commands to create old-style static archives.
7246 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7247 old_postinstall_cmds='chmod 644 $oldlib'
7248 old_postuninstall_cmds=
7249
7250 if test -n "$RANLIB"; then
7251 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7252 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7253 fi
7254
7255 case $host_os in
7256 darwin*)
7257 lock_old_archive_extraction=yes ;;
7258 *)
7259 lock_old_archive_extraction=no ;;
7260 esac
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300 # If no C compiler was specified, use CC.
7301 LTCC=${LTCC-"$CC"}
7302
7303 # If no C compiler flags were specified, use CFLAGS.
7304 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7305
7306 # Allow CC to be a program name with arguments.
7307 compiler=$CC
7308
7309
7310 # Check for command to grab the raw symbol name followed by C symbol from nm.
7311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7312 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7313 if test ${lt_cv_sys_global_symbol_pipe+y}
7314 then :
7315 printf %s "(cached) " >&6
7316 else case e in #(
7317 e)
7318 # These are sane defaults that work on at least a few old systems.
7319 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7320
7321 # Character class describing NM global symbol codes.
7322 symcode='[BCDEGRST]'
7323
7324 # Regexp to match symbols that can be accessed directly from C.
7325 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7326
7327 # Define system-specific variables.
7328 case $host_os in
7329 aix*)
7330 symcode='[BCDT]'
7331 ;;
7332 cygwin* | mingw* | windows* | pw32* | cegcc*)
7333 symcode='[ABCDGISTW]'
7334 ;;
7335 hpux*)
7336 if test ia64 = "$host_cpu"; then
7337 symcode='[ABCDEGRST]'
7338 fi
7339 ;;
7340 irix* | nonstopux*)
7341 symcode='[BCDEGRST]'
7342 ;;
7343 osf*)
7344 symcode='[BCDEGQRST]'
7345 ;;
7346 solaris*)
7347 symcode='[BCDRT]'
7348 ;;
7349 sco3.2v5*)
7350 symcode='[DT]'
7351 ;;
7352 sysv4.2uw2*)
7353 symcode='[DT]'
7354 ;;
7355 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7356 symcode='[ABDT]'
7357 ;;
7358 sysv4)
7359 symcode='[DFNSTU]'
7360 ;;
7361 esac
7362
7363 # If we're using GNU nm, then use its standard symbol codes.
7364 case `$NM -V 2>&1` in
7365 *GNU* | *'with BFD'*)
7366 symcode='[ABCDGIRSTW]' ;;
7367 esac
7368
7369 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7370 # Gets list of data symbols to import.
7371 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7372 # Adjust the below global symbol transforms to fixup imported variables.
7373 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7374 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7375 lt_c_name_lib_hook="\
7376 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7377 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7378 else
7379 # Disable hooks by default.
7380 lt_cv_sys_global_symbol_to_import=
7381 lt_cdecl_hook=
7382 lt_c_name_hook=
7383 lt_c_name_lib_hook=
7384 fi
7385
7386 # Transform an extracted symbol line into a proper C declaration.
7387 # Some systems (esp. on ia64) link data and code symbols differently,
7388 # so use this general approach.
7389 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7390 $lt_cdecl_hook\
7391 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7392 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7393
7394 # Transform an extracted symbol line into symbol name and symbol address
7395 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7396 $lt_c_name_hook\
7397 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7398 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7399
7400 # Transform an extracted symbol line into symbol name with lib prefix and
7401 # symbol address.
7402 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7403 $lt_c_name_lib_hook\
7404 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7405 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7406 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7407
7408 # Handle CRLF in mingw tool chain
7409 opt_cr=
7410 case $build_os in
7411 mingw* | windows*)
7412 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7413 ;;
7414 esac
7415
7416 # Try without a prefix underscore, then with it.
7417 for ac_symprfx in "" "_"; do
7418
7419 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7420 symxfrm="\\1 $ac_symprfx\\2 \\2"
7421
7422 # Write the raw and C identifiers.
7423 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7424 # Fake it for dumpbin and say T for any non-static function,
7425 # D for any global variable and I for any imported variable.
7426 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7427 # which start with @ or ?.
7428 lt_cv_sys_global_symbol_pipe="$AWK '"\
7429 " {last_section=section; section=\$ 3};"\
7430 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7431 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7432 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7433 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7434 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7435 " \$ 0!~/External *\|/{next};"\
7436 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7437 " {if(hide[section]) next};"\
7438 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7439 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7440 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7441 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7442 " ' prfx=^$ac_symprfx"
7443 else
7444 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7445 fi
7446 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7447
7448 # Check to see that the pipe works correctly.
7449 pipe_works=no
7450
7451 rm -f conftest*
7452 cat > conftest.$ac_ext <<_LT_EOF
7453 #ifdef __cplusplus
7454 extern "C" {
7455 #endif
7456 char nm_test_var;
7457 void nm_test_func(void);
7458 void nm_test_func(void){}
7459 #ifdef __cplusplus
7460 }
7461 #endif
7462 int main(void){nm_test_var='a';nm_test_func();return(0);}
7463 _LT_EOF
7464
7465 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7466 (eval $ac_compile) 2>&5
7467 ac_status=$?
7468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7469 test $ac_status = 0; }; then
7470 # Now try to grab the symbols.
7471 nlist=conftest.nm
7472 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7473 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7474 # Try sorting and uniquifying the output.
7475 if sort "$nlist" | uniq > "$nlist"T; then
7476 mv -f "$nlist"T "$nlist"
7477 else
7478 rm -f "$nlist"T
7479 fi
7480
7481 # Make sure that we snagged all the symbols we need.
7482 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7483 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7484 cat <<_LT_EOF > conftest.$ac_ext
7485 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7486 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7487 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7488 relocations are performed -- see ld's documentation on pseudo-relocs. */
7489 # define LT_DLSYM_CONST
7490 #elif defined __osf__
7491 /* This system does not cope well with relocations in const data. */
7492 # define LT_DLSYM_CONST
7493 #else
7494 # define LT_DLSYM_CONST const
7495 #endif
7496
7497 #ifdef __cplusplus
7498 extern "C" {
7499 #endif
7500
7501 _LT_EOF
7502 # Now generate the symbol file.
7503 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7504
7505 cat <<_LT_EOF >> conftest.$ac_ext
7506
7507 /* The mapping between symbol names and symbols. */
7508 LT_DLSYM_CONST struct {
7509 const char *name;
7510 void *address;
7511 }
7512 lt__PROGRAM__LTX_preloaded_symbols[] =
7513 {
7514 { "@PROGRAM@", (void *) 0 },
7515 _LT_EOF
7516 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7517 cat <<\_LT_EOF >> conftest.$ac_ext
7518 {0, (void *) 0}
7519 };
7520
7521 /* This works around a problem in FreeBSD linker */
7522 #ifdef FREEBSD_WORKAROUND
7523 static const void *lt_preloaded_setup() {
7524 return lt__PROGRAM__LTX_preloaded_symbols;
7525 }
7526 #endif
7527
7528 #ifdef __cplusplus
7529 }
7530 #endif
7531 _LT_EOF
7532 # Now try linking the two files.
7533 mv conftest.$ac_objext conftstm.$ac_objext
7534 lt_globsym_save_LIBS=$LIBS
7535 lt_globsym_save_CFLAGS=$CFLAGS
7536 LIBS=conftstm.$ac_objext
7537 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7539 (eval $ac_link) 2>&5
7540 ac_status=$?
7541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7543 pipe_works=yes
7544 fi
7545 LIBS=$lt_globsym_save_LIBS
7546 CFLAGS=$lt_globsym_save_CFLAGS
7547 else
7548 echo "cannot find nm_test_func in $nlist" >&5
7549 fi
7550 else
7551 echo "cannot find nm_test_var in $nlist" >&5
7552 fi
7553 else
7554 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7555 fi
7556 else
7557 echo "$progname: failed program was:" >&5
7558 cat conftest.$ac_ext >&5
7559 fi
7560 rm -rf conftest* conftst*
7561
7562 # Do not use the global_symbol_pipe unless it works.
7563 if test yes = "$pipe_works"; then
7564 break
7565 else
7566 lt_cv_sys_global_symbol_pipe=
7567 fi
7568 done
7569 ;;
7570 esac
7571 fi
7572
7573 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7574 lt_cv_sys_global_symbol_to_cdecl=
7575 fi
7576 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7578 printf "%s\n" "failed" >&6; }
7579 else
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7581 printf "%s\n" "ok" >&6; }
7582 fi
7583
7584 # Response file support.
7585 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7586 nm_file_list_spec='@'
7587 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7588 nm_file_list_spec='@'
7589 fi
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7628 printf %s "checking for sysroot... " >&6; }
7629
7630 # Check whether --with-sysroot was given.
7631 if test ${with_sysroot+y}
7632 then :
7633 withval=$with_sysroot;
7634 else case e in #(
7635 e) with_sysroot=no ;;
7636 esac
7637 fi
7638
7639
7640 lt_sysroot=
7641 case $with_sysroot in #(
7642 yes)
7643 if test yes = "$GCC"; then
7644 # Trim trailing / since we'll always append absolute paths and we want
7645 # to avoid //, if only for less confusing output for the user.
7646 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7647 fi
7648 ;; #(
7649 /*)
7650 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7651 ;; #(
7652 no|'')
7653 ;; #(
7654 *)
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7656 printf "%s\n" "$with_sysroot" >&6; }
7657 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7658 ;;
7659 esac
7660
7661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7662 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7663
7664
7665
7666
7667
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7669 printf %s "checking for a working dd... " >&6; }
7670 if test ${ac_cv_path_lt_DD+y}
7671 then :
7672 printf %s "(cached) " >&6
7673 else case e in #(
7674 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7675 cat conftest.i conftest.i >conftest2.i
7676 : ${lt_DD:=$DD}
7677 if test -z "$lt_DD"; then
7678 ac_path_lt_DD_found=false
7679 # Loop through the user's path and test for each of PROGNAME-LIST
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7682 do
7683 IFS=$as_save_IFS
7684 case $as_dir in #(((
7685 '') as_dir=./ ;;
7686 */) ;;
7687 *) as_dir=$as_dir/ ;;
7688 esac
7689 for ac_prog in dd
7690 do
7691 for ac_exec_ext in '' $ac_executable_extensions; do
7692 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7693 as_fn_executable_p "$ac_path_lt_DD" || continue
7694 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7695 cmp -s conftest.i conftest.out \
7696 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7697 fi
7698 $ac_path_lt_DD_found && break 3
7699 done
7700 done
7701 done
7702 IFS=$as_save_IFS
7703 if test -z "$ac_cv_path_lt_DD"; then
7704 :
7705 fi
7706 else
7707 ac_cv_path_lt_DD=$lt_DD
7708 fi
7709
7710 rm -f conftest.i conftest2.i conftest.out ;;
7711 esac
7712 fi
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7714 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7715
7716
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7718 printf %s "checking how to truncate binary pipes... " >&6; }
7719 if test ${lt_cv_truncate_bin+y}
7720 then :
7721 printf %s "(cached) " >&6
7722 else case e in #(
7723 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7724 cat conftest.i conftest.i >conftest2.i
7725 lt_cv_truncate_bin=
7726 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7727 cmp -s conftest.i conftest.out \
7728 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7729 fi
7730 rm -f conftest.i conftest2.i conftest.out
7731 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7732 esac
7733 fi
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7735 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7736
7737
7738
7739
7740
7741
7742
7743 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7744 func_cc_basename ()
7745 {
7746 for cc_temp in $*""; do
7747 case $cc_temp in
7748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7750 \-*) ;;
7751 *) break;;
7752 esac
7753 done
7754 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7755 }
7756
7757 # Check whether --enable-libtool-lock was given.
7758 if test ${enable_libtool_lock+y}
7759 then :
7760 enableval=$enable_libtool_lock;
7761 fi
7762
7763 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7764
7765 # Some flags need to be propagated to the compiler or linker for good
7766 # libtool support.
7767 case $host in
7768 ia64-*-hpux*)
7769 # Find out what ABI is being produced by ac_compile, and set mode
7770 # options accordingly.
7771 echo 'int i;' > conftest.$ac_ext
7772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7773 (eval $ac_compile) 2>&5
7774 ac_status=$?
7775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7776 test $ac_status = 0; }; then
7777 case `$FILECMD conftest.$ac_objext` in
7778 *ELF-32*)
7779 HPUX_IA64_MODE=32
7780 ;;
7781 *ELF-64*)
7782 HPUX_IA64_MODE=64
7783 ;;
7784 esac
7785 fi
7786 rm -rf conftest*
7787 ;;
7788 *-*-irix6*)
7789 # Find out what ABI is being produced by ac_compile, and set linker
7790 # options accordingly.
7791 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7793 (eval $ac_compile) 2>&5
7794 ac_status=$?
7795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7797 if test yes = "$lt_cv_prog_gnu_ld"; then
7798 case `$FILECMD conftest.$ac_objext` in
7799 *32-bit*)
7800 LD="${LD-ld} -melf32bsmip"
7801 ;;
7802 *N32*)
7803 LD="${LD-ld} -melf32bmipn32"
7804 ;;
7805 *64-bit*)
7806 LD="${LD-ld} -melf64bmip"
7807 ;;
7808 esac
7809 else
7810 case `$FILECMD conftest.$ac_objext` in
7811 *32-bit*)
7812 LD="${LD-ld} -32"
7813 ;;
7814 *N32*)
7815 LD="${LD-ld} -n32"
7816 ;;
7817 *64-bit*)
7818 LD="${LD-ld} -64"
7819 ;;
7820 esac
7821 fi
7822 fi
7823 rm -rf conftest*
7824 ;;
7825
7826 mips64*-*linux*)
7827 # Find out what ABI is being produced by ac_compile, and set linker
7828 # options accordingly.
7829 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7831 (eval $ac_compile) 2>&5
7832 ac_status=$?
7833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7834 test $ac_status = 0; }; then
7835 emul=elf
7836 case `$FILECMD conftest.$ac_objext` in
7837 *32-bit*)
7838 emul="${emul}32"
7839 ;;
7840 *64-bit*)
7841 emul="${emul}64"
7842 ;;
7843 esac
7844 case `$FILECMD conftest.$ac_objext` in
7845 *MSB*)
7846 emul="${emul}btsmip"
7847 ;;
7848 *LSB*)
7849 emul="${emul}ltsmip"
7850 ;;
7851 esac
7852 case `$FILECMD conftest.$ac_objext` in
7853 *N32*)
7854 emul="${emul}n32"
7855 ;;
7856 esac
7857 LD="${LD-ld} -m $emul"
7858 fi
7859 rm -rf conftest*
7860 ;;
7861
7862 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7863 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7864 # Find out what ABI is being produced by ac_compile, and set linker
7865 # options accordingly. Note that the listed cases only cover the
7866 # situations where additional linker options are needed (such as when
7867 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7868 # vice versa); the common cases where no linker options are needed do
7869 # not appear in the list.
7870 echo 'int i;' > conftest.$ac_ext
7871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7872 (eval $ac_compile) 2>&5
7873 ac_status=$?
7874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875 test $ac_status = 0; }; then
7876 case `$FILECMD conftest.o` in
7877 *32-bit*)
7878 case $host in
7879 x86_64-*kfreebsd*-gnu)
7880 LD="${LD-ld} -m elf_i386_fbsd"
7881 ;;
7882 x86_64-*linux*|x86_64-gnu*)
7883 case `$FILECMD conftest.o` in
7884 *x86-64*)
7885 LD="${LD-ld} -m elf32_x86_64"
7886 ;;
7887 *)
7888 LD="${LD-ld} -m elf_i386"
7889 ;;
7890 esac
7891 ;;
7892 powerpc64le-*linux*)
7893 LD="${LD-ld} -m elf32lppclinux"
7894 ;;
7895 powerpc64-*linux*)
7896 LD="${LD-ld} -m elf32ppclinux"
7897 ;;
7898 s390x-*linux*)
7899 LD="${LD-ld} -m elf_s390"
7900 ;;
7901 sparc64-*linux*)
7902 LD="${LD-ld} -m elf32_sparc"
7903 ;;
7904 esac
7905 ;;
7906 *64-bit*)
7907 case $host in
7908 x86_64-*kfreebsd*-gnu)
7909 LD="${LD-ld} -m elf_x86_64_fbsd"
7910 ;;
7911 x86_64-*linux*|x86_64-gnu*)
7912 LD="${LD-ld} -m elf_x86_64"
7913 ;;
7914 powerpcle-*linux*)
7915 LD="${LD-ld} -m elf64lppc"
7916 ;;
7917 powerpc-*linux*)
7918 LD="${LD-ld} -m elf64ppc"
7919 ;;
7920 s390*-*linux*|s390*-*tpf*)
7921 LD="${LD-ld} -m elf64_s390"
7922 ;;
7923 sparc*-*linux*)
7924 LD="${LD-ld} -m elf64_sparc"
7925 ;;
7926 esac
7927 ;;
7928 esac
7929 fi
7930 rm -rf conftest*
7931 ;;
7932
7933 *-*-sco3.2v5*)
7934 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7935 SAVE_CFLAGS=$CFLAGS
7936 CFLAGS="$CFLAGS -belf"
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7938 printf %s "checking whether the C compiler needs -belf... " >&6; }
7939 if test ${lt_cv_cc_needs_belf+y}
7940 then :
7941 printf %s "(cached) " >&6
7942 else case e in #(
7943 e) ac_ext=c
7944 ac_cpp='$CPP $CPPFLAGS'
7945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7951
7952 int
7953 main (void)
7954 {
7955
7956 ;
7957 return 0;
7958 }
7959 _ACEOF
7960 if ac_fn_c_try_link "$LINENO"
7961 then :
7962 lt_cv_cc_needs_belf=yes
7963 else case e in #(
7964 e) lt_cv_cc_needs_belf=no ;;
7965 esac
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7968 conftest$ac_exeext conftest.$ac_ext
7969 ac_ext=c
7970 ac_cpp='$CPP $CPPFLAGS'
7971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7974 ;;
7975 esac
7976 fi
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7978 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7979 if test yes != "$lt_cv_cc_needs_belf"; then
7980 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7981 CFLAGS=$SAVE_CFLAGS
7982 fi
7983 ;;
7984 *-*solaris*)
7985 # Find out what ABI is being produced by ac_compile, and set linker
7986 # options accordingly.
7987 echo 'int i;' > conftest.$ac_ext
7988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7989 (eval $ac_compile) 2>&5
7990 ac_status=$?
7991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7992 test $ac_status = 0; }; then
7993 case `$FILECMD conftest.o` in
7994 *64-bit*)
7995 case $lt_cv_prog_gnu_ld in
7996 yes*)
7997 case $host in
7998 i?86-*-solaris*|x86_64-*-solaris*)
7999 LD="${LD-ld} -m elf_x86_64"
8000 ;;
8001 sparc*-*-solaris*)
8002 LD="${LD-ld} -m elf64_sparc"
8003 ;;
8004 esac
8005 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8006 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8007 LD=${LD-ld}_sol2
8008 fi
8009 ;;
8010 *)
8011 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8012 LD="${LD-ld} -64"
8013 fi
8014 ;;
8015 esac
8016 ;;
8017 esac
8018 fi
8019 rm -rf conftest*
8020 ;;
8021 esac
8022
8023 need_locks=$enable_libtool_lock
8024
8025 if test -n "$ac_tool_prefix"; then
8026 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8027 set dummy ${ac_tool_prefix}mt; ac_word=$2
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 printf %s "checking for $ac_word... " >&6; }
8030 if test ${ac_cv_prog_MANIFEST_TOOL+y}
8031 then :
8032 printf %s "(cached) " >&6
8033 else case e in #(
8034 e) if test -n "$MANIFEST_TOOL"; then
8035 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8036 else
8037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038 for as_dir in $PATH
8039 do
8040 IFS=$as_save_IFS
8041 case $as_dir in #(((
8042 '') as_dir=./ ;;
8043 */) ;;
8044 *) as_dir=$as_dir/ ;;
8045 esac
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8050 break 2
8051 fi
8052 done
8053 done
8054 IFS=$as_save_IFS
8055
8056 fi ;;
8057 esac
8058 fi
8059 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8060 if test -n "$MANIFEST_TOOL"; then
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8062 printf "%s\n" "$MANIFEST_TOOL" >&6; }
8063 else
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065 printf "%s\n" "no" >&6; }
8066 fi
8067
8068
8069 fi
8070 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8071 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8072 # Extract the first word of "mt", so it can be a program name with args.
8073 set dummy mt; ac_word=$2
8074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8075 printf %s "checking for $ac_word... " >&6; }
8076 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8077 then :
8078 printf %s "(cached) " >&6
8079 else case e in #(
8080 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8081 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086 IFS=$as_save_IFS
8087 case $as_dir in #(((
8088 '') as_dir=./ ;;
8089 */) ;;
8090 *) as_dir=$as_dir/ ;;
8091 esac
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8096 break 2
8097 fi
8098 done
8099 done
8100 IFS=$as_save_IFS
8101
8102 fi ;;
8103 esac
8104 fi
8105 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8106 if test -n "$ac_ct_MANIFEST_TOOL"; then
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8108 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8109 else
8110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 printf "%s\n" "no" >&6; }
8112 fi
8113
8114 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8115 MANIFEST_TOOL=":"
8116 else
8117 case $cross_compiling:$ac_tool_warned in
8118 yes:)
8119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8120 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8121 ac_tool_warned=yes ;;
8122 esac
8123 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8124 fi
8125 else
8126 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8127 fi
8128
8129 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8131 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8132 if test ${lt_cv_path_manifest_tool+y}
8133 then :
8134 printf %s "(cached) " >&6
8135 else case e in #(
8136 e) lt_cv_path_manifest_tool=no
8137 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8138 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8139 cat conftest.err >&5
8140 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8141 lt_cv_path_manifest_tool=yes
8142 fi
8143 rm -f conftest* ;;
8144 esac
8145 fi
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8147 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8148 if test yes != "$lt_cv_path_manifest_tool"; then
8149 MANIFEST_TOOL=:
8150 fi
8151
8152
8153
8154
8155
8156
8157 case $host_os in
8158 rhapsody* | darwin*)
8159 if test -n "$ac_tool_prefix"; then
8160 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8161 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 printf %s "checking for $ac_word... " >&6; }
8164 if test ${ac_cv_prog_DSYMUTIL+y}
8165 then :
8166 printf %s "(cached) " >&6
8167 else case e in #(
8168 e) if test -n "$DSYMUTIL"; then
8169 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8170 else
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH
8173 do
8174 IFS=$as_save_IFS
8175 case $as_dir in #(((
8176 '') as_dir=./ ;;
8177 */) ;;
8178 *) as_dir=$as_dir/ ;;
8179 esac
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8182 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8184 break 2
8185 fi
8186 done
8187 done
8188 IFS=$as_save_IFS
8189
8190 fi ;;
8191 esac
8192 fi
8193 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8194 if test -n "$DSYMUTIL"; then
8195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8196 printf "%s\n" "$DSYMUTIL" >&6; }
8197 else
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199 printf "%s\n" "no" >&6; }
8200 fi
8201
8202
8203 fi
8204 if test -z "$ac_cv_prog_DSYMUTIL"; then
8205 ac_ct_DSYMUTIL=$DSYMUTIL
8206 # Extract the first word of "dsymutil", so it can be a program name with args.
8207 set dummy dsymutil; ac_word=$2
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8209 printf %s "checking for $ac_word... " >&6; }
8210 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8211 then :
8212 printf %s "(cached) " >&6
8213 else case e in #(
8214 e) if test -n "$ac_ct_DSYMUTIL"; then
8215 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8216 else
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 for as_dir in $PATH
8219 do
8220 IFS=$as_save_IFS
8221 case $as_dir in #(((
8222 '') as_dir=./ ;;
8223 */) ;;
8224 *) as_dir=$as_dir/ ;;
8225 esac
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8228 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8230 break 2
8231 fi
8232 done
8233 done
8234 IFS=$as_save_IFS
8235
8236 fi ;;
8237 esac
8238 fi
8239 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8240 if test -n "$ac_ct_DSYMUTIL"; then
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8242 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8243 else
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245 printf "%s\n" "no" >&6; }
8246 fi
8247
8248 if test "x$ac_ct_DSYMUTIL" = x; then
8249 DSYMUTIL=":"
8250 else
8251 case $cross_compiling:$ac_tool_warned in
8252 yes:)
8253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8254 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8255 ac_tool_warned=yes ;;
8256 esac
8257 DSYMUTIL=$ac_ct_DSYMUTIL
8258 fi
8259 else
8260 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8261 fi
8262
8263 if test -n "$ac_tool_prefix"; then
8264 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8265 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267 printf %s "checking for $ac_word... " >&6; }
8268 if test ${ac_cv_prog_NMEDIT+y}
8269 then :
8270 printf %s "(cached) " >&6
8271 else case e in #(
8272 e) if test -n "$NMEDIT"; then
8273 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8274 else
8275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278 IFS=$as_save_IFS
8279 case $as_dir in #(((
8280 '') as_dir=./ ;;
8281 */) ;;
8282 *) as_dir=$as_dir/ ;;
8283 esac
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8286 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8287 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8288 break 2
8289 fi
8290 done
8291 done
8292 IFS=$as_save_IFS
8293
8294 fi ;;
8295 esac
8296 fi
8297 NMEDIT=$ac_cv_prog_NMEDIT
8298 if test -n "$NMEDIT"; then
8299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8300 printf "%s\n" "$NMEDIT" >&6; }
8301 else
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 printf "%s\n" "no" >&6; }
8304 fi
8305
8306
8307 fi
8308 if test -z "$ac_cv_prog_NMEDIT"; then
8309 ac_ct_NMEDIT=$NMEDIT
8310 # Extract the first word of "nmedit", so it can be a program name with args.
8311 set dummy nmedit; ac_word=$2
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8313 printf %s "checking for $ac_word... " >&6; }
8314 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8315 then :
8316 printf %s "(cached) " >&6
8317 else case e in #(
8318 e) if test -n "$ac_ct_NMEDIT"; then
8319 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8320 else
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324 IFS=$as_save_IFS
8325 case $as_dir in #(((
8326 '') as_dir=./ ;;
8327 */) ;;
8328 *) as_dir=$as_dir/ ;;
8329 esac
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8332 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336 done
8337 done
8338 IFS=$as_save_IFS
8339
8340 fi ;;
8341 esac
8342 fi
8343 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8344 if test -n "$ac_ct_NMEDIT"; then
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8346 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8347 else
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 printf "%s\n" "no" >&6; }
8350 fi
8351
8352 if test "x$ac_ct_NMEDIT" = x; then
8353 NMEDIT=":"
8354 else
8355 case $cross_compiling:$ac_tool_warned in
8356 yes:)
8357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8358 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8359 ac_tool_warned=yes ;;
8360 esac
8361 NMEDIT=$ac_ct_NMEDIT
8362 fi
8363 else
8364 NMEDIT="$ac_cv_prog_NMEDIT"
8365 fi
8366
8367 if test -n "$ac_tool_prefix"; then
8368 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8369 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 printf %s "checking for $ac_word... " >&6; }
8372 if test ${ac_cv_prog_LIPO+y}
8373 then :
8374 printf %s "(cached) " >&6
8375 else case e in #(
8376 e) if test -n "$LIPO"; then
8377 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8378 else
8379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
8382 IFS=$as_save_IFS
8383 case $as_dir in #(((
8384 '') as_dir=./ ;;
8385 */) ;;
8386 *) as_dir=$as_dir/ ;;
8387 esac
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8390 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8392 break 2
8393 fi
8394 done
8395 done
8396 IFS=$as_save_IFS
8397
8398 fi ;;
8399 esac
8400 fi
8401 LIPO=$ac_cv_prog_LIPO
8402 if test -n "$LIPO"; then
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8404 printf "%s\n" "$LIPO" >&6; }
8405 else
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407 printf "%s\n" "no" >&6; }
8408 fi
8409
8410
8411 fi
8412 if test -z "$ac_cv_prog_LIPO"; then
8413 ac_ct_LIPO=$LIPO
8414 # Extract the first word of "lipo", so it can be a program name with args.
8415 set dummy lipo; ac_word=$2
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 printf %s "checking for $ac_word... " >&6; }
8418 if test ${ac_cv_prog_ac_ct_LIPO+y}
8419 then :
8420 printf %s "(cached) " >&6
8421 else case e in #(
8422 e) if test -n "$ac_ct_LIPO"; then
8423 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8424 else
8425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426 for as_dir in $PATH
8427 do
8428 IFS=$as_save_IFS
8429 case $as_dir in #(((
8430 '') as_dir=./ ;;
8431 */) ;;
8432 *) as_dir=$as_dir/ ;;
8433 esac
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8436 ac_cv_prog_ac_ct_LIPO="lipo"
8437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8438 break 2
8439 fi
8440 done
8441 done
8442 IFS=$as_save_IFS
8443
8444 fi ;;
8445 esac
8446 fi
8447 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8448 if test -n "$ac_ct_LIPO"; then
8449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8450 printf "%s\n" "$ac_ct_LIPO" >&6; }
8451 else
8452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 printf "%s\n" "no" >&6; }
8454 fi
8455
8456 if test "x$ac_ct_LIPO" = x; then
8457 LIPO=":"
8458 else
8459 case $cross_compiling:$ac_tool_warned in
8460 yes:)
8461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8462 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8463 ac_tool_warned=yes ;;
8464 esac
8465 LIPO=$ac_ct_LIPO
8466 fi
8467 else
8468 LIPO="$ac_cv_prog_LIPO"
8469 fi
8470
8471 if test -n "$ac_tool_prefix"; then
8472 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8473 set dummy ${ac_tool_prefix}otool; ac_word=$2
8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 printf %s "checking for $ac_word... " >&6; }
8476 if test ${ac_cv_prog_OTOOL+y}
8477 then :
8478 printf %s "(cached) " >&6
8479 else case e in #(
8480 e) if test -n "$OTOOL"; then
8481 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8482 else
8483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484 for as_dir in $PATH
8485 do
8486 IFS=$as_save_IFS
8487 case $as_dir in #(((
8488 '') as_dir=./ ;;
8489 */) ;;
8490 *) as_dir=$as_dir/ ;;
8491 esac
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8494 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8496 break 2
8497 fi
8498 done
8499 done
8500 IFS=$as_save_IFS
8501
8502 fi ;;
8503 esac
8504 fi
8505 OTOOL=$ac_cv_prog_OTOOL
8506 if test -n "$OTOOL"; then
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8508 printf "%s\n" "$OTOOL" >&6; }
8509 else
8510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 printf "%s\n" "no" >&6; }
8512 fi
8513
8514
8515 fi
8516 if test -z "$ac_cv_prog_OTOOL"; then
8517 ac_ct_OTOOL=$OTOOL
8518 # Extract the first word of "otool", so it can be a program name with args.
8519 set dummy otool; ac_word=$2
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8521 printf %s "checking for $ac_word... " >&6; }
8522 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8523 then :
8524 printf %s "(cached) " >&6
8525 else case e in #(
8526 e) if test -n "$ac_ct_OTOOL"; then
8527 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8528 else
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 for as_dir in $PATH
8531 do
8532 IFS=$as_save_IFS
8533 case $as_dir in #(((
8534 '') as_dir=./ ;;
8535 */) ;;
8536 *) as_dir=$as_dir/ ;;
8537 esac
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8540 ac_cv_prog_ac_ct_OTOOL="otool"
8541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8542 break 2
8543 fi
8544 done
8545 done
8546 IFS=$as_save_IFS
8547
8548 fi ;;
8549 esac
8550 fi
8551 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8552 if test -n "$ac_ct_OTOOL"; then
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8554 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8555 else
8556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 printf "%s\n" "no" >&6; }
8558 fi
8559
8560 if test "x$ac_ct_OTOOL" = x; then
8561 OTOOL=":"
8562 else
8563 case $cross_compiling:$ac_tool_warned in
8564 yes:)
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8566 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8567 ac_tool_warned=yes ;;
8568 esac
8569 OTOOL=$ac_ct_OTOOL
8570 fi
8571 else
8572 OTOOL="$ac_cv_prog_OTOOL"
8573 fi
8574
8575 if test -n "$ac_tool_prefix"; then
8576 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8577 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 printf %s "checking for $ac_word... " >&6; }
8580 if test ${ac_cv_prog_OTOOL64+y}
8581 then :
8582 printf %s "(cached) " >&6
8583 else case e in #(
8584 e) if test -n "$OTOOL64"; then
8585 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590 IFS=$as_save_IFS
8591 case $as_dir in #(((
8592 '') as_dir=./ ;;
8593 */) ;;
8594 *) as_dir=$as_dir/ ;;
8595 esac
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8598 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8600 break 2
8601 fi
8602 done
8603 done
8604 IFS=$as_save_IFS
8605
8606 fi ;;
8607 esac
8608 fi
8609 OTOOL64=$ac_cv_prog_OTOOL64
8610 if test -n "$OTOOL64"; then
8611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8612 printf "%s\n" "$OTOOL64" >&6; }
8613 else
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 printf "%s\n" "no" >&6; }
8616 fi
8617
8618
8619 fi
8620 if test -z "$ac_cv_prog_OTOOL64"; then
8621 ac_ct_OTOOL64=$OTOOL64
8622 # Extract the first word of "otool64", so it can be a program name with args.
8623 set dummy otool64; ac_word=$2
8624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625 printf %s "checking for $ac_word... " >&6; }
8626 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8627 then :
8628 printf %s "(cached) " >&6
8629 else case e in #(
8630 e) if test -n "$ac_ct_OTOOL64"; then
8631 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8632 else
8633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634 for as_dir in $PATH
8635 do
8636 IFS=$as_save_IFS
8637 case $as_dir in #(((
8638 '') as_dir=./ ;;
8639 */) ;;
8640 *) as_dir=$as_dir/ ;;
8641 esac
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8644 ac_cv_prog_ac_ct_OTOOL64="otool64"
8645 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8646 break 2
8647 fi
8648 done
8649 done
8650 IFS=$as_save_IFS
8651
8652 fi ;;
8653 esac
8654 fi
8655 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8656 if test -n "$ac_ct_OTOOL64"; then
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8658 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8659 else
8660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661 printf "%s\n" "no" >&6; }
8662 fi
8663
8664 if test "x$ac_ct_OTOOL64" = x; then
8665 OTOOL64=":"
8666 else
8667 case $cross_compiling:$ac_tool_warned in
8668 yes:)
8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8670 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8671 ac_tool_warned=yes ;;
8672 esac
8673 OTOOL64=$ac_ct_OTOOL64
8674 fi
8675 else
8676 OTOOL64="$ac_cv_prog_OTOOL64"
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8706 printf %s "checking for -single_module linker flag... " >&6; }
8707 if test ${lt_cv_apple_cc_single_mod+y}
8708 then :
8709 printf %s "(cached) " >&6
8710 else case e in #(
8711 e) lt_cv_apple_cc_single_mod=no
8712 if test -z "$LT_MULTI_MODULE"; then
8713 # By default we will add the -single_module flag. You can override
8714 # by either setting the environment variable LT_MULTI_MODULE
8715 # non-empty at configure time, or by adding -multi_module to the
8716 # link flags.
8717 rm -rf libconftest.dylib*
8718 echo "int foo(void){return 1;}" > conftest.c
8719 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8720 -dynamiclib -Wl,-single_module conftest.c" >&5
8721 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8722 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8723 _lt_result=$?
8724 # If there is a non-empty error log, and "single_module"
8725 # appears in it, assume the flag caused a linker warning
8726 if test -s conftest.err && $GREP single_module conftest.err; then
8727 cat conftest.err >&5
8728 # Otherwise, if the output was created with a 0 exit code from
8729 # the compiler, it worked.
8730 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8731 lt_cv_apple_cc_single_mod=yes
8732 else
8733 cat conftest.err >&5
8734 fi
8735 rm -rf libconftest.dylib*
8736 rm -f conftest.*
8737 fi ;;
8738 esac
8739 fi
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8741 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8742
8743 # Feature test to disable chained fixups since it is not
8744 # compatible with '-undefined dynamic_lookup'
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8746 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8747 if test ${lt_cv_support_no_fixup_chains+y}
8748 then :
8749 printf %s "(cached) " >&6
8750 else case e in #(
8751 e) save_LDFLAGS=$LDFLAGS
8752 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8755
8756 int
8757 main (void)
8758 {
8759
8760 ;
8761 return 0;
8762 }
8763 _ACEOF
8764 if ac_fn_c_try_link "$LINENO"
8765 then :
8766 lt_cv_support_no_fixup_chains=yes
8767 else case e in #(
8768 e) lt_cv_support_no_fixup_chains=no
8769 ;;
8770 esac
8771 fi
8772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8773 conftest$ac_exeext conftest.$ac_ext
8774 LDFLAGS=$save_LDFLAGS
8775
8776 ;;
8777 esac
8778 fi
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8780 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8781
8782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8783 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8784 if test ${lt_cv_ld_exported_symbols_list+y}
8785 then :
8786 printf %s "(cached) " >&6
8787 else case e in #(
8788 e) lt_cv_ld_exported_symbols_list=no
8789 save_LDFLAGS=$LDFLAGS
8790 echo "_main" > conftest.sym
8791 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793 /* end confdefs.h. */
8794
8795 int
8796 main (void)
8797 {
8798
8799 ;
8800 return 0;
8801 }
8802 _ACEOF
8803 if ac_fn_c_try_link "$LINENO"
8804 then :
8805 lt_cv_ld_exported_symbols_list=yes
8806 else case e in #(
8807 e) lt_cv_ld_exported_symbols_list=no ;;
8808 esac
8809 fi
8810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8811 conftest$ac_exeext conftest.$ac_ext
8812 LDFLAGS=$save_LDFLAGS
8813 ;;
8814 esac
8815 fi
8816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8817 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8818
8819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8820 printf %s "checking for -force_load linker flag... " >&6; }
8821 if test ${lt_cv_ld_force_load+y}
8822 then :
8823 printf %s "(cached) " >&6
8824 else case e in #(
8825 e) lt_cv_ld_force_load=no
8826 cat > conftest.c << _LT_EOF
8827 int forced_loaded() { return 2;}
8828 _LT_EOF
8829 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8830 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8831 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8832 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8833 echo "$RANLIB libconftest.a" >&5
8834 $RANLIB libconftest.a 2>&5
8835 cat > conftest.c << _LT_EOF
8836 int main(void) { return 0;}
8837 _LT_EOF
8838 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8839 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8840 _lt_result=$?
8841 if test -s conftest.err && $GREP force_load conftest.err; then
8842 cat conftest.err >&5
8843 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8844 lt_cv_ld_force_load=yes
8845 else
8846 cat conftest.err >&5
8847 fi
8848 rm -f conftest.err libconftest.a conftest conftest.c
8849 rm -rf conftest.dSYM
8850 ;;
8851 esac
8852 fi
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8854 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8855 case $host_os in
8856 rhapsody* | darwin1.[012])
8857 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8858 darwin1.*)
8859 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8860 darwin*)
8861 case $MACOSX_DEPLOYMENT_TARGET,$host in
8862 10.[012],*|,*powerpc*-darwin[5-8]*)
8863 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8864 *)
8865 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8866 if test yes = "$lt_cv_support_no_fixup_chains"; then
8867 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8868 fi
8869 ;;
8870 esac
8871 ;;
8872 esac
8873 if test yes = "$lt_cv_apple_cc_single_mod"; then
8874 _lt_dar_single_mod='$single_module'
8875 fi
8876 _lt_dar_needs_single_mod=no
8877 case $host_os in
8878 rhapsody* | darwin1.*)
8879 _lt_dar_needs_single_mod=yes ;;
8880 darwin*)
8881 # When targeting Mac OS X 10.4 (darwin 8) or later,
8882 # -single_module is the default and -multi_module is unsupported.
8883 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8884 # target any OS version that needs -single_module.
8885 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8886 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8887 _lt_dar_needs_single_mod=yes ;;
8888 esac
8889 ;;
8890 esac
8891 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8892 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8893 else
8894 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8895 fi
8896 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8897 _lt_dsymutil='~$DSYMUTIL $lib || :'
8898 else
8899 _lt_dsymutil=
8900 fi
8901 ;;
8902 esac
8903
8904 # func_munge_path_list VARIABLE PATH
8905 # -----------------------------------
8906 # VARIABLE is name of variable containing _space_ separated list of
8907 # directories to be munged by the contents of PATH, which is string
8908 # having a format:
8909 # "DIR[:DIR]:"
8910 # string "DIR[ DIR]" will be prepended to VARIABLE
8911 # ":DIR[:DIR]"
8912 # string "DIR[ DIR]" will be appended to VARIABLE
8913 # "DIRP[:DIRP]::[DIRA:]DIRA"
8914 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8915 # "DIRA[ DIRA]" will be appended to VARIABLE
8916 # "DIR[:DIR]"
8917 # VARIABLE will be replaced by "DIR[ DIR]"
8918 func_munge_path_list ()
8919 {
8920 case x$2 in
8921 x)
8922 ;;
8923 *:)
8924 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8925 ;;
8926 x:*)
8927 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8928 ;;
8929 *::*)
8930 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8931 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8932 ;;
8933 *)
8934 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8935 ;;
8936 esac
8937 }
8938
8939 ac_header= ac_cache=
8940 for ac_item in $ac_header_c_list
8941 do
8942 if test $ac_cache; then
8943 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
8944 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
8945 printf "%s\n" "#define $ac_item 1" >> confdefs.h
8946 fi
8947 ac_header= ac_cache=
8948 elif test $ac_header; then
8949 ac_cache=$ac_item
8950 else
8951 ac_header=$ac_item
8952 fi
8953 done
8954
8955
8956
8957
8958
8959
8960
8961
8962 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
8963 then :
8964
8965 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
8966
8967 fi
8968 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8969 "
8970 if test "x$ac_cv_header_dlfcn_h" = xyes
8971 then :
8972 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8973
8974 fi
8975
8976
8977
8978
8979
8980 # Set options
8981
8982
8983
8984 enable_dlopen=no
8985
8986
8987 enable_win32_dll=no
8988
8989
8990 # Check whether --enable-shared was given.
8991 if test ${enable_shared+y}
8992 then :
8993 enableval=$enable_shared; p=${PACKAGE-default}
8994 case $enableval in
8995 yes) enable_shared=yes ;;
8996 no) enable_shared=no ;;
8997 *)
8998 enable_shared=no
8999 # Look at the argument we got. We use all the common list separators.
9000 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9001 for pkg in $enableval; do
9002 IFS=$lt_save_ifs
9003 if test "X$pkg" = "X$p"; then
9004 enable_shared=yes
9005 fi
9006 done
9007 IFS=$lt_save_ifs
9008 ;;
9009 esac
9010 else case e in #(
9011 e) enable_shared=yes ;;
9012 esac
9013 fi
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023 # Check whether --enable-static was given.
9024 if test ${enable_static+y}
9025 then :
9026 enableval=$enable_static; p=${PACKAGE-default}
9027 case $enableval in
9028 yes) enable_static=yes ;;
9029 no) enable_static=no ;;
9030 *)
9031 enable_static=no
9032 # Look at the argument we got. We use all the common list separators.
9033 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9034 for pkg in $enableval; do
9035 IFS=$lt_save_ifs
9036 if test "X$pkg" = "X$p"; then
9037 enable_static=yes
9038 fi
9039 done
9040 IFS=$lt_save_ifs
9041 ;;
9042 esac
9043 else case e in #(
9044 e) enable_static=yes ;;
9045 esac
9046 fi
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056 # Check whether --enable-pic was given.
9057 if test ${enable_pic+y}
9058 then :
9059 enableval=$enable_pic; lt_p=${PACKAGE-default}
9060 case $enableval in
9061 yes|no) pic_mode=$enableval ;;
9062 *)
9063 pic_mode=default
9064 # Look at the argument we got. We use all the common list separators.
9065 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9066 for lt_pkg in $enableval; do
9067 IFS=$lt_save_ifs
9068 if test "X$lt_pkg" = "X$lt_p"; then
9069 pic_mode=yes
9070 fi
9071 done
9072 IFS=$lt_save_ifs
9073 ;;
9074 esac
9075 else case e in #(
9076 e) # Check whether --with-pic was given.
9077 if test ${with_pic+y}
9078 then :
9079 withval=$with_pic; lt_p=${PACKAGE-default}
9080 case $withval in
9081 yes|no) pic_mode=$withval ;;
9082 *)
9083 pic_mode=default
9084 # Look at the argument we got. We use all the common list separators.
9085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9086 for lt_pkg in $withval; do
9087 IFS=$lt_save_ifs
9088 if test "X$lt_pkg" = "X$lt_p"; then
9089 pic_mode=yes
9090 fi
9091 done
9092 IFS=$lt_save_ifs
9093 ;;
9094 esac
9095 else case e in #(
9096 e) pic_mode=default ;;
9097 esac
9098 fi
9099
9100 ;;
9101 esac
9102 fi
9103
9104
9105
9106
9107
9108
9109
9110
9111 # Check whether --enable-fast-install was given.
9112 if test ${enable_fast_install+y}
9113 then :
9114 enableval=$enable_fast_install; p=${PACKAGE-default}
9115 case $enableval in
9116 yes) enable_fast_install=yes ;;
9117 no) enable_fast_install=no ;;
9118 *)
9119 enable_fast_install=no
9120 # Look at the argument we got. We use all the common list separators.
9121 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9122 for pkg in $enableval; do
9123 IFS=$lt_save_ifs
9124 if test "X$pkg" = "X$p"; then
9125 enable_fast_install=yes
9126 fi
9127 done
9128 IFS=$lt_save_ifs
9129 ;;
9130 esac
9131 else case e in #(
9132 e) enable_fast_install=yes ;;
9133 esac
9134 fi
9135
9136
9137
9138
9139
9140
9141
9142
9143 shared_archive_member_spec=
9144 case $host,$enable_shared in
9145 power*-*-aix[5-9]*,yes)
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9147 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9148 # Check whether --enable-aix-soname was given.
9149 if test ${enable_aix_soname+y}
9150 then :
9151 enableval=$enable_aix_soname; case $enableval in
9152 aix|svr4|both)
9153 ;;
9154 *)
9155 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9156 ;;
9157 esac
9158 lt_cv_with_aix_soname=$enable_aix_soname
9159 else case e in #(
9160 e) # Check whether --with-aix-soname was given.
9161 if test ${with_aix_soname+y}
9162 then :
9163 withval=$with_aix_soname; case $withval in
9164 aix|svr4|both)
9165 ;;
9166 *)
9167 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9168 ;;
9169 esac
9170 lt_cv_with_aix_soname=$with_aix_soname
9171 else case e in #(
9172 e) if test ${lt_cv_with_aix_soname+y}
9173 then :
9174 printf %s "(cached) " >&6
9175 else case e in #(
9176 e) lt_cv_with_aix_soname=aix ;;
9177 esac
9178 fi
9179 ;;
9180 esac
9181 fi
9182
9183 enable_aix_soname=$lt_cv_with_aix_soname ;;
9184 esac
9185 fi
9186
9187 with_aix_soname=$enable_aix_soname
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9189 printf "%s\n" "$with_aix_soname" >&6; }
9190 if test aix != "$with_aix_soname"; then
9191 # For the AIX way of multilib, we name the shared archive member
9192 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9193 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9194 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9195 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9196 if test 64 = "${OBJECT_MODE-32}"; then
9197 shared_archive_member_spec=shr_64
9198 else
9199 shared_archive_member_spec=shr
9200 fi
9201 fi
9202 ;;
9203 *)
9204 with_aix_soname=aix
9205 ;;
9206 esac
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217 # This can be used to rebuild libtool when needed
9218 LIBTOOL_DEPS=$ltmain
9219
9220 # Always use our own libtool.
9221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252 test -z "$LN_S" && LN_S="ln -s"
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267 if test -n "${ZSH_VERSION+set}"; then
9268 setopt NO_GLOB_SUBST
9269 fi
9270
9271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9272 printf %s "checking for objdir... " >&6; }
9273 if test ${lt_cv_objdir+y}
9274 then :
9275 printf %s "(cached) " >&6
9276 else case e in #(
9277 e) rm -f .libs 2>/dev/null
9278 mkdir .libs 2>/dev/null
9279 if test -d .libs; then
9280 lt_cv_objdir=.libs
9281 else
9282 # MS-DOS does not allow filenames that begin with a dot.
9283 lt_cv_objdir=_libs
9284 fi
9285 rmdir .libs 2>/dev/null ;;
9286 esac
9287 fi
9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9289 printf "%s\n" "$lt_cv_objdir" >&6; }
9290 objdir=$lt_cv_objdir
9291
9292
9293
9294
9295
9296 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9297
9298
9299
9300
9301 case $host_os in
9302 aix3*)
9303 # AIX sometimes has problems with the GCC collect2 program. For some
9304 # reason, if we set the COLLECT_NAMES environment variable, the problems
9305 # vanish in a puff of smoke.
9306 if test set != "${COLLECT_NAMES+set}"; then
9307 COLLECT_NAMES=
9308 export COLLECT_NAMES
9309 fi
9310 ;;
9311 esac
9312
9313 # Global variables:
9314 ofile=libtool
9315 can_build_shared=yes
9316
9317 # All known linkers require a '.a' archive for static linking (except MSVC and
9318 # ICC, which need '.lib').
9319 libext=a
9320
9321 with_gnu_ld=$lt_cv_prog_gnu_ld
9322
9323 old_CC=$CC
9324 old_CFLAGS=$CFLAGS
9325
9326 # Set sane defaults for various variables
9327 test -z "$CC" && CC=cc
9328 test -z "$LTCC" && LTCC=$CC
9329 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9330 test -z "$LD" && LD=ld
9331 test -z "$ac_objext" && ac_objext=o
9332
9333 func_cc_basename $compiler
9334 cc_basename=$func_cc_basename_result
9335
9336
9337 # Only perform the check for file, if the check method requires it
9338 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9339 case $deplibs_check_method in
9340 file_magic*)
9341 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9343 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9344 if test ${lt_cv_path_MAGIC_CMD+y}
9345 then :
9346 printf %s "(cached) " >&6
9347 else case e in #(
9348 e) case $MAGIC_CMD in
9349 [\\/*] | ?:[\\/]*)
9350 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9351 ;;
9352 *)
9353 lt_save_MAGIC_CMD=$MAGIC_CMD
9354 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9355 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9356 for ac_dir in $ac_dummy; do
9357 IFS=$lt_save_ifs
9358 test -z "$ac_dir" && ac_dir=.
9359 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9360 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9361 if test -n "$file_magic_test_file"; then
9362 case $deplibs_check_method in
9363 "file_magic "*)
9364 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9365 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9366 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9367 $EGREP "$file_magic_regex" > /dev/null; then
9368 :
9369 else
9370 cat <<_LT_EOF 1>&2
9371
9372 *** Warning: the command libtool uses to detect shared libraries,
9373 *** $file_magic_cmd, produces output that libtool cannot recognize.
9374 *** The result is that libtool may fail to recognize shared libraries
9375 *** as such. This will affect the creation of libtool libraries that
9376 *** depend on shared libraries, but programs linked with such libtool
9377 *** libraries will work regardless of this problem. Nevertheless, you
9378 *** may want to report the problem to your system manager and/or to
9379 *** [email protected]
9380
9381 _LT_EOF
9382 fi ;;
9383 esac
9384 fi
9385 break
9386 fi
9387 done
9388 IFS=$lt_save_ifs
9389 MAGIC_CMD=$lt_save_MAGIC_CMD
9390 ;;
9391 esac ;;
9392 esac
9393 fi
9394
9395 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9396 if test -n "$MAGIC_CMD"; then
9397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9398 printf "%s\n" "$MAGIC_CMD" >&6; }
9399 else
9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 printf "%s\n" "no" >&6; }
9402 fi
9403
9404
9405
9406
9407
9408 if test -z "$lt_cv_path_MAGIC_CMD"; then
9409 if test -n "$ac_tool_prefix"; then
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9411 printf %s "checking for file... " >&6; }
9412 if test ${lt_cv_path_MAGIC_CMD+y}
9413 then :
9414 printf %s "(cached) " >&6
9415 else case e in #(
9416 e) case $MAGIC_CMD in
9417 [\\/*] | ?:[\\/]*)
9418 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9419 ;;
9420 *)
9421 lt_save_MAGIC_CMD=$MAGIC_CMD
9422 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9423 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9424 for ac_dir in $ac_dummy; do
9425 IFS=$lt_save_ifs
9426 test -z "$ac_dir" && ac_dir=.
9427 if test -f "$ac_dir/file"; then
9428 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9429 if test -n "$file_magic_test_file"; then
9430 case $deplibs_check_method in
9431 "file_magic "*)
9432 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9433 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9434 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9435 $EGREP "$file_magic_regex" > /dev/null; then
9436 :
9437 else
9438 cat <<_LT_EOF 1>&2
9439
9440 *** Warning: the command libtool uses to detect shared libraries,
9441 *** $file_magic_cmd, produces output that libtool cannot recognize.
9442 *** The result is that libtool may fail to recognize shared libraries
9443 *** as such. This will affect the creation of libtool libraries that
9444 *** depend on shared libraries, but programs linked with such libtool
9445 *** libraries will work regardless of this problem. Nevertheless, you
9446 *** may want to report the problem to your system manager and/or to
9447 *** [email protected]
9448
9449 _LT_EOF
9450 fi ;;
9451 esac
9452 fi
9453 break
9454 fi
9455 done
9456 IFS=$lt_save_ifs
9457 MAGIC_CMD=$lt_save_MAGIC_CMD
9458 ;;
9459 esac ;;
9460 esac
9461 fi
9462
9463 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9464 if test -n "$MAGIC_CMD"; then
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9466 printf "%s\n" "$MAGIC_CMD" >&6; }
9467 else
9468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9469 printf "%s\n" "no" >&6; }
9470 fi
9471
9472
9473 else
9474 MAGIC_CMD=:
9475 fi
9476 fi
9477
9478 fi
9479 ;;
9480 esac
9481
9482 # Use C for the default configuration in the libtool script
9483
9484 lt_save_CC=$CC
9485 ac_ext=c
9486 ac_cpp='$CPP $CPPFLAGS'
9487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9490
9491
9492 # Source file extension for C test sources.
9493 ac_ext=c
9494
9495 # Object file extension for compiled C test sources.
9496 objext=o
9497 objext=$objext
9498
9499 # Code to be used in simple compile tests
9500 lt_simple_compile_test_code="int some_variable = 0;"
9501
9502 # Code to be used in simple link tests
9503 lt_simple_link_test_code='int main(void){return(0);}'
9504
9505
9506
9507
9508
9509
9510
9511 # If no C compiler was specified, use CC.
9512 LTCC=${LTCC-"$CC"}
9513
9514 # If no C compiler flags were specified, use CFLAGS.
9515 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9516
9517 # Allow CC to be a program name with arguments.
9518 compiler=$CC
9519
9520 # Save the default compiler, since it gets overwritten when the other
9521 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9522 compiler_DEFAULT=$CC
9523
9524 # save warnings/boilerplate of simple test code
9525 ac_outfile=conftest.$ac_objext
9526 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9527 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9528 _lt_compiler_boilerplate=`cat conftest.err`
9529 $RM conftest*
9530
9531 ac_outfile=conftest.$ac_objext
9532 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9533 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9534 _lt_linker_boilerplate=`cat conftest.err`
9535 $RM -r conftest*
9536
9537
9538 ## CAVEAT EMPTOR:
9539 ## There is no encapsulation within the following macros, do not change
9540 ## the running order or otherwise move them around unless you know exactly
9541 ## what you are doing...
9542 if test -n "$compiler"; then
9543
9544 lt_prog_compiler_no_builtin_flag=
9545
9546 if test yes = "$GCC"; then
9547 case $cc_basename in
9548 nvcc*)
9549 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9550 *)
9551 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9552 esac
9553
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9555 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9556 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9557 then :
9558 printf %s "(cached) " >&6
9559 else case e in #(
9560 e) lt_cv_prog_compiler_rtti_exceptions=no
9561 ac_outfile=conftest.$ac_objext
9562 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9563 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9564 # Insert the option either (1) after the last *FLAGS variable, or
9565 # (2) before a word containing "conftest.", or (3) at the end.
9566 # Note that $ac_compile itself does not contain backslashes and begins
9567 # with a dollar sign (not a hyphen), so the echo should work correctly.
9568 # The option is referenced via a variable to avoid confusing sed.
9569 lt_compile=`echo "$ac_compile" | $SED \
9570 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9571 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9572 -e 's:$: $lt_compiler_flag:'`
9573 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9574 (eval "$lt_compile" 2>conftest.err)
9575 ac_status=$?
9576 cat conftest.err >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 if (exit $ac_status) && test -s "$ac_outfile"; then
9579 # The compiler can only warn and ignore the option if not recognized
9580 # So say no if there are warnings other than the usual output.
9581 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9582 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9583 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9584 lt_cv_prog_compiler_rtti_exceptions=yes
9585 fi
9586 fi
9587 $RM conftest*
9588 ;;
9589 esac
9590 fi
9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9592 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9593
9594 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9595 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9596 else
9597 :
9598 fi
9599
9600 fi
9601
9602
9603
9604
9605
9606
9607 lt_prog_compiler_wl=
9608 lt_prog_compiler_pic=
9609 lt_prog_compiler_static=
9610
9611
9612 if test yes = "$GCC"; then
9613 lt_prog_compiler_wl='-Wl,'
9614 lt_prog_compiler_static='-static'
9615
9616 case $host_os in
9617 aix*)
9618 # All AIX code is PIC.
9619 if test ia64 = "$host_cpu"; then
9620 # AIX 5 now supports IA64 processor
9621 lt_prog_compiler_static='-Bstatic'
9622 fi
9623 lt_prog_compiler_pic='-fPIC'
9624 ;;
9625
9626 amigaos*)
9627 case $host_cpu in
9628 powerpc)
9629 # see comment about AmigaOS4 .so support
9630 lt_prog_compiler_pic='-fPIC'
9631 ;;
9632 m68k)
9633 # FIXME: we need at least 68020 code to build shared libraries, but
9634 # adding the '-m68020' flag to GCC prevents building anything better,
9635 # like '-m68040'.
9636 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9637 ;;
9638 esac
9639 ;;
9640
9641 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9642 # PIC is the default for these OSes.
9643 ;;
9644
9645 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9646 # This hack is so that the source file can tell whether it is being
9647 # built for inclusion in a dll (and should export symbols for example).
9648 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9649 # (--disable-auto-import) libraries
9650 lt_prog_compiler_pic='-DDLL_EXPORT'
9651 case $host_os in
9652 os2*)
9653 lt_prog_compiler_static='$wl-static'
9654 ;;
9655 esac
9656 ;;
9657
9658 darwin* | rhapsody*)
9659 # PIC is the default on this platform
9660 # Common symbols not allowed in MH_DYLIB files
9661 lt_prog_compiler_pic='-fno-common'
9662 ;;
9663
9664 haiku*)
9665 # PIC is the default for Haiku.
9666 # The "-static" flag exists, but is broken.
9667 lt_prog_compiler_static=
9668 ;;
9669
9670 hpux*)
9671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9673 # sets the default TLS model and affects inlining.
9674 case $host_cpu in
9675 hppa*64*)
9676 # +Z the default
9677 ;;
9678 *)
9679 lt_prog_compiler_pic='-fPIC'
9680 ;;
9681 esac
9682 ;;
9683
9684 interix[3-9]*)
9685 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9686 # Instead, we relocate shared libraries at runtime.
9687 ;;
9688
9689 msdosdjgpp*)
9690 # Just because we use GCC doesn't mean we suddenly get shared libraries
9691 # on systems that don't support them.
9692 lt_prog_compiler_can_build_shared=no
9693 enable_shared=no
9694 ;;
9695
9696 *nto* | *qnx*)
9697 # QNX uses GNU C++, but need to define -shared option too, otherwise
9698 # it will coredump.
9699 lt_prog_compiler_pic='-fPIC -shared'
9700 ;;
9701
9702 sysv4*MP*)
9703 if test -d /usr/nec; then
9704 lt_prog_compiler_pic=-Kconform_pic
9705 fi
9706 ;;
9707
9708 *)
9709 lt_prog_compiler_pic='-fPIC'
9710 ;;
9711 esac
9712
9713 case $cc_basename in
9714 nvcc*) # Cuda Compiler Driver 2.2
9715 lt_prog_compiler_wl='-Xlinker '
9716 if test -n "$lt_prog_compiler_pic"; then
9717 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9718 fi
9719 ;;
9720 esac
9721 else
9722 # PORTME Check for flag to pass linker flags through the system compiler.
9723 case $host_os in
9724 aix*)
9725 lt_prog_compiler_wl='-Wl,'
9726 if test ia64 = "$host_cpu"; then
9727 # AIX 5 now supports IA64 processor
9728 lt_prog_compiler_static='-Bstatic'
9729 else
9730 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9731 fi
9732 ;;
9733
9734 darwin* | rhapsody*)
9735 # PIC is the default on this platform
9736 # Common symbols not allowed in MH_DYLIB files
9737 lt_prog_compiler_pic='-fno-common'
9738 case $cc_basename in
9739 nagfor*)
9740 # NAG Fortran compiler
9741 lt_prog_compiler_wl='-Wl,-Wl,,'
9742 lt_prog_compiler_pic='-PIC'
9743 lt_prog_compiler_static='-Bstatic'
9744 ;;
9745 esac
9746 ;;
9747
9748 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9749 # This hack is so that the source file can tell whether it is being
9750 # built for inclusion in a dll (and should export symbols for example).
9751 lt_prog_compiler_pic='-DDLL_EXPORT'
9752 case $host_os in
9753 os2*)
9754 lt_prog_compiler_static='$wl-static'
9755 ;;
9756 esac
9757 ;;
9758
9759 hpux9* | hpux10* | hpux11*)
9760 lt_prog_compiler_wl='-Wl,'
9761 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9762 # not for PA HP-UX.
9763 case $host_cpu in
9764 hppa*64*|ia64*)
9765 # +Z the default
9766 ;;
9767 *)
9768 lt_prog_compiler_pic='+Z'
9769 ;;
9770 esac
9771 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9772 lt_prog_compiler_static='$wl-a ${wl}archive'
9773 ;;
9774
9775 irix5* | irix6* | nonstopux*)
9776 lt_prog_compiler_wl='-Wl,'
9777 # PIC (with -KPIC) is the default.
9778 lt_prog_compiler_static='-non_shared'
9779 ;;
9780
9781 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9782 case $cc_basename in
9783 # old Intel for x86_64, which still supported -KPIC.
9784 ecc*)
9785 lt_prog_compiler_wl='-Wl,'
9786 lt_prog_compiler_pic='-KPIC'
9787 lt_prog_compiler_static='-static'
9788 ;;
9789 *flang* | ftn | f18* | f95*)
9790 # Flang compiler.
9791 lt_prog_compiler_wl='-Wl,'
9792 lt_prog_compiler_pic='-fPIC'
9793 lt_prog_compiler_static='-static'
9794 ;;
9795 # flang / f18. f95 an alias for gfortran or flang on Debian
9796 flang* | f18* | f95*)
9797 lt_prog_compiler_wl='-Wl,'
9798 lt_prog_compiler_pic='-fPIC'
9799 lt_prog_compiler_static='-static'
9800 ;;
9801 # icc used to be incompatible with GCC.
9802 # ICC 10 doesn't accept -KPIC any more.
9803 icc* | ifort*)
9804 lt_prog_compiler_wl='-Wl,'
9805 lt_prog_compiler_pic='-fPIC'
9806 lt_prog_compiler_static='-static'
9807 ;;
9808 # Lahey Fortran 8.1.
9809 lf95*)
9810 lt_prog_compiler_wl='-Wl,'
9811 lt_prog_compiler_pic='--shared'
9812 lt_prog_compiler_static='--static'
9813 ;;
9814 nagfor*)
9815 # NAG Fortran compiler
9816 lt_prog_compiler_wl='-Wl,-Wl,,'
9817 lt_prog_compiler_pic='-PIC'
9818 lt_prog_compiler_static='-Bstatic'
9819 ;;
9820 tcc*)
9821 # Fabrice Bellard et al's Tiny C Compiler
9822 lt_prog_compiler_wl='-Wl,'
9823 lt_prog_compiler_pic='-fPIC'
9824 lt_prog_compiler_static='-static'
9825 ;;
9826 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9827 # Portland Group compilers (*not* the Pentium gcc compiler,
9828 # which looks to be a dead project)
9829 lt_prog_compiler_wl='-Wl,'
9830 lt_prog_compiler_pic='-fpic'
9831 lt_prog_compiler_static='-Bstatic'
9832 ;;
9833 ccc*)
9834 lt_prog_compiler_wl='-Wl,'
9835 # All Alpha code is PIC.
9836 lt_prog_compiler_static='-non_shared'
9837 ;;
9838 xl* | bgxl* | bgf* | mpixl*)
9839 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9840 lt_prog_compiler_wl='-Wl,'
9841 lt_prog_compiler_pic='-qpic'
9842 lt_prog_compiler_static='-qstaticlink'
9843 ;;
9844 *)
9845 case `$CC -V 2>&1 | $SED 5q` in
9846 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9847 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9848 lt_prog_compiler_pic='-KPIC'
9849 lt_prog_compiler_static='-Bstatic'
9850 lt_prog_compiler_wl=''
9851 ;;
9852 *Sun\ F* | *Sun*Fortran*)
9853 lt_prog_compiler_pic='-KPIC'
9854 lt_prog_compiler_static='-Bstatic'
9855 lt_prog_compiler_wl='-Qoption ld '
9856 ;;
9857 *Sun\ C*)
9858 # Sun C 5.9
9859 lt_prog_compiler_pic='-KPIC'
9860 lt_prog_compiler_static='-Bstatic'
9861 lt_prog_compiler_wl='-Wl,'
9862 ;;
9863 *Intel*\ [CF]*Compiler*)
9864 lt_prog_compiler_wl='-Wl,'
9865 lt_prog_compiler_pic='-fPIC'
9866 lt_prog_compiler_static='-static'
9867 ;;
9868 *Portland\ Group*)
9869 lt_prog_compiler_wl='-Wl,'
9870 lt_prog_compiler_pic='-fpic'
9871 lt_prog_compiler_static='-Bstatic'
9872 ;;
9873 esac
9874 ;;
9875 esac
9876 ;;
9877
9878 newsos6)
9879 lt_prog_compiler_pic='-KPIC'
9880 lt_prog_compiler_static='-Bstatic'
9881 ;;
9882
9883 *-mlibc)
9884 lt_prog_compiler_wl='-Wl,'
9885 lt_prog_compiler_pic='-fPIC'
9886 lt_prog_compiler_static='-static'
9887 ;;
9888
9889 *nto* | *qnx*)
9890 # QNX uses GNU C++, but need to define -shared option too, otherwise
9891 # it will coredump.
9892 lt_prog_compiler_pic='-fPIC -shared'
9893 ;;
9894
9895 osf3* | osf4* | osf5*)
9896 lt_prog_compiler_wl='-Wl,'
9897 # All OSF/1 code is PIC.
9898 lt_prog_compiler_static='-non_shared'
9899 ;;
9900
9901 rdos*)
9902 lt_prog_compiler_static='-non_shared'
9903 ;;
9904
9905 serenity*)
9906 ;;
9907
9908 solaris*)
9909 lt_prog_compiler_pic='-KPIC'
9910 lt_prog_compiler_static='-Bstatic'
9911 case $cc_basename in
9912 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9913 lt_prog_compiler_wl='-Qoption ld ';;
9914 *)
9915 lt_prog_compiler_wl='-Wl,';;
9916 esac
9917 ;;
9918
9919 sunos4*)
9920 lt_prog_compiler_wl='-Qoption ld '
9921 lt_prog_compiler_pic='-PIC'
9922 lt_prog_compiler_static='-Bstatic'
9923 ;;
9924
9925 sysv4 | sysv4.2uw2* | sysv4.3*)
9926 lt_prog_compiler_wl='-Wl,'
9927 lt_prog_compiler_pic='-KPIC'
9928 lt_prog_compiler_static='-Bstatic'
9929 ;;
9930
9931 sysv4*MP*)
9932 if test -d /usr/nec; then
9933 lt_prog_compiler_pic='-Kconform_pic'
9934 lt_prog_compiler_static='-Bstatic'
9935 fi
9936 ;;
9937
9938 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9939 lt_prog_compiler_wl='-Wl,'
9940 lt_prog_compiler_pic='-KPIC'
9941 lt_prog_compiler_static='-Bstatic'
9942 ;;
9943
9944 unicos*)
9945 lt_prog_compiler_wl='-Wl,'
9946 lt_prog_compiler_can_build_shared=no
9947 ;;
9948
9949 uts4*)
9950 lt_prog_compiler_pic='-pic'
9951 lt_prog_compiler_static='-Bstatic'
9952 ;;
9953
9954 *)
9955 lt_prog_compiler_can_build_shared=no
9956 ;;
9957 esac
9958 fi
9959
9960 case $host_os in
9961 # For platforms that do not support PIC, -DPIC is meaningless:
9962 *djgpp*)
9963 lt_prog_compiler_pic=
9964 ;;
9965 *)
9966 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9967 ;;
9968 esac
9969
9970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9971 printf %s "checking for $compiler option to produce PIC... " >&6; }
9972 if test ${lt_cv_prog_compiler_pic+y}
9973 then :
9974 printf %s "(cached) " >&6
9975 else case e in #(
9976 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9977 esac
9978 fi
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9980 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9981 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9982
9983 #
9984 # Check to make sure the PIC flag actually works.
9985 #
9986 if test -n "$lt_prog_compiler_pic"; then
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9988 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9989 if test ${lt_cv_prog_compiler_pic_works+y}
9990 then :
9991 printf %s "(cached) " >&6
9992 else case e in #(
9993 e) lt_cv_prog_compiler_pic_works=no
9994 ac_outfile=conftest.$ac_objext
9995 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9996 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9997 # Insert the option either (1) after the last *FLAGS variable, or
9998 # (2) before a word containing "conftest.", or (3) at the end.
9999 # Note that $ac_compile itself does not contain backslashes and begins
10000 # with a dollar sign (not a hyphen), so the echo should work correctly.
10001 # The option is referenced via a variable to avoid confusing sed.
10002 lt_compile=`echo "$ac_compile" | $SED \
10003 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10005 -e 's:$: $lt_compiler_flag:'`
10006 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10007 (eval "$lt_compile" 2>conftest.err)
10008 ac_status=$?
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 if (exit $ac_status) && test -s "$ac_outfile"; then
10012 # The compiler can only warn and ignore the option if not recognized
10013 # So say no if there are warnings other than the usual output.
10014 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10015 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10016 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10017 lt_cv_prog_compiler_pic_works=yes
10018 fi
10019 fi
10020 $RM conftest*
10021 ;;
10022 esac
10023 fi
10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10025 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10026
10027 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10028 case $lt_prog_compiler_pic in
10029 "" | " "*) ;;
10030 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10031 esac
10032 else
10033 lt_prog_compiler_pic=
10034 lt_prog_compiler_can_build_shared=no
10035 fi
10036
10037 fi
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049 #
10050 # Check to make sure the static flag actually works.
10051 #
10052 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10054 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10055 if test ${lt_cv_prog_compiler_static_works+y}
10056 then :
10057 printf %s "(cached) " >&6
10058 else case e in #(
10059 e) lt_cv_prog_compiler_static_works=no
10060 save_LDFLAGS=$LDFLAGS
10061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10064 # The linker can only warn and ignore the option if not recognized
10065 # So say no if there are warnings
10066 if test -s conftest.err; then
10067 # Append any errors to the config.log.
10068 cat conftest.err 1>&5
10069 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10071 if diff conftest.exp conftest.er2 >/dev/null; then
10072 lt_cv_prog_compiler_static_works=yes
10073 fi
10074 else
10075 lt_cv_prog_compiler_static_works=yes
10076 fi
10077 fi
10078 $RM -r conftest*
10079 LDFLAGS=$save_LDFLAGS
10080 ;;
10081 esac
10082 fi
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10084 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10085
10086 if test yes = "$lt_cv_prog_compiler_static_works"; then
10087 :
10088 else
10089 lt_prog_compiler_static=
10090 fi
10091
10092
10093
10094
10095
10096
10097
10098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10099 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10100 if test ${lt_cv_prog_compiler_c_o+y}
10101 then :
10102 printf %s "(cached) " >&6
10103 else case e in #(
10104 e) lt_cv_prog_compiler_c_o=no
10105 $RM -r conftest 2>/dev/null
10106 mkdir conftest
10107 cd conftest
10108 mkdir out
10109 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10110
10111 lt_compiler_flag="-o out/conftest2.$ac_objext"
10112 # Insert the option either (1) after the last *FLAGS variable, or
10113 # (2) before a word containing "conftest.", or (3) at the end.
10114 # Note that $ac_compile itself does not contain backslashes and begins
10115 # with a dollar sign (not a hyphen), so the echo should work correctly.
10116 lt_compile=`echo "$ac_compile" | $SED \
10117 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10118 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10119 -e 's:$: $lt_compiler_flag:'`
10120 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10121 (eval "$lt_compile" 2>out/conftest.err)
10122 ac_status=$?
10123 cat out/conftest.err >&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10126 then
10127 # The compiler can only warn and ignore the option if not recognized
10128 # So say no if there are warnings
10129 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10130 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10131 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10132 lt_cv_prog_compiler_c_o=yes
10133 fi
10134 fi
10135 chmod u+w . 2>&5
10136 $RM conftest*
10137 # SGI C++ compiler will create directory out/ii_files/ for
10138 # template instantiation
10139 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10140 $RM out/* && rmdir out
10141 cd ..
10142 $RM -r conftest
10143 $RM conftest*
10144 ;;
10145 esac
10146 fi
10147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10148 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10149
10150
10151
10152
10153
10154
10155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10156 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10157 if test ${lt_cv_prog_compiler_c_o+y}
10158 then :
10159 printf %s "(cached) " >&6
10160 else case e in #(
10161 e) lt_cv_prog_compiler_c_o=no
10162 $RM -r conftest 2>/dev/null
10163 mkdir conftest
10164 cd conftest
10165 mkdir out
10166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10167
10168 lt_compiler_flag="-o out/conftest2.$ac_objext"
10169 # Insert the option either (1) after the last *FLAGS variable, or
10170 # (2) before a word containing "conftest.", or (3) at the end.
10171 # Note that $ac_compile itself does not contain backslashes and begins
10172 # with a dollar sign (not a hyphen), so the echo should work correctly.
10173 lt_compile=`echo "$ac_compile" | $SED \
10174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10176 -e 's:$: $lt_compiler_flag:'`
10177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10178 (eval "$lt_compile" 2>out/conftest.err)
10179 ac_status=$?
10180 cat out/conftest.err >&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10183 then
10184 # The compiler can only warn and ignore the option if not recognized
10185 # So say no if there are warnings
10186 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10187 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10188 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10189 lt_cv_prog_compiler_c_o=yes
10190 fi
10191 fi
10192 chmod u+w . 2>&5
10193 $RM conftest*
10194 # SGI C++ compiler will create directory out/ii_files/ for
10195 # template instantiation
10196 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10197 $RM out/* && rmdir out
10198 cd ..
10199 $RM -r conftest
10200 $RM conftest*
10201 ;;
10202 esac
10203 fi
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10205 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10206
10207
10208
10209
10210 hard_links=nottested
10211 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10212 # do not overwrite the value of need_locks provided by the user
10213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10214 printf %s "checking if we can lock with hard links... " >&6; }
10215 hard_links=yes
10216 $RM conftest*
10217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10218 touch conftest.a
10219 ln conftest.a conftest.b 2>&5 || hard_links=no
10220 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10222 printf "%s\n" "$hard_links" >&6; }
10223 if test no = "$hard_links"; then
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10225 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10226 need_locks=warn
10227 fi
10228 else
10229 need_locks=no
10230 fi
10231
10232
10233
10234
10235
10236
10237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10238 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10239
10240 runpath_var=
10241 allow_undefined_flag=
10242 always_export_symbols=no
10243 archive_cmds=
10244 archive_expsym_cmds=
10245 compiler_needs_object=no
10246 enable_shared_with_static_runtimes=no
10247 export_dynamic_flag_spec=
10248 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10249 hardcode_automatic=no
10250 hardcode_direct=no
10251 hardcode_direct_absolute=no
10252 hardcode_libdir_flag_spec=
10253 hardcode_libdir_separator=
10254 hardcode_minus_L=no
10255 hardcode_shlibpath_var=unsupported
10256 inherit_rpath=no
10257 link_all_deplibs=unknown
10258 module_cmds=
10259 module_expsym_cmds=
10260 old_archive_from_new_cmds=
10261 old_archive_from_expsyms_cmds=
10262 thread_safe_flag_spec=
10263 whole_archive_flag_spec=
10264 # include_expsyms should be a list of space-separated symbols to be *always*
10265 # included in the symbol list
10266 include_expsyms=
10267 # exclude_expsyms can be an extended regexp of symbols to exclude
10268 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10269 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10270 # as well as any symbol that contains 'd'.
10271 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10272 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10273 # platforms (ab)use it in PIC code, but their linkers get confused if
10274 # the symbol is explicitly referenced. Since portable code cannot
10275 # rely on this symbol name, it's probably fine to never include it in
10276 # preloaded symbol tables.
10277 # Exclude shared library initialization/finalization symbols.
10278 extract_expsyms_cmds=
10279
10280 case $host_os in
10281 cygwin* | mingw* | windows* | pw32* | cegcc*)
10282 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10283 # When not using gcc, we currently assume that we are using
10284 # Microsoft Visual C++ or Intel C++ Compiler.
10285 if test yes != "$GCC"; then
10286 with_gnu_ld=no
10287 fi
10288 ;;
10289 interix*)
10290 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10291 with_gnu_ld=yes
10292 ;;
10293 linux* | k*bsd*-gnu | gnu*)
10294 link_all_deplibs=no
10295 ;;
10296 esac
10297
10298 ld_shlibs=yes
10299
10300 # On some targets, GNU ld is compatible enough with the native linker
10301 # that we're better off using the native interface for both.
10302 lt_use_gnu_ld_interface=no
10303 if test yes = "$with_gnu_ld"; then
10304 case $host_os in
10305 aix*)
10306 # The AIX port of GNU ld has always aspired to compatibility
10307 # with the native linker. However, as the warning in the GNU ld
10308 # block says, versions before 2.19.5* couldn't really create working
10309 # shared libraries, regardless of the interface used.
10310 case `$LD -v 2>&1` in
10311 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10312 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10313 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10314 *)
10315 lt_use_gnu_ld_interface=yes
10316 ;;
10317 esac
10318 ;;
10319 *)
10320 lt_use_gnu_ld_interface=yes
10321 ;;
10322 esac
10323 fi
10324
10325 if test yes = "$lt_use_gnu_ld_interface"; then
10326 # If archive_cmds runs LD, not CC, wlarc should be empty
10327 wlarc='$wl'
10328
10329 # Set some defaults for GNU ld with shared library support. These
10330 # are reset later if shared libraries are not supported. Putting them
10331 # here allows them to be overridden if necessary.
10332 runpath_var=LD_RUN_PATH
10333 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10334 export_dynamic_flag_spec='$wl--export-dynamic'
10335 # ancient GNU ld didn't support --whole-archive et. al.
10336 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10337 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10338 else
10339 whole_archive_flag_spec=
10340 fi
10341 supports_anon_versioning=no
10342 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10343 *GNU\ gold*) supports_anon_versioning=yes ;;
10344 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10345 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10346 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10347 *\ 2.11.*) ;; # other 2.11 versions
10348 *) supports_anon_versioning=yes ;;
10349 esac
10350
10351 # See if GNU ld supports shared libraries.
10352 case $host_os in
10353 aix[3-9]*)
10354 # On AIX/PPC, the GNU linker is very broken
10355 if test ia64 != "$host_cpu"; then
10356 ld_shlibs=no
10357 cat <<_LT_EOF 1>&2
10358
10359 *** Warning: the GNU linker, at least up to release 2.19, is reported
10360 *** to be unable to reliably create shared libraries on AIX.
10361 *** Therefore, libtool is disabling shared libraries support. If you
10362 *** really care for shared libraries, you may want to install binutils
10363 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10364 *** You will then need to restart the configuration process.
10365
10366 _LT_EOF
10367 fi
10368 ;;
10369
10370 amigaos*)
10371 case $host_cpu in
10372 powerpc)
10373 # see comment about AmigaOS4 .so support
10374 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10375 archive_expsym_cmds=''
10376 ;;
10377 m68k)
10378 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10379 hardcode_libdir_flag_spec='-L$libdir'
10380 hardcode_minus_L=yes
10381 ;;
10382 esac
10383 ;;
10384
10385 beos*)
10386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10387 allow_undefined_flag=unsupported
10388 # Joseph Beckenbach <[email protected]> says some releases of gcc
10389 # support --undefined. This deserves some investigation. FIXME
10390 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10391 else
10392 ld_shlibs=no
10393 fi
10394 ;;
10395
10396 cygwin* | mingw* | windows* | pw32* | cegcc*)
10397 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10398 # as there is no search path for DLLs.
10399 hardcode_libdir_flag_spec='-L$libdir'
10400 export_dynamic_flag_spec='$wl--export-all-symbols'
10401 allow_undefined_flag=unsupported
10402 always_export_symbols=no
10403 enable_shared_with_static_runtimes=yes
10404 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10405 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10406 file_list_spec='@'
10407
10408 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10410 # If the export-symbols file already is a .def file, use it as
10411 # is; otherwise, prepend EXPORTS...
10412 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10413 cp $export_symbols $output_objdir/$soname.def;
10414 else
10415 echo EXPORTS > $output_objdir/$soname.def;
10416 cat $export_symbols >> $output_objdir/$soname.def;
10417 fi~
10418 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10419 else
10420 ld_shlibs=no
10421 fi
10422 ;;
10423
10424 haiku*)
10425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10426 link_all_deplibs=no
10427 ;;
10428
10429 os2*)
10430 hardcode_libdir_flag_spec='-L$libdir'
10431 hardcode_minus_L=yes
10432 allow_undefined_flag=unsupported
10433 shrext_cmds=.dll
10434 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10435 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10436 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10437 $ECHO EXPORTS >> $output_objdir/$libname.def~
10438 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10439 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10440 emximp -o $lib $output_objdir/$libname.def'
10441 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10442 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10443 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10444 $ECHO EXPORTS >> $output_objdir/$libname.def~
10445 prefix_cmds="$SED"~
10446 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10447 prefix_cmds="$prefix_cmds -e 1d";
10448 fi~
10449 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10450 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10451 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10452 emximp -o $lib $output_objdir/$libname.def'
10453 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10454 enable_shared_with_static_runtimes=yes
10455 file_list_spec='@'
10456 ;;
10457
10458 interix[3-9]*)
10459 hardcode_direct=no
10460 hardcode_shlibpath_var=no
10461 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10462 export_dynamic_flag_spec='$wl-E'
10463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10464 # Instead, shared libraries are loaded at an image base (0x10000000 by
10465 # default) and relocated if they conflict, which is a slow very memory
10466 # consuming and fragmenting process. To avoid this, we pick a random,
10467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10468 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10470 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10471 ;;
10472
10473 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10474 tmp_diet=no
10475 if test linux-dietlibc = "$host_os"; then
10476 case $cc_basename in
10477 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10478 esac
10479 fi
10480 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10481 && test no = "$tmp_diet"
10482 then
10483 tmp_addflag=' $pic_flag'
10484 tmp_sharedflag='-shared'
10485 case $cc_basename,$host_cpu in
10486 pgcc*) # Portland Group C compiler
10487 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10488 tmp_addflag=' $pic_flag'
10489 ;;
10490 pgf77* | pgf90* | pgf95* | pgfortran*)
10491 # Portland Group f77 and f90 compilers
10492 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10493 tmp_addflag=' $pic_flag -Mnomain' ;;
10494 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10495 tmp_addflag=' -i_dynamic' ;;
10496 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10497 tmp_addflag=' -i_dynamic -nofor_main' ;;
10498 ifc* | ifort*) # Intel Fortran compiler
10499 tmp_addflag=' -nofor_main' ;;
10500 lf95*) # Lahey Fortran 8.1
10501 whole_archive_flag_spec=
10502 tmp_sharedflag='--shared' ;;
10503 nagfor*) # NAGFOR 5.3
10504 tmp_sharedflag='-Wl,-shared' ;;
10505 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10506 tmp_sharedflag='-qmkshrobj'
10507 tmp_addflag= ;;
10508 nvcc*) # Cuda Compiler Driver 2.2
10509 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10510 compiler_needs_object=yes
10511 ;;
10512 esac
10513 case `$CC -V 2>&1 | $SED 5q` in
10514 *Sun\ C*) # Sun C 5.9
10515 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10516 compiler_needs_object=yes
10517 tmp_sharedflag='-G' ;;
10518 *Sun\ F*) # Sun Fortran 8.3
10519 tmp_sharedflag='-G' ;;
10520 esac
10521 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10522
10523 if test yes = "$supports_anon_versioning"; then
10524 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10525 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10526 echo "local: *; };" >> $output_objdir/$libname.ver~
10527 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10528 fi
10529
10530 case $cc_basename in
10531 tcc*)
10532 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10533 export_dynamic_flag_spec='-rdynamic'
10534 ;;
10535 xlf* | bgf* | bgxlf* | mpixlf*)
10536 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10537 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10538 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10539 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10540 if test yes = "$supports_anon_versioning"; then
10541 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10542 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10543 echo "local: *; };" >> $output_objdir/$libname.ver~
10544 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10545 fi
10546 ;;
10547 esac
10548 else
10549 ld_shlibs=no
10550 fi
10551 ;;
10552
10553 *-mlibc)
10554 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10555 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10556 ;;
10557
10558 netbsd* | netbsdelf*-gnu)
10559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10560 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10561 wlarc=
10562 else
10563 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10564 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10565 fi
10566 ;;
10567
10568 solaris*)
10569 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10570 ld_shlibs=no
10571 cat <<_LT_EOF 1>&2
10572
10573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10574 *** create shared libraries on Solaris systems. Therefore, libtool
10575 *** is disabling shared libraries support. We urge you to upgrade GNU
10576 *** binutils to release 2.9.1 or newer. Another option is to modify
10577 *** your PATH or compiler configuration so that the native linker is
10578 *** used, and then restart.
10579
10580 _LT_EOF
10581 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10582 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10583 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10584 else
10585 ld_shlibs=no
10586 fi
10587 ;;
10588
10589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10590 case `$LD -v 2>&1` in
10591 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10592 ld_shlibs=no
10593 cat <<_LT_EOF 1>&2
10594
10595 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10596 *** reliably create shared libraries on SCO systems. Therefore, libtool
10597 *** is disabling shared libraries support. We urge you to upgrade GNU
10598 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10599 *** your PATH or compiler configuration so that the native linker is
10600 *** used, and then restart.
10601
10602 _LT_EOF
10603 ;;
10604 *)
10605 # For security reasons, it is highly recommended that you always
10606 # use absolute paths for naming shared libraries, and exclude the
10607 # DT_RUNPATH tag from executables and libraries. But doing so
10608 # requires that you compile everything twice, which is a pain.
10609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10610 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10613 else
10614 ld_shlibs=no
10615 fi
10616 ;;
10617 esac
10618 ;;
10619
10620 sunos4*)
10621 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10622 wlarc=
10623 hardcode_direct=yes
10624 hardcode_shlibpath_var=no
10625 ;;
10626
10627 *)
10628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10630 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10631 else
10632 ld_shlibs=no
10633 fi
10634 ;;
10635 esac
10636
10637 if test no = "$ld_shlibs"; then
10638 runpath_var=
10639 hardcode_libdir_flag_spec=
10640 export_dynamic_flag_spec=
10641 whole_archive_flag_spec=
10642 fi
10643 else
10644 # PORTME fill in a description of your system's linker (not GNU ld)
10645 case $host_os in
10646 aix3*)
10647 allow_undefined_flag=unsupported
10648 always_export_symbols=yes
10649 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10650 # Note: this linker hardcodes the directories in LIBPATH if there
10651 # are no directories specified by -L.
10652 hardcode_minus_L=yes
10653 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10654 # Neither direct hardcoding nor static linking is supported with a
10655 # broken collect2.
10656 hardcode_direct=unsupported
10657 fi
10658 ;;
10659
10660 aix[4-9]*)
10661 if test ia64 = "$host_cpu"; then
10662 # On IA64, the linker does run time linking by default, so we don't
10663 # have to do anything special.
10664 aix_use_runtimelinking=no
10665 exp_sym_flag='-Bexport'
10666 no_entry_flag=
10667 else
10668 # If we're using GNU nm, then we don't want the "-C" option.
10669 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10670 # Without the "-l" option, or with the "-B" option, AIX nm treats
10671 # weak defined symbols like other global defined symbols, whereas
10672 # GNU nm marks them as "W".
10673 # While the 'weak' keyword is ignored in the Export File, we need
10674 # it in the Import File for the 'aix-soname' feature, so we have
10675 # to replace the "-B" option with "-P" for AIX nm.
10676 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10677 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10678 else
10679 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10680 fi
10681 aix_use_runtimelinking=no
10682
10683 # Test if we are trying to use run time linking or normal
10684 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10685 # have runtime linking enabled, and use it for executables.
10686 # For shared libraries, we enable/disable runtime linking
10687 # depending on the kind of the shared library created -
10688 # when "with_aix_soname,aix_use_runtimelinking" is:
10689 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10690 # "aix,yes" lib.so shared, rtl:yes, for executables
10691 # lib.a static archive
10692 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10693 # lib.a(lib.so.V) shared, rtl:no, for executables
10694 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10695 # lib.a(lib.so.V) shared, rtl:no
10696 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10697 # lib.a static archive
10698 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10699 for ld_flag in $LDFLAGS; do
10700 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10701 aix_use_runtimelinking=yes
10702 break
10703 fi
10704 done
10705 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10706 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10707 # so we don't have lib.a shared libs to link our executables.
10708 # We have to force runtime linking in this case.
10709 aix_use_runtimelinking=yes
10710 LDFLAGS="$LDFLAGS -Wl,-brtl"
10711 fi
10712 ;;
10713 esac
10714
10715 exp_sym_flag='-bexport'
10716 no_entry_flag='-bnoentry'
10717 fi
10718
10719 # When large executables or shared objects are built, AIX ld can
10720 # have problems creating the table of contents. If linking a library
10721 # or program results in "error TOC overflow" add -mminimal-toc to
10722 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10723 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10724
10725 archive_cmds=''
10726 hardcode_direct=yes
10727 hardcode_direct_absolute=yes
10728 hardcode_libdir_separator=':'
10729 link_all_deplibs=yes
10730 file_list_spec='$wl-f,'
10731 case $with_aix_soname,$aix_use_runtimelinking in
10732 aix,*) ;; # traditional, no import file
10733 svr4,* | *,yes) # use import file
10734 # The Import File defines what to hardcode.
10735 hardcode_direct=no
10736 hardcode_direct_absolute=no
10737 ;;
10738 esac
10739
10740 if test yes = "$GCC"; then
10741 case $host_os in aix4.[012]|aix4.[012].*)
10742 # We only want to do this on AIX 4.2 and lower, the check
10743 # below for broken collect2 doesn't work under 4.3+
10744 collect2name=`$CC -print-prog-name=collect2`
10745 if test -f "$collect2name" &&
10746 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10747 then
10748 # We have reworked collect2
10749 :
10750 else
10751 # We have old collect2
10752 hardcode_direct=unsupported
10753 # It fails to find uninstalled libraries when the uninstalled
10754 # path is not listed in the libpath. Setting hardcode_minus_L
10755 # to unsupported forces relinking
10756 hardcode_minus_L=yes
10757 hardcode_libdir_flag_spec='-L$libdir'
10758 hardcode_libdir_separator=
10759 fi
10760 ;;
10761 esac
10762 shared_flag='-shared'
10763 if test yes = "$aix_use_runtimelinking"; then
10764 shared_flag="$shared_flag "'$wl-G'
10765 fi
10766 # Need to ensure runtime linking is disabled for the traditional
10767 # shared library, or the linker may eventually find shared libraries
10768 # /with/ Import File - we do not want to mix them.
10769 shared_flag_aix='-shared'
10770 shared_flag_svr4='-shared $wl-G'
10771 else
10772 # not using gcc
10773 if test ia64 = "$host_cpu"; then
10774 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10775 # chokes on -Wl,-G. The following line is correct:
10776 shared_flag='-G'
10777 else
10778 if test yes = "$aix_use_runtimelinking"; then
10779 shared_flag='$wl-G'
10780 else
10781 shared_flag='$wl-bM:SRE'
10782 fi
10783 shared_flag_aix='$wl-bM:SRE'
10784 shared_flag_svr4='$wl-G'
10785 fi
10786 fi
10787
10788 export_dynamic_flag_spec='$wl-bexpall'
10789 # It seems that -bexpall does not export symbols beginning with
10790 # underscore (_), so it is better to generate a list of symbols to export.
10791 always_export_symbols=yes
10792 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10793 # Warning - without using the other runtime loading flags (-brtl),
10794 # -berok will link without error, but may produce a broken library.
10795 allow_undefined_flag='-berok'
10796 # Determine the default libpath from the value encoded in an
10797 # empty executable.
10798 if test set = "${lt_cv_aix_libpath+set}"; then
10799 aix_libpath=$lt_cv_aix_libpath
10800 else
10801 if test ${lt_cv_aix_libpath_+y}
10802 then :
10803 printf %s "(cached) " >&6
10804 else case e in #(
10805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10806 /* end confdefs.h. */
10807
10808 int
10809 main (void)
10810 {
10811
10812 ;
10813 return 0;
10814 }
10815 _ACEOF
10816 if ac_fn_c_try_link "$LINENO"
10817 then :
10818
10819 lt_aix_libpath_sed='
10820 /Import File Strings/,/^$/ {
10821 /^0/ {
10822 s/^0 *\([^ ]*\) *$/\1/
10823 p
10824 }
10825 }'
10826 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10827 # Check for a 64-bit object if we didn't find anything.
10828 if test -z "$lt_cv_aix_libpath_"; then
10829 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10830 fi
10831 fi
10832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10833 conftest$ac_exeext conftest.$ac_ext
10834 if test -z "$lt_cv_aix_libpath_"; then
10835 lt_cv_aix_libpath_=/usr/lib:/lib
10836 fi
10837 ;;
10838 esac
10839 fi
10840
10841 aix_libpath=$lt_cv_aix_libpath_
10842 fi
10843
10844 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10845 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10846 else
10847 if test ia64 = "$host_cpu"; then
10848 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10849 allow_undefined_flag="-z nodefs"
10850 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
10851 else
10852 # Determine the default libpath from the value encoded in an
10853 # empty executable.
10854 if test set = "${lt_cv_aix_libpath+set}"; then
10855 aix_libpath=$lt_cv_aix_libpath
10856 else
10857 if test ${lt_cv_aix_libpath_+y}
10858 then :
10859 printf %s "(cached) " >&6
10860 else case e in #(
10861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10863
10864 int
10865 main (void)
10866 {
10867
10868 ;
10869 return 0;
10870 }
10871 _ACEOF
10872 if ac_fn_c_try_link "$LINENO"
10873 then :
10874
10875 lt_aix_libpath_sed='
10876 /Import File Strings/,/^$/ {
10877 /^0/ {
10878 s/^0 *\([^ ]*\) *$/\1/
10879 p
10880 }
10881 }'
10882 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10883 # Check for a 64-bit object if we didn't find anything.
10884 if test -z "$lt_cv_aix_libpath_"; then
10885 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10886 fi
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10889 conftest$ac_exeext conftest.$ac_ext
10890 if test -z "$lt_cv_aix_libpath_"; then
10891 lt_cv_aix_libpath_=/usr/lib:/lib
10892 fi
10893 ;;
10894 esac
10895 fi
10896
10897 aix_libpath=$lt_cv_aix_libpath_
10898 fi
10899
10900 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10901 # Warning - without using the other run time loading flags,
10902 # -berok will link without error, but may produce a broken library.
10903 no_undefined_flag=' $wl-bernotok'
10904 allow_undefined_flag=' $wl-berok'
10905 if test yes = "$with_gnu_ld"; then
10906 # We only use this code for GNU lds that support --whole-archive.
10907 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10908 else
10909 # Exported symbols can be pulled into shared objects from archives
10910 whole_archive_flag_spec='$convenience'
10911 fi
10912 archive_cmds_need_lc=yes
10913 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10914 # -brtl affects multiple linker settings, -berok does not and is overridden later
10915 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10916 if test svr4 != "$with_aix_soname"; then
10917 # This is similar to how AIX traditionally builds its shared libraries.
10918 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10919 fi
10920 if test aix != "$with_aix_soname"; then
10921 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10922 else
10923 # used by -dlpreopen to get the symbols
10924 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10925 fi
10926 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10927 fi
10928 fi
10929 ;;
10930
10931 amigaos*)
10932 case $host_cpu in
10933 powerpc)
10934 # see comment about AmigaOS4 .so support
10935 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10936 archive_expsym_cmds=''
10937 ;;
10938 m68k)
10939 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10940 hardcode_libdir_flag_spec='-L$libdir'
10941 hardcode_minus_L=yes
10942 ;;
10943 esac
10944 ;;
10945
10946 bsdi[45]*)
10947 export_dynamic_flag_spec=-rdynamic
10948 ;;
10949
10950 cygwin* | mingw* | windows* | pw32* | cegcc*)
10951 # When not using gcc, we currently assume that we are using
10952 # Microsoft Visual C++ or Intel C++ Compiler.
10953 # hardcode_libdir_flag_spec is actually meaningless, as there is
10954 # no search path for DLLs.
10955 case $cc_basename in
10956 cl* | icl*)
10957 # Native MSVC or ICC
10958 hardcode_libdir_flag_spec=' '
10959 allow_undefined_flag=unsupported
10960 always_export_symbols=yes
10961 file_list_spec='@'
10962 # Tell ltmain to make .lib files, not .a files.
10963 libext=lib
10964 # Tell ltmain to make .dll files, not .so files.
10965 shrext_cmds=.dll
10966 # FIXME: Setting linknames here is a bad hack.
10967 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10968 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10969 cp "$export_symbols" "$output_objdir/$soname.def";
10970 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10971 else
10972 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10973 fi~
10974 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10975 linknames='
10976 # The linker will not automatically build a static lib if we build a DLL.
10977 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10978 enable_shared_with_static_runtimes=yes
10979 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10980 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10981 # Don't use ranlib
10982 old_postinstall_cmds='chmod 644 $oldlib'
10983 postlink_cmds='lt_outputfile="@OUTPUT@"~
10984 lt_tool_outputfile="@TOOL_OUTPUT@"~
10985 case $lt_outputfile in
10986 *.exe|*.EXE) ;;
10987 *)
10988 lt_outputfile=$lt_outputfile.exe
10989 lt_tool_outputfile=$lt_tool_outputfile.exe
10990 ;;
10991 esac~
10992 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10993 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10994 $RM "$lt_outputfile.manifest";
10995 fi'
10996 ;;
10997 *)
10998 # Assume MSVC and ICC wrapper
10999 hardcode_libdir_flag_spec=' '
11000 allow_undefined_flag=unsupported
11001 # Tell ltmain to make .lib files, not .a files.
11002 libext=lib
11003 # Tell ltmain to make .dll files, not .so files.
11004 shrext_cmds=.dll
11005 # FIXME: Setting linknames here is a bad hack.
11006 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11007 # The linker will automatically build a .lib file if we build a DLL.
11008 old_archive_from_new_cmds='true'
11009 # FIXME: Should let the user specify the lib program.
11010 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11011 enable_shared_with_static_runtimes=yes
11012 ;;
11013 esac
11014 ;;
11015
11016 darwin* | rhapsody*)
11017
11018
11019 archive_cmds_need_lc=no
11020 hardcode_direct=no
11021 hardcode_automatic=yes
11022 hardcode_shlibpath_var=unsupported
11023 if test yes = "$lt_cv_ld_force_load"; then
11024 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11025
11026 else
11027 whole_archive_flag_spec=''
11028 fi
11029 link_all_deplibs=yes
11030 allow_undefined_flag=$_lt_dar_allow_undefined
11031 case $cc_basename in
11032 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11033 *) _lt_dar_can_shared=$GCC ;;
11034 esac
11035 if test yes = "$_lt_dar_can_shared"; then
11036 output_verbose_link_cmd=func_echo_all
11037 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11038 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11039 archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
11040 module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
11041
11042 else
11043 ld_shlibs=no
11044 fi
11045
11046 ;;
11047
11048 dgux*)
11049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11050 hardcode_libdir_flag_spec='-L$libdir'
11051 hardcode_shlibpath_var=no
11052 ;;
11053
11054 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11055 # support. Future versions do this automatically, but an explicit c++rt0.o
11056 # does not break anything, and helps significantly (at the cost of a little
11057 # extra space).
11058 freebsd2.2*)
11059 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11060 hardcode_libdir_flag_spec='-R$libdir'
11061 hardcode_direct=yes
11062 hardcode_shlibpath_var=no
11063 ;;
11064
11065 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11066 freebsd2.*)
11067 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11068 hardcode_direct=yes
11069 hardcode_minus_L=yes
11070 hardcode_shlibpath_var=no
11071 ;;
11072
11073 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11074 freebsd* | dragonfly* | midnightbsd*)
11075 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11076 hardcode_libdir_flag_spec='-R$libdir'
11077 hardcode_direct=yes
11078 hardcode_shlibpath_var=no
11079 ;;
11080
11081 hpux9*)
11082 if test yes = "$GCC"; then
11083 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11084 else
11085 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11086 fi
11087 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11088 hardcode_libdir_separator=:
11089 hardcode_direct=yes
11090
11091 # hardcode_minus_L: Not really in the search PATH,
11092 # but as the default location of the library.
11093 hardcode_minus_L=yes
11094 export_dynamic_flag_spec='$wl-E'
11095 ;;
11096
11097 hpux10*)
11098 if test yes,no = "$GCC,$with_gnu_ld"; then
11099 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11100 else
11101 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11102 fi
11103 if test no = "$with_gnu_ld"; then
11104 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11105 hardcode_libdir_separator=:
11106 hardcode_direct=yes
11107 hardcode_direct_absolute=yes
11108 export_dynamic_flag_spec='$wl-E'
11109 # hardcode_minus_L: Not really in the search PATH,
11110 # but as the default location of the library.
11111 hardcode_minus_L=yes
11112 fi
11113 ;;
11114
11115 hpux11*)
11116 if test yes,no = "$GCC,$with_gnu_ld"; then
11117 case $host_cpu in
11118 hppa*64*)
11119 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11120 ;;
11121 ia64*)
11122 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11123 ;;
11124 *)
11125 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11126 ;;
11127 esac
11128 else
11129 case $host_cpu in
11130 hppa*64*)
11131 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11132 ;;
11133 ia64*)
11134 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11135 ;;
11136 *)
11137
11138 # Older versions of the 11.00 compiler do not understand -b yet
11139 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11141 printf %s "checking if $CC understands -b... " >&6; }
11142 if test ${lt_cv_prog_compiler__b+y}
11143 then :
11144 printf %s "(cached) " >&6
11145 else case e in #(
11146 e) lt_cv_prog_compiler__b=no
11147 save_LDFLAGS=$LDFLAGS
11148 LDFLAGS="$LDFLAGS -b"
11149 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11150 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11151 # The linker can only warn and ignore the option if not recognized
11152 # So say no if there are warnings
11153 if test -s conftest.err; then
11154 # Append any errors to the config.log.
11155 cat conftest.err 1>&5
11156 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11157 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11158 if diff conftest.exp conftest.er2 >/dev/null; then
11159 lt_cv_prog_compiler__b=yes
11160 fi
11161 else
11162 lt_cv_prog_compiler__b=yes
11163 fi
11164 fi
11165 $RM -r conftest*
11166 LDFLAGS=$save_LDFLAGS
11167 ;;
11168 esac
11169 fi
11170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11171 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11172
11173 if test yes = "$lt_cv_prog_compiler__b"; then
11174 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11175 else
11176 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11177 fi
11178
11179 ;;
11180 esac
11181 fi
11182 if test no = "$with_gnu_ld"; then
11183 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11184 hardcode_libdir_separator=:
11185
11186 case $host_cpu in
11187 hppa*64*|ia64*)
11188 hardcode_direct=no
11189 hardcode_shlibpath_var=no
11190 ;;
11191 *)
11192 hardcode_direct=yes
11193 hardcode_direct_absolute=yes
11194 export_dynamic_flag_spec='$wl-E'
11195
11196 # hardcode_minus_L: Not really in the search PATH,
11197 # but as the default location of the library.
11198 hardcode_minus_L=yes
11199 ;;
11200 esac
11201 fi
11202 ;;
11203
11204 irix5* | irix6* | nonstopux*)
11205 if test yes = "$GCC"; then
11206 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11207 # Try to use the -exported_symbol ld option, if it does not
11208 # work, assume that -exports_file does not work either and
11209 # implicitly export all symbols.
11210 # This should be the same for all languages, so no per-tag cache variable.
11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11212 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11213 if test ${lt_cv_irix_exported_symbol+y}
11214 then :
11215 printf %s "(cached) " >&6
11216 else case e in #(
11217 e) save_LDFLAGS=$LDFLAGS
11218 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11220 /* end confdefs.h. */
11221 int foo (void) { return 0; }
11222 _ACEOF
11223 if ac_fn_c_try_link "$LINENO"
11224 then :
11225 lt_cv_irix_exported_symbol=yes
11226 else case e in #(
11227 e) lt_cv_irix_exported_symbol=no ;;
11228 esac
11229 fi
11230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11231 conftest$ac_exeext conftest.$ac_ext
11232 LDFLAGS=$save_LDFLAGS ;;
11233 esac
11234 fi
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11236 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11237 if test yes = "$lt_cv_irix_exported_symbol"; then
11238 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11239 fi
11240 link_all_deplibs=no
11241 else
11242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11244 fi
11245 archive_cmds_need_lc='no'
11246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11247 hardcode_libdir_separator=:
11248 inherit_rpath=yes
11249 link_all_deplibs=yes
11250 ;;
11251
11252 linux*)
11253 case $cc_basename in
11254 tcc*)
11255 # Fabrice Bellard et al's Tiny C Compiler
11256 ld_shlibs=yes
11257 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11259 ;;
11260 esac
11261 ;;
11262
11263 *-mlibc)
11264 ;;
11265
11266 netbsd* | netbsdelf*-gnu)
11267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11268 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11269 else
11270 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11271 fi
11272 hardcode_libdir_flag_spec='-R$libdir'
11273 hardcode_direct=yes
11274 hardcode_shlibpath_var=no
11275 ;;
11276
11277 newsos6)
11278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279 hardcode_direct=yes
11280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11281 hardcode_libdir_separator=:
11282 hardcode_shlibpath_var=no
11283 ;;
11284
11285 *nto* | *qnx*)
11286 ;;
11287
11288 openbsd*)
11289 if test -f /usr/libexec/ld.so; then
11290 hardcode_direct=yes
11291 hardcode_shlibpath_var=no
11292 hardcode_direct_absolute=yes
11293 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11294 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11295 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11296 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11297 export_dynamic_flag_spec='$wl-E'
11298 else
11299 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11300 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11301 fi
11302 else
11303 ld_shlibs=no
11304 fi
11305 ;;
11306
11307 os2*)
11308 hardcode_libdir_flag_spec='-L$libdir'
11309 hardcode_minus_L=yes
11310 allow_undefined_flag=unsupported
11311 shrext_cmds=.dll
11312 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11313 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11314 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11315 $ECHO EXPORTS >> $output_objdir/$libname.def~
11316 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11317 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11318 emximp -o $lib $output_objdir/$libname.def'
11319 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11320 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11321 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11322 $ECHO EXPORTS >> $output_objdir/$libname.def~
11323 prefix_cmds="$SED"~
11324 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11325 prefix_cmds="$prefix_cmds -e 1d";
11326 fi~
11327 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11328 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11329 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11330 emximp -o $lib $output_objdir/$libname.def'
11331 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11332 enable_shared_with_static_runtimes=yes
11333 file_list_spec='@'
11334 ;;
11335
11336 osf3*)
11337 if test yes = "$GCC"; then
11338 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11339 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11340 else
11341 allow_undefined_flag=' -expect_unresolved \*'
11342 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11343 fi
11344 archive_cmds_need_lc='no'
11345 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11346 hardcode_libdir_separator=:
11347 ;;
11348
11349 osf4* | osf5*) # as osf3* with the addition of -msym flag
11350 if test yes = "$GCC"; then
11351 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11352 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11353 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11354 else
11355 allow_undefined_flag=' -expect_unresolved \*'
11356 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11357 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11358 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11359
11360 # Both c and cxx compiler support -rpath directly
11361 hardcode_libdir_flag_spec='-rpath $libdir'
11362 fi
11363 archive_cmds_need_lc='no'
11364 hardcode_libdir_separator=:
11365 ;;
11366
11367 serenity*)
11368 ;;
11369
11370 solaris*)
11371 no_undefined_flag=' -z defs'
11372 if test yes = "$GCC"; then
11373 wlarc='$wl'
11374 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11375 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11376 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11377 else
11378 case `$CC -V 2>&1` in
11379 *"Compilers 5.0"*)
11380 wlarc=''
11381 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11382 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11383 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11384 ;;
11385 *)
11386 wlarc='$wl'
11387 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11388 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11389 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11390 ;;
11391 esac
11392 fi
11393 hardcode_libdir_flag_spec='-R$libdir'
11394 hardcode_shlibpath_var=no
11395 case $host_os in
11396 solaris2.[0-5] | solaris2.[0-5].*) ;;
11397 *)
11398 # The compiler driver will combine and reorder linker options,
11399 # but understands '-z linker_flag'. GCC discards it without '$wl',
11400 # but is careful enough not to reorder.
11401 # Supported since Solaris 2.6 (maybe 2.5.1?)
11402 if test yes = "$GCC"; then
11403 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11404 else
11405 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11406 fi
11407 ;;
11408 esac
11409 link_all_deplibs=yes
11410 ;;
11411
11412 sunos4*)
11413 if test sequent = "$host_vendor"; then
11414 # Use $CC to link under sequent, because it throws in some extra .o
11415 # files that make .init and .fini sections work.
11416 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11417 else
11418 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11419 fi
11420 hardcode_libdir_flag_spec='-L$libdir'
11421 hardcode_direct=yes
11422 hardcode_minus_L=yes
11423 hardcode_shlibpath_var=no
11424 ;;
11425
11426 sysv4)
11427 case $host_vendor in
11428 sni)
11429 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11430 hardcode_direct=yes # is this really true???
11431 ;;
11432 siemens)
11433 ## LD is ld it makes a PLAMLIB
11434 ## CC just makes a GrossModule.
11435 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11436 reload_cmds='$CC -r -o $output$reload_objs'
11437 hardcode_direct=no
11438 ;;
11439 motorola)
11440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11441 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11442 ;;
11443 esac
11444 runpath_var='LD_RUN_PATH'
11445 hardcode_shlibpath_var=no
11446 ;;
11447
11448 sysv4.3*)
11449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11450 hardcode_shlibpath_var=no
11451 export_dynamic_flag_spec='-Bexport'
11452 ;;
11453
11454 sysv4*MP*)
11455 if test -d /usr/nec; then
11456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11457 hardcode_shlibpath_var=no
11458 runpath_var=LD_RUN_PATH
11459 hardcode_runpath_var=yes
11460 ld_shlibs=yes
11461 fi
11462 ;;
11463
11464 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11465 no_undefined_flag='$wl-z,text'
11466 archive_cmds_need_lc=no
11467 hardcode_shlibpath_var=no
11468 runpath_var='LD_RUN_PATH'
11469
11470 if test yes = "$GCC"; then
11471 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11472 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11473 else
11474 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11475 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11476 fi
11477 ;;
11478
11479 sysv5* | sco3.2v5* | sco5v6*)
11480 # Note: We CANNOT use -z defs as we might desire, because we do not
11481 # link with -lc, and that would cause any symbols used from libc to
11482 # always be unresolved, which means just about no library would
11483 # ever link correctly. If we're not using GNU ld we use -z text
11484 # though, which does catch some bad symbols but isn't as heavy-handed
11485 # as -z defs.
11486 no_undefined_flag='$wl-z,text'
11487 allow_undefined_flag='$wl-z,nodefs'
11488 archive_cmds_need_lc=no
11489 hardcode_shlibpath_var=no
11490 hardcode_libdir_flag_spec='$wl-R,$libdir'
11491 hardcode_libdir_separator=':'
11492 link_all_deplibs=yes
11493 export_dynamic_flag_spec='$wl-Bexport'
11494 runpath_var='LD_RUN_PATH'
11495
11496 if test yes = "$GCC"; then
11497 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11498 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11499 else
11500 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11501 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11502 fi
11503 ;;
11504
11505 uts4*)
11506 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11507 hardcode_libdir_flag_spec='-L$libdir'
11508 hardcode_shlibpath_var=no
11509 ;;
11510
11511 *)
11512 ld_shlibs=no
11513 ;;
11514 esac
11515
11516 if test sni = "$host_vendor"; then
11517 case $host in
11518 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11519 export_dynamic_flag_spec='$wl-Blargedynsym'
11520 ;;
11521 esac
11522 fi
11523 fi
11524
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11526 printf "%s\n" "$ld_shlibs" >&6; }
11527 test no = "$ld_shlibs" && can_build_shared=no
11528
11529 with_gnu_ld=$with_gnu_ld
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545 #
11546 # Do we need to explicitly link libc?
11547 #
11548 case "x$archive_cmds_need_lc" in
11549 x|xyes)
11550 # Assume -lc should be added
11551 archive_cmds_need_lc=yes
11552
11553 if test yes,yes = "$GCC,$enable_shared"; then
11554 case $archive_cmds in
11555 *'~'*)
11556 # FIXME: we may have to deal with multi-command sequences.
11557 ;;
11558 '$CC '*)
11559 # Test whether the compiler implicitly links with -lc since on some
11560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11561 # to ld, don't add -lc before -lgcc.
11562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11563 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11564 if test ${lt_cv_archive_cmds_need_lc+y}
11565 then :
11566 printf %s "(cached) " >&6
11567 else case e in #(
11568 e) $RM conftest*
11569 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11570
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11572 (eval $ac_compile) 2>&5
11573 ac_status=$?
11574 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; } 2>conftest.err; then
11576 soname=conftest
11577 lib=conftest
11578 libobjs=conftest.$ac_objext
11579 deplibs=
11580 wl=$lt_prog_compiler_wl
11581 pic_flag=$lt_prog_compiler_pic
11582 compiler_flags=-v
11583 linker_flags=-v
11584 verstring=
11585 output_objdir=.
11586 libname=conftest
11587 lt_save_allow_undefined_flag=$allow_undefined_flag
11588 allow_undefined_flag=
11589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11590 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11591 ac_status=$?
11592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11593 test $ac_status = 0; }
11594 then
11595 lt_cv_archive_cmds_need_lc=no
11596 else
11597 lt_cv_archive_cmds_need_lc=yes
11598 fi
11599 allow_undefined_flag=$lt_save_allow_undefined_flag
11600 else
11601 cat conftest.err 1>&5
11602 fi
11603 $RM conftest*
11604 ;;
11605 esac
11606 fi
11607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11608 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11609 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11610 ;;
11611 esac
11612 fi
11613 ;;
11614 esac
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11768 printf %s "checking dynamic linker characteristics... " >&6; }
11769
11770 if test yes = "$GCC"; then
11771 case $host_os in
11772 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11773 *) lt_awk_arg='/^libraries:/' ;;
11774 esac
11775 case $host_os in
11776 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11777 *) lt_sed_strip_eq='s|=/|/|g' ;;
11778 esac
11779 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11780 case $lt_search_path_spec in
11781 *\;*)
11782 # if the path contains ";" then we assume it to be the separator
11783 # otherwise default to the standard path separator (i.e. ":") - it is
11784 # assumed that no part of a normal pathname contains ";" but that should
11785 # okay in the real world where ";" in dirpaths is itself problematic.
11786 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11787 ;;
11788 *)
11789 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11790 ;;
11791 esac
11792 # Ok, now we have the path, separated by spaces, we can step through it
11793 # and add multilib dir if necessary...
11794 lt_tmp_lt_search_path_spec=
11795 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11796 # ...but if some path component already ends with the multilib dir we assume
11797 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11798 case "$lt_multi_os_dir; $lt_search_path_spec " in
11799 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11800 lt_multi_os_dir=
11801 ;;
11802 esac
11803 for lt_sys_path in $lt_search_path_spec; do
11804 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11805 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11806 elif test -n "$lt_multi_os_dir"; then
11807 test -d "$lt_sys_path" && \
11808 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11809 fi
11810 done
11811 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11812 BEGIN {RS = " "; FS = "/|\n";} {
11813 lt_foo = "";
11814 lt_count = 0;
11815 for (lt_i = NF; lt_i > 0; lt_i--) {
11816 if ($lt_i != "" && $lt_i != ".") {
11817 if ($lt_i == "..") {
11818 lt_count++;
11819 } else {
11820 if (lt_count == 0) {
11821 lt_foo = "/" $lt_i lt_foo;
11822 } else {
11823 lt_count--;
11824 }
11825 }
11826 }
11827 }
11828 if (lt_foo != "") { lt_freq[lt_foo]++; }
11829 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11830 }'`
11831 # AWK program above erroneously prepends '/' to C:/dos/paths
11832 # for these hosts.
11833 case $host_os in
11834 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11835 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11836 esac
11837 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11838 else
11839 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11840 fi
11841 library_names_spec=
11842 libname_spec='lib$name'
11843 soname_spec=
11844 shrext_cmds=.so
11845 postinstall_cmds=
11846 postuninstall_cmds=
11847 finish_cmds=
11848 finish_eval=
11849 shlibpath_var=
11850 shlibpath_overrides_runpath=unknown
11851 version_type=none
11852 dynamic_linker="$host_os ld.so"
11853 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11854 need_lib_prefix=unknown
11855 hardcode_into_libs=no
11856
11857 # when you set need_version to no, make sure it does not cause -set_version
11858 # flags to be left without arguments
11859 need_version=unknown
11860
11861
11862
11863 case $host_os in
11864 aix3*)
11865 version_type=linux # correct to gnu/linux during the next big refactor
11866 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11867 shlibpath_var=LIBPATH
11868
11869 # AIX 3 has no versioning support, so we append a major version to the name.
11870 soname_spec='$libname$release$shared_ext$major'
11871 ;;
11872
11873 aix[4-9]*)
11874 version_type=linux # correct to gnu/linux during the next big refactor
11875 need_lib_prefix=no
11876 need_version=no
11877 hardcode_into_libs=yes
11878 if test ia64 = "$host_cpu"; then
11879 # AIX 5 supports IA64
11880 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11881 shlibpath_var=LD_LIBRARY_PATH
11882 else
11883 # With GCC up to 2.95.x, collect2 would create an import file
11884 # for dependence libraries. The import file would start with
11885 # the line '#! .'. This would cause the generated library to
11886 # depend on '.', always an invalid library. This was fixed in
11887 # development snapshots of GCC prior to 3.0.
11888 case $host_os in
11889 aix4 | aix4.[01] | aix4.[01].*)
11890 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11891 echo ' yes '
11892 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11893 :
11894 else
11895 can_build_shared=no
11896 fi
11897 ;;
11898 esac
11899 # Using Import Files as archive members, it is possible to support
11900 # filename-based versioning of shared library archives on AIX. While
11901 # this would work for both with and without runtime linking, it will
11902 # prevent static linking of such archives. So we do filename-based
11903 # shared library versioning with .so extension only, which is used
11904 # when both runtime linking and shared linking is enabled.
11905 # Unfortunately, runtime linking may impact performance, so we do
11906 # not want this to be the default eventually. Also, we use the
11907 # versioned .so libs for executables only if there is the -brtl
11908 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11909 # To allow for filename-based versioning support, we need to create
11910 # libNAME.so.V as an archive file, containing:
11911 # *) an Import File, referring to the versioned filename of the
11912 # archive as well as the shared archive member, telling the
11913 # bitwidth (32 or 64) of that shared object, and providing the
11914 # list of exported symbols of that shared object, eventually
11915 # decorated with the 'weak' keyword
11916 # *) the shared object with the F_LOADONLY flag set, to really avoid
11917 # it being seen by the linker.
11918 # At run time we better use the real file rather than another symlink,
11919 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11920
11921 case $with_aix_soname,$aix_use_runtimelinking in
11922 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11923 # soname into executable. Probably we can add versioning support to
11924 # collect2, so additional links can be useful in future.
11925 aix,yes) # traditional libtool
11926 dynamic_linker='AIX unversionable lib.so'
11927 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11928 # instead of lib<name>.a to let people know that these are not
11929 # typical AIX shared libraries.
11930 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11931 ;;
11932 aix,no) # traditional AIX only
11933 dynamic_linker='AIX lib.a(lib.so.V)'
11934 # We preserve .a as extension for shared libraries through AIX4.2
11935 # and later when we are not doing run time linking.
11936 library_names_spec='$libname$release.a $libname.a'
11937 soname_spec='$libname$release$shared_ext$major'
11938 ;;
11939 svr4,*) # full svr4 only
11940 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11941 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11942 # We do not specify a path in Import Files, so LIBPATH fires.
11943 shlibpath_overrides_runpath=yes
11944 ;;
11945 *,yes) # both, prefer svr4
11946 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11947 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11948 # unpreferred sharedlib libNAME.a needs extra handling
11949 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11950 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11951 # We do not specify a path in Import Files, so LIBPATH fires.
11952 shlibpath_overrides_runpath=yes
11953 ;;
11954 *,no) # both, prefer aix
11955 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11956 library_names_spec='$libname$release.a $libname.a'
11957 soname_spec='$libname$release$shared_ext$major'
11958 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11959 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11960 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11961 ;;
11962 esac
11963 shlibpath_var=LIBPATH
11964 fi
11965 ;;
11966
11967 amigaos*)
11968 case $host_cpu in
11969 powerpc)
11970 # Since July 2007 AmigaOS4 officially supports .so libraries.
11971 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11973 ;;
11974 m68k)
11975 library_names_spec='$libname.ixlibrary $libname.a'
11976 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11977 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11978 ;;
11979 esac
11980 ;;
11981
11982 beos*)
11983 library_names_spec='$libname$shared_ext'
11984 dynamic_linker="$host_os ld.so"
11985 shlibpath_var=LIBRARY_PATH
11986 ;;
11987
11988 bsdi[45]*)
11989 version_type=linux # correct to gnu/linux during the next big refactor
11990 need_version=no
11991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11992 soname_spec='$libname$release$shared_ext$major'
11993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11994 shlibpath_var=LD_LIBRARY_PATH
11995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11997 # the default ld.so.conf also contains /usr/contrib/lib and
11998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11999 # libtool to hard-code these into programs
12000 ;;
12001
12002 cygwin* | mingw* | windows* | pw32* | cegcc*)
12003 version_type=windows
12004 shrext_cmds=.dll
12005 need_version=no
12006 need_lib_prefix=no
12007
12008 case $GCC,$cc_basename in
12009 yes,*)
12010 # gcc
12011 library_names_spec='$libname.dll.a'
12012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12013 # If user builds GCC with multilib enabled,
12014 # it should just install on $(libdir)
12015 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
12016 if test xyes = x"$multilib"; then
12017 postinstall_cmds='base_file=`basename \$file`~
12018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12019 dldir=$destdir/`dirname \$dlpath`~
12020 $install_prog $dir/$dlname $destdir/$dlname~
12021 chmod a+x $destdir/$dlname~
12022 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12023 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
12024 fi'
12025 else
12026 postinstall_cmds='base_file=`basename \$file`~
12027 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12028 dldir=$destdir/`dirname \$dlpath`~
12029 test -d \$dldir || mkdir -p \$dldir~
12030 $install_prog $dir/$dlname \$dldir/$dlname~
12031 chmod a+x \$dldir/$dlname~
12032 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12033 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12034 fi'
12035 fi
12036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12037 dlpath=$dir/\$dldll~
12038 $RM \$dlpath'
12039 shlibpath_overrides_runpath=yes
12040
12041 case $host_os in
12042 cygwin*)
12043 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12044 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12045
12046 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12047 ;;
12048 mingw* | windows* | cegcc*)
12049 # MinGW DLLs use traditional 'lib' prefix
12050 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12051 ;;
12052 pw32*)
12053 # pw32 DLLs use 'pw' prefix rather than 'lib'
12054 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12055 ;;
12056 esac
12057 dynamic_linker='Win32 ld.exe'
12058 ;;
12059
12060 *,cl* | *,icl*)
12061 # Native MSVC or ICC
12062 libname_spec='$name'
12063 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12064 library_names_spec='$libname.dll.lib'
12065
12066 case $build_os in
12067 mingw* | windows*)
12068 sys_lib_search_path_spec=
12069 lt_save_ifs=$IFS
12070 IFS=';'
12071 for lt_path in $LIB
12072 do
12073 IFS=$lt_save_ifs
12074 # Let DOS variable expansion print the short 8.3 style file name.
12075 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12076 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12077 done
12078 IFS=$lt_save_ifs
12079 # Convert to MSYS style.
12080 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12081 ;;
12082 cygwin*)
12083 # Convert to unix form, then to dos form, then back to unix form
12084 # but this time dos style (no spaces!) so that the unix form looks
12085 # like /cygdrive/c/PROGRA~1:/cygdr...
12086 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12087 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12088 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12089 ;;
12090 *)
12091 sys_lib_search_path_spec=$LIB
12092 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12093 # It is most probably a Windows format PATH.
12094 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12095 else
12096 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12097 fi
12098 # FIXME: find the short name or the path components, as spaces are
12099 # common. (e.g. "Program Files" -> "PROGRA~1")
12100 ;;
12101 esac
12102
12103 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12104 postinstall_cmds='base_file=`basename \$file`~
12105 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12106 dldir=$destdir/`dirname \$dlpath`~
12107 test -d \$dldir || mkdir -p \$dldir~
12108 $install_prog $dir/$dlname \$dldir/$dlname'
12109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12110 dlpath=$dir/\$dldll~
12111 $RM \$dlpath'
12112 shlibpath_overrides_runpath=yes
12113 dynamic_linker='Win32 link.exe'
12114 ;;
12115
12116 *)
12117 # Assume MSVC and ICC wrapper
12118 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12119 dynamic_linker='Win32 ld.exe'
12120 ;;
12121 esac
12122 # FIXME: first we should search . and the directory the executable is in
12123 shlibpath_var=PATH
12124 ;;
12125
12126 darwin* | rhapsody*)
12127 dynamic_linker="$host_os dyld"
12128 version_type=darwin
12129 need_lib_prefix=no
12130 need_version=no
12131 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12132 soname_spec='$libname$release$major$shared_ext'
12133 shlibpath_overrides_runpath=yes
12134 shlibpath_var=DYLD_LIBRARY_PATH
12135 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12136
12137 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12138 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12139 ;;
12140
12141 dgux*)
12142 version_type=linux # correct to gnu/linux during the next big refactor
12143 need_lib_prefix=no
12144 need_version=no
12145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12146 soname_spec='$libname$release$shared_ext$major'
12147 shlibpath_var=LD_LIBRARY_PATH
12148 ;;
12149
12150 freebsd* | dragonfly* | midnightbsd*)
12151 # DragonFly does not have aout. When/if they implement a new
12152 # versioning mechanism, adjust this.
12153 if test -x /usr/bin/objformat; then
12154 objformat=`/usr/bin/objformat`
12155 else
12156 case $host_os in
12157 freebsd[23].*) objformat=aout ;;
12158 *) objformat=elf ;;
12159 esac
12160 fi
12161 version_type=freebsd-$objformat
12162 case $version_type in
12163 freebsd-elf*)
12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12165 soname_spec='$libname$release$shared_ext$major'
12166 need_version=no
12167 need_lib_prefix=no
12168 ;;
12169 freebsd-*)
12170 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12171 need_version=yes
12172 ;;
12173 esac
12174 case $host_cpu in
12175 powerpc64)
12176 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12177 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12179 /* end confdefs.h. */
12180 int test_pointer_size[sizeof (void *) - 5];
12181
12182 _ACEOF
12183 if ac_fn_c_try_compile "$LINENO"
12184 then :
12185 shlibpath_var=LD_LIBRARY_PATH
12186 else case e in #(
12187 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12188 esac
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12191 ;;
12192 *)
12193 shlibpath_var=LD_LIBRARY_PATH
12194 ;;
12195 esac
12196 case $host_os in
12197 freebsd2.*)
12198 shlibpath_overrides_runpath=yes
12199 ;;
12200 freebsd3.[01]* | freebsdelf3.[01]*)
12201 shlibpath_overrides_runpath=yes
12202 hardcode_into_libs=yes
12203 ;;
12204 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12205 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12206 shlibpath_overrides_runpath=no
12207 hardcode_into_libs=yes
12208 ;;
12209 *) # from 4.6 on, and DragonFly
12210 shlibpath_overrides_runpath=yes
12211 hardcode_into_libs=yes
12212 ;;
12213 esac
12214 ;;
12215
12216 haiku*)
12217 version_type=linux # correct to gnu/linux during the next big refactor
12218 need_lib_prefix=no
12219 need_version=no
12220 dynamic_linker="$host_os runtime_loader"
12221 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12222 soname_spec='$libname$release$shared_ext$major'
12223 shlibpath_var=LIBRARY_PATH
12224 shlibpath_overrides_runpath=no
12225 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12226 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12227 hardcode_into_libs=no
12228 ;;
12229
12230 hpux9* | hpux10* | hpux11*)
12231 # Give a soname corresponding to the major version so that dld.sl refuses to
12232 # link against other versions.
12233 version_type=sunos
12234 need_lib_prefix=no
12235 need_version=no
12236 case $host_cpu in
12237 ia64*)
12238 shrext_cmds='.so'
12239 hardcode_into_libs=yes
12240 dynamic_linker="$host_os dld.so"
12241 shlibpath_var=LD_LIBRARY_PATH
12242 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12243 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12244 soname_spec='$libname$release$shared_ext$major'
12245 if test 32 = "$HPUX_IA64_MODE"; then
12246 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12247 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12248 else
12249 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12250 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12251 fi
12252 ;;
12253 hppa*64*)
12254 shrext_cmds='.sl'
12255 hardcode_into_libs=yes
12256 dynamic_linker="$host_os dld.sl"
12257 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12260 soname_spec='$libname$release$shared_ext$major'
12261 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12262 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12263 ;;
12264 *)
12265 shrext_cmds='.sl'
12266 dynamic_linker="$host_os dld.sl"
12267 shlibpath_var=SHLIB_PATH
12268 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12270 soname_spec='$libname$release$shared_ext$major'
12271 ;;
12272 esac
12273 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12274 postinstall_cmds='chmod 555 $lib'
12275 # or fails outright, so override atomically:
12276 install_override_mode=555
12277 ;;
12278
12279 interix[3-9]*)
12280 version_type=linux # correct to gnu/linux during the next big refactor
12281 need_lib_prefix=no
12282 need_version=no
12283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12284 soname_spec='$libname$release$shared_ext$major'
12285 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12286 shlibpath_var=LD_LIBRARY_PATH
12287 shlibpath_overrides_runpath=no
12288 hardcode_into_libs=yes
12289 ;;
12290
12291 irix5* | irix6* | nonstopux*)
12292 case $host_os in
12293 nonstopux*) version_type=nonstopux ;;
12294 *)
12295 if test yes = "$lt_cv_prog_gnu_ld"; then
12296 version_type=linux # correct to gnu/linux during the next big refactor
12297 else
12298 version_type=irix
12299 fi ;;
12300 esac
12301 need_lib_prefix=no
12302 need_version=no
12303 soname_spec='$libname$release$shared_ext$major'
12304 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12305 case $host_os in
12306 irix5* | nonstopux*)
12307 libsuff= shlibsuff=
12308 ;;
12309 *)
12310 case $LD in # libtool.m4 will add one of these switches to LD
12311 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12312 libsuff= shlibsuff= libmagic=32-bit;;
12313 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12314 libsuff=32 shlibsuff=N32 libmagic=N32;;
12315 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12316 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12317 *) libsuff= shlibsuff= libmagic=never-match;;
12318 esac
12319 ;;
12320 esac
12321 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12322 shlibpath_overrides_runpath=no
12323 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12324 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12325 hardcode_into_libs=yes
12326 ;;
12327
12328 # No shared lib support for Linux oldld, aout, or coff.
12329 linux*oldld* | linux*aout* | linux*coff*)
12330 dynamic_linker=no
12331 ;;
12332
12333 linux*android*)
12334 version_type=none # Android doesn't support versioned libraries.
12335 need_lib_prefix=no
12336 need_version=no
12337 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12338 soname_spec='$libname$release$shared_ext'
12339 finish_cmds=
12340 shlibpath_var=LD_LIBRARY_PATH
12341 shlibpath_overrides_runpath=yes
12342
12343 # This implies no fast_install, which is unacceptable.
12344 # Some rework will be needed to allow for fast_install
12345 # before this can be enabled.
12346 hardcode_into_libs=yes
12347
12348 dynamic_linker='Android linker'
12349 # -rpath works at least for libraries that are not overridden by
12350 # libraries installed in system locations.
12351 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12352 ;;
12353
12354 # This must be glibc/ELF.
12355 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12356 version_type=linux # correct to gnu/linux during the next big refactor
12357 need_lib_prefix=no
12358 need_version=no
12359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12360 soname_spec='$libname$release$shared_ext$major'
12361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12362 shlibpath_var=LD_LIBRARY_PATH
12363 shlibpath_overrides_runpath=no
12364
12365 # Some binutils ld are patched to set DT_RUNPATH
12366 if test ${lt_cv_shlibpath_overrides_runpath+y}
12367 then :
12368 printf %s "(cached) " >&6
12369 else case e in #(
12370 e) lt_cv_shlibpath_overrides_runpath=no
12371 save_LDFLAGS=$LDFLAGS
12372 save_libdir=$libdir
12373 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12374 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12377
12378 int
12379 main (void)
12380 {
12381
12382 ;
12383 return 0;
12384 }
12385 _ACEOF
12386 if ac_fn_c_try_link "$LINENO"
12387 then :
12388 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12389 then :
12390 lt_cv_shlibpath_overrides_runpath=yes
12391 fi
12392 fi
12393 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12394 conftest$ac_exeext conftest.$ac_ext
12395 LDFLAGS=$save_LDFLAGS
12396 libdir=$save_libdir
12397 ;;
12398 esac
12399 fi
12400
12401 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12402
12403 # This implies no fast_install, which is unacceptable.
12404 # Some rework will be needed to allow for fast_install
12405 # before this can be enabled.
12406 hardcode_into_libs=yes
12407
12408 # Ideally, we could use ldconfig to report *all* directories which are
12409 # searched for libraries, however this is still not possible. Aside from not
12410 # being certain /sbin/ldconfig is available, command
12411 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12412 # even though it is searched at run-time. Try to do the best guess by
12413 # appending ld.so.conf contents (and includes) to the search path.
12414 if test -f /etc/ld.so.conf; then
12415 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12416 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12417 fi
12418
12419 # We used to test for /lib/ld.so.1 and disable shared libraries on
12420 # powerpc, because MkLinux only supported shared libraries with the
12421 # GNU dynamic linker. Since this was broken with cross compilers,
12422 # most powerpc-linux boxes support dynamic linking these days and
12423 # people can always --disable-shared, the test was removed, and we
12424 # assume the GNU/Linux dynamic linker is in use.
12425 dynamic_linker='GNU/Linux ld.so'
12426 ;;
12427
12428 netbsdelf*-gnu)
12429 version_type=linux
12430 need_lib_prefix=no
12431 need_version=no
12432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12433 soname_spec='$libname$release$shared_ext$major'
12434 shlibpath_var=LD_LIBRARY_PATH
12435 shlibpath_overrides_runpath=no
12436 hardcode_into_libs=yes
12437 dynamic_linker='NetBSD ld.elf_so'
12438 ;;
12439
12440 netbsdelf*-gnu)
12441 version_type=linux
12442 need_lib_prefix=no
12443 need_version=no
12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12445 soname_spec='${libname}${release}${shared_ext}$major'
12446 shlibpath_var=LD_LIBRARY_PATH
12447 shlibpath_overrides_runpath=no
12448 hardcode_into_libs=yes
12449 dynamic_linker='NetBSD ld.elf_so'
12450 ;;
12451
12452 netbsd*)
12453 version_type=sunos
12454 need_lib_prefix=no
12455 need_version=no
12456 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12457 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12459 dynamic_linker='NetBSD (a.out) ld.so'
12460 else
12461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12462 soname_spec='$libname$release$shared_ext$major'
12463 dynamic_linker='NetBSD ld.elf_so'
12464 fi
12465 shlibpath_var=LD_LIBRARY_PATH
12466 shlibpath_overrides_runpath=yes
12467 hardcode_into_libs=yes
12468 ;;
12469
12470 *-mlibc)
12471 version_type=linux # correct to gnu/linux during the next big refactor
12472 need_lib_prefix=no
12473 need_version=no
12474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12475 soname_spec='$libname$release$shared_ext$major'
12476 dynamic_linker='mlibc ld.so'
12477 shlibpath_var=LD_LIBRARY_PATH
12478 shlibpath_overrides_runpath=no
12479 hardcode_into_libs=yes
12480 ;;
12481
12482 newsos6)
12483 version_type=linux # correct to gnu/linux during the next big refactor
12484 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12485 shlibpath_var=LD_LIBRARY_PATH
12486 shlibpath_overrides_runpath=yes
12487 ;;
12488
12489 *nto* | *qnx*)
12490 version_type=qnx
12491 need_lib_prefix=no
12492 need_version=no
12493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12494 soname_spec='$libname$release$shared_ext$major'
12495 shlibpath_var=LD_LIBRARY_PATH
12496 shlibpath_overrides_runpath=no
12497 hardcode_into_libs=yes
12498 dynamic_linker='ldqnx.so'
12499 ;;
12500
12501 openbsd*)
12502 version_type=sunos
12503 sys_lib_dlsearch_path_spec=/usr/lib
12504 need_lib_prefix=no
12505 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12506 need_version=no
12507 else
12508 need_version=yes
12509 fi
12510 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12512 shlibpath_var=LD_LIBRARY_PATH
12513 shlibpath_overrides_runpath=yes
12514 ;;
12515
12516 os2*)
12517 libname_spec='$name'
12518 version_type=windows
12519 shrext_cmds=.dll
12520 need_version=no
12521 need_lib_prefix=no
12522 # OS/2 can only load a DLL with a base name of 8 characters or less.
12523 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12524 v=$($ECHO $release$versuffix | tr -d .-);
12525 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12526 $ECHO $n$v`$shared_ext'
12527 library_names_spec='${libname}_dll.$libext'
12528 dynamic_linker='OS/2 ld.exe'
12529 shlibpath_var=BEGINLIBPATH
12530 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12532 postinstall_cmds='base_file=`basename \$file`~
12533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12534 dldir=$destdir/`dirname \$dlpath`~
12535 test -d \$dldir || mkdir -p \$dldir~
12536 $install_prog $dir/$dlname \$dldir/$dlname~
12537 chmod a+x \$dldir/$dlname~
12538 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12539 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12540 fi'
12541 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12542 dlpath=$dir/\$dldll~
12543 $RM \$dlpath'
12544 ;;
12545
12546 osf3* | osf4* | osf5*)
12547 version_type=osf
12548 need_lib_prefix=no
12549 need_version=no
12550 soname_spec='$libname$release$shared_ext$major'
12551 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12552 shlibpath_var=LD_LIBRARY_PATH
12553 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12554 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12555 ;;
12556
12557 rdos*)
12558 dynamic_linker=no
12559 ;;
12560
12561 serenity*)
12562 version_type=linux # correct to gnu/linux during the next big refactor
12563 need_lib_prefix=no
12564 need_version=no
12565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12566 soname_spec='$libname$release$shared_ext$major'
12567 shlibpath_var=LD_LIBRARY_PATH
12568 shlibpath_overrides_runpath=no
12569 dynamic_linker='SerenityOS LibELF'
12570 ;;
12571
12572 solaris*)
12573 version_type=linux # correct to gnu/linux during the next big refactor
12574 need_lib_prefix=no
12575 need_version=no
12576 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12577 soname_spec='$libname$release$shared_ext$major'
12578 shlibpath_var=LD_LIBRARY_PATH
12579 shlibpath_overrides_runpath=yes
12580 hardcode_into_libs=yes
12581 # ldd complains unless libraries are executable
12582 postinstall_cmds='chmod +x $lib'
12583 ;;
12584
12585 sunos4*)
12586 version_type=sunos
12587 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 shlibpath_overrides_runpath=yes
12591 if test yes = "$with_gnu_ld"; then
12592 need_lib_prefix=no
12593 fi
12594 need_version=yes
12595 ;;
12596
12597 sysv4 | sysv4.3*)
12598 version_type=linux # correct to gnu/linux during the next big refactor
12599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12600 soname_spec='$libname$release$shared_ext$major'
12601 shlibpath_var=LD_LIBRARY_PATH
12602 case $host_vendor in
12603 sni)
12604 shlibpath_overrides_runpath=no
12605 need_lib_prefix=no
12606 runpath_var=LD_RUN_PATH
12607 ;;
12608 siemens)
12609 need_lib_prefix=no
12610 ;;
12611 motorola)
12612 need_lib_prefix=no
12613 need_version=no
12614 shlibpath_overrides_runpath=no
12615 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12616 ;;
12617 esac
12618 ;;
12619
12620 sysv4*MP*)
12621 if test -d /usr/nec; then
12622 version_type=linux # correct to gnu/linux during the next big refactor
12623 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12624 soname_spec='$libname$shared_ext.$major'
12625 shlibpath_var=LD_LIBRARY_PATH
12626 fi
12627 ;;
12628
12629 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12630 version_type=sco
12631 need_lib_prefix=no
12632 need_version=no
12633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12634 soname_spec='$libname$release$shared_ext$major'
12635 shlibpath_var=LD_LIBRARY_PATH
12636 shlibpath_overrides_runpath=yes
12637 hardcode_into_libs=yes
12638 if test yes = "$with_gnu_ld"; then
12639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12640 else
12641 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12642 case $host_os in
12643 sco3.2v5*)
12644 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12645 ;;
12646 esac
12647 fi
12648 sys_lib_dlsearch_path_spec='/usr/lib'
12649 ;;
12650
12651 tpf*)
12652 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12653 version_type=linux # correct to gnu/linux during the next big refactor
12654 need_lib_prefix=no
12655 need_version=no
12656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12657 shlibpath_var=LD_LIBRARY_PATH
12658 shlibpath_overrides_runpath=no
12659 hardcode_into_libs=yes
12660 ;;
12661
12662 uts4*)
12663 version_type=linux # correct to gnu/linux during the next big refactor
12664 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12665 soname_spec='$libname$release$shared_ext$major'
12666 shlibpath_var=LD_LIBRARY_PATH
12667 ;;
12668
12669 emscripten*)
12670 version_type=none
12671 need_lib_prefix=no
12672 need_version=no
12673 library_names_spec='$libname$release$shared_ext'
12674 soname_spec='$libname$release$shared_ext'
12675 finish_cmds=
12676 dynamic_linker="Emscripten linker"
12677 lt_prog_compiler_wl=
12678 lt_prog_compiler_pic=
12679 lt_prog_compiler_static=
12680
12681
12682 if test yes = "$GCC"; then
12683 lt_prog_compiler_wl='-Wl,'
12684 lt_prog_compiler_static='-static'
12685
12686 case $host_os in
12687 aix*)
12688 # All AIX code is PIC.
12689 if test ia64 = "$host_cpu"; then
12690 # AIX 5 now supports IA64 processor
12691 lt_prog_compiler_static='-Bstatic'
12692 fi
12693 lt_prog_compiler_pic='-fPIC'
12694 ;;
12695
12696 amigaos*)
12697 case $host_cpu in
12698 powerpc)
12699 # see comment about AmigaOS4 .so support
12700 lt_prog_compiler_pic='-fPIC'
12701 ;;
12702 m68k)
12703 # FIXME: we need at least 68020 code to build shared libraries, but
12704 # adding the '-m68020' flag to GCC prevents building anything better,
12705 # like '-m68040'.
12706 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12707 ;;
12708 esac
12709 ;;
12710
12711 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12712 # PIC is the default for these OSes.
12713 ;;
12714
12715 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12716 # This hack is so that the source file can tell whether it is being
12717 # built for inclusion in a dll (and should export symbols for example).
12718 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12719 # (--disable-auto-import) libraries
12720 lt_prog_compiler_pic='-DDLL_EXPORT'
12721 case $host_os in
12722 os2*)
12723 lt_prog_compiler_static='$wl-static'
12724 ;;
12725 esac
12726 ;;
12727
12728 darwin* | rhapsody*)
12729 # PIC is the default on this platform
12730 # Common symbols not allowed in MH_DYLIB files
12731 lt_prog_compiler_pic='-fno-common'
12732 ;;
12733
12734 haiku*)
12735 # PIC is the default for Haiku.
12736 # The "-static" flag exists, but is broken.
12737 lt_prog_compiler_static=
12738 ;;
12739
12740 hpux*)
12741 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12742 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12743 # sets the default TLS model and affects inlining.
12744 case $host_cpu in
12745 hppa*64*)
12746 # +Z the default
12747 ;;
12748 *)
12749 lt_prog_compiler_pic='-fPIC'
12750 ;;
12751 esac
12752 ;;
12753
12754 interix[3-9]*)
12755 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12756 # Instead, we relocate shared libraries at runtime.
12757 ;;
12758
12759 msdosdjgpp*)
12760 # Just because we use GCC doesn't mean we suddenly get shared libraries
12761 # on systems that don't support them.
12762 lt_prog_compiler_can_build_shared=no
12763 enable_shared=no
12764 ;;
12765
12766 *nto* | *qnx*)
12767 # QNX uses GNU C++, but need to define -shared option too, otherwise
12768 # it will coredump.
12769 lt_prog_compiler_pic='-fPIC -shared'
12770 ;;
12771
12772 sysv4*MP*)
12773 if test -d /usr/nec; then
12774 lt_prog_compiler_pic=-Kconform_pic
12775 fi
12776 ;;
12777
12778 *)
12779 lt_prog_compiler_pic='-fPIC'
12780 ;;
12781 esac
12782
12783 case $cc_basename in
12784 nvcc*) # Cuda Compiler Driver 2.2
12785 lt_prog_compiler_wl='-Xlinker '
12786 if test -n "$lt_prog_compiler_pic"; then
12787 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12788 fi
12789 ;;
12790 esac
12791 else
12792 # PORTME Check for flag to pass linker flags through the system compiler.
12793 case $host_os in
12794 aix*)
12795 lt_prog_compiler_wl='-Wl,'
12796 if test ia64 = "$host_cpu"; then
12797 # AIX 5 now supports IA64 processor
12798 lt_prog_compiler_static='-Bstatic'
12799 else
12800 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12801 fi
12802 ;;
12803
12804 darwin* | rhapsody*)
12805 # PIC is the default on this platform
12806 # Common symbols not allowed in MH_DYLIB files
12807 lt_prog_compiler_pic='-fno-common'
12808 case $cc_basename in
12809 nagfor*)
12810 # NAG Fortran compiler
12811 lt_prog_compiler_wl='-Wl,-Wl,,'
12812 lt_prog_compiler_pic='-PIC'
12813 lt_prog_compiler_static='-Bstatic'
12814 ;;
12815 esac
12816 ;;
12817
12818 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12819 # This hack is so that the source file can tell whether it is being
12820 # built for inclusion in a dll (and should export symbols for example).
12821 lt_prog_compiler_pic='-DDLL_EXPORT'
12822 case $host_os in
12823 os2*)
12824 lt_prog_compiler_static='$wl-static'
12825 ;;
12826 esac
12827 ;;
12828
12829 hpux9* | hpux10* | hpux11*)
12830 lt_prog_compiler_wl='-Wl,'
12831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12832 # not for PA HP-UX.
12833 case $host_cpu in
12834 hppa*64*|ia64*)
12835 # +Z the default
12836 ;;
12837 *)
12838 lt_prog_compiler_pic='+Z'
12839 ;;
12840 esac
12841 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12842 lt_prog_compiler_static='$wl-a ${wl}archive'
12843 ;;
12844
12845 irix5* | irix6* | nonstopux*)
12846 lt_prog_compiler_wl='-Wl,'
12847 # PIC (with -KPIC) is the default.
12848 lt_prog_compiler_static='-non_shared'
12849 ;;
12850
12851 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12852 case $cc_basename in
12853 # old Intel for x86_64, which still supported -KPIC.
12854 ecc*)
12855 lt_prog_compiler_wl='-Wl,'
12856 lt_prog_compiler_pic='-KPIC'
12857 lt_prog_compiler_static='-static'
12858 ;;
12859 *flang* | ftn | f18* | f95*)
12860 # Flang compiler.
12861 lt_prog_compiler_wl='-Wl,'
12862 lt_prog_compiler_pic='-fPIC'
12863 lt_prog_compiler_static='-static'
12864 ;;
12865 # flang / f18. f95 an alias for gfortran or flang on Debian
12866 flang* | f18* | f95*)
12867 lt_prog_compiler_wl='-Wl,'
12868 lt_prog_compiler_pic='-fPIC'
12869 lt_prog_compiler_static='-static'
12870 ;;
12871 # icc used to be incompatible with GCC.
12872 # ICC 10 doesn't accept -KPIC any more.
12873 icc* | ifort*)
12874 lt_prog_compiler_wl='-Wl,'
12875 lt_prog_compiler_pic='-fPIC'
12876 lt_prog_compiler_static='-static'
12877 ;;
12878 # Lahey Fortran 8.1.
12879 lf95*)
12880 lt_prog_compiler_wl='-Wl,'
12881 lt_prog_compiler_pic='--shared'
12882 lt_prog_compiler_static='--static'
12883 ;;
12884 nagfor*)
12885 # NAG Fortran compiler
12886 lt_prog_compiler_wl='-Wl,-Wl,,'
12887 lt_prog_compiler_pic='-PIC'
12888 lt_prog_compiler_static='-Bstatic'
12889 ;;
12890 tcc*)
12891 # Fabrice Bellard et al's Tiny C Compiler
12892 lt_prog_compiler_wl='-Wl,'
12893 lt_prog_compiler_pic='-fPIC'
12894 lt_prog_compiler_static='-static'
12895 ;;
12896 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12897 # Portland Group compilers (*not* the Pentium gcc compiler,
12898 # which looks to be a dead project)
12899 lt_prog_compiler_wl='-Wl,'
12900 lt_prog_compiler_pic='-fpic'
12901 lt_prog_compiler_static='-Bstatic'
12902 ;;
12903 ccc*)
12904 lt_prog_compiler_wl='-Wl,'
12905 # All Alpha code is PIC.
12906 lt_prog_compiler_static='-non_shared'
12907 ;;
12908 xl* | bgxl* | bgf* | mpixl*)
12909 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12910 lt_prog_compiler_wl='-Wl,'
12911 lt_prog_compiler_pic='-qpic'
12912 lt_prog_compiler_static='-qstaticlink'
12913 ;;
12914 *)
12915 case `$CC -V 2>&1 | $SED 5q` in
12916 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12917 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12918 lt_prog_compiler_pic='-KPIC'
12919 lt_prog_compiler_static='-Bstatic'
12920 lt_prog_compiler_wl=''
12921 ;;
12922 *Sun\ F* | *Sun*Fortran*)
12923 lt_prog_compiler_pic='-KPIC'
12924 lt_prog_compiler_static='-Bstatic'
12925 lt_prog_compiler_wl='-Qoption ld '
12926 ;;
12927 *Sun\ C*)
12928 # Sun C 5.9
12929 lt_prog_compiler_pic='-KPIC'
12930 lt_prog_compiler_static='-Bstatic'
12931 lt_prog_compiler_wl='-Wl,'
12932 ;;
12933 *Intel*\ [CF]*Compiler*)
12934 lt_prog_compiler_wl='-Wl,'
12935 lt_prog_compiler_pic='-fPIC'
12936 lt_prog_compiler_static='-static'
12937 ;;
12938 *Portland\ Group*)
12939 lt_prog_compiler_wl='-Wl,'
12940 lt_prog_compiler_pic='-fpic'
12941 lt_prog_compiler_static='-Bstatic'
12942 ;;
12943 esac
12944 ;;
12945 esac
12946 ;;
12947
12948 newsos6)
12949 lt_prog_compiler_pic='-KPIC'
12950 lt_prog_compiler_static='-Bstatic'
12951 ;;
12952
12953 *-mlibc)
12954 lt_prog_compiler_wl='-Wl,'
12955 lt_prog_compiler_pic='-fPIC'
12956 lt_prog_compiler_static='-static'
12957 ;;
12958
12959 *nto* | *qnx*)
12960 # QNX uses GNU C++, but need to define -shared option too, otherwise
12961 # it will coredump.
12962 lt_prog_compiler_pic='-fPIC -shared'
12963 ;;
12964
12965 osf3* | osf4* | osf5*)
12966 lt_prog_compiler_wl='-Wl,'
12967 # All OSF/1 code is PIC.
12968 lt_prog_compiler_static='-non_shared'
12969 ;;
12970
12971 rdos*)
12972 lt_prog_compiler_static='-non_shared'
12973 ;;
12974
12975 serenity*)
12976 ;;
12977
12978 solaris*)
12979 lt_prog_compiler_pic='-KPIC'
12980 lt_prog_compiler_static='-Bstatic'
12981 case $cc_basename in
12982 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12983 lt_prog_compiler_wl='-Qoption ld ';;
12984 *)
12985 lt_prog_compiler_wl='-Wl,';;
12986 esac
12987 ;;
12988
12989 sunos4*)
12990 lt_prog_compiler_wl='-Qoption ld '
12991 lt_prog_compiler_pic='-PIC'
12992 lt_prog_compiler_static='-Bstatic'
12993 ;;
12994
12995 sysv4 | sysv4.2uw2* | sysv4.3*)
12996 lt_prog_compiler_wl='-Wl,'
12997 lt_prog_compiler_pic='-KPIC'
12998 lt_prog_compiler_static='-Bstatic'
12999 ;;
13000
13001 sysv4*MP*)
13002 if test -d /usr/nec; then
13003 lt_prog_compiler_pic='-Kconform_pic'
13004 lt_prog_compiler_static='-Bstatic'
13005 fi
13006 ;;
13007
13008 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13009 lt_prog_compiler_wl='-Wl,'
13010 lt_prog_compiler_pic='-KPIC'
13011 lt_prog_compiler_static='-Bstatic'
13012 ;;
13013
13014 unicos*)
13015 lt_prog_compiler_wl='-Wl,'
13016 lt_prog_compiler_can_build_shared=no
13017 ;;
13018
13019 uts4*)
13020 lt_prog_compiler_pic='-pic'
13021 lt_prog_compiler_static='-Bstatic'
13022 ;;
13023
13024 *)
13025 lt_prog_compiler_can_build_shared=no
13026 ;;
13027 esac
13028 fi
13029
13030 case $host_os in
13031 # For platforms that do not support PIC, -DPIC is meaningless:
13032 *djgpp*)
13033 lt_prog_compiler_pic=
13034 ;;
13035 *)
13036 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13037 ;;
13038 esac
13039
13040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13041 printf %s "checking for $compiler option to produce PIC... " >&6; }
13042 if test ${lt_cv_prog_compiler_pic+y}
13043 then :
13044 printf %s "(cached) " >&6
13045 else case e in #(
13046 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
13047 esac
13048 fi
13049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13050 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13051 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13052
13053 #
13054 # Check to make sure the PIC flag actually works.
13055 #
13056 if test -n "$lt_prog_compiler_pic"; then
13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13058 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13059 if test ${lt_cv_prog_compiler_pic_works+y}
13060 then :
13061 printf %s "(cached) " >&6
13062 else case e in #(
13063 e) lt_cv_prog_compiler_pic_works=no
13064 ac_outfile=conftest.$ac_objext
13065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13066 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13067 # Insert the option either (1) after the last *FLAGS variable, or
13068 # (2) before a word containing "conftest.", or (3) at the end.
13069 # Note that $ac_compile itself does not contain backslashes and begins
13070 # with a dollar sign (not a hyphen), so the echo should work correctly.
13071 # The option is referenced via a variable to avoid confusing sed.
13072 lt_compile=`echo "$ac_compile" | $SED \
13073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13075 -e 's:$: $lt_compiler_flag:'`
13076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13077 (eval "$lt_compile" 2>conftest.err)
13078 ac_status=$?
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 if (exit $ac_status) && test -s "$ac_outfile"; then
13082 # The compiler can only warn and ignore the option if not recognized
13083 # So say no if there are warnings other than the usual output.
13084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13085 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13086 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13087 lt_cv_prog_compiler_pic_works=yes
13088 fi
13089 fi
13090 $RM conftest*
13091 ;;
13092 esac
13093 fi
13094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13095 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13096
13097 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13098 case $lt_prog_compiler_pic in
13099 "" | " "*) ;;
13100 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13101 esac
13102 else
13103 lt_prog_compiler_pic=
13104 lt_prog_compiler_can_build_shared=no
13105 fi
13106
13107 fi
13108
13109
13110
13111
13112
13113 #
13114 # Check to make sure the static flag actually works.
13115 #
13116 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13118 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13119 if test ${lt_cv_prog_compiler_static_works+y}
13120 then :
13121 printf %s "(cached) " >&6
13122 else case e in #(
13123 e) lt_cv_prog_compiler_static_works=no
13124 save_LDFLAGS=$LDFLAGS
13125 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13126 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13127 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13128 # The linker can only warn and ignore the option if not recognized
13129 # So say no if there are warnings
13130 if test -s conftest.err; then
13131 # Append any errors to the config.log.
13132 cat conftest.err 1>&5
13133 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13134 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13135 if diff conftest.exp conftest.er2 >/dev/null; then
13136 lt_cv_prog_compiler_static_works=yes
13137 fi
13138 else
13139 lt_cv_prog_compiler_static_works=yes
13140 fi
13141 fi
13142 $RM -r conftest*
13143 LDFLAGS=$save_LDFLAGS
13144 ;;
13145 esac
13146 fi
13147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13148 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13149
13150 if test yes = "$lt_cv_prog_compiler_static_works"; then
13151 :
13152 else
13153 lt_prog_compiler_static=
13154 fi
13155
13156
13157
13158 ='-fPIC'
13159 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13160 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
13161 archive_cmds_need_lc=no
13162 no_undefined_flag=
13163 ;;
13164
13165 *)
13166 dynamic_linker=no
13167 ;;
13168 esac
13169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13170 printf "%s\n" "$dynamic_linker" >&6; }
13171 test no = "$dynamic_linker" && can_build_shared=no
13172
13173 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13174 if test yes = "$GCC"; then
13175 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13176 fi
13177
13178 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13179 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13180 fi
13181
13182 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13183 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13184 fi
13185
13186 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13187 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13188
13189 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13190 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13191
13192 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13193 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13292 printf %s "checking how to hardcode library paths into programs... " >&6; }
13293 hardcode_action=
13294 if test -n "$hardcode_libdir_flag_spec" ||
13295 test -n "$runpath_var" ||
13296 test yes = "$hardcode_automatic"; then
13297
13298 # We can hardcode non-existent directories.
13299 if test no != "$hardcode_direct" &&
13300 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13301 # have to relink, otherwise we might link with an installed library
13302 # when we should be linking with a yet-to-be-installed one
13303 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13304 test no != "$hardcode_minus_L"; then
13305 # Linking always hardcodes the temporary library directory.
13306 hardcode_action=relink
13307 else
13308 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13309 hardcode_action=immediate
13310 fi
13311 else
13312 # We cannot hardcode anything, or else we can only hardcode existing
13313 # directories.
13314 hardcode_action=unsupported
13315 fi
13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13317 printf "%s\n" "$hardcode_action" >&6; }
13318
13319 if test relink = "$hardcode_action" ||
13320 test yes = "$inherit_rpath"; then
13321 # Fast installation is not supported
13322 enable_fast_install=no
13323 elif test yes = "$shlibpath_overrides_runpath" ||
13324 test no = "$enable_shared"; then
13325 # Fast installation is not necessary
13326 enable_fast_install=needless
13327 fi
13328
13329
13330
13331
13332
13333
13334 if test yes != "$enable_dlopen"; then
13335 enable_dlopen=unknown
13336 enable_dlopen_self=unknown
13337 enable_dlopen_self_static=unknown
13338 else
13339 lt_cv_dlopen=no
13340 lt_cv_dlopen_libs=
13341
13342 case $host_os in
13343 beos*)
13344 lt_cv_dlopen=load_add_on
13345 lt_cv_dlopen_libs=
13346 lt_cv_dlopen_self=yes
13347 ;;
13348
13349 mingw* | windows* | pw32* | cegcc*)
13350 lt_cv_dlopen=LoadLibrary
13351 lt_cv_dlopen_libs=
13352 ;;
13353
13354 cygwin*)
13355 lt_cv_dlopen=dlopen
13356 lt_cv_dlopen_libs=
13357 ;;
13358
13359 darwin*)
13360 # if libdl is installed we need to link against it
13361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13362 printf %s "checking for dlopen in -ldl... " >&6; }
13363 if test ${ac_cv_lib_dl_dlopen+y}
13364 then :
13365 printf %s "(cached) " >&6
13366 else case e in #(
13367 e) ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-ldl $LIBS"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13371
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply.
13375 The 'extern "C"' is for builds by C++ compilers;
13376 although this is not generally supported in C code supporting it here
13377 has little cost and some practical benefit (sr 110532). */
13378 #ifdef __cplusplus
13379 extern "C"
13380 #endif
13381 char dlopen (void);
13382 int
13383 main (void)
13384 {
13385 return dlopen ();
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_link "$LINENO"
13391 then :
13392 ac_cv_lib_dl_dlopen=yes
13393 else case e in #(
13394 e) ac_cv_lib_dl_dlopen=no ;;
13395 esac
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS ;;
13400 esac
13401 fi
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13403 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13404 if test "x$ac_cv_lib_dl_dlopen" = xyes
13405 then :
13406 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13407 else case e in #(
13408 e)
13409 lt_cv_dlopen=dyld
13410 lt_cv_dlopen_libs=
13411 lt_cv_dlopen_self=yes
13412 ;;
13413 esac
13414 fi
13415
13416 ;;
13417
13418 tpf*)
13419 # Don't try to run any link tests for TPF. We know it's impossible
13420 # because TPF is a cross-compiler, and we know how we open DSOs.
13421 lt_cv_dlopen=dlopen
13422 lt_cv_dlopen_libs=
13423 lt_cv_dlopen_self=no
13424 ;;
13425
13426 *)
13427 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13428 if test "x$ac_cv_func_shl_load" = xyes
13429 then :
13430 lt_cv_dlopen=shl_load
13431 else case e in #(
13432 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13433 printf %s "checking for shl_load in -ldld... " >&6; }
13434 if test ${ac_cv_lib_dld_shl_load+y}
13435 then :
13436 printf %s "(cached) " >&6
13437 else case e in #(
13438 e) ac_check_lib_save_LIBS=$LIBS
13439 LIBS="-ldld $LIBS"
13440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13442
13443 /* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply.
13446 The 'extern "C"' is for builds by C++ compilers;
13447 although this is not generally supported in C code supporting it here
13448 has little cost and some practical benefit (sr 110532). */
13449 #ifdef __cplusplus
13450 extern "C"
13451 #endif
13452 char shl_load (void);
13453 int
13454 main (void)
13455 {
13456 return shl_load ();
13457 ;
13458 return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_link "$LINENO"
13462 then :
13463 ac_cv_lib_dld_shl_load=yes
13464 else case e in #(
13465 e) ac_cv_lib_dld_shl_load=no ;;
13466 esac
13467 fi
13468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13469 conftest$ac_exeext conftest.$ac_ext
13470 LIBS=$ac_check_lib_save_LIBS ;;
13471 esac
13472 fi
13473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13474 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13475 if test "x$ac_cv_lib_dld_shl_load" = xyes
13476 then :
13477 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13478 else case e in #(
13479 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13480 if test "x$ac_cv_func_dlopen" = xyes
13481 then :
13482 lt_cv_dlopen=dlopen
13483 else case e in #(
13484 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13485 printf %s "checking for dlopen in -ldl... " >&6; }
13486 if test ${ac_cv_lib_dl_dlopen+y}
13487 then :
13488 printf %s "(cached) " >&6
13489 else case e in #(
13490 e) ac_check_lib_save_LIBS=$LIBS
13491 LIBS="-ldl $LIBS"
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13494
13495 /* Override any GCC internal prototype to avoid an error.
13496 Use char because int might match the return type of a GCC
13497 builtin and then its argument prototype would still apply.
13498 The 'extern "C"' is for builds by C++ compilers;
13499 although this is not generally supported in C code supporting it here
13500 has little cost and some practical benefit (sr 110532). */
13501 #ifdef __cplusplus
13502 extern "C"
13503 #endif
13504 char dlopen (void);
13505 int
13506 main (void)
13507 {
13508 return dlopen ();
13509 ;
13510 return 0;
13511 }
13512 _ACEOF
13513 if ac_fn_c_try_link "$LINENO"
13514 then :
13515 ac_cv_lib_dl_dlopen=yes
13516 else case e in #(
13517 e) ac_cv_lib_dl_dlopen=no ;;
13518 esac
13519 fi
13520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13521 conftest$ac_exeext conftest.$ac_ext
13522 LIBS=$ac_check_lib_save_LIBS ;;
13523 esac
13524 fi
13525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13526 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13527 if test "x$ac_cv_lib_dl_dlopen" = xyes
13528 then :
13529 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13530 else case e in #(
13531 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13532 printf %s "checking for dlopen in -lsvld... " >&6; }
13533 if test ${ac_cv_lib_svld_dlopen+y}
13534 then :
13535 printf %s "(cached) " >&6
13536 else case e in #(
13537 e) ac_check_lib_save_LIBS=$LIBS
13538 LIBS="-lsvld $LIBS"
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540 /* end confdefs.h. */
13541
13542 /* Override any GCC internal prototype to avoid an error.
13543 Use char because int might match the return type of a GCC
13544 builtin and then its argument prototype would still apply.
13545 The 'extern "C"' is for builds by C++ compilers;
13546 although this is not generally supported in C code supporting it here
13547 has little cost and some practical benefit (sr 110532). */
13548 #ifdef __cplusplus
13549 extern "C"
13550 #endif
13551 char dlopen (void);
13552 int
13553 main (void)
13554 {
13555 return dlopen ();
13556 ;
13557 return 0;
13558 }
13559 _ACEOF
13560 if ac_fn_c_try_link "$LINENO"
13561 then :
13562 ac_cv_lib_svld_dlopen=yes
13563 else case e in #(
13564 e) ac_cv_lib_svld_dlopen=no ;;
13565 esac
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13568 conftest$ac_exeext conftest.$ac_ext
13569 LIBS=$ac_check_lib_save_LIBS ;;
13570 esac
13571 fi
13572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13573 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13574 if test "x$ac_cv_lib_svld_dlopen" = xyes
13575 then :
13576 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13577 else case e in #(
13578 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13579 printf %s "checking for dld_link in -ldld... " >&6; }
13580 if test ${ac_cv_lib_dld_dld_link+y}
13581 then :
13582 printf %s "(cached) " >&6
13583 else case e in #(
13584 e) ac_check_lib_save_LIBS=$LIBS
13585 LIBS="-ldld $LIBS"
13586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13587 /* end confdefs.h. */
13588
13589 /* Override any GCC internal prototype to avoid an error.
13590 Use char because int might match the return type of a GCC
13591 builtin and then its argument prototype would still apply.
13592 The 'extern "C"' is for builds by C++ compilers;
13593 although this is not generally supported in C code supporting it here
13594 has little cost and some practical benefit (sr 110532). */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 char dld_link (void);
13599 int
13600 main (void)
13601 {
13602 return dld_link ();
13603 ;
13604 return 0;
13605 }
13606 _ACEOF
13607 if ac_fn_c_try_link "$LINENO"
13608 then :
13609 ac_cv_lib_dld_dld_link=yes
13610 else case e in #(
13611 e) ac_cv_lib_dld_dld_link=no ;;
13612 esac
13613 fi
13614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13615 conftest$ac_exeext conftest.$ac_ext
13616 LIBS=$ac_check_lib_save_LIBS ;;
13617 esac
13618 fi
13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13620 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13621 if test "x$ac_cv_lib_dld_dld_link" = xyes
13622 then :
13623 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13624 fi
13625
13626 ;;
13627 esac
13628 fi
13629
13630 ;;
13631 esac
13632 fi
13633
13634 ;;
13635 esac
13636 fi
13637
13638 ;;
13639 esac
13640 fi
13641
13642 ;;
13643 esac
13644 fi
13645
13646 ;;
13647 esac
13648
13649 if test no = "$lt_cv_dlopen"; then
13650 enable_dlopen=no
13651 else
13652 enable_dlopen=yes
13653 fi
13654
13655 case $lt_cv_dlopen in
13656 dlopen)
13657 save_CPPFLAGS=$CPPFLAGS
13658 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13659
13660 save_LDFLAGS=$LDFLAGS
13661 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13662
13663 save_LIBS=$LIBS
13664 LIBS="$lt_cv_dlopen_libs $LIBS"
13665
13666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13667 printf %s "checking whether a program can dlopen itself... " >&6; }
13668 if test ${lt_cv_dlopen_self+y}
13669 then :
13670 printf %s "(cached) " >&6
13671 else case e in #(
13672 e) if test yes = "$cross_compiling"; then :
13673 lt_cv_dlopen_self=cross
13674 else
13675 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13676 lt_status=$lt_dlunknown
13677 cat > conftest.$ac_ext <<_LT_EOF
13678 #line $LINENO "configure"
13679 #include "confdefs.h"
13680
13681 #if HAVE_DLFCN_H
13682 #include <dlfcn.h>
13683 #endif
13684
13685 #include <stdio.h>
13686
13687 #ifdef RTLD_GLOBAL
13688 # define LT_DLGLOBAL RTLD_GLOBAL
13689 #else
13690 # ifdef DL_GLOBAL
13691 # define LT_DLGLOBAL DL_GLOBAL
13692 # else
13693 # define LT_DLGLOBAL 0
13694 # endif
13695 #endif
13696
13697 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13698 find out it does not work in some platform. */
13699 #ifndef LT_DLLAZY_OR_NOW
13700 # ifdef RTLD_LAZY
13701 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13702 # else
13703 # ifdef DL_LAZY
13704 # define LT_DLLAZY_OR_NOW DL_LAZY
13705 # else
13706 # ifdef RTLD_NOW
13707 # define LT_DLLAZY_OR_NOW RTLD_NOW
13708 # else
13709 # ifdef DL_NOW
13710 # define LT_DLLAZY_OR_NOW DL_NOW
13711 # else
13712 # define LT_DLLAZY_OR_NOW 0
13713 # endif
13714 # endif
13715 # endif
13716 # endif
13717 #endif
13718
13719 /* When -fvisibility=hidden is used, assume the code has been annotated
13720 correspondingly for the symbols needed. */
13721 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13722 int fnord (void) __attribute__((visibility("default")));
13723 #endif
13724
13725 int fnord (void) { return 42; }
13726 int main (void)
13727 {
13728 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13729 int status = $lt_dlunknown;
13730
13731 if (self)
13732 {
13733 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13734 else
13735 {
13736 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13737 else puts (dlerror ());
13738 }
13739 /* dlclose (self); */
13740 }
13741 else
13742 puts (dlerror ());
13743
13744 return status;
13745 }
13746 _LT_EOF
13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13748 (eval $ac_link) 2>&5
13749 ac_status=$?
13750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13751 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13752 (./conftest; exit; ) >&5 2>/dev/null
13753 lt_status=$?
13754 case x$lt_status in
13755 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13756 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13757 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13758 esac
13759 else :
13760 # compilation failed
13761 lt_cv_dlopen_self=no
13762 fi
13763 fi
13764 rm -fr conftest*
13765
13766 ;;
13767 esac
13768 fi
13769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13770 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13771
13772 if test yes = "$lt_cv_dlopen_self"; then
13773 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13775 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13776 if test ${lt_cv_dlopen_self_static+y}
13777 then :
13778 printf %s "(cached) " >&6
13779 else case e in #(
13780 e) if test yes = "$cross_compiling"; then :
13781 lt_cv_dlopen_self_static=cross
13782 else
13783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13784 lt_status=$lt_dlunknown
13785 cat > conftest.$ac_ext <<_LT_EOF
13786 #line $LINENO "configure"
13787 #include "confdefs.h"
13788
13789 #if HAVE_DLFCN_H
13790 #include <dlfcn.h>
13791 #endif
13792
13793 #include <stdio.h>
13794
13795 #ifdef RTLD_GLOBAL
13796 # define LT_DLGLOBAL RTLD_GLOBAL
13797 #else
13798 # ifdef DL_GLOBAL
13799 # define LT_DLGLOBAL DL_GLOBAL
13800 # else
13801 # define LT_DLGLOBAL 0
13802 # endif
13803 #endif
13804
13805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13806 find out it does not work in some platform. */
13807 #ifndef LT_DLLAZY_OR_NOW
13808 # ifdef RTLD_LAZY
13809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13810 # else
13811 # ifdef DL_LAZY
13812 # define LT_DLLAZY_OR_NOW DL_LAZY
13813 # else
13814 # ifdef RTLD_NOW
13815 # define LT_DLLAZY_OR_NOW RTLD_NOW
13816 # else
13817 # ifdef DL_NOW
13818 # define LT_DLLAZY_OR_NOW DL_NOW
13819 # else
13820 # define LT_DLLAZY_OR_NOW 0
13821 # endif
13822 # endif
13823 # endif
13824 # endif
13825 #endif
13826
13827 /* When -fvisibility=hidden is used, assume the code has been annotated
13828 correspondingly for the symbols needed. */
13829 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13830 int fnord (void) __attribute__((visibility("default")));
13831 #endif
13832
13833 int fnord (void) { return 42; }
13834 int main (void)
13835 {
13836 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13837 int status = $lt_dlunknown;
13838
13839 if (self)
13840 {
13841 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13842 else
13843 {
13844 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13845 else puts (dlerror ());
13846 }
13847 /* dlclose (self); */
13848 }
13849 else
13850 puts (dlerror ());
13851
13852 return status;
13853 }
13854 _LT_EOF
13855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13856 (eval $ac_link) 2>&5
13857 ac_status=$?
13858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13859 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13860 (./conftest; exit; ) >&5 2>/dev/null
13861 lt_status=$?
13862 case x$lt_status in
13863 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13864 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13865 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13866 esac
13867 else :
13868 # compilation failed
13869 lt_cv_dlopen_self_static=no
13870 fi
13871 fi
13872 rm -fr conftest*
13873
13874 ;;
13875 esac
13876 fi
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13878 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13879 fi
13880
13881 CPPFLAGS=$save_CPPFLAGS
13882 LDFLAGS=$save_LDFLAGS
13883 LIBS=$save_LIBS
13884 ;;
13885 esac
13886
13887 case $lt_cv_dlopen_self in
13888 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13889 *) enable_dlopen_self=unknown ;;
13890 esac
13891
13892 case $lt_cv_dlopen_self_static in
13893 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13894 *) enable_dlopen_self_static=unknown ;;
13895 esac
13896 fi
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914 striplib=
13915 old_striplib=
13916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13917 printf %s "checking whether stripping libraries is possible... " >&6; }
13918 if test -z "$STRIP"; then
13919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13920 printf "%s\n" "no" >&6; }
13921 else
13922 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13923 old_striplib="$STRIP --strip-debug"
13924 striplib="$STRIP --strip-unneeded"
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13926 printf "%s\n" "yes" >&6; }
13927 else
13928 case $host_os in
13929 darwin*)
13930 # FIXME - insert some real tests, host_os isn't really good enough
13931 striplib="$STRIP -x"
13932 old_striplib="$STRIP -S"
13933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13934 printf "%s\n" "yes" >&6; }
13935 ;;
13936 freebsd*)
13937 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13938 old_striplib="$STRIP --strip-debug"
13939 striplib="$STRIP --strip-unneeded"
13940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13941 printf "%s\n" "yes" >&6; }
13942 else
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13944 printf "%s\n" "no" >&6; }
13945 fi
13946 ;;
13947 *)
13948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13949 printf "%s\n" "no" >&6; }
13950 ;;
13951 esac
13952 fi
13953 fi
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966 # Report what library types will actually be built
13967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13968 printf %s "checking if libtool supports shared libraries... " >&6; }
13969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13970 printf "%s\n" "$can_build_shared" >&6; }
13971
13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13973 printf %s "checking whether to build shared libraries... " >&6; }
13974 test no = "$can_build_shared" && enable_shared=no
13975
13976 # On AIX, shared libraries and static libraries use the same namespace, and
13977 # are all built from PIC.
13978 case $host_os in
13979 aix3*)
13980 test yes = "$enable_shared" && enable_static=no
13981 if test -n "$RANLIB"; then
13982 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13983 postinstall_cmds='$RANLIB $lib'
13984 fi
13985 ;;
13986
13987 aix[4-9]*)
13988 if test ia64 != "$host_cpu"; then
13989 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13990 yes,aix,yes) ;; # shared object as lib.so file only
13991 yes,svr4,*) ;; # shared object as lib.so archive member only
13992 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13993 esac
13994 fi
13995 ;;
13996 esac
13997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13998 printf "%s\n" "$enable_shared" >&6; }
13999
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14001 printf %s "checking whether to build static libraries... " >&6; }
14002 # Make sure either enable_shared or enable_static is yes.
14003 test yes = "$enable_shared" || enable_static=yes
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14005 printf "%s\n" "$enable_static" >&6; }
14006
14007
14008
14009
14010 fi
14011 ac_ext=c
14012 ac_cpp='$CPP $CPPFLAGS'
14013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14016
14017 CC=$lt_save_CC
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033 ac_config_commands="$ac_config_commands libtool"
14034
14035
14036
14037
14038 # Only expand once:
14039
14040
14041
14042
14043
14044
14045
14046
14047 ac_ext=cpp
14048 ac_cpp='$CXXCPP $CPPFLAGS'
14049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14052 if test -z "$CXX"; then
14053 if test -n "$CCC"; then
14054 CXX=$CCC
14055 else
14056 if test -n "$ac_tool_prefix"; then
14057 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14058 do
14059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14062 printf %s "checking for $ac_word... " >&6; }
14063 if test ${ac_cv_prog_CXX+y}
14064 then :
14065 printf %s "(cached) " >&6
14066 else case e in #(
14067 e) if test -n "$CXX"; then
14068 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14069 else
14070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14071 for as_dir in $PATH
14072 do
14073 IFS=$as_save_IFS
14074 case $as_dir in #(((
14075 '') as_dir=./ ;;
14076 */) ;;
14077 *) as_dir=$as_dir/ ;;
14078 esac
14079 for ac_exec_ext in '' $ac_executable_extensions; do
14080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14081 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14083 break 2
14084 fi
14085 done
14086 done
14087 IFS=$as_save_IFS
14088
14089 fi ;;
14090 esac
14091 fi
14092 CXX=$ac_cv_prog_CXX
14093 if test -n "$CXX"; then
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14095 printf "%s\n" "$CXX" >&6; }
14096 else
14097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14098 printf "%s\n" "no" >&6; }
14099 fi
14100
14101
14102 test -n "$CXX" && break
14103 done
14104 fi
14105 if test -z "$CXX"; then
14106 ac_ct_CXX=$CXX
14107 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14108 do
14109 # Extract the first word of "$ac_prog", so it can be a program name with args.
14110 set dummy $ac_prog; ac_word=$2
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14112 printf %s "checking for $ac_word... " >&6; }
14113 if test ${ac_cv_prog_ac_ct_CXX+y}
14114 then :
14115 printf %s "(cached) " >&6
14116 else case e in #(
14117 e) if test -n "$ac_ct_CXX"; then
14118 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14119 else
14120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14121 for as_dir in $PATH
14122 do
14123 IFS=$as_save_IFS
14124 case $as_dir in #(((
14125 '') as_dir=./ ;;
14126 */) ;;
14127 *) as_dir=$as_dir/ ;;
14128 esac
14129 for ac_exec_ext in '' $ac_executable_extensions; do
14130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14131 ac_cv_prog_ac_ct_CXX="$ac_prog"
14132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14133 break 2
14134 fi
14135 done
14136 done
14137 IFS=$as_save_IFS
14138
14139 fi ;;
14140 esac
14141 fi
14142 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14143 if test -n "$ac_ct_CXX"; then
14144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14145 printf "%s\n" "$ac_ct_CXX" >&6; }
14146 else
14147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148 printf "%s\n" "no" >&6; }
14149 fi
14150
14151
14152 test -n "$ac_ct_CXX" && break
14153 done
14154
14155 if test "x$ac_ct_CXX" = x; then
14156 CXX="g++"
14157 else
14158 case $cross_compiling:$ac_tool_warned in
14159 yes:)
14160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14161 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14162 ac_tool_warned=yes ;;
14163 esac
14164 CXX=$ac_ct_CXX
14165 fi
14166 fi
14167
14168 fi
14169 fi
14170 # Provide some information about the compiler.
14171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14172 set X $ac_compile
14173 ac_compiler=$2
14174 for ac_option in --version -v -V -qversion; do
14175 { { ac_try="$ac_compiler $ac_option >&5"
14176 case "(($ac_try" in
14177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178 *) ac_try_echo=$ac_try;;
14179 esac
14180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14181 printf "%s\n" "$ac_try_echo"; } >&5
14182 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14183 ac_status=$?
14184 if test -s conftest.err; then
14185 sed '10a\
14186 ... rest of stderr output deleted ...
14187 10q' conftest.err >conftest.er1
14188 cat conftest.er1 >&5
14189 fi
14190 rm -f conftest.er1 conftest.err
14191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14192 test $ac_status = 0; }
14193 done
14194
14195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14196 printf %s "checking whether the compiler supports GNU C++... " >&6; }
14197 if test ${ac_cv_cxx_compiler_gnu+y}
14198 then :
14199 printf %s "(cached) " >&6
14200 else case e in #(
14201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14203
14204 int
14205 main (void)
14206 {
14207 #ifndef __GNUC__
14208 choke me
14209 #endif
14210
14211 ;
14212 return 0;
14213 }
14214 _ACEOF
14215 if ac_fn_cxx_try_compile "$LINENO"
14216 then :
14217 ac_compiler_gnu=yes
14218 else case e in #(
14219 e) ac_compiler_gnu=no ;;
14220 esac
14221 fi
14222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14223 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14224 ;;
14225 esac
14226 fi
14227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14228 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14229 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14230
14231 if test $ac_compiler_gnu = yes; then
14232 GXX=yes
14233 else
14234 GXX=
14235 fi
14236 ac_test_CXXFLAGS=${CXXFLAGS+y}
14237 ac_save_CXXFLAGS=$CXXFLAGS
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14239 printf %s "checking whether $CXX accepts -g... " >&6; }
14240 if test ${ac_cv_prog_cxx_g+y}
14241 then :
14242 printf %s "(cached) " >&6
14243 else case e in #(
14244 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14245 ac_cxx_werror_flag=yes
14246 ac_cv_prog_cxx_g=no
14247 CXXFLAGS="-g"
14248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14249 /* end confdefs.h. */
14250
14251 int
14252 main (void)
14253 {
14254
14255 ;
14256 return 0;
14257 }
14258 _ACEOF
14259 if ac_fn_cxx_try_compile "$LINENO"
14260 then :
14261 ac_cv_prog_cxx_g=yes
14262 else case e in #(
14263 e) CXXFLAGS=""
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14266
14267 int
14268 main (void)
14269 {
14270
14271 ;
14272 return 0;
14273 }
14274 _ACEOF
14275 if ac_fn_cxx_try_compile "$LINENO"
14276 then :
14277
14278 else case e in #(
14279 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14280 CXXFLAGS="-g"
14281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h. */
14283
14284 int
14285 main (void)
14286 {
14287
14288 ;
14289 return 0;
14290 }
14291 _ACEOF
14292 if ac_fn_cxx_try_compile "$LINENO"
14293 then :
14294 ac_cv_prog_cxx_g=yes
14295 fi
14296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14297 esac
14298 fi
14299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14300 esac
14301 fi
14302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14303 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
14304 esac
14305 fi
14306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14307 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14308 if test $ac_test_CXXFLAGS; then
14309 CXXFLAGS=$ac_save_CXXFLAGS
14310 elif test $ac_cv_prog_cxx_g = yes; then
14311 if test "$GXX" = yes; then
14312 CXXFLAGS="-g -O2"
14313 else
14314 CXXFLAGS="-g"
14315 fi
14316 else
14317 if test "$GXX" = yes; then
14318 CXXFLAGS="-O2"
14319 else
14320 CXXFLAGS=
14321 fi
14322 fi
14323 ac_prog_cxx_stdcxx=no
14324 if test x$ac_prog_cxx_stdcxx = xno
14325 then :
14326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14327 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14328 if test ${ac_cv_prog_cxx_cxx11+y}
14329 then :
14330 printf %s "(cached) " >&6
14331 else case e in #(
14332 e) ac_cv_prog_cxx_cxx11=no
14333 ac_save_CXX=$CXX
14334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14335 /* end confdefs.h. */
14336 $ac_cxx_conftest_cxx11_program
14337 _ACEOF
14338 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14339 do
14340 CXX="$ac_save_CXX $ac_arg"
14341 if ac_fn_cxx_try_compile "$LINENO"
14342 then :
14343 ac_cv_prog_cxx_cxx11=$ac_arg
14344 fi
14345 rm -f core conftest.err conftest.$ac_objext conftest.beam
14346 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14347 done
14348 rm -f conftest.$ac_ext
14349 CXX=$ac_save_CXX ;;
14350 esac
14351 fi
14352
14353 if test "x$ac_cv_prog_cxx_cxx11" = xno
14354 then :
14355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14356 printf "%s\n" "unsupported" >&6; }
14357 else case e in #(
14358 e) if test "x$ac_cv_prog_cxx_cxx11" = x
14359 then :
14360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14361 printf "%s\n" "none needed" >&6; }
14362 else case e in #(
14363 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14364 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14365 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
14366 esac
14367 fi
14368 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14369 ac_prog_cxx_stdcxx=cxx11 ;;
14370 esac
14371 fi
14372 fi
14373 if test x$ac_prog_cxx_stdcxx = xno
14374 then :
14375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14376 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14377 if test ${ac_cv_prog_cxx_cxx98+y}
14378 then :
14379 printf %s "(cached) " >&6
14380 else case e in #(
14381 e) ac_cv_prog_cxx_cxx98=no
14382 ac_save_CXX=$CXX
14383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14384 /* end confdefs.h. */
14385 $ac_cxx_conftest_cxx98_program
14386 _ACEOF
14387 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14388 do
14389 CXX="$ac_save_CXX $ac_arg"
14390 if ac_fn_cxx_try_compile "$LINENO"
14391 then :
14392 ac_cv_prog_cxx_cxx98=$ac_arg
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext conftest.beam
14395 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14396 done
14397 rm -f conftest.$ac_ext
14398 CXX=$ac_save_CXX ;;
14399 esac
14400 fi
14401
14402 if test "x$ac_cv_prog_cxx_cxx98" = xno
14403 then :
14404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14405 printf "%s\n" "unsupported" >&6; }
14406 else case e in #(
14407 e) if test "x$ac_cv_prog_cxx_cxx98" = x
14408 then :
14409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14410 printf "%s\n" "none needed" >&6; }
14411 else case e in #(
14412 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14413 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14414 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
14415 esac
14416 fi
14417 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14418 ac_prog_cxx_stdcxx=cxx98 ;;
14419 esac
14420 fi
14421 fi
14422
14423 ac_ext=c
14424 ac_cpp='$CPP $CPPFLAGS'
14425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14428
14429 depcc="$CXX" am_compiler_list=
14430
14431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
14432 printf %s "checking dependency style of $depcc... " >&6; }
14433 if test ${am_cv_CXX_dependencies_compiler_type+y}
14434 then :
14435 printf %s "(cached) " >&6
14436 else case e in #(
14437 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
14438 # We make a subdir and do the tests there. Otherwise we can end up
14439 # making bogus files that we don't know about and never remove. For
14440 # instance it was reported that on HP-UX the gcc test will end up
14441 # making a dummy file named 'D' -- because '-MD' means "put the output
14442 # in D".
14443 rm -rf conftest.dir
14444 mkdir conftest.dir
14445 # Copy depcomp to subdir because otherwise we won't find it if we're
14446 # using a relative directory.
14447 cp "$am_depcomp" conftest.dir
14448 cd conftest.dir
14449 # We will build objects and dependencies in a subdirectory because
14450 # it helps to detect inapplicable dependency modes. For instance
14451 # both Tru64's cc and ICC support -MD to output dependencies as a
14452 # side effect of compilation, but ICC will put the dependencies in
14453 # the current directory while Tru64 will put them in the object
14454 # directory.
14455 mkdir sub
14456
14457 am_cv_CXX_dependencies_compiler_type=none
14458 if test "$am_compiler_list" = ""; then
14459 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
14460 fi
14461 am__universal=false
14462 case " $depcc " in #(
14463 *\ -arch\ *\ -arch\ *) am__universal=true ;;
14464 esac
14465
14466 for depmode in $am_compiler_list; do
14467 # Setup a source with many dependencies, because some compilers
14468 # like to wrap large dependency lists on column 80 (with \), and
14469 # we should not choose a depcomp mode which is confused by this.
14470 #
14471 # We need to recreate these files for each test, as the compiler may
14472 # overwrite some of them when testing with obscure command lines.
14473 # This happens at least with the AIX C compiler.
14474 : > sub/conftest.c
14475 for i in 1 2 3 4 5 6; do
14476 echo '#include "conftst'$i'.h"' >> sub/conftest.c
14477 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
14478 # Solaris 10 /bin/sh.
14479 echo '/* dummy */' > sub/conftst$i.h
14480 done
14481 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
14482
14483 # We check with '-c' and '-o' for the sake of the "dashmstdout"
14484 # mode. It turns out that the SunPro C++ compiler does not properly
14485 # handle '-M -o', and we need to detect this. Also, some Intel
14486 # versions had trouble with output in subdirs.
14487 am__obj=sub/conftest.${OBJEXT-o}
14488 am__minus_obj="-o $am__obj"
14489 case $depmode in
14490 gcc)
14491 # This depmode causes a compiler race in universal mode.
14492 test "$am__universal" = false || continue
14493 ;;
14494 nosideeffect)
14495 # After this tag, mechanisms are not by side-effect, so they'll
14496 # only be used when explicitly requested.
14497 if test "x$enable_dependency_tracking" = xyes; then
14498 continue
14499 else
14500 break
14501 fi
14502 ;;
14503 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
14504 # This compiler won't grok '-c -o', but also, the minuso test has
14505 # not run yet. These depmodes are late enough in the game, and
14506 # so weak that their functioning should not be impacted.
14507 am__obj=conftest.${OBJEXT-o}
14508 am__minus_obj=
14509 ;;
14510 none) break ;;
14511 esac
14512 if depmode=$depmode \
14513 source=sub/conftest.c object=$am__obj \
14514 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
14515 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
14516 >/dev/null 2>conftest.err &&
14517 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
14518 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
14519 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
14520 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
14521 # icc doesn't choke on unknown options, it will just issue warnings
14522 # or remarks (even with -Werror). So we grep stderr for any message
14523 # that says an option was ignored or not supported.
14524 # When given -MP, icc 7.0 and 7.1 complain thus:
14525 # icc: Command line warning: ignoring option '-M'; no argument required
14526 # The diagnosis changed in icc 8.0:
14527 # icc: Command line remark: option '-MP' not supported
14528 if (grep 'ignoring option' conftest.err ||
14529 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
14530 am_cv_CXX_dependencies_compiler_type=$depmode
14531 break
14532 fi
14533 fi
14534 done
14535
14536 cd ..
14537 rm -rf conftest.dir
14538 else
14539 am_cv_CXX_dependencies_compiler_type=none
14540 fi
14541 ;;
14542 esac
14543 fi
14544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
14545 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
14546 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
14547
14548 if
14549 test "x$enable_dependency_tracking" != xno \
14550 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
14551 am__fastdepCXX_TRUE=
14552 am__fastdepCXX_FALSE='#'
14553 else
14554 am__fastdepCXX_TRUE='#'
14555 am__fastdepCXX_FALSE=
14556 fi
14557
14558
14559
14560
14561 func_stripname_cnf ()
14562 {
14563 case $2 in
14564 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14565 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14566 esac
14567 } # func_stripname_cnf
14568
14569 if test -n "$CXX" && ( test no != "$CXX" &&
14570 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
14571 (test g++ != "$CXX"))); then
14572 ac_ext=cpp
14573 ac_cpp='$CXXCPP $CPPFLAGS'
14574 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14575 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14576 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14578 printf %s "checking how to run the C++ preprocessor... " >&6; }
14579 if test -z "$CXXCPP"; then
14580 if test ${ac_cv_prog_CXXCPP+y}
14581 then :
14582 printf %s "(cached) " >&6
14583 else case e in #(
14584 e) # Double quotes because $CXX needs to be expanded
14585 for CXXCPP in "$CXX -E" cpp /lib/cpp
14586 do
14587 ac_preproc_ok=false
14588 for ac_cxx_preproc_warn_flag in '' yes
14589 do
14590 # Use a header file that comes with gcc, so configuring glibc
14591 # with a fresh cross-compiler works.
14592 # On the NeXT, cc -E runs the code through the compiler's parser,
14593 # not just through cpp. "Syntax error" is here to catch this case.
14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14595 /* end confdefs.h. */
14596 #include <limits.h>
14597 Syntax error
14598 _ACEOF
14599 if ac_fn_cxx_try_cpp "$LINENO"
14600 then :
14601
14602 else case e in #(
14603 e) # Broken: fails on valid input.
14604 continue ;;
14605 esac
14606 fi
14607 rm -f conftest.err conftest.i conftest.$ac_ext
14608
14609 # OK, works on sane cases. Now check whether nonexistent headers
14610 # can be detected and how.
14611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14612 /* end confdefs.h. */
14613 #include <ac_nonexistent.h>
14614 _ACEOF
14615 if ac_fn_cxx_try_cpp "$LINENO"
14616 then :
14617 # Broken: success on invalid input.
14618 continue
14619 else case e in #(
14620 e) # Passes both tests.
14621 ac_preproc_ok=:
14622 break ;;
14623 esac
14624 fi
14625 rm -f conftest.err conftest.i conftest.$ac_ext
14626
14627 done
14628 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14629 rm -f conftest.i conftest.err conftest.$ac_ext
14630 if $ac_preproc_ok
14631 then :
14632 break
14633 fi
14634
14635 done
14636 ac_cv_prog_CXXCPP=$CXXCPP
14637 ;;
14638 esac
14639 fi
14640 CXXCPP=$ac_cv_prog_CXXCPP
14641 else
14642 ac_cv_prog_CXXCPP=$CXXCPP
14643 fi
14644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14645 printf "%s\n" "$CXXCPP" >&6; }
14646 ac_preproc_ok=false
14647 for ac_cxx_preproc_warn_flag in '' yes
14648 do
14649 # Use a header file that comes with gcc, so configuring glibc
14650 # with a fresh cross-compiler works.
14651 # On the NeXT, cc -E runs the code through the compiler's parser,
14652 # not just through cpp. "Syntax error" is here to catch this case.
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14655 #include <limits.h>
14656 Syntax error
14657 _ACEOF
14658 if ac_fn_cxx_try_cpp "$LINENO"
14659 then :
14660
14661 else case e in #(
14662 e) # Broken: fails on valid input.
14663 continue ;;
14664 esac
14665 fi
14666 rm -f conftest.err conftest.i conftest.$ac_ext
14667
14668 # OK, works on sane cases. Now check whether nonexistent headers
14669 # can be detected and how.
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14672 #include <ac_nonexistent.h>
14673 _ACEOF
14674 if ac_fn_cxx_try_cpp "$LINENO"
14675 then :
14676 # Broken: success on invalid input.
14677 continue
14678 else case e in #(
14679 e) # Passes both tests.
14680 ac_preproc_ok=:
14681 break ;;
14682 esac
14683 fi
14684 rm -f conftest.err conftest.i conftest.$ac_ext
14685
14686 done
14687 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14688 rm -f conftest.i conftest.err conftest.$ac_ext
14689 if $ac_preproc_ok
14690 then :
14691
14692 else case e in #(
14693 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14694 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14695 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14696 See 'config.log' for more details" "$LINENO" 5; } ;;
14697 esac
14698 fi
14699
14700 ac_ext=c
14701 ac_cpp='$CPP $CPPFLAGS'
14702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14705
14706 else
14707 _lt_caught_CXX_error=yes
14708 fi
14709
14710 ac_ext=cpp
14711 ac_cpp='$CXXCPP $CPPFLAGS'
14712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14715
14716 archive_cmds_need_lc_CXX=no
14717 allow_undefined_flag_CXX=
14718 always_export_symbols_CXX=no
14719 archive_expsym_cmds_CXX=
14720 compiler_needs_object_CXX=no
14721 export_dynamic_flag_spec_CXX=
14722 hardcode_direct_CXX=no
14723 hardcode_direct_absolute_CXX=no
14724 hardcode_libdir_flag_spec_CXX=
14725 hardcode_libdir_separator_CXX=
14726 hardcode_minus_L_CXX=no
14727 hardcode_shlibpath_var_CXX=unsupported
14728 hardcode_automatic_CXX=no
14729 inherit_rpath_CXX=no
14730 module_cmds_CXX=
14731 module_expsym_cmds_CXX=
14732 link_all_deplibs_CXX=unknown
14733 old_archive_cmds_CXX=$old_archive_cmds
14734 reload_flag_CXX=$reload_flag
14735 reload_cmds_CXX=$reload_cmds
14736 no_undefined_flag_CXX=
14737 whole_archive_flag_spec_CXX=
14738 enable_shared_with_static_runtimes_CXX=no
14739
14740 # Source file extension for C++ test sources.
14741 ac_ext=cpp
14742
14743 # Object file extension for compiled C++ test sources.
14744 objext=o
14745 objext_CXX=$objext
14746
14747 # No sense in running all these tests if we already determined that
14748 # the CXX compiler isn't working. Some variables (like enable_shared)
14749 # are currently assumed to apply to all compilers on this platform,
14750 # and will be corrupted by setting them based on a non-working compiler.
14751 if test yes != "$_lt_caught_CXX_error"; then
14752 # Code to be used in simple compile tests
14753 lt_simple_compile_test_code="int some_variable = 0;"
14754
14755 # Code to be used in simple link tests
14756 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14757
14758 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14759
14760
14761
14762
14763
14764
14765 # If no C compiler was specified, use CC.
14766 LTCC=${LTCC-"$CC"}
14767
14768 # If no C compiler flags were specified, use CFLAGS.
14769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14770
14771 # Allow CC to be a program name with arguments.
14772 compiler=$CC
14773
14774
14775 # save warnings/boilerplate of simple test code
14776 ac_outfile=conftest.$ac_objext
14777 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14779 _lt_compiler_boilerplate=`cat conftest.err`
14780 $RM conftest*
14781
14782 ac_outfile=conftest.$ac_objext
14783 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14785 _lt_linker_boilerplate=`cat conftest.err`
14786 $RM -r conftest*
14787
14788
14789 # Allow CC to be a program name with arguments.
14790 lt_save_CC=$CC
14791 lt_save_CFLAGS=$CFLAGS
14792 lt_save_LD=$LD
14793 lt_save_GCC=$GCC
14794 GCC=$GXX
14795 lt_save_with_gnu_ld=$with_gnu_ld
14796 lt_save_path_LD=$lt_cv_path_LD
14797 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14798 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14799 else
14800 $as_unset lt_cv_prog_gnu_ld
14801 fi
14802 if test -n "${lt_cv_path_LDCXX+set}"; then
14803 lt_cv_path_LD=$lt_cv_path_LDCXX
14804 else
14805 $as_unset lt_cv_path_LD
14806 fi
14807 test -z "${LDCXX+set}" || LD=$LDCXX
14808 CC=${CXX-"c++"}
14809 CFLAGS=$CXXFLAGS
14810 compiler=$CC
14811 compiler_CXX=$CC
14812 func_cc_basename $compiler
14813 cc_basename=$func_cc_basename_result
14814
14815
14816 if test -n "$compiler"; then
14817 # We don't want -fno-exception when compiling C++ code, so set the
14818 # no_builtin_flag separately
14819 if test yes = "$GXX"; then
14820 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14821 else
14822 lt_prog_compiler_no_builtin_flag_CXX=
14823 fi
14824
14825 if test yes = "$GXX"; then
14826 # Set up default GNU C++ configuration
14827
14828
14829
14830 # Check whether --with-gnu-ld was given.
14831 if test ${with_gnu_ld+y}
14832 then :
14833 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
14834 else case e in #(
14835 e) with_gnu_ld=no ;;
14836 esac
14837 fi
14838
14839 ac_prog=ld
14840 if test yes = "$GCC"; then
14841 # Check if gcc -print-prog-name=ld gives a path.
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14843 printf %s "checking for ld used by $CC... " >&6; }
14844 case $host in
14845 *-*-mingw* | *-*-windows*)
14846 # gcc leaves a trailing carriage return, which upsets mingw
14847 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14848 *)
14849 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14850 esac
14851 case $ac_prog in
14852 # Accept absolute paths.
14853 [\\/]* | ?:[\\/]*)
14854 re_direlt='/[^/][^/]*/\.\./'
14855 # Canonicalize the pathname of ld
14856 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14857 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14858 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14859 done
14860 test -z "$LD" && LD=$ac_prog
14861 ;;
14862 "")
14863 # If it fails, then pretend we aren't using GCC.
14864 ac_prog=ld
14865 ;;
14866 *)
14867 # If it is relative, then search for the first ld in PATH.
14868 with_gnu_ld=unknown
14869 ;;
14870 esac
14871 elif test yes = "$with_gnu_ld"; then
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14873 printf %s "checking for GNU ld... " >&6; }
14874 else
14875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14876 printf %s "checking for non-GNU ld... " >&6; }
14877 fi
14878 if test ${lt_cv_path_LD+y}
14879 then :
14880 printf %s "(cached) " >&6
14881 else case e in #(
14882 e) if test -z "$LD"; then
14883 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
14884 for ac_dir in $PATH; do
14885 IFS=$lt_save_ifs
14886 test -z "$ac_dir" && ac_dir=.
14887 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14888 lt_cv_path_LD=$ac_dir/$ac_prog
14889 # Check to see if the program is GNU ld. I'd rather use --version,
14890 # but apparently some variants of GNU ld only accept -v.
14891 # Break only if it was the GNU/non-GNU ld that we prefer.
14892 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14893 *GNU* | *'with BFD'*)
14894 test no != "$with_gnu_ld" && break
14895 ;;
14896 *)
14897 test yes != "$with_gnu_ld" && break
14898 ;;
14899 esac
14900 fi
14901 done
14902 IFS=$lt_save_ifs
14903 else
14904 lt_cv_path_LD=$LD # Let the user override the test with a path.
14905 fi ;;
14906 esac
14907 fi
14908
14909 LD=$lt_cv_path_LD
14910 if test -n "$LD"; then
14911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14912 printf "%s\n" "$LD" >&6; }
14913 else
14914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14915 printf "%s\n" "no" >&6; }
14916 fi
14917 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14919 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14920 if test ${lt_cv_prog_gnu_ld+y}
14921 then :
14922 printf %s "(cached) " >&6
14923 else case e in #(
14924 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
14925 case `$LD -v 2>&1 </dev/null` in
14926 *GNU* | *'with BFD'*)
14927 lt_cv_prog_gnu_ld=yes
14928 ;;
14929 *)
14930 lt_cv_prog_gnu_ld=no
14931 ;;
14932 esac ;;
14933 esac
14934 fi
14935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14936 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
14937 with_gnu_ld=$lt_cv_prog_gnu_ld
14938
14939
14940
14941
14942
14943
14944
14945 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14946 # archiving commands below assume that GNU ld is being used.
14947 if test yes = "$with_gnu_ld"; then
14948 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14949 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
14950
14951 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14952 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14953
14954 # If archive_cmds runs LD, not CC, wlarc should be empty
14955 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14956 # investigate it a little bit more. (MM)
14957 wlarc='$wl'
14958
14959 # ancient GNU ld didn't support --whole-archive et. al.
14960 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14961 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14962 else
14963 whole_archive_flag_spec_CXX=
14964 fi
14965 else
14966 with_gnu_ld=no
14967 wlarc=
14968
14969 # A generic and very simple default shared library creation
14970 # command for GNU C++ for the case where it uses the native
14971 # linker, instead of GNU ld. If possible, this setting should
14972 # overridden to take advantage of the native linker features on
14973 # the platform it is being used on.
14974 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14975 fi
14976
14977 # Commands to make compiler produce verbose output that lists
14978 # what "hidden" libraries, object files and flags are used when
14979 # linking a shared library.
14980 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
14981
14982 else
14983 GXX=no
14984 with_gnu_ld=no
14985 wlarc=
14986 fi
14987
14988 # PORTME: fill in a description of your system's C++ link characteristics
14989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14990 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14991 ld_shlibs_CXX=yes
14992 case $host_os in
14993 aix3*)
14994 # FIXME: insert proper C++ library support
14995 ld_shlibs_CXX=no
14996 ;;
14997 aix[4-9]*)
14998 if test ia64 = "$host_cpu"; then
14999 # On IA64, the linker does run time linking by default, so we don't
15000 # have to do anything special.
15001 aix_use_runtimelinking=no
15002 exp_sym_flag='-Bexport'
15003 no_entry_flag=
15004 else
15005 aix_use_runtimelinking=no
15006
15007 # Test if we are trying to use run time linking or normal
15008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15009 # have runtime linking enabled, and use it for executables.
15010 # For shared libraries, we enable/disable runtime linking
15011 # depending on the kind of the shared library created -
15012 # when "with_aix_soname,aix_use_runtimelinking" is:
15013 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
15014 # "aix,yes" lib.so shared, rtl:yes, for executables
15015 # lib.a static archive
15016 # "both,no" lib.so.V(shr.o) shared, rtl:yes
15017 # lib.a(lib.so.V) shared, rtl:no, for executables
15018 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15019 # lib.a(lib.so.V) shared, rtl:no
15020 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
15021 # lib.a static archive
15022 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15023 for ld_flag in $LDFLAGS; do
15024 case $ld_flag in
15025 *-brtl*)
15026 aix_use_runtimelinking=yes
15027 break
15028 ;;
15029 esac
15030 done
15031 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15032 # With aix-soname=svr4, we create the lib.so.V shared archives only,
15033 # so we don't have lib.a shared libs to link our executables.
15034 # We have to force runtime linking in this case.
15035 aix_use_runtimelinking=yes
15036 LDFLAGS="$LDFLAGS -Wl,-brtl"
15037 fi
15038 ;;
15039 esac
15040
15041 exp_sym_flag='-bexport'
15042 no_entry_flag='-bnoentry'
15043 fi
15044
15045 # When large executables or shared objects are built, AIX ld can
15046 # have problems creating the table of contents. If linking a library
15047 # or program results in "error TOC overflow" add -mminimal-toc to
15048 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15049 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15050
15051 archive_cmds_CXX=''
15052 hardcode_direct_CXX=yes
15053 hardcode_direct_absolute_CXX=yes
15054 hardcode_libdir_separator_CXX=':'
15055 link_all_deplibs_CXX=yes
15056 file_list_spec_CXX='$wl-f,'
15057 case $with_aix_soname,$aix_use_runtimelinking in
15058 aix,*) ;; # no import file
15059 svr4,* | *,yes) # use import file
15060 # The Import File defines what to hardcode.
15061 hardcode_direct_CXX=no
15062 hardcode_direct_absolute_CXX=no
15063 ;;
15064 esac
15065
15066 if test yes = "$GXX"; then
15067 case $host_os in aix4.[012]|aix4.[012].*)
15068 # We only want to do this on AIX 4.2 and lower, the check
15069 # below for broken collect2 doesn't work under 4.3+
15070 collect2name=`$CC -print-prog-name=collect2`
15071 if test -f "$collect2name" &&
15072 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15073 then
15074 # We have reworked collect2
15075 :
15076 else
15077 # We have old collect2
15078 hardcode_direct_CXX=unsupported
15079 # It fails to find uninstalled libraries when the uninstalled
15080 # path is not listed in the libpath. Setting hardcode_minus_L
15081 # to unsupported forces relinking
15082 hardcode_minus_L_CXX=yes
15083 hardcode_libdir_flag_spec_CXX='-L$libdir'
15084 hardcode_libdir_separator_CXX=
15085 fi
15086 esac
15087 shared_flag='-shared'
15088 if test yes = "$aix_use_runtimelinking"; then
15089 shared_flag=$shared_flag' $wl-G'
15090 fi
15091 # Need to ensure runtime linking is disabled for the traditional
15092 # shared library, or the linker may eventually find shared libraries
15093 # /with/ Import File - we do not want to mix them.
15094 shared_flag_aix='-shared'
15095 shared_flag_svr4='-shared $wl-G'
15096 else
15097 # not using gcc
15098 if test ia64 = "$host_cpu"; then
15099 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15100 # chokes on -Wl,-G. The following line is correct:
15101 shared_flag='-G'
15102 else
15103 if test yes = "$aix_use_runtimelinking"; then
15104 shared_flag='$wl-G'
15105 else
15106 shared_flag='$wl-bM:SRE'
15107 fi
15108 shared_flag_aix='$wl-bM:SRE'
15109 shared_flag_svr4='$wl-G'
15110 fi
15111 fi
15112
15113 export_dynamic_flag_spec_CXX='$wl-bexpall'
15114 # It seems that -bexpall does not export symbols beginning with
15115 # underscore (_), so it is better to generate a list of symbols to
15116 # export.
15117 always_export_symbols_CXX=yes
15118 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15119 # Warning - without using the other runtime loading flags (-brtl),
15120 # -berok will link without error, but may produce a broken library.
15121 # The "-G" linker flag allows undefined symbols.
15122 no_undefined_flag_CXX='-bernotok'
15123 # Determine the default libpath from the value encoded in an empty
15124 # executable.
15125 if test set = "${lt_cv_aix_libpath+set}"; then
15126 aix_libpath=$lt_cv_aix_libpath
15127 else
15128 if test ${lt_cv_aix_libpath__CXX+y}
15129 then :
15130 printf %s "(cached) " >&6
15131 else case e in #(
15132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133 /* end confdefs.h. */
15134
15135 int
15136 main (void)
15137 {
15138
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 if ac_fn_cxx_try_link "$LINENO"
15144 then :
15145
15146 lt_aix_libpath_sed='
15147 /Import File Strings/,/^$/ {
15148 /^0/ {
15149 s/^0 *\([^ ]*\) *$/\1/
15150 p
15151 }
15152 }'
15153 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15154 # Check for a 64-bit object if we didn't find anything.
15155 if test -z "$lt_cv_aix_libpath__CXX"; then
15156 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15157 fi
15158 fi
15159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15160 conftest$ac_exeext conftest.$ac_ext
15161 if test -z "$lt_cv_aix_libpath__CXX"; then
15162 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15163 fi
15164 ;;
15165 esac
15166 fi
15167
15168 aix_libpath=$lt_cv_aix_libpath__CXX
15169 fi
15170
15171 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15172
15173 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15174 else
15175 if test ia64 = "$host_cpu"; then
15176 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15177 allow_undefined_flag_CXX="-z nodefs"
15178 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
15179 else
15180 # Determine the default libpath from the value encoded in an
15181 # empty executable.
15182 if test set = "${lt_cv_aix_libpath+set}"; then
15183 aix_libpath=$lt_cv_aix_libpath
15184 else
15185 if test ${lt_cv_aix_libpath__CXX+y}
15186 then :
15187 printf %s "(cached) " >&6
15188 else case e in #(
15189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191
15192 int
15193 main (void)
15194 {
15195
15196 ;
15197 return 0;
15198 }
15199 _ACEOF
15200 if ac_fn_cxx_try_link "$LINENO"
15201 then :
15202
15203 lt_aix_libpath_sed='
15204 /Import File Strings/,/^$/ {
15205 /^0/ {
15206 s/^0 *\([^ ]*\) *$/\1/
15207 p
15208 }
15209 }'
15210 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15211 # Check for a 64-bit object if we didn't find anything.
15212 if test -z "$lt_cv_aix_libpath__CXX"; then
15213 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15214 fi
15215 fi
15216 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15217 conftest$ac_exeext conftest.$ac_ext
15218 if test -z "$lt_cv_aix_libpath__CXX"; then
15219 lt_cv_aix_libpath__CXX=/usr/lib:/lib
15220 fi
15221 ;;
15222 esac
15223 fi
15224
15225 aix_libpath=$lt_cv_aix_libpath__CXX
15226 fi
15227
15228 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15229 # Warning - without using the other run time loading flags,
15230 # -berok will link without error, but may produce a broken library.
15231 no_undefined_flag_CXX=' $wl-bernotok'
15232 allow_undefined_flag_CXX=' $wl-berok'
15233 if test yes = "$with_gnu_ld"; then
15234 # We only use this code for GNU lds that support --whole-archive.
15235 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15236 else
15237 # Exported symbols can be pulled into shared objects from archives
15238 whole_archive_flag_spec_CXX='$convenience'
15239 fi
15240 archive_cmds_need_lc_CXX=yes
15241 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
15242 # -brtl affects multiple linker settings, -berok does not and is overridden later
15243 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
15244 if test svr4 != "$with_aix_soname"; then
15245 # This is similar to how AIX traditionally builds its shared
15246 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
15247 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
15248 fi
15249 if test aix != "$with_aix_soname"; then
15250 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
15251 else
15252 # used by -dlpreopen to get the symbols
15253 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
15254 fi
15255 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
15256 fi
15257 fi
15258 ;;
15259
15260 beos*)
15261 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15262 allow_undefined_flag_CXX=unsupported
15263 # Joseph Beckenbach <[email protected]> says some releases of gcc
15264 # support --undefined. This deserves some investigation. FIXME
15265 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15266 else
15267 ld_shlibs_CXX=no
15268 fi
15269 ;;
15270
15271 chorus*)
15272 case $cc_basename in
15273 *)
15274 # FIXME: insert proper C++ library support
15275 ld_shlibs_CXX=no
15276 ;;
15277 esac
15278 ;;
15279
15280 cygwin* | mingw* | windows* | pw32* | cegcc*)
15281 case $GXX,$cc_basename in
15282 ,cl* | no,cl* | ,icl* | no,icl*)
15283 # Native MSVC or ICC
15284 # hardcode_libdir_flag_spec is actually meaningless, as there is
15285 # no search path for DLLs.
15286 hardcode_libdir_flag_spec_CXX=' '
15287 allow_undefined_flag_CXX=unsupported
15288 always_export_symbols_CXX=yes
15289 file_list_spec_CXX='@'
15290 # Tell ltmain to make .lib files, not .a files.
15291 libext=lib
15292 # Tell ltmain to make .dll files, not .so files.
15293 shrext_cmds=.dll
15294 # FIXME: Setting linknames here is a bad hack.
15295 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
15296 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15297 cp "$export_symbols" "$output_objdir/$soname.def";
15298 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
15299 else
15300 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
15301 fi~
15302 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15303 linknames='
15304 # The linker will not automatically build a static lib if we build a DLL.
15305 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15306 enable_shared_with_static_runtimes_CXX=yes
15307 # Don't use ranlib
15308 old_postinstall_cmds_CXX='chmod 644 $oldlib'
15309 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15310 lt_tool_outputfile="@TOOL_OUTPUT@"~
15311 case $lt_outputfile in
15312 *.exe|*.EXE) ;;
15313 *)
15314 lt_outputfile=$lt_outputfile.exe
15315 lt_tool_outputfile=$lt_tool_outputfile.exe
15316 ;;
15317 esac~
15318 func_to_tool_file "$lt_outputfile"~
15319 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
15320 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15321 $RM "$lt_outputfile.manifest";
15322 fi'
15323 ;;
15324 *)
15325 # g++
15326 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15327 # as there is no search path for DLLs.
15328 hardcode_libdir_flag_spec_CXX='-L$libdir'
15329 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
15330 allow_undefined_flag_CXX=unsupported
15331 always_export_symbols_CXX=no
15332 enable_shared_with_static_runtimes_CXX=yes
15333 file_list_spec_CXX='@'
15334
15335 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15336 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15337 # If the export-symbols file already is a .def file, use it as
15338 # is; otherwise, prepend EXPORTS...
15339 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15340 cp $export_symbols $output_objdir/$soname.def;
15341 else
15342 echo EXPORTS > $output_objdir/$soname.def;
15343 cat $export_symbols >> $output_objdir/$soname.def;
15344 fi~
15345 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15346 else
15347 ld_shlibs_CXX=no
15348 fi
15349 ;;
15350 esac
15351 ;;
15352 darwin* | rhapsody*)
15353
15354
15355 archive_cmds_need_lc_CXX=no
15356 hardcode_direct_CXX=no
15357 hardcode_automatic_CXX=yes
15358 hardcode_shlibpath_var_CXX=unsupported
15359 if test yes = "$lt_cv_ld_force_load"; then
15360 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15361
15362 else
15363 whole_archive_flag_spec_CXX=''
15364 fi
15365 link_all_deplibs_CXX=yes
15366 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
15367 case $cc_basename in
15368 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
15369 *) _lt_dar_can_shared=$GCC ;;
15370 esac
15371 if test yes = "$_lt_dar_can_shared"; then
15372 output_verbose_link_cmd=func_echo_all
15373 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
15374 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
15375 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
15376 module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
15377 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
15378 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
15379 archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
15380 fi
15381
15382 else
15383 ld_shlibs_CXX=no
15384 fi
15385
15386 ;;
15387
15388 os2*)
15389 hardcode_libdir_flag_spec_CXX='-L$libdir'
15390 hardcode_minus_L_CXX=yes
15391 allow_undefined_flag_CXX=unsupported
15392 shrext_cmds=.dll
15393 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15394 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15395 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15396 $ECHO EXPORTS >> $output_objdir/$libname.def~
15397 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15398 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15399 emximp -o $lib $output_objdir/$libname.def'
15400 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15401 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15402 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15403 $ECHO EXPORTS >> $output_objdir/$libname.def~
15404 prefix_cmds="$SED"~
15405 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15406 prefix_cmds="$prefix_cmds -e 1d";
15407 fi~
15408 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15409 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15410 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15411 emximp -o $lib $output_objdir/$libname.def'
15412 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15413 enable_shared_with_static_runtimes_CXX=yes
15414 file_list_spec_CXX='@'
15415 ;;
15416
15417 dgux*)
15418 case $cc_basename in
15419 ec++*)
15420 # FIXME: insert proper C++ library support
15421 ld_shlibs_CXX=no
15422 ;;
15423 ghcx*)
15424 # Green Hills C++ Compiler
15425 # FIXME: insert proper C++ library support
15426 ld_shlibs_CXX=no
15427 ;;
15428 *)
15429 # FIXME: insert proper C++ library support
15430 ld_shlibs_CXX=no
15431 ;;
15432 esac
15433 ;;
15434
15435 freebsd2.*)
15436 # C++ shared libraries reported to be fairly broken before
15437 # switch to ELF
15438 ld_shlibs_CXX=no
15439 ;;
15440
15441 freebsd-elf*)
15442 archive_cmds_need_lc_CXX=no
15443 ;;
15444
15445 freebsd* | dragonfly* | midnightbsd*)
15446 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15447 # conventions
15448 ld_shlibs_CXX=yes
15449 ;;
15450
15451 haiku*)
15452 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15453 link_all_deplibs_CXX=no
15454 ;;
15455
15456 hpux9*)
15457 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15458 hardcode_libdir_separator_CXX=:
15459 export_dynamic_flag_spec_CXX='$wl-E'
15460 hardcode_direct_CXX=yes
15461 hardcode_minus_L_CXX=yes # Not in the search PATH,
15462 # but as the default
15463 # location of the library.
15464
15465 case $cc_basename in
15466 CC*)
15467 # FIXME: insert proper C++ library support
15468 ld_shlibs_CXX=no
15469 ;;
15470 aCC*)
15471 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15472 # Commands to make compiler produce verbose output that lists
15473 # what "hidden" libraries, object files and flags are used when
15474 # linking a shared library.
15475 #
15476 # There doesn't appear to be a way to prevent this compiler from
15477 # explicitly linking system object files so we need to strip them
15478 # from the output so that they don't get included in the library
15479 # dependencies.
15480 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "[-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15481 ;;
15482 *)
15483 if test yes = "$GXX"; then
15484 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
15485 else
15486 # FIXME: insert proper C++ library support
15487 ld_shlibs_CXX=no
15488 fi
15489 ;;
15490 esac
15491 ;;
15492
15493 hpux10*|hpux11*)
15494 if test no = "$with_gnu_ld"; then
15495 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
15496 hardcode_libdir_separator_CXX=:
15497
15498 case $host_cpu in
15499 hppa*64*|ia64*)
15500 ;;
15501 *)
15502 export_dynamic_flag_spec_CXX='$wl-E'
15503 ;;
15504 esac
15505 fi
15506 case $host_cpu in
15507 hppa*64*|ia64*)
15508 hardcode_direct_CXX=no
15509 hardcode_shlibpath_var_CXX=no
15510 ;;
15511 *)
15512 hardcode_direct_CXX=yes
15513 hardcode_direct_absolute_CXX=yes
15514 hardcode_minus_L_CXX=yes # Not in the search PATH,
15515 # but as the default
15516 # location of the library.
15517 ;;
15518 esac
15519
15520 case $cc_basename in
15521 CC*)
15522 # FIXME: insert proper C++ library support
15523 ld_shlibs_CXX=no
15524 ;;
15525 aCC*)
15526 case $host_cpu in
15527 hppa*64*)
15528 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15529 ;;
15530 ia64*)
15531 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15532 ;;
15533 *)
15534 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15535 ;;
15536 esac
15537 # Commands to make compiler produce verbose output that lists
15538 # what "hidden" libraries, object files and flags are used when
15539 # linking a shared library.
15540 #
15541 # There doesn't appear to be a way to prevent this compiler from
15542 # explicitly linking system object files so we need to strip them
15543 # from the output so that they don't get included in the library
15544 # dependencies.
15545 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " [-]L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15546 ;;
15547 *)
15548 if test yes = "$GXX"; then
15549 if test no = "$with_gnu_ld"; then
15550 case $host_cpu in
15551 hppa*64*)
15552 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15553 ;;
15554 ia64*)
15555 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15556 ;;
15557 *)
15558 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15559 ;;
15560 esac
15561 fi
15562 else
15563 # FIXME: insert proper C++ library support
15564 ld_shlibs_CXX=no
15565 fi
15566 ;;
15567 esac
15568 ;;
15569
15570 interix[3-9]*)
15571 hardcode_direct_CXX=no
15572 hardcode_shlibpath_var_CXX=no
15573 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15574 export_dynamic_flag_spec_CXX='$wl-E'
15575 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15576 # Instead, shared libraries are loaded at an image base (0x10000000 by
15577 # default) and relocated if they conflict, which is a slow very memory
15578 # consuming and fragmenting process. To avoid this, we pick a random,
15579 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15580 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15581 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15582 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15583 ;;
15584 irix5* | irix6*)
15585 case $cc_basename in
15586 CC*)
15587 # SGI C++
15588 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15589
15590 # Archives containing C++ object files must be created using
15591 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15592 # necessary to make sure instantiated templates are included
15593 # in the archive.
15594 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15595 ;;
15596 *)
15597 if test yes = "$GXX"; then
15598 if test no = "$with_gnu_ld"; then
15599 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15600 else
15601 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
15602 fi
15603 fi
15604 link_all_deplibs_CXX=yes
15605 ;;
15606 esac
15607 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15608 hardcode_libdir_separator_CXX=:
15609 inherit_rpath_CXX=yes
15610 ;;
15611
15612 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15613 case $cc_basename in
15614 KCC*)
15615 # Kuck and Associates, Inc. (KAI) C++ Compiler
15616
15617 # KCC will only create a shared library if the output file
15618 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15619 # to its proper name (with version) after linking.
15620 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15621 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
15622 # Commands to make compiler produce verbose output that lists
15623 # what "hidden" libraries, object files and flags are used when
15624 # linking a shared library.
15625 #
15626 # There doesn't appear to be a way to prevent this compiler from
15627 # explicitly linking system object files so we need to strip them
15628 # from the output so that they don't get included in the library
15629 # dependencies.
15630 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15631
15632 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15633 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15634
15635 # Archives containing C++ object files must be created using
15636 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15637 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15638 ;;
15639 icpc* | ecpc* )
15640 # Intel C++
15641 with_gnu_ld=yes
15642 # version 8.0 and above of icpc choke on multiply defined symbols
15643 # if we add $predep_objects and $postdep_objects, however 7.1 and
15644 # earlier do not add the objects themselves.
15645 case `$CC -V 2>&1` in
15646 *"Version 7."*)
15647 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15648 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15649 ;;
15650 *) # Version 8.0 or newer
15651 tmp_idyn=
15652 case $host_cpu in
15653 ia64*) tmp_idyn=' -i_dynamic';;
15654 esac
15655 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15656 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15657 ;;
15658 esac
15659 archive_cmds_need_lc_CXX=no
15660 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15661 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15662 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
15663 ;;
15664 pgCC* | pgcpp*)
15665 # Portland Group C++ compiler
15666 case `$CC -V` in
15667 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15668 prelink_cmds_CXX='tpldir=Template.dir~
15669 rm -rf $tpldir~
15670 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15671 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15672 old_archive_cmds_CXX='tpldir=Template.dir~
15673 rm -rf $tpldir~
15674 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15675 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15676 $RANLIB $oldlib'
15677 archive_cmds_CXX='tpldir=Template.dir~
15678 rm -rf $tpldir~
15679 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15680 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15681 archive_expsym_cmds_CXX='tpldir=Template.dir~
15682 rm -rf $tpldir~
15683 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15684 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15685 ;;
15686 *) # Version 6 and above use weak symbols
15687 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15688 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15689 ;;
15690 esac
15691
15692 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
15693 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15694 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15695 ;;
15696 cxx*)
15697 # Compaq C++
15698 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15699 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols'
15700
15701 runpath_var=LD_RUN_PATH
15702 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15703 hardcode_libdir_separator_CXX=:
15704
15705 # Commands to make compiler produce verbose output that lists
15706 # what "hidden" libraries, object files and flags are used when
15707 # linking a shared library.
15708 #
15709 # There doesn't appear to be a way to prevent this compiler from
15710 # explicitly linking system object files so we need to strip them
15711 # from the output so that they don't get included in the library
15712 # dependencies.
15713 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
15714 ;;
15715 xl* | mpixl* | bgxl*)
15716 # IBM XL 8.0 on PPC, with GNU ld
15717 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15718 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15719 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
15720 if test yes = "$supports_anon_versioning"; then
15721 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15722 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15723 echo "local: *; };" >> $output_objdir/$libname.ver~
15724 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
15725 fi
15726 ;;
15727 *)
15728 case `$CC -V 2>&1 | $SED 5q` in
15729 *Sun\ C*)
15730 # Sun C++ 5.9
15731 no_undefined_flag_CXX=' -zdefs'
15732 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15733 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
15734 hardcode_libdir_flag_spec_CXX='-R$libdir'
15735 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
15736 compiler_needs_object_CXX=yes
15737
15738 # Not sure whether something based on
15739 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15740 # would be better.
15741 output_verbose_link_cmd='func_echo_all'
15742
15743 # Archives containing C++ object files must be created using
15744 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15745 # necessary to make sure instantiated templates are included
15746 # in the archive.
15747 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15748 ;;
15749 esac
15750 ;;
15751 esac
15752 ;;
15753
15754 lynxos*)
15755 # FIXME: insert proper C++ library support
15756 ld_shlibs_CXX=no
15757 ;;
15758
15759 m88k*)
15760 # FIXME: insert proper C++ library support
15761 ld_shlibs_CXX=no
15762 ;;
15763
15764 mvs*)
15765 case $cc_basename in
15766 cxx*)
15767 # FIXME: insert proper C++ library support
15768 ld_shlibs_CXX=no
15769 ;;
15770 *)
15771 # FIXME: insert proper C++ library support
15772 ld_shlibs_CXX=no
15773 ;;
15774 esac
15775 ;;
15776
15777 *-mlibc)
15778 ld_shlibs_CXX=yes
15779 ;;
15780
15781 netbsd*)
15782 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15783 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15784 wlarc=
15785 hardcode_libdir_flag_spec_CXX='-R$libdir'
15786 hardcode_direct_CXX=yes
15787 hardcode_shlibpath_var_CXX=no
15788 fi
15789 # Workaround some broken pre-1.5 toolchains
15790 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15791 ;;
15792
15793 *nto* | *qnx*)
15794 ld_shlibs_CXX=yes
15795 ;;
15796
15797 openbsd*)
15798 if test -f /usr/libexec/ld.so; then
15799 hardcode_direct_CXX=yes
15800 hardcode_shlibpath_var_CXX=no
15801 hardcode_direct_absolute_CXX=yes
15802 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15803 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
15805 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
15806 export_dynamic_flag_spec_CXX='$wl-E'
15807 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15808 fi
15809 output_verbose_link_cmd=func_echo_all
15810 else
15811 ld_shlibs_CXX=no
15812 fi
15813 ;;
15814
15815 osf3* | osf4* | osf5*)
15816 case $cc_basename in
15817 KCC*)
15818 # Kuck and Associates, Inc. (KAI) C++ Compiler
15819
15820 # KCC will only create a shared library if the output file
15821 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15822 # to its proper name (with version) after linking.
15823 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15824
15825 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
15826 hardcode_libdir_separator_CXX=:
15827
15828 # Archives containing C++ object files must be created using
15829 # the KAI C++ compiler.
15830 case $host in
15831 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15832 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15833 esac
15834 ;;
15835 RCC*)
15836 # Rational C++ 2.4.1
15837 # FIXME: insert proper C++ library support
15838 ld_shlibs_CXX=no
15839 ;;
15840 cxx*)
15841 case $host in
15842 osf3*)
15843 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15844 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15845 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15846 ;;
15847 *)
15848 allow_undefined_flag_CXX=' -expect_unresolved \*'
15849 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
15850 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15851 echo "-hidden">> $lib.exp~
15852 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
15853 $RM $lib.exp'
15854 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15855 ;;
15856 esac
15857
15858 hardcode_libdir_separator_CXX=:
15859
15860 # Commands to make compiler produce verbose output that lists
15861 # what "hidden" libraries, object files and flags are used when
15862 # linking a shared library.
15863 #
15864 # There doesn't appear to be a way to prevent this compiler from
15865 # explicitly linking system object files so we need to strip them
15866 # from the output so that they don't get included in the library
15867 # dependencies.
15868 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15869 ;;
15870 *)
15871 if test yes,no = "$GXX,$with_gnu_ld"; then
15872 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
15873 case $host in
15874 osf3*)
15875 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15876 ;;
15877 *)
15878 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
15879 ;;
15880 esac
15881
15882 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15883 hardcode_libdir_separator_CXX=:
15884
15885 # Commands to make compiler produce verbose output that lists
15886 # what "hidden" libraries, object files and flags are used when
15887 # linking a shared library.
15888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15889
15890 else
15891 # FIXME: insert proper C++ library support
15892 ld_shlibs_CXX=no
15893 fi
15894 ;;
15895 esac
15896 ;;
15897
15898 psos*)
15899 # FIXME: insert proper C++ library support
15900 ld_shlibs_CXX=no
15901 ;;
15902
15903 serenity*)
15904 ;;
15905
15906 sunos4*)
15907 case $cc_basename in
15908 CC*)
15909 # Sun C++ 4.x
15910 # FIXME: insert proper C++ library support
15911 ld_shlibs_CXX=no
15912 ;;
15913 lcc*)
15914 # Lucid
15915 # FIXME: insert proper C++ library support
15916 ld_shlibs_CXX=no
15917 ;;
15918 *)
15919 # FIXME: insert proper C++ library support
15920 ld_shlibs_CXX=no
15921 ;;
15922 esac
15923 ;;
15924
15925 solaris*)
15926 case $cc_basename in
15927 CC* | sunCC*)
15928 # Sun C++ 4.2, 5.x and Centerline C++
15929 archive_cmds_need_lc_CXX=yes
15930 no_undefined_flag_CXX=' -zdefs'
15931 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15932 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15933 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15934
15935 hardcode_libdir_flag_spec_CXX='-R$libdir'
15936 hardcode_shlibpath_var_CXX=no
15937 case $host_os in
15938 solaris2.[0-5] | solaris2.[0-5].*) ;;
15939 *)
15940 # The compiler driver will combine and reorder linker options,
15941 # but understands '-z linker_flag'.
15942 # Supported since Solaris 2.6 (maybe 2.5.1?)
15943 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15944 ;;
15945 esac
15946 link_all_deplibs_CXX=yes
15947
15948 output_verbose_link_cmd='func_echo_all'
15949
15950 # Archives containing C++ object files must be created using
15951 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15952 # necessary to make sure instantiated templates are included
15953 # in the archive.
15954 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15955 ;;
15956 gcx*)
15957 # Green Hills C++ Compiler
15958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15959
15960 # The C++ compiler must be used to create the archive.
15961 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15962 ;;
15963 *)
15964 # GNU C++ compiler with Solaris linker
15965 if test yes,no = "$GXX,$with_gnu_ld"; then
15966 no_undefined_flag_CXX=' $wl-z ${wl}defs'
15967 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15968 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15969 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15970 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15971
15972 # Commands to make compiler produce verbose output that lists
15973 # what "hidden" libraries, object files and flags are used when
15974 # linking a shared library.
15975 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15976 else
15977 # g++ 2.7 appears to require '-G' NOT '-shared' on this
15978 # platform.
15979 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
15980 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15981 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15982
15983 # Commands to make compiler produce verbose output that lists
15984 # what "hidden" libraries, object files and flags are used when
15985 # linking a shared library.
15986 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
15987 fi
15988
15989 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
15990 case $host_os in
15991 solaris2.[0-5] | solaris2.[0-5].*) ;;
15992 *)
15993 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
15994 ;;
15995 esac
15996 fi
15997 ;;
15998 esac
15999 ;;
16000
16001 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16002 no_undefined_flag_CXX='$wl-z,text'
16003 archive_cmds_need_lc_CXX=no
16004 hardcode_shlibpath_var_CXX=no
16005 runpath_var='LD_RUN_PATH'
16006
16007 case $cc_basename in
16008 CC*)
16009 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16010 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16011 ;;
16012 *)
16013 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16015 ;;
16016 esac
16017 ;;
16018
16019 sysv5* | sco3.2v5* | sco5v6*)
16020 # Note: We CANNOT use -z defs as we might desire, because we do not
16021 # link with -lc, and that would cause any symbols used from libc to
16022 # always be unresolved, which means just about no library would
16023 # ever link correctly. If we're not using GNU ld we use -z text
16024 # though, which does catch some bad symbols but isn't as heavy-handed
16025 # as -z defs.
16026 no_undefined_flag_CXX='$wl-z,text'
16027 allow_undefined_flag_CXX='$wl-z,nodefs'
16028 archive_cmds_need_lc_CXX=no
16029 hardcode_shlibpath_var_CXX=no
16030 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16031 hardcode_libdir_separator_CXX=':'
16032 link_all_deplibs_CXX=yes
16033 export_dynamic_flag_spec_CXX='$wl-Bexport'
16034 runpath_var='LD_RUN_PATH'
16035
16036 case $cc_basename in
16037 CC*)
16038 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16039 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16040 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16041 '"$old_archive_cmds_CXX"
16042 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16043 '"$reload_cmds_CXX"
16044 ;;
16045 *)
16046 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16047 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16048 ;;
16049 esac
16050 ;;
16051
16052 tandem*)
16053 case $cc_basename in
16054 NCC*)
16055 # NonStop-UX NCC 3.20
16056 # FIXME: insert proper C++ library support
16057 ld_shlibs_CXX=no
16058 ;;
16059 *)
16060 # FIXME: insert proper C++ library support
16061 ld_shlibs_CXX=no
16062 ;;
16063 esac
16064 ;;
16065
16066 vxworks*)
16067 # FIXME: insert proper C++ library support
16068 ld_shlibs_CXX=no
16069 ;;
16070
16071 *)
16072 # FIXME: insert proper C++ library support
16073 ld_shlibs_CXX=no
16074 ;;
16075 esac
16076
16077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16078 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16079 test no = "$ld_shlibs_CXX" && can_build_shared=no
16080
16081 GCC_CXX=$GXX
16082 LD_CXX=$LD
16083
16084 ## CAVEAT EMPTOR:
16085 ## There is no encapsulation within the following macros, do not change
16086 ## the running order or otherwise move them around unless you know exactly
16087 ## what you are doing...
16088 # Dependencies to place before and after the object being linked:
16089 predep_objects_CXX=
16090 postdep_objects_CXX=
16091 predeps_CXX=
16092 postdeps_CXX=
16093 compiler_lib_search_path_CXX=
16094
16095 cat > conftest.$ac_ext <<_LT_EOF
16096 class Foo
16097 {
16098 public:
16099 Foo (void) { a = 0; }
16100 private:
16101 int a;
16102 };
16103 _LT_EOF
16104
16105
16106 _lt_libdeps_save_CFLAGS=$CFLAGS
16107 case "$CC $CFLAGS " in #(
16108 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16109 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16110 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16111 esac
16112
16113 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16114 (eval $ac_compile) 2>&5
16115 ac_status=$?
16116 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16117 test $ac_status = 0; }; then
16118 # Parse the compiler output and extract the necessary
16119 # objects, libraries and library flags.
16120
16121 # Sentinel used to keep track of whether or not we are before
16122 # the conftest object file.
16123 pre_test_object_deps_done=no
16124
16125 for p in `eval "$output_verbose_link_cmd"`; do
16126 case $prev$p in
16127
16128 -L* | -R* | -l*)
16129 # Some compilers place space between "-{L,R,l}" and the path.
16130 # Remove the space.
16131 if test x-L = x"$p" ||
16132 test x-R = x"$p" ||
16133 test x-l = x"$p"; then
16134 prev=$p
16135 continue
16136 fi
16137
16138 # Expand the sysroot to ease extracting the directories later.
16139 if test -z "$prev"; then
16140 case $p in
16141 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16142 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16143 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16144 esac
16145 fi
16146 case $p in
16147 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16148 esac
16149 if test no = "$pre_test_object_deps_done"; then
16150 case $prev in
16151 -L | -R)
16152 # Internal compiler library paths should come after those
16153 # provided the user. The postdeps already come after the
16154 # user supplied libs so there is no need to process them.
16155 if test -z "$compiler_lib_search_path_CXX"; then
16156 compiler_lib_search_path_CXX=$prev$p
16157 else
16158 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16159 fi
16160 ;;
16161 # The "-l" case would never come before the object being
16162 # linked, so don't bother handling this case.
16163 esac
16164 else
16165 if test -z "$postdeps_CXX"; then
16166 postdeps_CXX=$prev$p
16167 else
16168 postdeps_CXX="${postdeps_CXX} $prev$p"
16169 fi
16170 fi
16171 prev=
16172 ;;
16173
16174 *.lto.$objext) ;; # Ignore GCC LTO objects
16175 *.$objext)
16176 # This assumes that the test object file only shows up
16177 # once in the compiler output.
16178 if test "$p" = "conftest.$objext"; then
16179 pre_test_object_deps_done=yes
16180 continue
16181 fi
16182
16183 if test no = "$pre_test_object_deps_done"; then
16184 if test -z "$predep_objects_CXX"; then
16185 predep_objects_CXX=$p
16186 else
16187 predep_objects_CXX="$predep_objects_CXX $p"
16188 fi
16189 else
16190 if test -z "$postdep_objects_CXX"; then
16191 postdep_objects_CXX=$p
16192 else
16193 postdep_objects_CXX="$postdep_objects_CXX $p"
16194 fi
16195 fi
16196 ;;
16197
16198 *) ;; # Ignore the rest.
16199
16200 esac
16201 done
16202
16203 # Clean up.
16204 rm -f a.out a.exe
16205 else
16206 echo "libtool.m4: error: problem compiling CXX test program"
16207 fi
16208
16209 $RM -f confest.$objext
16210 CFLAGS=$_lt_libdeps_save_CFLAGS
16211
16212 # PORTME: override above test on systems where it is broken
16213 case $host_os in
16214 interix[3-9]*)
16215 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16216 # hack all around it, let's just trust "g++" to DTRT.
16217 predep_objects_CXX=
16218 postdep_objects_CXX=
16219 postdeps_CXX=
16220 ;;
16221 esac
16222
16223
16224 case " $postdeps_CXX " in
16225 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16226 esac
16227 compiler_lib_search_dirs_CXX=
16228 if test -n "${compiler_lib_search_path_CXX}"; then
16229 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16230 fi
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262 lt_prog_compiler_wl_CXX=
16263 lt_prog_compiler_pic_CXX=
16264 lt_prog_compiler_static_CXX=
16265
16266
16267 # C++ specific cases for pic, static, wl, etc.
16268 if test yes = "$GXX"; then
16269 lt_prog_compiler_wl_CXX='-Wl,'
16270 lt_prog_compiler_static_CXX='-static'
16271
16272 case $host_os in
16273 aix*)
16274 # All AIX code is PIC.
16275 if test ia64 = "$host_cpu"; then
16276 # AIX 5 now supports IA64 processor
16277 lt_prog_compiler_static_CXX='-Bstatic'
16278 fi
16279 lt_prog_compiler_pic_CXX='-fPIC'
16280 ;;
16281
16282 amigaos*)
16283 case $host_cpu in
16284 powerpc)
16285 # see comment about AmigaOS4 .so support
16286 lt_prog_compiler_pic_CXX='-fPIC'
16287 ;;
16288 m68k)
16289 # FIXME: we need at least 68020 code to build shared libraries, but
16290 # adding the '-m68020' flag to GCC prevents building anything better,
16291 # like '-m68040'.
16292 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16293 ;;
16294 esac
16295 ;;
16296
16297 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16298 # PIC is the default for these OSes.
16299 ;;
16300 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16301 # This hack is so that the source file can tell whether it is being
16302 # built for inclusion in a dll (and should export symbols for example).
16303 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16304 # (--disable-auto-import) libraries
16305 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16306 case $host_os in
16307 os2*)
16308 lt_prog_compiler_static_CXX='$wl-static'
16309 ;;
16310 esac
16311 ;;
16312 darwin* | rhapsody*)
16313 # PIC is the default on this platform
16314 # Common symbols not allowed in MH_DYLIB files
16315 lt_prog_compiler_pic_CXX='-fno-common'
16316 ;;
16317 *djgpp*)
16318 # DJGPP does not support shared libraries at all
16319 lt_prog_compiler_pic_CXX=
16320 ;;
16321 haiku*)
16322 # PIC is the default for Haiku.
16323 # The "-static" flag exists, but is broken.
16324 lt_prog_compiler_static_CXX=
16325 ;;
16326 interix[3-9]*)
16327 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16328 # Instead, we relocate shared libraries at runtime.
16329 ;;
16330 sysv4*MP*)
16331 if test -d /usr/nec; then
16332 lt_prog_compiler_pic_CXX=-Kconform_pic
16333 fi
16334 ;;
16335 hpux*)
16336 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16337 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16338 # sets the default TLS model and affects inlining.
16339 case $host_cpu in
16340 hppa*64*)
16341 ;;
16342 *)
16343 lt_prog_compiler_pic_CXX='-fPIC'
16344 ;;
16345 esac
16346 ;;
16347 *qnx* | *nto*)
16348 # QNX uses GNU C++, but need to define -shared option too, otherwise
16349 # it will coredump.
16350 lt_prog_compiler_pic_CXX='-fPIC -shared'
16351 ;;
16352 *)
16353 lt_prog_compiler_pic_CXX='-fPIC'
16354 ;;
16355 esac
16356 else
16357 case $host_os in
16358 aix[4-9]*)
16359 # All AIX code is PIC.
16360 if test ia64 = "$host_cpu"; then
16361 # AIX 5 now supports IA64 processor
16362 lt_prog_compiler_static_CXX='-Bstatic'
16363 else
16364 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16365 fi
16366 ;;
16367 chorus*)
16368 case $cc_basename in
16369 cxch68*)
16370 # Green Hills C++ Compiler
16371 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16372 ;;
16373 esac
16374 ;;
16375 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
16376 # This hack is so that the source file can tell whether it is being
16377 # built for inclusion in a dll (and should export symbols for example).
16378 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16379 ;;
16380 dgux*)
16381 case $cc_basename in
16382 ec++*)
16383 lt_prog_compiler_pic_CXX='-KPIC'
16384 ;;
16385 ghcx*)
16386 # Green Hills C++ Compiler
16387 lt_prog_compiler_pic_CXX='-pic'
16388 ;;
16389 *)
16390 ;;
16391 esac
16392 ;;
16393 freebsd* | dragonfly* | midnightbsd*)
16394 # FreeBSD uses GNU C++
16395 ;;
16396 hpux9* | hpux10* | hpux11*)
16397 case $cc_basename in
16398 CC*)
16399 lt_prog_compiler_wl_CXX='-Wl,'
16400 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16401 if test ia64 != "$host_cpu"; then
16402 lt_prog_compiler_pic_CXX='+Z'
16403 fi
16404 ;;
16405 aCC*)
16406 lt_prog_compiler_wl_CXX='-Wl,'
16407 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
16408 case $host_cpu in
16409 hppa*64*|ia64*)
16410 # +Z the default
16411 ;;
16412 *)
16413 lt_prog_compiler_pic_CXX='+Z'
16414 ;;
16415 esac
16416 ;;
16417 *)
16418 ;;
16419 esac
16420 ;;
16421 interix*)
16422 # This is c89, which is MS Visual C++ (no shared libs)
16423 # Anyone wants to do a port?
16424 ;;
16425 irix5* | irix6* | nonstopux*)
16426 case $cc_basename in
16427 CC*)
16428 lt_prog_compiler_wl_CXX='-Wl,'
16429 lt_prog_compiler_static_CXX='-non_shared'
16430 # CC pic flag -KPIC is the default.
16431 ;;
16432 *)
16433 ;;
16434 esac
16435 ;;
16436 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16437 case $cc_basename in
16438 KCC*)
16439 # KAI C++ Compiler
16440 lt_prog_compiler_wl_CXX='--backend -Wl,'
16441 lt_prog_compiler_pic_CXX='-fPIC'
16442 ;;
16443 ecpc* )
16444 # old Intel C++ for x86_64, which still supported -KPIC.
16445 lt_prog_compiler_wl_CXX='-Wl,'
16446 lt_prog_compiler_pic_CXX='-KPIC'
16447 lt_prog_compiler_static_CXX='-static'
16448 ;;
16449 icpc* )
16450 # Intel C++, used to be incompatible with GCC.
16451 # ICC 10 doesn't accept -KPIC any more.
16452 lt_prog_compiler_wl_CXX='-Wl,'
16453 lt_prog_compiler_pic_CXX='-fPIC'
16454 lt_prog_compiler_static_CXX='-static'
16455 ;;
16456 pgCC* | pgcpp*)
16457 # Portland Group C++ compiler
16458 lt_prog_compiler_wl_CXX='-Wl,'
16459 lt_prog_compiler_pic_CXX='-fpic'
16460 lt_prog_compiler_static_CXX='-Bstatic'
16461 ;;
16462 cxx*)
16463 # Compaq C++
16464 # Make sure the PIC flag is empty. It appears that all Alpha
16465 # Linux and Compaq Tru64 Unix objects are PIC.
16466 lt_prog_compiler_pic_CXX=
16467 lt_prog_compiler_static_CXX='-non_shared'
16468 ;;
16469 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16470 # IBM XL 8.0, 9.0 on PPC and BlueGene
16471 lt_prog_compiler_wl_CXX='-Wl,'
16472 lt_prog_compiler_pic_CXX='-qpic'
16473 lt_prog_compiler_static_CXX='-qstaticlink'
16474 ;;
16475 *)
16476 case `$CC -V 2>&1 | $SED 5q` in
16477 *Sun\ C*)
16478 # Sun C++ 5.9
16479 lt_prog_compiler_pic_CXX='-KPIC'
16480 lt_prog_compiler_static_CXX='-Bstatic'
16481 lt_prog_compiler_wl_CXX='-Qoption ld '
16482 ;;
16483 esac
16484 ;;
16485 esac
16486 ;;
16487 lynxos*)
16488 ;;
16489 m88k*)
16490 ;;
16491 mvs*)
16492 case $cc_basename in
16493 cxx*)
16494 lt_prog_compiler_pic_CXX='-W c,exportall'
16495 ;;
16496 *)
16497 ;;
16498 esac
16499 ;;
16500 netbsd* | netbsdelf*-gnu)
16501 ;;
16502 *-mlibc)
16503 ;;
16504 *qnx* | *nto*)
16505 # QNX uses GNU C++, but need to define -shared option too, otherwise
16506 # it will coredump.
16507 lt_prog_compiler_pic_CXX='-fPIC -shared'
16508 ;;
16509 osf3* | osf4* | osf5*)
16510 case $cc_basename in
16511 KCC*)
16512 lt_prog_compiler_wl_CXX='--backend -Wl,'
16513 ;;
16514 RCC*)
16515 # Rational C++ 2.4.1
16516 lt_prog_compiler_pic_CXX='-pic'
16517 ;;
16518 cxx*)
16519 # Digital/Compaq C++
16520 lt_prog_compiler_wl_CXX='-Wl,'
16521 # Make sure the PIC flag is empty. It appears that all Alpha
16522 # Linux and Compaq Tru64 Unix objects are PIC.
16523 lt_prog_compiler_pic_CXX=
16524 lt_prog_compiler_static_CXX='-non_shared'
16525 ;;
16526 *)
16527 ;;
16528 esac
16529 ;;
16530 psos*)
16531 ;;
16532 serenity*)
16533 ;;
16534 solaris*)
16535 case $cc_basename in
16536 CC* | sunCC*)
16537 # Sun C++ 4.2, 5.x and Centerline C++
16538 lt_prog_compiler_pic_CXX='-KPIC'
16539 lt_prog_compiler_static_CXX='-Bstatic'
16540 lt_prog_compiler_wl_CXX='-Qoption ld '
16541 ;;
16542 gcx*)
16543 # Green Hills C++ Compiler
16544 lt_prog_compiler_pic_CXX='-PIC'
16545 ;;
16546 *)
16547 ;;
16548 esac
16549 ;;
16550 sunos4*)
16551 case $cc_basename in
16552 CC*)
16553 # Sun C++ 4.x
16554 lt_prog_compiler_pic_CXX='-pic'
16555 lt_prog_compiler_static_CXX='-Bstatic'
16556 ;;
16557 lcc*)
16558 # Lucid
16559 lt_prog_compiler_pic_CXX='-pic'
16560 ;;
16561 *)
16562 ;;
16563 esac
16564 ;;
16565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16566 case $cc_basename in
16567 CC*)
16568 lt_prog_compiler_wl_CXX='-Wl,'
16569 lt_prog_compiler_pic_CXX='-KPIC'
16570 lt_prog_compiler_static_CXX='-Bstatic'
16571 ;;
16572 esac
16573 ;;
16574 tandem*)
16575 case $cc_basename in
16576 NCC*)
16577 # NonStop-UX NCC 3.20
16578 lt_prog_compiler_pic_CXX='-KPIC'
16579 ;;
16580 *)
16581 ;;
16582 esac
16583 ;;
16584 vxworks*)
16585 ;;
16586 *)
16587 lt_prog_compiler_can_build_shared_CXX=no
16588 ;;
16589 esac
16590 fi
16591
16592 case $host_os in
16593 # For platforms that do not support PIC, -DPIC is meaningless:
16594 *djgpp*)
16595 lt_prog_compiler_pic_CXX=
16596 ;;
16597 *)
16598 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16599 ;;
16600 esac
16601
16602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16603 printf %s "checking for $compiler option to produce PIC... " >&6; }
16604 if test ${lt_cv_prog_compiler_pic_CXX+y}
16605 then :
16606 printf %s "(cached) " >&6
16607 else case e in #(
16608 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
16609 esac
16610 fi
16611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
16612 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
16613 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
16614
16615 #
16616 # Check to make sure the PIC flag actually works.
16617 #
16618 if test -n "$lt_prog_compiler_pic_CXX"; then
16619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16620 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16621 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
16622 then :
16623 printf %s "(cached) " >&6
16624 else case e in #(
16625 e) lt_cv_prog_compiler_pic_works_CXX=no
16626 ac_outfile=conftest.$ac_objext
16627 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16628 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
16629 # Insert the option either (1) after the last *FLAGS variable, or
16630 # (2) before a word containing "conftest.", or (3) at the end.
16631 # Note that $ac_compile itself does not contain backslashes and begins
16632 # with a dollar sign (not a hyphen), so the echo should work correctly.
16633 # The option is referenced via a variable to avoid confusing sed.
16634 lt_compile=`echo "$ac_compile" | $SED \
16635 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16636 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16637 -e 's:$: $lt_compiler_flag:'`
16638 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16639 (eval "$lt_compile" 2>conftest.err)
16640 ac_status=$?
16641 cat conftest.err >&5
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 if (exit $ac_status) && test -s "$ac_outfile"; then
16644 # The compiler can only warn and ignore the option if not recognized
16645 # So say no if there are warnings other than the usual output.
16646 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16648 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16649 lt_cv_prog_compiler_pic_works_CXX=yes
16650 fi
16651 fi
16652 $RM conftest*
16653 ;;
16654 esac
16655 fi
16656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16657 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16658
16659 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
16660 case $lt_prog_compiler_pic_CXX in
16661 "" | " "*) ;;
16662 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16663 esac
16664 else
16665 lt_prog_compiler_pic_CXX=
16666 lt_prog_compiler_can_build_shared_CXX=no
16667 fi
16668
16669 fi
16670
16671
16672
16673
16674
16675 #
16676 # Check to make sure the static flag actually works.
16677 #
16678 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16680 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16681 if test ${lt_cv_prog_compiler_static_works_CXX+y}
16682 then :
16683 printf %s "(cached) " >&6
16684 else case e in #(
16685 e) lt_cv_prog_compiler_static_works_CXX=no
16686 save_LDFLAGS=$LDFLAGS
16687 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16690 # The linker can only warn and ignore the option if not recognized
16691 # So say no if there are warnings
16692 if test -s conftest.err; then
16693 # Append any errors to the config.log.
16694 cat conftest.err 1>&5
16695 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16697 if diff conftest.exp conftest.er2 >/dev/null; then
16698 lt_cv_prog_compiler_static_works_CXX=yes
16699 fi
16700 else
16701 lt_cv_prog_compiler_static_works_CXX=yes
16702 fi
16703 fi
16704 $RM -r conftest*
16705 LDFLAGS=$save_LDFLAGS
16706 ;;
16707 esac
16708 fi
16709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16710 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16711
16712 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
16713 :
16714 else
16715 lt_prog_compiler_static_CXX=
16716 fi
16717
16718
16719
16720
16721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16722 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16723 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16724 then :
16725 printf %s "(cached) " >&6
16726 else case e in #(
16727 e) lt_cv_prog_compiler_c_o_CXX=no
16728 $RM -r conftest 2>/dev/null
16729 mkdir conftest
16730 cd conftest
16731 mkdir out
16732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16733
16734 lt_compiler_flag="-o out/conftest2.$ac_objext"
16735 # Insert the option either (1) after the last *FLAGS variable, or
16736 # (2) before a word containing "conftest.", or (3) at the end.
16737 # Note that $ac_compile itself does not contain backslashes and begins
16738 # with a dollar sign (not a hyphen), so the echo should work correctly.
16739 lt_compile=`echo "$ac_compile" | $SED \
16740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16742 -e 's:$: $lt_compiler_flag:'`
16743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16744 (eval "$lt_compile" 2>out/conftest.err)
16745 ac_status=$?
16746 cat out/conftest.err >&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16749 then
16750 # The compiler can only warn and ignore the option if not recognized
16751 # So say no if there are warnings
16752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16755 lt_cv_prog_compiler_c_o_CXX=yes
16756 fi
16757 fi
16758 chmod u+w . 2>&5
16759 $RM conftest*
16760 # SGI C++ compiler will create directory out/ii_files/ for
16761 # template instantiation
16762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16763 $RM out/* && rmdir out
16764 cd ..
16765 $RM -r conftest
16766 $RM conftest*
16767 ;;
16768 esac
16769 fi
16770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16771 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16772
16773
16774
16775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16776 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16777 if test ${lt_cv_prog_compiler_c_o_CXX+y}
16778 then :
16779 printf %s "(cached) " >&6
16780 else case e in #(
16781 e) lt_cv_prog_compiler_c_o_CXX=no
16782 $RM -r conftest 2>/dev/null
16783 mkdir conftest
16784 cd conftest
16785 mkdir out
16786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16787
16788 lt_compiler_flag="-o out/conftest2.$ac_objext"
16789 # Insert the option either (1) after the last *FLAGS variable, or
16790 # (2) before a word containing "conftest.", or (3) at the end.
16791 # Note that $ac_compile itself does not contain backslashes and begins
16792 # with a dollar sign (not a hyphen), so the echo should work correctly.
16793 lt_compile=`echo "$ac_compile" | $SED \
16794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16796 -e 's:$: $lt_compiler_flag:'`
16797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16798 (eval "$lt_compile" 2>out/conftest.err)
16799 ac_status=$?
16800 cat out/conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16803 then
16804 # The compiler can only warn and ignore the option if not recognized
16805 # So say no if there are warnings
16806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16809 lt_cv_prog_compiler_c_o_CXX=yes
16810 fi
16811 fi
16812 chmod u+w . 2>&5
16813 $RM conftest*
16814 # SGI C++ compiler will create directory out/ii_files/ for
16815 # template instantiation
16816 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16817 $RM out/* && rmdir out
16818 cd ..
16819 $RM -r conftest
16820 $RM conftest*
16821 ;;
16822 esac
16823 fi
16824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16825 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16826
16827
16828
16829
16830 hard_links=nottested
16831 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
16832 # do not overwrite the value of need_locks provided by the user
16833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16834 printf %s "checking if we can lock with hard links... " >&6; }
16835 hard_links=yes
16836 $RM conftest*
16837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16838 touch conftest.a
16839 ln conftest.a conftest.b 2>&5 || hard_links=no
16840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16842 printf "%s\n" "$hard_links" >&6; }
16843 if test no = "$hard_links"; then
16844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16845 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16846 need_locks=warn
16847 fi
16848 else
16849 need_locks=no
16850 fi
16851
16852
16853
16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16855 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16856
16857 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16858 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16859 case $host_os in
16860 aix[4-9]*)
16861 # If we're using GNU nm, then we don't want the "-C" option.
16862 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16863 # Without the "-l" option, or with the "-B" option, AIX nm treats
16864 # weak defined symbols like other global defined symbols, whereas
16865 # GNU nm marks them as "W".
16866 # While the 'weak' keyword is ignored in the Export File, we need
16867 # it in the Import File for the 'aix-soname' feature, so we have
16868 # to replace the "-B" option with "-P" for AIX nm.
16869 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16870 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
16871 else
16872 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
16873 fi
16874 ;;
16875 pw32*)
16876 export_symbols_cmds_CXX=$ltdll_cmds
16877 ;;
16878 cygwin* | mingw* | windows* | cegcc*)
16879 case $cc_basename in
16880 cl* | icl*)
16881 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16882 ;;
16883 *)
16884 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16885 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16886 ;;
16887 esac
16888 ;;
16889 linux* | k*bsd*-gnu | gnu*)
16890 link_all_deplibs_CXX=no
16891 ;;
16892 *)
16893 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16894 ;;
16895 esac
16896
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16898 printf "%s\n" "$ld_shlibs_CXX" >&6; }
16899 test no = "$ld_shlibs_CXX" && can_build_shared=no
16900
16901 with_gnu_ld_CXX=$with_gnu_ld
16902
16903
16904
16905
16906
16907
16908 #
16909 # Do we need to explicitly link libc?
16910 #
16911 case "x$archive_cmds_need_lc_CXX" in
16912 x|xyes)
16913 # Assume -lc should be added
16914 archive_cmds_need_lc_CXX=yes
16915
16916 if test yes,yes = "$GCC,$enable_shared"; then
16917 case $archive_cmds_CXX in
16918 *'~'*)
16919 # FIXME: we may have to deal with multi-command sequences.
16920 ;;
16921 '$CC '*)
16922 # Test whether the compiler implicitly links with -lc since on some
16923 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16924 # to ld, don't add -lc before -lgcc.
16925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16926 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
16927 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
16928 then :
16929 printf %s "(cached) " >&6
16930 else case e in #(
16931 e) $RM conftest*
16932 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16933
16934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16935 (eval $ac_compile) 2>&5
16936 ac_status=$?
16937 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16938 test $ac_status = 0; } 2>conftest.err; then
16939 soname=conftest
16940 lib=conftest
16941 libobjs=conftest.$ac_objext
16942 deplibs=
16943 wl=$lt_prog_compiler_wl_CXX
16944 pic_flag=$lt_prog_compiler_pic_CXX
16945 compiler_flags=-v
16946 linker_flags=-v
16947 verstring=
16948 output_objdir=.
16949 libname=conftest
16950 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16951 allow_undefined_flag_CXX=
16952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16953 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16954 ac_status=$?
16955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16956 test $ac_status = 0; }
16957 then
16958 lt_cv_archive_cmds_need_lc_CXX=no
16959 else
16960 lt_cv_archive_cmds_need_lc_CXX=yes
16961 fi
16962 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16963 else
16964 cat conftest.err 1>&5
16965 fi
16966 $RM conftest*
16967 ;;
16968 esac
16969 fi
16970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
16971 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
16972 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
16973 ;;
16974 esac
16975 fi
16976 ;;
16977 esac
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17041 printf %s "checking dynamic linker characteristics... " >&6; }
17042
17043 library_names_spec=
17044 libname_spec='lib$name'
17045 soname_spec=
17046 shrext_cmds=.so
17047 postinstall_cmds=
17048 postuninstall_cmds=
17049 finish_cmds=
17050 finish_eval=
17051 shlibpath_var=
17052 shlibpath_overrides_runpath=unknown
17053 version_type=none
17054 dynamic_linker="$host_os ld.so"
17055 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17056 need_lib_prefix=unknown
17057 hardcode_into_libs=no
17058
17059 # when you set need_version to no, make sure it does not cause -set_version
17060 # flags to be left without arguments
17061 need_version=unknown
17062
17063
17064
17065 case $host_os in
17066 aix3*)
17067 version_type=linux # correct to gnu/linux during the next big refactor
17068 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17069 shlibpath_var=LIBPATH
17070
17071 # AIX 3 has no versioning support, so we append a major version to the name.
17072 soname_spec='$libname$release$shared_ext$major'
17073 ;;
17074
17075 aix[4-9]*)
17076 version_type=linux # correct to gnu/linux during the next big refactor
17077 need_lib_prefix=no
17078 need_version=no
17079 hardcode_into_libs=yes
17080 if test ia64 = "$host_cpu"; then
17081 # AIX 5 supports IA64
17082 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17083 shlibpath_var=LD_LIBRARY_PATH
17084 else
17085 # With GCC up to 2.95.x, collect2 would create an import file
17086 # for dependence libraries. The import file would start with
17087 # the line '#! .'. This would cause the generated library to
17088 # depend on '.', always an invalid library. This was fixed in
17089 # development snapshots of GCC prior to 3.0.
17090 case $host_os in
17091 aix4 | aix4.[01] | aix4.[01].*)
17092 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17093 echo ' yes '
17094 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17095 :
17096 else
17097 can_build_shared=no
17098 fi
17099 ;;
17100 esac
17101 # Using Import Files as archive members, it is possible to support
17102 # filename-based versioning of shared library archives on AIX. While
17103 # this would work for both with and without runtime linking, it will
17104 # prevent static linking of such archives. So we do filename-based
17105 # shared library versioning with .so extension only, which is used
17106 # when both runtime linking and shared linking is enabled.
17107 # Unfortunately, runtime linking may impact performance, so we do
17108 # not want this to be the default eventually. Also, we use the
17109 # versioned .so libs for executables only if there is the -brtl
17110 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
17111 # To allow for filename-based versioning support, we need to create
17112 # libNAME.so.V as an archive file, containing:
17113 # *) an Import File, referring to the versioned filename of the
17114 # archive as well as the shared archive member, telling the
17115 # bitwidth (32 or 64) of that shared object, and providing the
17116 # list of exported symbols of that shared object, eventually
17117 # decorated with the 'weak' keyword
17118 # *) the shared object with the F_LOADONLY flag set, to really avoid
17119 # it being seen by the linker.
17120 # At run time we better use the real file rather than another symlink,
17121 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17122
17123 case $with_aix_soname,$aix_use_runtimelinking in
17124 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17125 # soname into executable. Probably we can add versioning support to
17126 # collect2, so additional links can be useful in future.
17127 aix,yes) # traditional libtool
17128 dynamic_linker='AIX unversionable lib.so'
17129 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17130 # instead of lib<name>.a to let people know that these are not
17131 # typical AIX shared libraries.
17132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17133 ;;
17134 aix,no) # traditional AIX only
17135 dynamic_linker='AIX lib.a(lib.so.V)'
17136 # We preserve .a as extension for shared libraries through AIX4.2
17137 # and later when we are not doing run time linking.
17138 library_names_spec='$libname$release.a $libname.a'
17139 soname_spec='$libname$release$shared_ext$major'
17140 ;;
17141 svr4,*) # full svr4 only
17142 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17143 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17144 # We do not specify a path in Import Files, so LIBPATH fires.
17145 shlibpath_overrides_runpath=yes
17146 ;;
17147 *,yes) # both, prefer svr4
17148 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17149 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17150 # unpreferred sharedlib libNAME.a needs extra handling
17151 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17152 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17153 # We do not specify a path in Import Files, so LIBPATH fires.
17154 shlibpath_overrides_runpath=yes
17155 ;;
17156 *,no) # both, prefer aix
17157 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17158 library_names_spec='$libname$release.a $libname.a'
17159 soname_spec='$libname$release$shared_ext$major'
17160 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17161 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17162 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17163 ;;
17164 esac
17165 shlibpath_var=LIBPATH
17166 fi
17167 ;;
17168
17169 amigaos*)
17170 case $host_cpu in
17171 powerpc)
17172 # Since July 2007 AmigaOS4 officially supports .so libraries.
17173 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17175 ;;
17176 m68k)
17177 library_names_spec='$libname.ixlibrary $libname.a'
17178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17179 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17180 ;;
17181 esac
17182 ;;
17183
17184 beos*)
17185 library_names_spec='$libname$shared_ext'
17186 dynamic_linker="$host_os ld.so"
17187 shlibpath_var=LIBRARY_PATH
17188 ;;
17189
17190 bsdi[45]*)
17191 version_type=linux # correct to gnu/linux during the next big refactor
17192 need_version=no
17193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17194 soname_spec='$libname$release$shared_ext$major'
17195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17196 shlibpath_var=LD_LIBRARY_PATH
17197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17199 # the default ld.so.conf also contains /usr/contrib/lib and
17200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17201 # libtool to hard-code these into programs
17202 ;;
17203
17204 cygwin* | mingw* | windows* | pw32* | cegcc*)
17205 version_type=windows
17206 shrext_cmds=.dll
17207 need_version=no
17208 need_lib_prefix=no
17209
17210 case $GCC,$cc_basename in
17211 yes,*)
17212 # gcc
17213 library_names_spec='$libname.dll.a'
17214 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17215 # If user builds GCC with multilib enabled,
17216 # it should just install on $(libdir)
17217 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
17218 if test xyes = x"$multilib"; then
17219 postinstall_cmds='base_file=`basename \$file`~
17220 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17221 dldir=$destdir/`dirname \$dlpath`~
17222 $install_prog $dir/$dlname $destdir/$dlname~
17223 chmod a+x $destdir/$dlname~
17224 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17225 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
17226 fi'
17227 else
17228 postinstall_cmds='base_file=`basename \$file`~
17229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17230 dldir=$destdir/`dirname \$dlpath`~
17231 test -d \$dldir || mkdir -p \$dldir~
17232 $install_prog $dir/$dlname \$dldir/$dlname~
17233 chmod a+x \$dldir/$dlname~
17234 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17235 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17236 fi'
17237 fi
17238 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17239 dlpath=$dir/\$dldll~
17240 $RM \$dlpath'
17241 shlibpath_overrides_runpath=yes
17242
17243 case $host_os in
17244 cygwin*)
17245 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17246 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17247
17248 ;;
17249 mingw* | windows* | cegcc*)
17250 # MinGW DLLs use traditional 'lib' prefix
17251 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17252 ;;
17253 pw32*)
17254 # pw32 DLLs use 'pw' prefix rather than 'lib'
17255 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17256 ;;
17257 esac
17258 dynamic_linker='Win32 ld.exe'
17259 ;;
17260
17261 *,cl* | *,icl*)
17262 # Native MSVC or ICC
17263 libname_spec='$name'
17264 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17265 library_names_spec='$libname.dll.lib'
17266
17267 case $build_os in
17268 mingw* | windows*)
17269 sys_lib_search_path_spec=
17270 lt_save_ifs=$IFS
17271 IFS=';'
17272 for lt_path in $LIB
17273 do
17274 IFS=$lt_save_ifs
17275 # Let DOS variable expansion print the short 8.3 style file name.
17276 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17277 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17278 done
17279 IFS=$lt_save_ifs
17280 # Convert to MSYS style.
17281 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17282 ;;
17283 cygwin*)
17284 # Convert to unix form, then to dos form, then back to unix form
17285 # but this time dos style (no spaces!) so that the unix form looks
17286 # like /cygdrive/c/PROGRA~1:/cygdr...
17287 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17288 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17289 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17290 ;;
17291 *)
17292 sys_lib_search_path_spec=$LIB
17293 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17294 # It is most probably a Windows format PATH.
17295 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17296 else
17297 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17298 fi
17299 # FIXME: find the short name or the path components, as spaces are
17300 # common. (e.g. "Program Files" -> "PROGRA~1")
17301 ;;
17302 esac
17303
17304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17305 postinstall_cmds='base_file=`basename \$file`~
17306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17307 dldir=$destdir/`dirname \$dlpath`~
17308 test -d \$dldir || mkdir -p \$dldir~
17309 $install_prog $dir/$dlname \$dldir/$dlname'
17310 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17311 dlpath=$dir/\$dldll~
17312 $RM \$dlpath'
17313 shlibpath_overrides_runpath=yes
17314 dynamic_linker='Win32 link.exe'
17315 ;;
17316
17317 *)
17318 # Assume MSVC and ICC wrapper
17319 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
17320 dynamic_linker='Win32 ld.exe'
17321 ;;
17322 esac
17323 # FIXME: first we should search . and the directory the executable is in
17324 shlibpath_var=PATH
17325 ;;
17326
17327 darwin* | rhapsody*)
17328 dynamic_linker="$host_os dyld"
17329 version_type=darwin
17330 need_lib_prefix=no
17331 need_version=no
17332 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17333 soname_spec='$libname$release$major$shared_ext'
17334 shlibpath_overrides_runpath=yes
17335 shlibpath_var=DYLD_LIBRARY_PATH
17336 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17337
17338 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17339 ;;
17340
17341 dgux*)
17342 version_type=linux # correct to gnu/linux during the next big refactor
17343 need_lib_prefix=no
17344 need_version=no
17345 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17346 soname_spec='$libname$release$shared_ext$major'
17347 shlibpath_var=LD_LIBRARY_PATH
17348 ;;
17349
17350 freebsd* | dragonfly* | midnightbsd*)
17351 # DragonFly does not have aout. When/if they implement a new
17352 # versioning mechanism, adjust this.
17353 if test -x /usr/bin/objformat; then
17354 objformat=`/usr/bin/objformat`
17355 else
17356 case $host_os in
17357 freebsd[23].*) objformat=aout ;;
17358 *) objformat=elf ;;
17359 esac
17360 fi
17361 version_type=freebsd-$objformat
17362 case $version_type in
17363 freebsd-elf*)
17364 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17365 soname_spec='$libname$release$shared_ext$major'
17366 need_version=no
17367 need_lib_prefix=no
17368 ;;
17369 freebsd-*)
17370 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17371 need_version=yes
17372 ;;
17373 esac
17374 case $host_cpu in
17375 powerpc64)
17376 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
17377 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380 int test_pointer_size[sizeof (void *) - 5];
17381
17382 _ACEOF
17383 if ac_fn_cxx_try_compile "$LINENO"
17384 then :
17385 shlibpath_var=LD_LIBRARY_PATH
17386 else case e in #(
17387 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
17388 esac
17389 fi
17390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17391 ;;
17392 *)
17393 shlibpath_var=LD_LIBRARY_PATH
17394 ;;
17395 esac
17396 case $host_os in
17397 freebsd2.*)
17398 shlibpath_overrides_runpath=yes
17399 ;;
17400 freebsd3.[01]* | freebsdelf3.[01]*)
17401 shlibpath_overrides_runpath=yes
17402 hardcode_into_libs=yes
17403 ;;
17404 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17405 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17406 shlibpath_overrides_runpath=no
17407 hardcode_into_libs=yes
17408 ;;
17409 *) # from 4.6 on, and DragonFly
17410 shlibpath_overrides_runpath=yes
17411 hardcode_into_libs=yes
17412 ;;
17413 esac
17414 ;;
17415
17416 haiku*)
17417 version_type=linux # correct to gnu/linux during the next big refactor
17418 need_lib_prefix=no
17419 need_version=no
17420 dynamic_linker="$host_os runtime_loader"
17421 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17422 soname_spec='$libname$release$shared_ext$major'
17423 shlibpath_var=LIBRARY_PATH
17424 shlibpath_overrides_runpath=no
17425 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
17426 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
17427 hardcode_into_libs=no
17428 ;;
17429
17430 hpux9* | hpux10* | hpux11*)
17431 # Give a soname corresponding to the major version so that dld.sl refuses to
17432 # link against other versions.
17433 version_type=sunos
17434 need_lib_prefix=no
17435 need_version=no
17436 case $host_cpu in
17437 ia64*)
17438 shrext_cmds='.so'
17439 hardcode_into_libs=yes
17440 dynamic_linker="$host_os dld.so"
17441 shlibpath_var=LD_LIBRARY_PATH
17442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17443 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17444 soname_spec='$libname$release$shared_ext$major'
17445 if test 32 = "$HPUX_IA64_MODE"; then
17446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17447 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
17448 else
17449 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17450 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
17451 fi
17452 ;;
17453 hppa*64*)
17454 shrext_cmds='.sl'
17455 hardcode_into_libs=yes
17456 dynamic_linker="$host_os dld.sl"
17457 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17458 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17460 soname_spec='$libname$release$shared_ext$major'
17461 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17462 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17463 ;;
17464 *)
17465 shrext_cmds='.sl'
17466 dynamic_linker="$host_os dld.sl"
17467 shlibpath_var=SHLIB_PATH
17468 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17470 soname_spec='$libname$release$shared_ext$major'
17471 ;;
17472 esac
17473 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17474 postinstall_cmds='chmod 555 $lib'
17475 # or fails outright, so override atomically:
17476 install_override_mode=555
17477 ;;
17478
17479 interix[3-9]*)
17480 version_type=linux # correct to gnu/linux during the next big refactor
17481 need_lib_prefix=no
17482 need_version=no
17483 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17484 soname_spec='$libname$release$shared_ext$major'
17485 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17486 shlibpath_var=LD_LIBRARY_PATH
17487 shlibpath_overrides_runpath=no
17488 hardcode_into_libs=yes
17489 ;;
17490
17491 irix5* | irix6* | nonstopux*)
17492 case $host_os in
17493 nonstopux*) version_type=nonstopux ;;
17494 *)
17495 if test yes = "$lt_cv_prog_gnu_ld"; then
17496 version_type=linux # correct to gnu/linux during the next big refactor
17497 else
17498 version_type=irix
17499 fi ;;
17500 esac
17501 need_lib_prefix=no
17502 need_version=no
17503 soname_spec='$libname$release$shared_ext$major'
17504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
17505 case $host_os in
17506 irix5* | nonstopux*)
17507 libsuff= shlibsuff=
17508 ;;
17509 *)
17510 case $LD in # libtool.m4 will add one of these switches to LD
17511 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17512 libsuff= shlibsuff= libmagic=32-bit;;
17513 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17514 libsuff=32 shlibsuff=N32 libmagic=N32;;
17515 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17516 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17517 *) libsuff= shlibsuff= libmagic=never-match;;
17518 esac
17519 ;;
17520 esac
17521 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17522 shlibpath_overrides_runpath=no
17523 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17524 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
17525 hardcode_into_libs=yes
17526 ;;
17527
17528 # No shared lib support for Linux oldld, aout, or coff.
17529 linux*oldld* | linux*aout* | linux*coff*)
17530 dynamic_linker=no
17531 ;;
17532
17533 linux*android*)
17534 version_type=none # Android doesn't support versioned libraries.
17535 need_lib_prefix=no
17536 need_version=no
17537 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
17538 soname_spec='$libname$release$shared_ext'
17539 finish_cmds=
17540 shlibpath_var=LD_LIBRARY_PATH
17541 shlibpath_overrides_runpath=yes
17542
17543 # This implies no fast_install, which is unacceptable.
17544 # Some rework will be needed to allow for fast_install
17545 # before this can be enabled.
17546 hardcode_into_libs=yes
17547
17548 dynamic_linker='Android linker'
17549 # -rpath works at least for libraries that are not overridden by
17550 # libraries installed in system locations.
17551 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17552 ;;
17553
17554 # This must be glibc/ELF.
17555 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17556 version_type=linux # correct to gnu/linux during the next big refactor
17557 need_lib_prefix=no
17558 need_version=no
17559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17560 soname_spec='$libname$release$shared_ext$major'
17561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17562 shlibpath_var=LD_LIBRARY_PATH
17563 shlibpath_overrides_runpath=no
17564
17565 # Some binutils ld are patched to set DT_RUNPATH
17566 if test ${lt_cv_shlibpath_overrides_runpath+y}
17567 then :
17568 printf %s "(cached) " >&6
17569 else case e in #(
17570 e) lt_cv_shlibpath_overrides_runpath=no
17571 save_LDFLAGS=$LDFLAGS
17572 save_libdir=$libdir
17573 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17574 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17577
17578 int
17579 main (void)
17580 {
17581
17582 ;
17583 return 0;
17584 }
17585 _ACEOF
17586 if ac_fn_cxx_try_link "$LINENO"
17587 then :
17588 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
17589 then :
17590 lt_cv_shlibpath_overrides_runpath=yes
17591 fi
17592 fi
17593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17594 conftest$ac_exeext conftest.$ac_ext
17595 LDFLAGS=$save_LDFLAGS
17596 libdir=$save_libdir
17597 ;;
17598 esac
17599 fi
17600
17601 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17602
17603 # This implies no fast_install, which is unacceptable.
17604 # Some rework will be needed to allow for fast_install
17605 # before this can be enabled.
17606 hardcode_into_libs=yes
17607
17608 # Ideally, we could use ldconfig to report *all* directories which are
17609 # searched for libraries, however this is still not possible. Aside from not
17610 # being certain /sbin/ldconfig is available, command
17611 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17612 # even though it is searched at run-time. Try to do the best guess by
17613 # appending ld.so.conf contents (and includes) to the search path.
17614 if test -f /etc/ld.so.conf; then
17615 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17617 fi
17618
17619 # We used to test for /lib/ld.so.1 and disable shared libraries on
17620 # powerpc, because MkLinux only supported shared libraries with the
17621 # GNU dynamic linker. Since this was broken with cross compilers,
17622 # most powerpc-linux boxes support dynamic linking these days and
17623 # people can always --disable-shared, the test was removed, and we
17624 # assume the GNU/Linux dynamic linker is in use.
17625 dynamic_linker='GNU/Linux ld.so'
17626 ;;
17627
17628 netbsdelf*-gnu)
17629 version_type=linux
17630 need_lib_prefix=no
17631 need_version=no
17632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17633 soname_spec='$libname$release$shared_ext$major'
17634 shlibpath_var=LD_LIBRARY_PATH
17635 shlibpath_overrides_runpath=no
17636 hardcode_into_libs=yes
17637 dynamic_linker='NetBSD ld.elf_so'
17638 ;;
17639
17640 netbsdelf*-gnu)
17641 version_type=linux
17642 need_lib_prefix=no
17643 need_version=no
17644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17645 soname_spec='${libname}${release}${shared_ext}$major'
17646 shlibpath_var=LD_LIBRARY_PATH
17647 shlibpath_overrides_runpath=no
17648 hardcode_into_libs=yes
17649 dynamic_linker='NetBSD ld.elf_so'
17650 ;;
17651
17652 netbsd*)
17653 version_type=sunos
17654 need_lib_prefix=no
17655 need_version=no
17656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17657 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17658 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17659 dynamic_linker='NetBSD (a.out) ld.so'
17660 else
17661 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17662 soname_spec='$libname$release$shared_ext$major'
17663 dynamic_linker='NetBSD ld.elf_so'
17664 fi
17665 shlibpath_var=LD_LIBRARY_PATH
17666 shlibpath_overrides_runpath=yes
17667 hardcode_into_libs=yes
17668 ;;
17669
17670 *-mlibc)
17671 version_type=linux # correct to gnu/linux during the next big refactor
17672 need_lib_prefix=no
17673 need_version=no
17674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17675 soname_spec='$libname$release$shared_ext$major'
17676 dynamic_linker='mlibc ld.so'
17677 shlibpath_var=LD_LIBRARY_PATH
17678 shlibpath_overrides_runpath=no
17679 hardcode_into_libs=yes
17680 ;;
17681
17682 newsos6)
17683 version_type=linux # correct to gnu/linux during the next big refactor
17684 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17685 shlibpath_var=LD_LIBRARY_PATH
17686 shlibpath_overrides_runpath=yes
17687 ;;
17688
17689 *nto* | *qnx*)
17690 version_type=qnx
17691 need_lib_prefix=no
17692 need_version=no
17693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17694 soname_spec='$libname$release$shared_ext$major'
17695 shlibpath_var=LD_LIBRARY_PATH
17696 shlibpath_overrides_runpath=no
17697 hardcode_into_libs=yes
17698 dynamic_linker='ldqnx.so'
17699 ;;
17700
17701 openbsd*)
17702 version_type=sunos
17703 sys_lib_dlsearch_path_spec=/usr/lib
17704 need_lib_prefix=no
17705 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17706 need_version=no
17707 else
17708 need_version=yes
17709 fi
17710 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17712 shlibpath_var=LD_LIBRARY_PATH
17713 shlibpath_overrides_runpath=yes
17714 ;;
17715
17716 os2*)
17717 libname_spec='$name'
17718 version_type=windows
17719 shrext_cmds=.dll
17720 need_version=no
17721 need_lib_prefix=no
17722 # OS/2 can only load a DLL with a base name of 8 characters or less.
17723 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17724 v=$($ECHO $release$versuffix | tr -d .-);
17725 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17726 $ECHO $n$v`$shared_ext'
17727 library_names_spec='${libname}_dll.$libext'
17728 dynamic_linker='OS/2 ld.exe'
17729 shlibpath_var=BEGINLIBPATH
17730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17731 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17732 postinstall_cmds='base_file=`basename \$file`~
17733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17734 dldir=$destdir/`dirname \$dlpath`~
17735 test -d \$dldir || mkdir -p \$dldir~
17736 $install_prog $dir/$dlname \$dldir/$dlname~
17737 chmod a+x \$dldir/$dlname~
17738 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17739 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17740 fi'
17741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17742 dlpath=$dir/\$dldll~
17743 $RM \$dlpath'
17744 ;;
17745
17746 osf3* | osf4* | osf5*)
17747 version_type=osf
17748 need_lib_prefix=no
17749 need_version=no
17750 soname_spec='$libname$release$shared_ext$major'
17751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17752 shlibpath_var=LD_LIBRARY_PATH
17753 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17754 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17755 ;;
17756
17757 rdos*)
17758 dynamic_linker=no
17759 ;;
17760
17761 serenity*)
17762 version_type=linux # correct to gnu/linux during the next big refactor
17763 need_lib_prefix=no
17764 need_version=no
17765 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17766 soname_spec='$libname$release$shared_ext$major'
17767 shlibpath_var=LD_LIBRARY_PATH
17768 shlibpath_overrides_runpath=no
17769 dynamic_linker='SerenityOS LibELF'
17770 ;;
17771
17772 solaris*)
17773 version_type=linux # correct to gnu/linux during the next big refactor
17774 need_lib_prefix=no
17775 need_version=no
17776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17777 soname_spec='$libname$release$shared_ext$major'
17778 shlibpath_var=LD_LIBRARY_PATH
17779 shlibpath_overrides_runpath=yes
17780 hardcode_into_libs=yes
17781 # ldd complains unless libraries are executable
17782 postinstall_cmds='chmod +x $lib'
17783 ;;
17784
17785 sunos4*)
17786 version_type=sunos
17787 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
17788 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17789 shlibpath_var=LD_LIBRARY_PATH
17790 shlibpath_overrides_runpath=yes
17791 if test yes = "$with_gnu_ld"; then
17792 need_lib_prefix=no
17793 fi
17794 need_version=yes
17795 ;;
17796
17797 sysv4 | sysv4.3*)
17798 version_type=linux # correct to gnu/linux during the next big refactor
17799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17800 soname_spec='$libname$release$shared_ext$major'
17801 shlibpath_var=LD_LIBRARY_PATH
17802 case $host_vendor in
17803 sni)
17804 shlibpath_overrides_runpath=no
17805 need_lib_prefix=no
17806 runpath_var=LD_RUN_PATH
17807 ;;
17808 siemens)
17809 need_lib_prefix=no
17810 ;;
17811 motorola)
17812 need_lib_prefix=no
17813 need_version=no
17814 shlibpath_overrides_runpath=no
17815 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17816 ;;
17817 esac
17818 ;;
17819
17820 sysv4*MP*)
17821 if test -d /usr/nec; then
17822 version_type=linux # correct to gnu/linux during the next big refactor
17823 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
17824 soname_spec='$libname$shared_ext.$major'
17825 shlibpath_var=LD_LIBRARY_PATH
17826 fi
17827 ;;
17828
17829 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17830 version_type=sco
17831 need_lib_prefix=no
17832 need_version=no
17833 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
17834 soname_spec='$libname$release$shared_ext$major'
17835 shlibpath_var=LD_LIBRARY_PATH
17836 shlibpath_overrides_runpath=yes
17837 hardcode_into_libs=yes
17838 if test yes = "$with_gnu_ld"; then
17839 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17840 else
17841 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17842 case $host_os in
17843 sco3.2v5*)
17844 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17845 ;;
17846 esac
17847 fi
17848 sys_lib_dlsearch_path_spec='/usr/lib'
17849 ;;
17850
17851 tpf*)
17852 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17853 version_type=linux # correct to gnu/linux during the next big refactor
17854 need_lib_prefix=no
17855 need_version=no
17856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17857 shlibpath_var=LD_LIBRARY_PATH
17858 shlibpath_overrides_runpath=no
17859 hardcode_into_libs=yes
17860 ;;
17861
17862 uts4*)
17863 version_type=linux # correct to gnu/linux during the next big refactor
17864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17865 soname_spec='$libname$release$shared_ext$major'
17866 shlibpath_var=LD_LIBRARY_PATH
17867 ;;
17868
17869 emscripten*)
17870 version_type=none
17871 need_lib_prefix=no
17872 need_version=no
17873 library_names_spec='$libname$release$shared_ext'
17874 soname_spec='$libname$release$shared_ext'
17875 finish_cmds=
17876 dynamic_linker="Emscripten linker"
17877 lt_prog_compiler_wl_CXX=
17878 lt_prog_compiler_pic_CXX=
17879 lt_prog_compiler_static_CXX=
17880
17881
17882 # C++ specific cases for pic, static, wl, etc.
17883 if test yes = "$GXX"; then
17884 lt_prog_compiler_wl_CXX='-Wl,'
17885 lt_prog_compiler_static_CXX='-static'
17886
17887 case $host_os in
17888 aix*)
17889 # All AIX code is PIC.
17890 if test ia64 = "$host_cpu"; then
17891 # AIX 5 now supports IA64 processor
17892 lt_prog_compiler_static_CXX='-Bstatic'
17893 fi
17894 lt_prog_compiler_pic_CXX='-fPIC'
17895 ;;
17896
17897 amigaos*)
17898 case $host_cpu in
17899 powerpc)
17900 # see comment about AmigaOS4 .so support
17901 lt_prog_compiler_pic_CXX='-fPIC'
17902 ;;
17903 m68k)
17904 # FIXME: we need at least 68020 code to build shared libraries, but
17905 # adding the '-m68020' flag to GCC prevents building anything better,
17906 # like '-m68040'.
17907 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17908 ;;
17909 esac
17910 ;;
17911
17912 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17913 # PIC is the default for these OSes.
17914 ;;
17915 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17916 # This hack is so that the source file can tell whether it is being
17917 # built for inclusion in a dll (and should export symbols for example).
17918 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17919 # (--disable-auto-import) libraries
17920 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17921 case $host_os in
17922 os2*)
17923 lt_prog_compiler_static_CXX='$wl-static'
17924 ;;
17925 esac
17926 ;;
17927 darwin* | rhapsody*)
17928 # PIC is the default on this platform
17929 # Common symbols not allowed in MH_DYLIB files
17930 lt_prog_compiler_pic_CXX='-fno-common'
17931 ;;
17932 *djgpp*)
17933 # DJGPP does not support shared libraries at all
17934 lt_prog_compiler_pic_CXX=
17935 ;;
17936 haiku*)
17937 # PIC is the default for Haiku.
17938 # The "-static" flag exists, but is broken.
17939 lt_prog_compiler_static_CXX=
17940 ;;
17941 interix[3-9]*)
17942 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17943 # Instead, we relocate shared libraries at runtime.
17944 ;;
17945 sysv4*MP*)
17946 if test -d /usr/nec; then
17947 lt_prog_compiler_pic_CXX=-Kconform_pic
17948 fi
17949 ;;
17950 hpux*)
17951 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17952 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17953 # sets the default TLS model and affects inlining.
17954 case $host_cpu in
17955 hppa*64*)
17956 ;;
17957 *)
17958 lt_prog_compiler_pic_CXX='-fPIC'
17959 ;;
17960 esac
17961 ;;
17962 *qnx* | *nto*)
17963 # QNX uses GNU C++, but need to define -shared option too, otherwise
17964 # it will coredump.
17965 lt_prog_compiler_pic_CXX='-fPIC -shared'
17966 ;;
17967 *)
17968 lt_prog_compiler_pic_CXX='-fPIC'
17969 ;;
17970 esac
17971 else
17972 case $host_os in
17973 aix[4-9]*)
17974 # All AIX code is PIC.
17975 if test ia64 = "$host_cpu"; then
17976 # AIX 5 now supports IA64 processor
17977 lt_prog_compiler_static_CXX='-Bstatic'
17978 else
17979 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17980 fi
17981 ;;
17982 chorus*)
17983 case $cc_basename in
17984 cxch68*)
17985 # Green Hills C++ Compiler
17986 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
17987 ;;
17988 esac
17989 ;;
17990 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17991 # This hack is so that the source file can tell whether it is being
17992 # built for inclusion in a dll (and should export symbols for example).
17993 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17994 ;;
17995 dgux*)
17996 case $cc_basename in
17997 ec++*)
17998 lt_prog_compiler_pic_CXX='-KPIC'
17999 ;;
18000 ghcx*)
18001 # Green Hills C++ Compiler
18002 lt_prog_compiler_pic_CXX='-pic'
18003 ;;
18004 *)
18005 ;;
18006 esac
18007 ;;
18008 freebsd* | dragonfly* | midnightbsd*)
18009 # FreeBSD uses GNU C++
18010 ;;
18011 hpux9* | hpux10* | hpux11*)
18012 case $cc_basename in
18013 CC*)
18014 lt_prog_compiler_wl_CXX='-Wl,'
18015 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18016 if test ia64 != "$host_cpu"; then
18017 lt_prog_compiler_pic_CXX='+Z'
18018 fi
18019 ;;
18020 aCC*)
18021 lt_prog_compiler_wl_CXX='-Wl,'
18022 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18023 case $host_cpu in
18024 hppa*64*|ia64*)
18025 # +Z the default
18026 ;;
18027 *)
18028 lt_prog_compiler_pic_CXX='+Z'
18029 ;;
18030 esac
18031 ;;
18032 *)
18033 ;;
18034 esac
18035 ;;
18036 interix*)
18037 # This is c89, which is MS Visual C++ (no shared libs)
18038 # Anyone wants to do a port?
18039 ;;
18040 irix5* | irix6* | nonstopux*)
18041 case $cc_basename in
18042 CC*)
18043 lt_prog_compiler_wl_CXX='-Wl,'
18044 lt_prog_compiler_static_CXX='-non_shared'
18045 # CC pic flag -KPIC is the default.
18046 ;;
18047 *)
18048 ;;
18049 esac
18050 ;;
18051 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18052 case $cc_basename in
18053 KCC*)
18054 # KAI C++ Compiler
18055 lt_prog_compiler_wl_CXX='--backend -Wl,'
18056 lt_prog_compiler_pic_CXX='-fPIC'
18057 ;;
18058 ecpc* )
18059 # old Intel C++ for x86_64, which still supported -KPIC.
18060 lt_prog_compiler_wl_CXX='-Wl,'
18061 lt_prog_compiler_pic_CXX='-KPIC'
18062 lt_prog_compiler_static_CXX='-static'
18063 ;;
18064 icpc* )
18065 # Intel C++, used to be incompatible with GCC.
18066 # ICC 10 doesn't accept -KPIC any more.
18067 lt_prog_compiler_wl_CXX='-Wl,'
18068 lt_prog_compiler_pic_CXX='-fPIC'
18069 lt_prog_compiler_static_CXX='-static'
18070 ;;
18071 pgCC* | pgcpp*)
18072 # Portland Group C++ compiler
18073 lt_prog_compiler_wl_CXX='-Wl,'
18074 lt_prog_compiler_pic_CXX='-fpic'
18075 lt_prog_compiler_static_CXX='-Bstatic'
18076 ;;
18077 cxx*)
18078 # Compaq C++
18079 # Make sure the PIC flag is empty. It appears that all Alpha
18080 # Linux and Compaq Tru64 Unix objects are PIC.
18081 lt_prog_compiler_pic_CXX=
18082 lt_prog_compiler_static_CXX='-non_shared'
18083 ;;
18084 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18085 # IBM XL 8.0, 9.0 on PPC and BlueGene
18086 lt_prog_compiler_wl_CXX='-Wl,'
18087 lt_prog_compiler_pic_CXX='-qpic'
18088 lt_prog_compiler_static_CXX='-qstaticlink'
18089 ;;
18090 *)
18091 case `$CC -V 2>&1 | $SED 5q` in
18092 *Sun\ C*)
18093 # Sun C++ 5.9
18094 lt_prog_compiler_pic_CXX='-KPIC'
18095 lt_prog_compiler_static_CXX='-Bstatic'
18096 lt_prog_compiler_wl_CXX='-Qoption ld '
18097 ;;
18098 esac
18099 ;;
18100 esac
18101 ;;
18102 lynxos*)
18103 ;;
18104 m88k*)
18105 ;;
18106 mvs*)
18107 case $cc_basename in
18108 cxx*)
18109 lt_prog_compiler_pic_CXX='-W c,exportall'
18110 ;;
18111 *)
18112 ;;
18113 esac
18114 ;;
18115 netbsd* | netbsdelf*-gnu)
18116 ;;
18117 *-mlibc)
18118 ;;
18119 *qnx* | *nto*)
18120 # QNX uses GNU C++, but need to define -shared option too, otherwise
18121 # it will coredump.
18122 lt_prog_compiler_pic_CXX='-fPIC -shared'
18123 ;;
18124 osf3* | osf4* | osf5*)
18125 case $cc_basename in
18126 KCC*)
18127 lt_prog_compiler_wl_CXX='--backend -Wl,'
18128 ;;
18129 RCC*)
18130 # Rational C++ 2.4.1
18131 lt_prog_compiler_pic_CXX='-pic'
18132 ;;
18133 cxx*)
18134 # Digital/Compaq C++
18135 lt_prog_compiler_wl_CXX='-Wl,'
18136 # Make sure the PIC flag is empty. It appears that all Alpha
18137 # Linux and Compaq Tru64 Unix objects are PIC.
18138 lt_prog_compiler_pic_CXX=
18139 lt_prog_compiler_static_CXX='-non_shared'
18140 ;;
18141 *)
18142 ;;
18143 esac
18144 ;;
18145 psos*)
18146 ;;
18147 serenity*)
18148 ;;
18149 solaris*)
18150 case $cc_basename in
18151 CC* | sunCC*)
18152 # Sun C++ 4.2, 5.x and Centerline C++
18153 lt_prog_compiler_pic_CXX='-KPIC'
18154 lt_prog_compiler_static_CXX='-Bstatic'
18155 lt_prog_compiler_wl_CXX='-Qoption ld '
18156 ;;
18157 gcx*)
18158 # Green Hills C++ Compiler
18159 lt_prog_compiler_pic_CXX='-PIC'
18160 ;;
18161 *)
18162 ;;
18163 esac
18164 ;;
18165 sunos4*)
18166 case $cc_basename in
18167 CC*)
18168 # Sun C++ 4.x
18169 lt_prog_compiler_pic_CXX='-pic'
18170 lt_prog_compiler_static_CXX='-Bstatic'
18171 ;;
18172 lcc*)
18173 # Lucid
18174 lt_prog_compiler_pic_CXX='-pic'
18175 ;;
18176 *)
18177 ;;
18178 esac
18179 ;;
18180 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18181 case $cc_basename in
18182 CC*)
18183 lt_prog_compiler_wl_CXX='-Wl,'
18184 lt_prog_compiler_pic_CXX='-KPIC'
18185 lt_prog_compiler_static_CXX='-Bstatic'
18186 ;;
18187 esac
18188 ;;
18189 tandem*)
18190 case $cc_basename in
18191 NCC*)
18192 # NonStop-UX NCC 3.20
18193 lt_prog_compiler_pic_CXX='-KPIC'
18194 ;;
18195 *)
18196 ;;
18197 esac
18198 ;;
18199 vxworks*)
18200 ;;
18201 *)
18202 lt_prog_compiler_can_build_shared_CXX=no
18203 ;;
18204 esac
18205 fi
18206
18207 case $host_os in
18208 # For platforms that do not support PIC, -DPIC is meaningless:
18209 *djgpp*)
18210 lt_prog_compiler_pic_CXX=
18211 ;;
18212 *)
18213 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18214 ;;
18215 esac
18216
18217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18218 printf %s "checking for $compiler option to produce PIC... " >&6; }
18219 if test ${lt_cv_prog_compiler_pic_CXX+y}
18220 then :
18221 printf %s "(cached) " >&6
18222 else case e in #(
18223 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18224 esac
18225 fi
18226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18227 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18228 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18229
18230 #
18231 # Check to make sure the PIC flag actually works.
18232 #
18233 if test -n "$lt_prog_compiler_pic_CXX"; then
18234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18235 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18236 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18237 then :
18238 printf %s "(cached) " >&6
18239 else case e in #(
18240 e) lt_cv_prog_compiler_pic_works_CXX=no
18241 ac_outfile=conftest.$ac_objext
18242 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18243 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18244 # Insert the option either (1) after the last *FLAGS variable, or
18245 # (2) before a word containing "conftest.", or (3) at the end.
18246 # Note that $ac_compile itself does not contain backslashes and begins
18247 # with a dollar sign (not a hyphen), so the echo should work correctly.
18248 # The option is referenced via a variable to avoid confusing sed.
18249 lt_compile=`echo "$ac_compile" | $SED \
18250 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18251 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18252 -e 's:$: $lt_compiler_flag:'`
18253 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18254 (eval "$lt_compile" 2>conftest.err)
18255 ac_status=$?
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 if (exit $ac_status) && test -s "$ac_outfile"; then
18259 # The compiler can only warn and ignore the option if not recognized
18260 # So say no if there are warnings other than the usual output.
18261 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18262 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18263 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18264 lt_cv_prog_compiler_pic_works_CXX=yes
18265 fi
18266 fi
18267 $RM conftest*
18268 ;;
18269 esac
18270 fi
18271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18272 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18273
18274 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18275 case $lt_prog_compiler_pic_CXX in
18276 "" | " "*) ;;
18277 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18278 esac
18279 else
18280 lt_prog_compiler_pic_CXX=
18281 lt_prog_compiler_can_build_shared_CXX=no
18282 fi
18283
18284 fi
18285
18286
18287
18288
18289
18290 #
18291 # Check to make sure the static flag actually works.
18292 #
18293 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18295 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18296 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18297 then :
18298 printf %s "(cached) " >&6
18299 else case e in #(
18300 e) lt_cv_prog_compiler_static_works_CXX=no
18301 save_LDFLAGS=$LDFLAGS
18302 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18303 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18304 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18305 # The linker can only warn and ignore the option if not recognized
18306 # So say no if there are warnings
18307 if test -s conftest.err; then
18308 # Append any errors to the config.log.
18309 cat conftest.err 1>&5
18310 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18311 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18312 if diff conftest.exp conftest.er2 >/dev/null; then
18313 lt_cv_prog_compiler_static_works_CXX=yes
18314 fi
18315 else
18316 lt_cv_prog_compiler_static_works_CXX=yes
18317 fi
18318 fi
18319 $RM -r conftest*
18320 LDFLAGS=$save_LDFLAGS
18321 ;;
18322 esac
18323 fi
18324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18325 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18326
18327 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18328 :
18329 else
18330 lt_prog_compiler_static_CXX=
18331 fi
18332
18333
18334
18335 ='-fPIC'
18336 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
18337 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
18338 archive_cmds_need_lc_CXX=no
18339 no_undefined_flag_CXX=
18340 ;;
18341
18342 *)
18343 dynamic_linker=no
18344 ;;
18345 esac
18346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18347 printf "%s\n" "$dynamic_linker" >&6; }
18348 test no = "$dynamic_linker" && can_build_shared=no
18349
18350 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18351 if test yes = "$GCC"; then
18352 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18353 fi
18354
18355 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18356 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18357 fi
18358
18359 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18360 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18361 fi
18362
18363 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18364 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18365
18366 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18367 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18368
18369 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18370 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18412 printf %s "checking how to hardcode library paths into programs... " >&6; }
18413 hardcode_action_CXX=
18414 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18415 test -n "$runpath_var_CXX" ||
18416 test yes = "$hardcode_automatic_CXX"; then
18417
18418 # We can hardcode non-existent directories.
18419 if test no != "$hardcode_direct_CXX" &&
18420 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18421 # have to relink, otherwise we might link with an installed library
18422 # when we should be linking with a yet-to-be-installed one
18423 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18424 test no != "$hardcode_minus_L_CXX"; then
18425 # Linking always hardcodes the temporary library directory.
18426 hardcode_action_CXX=relink
18427 else
18428 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18429 hardcode_action_CXX=immediate
18430 fi
18431 else
18432 # We cannot hardcode anything, or else we can only hardcode existing
18433 # directories.
18434 hardcode_action_CXX=unsupported
18435 fi
18436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18437 printf "%s\n" "$hardcode_action_CXX" >&6; }
18438
18439 if test relink = "$hardcode_action_CXX" ||
18440 test yes = "$inherit_rpath_CXX"; then
18441 # Fast installation is not supported
18442 enable_fast_install=no
18443 elif test yes = "$shlibpath_overrides_runpath" ||
18444 test no = "$enable_shared"; then
18445 # Fast installation is not necessary
18446 enable_fast_install=needless
18447 fi
18448
18449
18450
18451
18452
18453
18454
18455 fi # test -n "$compiler"
18456
18457 CC=$lt_save_CC
18458 CFLAGS=$lt_save_CFLAGS
18459 LDCXX=$LD
18460 LD=$lt_save_LD
18461 GCC=$lt_save_GCC
18462 with_gnu_ld=$lt_save_with_gnu_ld
18463 lt_cv_path_LDCXX=$lt_cv_path_LD
18464 lt_cv_path_LD=$lt_save_path_LD
18465 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18466 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18467 fi # test yes != "$_lt_caught_CXX_error"
18468
18469 ac_ext=c
18470 ac_cpp='$CPP $CPPFLAGS'
18471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18474
18475
18476
18477 ac_ext=cpp
18478 ac_cpp='$CXXCPP $CPPFLAGS'
18479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18482
18483 if test -n "$ac_tool_prefix"; then
18484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18487 printf %s "checking for $ac_word... " >&6; }
18488 if test ${ac_cv_prog_RANLIB+y}
18489 then :
18490 printf %s "(cached) " >&6
18491 else case e in #(
18492 e) if test -n "$RANLIB"; then
18493 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18494 else
18495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18496 for as_dir in $PATH
18497 do
18498 IFS=$as_save_IFS
18499 case $as_dir in #(((
18500 '') as_dir=./ ;;
18501 */) ;;
18502 *) as_dir=$as_dir/ ;;
18503 esac
18504 for ac_exec_ext in '' $ac_executable_extensions; do
18505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18508 break 2
18509 fi
18510 done
18511 done
18512 IFS=$as_save_IFS
18513
18514 fi ;;
18515 esac
18516 fi
18517 RANLIB=$ac_cv_prog_RANLIB
18518 if test -n "$RANLIB"; then
18519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18520 printf "%s\n" "$RANLIB" >&6; }
18521 else
18522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18523 printf "%s\n" "no" >&6; }
18524 fi
18525
18526
18527 fi
18528 if test -z "$ac_cv_prog_RANLIB"; then
18529 ac_ct_RANLIB=$RANLIB
18530 # Extract the first word of "ranlib", so it can be a program name with args.
18531 set dummy ranlib; ac_word=$2
18532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18533 printf %s "checking for $ac_word... " >&6; }
18534 if test ${ac_cv_prog_ac_ct_RANLIB+y}
18535 then :
18536 printf %s "(cached) " >&6
18537 else case e in #(
18538 e) if test -n "$ac_ct_RANLIB"; then
18539 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18540 else
18541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18542 for as_dir in $PATH
18543 do
18544 IFS=$as_save_IFS
18545 case $as_dir in #(((
18546 '') as_dir=./ ;;
18547 */) ;;
18548 *) as_dir=$as_dir/ ;;
18549 esac
18550 for ac_exec_ext in '' $ac_executable_extensions; do
18551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18552 ac_cv_prog_ac_ct_RANLIB="ranlib"
18553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18554 break 2
18555 fi
18556 done
18557 done
18558 IFS=$as_save_IFS
18559
18560 fi ;;
18561 esac
18562 fi
18563 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18564 if test -n "$ac_ct_RANLIB"; then
18565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18566 printf "%s\n" "$ac_ct_RANLIB" >&6; }
18567 else
18568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18569 printf "%s\n" "no" >&6; }
18570 fi
18571
18572 if test "x$ac_ct_RANLIB" = x; then
18573 RANLIB=":"
18574 else
18575 case $cross_compiling:$ac_tool_warned in
18576 yes:)
18577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18578 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18579 ac_tool_warned=yes ;;
18580 esac
18581 RANLIB=$ac_ct_RANLIB
18582 fi
18583 else
18584 RANLIB="$ac_cv_prog_RANLIB"
18585 fi
18586
18587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18588 printf %s "checking whether ln -s works... " >&6; }
18589 LN_S=$as_ln_s
18590 if test "$LN_S" = "ln -s"; then
18591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18592 printf "%s\n" "yes" >&6; }
18593 else
18594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18595 printf "%s\n" "no, using $LN_S" >&6; }
18596 fi
18597
18598
18599
18600
18601
18602
18603
18604
18605 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18606 if test -n "$ac_tool_prefix"; then
18607 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18608 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18610 printf %s "checking for $ac_word... " >&6; }
18611 if test ${ac_cv_path_PKG_CONFIG+y}
18612 then :
18613 printf %s "(cached) " >&6
18614 else case e in #(
18615 e) case $PKG_CONFIG in
18616 [\\/]* | ?:[\\/]*)
18617 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18618 ;;
18619 *)
18620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18621 for as_dir in $PATH
18622 do
18623 IFS=$as_save_IFS
18624 case $as_dir in #(((
18625 '') as_dir=./ ;;
18626 */) ;;
18627 *) as_dir=$as_dir/ ;;
18628 esac
18629 for ac_exec_ext in '' $ac_executable_extensions; do
18630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18631 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18633 break 2
18634 fi
18635 done
18636 done
18637 IFS=$as_save_IFS
18638
18639 ;;
18640 esac ;;
18641 esac
18642 fi
18643 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18644 if test -n "$PKG_CONFIG"; then
18645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18646 printf "%s\n" "$PKG_CONFIG" >&6; }
18647 else
18648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649 printf "%s\n" "no" >&6; }
18650 fi
18651
18652
18653 fi
18654 if test -z "$ac_cv_path_PKG_CONFIG"; then
18655 ac_pt_PKG_CONFIG=$PKG_CONFIG
18656 # Extract the first word of "pkg-config", so it can be a program name with args.
18657 set dummy pkg-config; ac_word=$2
18658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18659 printf %s "checking for $ac_word... " >&6; }
18660 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18661 then :
18662 printf %s "(cached) " >&6
18663 else case e in #(
18664 e) case $ac_pt_PKG_CONFIG in
18665 [\\/]* | ?:[\\/]*)
18666 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18667 ;;
18668 *)
18669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18670 for as_dir in $PATH
18671 do
18672 IFS=$as_save_IFS
18673 case $as_dir in #(((
18674 '') as_dir=./ ;;
18675 */) ;;
18676 *) as_dir=$as_dir/ ;;
18677 esac
18678 for ac_exec_ext in '' $ac_executable_extensions; do
18679 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18680 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18682 break 2
18683 fi
18684 done
18685 done
18686 IFS=$as_save_IFS
18687
18688 ;;
18689 esac ;;
18690 esac
18691 fi
18692 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18693 if test -n "$ac_pt_PKG_CONFIG"; then
18694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18695 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18696 else
18697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18698 printf "%s\n" "no" >&6; }
18699 fi
18700
18701 if test "x$ac_pt_PKG_CONFIG" = x; then
18702 PKG_CONFIG=""
18703 else
18704 case $cross_compiling:$ac_tool_warned in
18705 yes:)
18706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18707 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18708 ac_tool_warned=yes ;;
18709 esac
18710 PKG_CONFIG=$ac_pt_PKG_CONFIG
18711 fi
18712 else
18713 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18714 fi
18715
18716 fi
18717 if test -n "$PKG_CONFIG"; then
18718 _pkg_min_version=0.9.0
18719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18720 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18721 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18723 printf "%s\n" "yes" >&6; }
18724 else
18725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18726 printf "%s\n" "no" >&6; }
18727 PKG_CONFIG=""
18728 fi
18729 fi
18730
18731 for ac_prog in flex lex
18732 do
18733 # Extract the first word of "$ac_prog", so it can be a program name with args.
18734 set dummy $ac_prog; ac_word=$2
18735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18736 printf %s "checking for $ac_word... " >&6; }
18737 if test ${ac_cv_prog_LEX+y}
18738 then :
18739 printf %s "(cached) " >&6
18740 else case e in #(
18741 e) if test -n "$LEX"; then
18742 ac_cv_prog_LEX="$LEX" # Let the user override the test.
18743 else
18744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18745 for as_dir in $PATH
18746 do
18747 IFS=$as_save_IFS
18748 case $as_dir in #(((
18749 '') as_dir=./ ;;
18750 */) ;;
18751 *) as_dir=$as_dir/ ;;
18752 esac
18753 for ac_exec_ext in '' $ac_executable_extensions; do
18754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18755 ac_cv_prog_LEX="$ac_prog"
18756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18757 break 2
18758 fi
18759 done
18760 done
18761 IFS=$as_save_IFS
18762
18763 fi ;;
18764 esac
18765 fi
18766 LEX=$ac_cv_prog_LEX
18767 if test -n "$LEX"; then
18768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
18769 printf "%s\n" "$LEX" >&6; }
18770 else
18771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18772 printf "%s\n" "no" >&6; }
18773 fi
18774
18775
18776 test -n "$LEX" && break
18777 done
18778 test -n "$LEX" || LEX=":"
18779
18780 if test "x$LEX" != "x:"; then
18781 cat >conftest.l <<_ACEOF
18782 %{
18783 #ifdef __cplusplus
18784 extern "C"
18785 #endif
18786 int yywrap(void);
18787 %}
18788 %%
18789 a { ECHO; }
18790 b { REJECT; }
18791 c { yymore (); }
18792 d { yyless (1); }
18793 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
18794 #ifdef __cplusplus
18795 yyless ((yyinput () != 0));
18796 #else
18797 yyless ((input () != 0));
18798 #endif
18799 }
18800 f { unput (yytext[0]); }
18801 . { BEGIN INITIAL; }
18802 %%
18803 #ifdef YYTEXT_POINTER
18804 extern char *yytext;
18805 #endif
18806 int
18807 yywrap (void)
18808 {
18809 return 1;
18810 }
18811 int
18812 main (void)
18813 {
18814 return ! yylex ();
18815 }
18816 _ACEOF
18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
18818 printf %s "checking for lex output file root... " >&6; }
18819 if test ${ac_cv_prog_lex_root+y}
18820 then :
18821 printf %s "(cached) " >&6
18822 else case e in #(
18823 e)
18824 ac_cv_prog_lex_root=unknown
18825 { { ac_try="$LEX conftest.l"
18826 case "(($ac_try" in
18827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828 *) ac_try_echo=$ac_try;;
18829 esac
18830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18831 printf "%s\n" "$ac_try_echo"; } >&5
18832 (eval "$LEX conftest.l") 2>&5
18833 ac_status=$?
18834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18835 test $ac_status = 0; } &&
18836 if test -f lex.yy.c; then
18837 ac_cv_prog_lex_root=lex.yy
18838 elif test -f lexyy.c; then
18839 ac_cv_prog_lex_root=lexyy
18840 fi ;;
18841 esac
18842 fi
18843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
18844 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
18845 if test "$ac_cv_prog_lex_root" = unknown
18846 then :
18847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
18848 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
18849 LEX=: LEXLIB=
18850 fi
18851 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
18852
18853 if test ${LEXLIB+y}
18854 then :
18855
18856 else case e in #(
18857 e)
18858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
18859 printf %s "checking for lex library... " >&6; }
18860 if test ${ac_cv_lib_lex+y}
18861 then :
18862 printf %s "(cached) " >&6
18863 else case e in #(
18864 e)
18865 ac_save_LIBS="$LIBS"
18866 ac_found=false
18867 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
18868 case $ac_cv_lib_lex in #(
18869 'none needed') :
18870 ;; #(
18871 'not found') :
18872 break ;; #(
18873 *) :
18874 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
18875 *) :
18876 ;;
18877 esac
18878
18879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18880 /* end confdefs.h. */
18881 `cat $LEX_OUTPUT_ROOT.c`
18882 _ACEOF
18883 if ac_fn_cxx_try_link "$LINENO"
18884 then :
18885 ac_found=:
18886 fi
18887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18888 conftest$ac_exeext conftest.$ac_ext
18889 if $ac_found; then
18890 break
18891 fi
18892 done
18893 LIBS="$ac_save_LIBS"
18894 ;;
18895 esac
18896 fi
18897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
18898 printf "%s\n" "$ac_cv_lib_lex" >&6; }
18899 if test "$ac_cv_lib_lex" = 'not found'
18900 then :
18901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
18902 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
18903 LEX=: LEXLIB=
18904 elif test "$ac_cv_lib_lex" = 'none needed'
18905 then :
18906 LEXLIB=''
18907 else case e in #(
18908 e) LEXLIB=$ac_cv_lib_lex ;;
18909 esac
18910 fi
18911 ;;
18912 esac
18913 fi
18914
18915
18916 if test "$LEX" != :
18917 then :
18918
18919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
18920 printf %s "checking whether yytext is a pointer... " >&6; }
18921 if test ${ac_cv_prog_lex_yytext_pointer+y}
18922 then :
18923 printf %s "(cached) " >&6
18924 else case e in #(
18925 e) # POSIX says lex can declare yytext either as a pointer or an array; the
18926 # default is implementation-dependent. Figure out which it is, since
18927 # not all implementations provide the %pointer and %array declarations.
18928 ac_cv_prog_lex_yytext_pointer=no
18929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18930 /* end confdefs.h. */
18931
18932 #define YYTEXT_POINTER 1
18933 `cat $LEX_OUTPUT_ROOT.c`
18934 _ACEOF
18935 if ac_fn_cxx_try_compile "$LINENO"
18936 then :
18937 ac_cv_prog_lex_yytext_pointer=yes
18938 fi
18939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18940 ;;
18941 esac
18942 fi
18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
18944 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
18945 if test $ac_cv_prog_lex_yytext_pointer = yes; then
18946
18947 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
18948
18949 fi
18950
18951 fi
18952 rm -f conftest.l $LEX_OUTPUT_ROOT.c
18953
18954 fi
18955 if test "x$LEX" != xflex; then
18956 as_fn_error $? "Could not find flex" "$LINENO" 5
18957 fi
18958
18959 # Extract the first word of "windres", so it can be a program name with args.
18960 set dummy windres; ac_word=$2
18961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18962 printf %s "checking for $ac_word... " >&6; }
18963 if test ${ac_cv_prog_WINDRES+y}
18964 then :
18965 printf %s "(cached) " >&6
18966 else case e in #(
18967 e) if test -n "$WINDRES"; then
18968 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
18969 else
18970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18971 for as_dir in $PATH
18972 do
18973 IFS=$as_save_IFS
18974 case $as_dir in #(((
18975 '') as_dir=./ ;;
18976 */) ;;
18977 *) as_dir=$as_dir/ ;;
18978 esac
18979 for ac_exec_ext in '' $ac_executable_extensions; do
18980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18981 ac_cv_prog_WINDRES="windres"
18982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18983 break 2
18984 fi
18985 done
18986 done
18987 IFS=$as_save_IFS
18988
18989 test -z "$ac_cv_prog_WINDRES" && ac_cv_prog_WINDRES="no"
18990 fi ;;
18991 esac
18992 fi
18993 WINDRES=$ac_cv_prog_WINDRES
18994 if test -n "$WINDRES"; then
18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
18996 printf "%s\n" "$WINDRES" >&6; }
18997 else
18998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18999 printf "%s\n" "no" >&6; }
19000 fi
19001
19002
19003 if test "x$WINDRES" = "xwindres"; then
19004 HAVE_WINDRES_TRUE=
19005 HAVE_WINDRES_FALSE='#'
19006 else
19007 HAVE_WINDRES_TRUE='#'
19008 HAVE_WINDRES_FALSE=
19009 fi
19010
19011
19012
19013 # Check whether --with-gtest was given.
19014 if test ${with_gtest+y}
19015 then :
19016 withval=$with_gtest; GTESTSRC="$withval"
19017 else case e in #(
19018 e) GTESTSRC="/usr/src/googletest/googletest" ;;
19019 esac
19020 fi
19021
19022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Google Test source code" >&5
19023 printf %s "checking Google Test source code... " >&6; }
19024 if test -e "$GTESTSRC/src/gtest-all.cc"; then
19025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
19026 printf "%s\n" "found" >&6; }
19027 else
19028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19029 printf "%s\n" "not found" >&6; }
19030 fi
19031
19032
19033
19034 pkg_failed=no
19035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtest >= 1.12.0" >&5
19036 printf %s "checking for gtest >= 1.12.0... " >&6; }
19037
19038 if test -n "$GTEST_CFLAGS"; then
19039 pkg_cv_GTEST_CFLAGS="$GTEST_CFLAGS"
19040 elif test -n "$PKG_CONFIG"; then
19041 if test -n "$PKG_CONFIG" && \
19042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtest >= 1.12.0\""; } >&5
19043 ($PKG_CONFIG --exists --print-errors "gtest >= 1.12.0") 2>&5
19044 ac_status=$?
19045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19046 test $ac_status = 0; }; then
19047 pkg_cv_GTEST_CFLAGS=`$PKG_CONFIG --cflags "gtest >= 1.12.0" 2>/dev/null`
19048 test "x$?" != "x0" && pkg_failed=yes
19049 else
19050 pkg_failed=yes
19051 fi
19052 else
19053 pkg_failed=untried
19054 fi
19055 if test -n "$GTEST_LIBS"; then
19056 pkg_cv_GTEST_LIBS="$GTEST_LIBS"
19057 elif test -n "$PKG_CONFIG"; then
19058 if test -n "$PKG_CONFIG" && \
19059 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtest >= 1.12.0\""; } >&5
19060 ($PKG_CONFIG --exists --print-errors "gtest >= 1.12.0") 2>&5
19061 ac_status=$?
19062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19063 test $ac_status = 0; }; then
19064 pkg_cv_GTEST_LIBS=`$PKG_CONFIG --libs "gtest >= 1.12.0" 2>/dev/null`
19065 test "x$?" != "x0" && pkg_failed=yes
19066 else
19067 pkg_failed=yes
19068 fi
19069 else
19070 pkg_failed=untried
19071 fi
19072
19073
19074
19075 if test $pkg_failed = yes; then
19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19077 printf "%s\n" "no" >&6; }
19078
19079 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19080 _pkg_short_errors_supported=yes
19081 else
19082 _pkg_short_errors_supported=no
19083 fi
19084 if test $_pkg_short_errors_supported = yes; then
19085 GTEST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtest >= 1.12.0" 2>&1`
19086 else
19087 GTEST_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtest >= 1.12.0" 2>&1`
19088 fi
19089 # Put the nasty error message in config.log where it belongs
19090 echo "$GTEST_PKG_ERRORS" >&5
19091
19092 GTESTLIB='no'
19093 elif test $pkg_failed = untried; then
19094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19095 printf "%s\n" "no" >&6; }
19096 GTESTLIB='no'
19097 else
19098 GTEST_CFLAGS=$pkg_cv_GTEST_CFLAGS
19099 GTEST_LIBS=$pkg_cv_GTEST_LIBS
19100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19101 printf "%s\n" "yes" >&6; }
19102 GTESTLIB='yes'
19103 fi
19104
19105
19106
19107 if test -e "$GTESTSRC/src/gtest-all.cc" || test "x$GTESTLIB" = xyes; then
19108 ENABLE_TESTS_TRUE=
19109 ENABLE_TESTS_FALSE='#'
19110 else
19111 ENABLE_TESTS_TRUE='#'
19112 ENABLE_TESTS_FALSE=
19113 fi
19114
19115 if test -e "$GTESTSRC/src/gtest-all.cc"; then
19116 GOOGLE_TEST_SRC_TRUE=
19117 GOOGLE_TEST_SRC_FALSE='#'
19118 else
19119 GOOGLE_TEST_SRC_TRUE='#'
19120 GOOGLE_TEST_SRC_FALSE=
19121 fi
19122
19123
19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv-library" >&5
19125 printf %s "checking for iconv-library... " >&6; }
19126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19127 /* end confdefs.h. */
19128 #include <stdbool.h>
19129 #include <stdlib.h>
19130 #include <stdio.h>
19131 #include <iconv.h>
19132 int
19133 main (void)
19134 {
19135 iconv_open("US-ASCII", "UTF-8")
19136 ;
19137 return 0;
19138 }
19139 _ACEOF
19140 if ac_fn_cxx_try_link "$LINENO"
19141 then :
19142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
19143 printf "%s\n" "found" >&6; }
19144 else case e in #(
19145 e) as_fn_error $? "Check for iconv-library failed." "$LINENO" 5 ;;
19146 esac
19147 fi
19148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19149 conftest$ac_exeext conftest.$ac_ext;
19150
19151
19152
19153 # Check whether --with-sqlite3 was given.
19154 if test ${with_sqlite3+y}
19155 then :
19156 withval=$with_sqlite3;
19157 if test "$withval" = "no"; then
19158 WANT_SQLITE3="no"
19159 elif test "$withval" = "yes"; then
19160 WANT_SQLITE3="yes"
19161 ac_sqlite3_path=""
19162 else
19163 WANT_SQLITE3="yes"
19164 ac_sqlite3_path="$withval"
19165 fi
19166
19167 else case e in #(
19168 e) WANT_SQLITE3="yes"
19169 ;;
19170 esac
19171 fi
19172
19173
19174 SQLITE3_CFLAGS=""
19175 SQLITE3_LDFLAGS=""
19176 SQLITE3_VERSION=""
19177
19178 if test "x$WANT_SQLITE3" = "xyes"; then
19179
19180 ac_sqlite3_header="sqlite3.h"
19181
19182 sqlite3_version_req=3.6.19
19183 sqlite3_version_req_shorten=`expr $sqlite3_version_req : '\([0-9]*\.[0-9]*\)'`
19184 sqlite3_version_req_major=`expr $sqlite3_version_req : '\([0-9]*\)'`
19185 sqlite3_version_req_minor=`expr $sqlite3_version_req : '[0-9]*\.\([0-9]*\)'`
19186 sqlite3_version_req_micro=`expr $sqlite3_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
19187 if test "x$sqlite3_version_req_micro" = "x" ; then
19188 sqlite3_version_req_micro="0"
19189 fi
19190
19191 sqlite3_version_req_number=`expr $sqlite3_version_req_major \* 1000000 \
19192 \+ $sqlite3_version_req_minor \* 1000 \
19193 \+ $sqlite3_version_req_micro`
19194
19195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SQLite3 library >= $sqlite3_version_req" >&5
19196 printf %s "checking for SQLite3 library >= $sqlite3_version_req... " >&6; }
19197
19198 if test "$ac_sqlite3_path" != ""; then
19199 ac_sqlite3_ldflags="-L$ac_sqlite3_path/lib"
19200 ac_sqlite3_cppflags="-I$ac_sqlite3_path/include"
19201 else
19202 for ac_sqlite3_path_tmp in /usr /usr/local /opt ; do
19203 if test -f "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header" \
19204 && test -r "$ac_sqlite3_path_tmp/include/$ac_sqlite3_header"; then
19205 ac_sqlite3_path=$ac_sqlite3_path_tmp
19206 ac_sqlite3_cppflags="-I$ac_sqlite3_path_tmp/include"
19207 ac_sqlite3_ldflags="-L$ac_sqlite3_path_tmp/lib"
19208 break;
19209 fi
19210 done
19211 fi
19212
19213 ac_sqlite3_ldflags="$ac_sqlite3_ldflags -lsqlite3"
19214
19215 saved_CPPFLAGS="$CPPFLAGS"
19216 CPPFLAGS="$CPPFLAGS $ac_sqlite3_cppflags"
19217
19218 ac_ext=c
19219 ac_cpp='$CPP $CPPFLAGS'
19220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19223
19224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19225 /* end confdefs.h. */
19226
19227 #include <sqlite3.h>
19228 int
19229 main (void)
19230 {
19231
19232 #if (SQLITE_VERSION_NUMBER >= $sqlite3_version_req_number)
19233 /* Everything is okay */
19234 #else
19235 # error SQLite version is too old
19236 #endif
19237
19238
19239 ;
19240 return 0;
19241 }
19242
19243 _ACEOF
19244 if ac_fn_c_try_compile "$LINENO"
19245 then :
19246
19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19248 printf "%s\n" "yes" >&6; }
19249 success="yes"
19250
19251 else case e in #(
19252 e)
19253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19254 printf "%s\n" "not found" >&6; }
19255 success="no"
19256
19257 ;;
19258 esac
19259 fi
19260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19261 ac_ext=cpp
19262 ac_cpp='$CXXCPP $CPPFLAGS'
19263 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19264 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19265 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19266
19267
19268 CPPFLAGS="$saved_CPPFLAGS"
19269
19270 if test "$success" = "yes"; then
19271
19272 SQLITE3_CFLAGS="$ac_sqlite3_cppflags"
19273 SQLITE3_LDFLAGS="$ac_sqlite3_ldflags"
19274
19275 ac_sqlite3_header_path="$ac_sqlite3_path/include/$ac_sqlite3_header"
19276
19277 if test "x$ac_sqlite3_header_path" != "x"; then
19278 ac_sqlite3_version=`cat $ac_sqlite3_header_path \
19279 | grep '#define.*SQLITE_VERSION.*\"' | sed -e 's/.* "//' \
19280 | sed -e 's/"//'`
19281 if test $ac_sqlite3_version != ""; then
19282 SQLITE3_VERSION=$ac_sqlite3_version
19283 else
19284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&5
19285 printf "%s\n" "$as_me: WARNING: Cannot find SQLITE_VERSION macro in sqlite3.h header to retrieve SQLite version!" >&2;}
19286 fi
19287 fi
19288
19289
19290
19291
19292
19293 printf "%s\n" "#define HAVE_SQLITE3 /**/" >>confdefs.h
19294
19295 fi
19296 fi
19297
19298 if test "x$SQLITE3_VERSION" = "x"; then
19299 as_fn_error $? "Could not find SQLite 3 library" "$LINENO" 5
19300 fi
19301
19302
19303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19304 printf %s "checking for X... " >&6; }
19305
19306
19307 # Check whether --with-x was given.
19308 if test ${with_x+y}
19309 then :
19310 withval=$with_x;
19311 fi
19312
19313 # $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know.
19314 if test "x$with_x" = xno; then
19315 # The user explicitly disabled X.
19316 have_x=disabled
19317 else
19318 case $x_includes,$x_libraries in #(
19319 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19320 *,NONE | NONE,*) if test ${ac_cv_have_x+y}
19321 then :
19322 printf %s "(cached) " >&6
19323 else case e in #(
19324 e) # One or both of the vars are not set, and there is no cached value.
19325 ac_x_includes=no
19326 ac_x_libraries=no
19327 # Do we need to do anything special at all?
19328 ac_save_LIBS=$LIBS
19329 LIBS="-lX11 $LIBS"
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19332 #include <X11/Xlib.h>
19333 int
19334 main (void)
19335 {
19336 XrmInitialize ()
19337 ;
19338 return 0;
19339 }
19340 _ACEOF
19341 if ac_fn_cxx_try_link "$LINENO"
19342 then :
19343 # We can compile and link X programs with no special options.
19344 ac_x_includes=
19345 ac_x_libraries=
19346 fi
19347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19348 conftest$ac_exeext conftest.$ac_ext
19349 LIBS="$ac_save_LIBS"
19350 # If that didn't work, only try xmkmf and file system searches
19351 # for native compilation.
19352 if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
19353 then :
19354 rm -f -r conftest.dir
19355 if mkdir conftest.dir; then
19356 cd conftest.dir
19357 cat >Imakefile <<'_ACEOF'
19358 incroot:
19359 @echo incroot='${INCROOT}'
19360 usrlibdir:
19361 @echo usrlibdir='${USRLIBDIR}'
19362 libdir:
19363 @echo libdir='${LIBDIR}'
19364 _ACEOF
19365 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19366 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19367 for ac_var in incroot usrlibdir libdir; do
19368 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19369 done
19370 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19371 for ac_extension in a so sl dylib la dll; do
19372 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19373 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19374 ac_im_usrlibdir=$ac_im_libdir; break
19375 fi
19376 done
19377 # Screen out bogus values from the imake configuration. They are
19378 # bogus both because they are the default anyway, and because
19379 # using them would break gcc on systems where it needs fixed includes.
19380 case $ac_im_incroot in
19381 /usr/include) ac_x_includes= ;;
19382 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19383 esac
19384 case $ac_im_usrlibdir in
19385 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19386 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19387 esac
19388 fi
19389 cd ..
19390 rm -f -r conftest.dir
19391 fi
19392
19393 # Standard set of common directories for X headers.
19394 # Check X11 before X11Rn because it is often a symlink to the current release.
19395 ac_x_header_dirs='
19396 /usr/X11/include
19397 /usr/X11R7/include
19398 /usr/X11R6/include
19399 /usr/X11R5/include
19400 /usr/X11R4/include
19401
19402 /usr/include/X11
19403 /usr/include/X11R7
19404 /usr/include/X11R6
19405 /usr/include/X11R5
19406 /usr/include/X11R4
19407
19408 /usr/local/X11/include
19409 /usr/local/X11R7/include
19410 /usr/local/X11R6/include
19411 /usr/local/X11R5/include
19412 /usr/local/X11R4/include
19413
19414 /usr/local/include/X11
19415 /usr/local/include/X11R7
19416 /usr/local/include/X11R6
19417 /usr/local/include/X11R5
19418 /usr/local/include/X11R4
19419
19420 /opt/X11/include
19421
19422 /usr/X386/include
19423 /usr/x386/include
19424 /usr/XFree86/include/X11
19425
19426 /usr/include
19427 /usr/local/include
19428 /usr/unsupported/include
19429 /usr/athena/include
19430 /usr/local/x11r5/include
19431 /usr/lpp/Xamples/include
19432
19433 /usr/openwin/include
19434 /usr/openwin/share/include'
19435
19436 if test "$ac_x_includes" = no; then
19437 # Guess where to find include files, by looking for Xlib.h.
19438 # First, try using that file with no special directory specified.
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19441 #include <X11/Xlib.h>
19442 _ACEOF
19443 if ac_fn_cxx_try_cpp "$LINENO"
19444 then :
19445 # We can compile using X headers with no special include directory.
19446 ac_x_includes=
19447 else case e in #(
19448 e) for ac_dir in $ac_x_header_dirs; do
19449 if test -r "$ac_dir/X11/Xlib.h"; then
19450 ac_x_includes=$ac_dir
19451 break
19452 fi
19453 done ;;
19454 esac
19455 fi
19456 rm -f conftest.err conftest.i conftest.$ac_ext
19457 fi # $ac_x_includes = no
19458
19459 if test "$ac_x_libraries" = no; then
19460 # Check for the libraries.
19461 # See if we find them without any special options.
19462 # Don't add to $LIBS permanently.
19463 ac_save_LIBS=$LIBS
19464 LIBS="-lX11 $LIBS"
19465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19466 /* end confdefs.h. */
19467 #include <X11/Xlib.h>
19468 int
19469 main (void)
19470 {
19471 XrmInitialize ()
19472 ;
19473 return 0;
19474 }
19475 _ACEOF
19476 if ac_fn_cxx_try_link "$LINENO"
19477 then :
19478 LIBS=$ac_save_LIBS
19479 # We can link X programs with no special library path.
19480 ac_x_libraries=
19481 else case e in #(
19482 e) LIBS=$ac_save_LIBS
19483 for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19484 do
19485 # Don't even attempt the hair of trying to link an X program!
19486 for ac_extension in a so sl dylib la dll; do
19487 if test -r "$ac_dir/libX11.$ac_extension"; then
19488 ac_x_libraries=$ac_dir
19489 break 2
19490 fi
19491 done
19492 done ;;
19493 esac
19494 fi
19495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19496 conftest$ac_exeext conftest.$ac_ext
19497 fi # $ac_x_libraries = no
19498
19499 fi
19500 # Record the results.
19501 case $ac_x_includes,$ac_x_libraries in #(
19502 no,* | *,no | *\'*) :
19503 # Didn't find X, or a directory has "'" in its name.
19504 ac_cv_have_x="have_x=no" ;; #(
19505 *) :
19506 # Record where we found X for the cache.
19507 ac_cv_have_x="have_x=yes\
19508 ac_x_includes='$ac_x_includes'\
19509 ac_x_libraries='$ac_x_libraries'" ;;
19510 esac ;;
19511 esac
19512 fi
19513 ;; #(
19514 *) have_x=yes;;
19515 esac
19516 eval "$ac_cv_have_x"
19517 fi # $with_x != no
19518
19519 if test "$have_x" != yes; then
19520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19521 printf "%s\n" "$have_x" >&6; }
19522 no_x=yes
19523 else
19524 # If each of the values was on the command line, it overrides each guess.
19525 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19526 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19527 # Update the cache value to reflect the command line values.
19528 ac_cv_have_x="have_x=yes\
19529 ac_x_includes='$x_includes'\
19530 ac_x_libraries='$x_libraries'"
19531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19532 printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
19533 fi
19534
19535 if test "$no_x" = yes; then
19536 # Not all programs may use this symbol, but it does not hurt to define it.
19537
19538 printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
19539
19540 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19541 else
19542 if test -n "$x_includes"; then
19543 X_CFLAGS="$X_CFLAGS -I$x_includes"
19544 fi
19545
19546 # It would also be nice to do this for all -L options, not just this one.
19547 if test -n "$x_libraries"; then
19548 X_LIBS="$X_LIBS -L$x_libraries"
19549 # For Solaris; some versions of Sun CC require a space after -R and
19550 # others require no space. Words are not sufficient . . . .
19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19552 printf %s "checking whether -R must be followed by a space... " >&6; }
19553 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19554 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
19555 ac_cxx_werror_flag=yes
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19558
19559 int
19560 main (void)
19561 {
19562
19563 ;
19564 return 0;
19565 }
19566 _ACEOF
19567 if ac_fn_cxx_try_link "$LINENO"
19568 then :
19569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19570 printf "%s\n" "no" >&6; }
19571 X_LIBS="$X_LIBS -R$x_libraries"
19572 else case e in #(
19573 e) LIBS="$ac_xsave_LIBS -R $x_libraries"
19574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19575 /* end confdefs.h. */
19576
19577 int
19578 main (void)
19579 {
19580
19581 ;
19582 return 0;
19583 }
19584 _ACEOF
19585 if ac_fn_cxx_try_link "$LINENO"
19586 then :
19587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19588 printf "%s\n" "yes" >&6; }
19589 X_LIBS="$X_LIBS -R $x_libraries"
19590 else case e in #(
19591 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19592 printf "%s\n" "neither works" >&6; } ;;
19593 esac
19594 fi
19595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19596 conftest$ac_exeext conftest.$ac_ext ;;
19597 esac
19598 fi
19599 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19600 conftest$ac_exeext conftest.$ac_ext
19601 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
19602 LIBS=$ac_xsave_LIBS
19603 fi
19604
19605 # Check for system-dependent libraries X programs must link with.
19606 # Do this before checking for the system-independent R6 libraries
19607 # (-lICE), since we may need -lsocket or whatever for X linking.
19608
19609 if test "$ISC" = yes; then
19610 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19611 else
19612 # Martyn Johnson says this is needed for Ultrix, if the X
19613 # libraries were built with DECnet support. And Karl Berry says
19614 # the Alpha needs dnet_stub (dnet does not exist).
19615 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19618
19619 namespace conftest {
19620 extern "C" int XOpenDisplay ();
19621 }
19622 int
19623 main (void)
19624 {
19625 return conftest::XOpenDisplay ();
19626 ;
19627 return 0;
19628 }
19629 _ACEOF
19630 if ac_fn_cxx_try_link "$LINENO"
19631 then :
19632
19633 else case e in #(
19634 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19635 printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
19636 if test ${ac_cv_lib_dnet_dnet_ntoa+y}
19637 then :
19638 printf %s "(cached) " >&6
19639 else case e in #(
19640 e) ac_check_lib_save_LIBS=$LIBS
19641 LIBS="-ldnet $LIBS"
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644
19645 namespace conftest {
19646 extern "C" int dnet_ntoa ();
19647 }
19648 int
19649 main (void)
19650 {
19651 return conftest::dnet_ntoa ();
19652 ;
19653 return 0;
19654 }
19655 _ACEOF
19656 if ac_fn_cxx_try_link "$LINENO"
19657 then :
19658 ac_cv_lib_dnet_dnet_ntoa=yes
19659 else case e in #(
19660 e) ac_cv_lib_dnet_dnet_ntoa=no ;;
19661 esac
19662 fi
19663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19664 conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_lib_save_LIBS ;;
19666 esac
19667 fi
19668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19669 printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19670 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
19671 then :
19672 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19673 fi
19674
19675 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19677 printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19678 if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
19679 then :
19680 printf %s "(cached) " >&6
19681 else case e in #(
19682 e) ac_check_lib_save_LIBS=$LIBS
19683 LIBS="-ldnet_stub $LIBS"
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19686
19687 namespace conftest {
19688 extern "C" int dnet_ntoa ();
19689 }
19690 int
19691 main (void)
19692 {
19693 return conftest::dnet_ntoa ();
19694 ;
19695 return 0;
19696 }
19697 _ACEOF
19698 if ac_fn_cxx_try_link "$LINENO"
19699 then :
19700 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19701 else case e in #(
19702 e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;;
19703 esac
19704 fi
19705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19706 conftest$ac_exeext conftest.$ac_ext
19707 LIBS=$ac_check_lib_save_LIBS ;;
19708 esac
19709 fi
19710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19711 printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19712 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
19713 then :
19714 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19715 fi
19716
19717 fi ;;
19718 esac
19719 fi
19720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS="$ac_xsave_LIBS"
19723
19724 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
19725 # to get the SysV transport functions.
19726 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19727 # needs -lnsl.
19728 # The nsl library prevents programs from opening the X display
19729 # on Irix 5.2, according to T.E. Dickey.
19730 # The functions gethostbyname, getservbyname, and inet_addr are
19731 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19732 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19733 if test "x$ac_cv_func_gethostbyname" = xyes
19734 then :
19735
19736 fi
19737
19738 if test $ac_cv_func_gethostbyname = no; then
19739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19740 printf %s "checking for gethostbyname in -lnsl... " >&6; }
19741 if test ${ac_cv_lib_nsl_gethostbyname+y}
19742 then :
19743 printf %s "(cached) " >&6
19744 else case e in #(
19745 e) ac_check_lib_save_LIBS=$LIBS
19746 LIBS="-lnsl $LIBS"
19747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19748 /* end confdefs.h. */
19749
19750 namespace conftest {
19751 extern "C" int gethostbyname ();
19752 }
19753 int
19754 main (void)
19755 {
19756 return conftest::gethostbyname ();
19757 ;
19758 return 0;
19759 }
19760 _ACEOF
19761 if ac_fn_cxx_try_link "$LINENO"
19762 then :
19763 ac_cv_lib_nsl_gethostbyname=yes
19764 else case e in #(
19765 e) ac_cv_lib_nsl_gethostbyname=no ;;
19766 esac
19767 fi
19768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19769 conftest$ac_exeext conftest.$ac_ext
19770 LIBS=$ac_check_lib_save_LIBS ;;
19771 esac
19772 fi
19773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19774 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
19775 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
19776 then :
19777 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19778 fi
19779
19780 if test $ac_cv_lib_nsl_gethostbyname = no; then
19781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19782 printf %s "checking for gethostbyname in -lbsd... " >&6; }
19783 if test ${ac_cv_lib_bsd_gethostbyname+y}
19784 then :
19785 printf %s "(cached) " >&6
19786 else case e in #(
19787 e) ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lbsd $LIBS"
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791
19792 namespace conftest {
19793 extern "C" int gethostbyname ();
19794 }
19795 int
19796 main (void)
19797 {
19798 return conftest::gethostbyname ();
19799 ;
19800 return 0;
19801 }
19802 _ACEOF
19803 if ac_fn_cxx_try_link "$LINENO"
19804 then :
19805 ac_cv_lib_bsd_gethostbyname=yes
19806 else case e in #(
19807 e) ac_cv_lib_bsd_gethostbyname=no ;;
19808 esac
19809 fi
19810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19811 conftest$ac_exeext conftest.$ac_ext
19812 LIBS=$ac_check_lib_save_LIBS ;;
19813 esac
19814 fi
19815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19816 printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
19817 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
19818 then :
19819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19820 fi
19821
19822 fi
19823 fi
19824
19825 # [email protected] says without -lsocket,
19826 # socket/setsockopt and other routines are undefined under SCO ODT
19827 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19828 # on later versions), says Simon Leinen: it contains gethostby*
19829 # variants that don't use the name server (or something). -lsocket
19830 # must be given before -lnsl if both are needed. We assume that
19831 # if connect needs -lnsl, so does gethostbyname.
19832 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
19833 if test "x$ac_cv_func_connect" = xyes
19834 then :
19835
19836 fi
19837
19838 if test $ac_cv_func_connect = no; then
19839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19840 printf %s "checking for connect in -lsocket... " >&6; }
19841 if test ${ac_cv_lib_socket_connect+y}
19842 then :
19843 printf %s "(cached) " >&6
19844 else case e in #(
19845 e) ac_check_lib_save_LIBS=$LIBS
19846 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848 /* end confdefs.h. */
19849
19850 namespace conftest {
19851 extern "C" int connect ();
19852 }
19853 int
19854 main (void)
19855 {
19856 return conftest::connect ();
19857 ;
19858 return 0;
19859 }
19860 _ACEOF
19861 if ac_fn_cxx_try_link "$LINENO"
19862 then :
19863 ac_cv_lib_socket_connect=yes
19864 else case e in #(
19865 e) ac_cv_lib_socket_connect=no ;;
19866 esac
19867 fi
19868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19869 conftest$ac_exeext conftest.$ac_ext
19870 LIBS=$ac_check_lib_save_LIBS ;;
19871 esac
19872 fi
19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19874 printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
19875 if test "x$ac_cv_lib_socket_connect" = xyes
19876 then :
19877 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19878 fi
19879
19880 fi
19881
19882 # Guillermo Gomez says -lposix is necessary on A/UX.
19883 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
19884 if test "x$ac_cv_func_remove" = xyes
19885 then :
19886
19887 fi
19888
19889 if test $ac_cv_func_remove = no; then
19890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19891 printf %s "checking for remove in -lposix... " >&6; }
19892 if test ${ac_cv_lib_posix_remove+y}
19893 then :
19894 printf %s "(cached) " >&6
19895 else case e in #(
19896 e) ac_check_lib_save_LIBS=$LIBS
19897 LIBS="-lposix $LIBS"
19898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19899 /* end confdefs.h. */
19900
19901 namespace conftest {
19902 extern "C" int remove ();
19903 }
19904 int
19905 main (void)
19906 {
19907 return conftest::remove ();
19908 ;
19909 return 0;
19910 }
19911 _ACEOF
19912 if ac_fn_cxx_try_link "$LINENO"
19913 then :
19914 ac_cv_lib_posix_remove=yes
19915 else case e in #(
19916 e) ac_cv_lib_posix_remove=no ;;
19917 esac
19918 fi
19919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19920 conftest$ac_exeext conftest.$ac_ext
19921 LIBS=$ac_check_lib_save_LIBS ;;
19922 esac
19923 fi
19924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19925 printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
19926 if test "x$ac_cv_lib_posix_remove" = xyes
19927 then :
19928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19929 fi
19930
19931 fi
19932
19933 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19934 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19935 if test "x$ac_cv_func_shmat" = xyes
19936 then :
19937
19938 fi
19939
19940 if test $ac_cv_func_shmat = no; then
19941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19942 printf %s "checking for shmat in -lipc... " >&6; }
19943 if test ${ac_cv_lib_ipc_shmat+y}
19944 then :
19945 printf %s "(cached) " >&6
19946 else case e in #(
19947 e) ac_check_lib_save_LIBS=$LIBS
19948 LIBS="-lipc $LIBS"
19949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950 /* end confdefs.h. */
19951
19952 namespace conftest {
19953 extern "C" int shmat ();
19954 }
19955 int
19956 main (void)
19957 {
19958 return conftest::shmat ();
19959 ;
19960 return 0;
19961 }
19962 _ACEOF
19963 if ac_fn_cxx_try_link "$LINENO"
19964 then :
19965 ac_cv_lib_ipc_shmat=yes
19966 else case e in #(
19967 e) ac_cv_lib_ipc_shmat=no ;;
19968 esac
19969 fi
19970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19971 conftest$ac_exeext conftest.$ac_ext
19972 LIBS=$ac_check_lib_save_LIBS ;;
19973 esac
19974 fi
19975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19976 printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
19977 if test "x$ac_cv_lib_ipc_shmat" = xyes
19978 then :
19979 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19980 fi
19981
19982 fi
19983 fi
19984
19985 # Check for libraries that X11R6 Xt/Xaw programs need.
19986 ac_save_LDFLAGS=$LDFLAGS
19987 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19988 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19989 # check for ICE first), but we must link in the order -lSM -lICE or
19990 # we get undefined symbols. So assume we have SM if we have ICE.
19991 # These have to be linked with before -lX11, unlike the other
19992 # libraries we check for below, so use a different variable.
19993 # John Interrante, Karl Berry
19994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19995 printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
19996 if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
19997 then :
19998 printf %s "(cached) " >&6
19999 else case e in #(
20000 e) ac_check_lib_save_LIBS=$LIBS
20001 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20003 /* end confdefs.h. */
20004
20005 namespace conftest {
20006 extern "C" int IceConnectionNumber ();
20007 }
20008 int
20009 main (void)
20010 {
20011 return conftest::IceConnectionNumber ();
20012 ;
20013 return 0;
20014 }
20015 _ACEOF
20016 if ac_fn_cxx_try_link "$LINENO"
20017 then :
20018 ac_cv_lib_ICE_IceConnectionNumber=yes
20019 else case e in #(
20020 e) ac_cv_lib_ICE_IceConnectionNumber=no ;;
20021 esac
20022 fi
20023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20024 conftest$ac_exeext conftest.$ac_ext
20025 LIBS=$ac_check_lib_save_LIBS ;;
20026 esac
20027 fi
20028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20029 printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20030 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
20031 then :
20032 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20033 fi
20034
20035 LDFLAGS=$ac_save_LDFLAGS
20036
20037 fi
20038
20039
20040
20041
20042
20043
20044 if test -n "$ac_tool_prefix"; then
20045 for ac_prog in qmake-qt6 qmake6
20046 do
20047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20050 printf %s "checking for $ac_word... " >&6; }
20051 if test ${ac_cv_prog_QMAKE+y}
20052 then :
20053 printf %s "(cached) " >&6
20054 else case e in #(
20055 e) if test -n "$QMAKE"; then
20056 ac_cv_prog_QMAKE="$QMAKE" # Let the user override the test.
20057 else
20058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20059 for as_dir in $PATH
20060 do
20061 IFS=$as_save_IFS
20062 case $as_dir in #(((
20063 '') as_dir=./ ;;
20064 */) ;;
20065 *) as_dir=$as_dir/ ;;
20066 esac
20067 for ac_exec_ext in '' $ac_executable_extensions; do
20068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20069 ac_cv_prog_QMAKE="$ac_tool_prefix$ac_prog"
20070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20071 break 2
20072 fi
20073 done
20074 done
20075 IFS=$as_save_IFS
20076
20077 fi ;;
20078 esac
20079 fi
20080 QMAKE=$ac_cv_prog_QMAKE
20081 if test -n "$QMAKE"; then
20082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
20083 printf "%s\n" "$QMAKE" >&6; }
20084 else
20085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20086 printf "%s\n" "no" >&6; }
20087 fi
20088
20089
20090 test -n "$QMAKE" && break
20091 done
20092 fi
20093 if test -z "$QMAKE"; then
20094 ac_ct_QMAKE=$QMAKE
20095 for ac_prog in qmake-qt6 qmake6
20096 do
20097 # Extract the first word of "$ac_prog", so it can be a program name with args.
20098 set dummy $ac_prog; ac_word=$2
20099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20100 printf %s "checking for $ac_word... " >&6; }
20101 if test ${ac_cv_prog_ac_ct_QMAKE+y}
20102 then :
20103 printf %s "(cached) " >&6
20104 else case e in #(
20105 e) if test -n "$ac_ct_QMAKE"; then
20106 ac_cv_prog_ac_ct_QMAKE="$ac_ct_QMAKE" # Let the user override the test.
20107 else
20108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20109 for as_dir in $PATH
20110 do
20111 IFS=$as_save_IFS
20112 case $as_dir in #(((
20113 '') as_dir=./ ;;
20114 */) ;;
20115 *) as_dir=$as_dir/ ;;
20116 esac
20117 for ac_exec_ext in '' $ac_executable_extensions; do
20118 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20119 ac_cv_prog_ac_ct_QMAKE="$ac_prog"
20120 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20121 break 2
20122 fi
20123 done
20124 done
20125 IFS=$as_save_IFS
20126
20127 fi ;;
20128 esac
20129 fi
20130 ac_ct_QMAKE=$ac_cv_prog_ac_ct_QMAKE
20131 if test -n "$ac_ct_QMAKE"; then
20132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_QMAKE" >&5
20133 printf "%s\n" "$ac_ct_QMAKE" >&6; }
20134 else
20135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20136 printf "%s\n" "no" >&6; }
20137 fi
20138
20139
20140 test -n "$ac_ct_QMAKE" && break
20141 done
20142
20143 if test "x$ac_ct_QMAKE" = x; then
20144 QMAKE="false"
20145 else
20146 case $cross_compiling:$ac_tool_warned in
20147 yes:)
20148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20149 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20150 ac_tool_warned=yes ;;
20151 esac
20152 QMAKE=$ac_ct_QMAKE
20153 fi
20154 fi
20155
20156 if test "x$QMAKE" = "xfalse"; then
20157 as_fn_error $? "Failed to find qmake-qt6 or qmake6" "$LINENO" 5
20158 fi
20159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Qt" >&5
20160 printf %s "checking for Qt... " >&6; }
20161 # If we have Qt6 or later in the path, we're golden
20162 ver=`$QMAKE --version | grep -o "Qt version ."`
20163 if test "$ver" = "Qt version 6"; then
20164 have_qt=yes
20165 # This pro file dumps qmake's variables, but it only works on Qt 6 or later
20166 am_have_qt_pro=`mktemp`
20167 am_have_qt_makefile=`mktemp`
20168 # http://doc.qt.io/qt-6/qmake-variable-reference.html#qt
20169 cat > $am_have_qt_pro << EOF
20170 qtHaveModule(axcontainer): QT += axcontainer
20171 qtHaveModule(axserver): QT += axserver
20172 qtHaveModule(concurrent): QT += concurrent
20173 qtHaveModule(core): QT += core
20174 qtHaveModule(dbus): QT += dbus
20175 qtHaveModule(declarative): QT += declarative
20176 qtHaveModule(designer): QT += designer
20177 qtHaveModule(gui): QT += gui
20178 qtHaveModule(help): QT += help
20179 qtHaveModule(multimedia): QT += multimedia
20180 qtHaveModule(multimediawidgets): QT += multimediawidgets
20181 qtHaveModule(network): QT += network
20182 qtHaveModule(printsupport): QT += printsupport
20183 qtHaveModule(qml): QT += qml
20184 qtHaveModule(qmltest): QT += qmltest
20185 qtHaveModule(x11extras): QT += x11extras
20186 qtHaveModule(script): QT += script
20187 qtHaveModule(scripttools): QT += scripttools
20188 qtHaveModule(sensors): QT += sensors
20189 qtHaveModule(serialport): QT += serialport
20190 qtHaveModule(sql): QT += sql
20191 qtHaveModule(svg): QT += svg
20192 qtHaveModule(testlib): QT += testlib
20193 qtHaveModule(uitools): QT += uitools
20194 qtHaveModule(webkit): QT += webkit
20195 qtHaveModule(webkitwidgets): QT += webkitwidgets
20196 qtHaveModule(xml): QT += xml
20197 qtHaveModule(xmlpatterns): QT += xmlpatterns
20198 percent.target = %
20199 percent.commands = @echo -n "\$(\$(@))\ "
20200 QMAKE_EXTRA_TARGETS += percent
20201 EOF
20202 $QMAKE $am_have_qt_pro -o $am_have_qt_makefile
20203 QT_CXXFLAGS=`make -s -f $am_have_qt_makefile CXXFLAGS INCPATH`
20204 QT_LIBS=`make -s -f $am_have_qt_makefile LIBS`
20205 rm $am_have_qt_pro $am_have_qt_makefile
20206
20207 # Look for specific tools in $PATH
20208 for ac_prog in moc.exe moc-qt6 moc
20209 do
20210 # Extract the first word of "$ac_prog", so it can be a program name with args.
20211 set dummy $ac_prog; ac_word=$2
20212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20213 printf %s "checking for $ac_word... " >&6; }
20214 if test ${ac_cv_path_QT_MOC+y}
20215 then :
20216 printf %s "(cached) " >&6
20217 else case e in #(
20218 e) case $QT_MOC in
20219 [\\/]* | ?:[\\/]*)
20220 ac_cv_path_QT_MOC="$QT_MOC" # Let the user override the test with a path.
20221 ;;
20222 *)
20223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20224 as_dummy="/usr/lib64/qt6/libexec:/usr/lib/qt6/libexec:/mingw64/share/qt6/bin:$PATH"
20225 for as_dir in $as_dummy
20226 do
20227 IFS=$as_save_IFS
20228 case $as_dir in #(((
20229 '') as_dir=./ ;;
20230 */) ;;
20231 *) as_dir=$as_dir/ ;;
20232 esac
20233 for ac_exec_ext in '' $ac_executable_extensions; do
20234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20235 ac_cv_path_QT_MOC="$as_dir$ac_word$ac_exec_ext"
20236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20237 break 2
20238 fi
20239 done
20240 done
20241 IFS=$as_save_IFS
20242
20243 ;;
20244 esac ;;
20245 esac
20246 fi
20247 QT_MOC=$ac_cv_path_QT_MOC
20248 if test -n "$QT_MOC"; then
20249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_MOC" >&5
20250 printf "%s\n" "$QT_MOC" >&6; }
20251 else
20252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20253 printf "%s\n" "no" >&6; }
20254 fi
20255
20256
20257 test -n "$QT_MOC" && break
20258 done
20259
20260 for ac_prog in uic.exe uic-qt6 uic
20261 do
20262 # Extract the first word of "$ac_prog", so it can be a program name with args.
20263 set dummy $ac_prog; ac_word=$2
20264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20265 printf %s "checking for $ac_word... " >&6; }
20266 if test ${ac_cv_path_QT_UIC+y}
20267 then :
20268 printf %s "(cached) " >&6
20269 else case e in #(
20270 e) case $QT_UIC in
20271 [\\/]* | ?:[\\/]*)
20272 ac_cv_path_QT_UIC="$QT_UIC" # Let the user override the test with a path.
20273 ;;
20274 *)
20275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20276 as_dummy="/usr/lib64/qt6/libexec:/usr/lib/qt6/libexec:/mingw64/share/qt6/bin:$PATH"
20277 for as_dir in $as_dummy
20278 do
20279 IFS=$as_save_IFS
20280 case $as_dir in #(((
20281 '') as_dir=./ ;;
20282 */) ;;
20283 *) as_dir=$as_dir/ ;;
20284 esac
20285 for ac_exec_ext in '' $ac_executable_extensions; do
20286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20287 ac_cv_path_QT_UIC="$as_dir$ac_word$ac_exec_ext"
20288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20289 break 2
20290 fi
20291 done
20292 done
20293 IFS=$as_save_IFS
20294
20295 ;;
20296 esac ;;
20297 esac
20298 fi
20299 QT_UIC=$ac_cv_path_QT_UIC
20300 if test -n "$QT_UIC"; then
20301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_UIC" >&5
20302 printf "%s\n" "$QT_UIC" >&6; }
20303 else
20304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20305 printf "%s\n" "no" >&6; }
20306 fi
20307
20308
20309 test -n "$QT_UIC" && break
20310 done
20311
20312 for ac_prog in rcc.exe rcc-qt6 rcc
20313 do
20314 # Extract the first word of "$ac_prog", so it can be a program name with args.
20315 set dummy $ac_prog; ac_word=$2
20316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20317 printf %s "checking for $ac_word... " >&6; }
20318 if test ${ac_cv_path_QT_RCC+y}
20319 then :
20320 printf %s "(cached) " >&6
20321 else case e in #(
20322 e) case $QT_RCC in
20323 [\\/]* | ?:[\\/]*)
20324 ac_cv_path_QT_RCC="$QT_RCC" # Let the user override the test with a path.
20325 ;;
20326 *)
20327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20328 as_dummy="/usr/lib64/qt6/libexec:/usr/lib/qt6/libexec:/mingw64/share/qt6/bin:$PATH"
20329 for as_dir in $as_dummy
20330 do
20331 IFS=$as_save_IFS
20332 case $as_dir in #(((
20333 '') as_dir=./ ;;
20334 */) ;;
20335 *) as_dir=$as_dir/ ;;
20336 esac
20337 for ac_exec_ext in '' $ac_executable_extensions; do
20338 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20339 ac_cv_path_QT_RCC="$as_dir$ac_word$ac_exec_ext"
20340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20341 break 2
20342 fi
20343 done
20344 done
20345 IFS=$as_save_IFS
20346
20347 ;;
20348 esac ;;
20349 esac
20350 fi
20351 QT_RCC=$ac_cv_path_QT_RCC
20352 if test -n "$QT_RCC"; then
20353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_RCC" >&5
20354 printf "%s\n" "$QT_RCC" >&6; }
20355 else
20356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20357 printf "%s\n" "no" >&6; }
20358 fi
20359
20360
20361 test -n "$QT_RCC" && break
20362 done
20363
20364 for ac_prog in lrelease-qt6.exe lrelease-qt6 lrelease
20365 do
20366 # Extract the first word of "$ac_prog", so it can be a program name with args.
20367 set dummy $ac_prog; ac_word=$2
20368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20369 printf %s "checking for $ac_word... " >&6; }
20370 if test ${ac_cv_path_QT_LRELEASE+y}
20371 then :
20372 printf %s "(cached) " >&6
20373 else case e in #(
20374 e) case $QT_LRELEASE in
20375 [\\/]* | ?:[\\/]*)
20376 ac_cv_path_QT_LRELEASE="$QT_LRELEASE" # Let the user override the test with a path.
20377 ;;
20378 *)
20379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20380 as_dummy="/usr/lib/qt6/bin:$PATH"
20381 for as_dir in $as_dummy
20382 do
20383 IFS=$as_save_IFS
20384 case $as_dir in #(((
20385 '') as_dir=./ ;;
20386 */) ;;
20387 *) as_dir=$as_dir/ ;;
20388 esac
20389 for ac_exec_ext in '' $ac_executable_extensions; do
20390 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20391 ac_cv_path_QT_LRELEASE="$as_dir$ac_word$ac_exec_ext"
20392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20393 break 2
20394 fi
20395 done
20396 done
20397 IFS=$as_save_IFS
20398
20399 ;;
20400 esac ;;
20401 esac
20402 fi
20403 QT_LRELEASE=$ac_cv_path_QT_LRELEASE
20404 if test -n "$QT_LRELEASE"; then
20405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_LRELEASE" >&5
20406 printf "%s\n" "$QT_LRELEASE" >&6; }
20407 else
20408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20409 printf "%s\n" "no" >&6; }
20410 fi
20411
20412
20413 test -n "$QT_LRELEASE" && break
20414 done
20415
20416 for ac_prog in lconvert-qt6.exe lconvert-qt6 lconvert
20417 do
20418 # Extract the first word of "$ac_prog", so it can be a program name with args.
20419 set dummy $ac_prog; ac_word=$2
20420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20421 printf %s "checking for $ac_word... " >&6; }
20422 if test ${ac_cv_path_QT_LCONVERT+y}
20423 then :
20424 printf %s "(cached) " >&6
20425 else case e in #(
20426 e) case $QT_LCONVERT in
20427 [\\/]* | ?:[\\/]*)
20428 ac_cv_path_QT_LCONVERT="$QT_LCONVERT" # Let the user override the test with a path.
20429 ;;
20430 *)
20431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20432 as_dummy="/usr/lib/qt6/bin:$PATH"
20433 for as_dir in $as_dummy
20434 do
20435 IFS=$as_save_IFS
20436 case $as_dir in #(((
20437 '') as_dir=./ ;;
20438 */) ;;
20439 *) as_dir=$as_dir/ ;;
20440 esac
20441 for ac_exec_ext in '' $ac_executable_extensions; do
20442 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20443 ac_cv_path_QT_LCONVERT="$as_dir$ac_word$ac_exec_ext"
20444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20445 break 2
20446 fi
20447 done
20448 done
20449 IFS=$as_save_IFS
20450
20451 ;;
20452 esac ;;
20453 esac
20454 fi
20455 QT_LCONVERT=$ac_cv_path_QT_LCONVERT
20456 if test -n "$QT_LCONVERT"; then
20457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_LCONVERT" >&5
20458 printf "%s\n" "$QT_LCONVERT" >&6; }
20459 else
20460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20461 printf "%s\n" "no" >&6; }
20462 fi
20463
20464
20465 test -n "$QT_LCONVERT" && break
20466 done
20467
20468 for ac_prog in lupdate-qt6.exe lupdate-qt6 lupdate
20469 do
20470 # Extract the first word of "$ac_prog", so it can be a program name with args.
20471 set dummy $ac_prog; ac_word=$2
20472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20473 printf %s "checking for $ac_word... " >&6; }
20474 if test ${ac_cv_path_QT_LUPDATE+y}
20475 then :
20476 printf %s "(cached) " >&6
20477 else case e in #(
20478 e) case $QT_LUPDATE in
20479 [\\/]* | ?:[\\/]*)
20480 ac_cv_path_QT_LUPDATE="$QT_LUPDATE" # Let the user override the test with a path.
20481 ;;
20482 *)
20483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20484 as_dummy="/usr/lib/qt6/bin:$PATH"
20485 for as_dir in $as_dummy
20486 do
20487 IFS=$as_save_IFS
20488 case $as_dir in #(((
20489 '') as_dir=./ ;;
20490 */) ;;
20491 *) as_dir=$as_dir/ ;;
20492 esac
20493 for ac_exec_ext in '' $ac_executable_extensions; do
20494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20495 ac_cv_path_QT_LUPDATE="$as_dir$ac_word$ac_exec_ext"
20496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20497 break 2
20498 fi
20499 done
20500 done
20501 IFS=$as_save_IFS
20502
20503 ;;
20504 esac ;;
20505 esac
20506 fi
20507 QT_LUPDATE=$ac_cv_path_QT_LUPDATE
20508 if test -n "$QT_LUPDATE"; then
20509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $QT_LUPDATE" >&5
20510 printf "%s\n" "$QT_LUPDATE" >&6; }
20511 else
20512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20513 printf "%s\n" "no" >&6; }
20514 fi
20515
20516
20517 test -n "$QT_LUPDATE" && break
20518 done
20519
20520
20521 # Get Qt version from qmake
20522 QT_DIR=`$QMAKE --version | grep -o -E /.+`
20523
20524 # All variables are defined, report the result
20525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_qt:
20526 QT_CXXFLAGS=$QT_CXXFLAGS
20527 QT_DIR=$QT_DIR
20528 QT_LIBS=$QT_LIBS
20529 QT_UIC=$QT_UIC
20530 QT_MOC=$QT_MOC
20531 QT_RCC=$QT_RCC
20532 QT_LRELEASE=$QT_LRELEASE
20533 QT_LCONVERT=$QT_LCONVERT
20534 QT_LUPDATE=$QT_LUPDATE" >&5
20535 printf "%s\n" "$have_qt:
20536 QT_CXXFLAGS=$QT_CXXFLAGS
20537 QT_DIR=$QT_DIR
20538 QT_LIBS=$QT_LIBS
20539 QT_UIC=$QT_UIC
20540 QT_MOC=$QT_MOC
20541 QT_RCC=$QT_RCC
20542 QT_LRELEASE=$QT_LRELEASE
20543 QT_LCONVERT=$QT_LCONVERT
20544 QT_LUPDATE=$QT_LUPDATE" >&6; }
20545 else
20546 # Qt was not found
20547 have_qt=no
20548 QT_CXXFLAGS=
20549 QT_DIR=
20550 QT_LIBS=
20551 QT_UIC=
20552 QT_MOC=
20553 QT_RCC=
20554 QT_LRELEASE=
20555 QT_LCONVERT=
20556 QT_LUPDATE=
20557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_qt" >&5
20558 printf "%s\n" "$have_qt" >&6; }
20559 fi
20560
20561
20562
20563
20564
20565
20566
20567
20568
20569
20570 #### Being paranoid:
20571 if test x"$have_qt" = xyes; then
20572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking correct functioning of Qt installation" >&5
20573 printf %s "checking correct functioning of Qt installation... " >&6; }
20574 if test ${ax_cv_qt_test_result+y}
20575 then :
20576 printf %s "(cached) " >&6
20577 else case e in #(
20578 e)
20579 cat > ax_qt_test.h << EOF
20580 #include <qobject.h>
20581 class Test : public QObject
20582 {
20583 Q_OBJECT
20584 public:
20585 Test() {}
20586 ~Test() {}
20587 public slots:
20588 void receive() {}
20589 signals:
20590 void send();
20591 };
20592 EOF
20593
20594 cat > ax_qt_main.$ac_ext << EOF
20595 #include "ax_qt_test.h"
20596 #include <qapplication.h>
20597 int main( int argc, char **argv )
20598 {
20599 QApplication app( argc, argv );
20600 Test t;
20601 QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) );
20602 }
20603 EOF
20604
20605 ax_cv_qt_test_result="failure"
20606 ax_try_1="$QT_MOC ax_qt_test.h -o moc_ax_qt_test.$ac_ext >/dev/null 2>/dev/null"
20607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ax_try_1\""; } >&5
20608 (eval $ax_try_1) 2>&5
20609 ac_status=$?
20610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20611 test $ac_status = 0; }
20612 if test x"$ac_status" != x0; then
20613 echo "$ax_err_1" >&5
20614 echo "configure: could not run $QT_MOC on:" >&5
20615 cat ax_qt_test.h >&5
20616 else
20617 ax_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_ax_qt_test.o moc_ax_qt_test.$ac_ext >/dev/null 2>/dev/null"
20618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ax_try_2\""; } >&5
20619 (eval $ax_try_2) 2>&5
20620 ac_status=$?
20621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20622 test $ac_status = 0; }
20623 if test x"$ac_status" != x0; then
20624 echo "$ax_err_2" >&5
20625 echo "configure: could not compile:" >&5
20626 cat moc_ax_qt_test.$ac_ext >&5
20627 else
20628 ax_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o ax_qt_main.o ax_qt_main.$ac_ext >/dev/null 2>/dev/null"
20629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ax_try_3\""; } >&5
20630 (eval $ax_try_3) 2>&5
20631 ac_status=$?
20632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20633 test $ac_status = 0; }
20634 if test x"$ac_status" != x0; then
20635 echo "$ax_err_3" >&5
20636 echo "configure: could not compile:" >&5
20637 cat ax_qt_main.$ac_ext >&5
20638 else
20639 ax_try_4="$CXX -o ax_qt_main ax_qt_main.o moc_ax_qt_test.o $QT_LIBS $LIBS >/dev/null 2>/dev/null"
20640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ax_try_4\""; } >&5
20641 (eval $ax_try_4) 2>&5
20642 ac_status=$?
20643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20644 test $ac_status = 0; }
20645 if test x"$ac_status" != x0; then
20646 echo "$ax_err_4" >&5
20647 else
20648 ax_cv_qt_test_result="success"
20649 fi
20650 fi
20651 fi
20652 fi
20653 ;;
20654 esac
20655 fi
20656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_qt_test_result" >&5
20657 printf "%s\n" "$ax_cv_qt_test_result" >&6; }
20658 if test x"$ax_cv_qt_test_result" = "xfailure"; then
20659 as_fn_error $? "Failed to find matching components of a complete
20660 Qt installation. Try using more options,
20661 see ./configure --help." "$LINENO" 5
20662 fi
20663
20664 rm -f ax_qt_test.h moc_ax_qt_test.$ac_ext moc_ax_qt_test.o \
20665 ax_qt_main.$ac_ext ax_qt_main.o ax_qt_main
20666 fi
20667
20668 if test "x$have_qt" = "xno"; then
20669 as_fn_error $? "Could not locate Qt6 installation" "$LINENO" 5
20670 fi
20671
20672 ac_config_headers="$ac_config_headers config.h"
20673
20674 ac_fn_cxx_check_header_compile "$LINENO" "cassert" "ac_cv_header_cassert" "$ac_includes_default"
20675 if test "x$ac_cv_header_cassert" = xyes
20676 then :
20677 printf "%s\n" "#define HAVE_CASSERT 1" >>confdefs.h
20678
20679 fi
20680 ac_fn_cxx_check_header_compile "$LINENO" "ios" "ac_cv_header_ios" "$ac_includes_default"
20681 if test "x$ac_cv_header_ios" = xyes
20682 then :
20683 printf "%s\n" "#define HAVE_IOS 1" >>confdefs.h
20684
20685 fi
20686 ac_fn_cxx_check_header_compile "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
20687 if test "x$ac_cv_header_sstream" = xyes
20688 then :
20689 printf "%s\n" "#define HAVE_SSTREAM 1" >>confdefs.h
20690
20691 fi
20692 ac_fn_cxx_check_header_compile "$LINENO" "fstream" "ac_cv_header_fstream" "$ac_includes_default"
20693 if test "x$ac_cv_header_fstream" = xyes
20694 then :
20695 printf "%s\n" "#define HAVE_FSTREAM 1" >>confdefs.h
20696
20697 fi
20698 ac_fn_cxx_check_header_compile "$LINENO" "string" "ac_cv_header_string" "$ac_includes_default"
20699 if test "x$ac_cv_header_string" = xyes
20700 then :
20701 printf "%s\n" "#define HAVE_STRING 1" >>confdefs.h
20702
20703 fi
20704
20705 ac_config_files="$ac_config_files Makefile anymeal/Makefile anymeal/locale/Makefile anymeal/locale/de/Makefile anymeal/locale/it/Makefile anymeal/locale/ka/Makefile anymeal/locale/nl/Makefile anymeal/locale/fr/Makefile anymeal/locale/sl/Makefile tests/Makefile tests/fixtures/Makefile"
20706
20707 cat >confcache <<\_ACEOF
20708 # This file is a shell script that caches the results of configure
20709 # tests run on this system so they can be shared between configure
20710 # scripts and configure runs, see configure's option --config-cache.
20711 # It is not useful on other systems. If it contains results you don't
20712 # want to keep, you may remove or edit it.
20713 #
20714 # config.status only pays attention to the cache file if you give it
20715 # the --recheck option to rerun configure.
20716 #
20717 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20718 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20719 # following values.
20720
20721 _ACEOF
20722
20723 # The following way of writing the cache mishandles newlines in values,
20724 # but we know of no workaround that is simple, portable, and efficient.
20725 # So, we kill variables containing newlines.
20726 # Ultrix sh set writes to stderr and can't be redirected directly,
20727 # and sets the high bit in the cache file unless we assign to the vars.
20728 (
20729 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20730 eval ac_val=\$$ac_var
20731 case $ac_val in #(
20732 *${as_nl}*)
20733 case $ac_var in #(
20734 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20735 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20736 esac
20737 case $ac_var in #(
20738 _ | IFS | as_nl) ;; #(
20739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20740 *) { eval $ac_var=; unset $ac_var;} ;;
20741 esac ;;
20742 esac
20743 done
20744
20745 (set) 2>&1 |
20746 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20747 *${as_nl}ac_space=\ *)
20748 # 'set' does not quote correctly, so add quotes: double-quote
20749 # substitution turns \\\\ into \\, and sed turns \\ into \.
20750 sed -n \
20751 "s/'/'\\\\''/g;
20752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20753 ;; #(
20754 *)
20755 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20756 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20757 ;;
20758 esac |
20759 sort
20760 ) |
20761 sed '
20762 /^ac_cv_env_/b end
20763 t clear
20764 :clear
20765 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20766 t end
20767 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20768 :end' >>confcache
20769 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20770 if test -w "$cache_file"; then
20771 if test "x$cache_file" != "x/dev/null"; then
20772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20773 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20774 if test ! -f "$cache_file" || test -h "$cache_file"; then
20775 cat confcache >"$cache_file"
20776 else
20777 case $cache_file in #(
20778 */* | ?:*)
20779 mv -f confcache "$cache_file"$$ &&
20780 mv -f "$cache_file"$$ "$cache_file" ;; #(
20781 *)
20782 mv -f confcache "$cache_file" ;;
20783 esac
20784 fi
20785 fi
20786 else
20787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20788 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20789 fi
20790 fi
20791 rm -f confcache
20792
20793 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20794 # Let make expand exec_prefix.
20795 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20796
20797 DEFS=-DHAVE_CONFIG_H
20798
20799 ac_libobjs=
20800 ac_ltlibobjs=
20801 U=
20802 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20803 # 1. Remove the extension, and $U if already installed.
20804 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20805 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20806 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20807 # will be set to the directory where LIBOBJS objects are built.
20808 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20809 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20810 done
20811 LIBOBJS=$ac_libobjs
20812
20813 LTLIBOBJS=$ac_ltlibobjs
20814
20815
20816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20817 printf %s "checking that generated files are newer than configure... " >&6; }
20818 if test -n "$am_sleep_pid"; then
20819 # Hide warnings about reused PIDs.
20820 wait $am_sleep_pid 2>/dev/null
20821 fi
20822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20823 printf "%s\n" "done" >&6; }
20824 case $enable_silent_rules in # (((
20825 yes) AM_DEFAULT_VERBOSITY=0;;
20826 no) AM_DEFAULT_VERBOSITY=1;;
20827 esac
20828 if test $am_cv_make_support_nested_variables = yes; then
20829 AM_V='$(V)'
20830 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20831 else
20832 AM_V=$AM_DEFAULT_VERBOSITY
20833 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20834 fi
20835
20836 if test -n "$EXEEXT"; then
20837 am__EXEEXT_TRUE=
20838 am__EXEEXT_FALSE='#'
20839 else
20840 am__EXEEXT_TRUE='#'
20841 am__EXEEXT_FALSE=
20842 fi
20843
20844 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20845 as_fn_error $? "conditional \"AMDEP\" was never defined.
20846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20847 fi
20848 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20849 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20851 fi
20852 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20853 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20855 fi
20856 if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
20857 as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
20858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20859 fi
20860 if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
20861 as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
20862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20863 fi
20864 if test -z "${GOOGLE_TEST_SRC_TRUE}" && test -z "${GOOGLE_TEST_SRC_FALSE}"; then
20865 as_fn_error $? "conditional \"GOOGLE_TEST_SRC\" was never defined.
20866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20867 fi
20868
20869 : "${CONFIG_STATUS=./config.status}"
20870 ac_write_fail=0
20871 ac_clean_files_save=$ac_clean_files
20872 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20874 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20875 as_write_fail=0
20876 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20877 #! $SHELL
20878 # Generated by $as_me.
20879 # Run this file to recreate the current configuration.
20880 # Compiler output produced by configure, useful for debugging
20881 # configure, is in config.log if it exists.
20882
20883 debug=false
20884 ac_cs_recheck=false
20885 ac_cs_silent=false
20886
20887 SHELL=\${CONFIG_SHELL-$SHELL}
20888 export SHELL
20889 _ASEOF
20890 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20891 ## -------------------- ##
20892 ## M4sh Initialization. ##
20893 ## -------------------- ##
20894
20895 # Be more Bourne compatible
20896 DUALCASE=1; export DUALCASE # for MKS sh
20897 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20898 then :
20899 emulate sh
20900 NULLCMD=:
20901 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20902 # is contrary to our usage. Disable this feature.
20903 alias -g '${1+"$@"}'='"$@"'
20904 setopt NO_GLOB_SUBST
20905 else case e in #(
20906 e) case `(set -o) 2>/dev/null` in #(
20907 *posix*) :
20908 set -o posix ;; #(
20909 *) :
20910 ;;
20911 esac ;;
20912 esac
20913 fi
20914
20915
20916
20917 # Reset variables that may have inherited troublesome values from
20918 # the environment.
20919
20920 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20921 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20922 # side effect of setting IFS to empty, thus disabling word splitting.)
20923 # Quoting is to prevent editors from complaining about space-tab.
20924 as_nl='
20925 '
20926 export as_nl
20927 IFS=" "" $as_nl"
20928
20929 PS1='$ '
20930 PS2='> '
20931 PS4='+ '
20932
20933 # Ensure predictable behavior from utilities with locale-dependent output.
20934 LC_ALL=C
20935 export LC_ALL
20936 LANGUAGE=C
20937 export LANGUAGE
20938
20939 # We cannot yet rely on "unset" to work, but we need these variables
20940 # to be unset--not just set to an empty or harmless value--now, to
20941 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20942 # also avoids known problems related to "unset" and subshell syntax
20943 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20944 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20945 do eval test \${$as_var+y} \
20946 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20947 done
20948
20949 # Ensure that fds 0, 1, and 2 are open.
20950 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20951 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20952 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20953
20954 # The user is always right.
20955 if ${PATH_SEPARATOR+false} :; then
20956 PATH_SEPARATOR=:
20957 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20958 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20959 PATH_SEPARATOR=';'
20960 }
20961 fi
20962
20963
20964 # Find who we are. Look in the path if we contain no directory separator.
20965 as_myself=
20966 case $0 in #((
20967 *[\\/]* ) as_myself=$0 ;;
20968 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20969 for as_dir in $PATH
20970 do
20971 IFS=$as_save_IFS
20972 case $as_dir in #(((
20973 '') as_dir=./ ;;
20974 */) ;;
20975 *) as_dir=$as_dir/ ;;
20976 esac
20977 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20978 done
20979 IFS=$as_save_IFS
20980
20981 ;;
20982 esac
20983 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20984 # in which case we are not to be found in the path.
20985 if test "x$as_myself" = x; then
20986 as_myself=$0
20987 fi
20988 if test ! -f "$as_myself"; then
20989 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20990 exit 1
20991 fi
20992
20993
20994
20995 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20996 # ----------------------------------------
20997 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20998 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20999 # script with STATUS, using 1 if that was 0.
21000 as_fn_error ()
21001 {
21002 as_status=$1; test $as_status -eq 0 && as_status=1
21003 if test "$4"; then
21004 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21006 fi
21007 printf "%s\n" "$as_me: error: $2" >&2
21008 as_fn_exit $as_status
21009 } # as_fn_error
21010
21011
21012 # as_fn_set_status STATUS
21013 # -----------------------
21014 # Set $? to STATUS, without forking.
21015 as_fn_set_status ()
21016 {
21017 return $1
21018 } # as_fn_set_status
21019
21020 # as_fn_exit STATUS
21021 # -----------------
21022 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21023 as_fn_exit ()
21024 {
21025 set +e
21026 as_fn_set_status $1
21027 exit $1
21028 } # as_fn_exit
21029
21030 # as_fn_unset VAR
21031 # ---------------
21032 # Portably unset VAR.
21033 as_fn_unset ()
21034 {
21035 { eval $1=; unset $1;}
21036 }
21037 as_unset=as_fn_unset
21038
21039 # as_fn_append VAR VALUE
21040 # ----------------------
21041 # Append the text in VALUE to the end of the definition contained in VAR. Take
21042 # advantage of any shell optimizations that allow amortized linear growth over
21043 # repeated appends, instead of the typical quadratic growth present in naive
21044 # implementations.
21045 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21046 then :
21047 eval 'as_fn_append ()
21048 {
21049 eval $1+=\$2
21050 }'
21051 else case e in #(
21052 e) as_fn_append ()
21053 {
21054 eval $1=\$$1\$2
21055 } ;;
21056 esac
21057 fi # as_fn_append
21058
21059 # as_fn_arith ARG...
21060 # ------------------
21061 # Perform arithmetic evaluation on the ARGs, and store the result in the
21062 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21063 # must be portable across $(()) and expr.
21064 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21065 then :
21066 eval 'as_fn_arith ()
21067 {
21068 as_val=$(( $* ))
21069 }'
21070 else case e in #(
21071 e) as_fn_arith ()
21072 {
21073 as_val=`expr "$@" || test $? -eq 1`
21074 } ;;
21075 esac
21076 fi # as_fn_arith
21077
21078
21079 if expr a : '\(a\)' >/dev/null 2>&1 &&
21080 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21081 as_expr=expr
21082 else
21083 as_expr=false
21084 fi
21085
21086 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21087 as_basename=basename
21088 else
21089 as_basename=false
21090 fi
21091
21092 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21093 as_dirname=dirname
21094 else
21095 as_dirname=false
21096 fi
21097
21098 as_me=`$as_basename -- "$0" ||
21099 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21100 X"$0" : 'X\(//\)$' \| \
21101 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21102 printf "%s\n" X/"$0" |
21103 sed '/^.*\/\([^/][^/]*\)\/*$/{
21104 s//\1/
21105 q
21106 }
21107 /^X\/\(\/\/\)$/{
21108 s//\1/
21109 q
21110 }
21111 /^X\/\(\/\).*/{
21112 s//\1/
21113 q
21114 }
21115 s/.*/./; q'`
21116
21117 # Avoid depending upon Character Ranges.
21118 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21121 as_cr_digits='0123456789'
21122 as_cr_alnum=$as_cr_Letters$as_cr_digits
21123
21124
21125 # Determine whether it's possible to make 'echo' print without a newline.
21126 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21127 # for compatibility with existing Makefiles.
21128 ECHO_C= ECHO_N= ECHO_T=
21129 case `echo -n x` in #(((((
21130 -n*)
21131 case `echo 'xy\c'` in
21132 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21133 xy) ECHO_C='\c';;
21134 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21135 ECHO_T=' ';;
21136 esac;;
21137 *)
21138 ECHO_N='-n';;
21139 esac
21140
21141 # For backward compatibility with old third-party macros, we provide
21142 # the shell variables $as_echo and $as_echo_n. New code should use
21143 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21144 as_echo='printf %s\n'
21145 as_echo_n='printf %s'
21146
21147 rm -f conf$$ conf$$.exe conf$$.file
21148 if test -d conf$$.dir; then
21149 rm -f conf$$.dir/conf$$.file
21150 else
21151 rm -f conf$$.dir
21152 mkdir conf$$.dir 2>/dev/null
21153 fi
21154 if (echo >conf$$.file) 2>/dev/null; then
21155 if ln -s conf$$.file conf$$ 2>/dev/null; then
21156 as_ln_s='ln -s'
21157 # ... but there are two gotchas:
21158 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21159 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21160 # In both cases, we have to default to 'cp -pR'.
21161 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21162 as_ln_s='cp -pR'
21163 elif ln conf$$.file conf$$ 2>/dev/null; then
21164 as_ln_s=ln
21165 else
21166 as_ln_s='cp -pR'
21167 fi
21168 else
21169 as_ln_s='cp -pR'
21170 fi
21171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21172 rmdir conf$$.dir 2>/dev/null
21173
21174
21175 # as_fn_mkdir_p
21176 # -------------
21177 # Create "$as_dir" as a directory, including parents if necessary.
21178 as_fn_mkdir_p ()
21179 {
21180
21181 case $as_dir in #(
21182 -*) as_dir=./$as_dir;;
21183 esac
21184 test -d "$as_dir" || eval $as_mkdir_p || {
21185 as_dirs=
21186 while :; do
21187 case $as_dir in #(
21188 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21189 *) as_qdir=$as_dir;;
21190 esac
21191 as_dirs="'$as_qdir' $as_dirs"
21192 as_dir=`$as_dirname -- "$as_dir" ||
21193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21194 X"$as_dir" : 'X\(//\)[^/]' \| \
21195 X"$as_dir" : 'X\(//\)$' \| \
21196 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21197 printf "%s\n" X"$as_dir" |
21198 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21199 s//\1/
21200 q
21201 }
21202 /^X\(\/\/\)[^/].*/{
21203 s//\1/
21204 q
21205 }
21206 /^X\(\/\/\)$/{
21207 s//\1/
21208 q
21209 }
21210 /^X\(\/\).*/{
21211 s//\1/
21212 q
21213 }
21214 s/.*/./; q'`
21215 test -d "$as_dir" && break
21216 done
21217 test -z "$as_dirs" || eval "mkdir $as_dirs"
21218 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21219
21220
21221 } # as_fn_mkdir_p
21222 if mkdir -p . 2>/dev/null; then
21223 as_mkdir_p='mkdir -p "$as_dir"'
21224 else
21225 test -d ./-p && rmdir ./-p
21226 as_mkdir_p=false
21227 fi
21228
21229
21230 # as_fn_executable_p FILE
21231 # -----------------------
21232 # Test if FILE is an executable regular file.
21233 as_fn_executable_p ()
21234 {
21235 test -f "$1" && test -x "$1"
21236 } # as_fn_executable_p
21237 as_test_x='test -x'
21238 as_executable_p=as_fn_executable_p
21239
21240 # Sed expression to map a string onto a valid CPP name.
21241 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21242 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21243
21244 # Sed expression to map a string onto a valid variable name.
21245 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21246 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21247
21248
21249 exec 6>&1
21250 ## ----------------------------------- ##
21251 ## Main body of $CONFIG_STATUS script. ##
21252 ## ----------------------------------- ##
21253 _ASEOF
21254 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21255
21256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21257 # Save the log message, to keep $0 and so on meaningful, and to
21258 # report actual input values of CONFIG_FILES etc. instead of their
21259 # values after options handling.
21260 ac_log="
21261 This file was extended by anymeal $as_me 1.35, which was
21262 generated by GNU Autoconf 2.72. Invocation command line was
21263
21264 CONFIG_FILES = $CONFIG_FILES
21265 CONFIG_HEADERS = $CONFIG_HEADERS
21266 CONFIG_LINKS = $CONFIG_LINKS
21267 CONFIG_COMMANDS = $CONFIG_COMMANDS
21268 $ $0 $@
21269
21270 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21271 "
21272
21273 _ACEOF
21274
21275 case $ac_config_files in *"
21276 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21277 esac
21278
21279 case $ac_config_headers in *"
21280 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21281 esac
21282
21283
21284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21285 # Files that config.status was made for.
21286 config_files="$ac_config_files"
21287 config_headers="$ac_config_headers"
21288 config_commands="$ac_config_commands"
21289
21290 _ACEOF
21291
21292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21293 ac_cs_usage="\
21294 '$as_me' instantiates files and other configuration actions
21295 from templates according to the current configuration. Unless the files
21296 and actions are specified as TAGs, all are instantiated by default.
21297
21298 Usage: $0 [OPTION]... [TAG]...
21299
21300 -h, --help print this help, then exit
21301 -V, --version print version number and configuration settings, then exit
21302 --config print configuration, then exit
21303 -q, --quiet, --silent
21304 do not print progress messages
21305 -d, --debug don't remove temporary files
21306 --recheck update $as_me by reconfiguring in the same conditions
21307 --file=FILE[:TEMPLATE]
21308 instantiate the configuration file FILE
21309 --header=FILE[:TEMPLATE]
21310 instantiate the configuration header FILE
21311
21312 Configuration files:
21313 $config_files
21314
21315 Configuration headers:
21316 $config_headers
21317
21318 Configuration commands:
21319 $config_commands
21320
21321 Report bugs to <[email protected]>."
21322
21323 _ACEOF
21324 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21325 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21327 ac_cs_config='$ac_cs_config_escaped'
21328 ac_cs_version="\\
21329 anymeal config.status 1.35
21330 configured by $0, generated by GNU Autoconf 2.72,
21331 with options \\"\$ac_cs_config\\"
21332
21333 Copyright (C) 2023 Free Software Foundation, Inc.
21334 This config.status script is free software; the Free Software Foundation
21335 gives unlimited permission to copy, distribute and modify it."
21336
21337 ac_pwd='$ac_pwd'
21338 srcdir='$srcdir'
21339 INSTALL='$INSTALL'
21340 MKDIR_P='$MKDIR_P'
21341 AWK='$AWK'
21342 test -n "\$AWK" || AWK=awk
21343 _ACEOF
21344
21345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21346 # The default lists apply if the user does not specify any file.
21347 ac_need_defaults=:
21348 while test $# != 0
21349 do
21350 case $1 in
21351 --*=?*)
21352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21354 ac_shift=:
21355 ;;
21356 --*=)
21357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21358 ac_optarg=
21359 ac_shift=:
21360 ;;
21361 *)
21362 ac_option=$1
21363 ac_optarg=$2
21364 ac_shift=shift
21365 ;;
21366 esac
21367
21368 case $ac_option in
21369 # Handling of the options.
21370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21371 ac_cs_recheck=: ;;
21372 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21373 printf "%s\n" "$ac_cs_version"; exit ;;
21374 --config | --confi | --conf | --con | --co | --c )
21375 printf "%s\n" "$ac_cs_config"; exit ;;
21376 --debug | --debu | --deb | --de | --d | -d )
21377 debug=: ;;
21378 --file | --fil | --fi | --f )
21379 $ac_shift
21380 case $ac_optarg in
21381 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21382 '') as_fn_error $? "missing file argument" ;;
21383 esac
21384 as_fn_append CONFIG_FILES " '$ac_optarg'"
21385 ac_need_defaults=false;;
21386 --header | --heade | --head | --hea )
21387 $ac_shift
21388 case $ac_optarg in
21389 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21390 esac
21391 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21392 ac_need_defaults=false;;
21393 --he | --h)
21394 # Conflict between --help and --header
21395 as_fn_error $? "ambiguous option: '$1'
21396 Try '$0 --help' for more information.";;
21397 --help | --hel | -h )
21398 printf "%s\n" "$ac_cs_usage"; exit ;;
21399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21401 ac_cs_silent=: ;;
21402
21403 # This is an error.
21404 -*) as_fn_error $? "unrecognized option: '$1'
21405 Try '$0 --help' for more information." ;;
21406
21407 *) as_fn_append ac_config_targets " $1"
21408 ac_need_defaults=false ;;
21409
21410 esac
21411 shift
21412 done
21413
21414 ac_configure_extra_args=
21415
21416 if $ac_cs_silent; then
21417 exec 6>/dev/null
21418 ac_configure_extra_args="$ac_configure_extra_args --silent"
21419 fi
21420
21421 _ACEOF
21422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21423 if \$ac_cs_recheck; then
21424 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21425 shift
21426 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21427 CONFIG_SHELL='$SHELL'
21428 export CONFIG_SHELL
21429 exec "\$@"
21430 fi
21431
21432 _ACEOF
21433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21434 exec 5>>config.log
21435 {
21436 echo
21437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21438 ## Running $as_me. ##
21439 _ASBOX
21440 printf "%s\n" "$ac_log"
21441 } >&5
21442
21443 _ACEOF
21444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21445 #
21446 # INIT-COMMANDS
21447 #
21448 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21449
21450
21451 # The HP-UX ksh and POSIX shell print the target directory to stdout
21452 # if CDPATH is set.
21453 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21454
21455 sed_quote_subst='$sed_quote_subst'
21456 double_quote_subst='$double_quote_subst'
21457 delay_variable_subst='$delay_variable_subst'
21458 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21459 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21460 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21461 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21462 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21463 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21464 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21465 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21466 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21467 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21468 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21469 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21470 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21471 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21472 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21473 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21474 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21475 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21476 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21477 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21478 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21479 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21480 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21481 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21482 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21483 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21484 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21485 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21486 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21487 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21488 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21489 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21490 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21491 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21492 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21493 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21494 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21495 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21496 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21497 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21498 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21499 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21500 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21501 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21502 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21503 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21504 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21505 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21506 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21507 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21508 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21509 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21510 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21511 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21512 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21513 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21514 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21515 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21516 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21517 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21518 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
21519 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21520 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21521 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21522 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21523 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21524 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21525 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21526 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21527 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21528 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21529 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21530 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21531 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21532 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21533 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21534 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21535 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21536 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21537 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21538 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21539 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21540 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21541 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21542 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21543 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21544 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21545 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21546 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21547 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21548 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21549 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21550 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21551 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21552 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21553 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21554 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21555 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21556 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21557 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21558 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21559 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21560 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21561 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21562 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21563 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21564 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21565 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21566 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21567 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21568 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21569 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21570 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21571 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21572 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21573 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21574 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21575 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21576 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21577 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21578 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21579 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21580 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21581 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21582 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21583 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21584 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21585 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21586 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21587 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21588 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21589 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21590 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21591 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21592 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21593 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21594 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21595 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21596 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21597 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21598 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21599 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21600 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21601 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21602 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21603 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21604 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21605 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21606 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21607 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21608 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21609 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21610 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21611 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21612 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21613 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21614 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21615 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21616 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21617 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21618 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21619 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21620 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21621 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21622 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21623 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21624 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21625 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21626 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21627 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21628 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21629 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21630 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21631 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21632 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21633 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21634 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21635 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21636 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21637 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21638 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21639 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21640 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21641 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21642 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21643 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21644 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21645 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21646 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21647 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21648 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21649
21650 LTCC='$LTCC'
21651 LTCFLAGS='$LTCFLAGS'
21652 compiler='$compiler_DEFAULT'
21653
21654 # A function that is used when there is no print builtin or printf.
21655 func_fallback_echo ()
21656 {
21657 eval 'cat <<_LTECHO_EOF
21658 \$1
21659 _LTECHO_EOF'
21660 }
21661
21662 # Quote evaled strings.
21663 for var in SHELL \
21664 ECHO \
21665 PATH_SEPARATOR \
21666 SED \
21667 GREP \
21668 EGREP \
21669 FGREP \
21670 LD \
21671 NM \
21672 LN_S \
21673 lt_SP2NL \
21674 lt_NL2SP \
21675 reload_flag \
21676 FILECMD \
21677 OBJDUMP \
21678 deplibs_check_method \
21679 file_magic_cmd \
21680 file_magic_glob \
21681 want_nocaseglob \
21682 DLLTOOL \
21683 sharedlib_from_linklib_cmd \
21684 AR \
21685 archiver_list_spec \
21686 STRIP \
21687 RANLIB \
21688 CC \
21689 CFLAGS \
21690 compiler \
21691 lt_cv_sys_global_symbol_pipe \
21692 lt_cv_sys_global_symbol_to_cdecl \
21693 lt_cv_sys_global_symbol_to_import \
21694 lt_cv_sys_global_symbol_to_c_name_address \
21695 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21696 lt_cv_nm_interface \
21697 nm_file_list_spec \
21698 lt_cv_truncate_bin \
21699 lt_prog_compiler_no_builtin_flag \
21700 lt_prog_compiler_pic \
21701 lt_prog_compiler_wl \
21702 lt_prog_compiler_static \
21703 lt_cv_prog_compiler_c_o \
21704 need_locks \
21705 MANIFEST_TOOL \
21706 DSYMUTIL \
21707 NMEDIT \
21708 LIPO \
21709 OTOOL \
21710 OTOOL64 \
21711 shrext_cmds \
21712 export_dynamic_flag_spec \
21713 whole_archive_flag_spec \
21714 compiler_needs_object \
21715 with_gnu_ld \
21716 allow_undefined_flag \
21717 no_undefined_flag \
21718 hardcode_libdir_flag_spec \
21719 hardcode_libdir_separator \
21720 exclude_expsyms \
21721 include_expsyms \
21722 file_list_spec \
21723 variables_saved_for_relink \
21724 libname_spec \
21725 library_names_spec \
21726 soname_spec \
21727 install_override_mode \
21728 finish_eval \
21729 old_striplib \
21730 striplib \
21731 compiler_lib_search_dirs \
21732 predep_objects \
21733 postdep_objects \
21734 predeps \
21735 postdeps \
21736 compiler_lib_search_path \
21737 LD_CXX \
21738 reload_flag_CXX \
21739 compiler_CXX \
21740 lt_prog_compiler_no_builtin_flag_CXX \
21741 lt_prog_compiler_pic_CXX \
21742 lt_prog_compiler_wl_CXX \
21743 lt_prog_compiler_static_CXX \
21744 lt_cv_prog_compiler_c_o_CXX \
21745 export_dynamic_flag_spec_CXX \
21746 whole_archive_flag_spec_CXX \
21747 compiler_needs_object_CXX \
21748 with_gnu_ld_CXX \
21749 allow_undefined_flag_CXX \
21750 no_undefined_flag_CXX \
21751 hardcode_libdir_flag_spec_CXX \
21752 hardcode_libdir_separator_CXX \
21753 exclude_expsyms_CXX \
21754 include_expsyms_CXX \
21755 file_list_spec_CXX \
21756 compiler_lib_search_dirs_CXX \
21757 predep_objects_CXX \
21758 postdep_objects_CXX \
21759 predeps_CXX \
21760 postdeps_CXX \
21761 compiler_lib_search_path_CXX; do
21762 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21763 *[\\\\\\\`\\"\\\$]*)
21764 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21765 ;;
21766 *)
21767 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21768 ;;
21769 esac
21770 done
21771
21772 # Double-quote double-evaled strings.
21773 for var in reload_cmds \
21774 old_postinstall_cmds \
21775 old_postuninstall_cmds \
21776 old_archive_cmds \
21777 extract_expsyms_cmds \
21778 old_archive_from_new_cmds \
21779 old_archive_from_expsyms_cmds \
21780 archive_cmds \
21781 archive_expsym_cmds \
21782 module_cmds \
21783 module_expsym_cmds \
21784 export_symbols_cmds \
21785 prelink_cmds \
21786 postlink_cmds \
21787 postinstall_cmds \
21788 postuninstall_cmds \
21789 finish_cmds \
21790 sys_lib_search_path_spec \
21791 configure_time_dlsearch_path \
21792 configure_time_lt_sys_library_path \
21793 reload_cmds_CXX \
21794 old_archive_cmds_CXX \
21795 old_archive_from_new_cmds_CXX \
21796 old_archive_from_expsyms_cmds_CXX \
21797 archive_cmds_CXX \
21798 archive_expsym_cmds_CXX \
21799 module_cmds_CXX \
21800 module_expsym_cmds_CXX \
21801 export_symbols_cmds_CXX \
21802 prelink_cmds_CXX \
21803 postlink_cmds_CXX; do
21804 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21805 *[\\\\\\\`\\"\\\$]*)
21806 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21807 ;;
21808 *)
21809 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21810 ;;
21811 esac
21812 done
21813
21814 ac_aux_dir='$ac_aux_dir'
21815
21816 # See if we are running on zsh, and set the options that allow our
21817 # commands through without removal of \ escapes INIT.
21818 if test -n "\${ZSH_VERSION+set}"; then
21819 setopt NO_GLOB_SUBST
21820 fi
21821
21822
21823 PACKAGE='$PACKAGE'
21824 VERSION='$VERSION'
21825 RM='$RM'
21826 ofile='$ofile'
21827
21828
21829
21830
21831
21832
21833 _ACEOF
21834
21835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21836
21837 # Handling of arguments.
21838 for ac_config_target in $ac_config_targets
21839 do
21840 case $ac_config_target in
21841 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21842 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21843 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21844 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21845 "anymeal/Makefile") CONFIG_FILES="$CONFIG_FILES anymeal/Makefile" ;;
21846 "anymeal/locale/Makefile") CONFIG_FILES="$CONFIG_FILES anymeal/locale/Makefile" ;;
21847 "anymeal/locale/de/Makefile") CONFIG_FILES="$CONFIG_FILES anymeal/locale/de/Makefile" ;;
21848 "anymeal/locale/it/Makefile") CONFIG_FILES="$CONFIG_FILES anymeal/locale/it/Makefile" ;;
21849 "anymeal/locale/ka/Makefile") CONFIG_FILES="$CONFIG_FILES anymeal/locale/ka/Makefile" ;;
21850 "anymeal/locale/nl/Makefile") CONFIG_FILES="$CONFIG_FILES anymeal/locale/nl/Makefile" ;;
21851 "anymeal/locale/fr/Makefile") CONFIG_FILES="$CONFIG_FILES anymeal/locale/fr/Makefile" ;;
21852 "anymeal/locale/sl/Makefile") CONFIG_FILES="$CONFIG_FILES anymeal/locale/sl/Makefile" ;;
21853 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21854 "tests/fixtures/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fixtures/Makefile" ;;
21855
21856 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21857 esac
21858 done
21859
21860
21861 # If the user did not use the arguments to specify the items to instantiate,
21862 # then the envvar interface is used. Set only those that are not.
21863 # We use the long form for the default assignment because of an extremely
21864 # bizarre bug on SunOS 4.1.3.
21865 if $ac_need_defaults; then
21866 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21867 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21868 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21869 fi
21870
21871 # Have a temporary directory for convenience. Make it in the build tree
21872 # simply because there is no reason against having it here, and in addition,
21873 # creating and moving files from /tmp can sometimes cause problems.
21874 # Hook for its removal unless debugging.
21875 # Note that there is a small window in which the directory will not be cleaned:
21876 # after its creation but before its name has been assigned to '$tmp'.
21877 $debug ||
21878 {
21879 tmp= ac_tmp=
21880 trap 'exit_status=$?
21881 : "${ac_tmp:=$tmp}"
21882 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21883 ' 0
21884 trap 'as_fn_exit 1' 1 2 13 15
21885 }
21886 # Create a (secure) tmp directory for tmp files.
21887
21888 {
21889 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21890 test -d "$tmp"
21891 } ||
21892 {
21893 tmp=./conf$$-$RANDOM
21894 (umask 077 && mkdir "$tmp")
21895 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21896 ac_tmp=$tmp
21897
21898 # Set up the scripts for CONFIG_FILES section.
21899 # No need to generate them if there are no CONFIG_FILES.
21900 # This happens for instance with './config.status config.h'.
21901 if test -n "$CONFIG_FILES"; then
21902
21903
21904 ac_cr=`echo X | tr X '\015'`
21905 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21906 # But we know of no other shell where ac_cr would be empty at this
21907 # point, so we can use a bashism as a fallback.
21908 if test "x$ac_cr" = x; then
21909 eval ac_cr=\$\'\\r\'
21910 fi
21911 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21912 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21913 ac_cs_awk_cr='\\r'
21914 else
21915 ac_cs_awk_cr=$ac_cr
21916 fi
21917
21918 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21919 _ACEOF
21920
21921
21922 {
21923 echo "cat >conf$$subs.awk <<_ACEOF" &&
21924 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21925 echo "_ACEOF"
21926 } >conf$$subs.sh ||
21927 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21928 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21929 ac_delim='%!_!# '
21930 for ac_last_try in false false false false false :; do
21931 . ./conf$$subs.sh ||
21932 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21933
21934 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21935 if test $ac_delim_n = $ac_delim_num; then
21936 break
21937 elif $ac_last_try; then
21938 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21939 else
21940 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21941 fi
21942 done
21943 rm -f conf$$subs.sh
21944
21945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21946 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21947 _ACEOF
21948 sed -n '
21949 h
21950 s/^/S["/; s/!.*/"]=/
21951 p
21952 g
21953 s/^[^!]*!//
21954 :repl
21955 t repl
21956 s/'"$ac_delim"'$//
21957 t delim
21958 :nl
21959 h
21960 s/\(.\{148\}\)..*/\1/
21961 t more1
21962 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21963 p
21964 n
21965 b repl
21966 :more1
21967 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21968 p
21969 g
21970 s/.\{148\}//
21971 t nl
21972 :delim
21973 h
21974 s/\(.\{148\}\)..*/\1/
21975 t more2
21976 s/["\\]/\\&/g; s/^/"/; s/$/"/
21977 p
21978 b
21979 :more2
21980 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21981 p
21982 g
21983 s/.\{148\}//
21984 t delim
21985 ' <conf$$subs.awk | sed '
21986 /^[^""]/{
21987 N
21988 s/\n//
21989 }
21990 ' >>$CONFIG_STATUS || ac_write_fail=1
21991 rm -f conf$$subs.awk
21992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21993 _ACAWK
21994 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21995 for (key in S) S_is_set[key] = 1
21996 FS = ""
21997
21998 }
21999 {
22000 line = $ 0
22001 nfields = split(line, field, "@")
22002 substed = 0
22003 len = length(field[1])
22004 for (i = 2; i < nfields; i++) {
22005 key = field[i]
22006 keylen = length(key)
22007 if (S_is_set[key]) {
22008 value = S[key]
22009 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22010 len += length(value) + length(field[++i])
22011 substed = 1
22012 } else
22013 len += 1 + keylen
22014 }
22015
22016 print line
22017 }
22018
22019 _ACAWK
22020 _ACEOF
22021 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22022 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22023 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22024 else
22025 cat
22026 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22027 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22028 _ACEOF
22029
22030 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22031 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22032 # trailing colons and then remove the whole line if VPATH becomes empty
22033 # (actually we leave an empty line to preserve line numbers).
22034 if test "x$srcdir" = x.; then
22035 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22036 h
22037 s///
22038 s/^/:/
22039 s/[ ]*$/:/
22040 s/:\$(srcdir):/:/g
22041 s/:\${srcdir}:/:/g
22042 s/:@srcdir@:/:/g
22043 s/^:*//
22044 s/:*$//
22045 x
22046 s/\(=[ ]*\).*/\1/
22047 G
22048 s/\n//
22049 s/^[^=]*=[ ]*$//
22050 }'
22051 fi
22052
22053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22054 fi # test -n "$CONFIG_FILES"
22055
22056 # Set up the scripts for CONFIG_HEADERS section.
22057 # No need to generate them if there are no CONFIG_HEADERS.
22058 # This happens for instance with './config.status Makefile'.
22059 if test -n "$CONFIG_HEADERS"; then
22060 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22061 BEGIN {
22062 _ACEOF
22063
22064 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22065 # here-document in config.status, that substitutes the proper values into
22066 # config.h.in to produce config.h.
22067
22068 # Create a delimiter string that does not exist in confdefs.h, to ease
22069 # handling of long lines.
22070 ac_delim='%!_!# '
22071 for ac_last_try in false false :; do
22072 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22073 if test -z "$ac_tt"; then
22074 break
22075 elif $ac_last_try; then
22076 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22077 else
22078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22079 fi
22080 done
22081
22082 # For the awk script, D is an array of macro values keyed by name,
22083 # likewise P contains macro parameters if any. Preserve backslash
22084 # newline sequences.
22085
22086 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22087 sed -n '
22088 s/.\{148\}/&'"$ac_delim"'/g
22089 t rset
22090 :rset
22091 s/^[ ]*#[ ]*define[ ][ ]*/ /
22092 t def
22093 d
22094 :def
22095 s/\\$//
22096 t bsnl
22097 s/["\\]/\\&/g
22098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22099 D["\1"]=" \3"/p
22100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22101 d
22102 :bsnl
22103 s/["\\]/\\&/g
22104 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22105 D["\1"]=" \3\\\\\\n"\\/p
22106 t cont
22107 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22108 t cont
22109 d
22110 :cont
22111 n
22112 s/.\{148\}/&'"$ac_delim"'/g
22113 t clear
22114 :clear
22115 s/\\$//
22116 t bsnlc
22117 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22118 d
22119 :bsnlc
22120 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22121 b cont
22122 ' <confdefs.h | sed '
22123 s/'"$ac_delim"'/"\\\
22124 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22125
22126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22127 for (key in D) D_is_set[key] = 1
22128 FS = ""
22129 }
22130 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22131 line = \$ 0
22132 split(line, arg, " ")
22133 if (arg[1] == "#") {
22134 defundef = arg[2]
22135 mac1 = arg[3]
22136 } else {
22137 defundef = substr(arg[1], 2)
22138 mac1 = arg[2]
22139 }
22140 split(mac1, mac2, "(") #)
22141 macro = mac2[1]
22142 prefix = substr(line, 1, index(line, defundef) - 1)
22143 if (D_is_set[macro]) {
22144 # Preserve the white space surrounding the "#".
22145 print prefix "define", macro P[macro] D[macro]
22146 next
22147 } else {
22148 # Replace #undef with comments. This is necessary, for example,
22149 # in the case of _POSIX_SOURCE, which is predefined and required
22150 # on some systems where configure will not decide to define it.
22151 if (defundef == "undef") {
22152 print "/*", prefix defundef, macro, "*/"
22153 next
22154 }
22155 }
22156 }
22157 { print }
22158 _ACAWK
22159 _ACEOF
22160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22161 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22162 fi # test -n "$CONFIG_HEADERS"
22163
22164
22165 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22166 shift
22167 for ac_tag
22168 do
22169 case $ac_tag in
22170 :[FHLC]) ac_mode=$ac_tag; continue;;
22171 esac
22172 case $ac_mode$ac_tag in
22173 :[FHL]*:*);;
22174 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22175 :[FH]-) ac_tag=-:-;;
22176 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22177 esac
22178 ac_save_IFS=$IFS
22179 IFS=:
22180 set x $ac_tag
22181 IFS=$ac_save_IFS
22182 shift
22183 ac_file=$1
22184 shift
22185
22186 case $ac_mode in
22187 :L) ac_source=$1;;
22188 :[FH])
22189 ac_file_inputs=
22190 for ac_f
22191 do
22192 case $ac_f in
22193 -) ac_f="$ac_tmp/stdin";;
22194 *) # Look for the file first in the build tree, then in the source tree
22195 # (if the path is not absolute). The absolute path cannot be DOS-style,
22196 # because $ac_f cannot contain ':'.
22197 test -f "$ac_f" ||
22198 case $ac_f in
22199 [\\/$]*) false;;
22200 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22201 esac ||
22202 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22203 esac
22204 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22205 as_fn_append ac_file_inputs " '$ac_f'"
22206 done
22207
22208 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22209 # use $as_me), people would be surprised to read:
22210 # /* config.h. Generated by config.status. */
22211 configure_input='Generated from '`
22212 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22213 `' by configure.'
22214 if test x"$ac_file" != x-; then
22215 configure_input="$ac_file. $configure_input"
22216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22217 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22218 fi
22219 # Neutralize special characters interpreted by sed in replacement strings.
22220 case $configure_input in #(
22221 *\&* | *\|* | *\\* )
22222 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22223 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22224 *) ac_sed_conf_input=$configure_input;;
22225 esac
22226
22227 case $ac_tag in
22228 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22230 esac
22231 ;;
22232 esac
22233
22234 ac_dir=`$as_dirname -- "$ac_file" ||
22235 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22236 X"$ac_file" : 'X\(//\)[^/]' \| \
22237 X"$ac_file" : 'X\(//\)$' \| \
22238 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22239 printf "%s\n" X"$ac_file" |
22240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22241 s//\1/
22242 q
22243 }
22244 /^X\(\/\/\)[^/].*/{
22245 s//\1/
22246 q
22247 }
22248 /^X\(\/\/\)$/{
22249 s//\1/
22250 q
22251 }
22252 /^X\(\/\).*/{
22253 s//\1/
22254 q
22255 }
22256 s/.*/./; q'`
22257 as_dir="$ac_dir"; as_fn_mkdir_p
22258 ac_builddir=.
22259
22260 case "$ac_dir" in
22261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22262 *)
22263 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22264 # A ".." for each directory in $ac_dir_suffix.
22265 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22266 case $ac_top_builddir_sub in
22267 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22268 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22269 esac ;;
22270 esac
22271 ac_abs_top_builddir=$ac_pwd
22272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22273 # for backward compatibility:
22274 ac_top_builddir=$ac_top_build_prefix
22275
22276 case $srcdir in
22277 .) # We are building in place.
22278 ac_srcdir=.
22279 ac_top_srcdir=$ac_top_builddir_sub
22280 ac_abs_top_srcdir=$ac_pwd ;;
22281 [\\/]* | ?:[\\/]* ) # Absolute name.
22282 ac_srcdir=$srcdir$ac_dir_suffix;
22283 ac_top_srcdir=$srcdir
22284 ac_abs_top_srcdir=$srcdir ;;
22285 *) # Relative name.
22286 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22287 ac_top_srcdir=$ac_top_build_prefix$srcdir
22288 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22289 esac
22290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22291
22292
22293 case $ac_mode in
22294 :F)
22295 #
22296 # CONFIG_FILE
22297 #
22298
22299 case $INSTALL in
22300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22301 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22302 esac
22303 ac_MKDIR_P=$MKDIR_P
22304 case $MKDIR_P in
22305 [\\/$]* | ?:[\\/]* ) ;;
22306 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22307 esac
22308 _ACEOF
22309
22310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22311 # If the template does not know about datarootdir, expand it.
22312 # FIXME: This hack should be removed a few years after 2.60.
22313 ac_datarootdir_hack=; ac_datarootdir_seen=
22314 ac_sed_dataroot='
22315 /datarootdir/ {
22316 p
22317 q
22318 }
22319 /@datadir@/p
22320 /@docdir@/p
22321 /@infodir@/p
22322 /@localedir@/p
22323 /@mandir@/p'
22324 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22325 *datarootdir*) ac_datarootdir_seen=yes;;
22326 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22328 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22329 _ACEOF
22330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22331 ac_datarootdir_hack='
22332 s&@datadir@&$datadir&g
22333 s&@docdir@&$docdir&g
22334 s&@infodir@&$infodir&g
22335 s&@localedir@&$localedir&g
22336 s&@mandir@&$mandir&g
22337 s&\\\${datarootdir}&$datarootdir&g' ;;
22338 esac
22339 _ACEOF
22340
22341 # Neutralize VPATH when '$srcdir' = '.'.
22342 # Shell code in configure.ac might set extrasub.
22343 # FIXME: do we really want to maintain this feature?
22344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22345 ac_sed_extra="$ac_vpsub
22346 $extrasub
22347 _ACEOF
22348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22349 :t
22350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22351 s|@configure_input@|$ac_sed_conf_input|;t t
22352 s&@top_builddir@&$ac_top_builddir_sub&;t t
22353 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22354 s&@srcdir@&$ac_srcdir&;t t
22355 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22356 s&@top_srcdir@&$ac_top_srcdir&;t t
22357 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22358 s&@builddir@&$ac_builddir&;t t
22359 s&@abs_builddir@&$ac_abs_builddir&;t t
22360 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22361 s&@INSTALL@&$ac_INSTALL&;t t
22362 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22363 $ac_datarootdir_hack
22364 "
22365 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22366 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22367
22368 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22369 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22370 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22371 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22373 which seems to be undefined. Please make sure it is defined" >&5
22374 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22375 which seems to be undefined. Please make sure it is defined" >&2;}
22376
22377 rm -f "$ac_tmp/stdin"
22378 case $ac_file in
22379 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22380 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22381 esac \
22382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22383 ;;
22384 :H)
22385 #
22386 # CONFIG_HEADER
22387 #
22388 if test x"$ac_file" != x-; then
22389 {
22390 printf "%s\n" "/* $configure_input */" >&1 \
22391 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22392 } >"$ac_tmp/config.h" \
22393 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22394 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22396 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22397 else
22398 rm -f "$ac_file"
22399 mv "$ac_tmp/config.h" "$ac_file" \
22400 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22401 fi
22402 else
22403 printf "%s\n" "/* $configure_input */" >&1 \
22404 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22405 || as_fn_error $? "could not create -" "$LINENO" 5
22406 fi
22407 # Compute "$ac_file"'s index in $config_headers.
22408 _am_arg="$ac_file"
22409 _am_stamp_count=1
22410 for _am_header in $config_headers :; do
22411 case $_am_header in
22412 $_am_arg | $_am_arg:* )
22413 break ;;
22414 * )
22415 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22416 esac
22417 done
22418 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22419 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22420 X"$_am_arg" : 'X\(//\)[^/]' \| \
22421 X"$_am_arg" : 'X\(//\)$' \| \
22422 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22423 printf "%s\n" X"$_am_arg" |
22424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22425 s//\1/
22426 q
22427 }
22428 /^X\(\/\/\)[^/].*/{
22429 s//\1/
22430 q
22431 }
22432 /^X\(\/\/\)$/{
22433 s//\1/
22434 q
22435 }
22436 /^X\(\/\).*/{
22437 s//\1/
22438 q
22439 }
22440 s/.*/./; q'`/stamp-h$_am_stamp_count
22441 ;;
22442
22443 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22444 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22445 ;;
22446 esac
22447
22448
22449 case $ac_file$ac_mode in
22450 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22451 # Older Autoconf quotes --file arguments for eval, but not when files
22452 # are listed without --file. Let's play safe and only enable the eval
22453 # if we detect the quoting.
22454 # TODO: see whether this extra hack can be removed once we start
22455 # requiring Autoconf 2.70 or later.
22456 case $CONFIG_FILES in #(
22457 *\'*) :
22458 eval set x "$CONFIG_FILES" ;; #(
22459 *) :
22460 set x $CONFIG_FILES ;; #(
22461 *) :
22462 ;;
22463 esac
22464 shift
22465 # Used to flag and report bootstrapping failures.
22466 am_rc=0
22467 for am_mf
22468 do
22469 # Strip MF so we end up with the name of the file.
22470 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22471 # Check whether this is an Automake generated Makefile which includes
22472 # dependency-tracking related rules and includes.
22473 # Grep'ing the whole file directly is not great: AIX grep has a line
22474 # limit of 2048, but all sed's we know have understand at least 4000.
22475 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22476 || continue
22477 am_dirpart=`$as_dirname -- "$am_mf" ||
22478 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22479 X"$am_mf" : 'X\(//\)[^/]' \| \
22480 X"$am_mf" : 'X\(//\)$' \| \
22481 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22482 printf "%s\n" X"$am_mf" |
22483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22484 s//\1/
22485 q
22486 }
22487 /^X\(\/\/\)[^/].*/{
22488 s//\1/
22489 q
22490 }
22491 /^X\(\/\/\)$/{
22492 s//\1/
22493 q
22494 }
22495 /^X\(\/\).*/{
22496 s//\1/
22497 q
22498 }
22499 s/.*/./; q'`
22500 am_filepart=`$as_basename -- "$am_mf" ||
22501 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22502 X"$am_mf" : 'X\(//\)$' \| \
22503 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22504 printf "%s\n" X/"$am_mf" |
22505 sed '/^.*\/\([^/][^/]*\)\/*$/{
22506 s//\1/
22507 q
22508 }
22509 /^X\/\(\/\/\)$/{
22510 s//\1/
22511 q
22512 }
22513 /^X\/\(\/\).*/{
22514 s//\1/
22515 q
22516 }
22517 s/.*/./; q'`
22518 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22519 && sed -e '/# am--include-marker/d' "$am_filepart" \
22520 | $MAKE -f - am--depfiles" >&5
22521 (cd "$am_dirpart" \
22522 && sed -e '/# am--include-marker/d' "$am_filepart" \
22523 | $MAKE -f - am--depfiles) >&5 2>&5
22524 ac_status=$?
22525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526 (exit $ac_status); } || am_rc=$?
22527 done
22528 if test $am_rc -ne 0; then
22529 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22530 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22531 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22532 for automatic dependency tracking. If GNU make was not used, consider
22533 re-running the configure script with MAKE=\"gmake\" (or whatever is
22534 necessary). You can also try re-running configure with the
22535 '--disable-dependency-tracking' option to at least be able to build
22536 the package (albeit without support for automatic dependency tracking).
22537 See 'config.log' for more details" "$LINENO" 5; }
22538 fi
22539 { am_dirpart=; unset am_dirpart;}
22540 { am_filepart=; unset am_filepart;}
22541 { am_mf=; unset am_mf;}
22542 { am_rc=; unset am_rc;}
22543 rm -f conftest-deps.mk
22544 }
22545 ;;
22546 "libtool":C)
22547
22548 # See if we are running on zsh, and set the options that allow our
22549 # commands through without removal of \ escapes.
22550 if test -n "${ZSH_VERSION+set}"; then
22551 setopt NO_GLOB_SUBST
22552 fi
22553
22554 cfgfile=${ofile}T
22555 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22556 $RM "$cfgfile"
22557
22558 cat <<_LT_EOF >> "$cfgfile"
22559 #! $SHELL
22560 # Generated automatically by $as_me ($PACKAGE) $VERSION
22561 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22562
22563 # Provide generalized library-building support services.
22564 # Written by Gordon Matzigkeit, 1996
22565
22566 # Copyright (C) 2024 Free Software Foundation, Inc.
22567 # This is free software; see the source for copying conditions. There is NO
22568 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22569
22570 # GNU Libtool is free software; you can redistribute it and/or modify
22571 # it under the terms of the GNU General Public License as published by
22572 # the Free Software Foundation; either version 2 of the License, or
22573 # (at your option) any later version.
22574 #
22575 # As a special exception to the GNU General Public License, if you
22576 # distribute this file as part of a program or library that is built
22577 # using GNU Libtool, you may include this file under the same
22578 # distribution terms that you use for the rest of that program.
22579 #
22580 # GNU Libtool is distributed in the hope that it will be useful, but
22581 # WITHOUT ANY WARRANTY; without even the implied warranty of
22582 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22583 # GNU General Public License for more details.
22584 #
22585 # You should have received a copy of the GNU General Public License
22586 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22587
22588
22589 # The names of the tagged configurations supported by this script.
22590 available_tags='CXX '
22591
22592 # Configured defaults for sys_lib_dlsearch_path munging.
22593 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22594
22595 # ### BEGIN LIBTOOL CONFIG
22596
22597 # Which release of libtool.m4 was used?
22598 macro_version=$macro_version
22599 macro_revision=$macro_revision
22600
22601 # Whether or not to build shared libraries.
22602 build_libtool_libs=$enable_shared
22603
22604 # Whether or not to build static libraries.
22605 build_old_libs=$enable_static
22606
22607 # What type of objects to build.
22608 pic_mode=$pic_mode
22609
22610 # Whether or not to optimize for fast installation.
22611 fast_install=$enable_fast_install
22612
22613 # Shared archive member basename,for filename based shared library versioning on AIX.
22614 shared_archive_member_spec=$shared_archive_member_spec
22615
22616 # Shell to use when invoking shell scripts.
22617 SHELL=$lt_SHELL
22618
22619 # An echo program that protects backslashes.
22620 ECHO=$lt_ECHO
22621
22622 # The PATH separator for the build system.
22623 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22624
22625 # The host system.
22626 host_alias=$host_alias
22627 host=$host
22628 host_os=$host_os
22629
22630 # The build system.
22631 build_alias=$build_alias
22632 build=$build
22633 build_os=$build_os
22634
22635 # A sed program that does not truncate output.
22636 SED=$lt_SED
22637
22638 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22639 Xsed="\$SED -e 1s/^X//"
22640
22641 # A grep program that handles long lines.
22642 GREP=$lt_GREP
22643
22644 # An ERE matcher.
22645 EGREP=$lt_EGREP
22646
22647 # A literal string matcher.
22648 FGREP=$lt_FGREP
22649
22650 # A BSD- or MS-compatible name lister.
22651 NM=$lt_NM
22652
22653 # Whether we need soft or hard links.
22654 LN_S=$lt_LN_S
22655
22656 # What is the maximum length of a command?
22657 max_cmd_len=$max_cmd_len
22658
22659 # Object file suffix (normally "o").
22660 objext=$ac_objext
22661
22662 # Executable file suffix (normally "").
22663 exeext=$exeext
22664
22665 # whether the shell understands "unset".
22666 lt_unset=$lt_unset
22667
22668 # turn spaces into newlines.
22669 SP2NL=$lt_lt_SP2NL
22670
22671 # turn newlines into spaces.
22672 NL2SP=$lt_lt_NL2SP
22673
22674 # convert \$build file names to \$host format.
22675 to_host_file_cmd=$lt_cv_to_host_file_cmd
22676
22677 # convert \$build files to toolchain format.
22678 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22679
22680 # A file(cmd) program that detects file types.
22681 FILECMD=$lt_FILECMD
22682
22683 # An object symbol dumper.
22684 OBJDUMP=$lt_OBJDUMP
22685
22686 # Method to check whether dependent libraries are shared objects.
22687 deplibs_check_method=$lt_deplibs_check_method
22688
22689 # Command to use when deplibs_check_method = "file_magic".
22690 file_magic_cmd=$lt_file_magic_cmd
22691
22692 # How to find potential files when deplibs_check_method = "file_magic".
22693 file_magic_glob=$lt_file_magic_glob
22694
22695 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22696 want_nocaseglob=$lt_want_nocaseglob
22697
22698 # DLL creation program.
22699 DLLTOOL=$lt_DLLTOOL
22700
22701 # Command to associate shared and link libraries.
22702 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22703
22704 # The archiver.
22705 AR=$lt_AR
22706
22707 # Flags to create an archive (by configure).
22708 lt_ar_flags=$lt_ar_flags
22709
22710 # Flags to create an archive.
22711 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22712
22713 # How to feed a file listing to the archiver.
22714 archiver_list_spec=$lt_archiver_list_spec
22715
22716 # A symbol stripping program.
22717 STRIP=$lt_STRIP
22718
22719 # Commands used to install an old-style archive.
22720 RANLIB=$lt_RANLIB
22721 old_postinstall_cmds=$lt_old_postinstall_cmds
22722 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22723
22724 # Whether to use a lock for old archive extraction.
22725 lock_old_archive_extraction=$lock_old_archive_extraction
22726
22727 # A C compiler.
22728 LTCC=$lt_CC
22729
22730 # LTCC compiler flags.
22731 LTCFLAGS=$lt_CFLAGS
22732
22733 # Take the output of nm and produce a listing of raw symbols and C names.
22734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22735
22736 # Transform the output of nm in a proper C declaration.
22737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22738
22739 # Transform the output of nm into a list of symbols to manually relocate.
22740 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22741
22742 # Transform the output of nm in a C name address pair.
22743 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22744
22745 # Transform the output of nm in a C name address pair when lib prefix is needed.
22746 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22747
22748 # The name lister interface.
22749 nm_interface=$lt_lt_cv_nm_interface
22750
22751 # Specify filename containing input files for \$NM.
22752 nm_file_list_spec=$lt_nm_file_list_spec
22753
22754 # The root where to search for dependent libraries,and where our libraries should be installed.
22755 lt_sysroot=$lt_sysroot
22756
22757 # Command to truncate a binary pipe.
22758 lt_truncate_bin=$lt_lt_cv_truncate_bin
22759
22760 # The name of the directory that contains temporary libtool files.
22761 objdir=$objdir
22762
22763 # Used to examine libraries when file_magic_cmd begins with "file".
22764 MAGIC_CMD=$MAGIC_CMD
22765
22766 # Must we lock files when doing compilation?
22767 need_locks=$lt_need_locks
22768
22769 # Manifest tool.
22770 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22771
22772 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22773 DSYMUTIL=$lt_DSYMUTIL
22774
22775 # Tool to change global to local symbols on Mac OS X.
22776 NMEDIT=$lt_NMEDIT
22777
22778 # Tool to manipulate fat objects and archives on Mac OS X.
22779 LIPO=$lt_LIPO
22780
22781 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22782 OTOOL=$lt_OTOOL
22783
22784 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22785 OTOOL64=$lt_OTOOL64
22786
22787 # Old archive suffix (normally "a").
22788 libext=$libext
22789
22790 # Shared library suffix (normally ".so").
22791 shrext_cmds=$lt_shrext_cmds
22792
22793 # The commands to extract the exported symbol list from a shared archive.
22794 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22795
22796 # Variables whose values should be saved in libtool wrapper scripts and
22797 # restored at link time.
22798 variables_saved_for_relink=$lt_variables_saved_for_relink
22799
22800 # Do we need the "lib" prefix for modules?
22801 need_lib_prefix=$need_lib_prefix
22802
22803 # Do we need a version for libraries?
22804 need_version=$need_version
22805
22806 # Library versioning type.
22807 version_type=$version_type
22808
22809 # Shared library runtime path variable.
22810 runpath_var=$runpath_var
22811
22812 # Shared library path variable.
22813 shlibpath_var=$shlibpath_var
22814
22815 # Is shlibpath searched before the hard-coded library search path?
22816 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22817
22818 # Format of library name prefix.
22819 libname_spec=$lt_libname_spec
22820
22821 # List of archive names. First name is the real one, the rest are links.
22822 # The last name is the one that the linker finds with -lNAME
22823 library_names_spec=$lt_library_names_spec
22824
22825 # The coded name of the library, if different from the real name.
22826 soname_spec=$lt_soname_spec
22827
22828 # Permission mode override for installation of shared libraries.
22829 install_override_mode=$lt_install_override_mode
22830
22831 # Command to use after installation of a shared archive.
22832 postinstall_cmds=$lt_postinstall_cmds
22833
22834 # Command to use after uninstallation of a shared archive.
22835 postuninstall_cmds=$lt_postuninstall_cmds
22836
22837 # Commands used to finish a libtool library installation in a directory.
22838 finish_cmds=$lt_finish_cmds
22839
22840 # As "finish_cmds", except a single script fragment to be evaled but
22841 # not shown.
22842 finish_eval=$lt_finish_eval
22843
22844 # Whether we should hardcode library paths into libraries.
22845 hardcode_into_libs=$hardcode_into_libs
22846
22847 # Compile-time system search path for libraries.
22848 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22849
22850 # Detected run-time system search path for libraries.
22851 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22852
22853 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22854 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22855
22856 # Whether dlopen is supported.
22857 dlopen_support=$enable_dlopen
22858
22859 # Whether dlopen of programs is supported.
22860 dlopen_self=$enable_dlopen_self
22861
22862 # Whether dlopen of statically linked programs is supported.
22863 dlopen_self_static=$enable_dlopen_self_static
22864
22865 # Commands to strip libraries.
22866 old_striplib=$lt_old_striplib
22867 striplib=$lt_striplib
22868
22869
22870 # The linker used to build libraries.
22871 LD=$lt_LD
22872
22873 # How to create reloadable object files.
22874 reload_flag=$lt_reload_flag
22875 reload_cmds=$lt_reload_cmds
22876
22877 # Commands used to build an old-style archive.
22878 old_archive_cmds=$lt_old_archive_cmds
22879
22880 # A language specific compiler.
22881 CC=$lt_compiler
22882
22883 # Is the compiler the GNU compiler?
22884 with_gcc=$GCC
22885
22886 # Compiler flag to turn off builtin functions.
22887 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22888
22889 # Additional compiler flags for building library objects.
22890 pic_flag=$lt_lt_prog_compiler_pic
22891
22892 # How to pass a linker flag through the compiler.
22893 wl=$lt_lt_prog_compiler_wl
22894
22895 # Compiler flag to prevent dynamic linking.
22896 link_static_flag=$lt_lt_prog_compiler_static
22897
22898 # Does compiler simultaneously support -c and -o options?
22899 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22900
22901 # Whether or not to add -lc for building shared libraries.
22902 build_libtool_need_lc=$archive_cmds_need_lc
22903
22904 # Whether or not to disallow shared libs when runtime libs are static.
22905 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22906
22907 # Compiler flag to allow reflexive dlopens.
22908 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22909
22910 # Compiler flag to generate shared objects directly from archives.
22911 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22912
22913 # Whether the compiler copes with passing no objects directly.
22914 compiler_needs_object=$lt_compiler_needs_object
22915
22916 # Create an old-style archive from a shared archive.
22917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22918
22919 # Create a temporary old-style archive to link instead of a shared archive.
22920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22921
22922 # Commands used to build a shared archive.
22923 archive_cmds=$lt_archive_cmds
22924 archive_expsym_cmds=$lt_archive_expsym_cmds
22925
22926 # Commands used to build a loadable module if different from building
22927 # a shared archive.
22928 module_cmds=$lt_module_cmds
22929 module_expsym_cmds=$lt_module_expsym_cmds
22930
22931 # Whether we are building with GNU ld or not.
22932 with_gnu_ld=$lt_with_gnu_ld
22933
22934 # Flag that allows shared libraries with undefined symbols to be built.
22935 allow_undefined_flag=$lt_allow_undefined_flag
22936
22937 # Flag that enforces no undefined symbols.
22938 no_undefined_flag=$lt_no_undefined_flag
22939
22940 # Flag to hardcode \$libdir into a binary during linking.
22941 # This must work even if \$libdir does not exist
22942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22943
22944 # Whether we need a single "-rpath" flag with a separated argument.
22945 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22946
22947 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22948 # DIR into the resulting binary.
22949 hardcode_direct=$hardcode_direct
22950
22951 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22952 # DIR into the resulting binary and the resulting library dependency is
22953 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22954 # library is relocated.
22955 hardcode_direct_absolute=$hardcode_direct_absolute
22956
22957 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22958 # into the resulting binary.
22959 hardcode_minus_L=$hardcode_minus_L
22960
22961 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22962 # into the resulting binary.
22963 hardcode_shlibpath_var=$hardcode_shlibpath_var
22964
22965 # Set to "yes" if building a shared library automatically hardcodes DIR
22966 # into the library and all subsequent libraries and executables linked
22967 # against it.
22968 hardcode_automatic=$hardcode_automatic
22969
22970 # Set to yes if linker adds runtime paths of dependent libraries
22971 # to runtime path list.
22972 inherit_rpath=$inherit_rpath
22973
22974 # Whether libtool must link a program against all its dependency libraries.
22975 link_all_deplibs=$link_all_deplibs
22976
22977 # Set to "yes" if exported symbols are required.
22978 always_export_symbols=$always_export_symbols
22979
22980 # The commands to list exported symbols.
22981 export_symbols_cmds=$lt_export_symbols_cmds
22982
22983 # Symbols that should not be listed in the preloaded symbols.
22984 exclude_expsyms=$lt_exclude_expsyms
22985
22986 # Symbols that must always be exported.
22987 include_expsyms=$lt_include_expsyms
22988
22989 # Commands necessary for linking programs (against libraries) with templates.
22990 prelink_cmds=$lt_prelink_cmds
22991
22992 # Commands necessary for finishing linking programs.
22993 postlink_cmds=$lt_postlink_cmds
22994
22995 # Specify filename containing input files.
22996 file_list_spec=$lt_file_list_spec
22997
22998 # How to hardcode a shared library path into an executable.
22999 hardcode_action=$hardcode_action
23000
23001 # The directories searched by this compiler when creating a shared library.
23002 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23003
23004 # Dependencies to place before and after the objects being linked to
23005 # create a shared library.
23006 predep_objects=$lt_predep_objects
23007 postdep_objects=$lt_postdep_objects
23008 predeps=$lt_predeps
23009 postdeps=$lt_postdeps
23010
23011 # The library search path used internally by the compiler when linking
23012 # a shared library.
23013 compiler_lib_search_path=$lt_compiler_lib_search_path
23014
23015 # ### END LIBTOOL CONFIG
23016
23017 _LT_EOF
23018
23019 cat <<'_LT_EOF' >> "$cfgfile"
23020
23021 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23022
23023 # func_munge_path_list VARIABLE PATH
23024 # -----------------------------------
23025 # VARIABLE is name of variable containing _space_ separated list of
23026 # directories to be munged by the contents of PATH, which is string
23027 # having a format:
23028 # "DIR[:DIR]:"
23029 # string "DIR[ DIR]" will be prepended to VARIABLE
23030 # ":DIR[:DIR]"
23031 # string "DIR[ DIR]" will be appended to VARIABLE
23032 # "DIRP[:DIRP]::[DIRA:]DIRA"
23033 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23034 # "DIRA[ DIRA]" will be appended to VARIABLE
23035 # "DIR[:DIR]"
23036 # VARIABLE will be replaced by "DIR[ DIR]"
23037 func_munge_path_list ()
23038 {
23039 case x$2 in
23040 x)
23041 ;;
23042 *:)
23043 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23044 ;;
23045 x:*)
23046 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23047 ;;
23048 *::*)
23049 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23050 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23051 ;;
23052 *)
23053 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23054 ;;
23055 esac
23056 }
23057
23058
23059 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23060 func_cc_basename ()
23061 {
23062 for cc_temp in $*""; do
23063 case $cc_temp in
23064 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23065 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23066 \-*) ;;
23067 *) break;;
23068 esac
23069 done
23070 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23071 }
23072
23073
23074 # ### END FUNCTIONS SHARED WITH CONFIGURE
23075
23076 _LT_EOF
23077
23078 case $host_os in
23079 aix3*)
23080 cat <<\_LT_EOF >> "$cfgfile"
23081 # AIX sometimes has problems with the GCC collect2 program. For some
23082 # reason, if we set the COLLECT_NAMES environment variable, the problems
23083 # vanish in a puff of smoke.
23084 if test set != "${COLLECT_NAMES+set}"; then
23085 COLLECT_NAMES=
23086 export COLLECT_NAMES
23087 fi
23088 _LT_EOF
23089 ;;
23090 esac
23091
23092
23093
23094 ltmain=$ac_aux_dir/ltmain.sh
23095
23096
23097 # We use sed instead of cat because bash on DJGPP gets confused if
23098 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23099 # text mode, it properly converts lines to CR/LF. This bash problem
23100 # is reportedly fixed, but why not run on old versions too?
23101 $SED '$q' "$ltmain" >> "$cfgfile" \
23102 || (rm -f "$cfgfile"; exit 1)
23103
23104 mv -f "$cfgfile" "$ofile" ||
23105 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23106 chmod +x "$ofile"
23107
23108
23109 cat <<_LT_EOF >> "$ofile"
23110
23111 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23112
23113 # The linker used to build libraries.
23114 LD=$lt_LD_CXX
23115
23116 # How to create reloadable object files.
23117 reload_flag=$lt_reload_flag_CXX
23118 reload_cmds=$lt_reload_cmds_CXX
23119
23120 # Commands used to build an old-style archive.
23121 old_archive_cmds=$lt_old_archive_cmds_CXX
23122
23123 # A language specific compiler.
23124 CC=$lt_compiler_CXX
23125
23126 # Is the compiler the GNU compiler?
23127 with_gcc=$GCC_CXX
23128
23129 # Compiler flag to turn off builtin functions.
23130 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23131
23132 # Additional compiler flags for building library objects.
23133 pic_flag=$lt_lt_prog_compiler_pic_CXX
23134
23135 # How to pass a linker flag through the compiler.
23136 wl=$lt_lt_prog_compiler_wl_CXX
23137
23138 # Compiler flag to prevent dynamic linking.
23139 link_static_flag=$lt_lt_prog_compiler_static_CXX
23140
23141 # Does compiler simultaneously support -c and -o options?
23142 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23143
23144 # Whether or not to add -lc for building shared libraries.
23145 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23146
23147 # Whether or not to disallow shared libs when runtime libs are static.
23148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23149
23150 # Compiler flag to allow reflexive dlopens.
23151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23152
23153 # Compiler flag to generate shared objects directly from archives.
23154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23155
23156 # Whether the compiler copes with passing no objects directly.
23157 compiler_needs_object=$lt_compiler_needs_object_CXX
23158
23159 # Create an old-style archive from a shared archive.
23160 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23161
23162 # Create a temporary old-style archive to link instead of a shared archive.
23163 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23164
23165 # Commands used to build a shared archive.
23166 archive_cmds=$lt_archive_cmds_CXX
23167 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23168
23169 # Commands used to build a loadable module if different from building
23170 # a shared archive.
23171 module_cmds=$lt_module_cmds_CXX
23172 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23173
23174 # Whether we are building with GNU ld or not.
23175 with_gnu_ld=$lt_with_gnu_ld_CXX
23176
23177 # Flag that allows shared libraries with undefined symbols to be built.
23178 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23179
23180 # Flag that enforces no undefined symbols.
23181 no_undefined_flag=$lt_no_undefined_flag_CXX
23182
23183 # Flag to hardcode \$libdir into a binary during linking.
23184 # This must work even if \$libdir does not exist
23185 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23186
23187 # Whether we need a single "-rpath" flag with a separated argument.
23188 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23189
23190 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23191 # DIR into the resulting binary.
23192 hardcode_direct=$hardcode_direct_CXX
23193
23194 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23195 # DIR into the resulting binary and the resulting library dependency is
23196 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23197 # library is relocated.
23198 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23199
23200 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23201 # into the resulting binary.
23202 hardcode_minus_L=$hardcode_minus_L_CXX
23203
23204 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23205 # into the resulting binary.
23206 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23207
23208 # Set to "yes" if building a shared library automatically hardcodes DIR
23209 # into the library and all subsequent libraries and executables linked
23210 # against it.
23211 hardcode_automatic=$hardcode_automatic_CXX
23212
23213 # Set to yes if linker adds runtime paths of dependent libraries
23214 # to runtime path list.
23215 inherit_rpath=$inherit_rpath_CXX
23216
23217 # Whether libtool must link a program against all its dependency libraries.
23218 link_all_deplibs=$link_all_deplibs_CXX
23219
23220 # Set to "yes" if exported symbols are required.
23221 always_export_symbols=$always_export_symbols_CXX
23222
23223 # The commands to list exported symbols.
23224 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23225
23226 # Symbols that should not be listed in the preloaded symbols.
23227 exclude_expsyms=$lt_exclude_expsyms_CXX
23228
23229 # Symbols that must always be exported.
23230 include_expsyms=$lt_include_expsyms_CXX
23231
23232 # Commands necessary for linking programs (against libraries) with templates.
23233 prelink_cmds=$lt_prelink_cmds_CXX
23234
23235 # Commands necessary for finishing linking programs.
23236 postlink_cmds=$lt_postlink_cmds_CXX
23237
23238 # Specify filename containing input files.
23239 file_list_spec=$lt_file_list_spec_CXX
23240
23241 # How to hardcode a shared library path into an executable.
23242 hardcode_action=$hardcode_action_CXX
23243
23244 # The directories searched by this compiler when creating a shared library.
23245 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23246
23247 # Dependencies to place before and after the objects being linked to
23248 # create a shared library.
23249 predep_objects=$lt_predep_objects_CXX
23250 postdep_objects=$lt_postdep_objects_CXX
23251 predeps=$lt_predeps_CXX
23252 postdeps=$lt_postdeps_CXX
23253
23254 # The library search path used internally by the compiler when linking
23255 # a shared library.
23256 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23257
23258 # ### END LIBTOOL TAG CONFIG: CXX
23259 _LT_EOF
23260
23261 ;;
23262
23263 esac
23264 done # for ac_tag
23265
23266
23267 as_fn_exit 0
23268 _ACEOF
23269 ac_clean_files=$ac_clean_files_save
23270
23271 test $ac_write_fail = 0 ||
23272 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23273
23274
23275 # configure is writing to config.log, and then calls config.status.
23276 # config.status does its own redirection, appending to config.log.
23277 # Unfortunately, on DOS this fails, as config.log is still kept open
23278 # by configure, so config.status won't be able to write to it; its
23279 # output is simply discarded. So we exec the FD to /dev/null,
23280 # effectively closing config.log, so it can be properly (re)opened and
23281 # appended to by config.status. When coming back to configure, we
23282 # need to make the FD available again.
23283 if test "$no_create" != yes; then
23284 ac_cs_success=:
23285 ac_config_status_args=
23286 test "$silent" = yes &&
23287 ac_config_status_args="$ac_config_status_args --quiet"
23288 exec 5>/dev/null
23289 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23290 exec 5>>config.log
23291 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23292 # would make configure fail if this is the last instruction.
23293 $ac_cs_success || as_fn_exit 1
23294 fi
23295 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23297 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23298 fi
23299
23300