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 libfreehand 0.1.3.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='libfreehand'
613 PACKAGE_TARNAME='libfreehand'
614 PACKAGE_VERSION='0.1.3'
615 PACKAGE_STRING='libfreehand 0.1.3'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL=''
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 ac_subst_vars='am__EXEEXT_FALSE
652 am__EXEEXT_TRUE
653 LTLIBOBJS
654 LIBOBJS
655 WITH_LIBFREEHAND_DOCS_FALSE
656 WITH_LIBFREEHAND_DOCS_TRUE
657 DOXYGEN
658 BUILD_TESTS_FALSE
659 BUILD_TESTS_TRUE
660 CPPUNIT_LIBS
661 CPPUNIT_CFLAGS
662 DEBUG_CXXFLAGS
663 WINDRES
664 PLATFORM_WIN32_FALSE
665 PLATFORM_WIN32_TRUE
666 FH2TEXT_WIN32_RESOURCE
667 FH2SVG_WIN32_RESOURCE
668 FH2RAW_WIN32_RESOURCE
669 LIBFREEHAND_WIN32_RESOURCE
670 OS_WIN32_FALSE
671 OS_WIN32_TRUE
672 LT_AGE
673 LT_REVISION
674 LT_CURRENT
675 FH_VERSION
676 FH_MICRO_VERSION
677 FH_MINOR_VERSION
678 FH_MAJOR_VERSION
679 LCMS_LIBS
680 LCMS2_LIBS
681 LCMS2_CFLAGS
682 ICU_LIBS
683 ICU_CFLAGS
684 ZLIB_LIBS
685 ZLIB_CFLAGS
686 REVENGE_GENERATORS_LIBS
687 REVENGE_GENERATORS_CFLAGS
688 REVENGE_STREAM_LIBS
689 REVENGE_STREAM_CFLAGS
690 BUILD_FUZZERS_FALSE
691 BUILD_FUZZERS_TRUE
692 BUILD_TOOLS_FALSE
693 BUILD_TOOLS_TRUE
694 REVENGE_LIBS
695 REVENGE_CFLAGS
696 PERL
697 GPERF
698 PKG_CONFIG_LIBDIR
699 PKG_CONFIG_PATH
700 PKG_CONFIG
701 HAVE_CXX11
702 CXXCPP
703 LT_SYS_LIBRARY_PATH
704 OTOOL64
705 OTOOL
706 LIPO
707 NMEDIT
708 DSYMUTIL
709 MANIFEST_TOOL
710 RANLIB
711 FILECMD
712 NM
713 ac_ct_DUMPBIN
714 DUMPBIN
715 LD
716 FGREP
717 EGREP
718 GREP
719 SED
720 host_os
721 host_vendor
722 host_cpu
723 host
724 build_os
725 build_vendor
726 build_cpu
727 build
728 LIBTOOL
729 OBJDUMP
730 DLLTOOL
731 AS
732 LN_S
733 am__fastdepCXX_FALSE
734 am__fastdepCXX_TRUE
735 CXXDEPMODE
736 ac_ct_CXX
737 CXXFLAGS
738 CXX
739 CPP
740 am__fastdepCC_FALSE
741 am__fastdepCC_TRUE
742 CCDEPMODE
743 am__nodep
744 AMDEPBACKSLASH
745 AMDEP_FALSE
746 AMDEP_TRUE
747 am__include
748 DEPDIR
749 OBJEXT
750 EXEEXT
751 ac_ct_CC
752 CPPFLAGS
753 LDFLAGS
754 CFLAGS
755 CC
756 ac_ct_AR
757 AR
758 am__xargs_n
759 am__rm_f_notfound
760 AM_BACKSLASH
761 AM_DEFAULT_VERBOSITY
762 AM_DEFAULT_V
763 AM_V
764 CSCOPE
765 ETAGS
766 CTAGS
767 am__untar
768 am__tar
769 AMTAR
770 am__leading_dot
771 SET_MAKE
772 AWK
773 mkdir_p
774 MKDIR_P
775 INSTALL_STRIP_PROGRAM
776 STRIP
777 install_sh
778 MAKEINFO
779 AUTOHEADER
780 AUTOMAKE
781 AUTOCONF
782 ACLOCAL
783 VERSION
784 PACKAGE
785 CYGPATH_W
786 am__isrc
787 INSTALL_DATA
788 INSTALL_SCRIPT
789 INSTALL_PROGRAM
790 target_alias
791 host_alias
792 build_alias
793 LIBS
794 ECHO_T
795 ECHO_N
796 ECHO_C
797 DEFS
798 mandir
799 localedir
800 libdir
801 psdir
802 pdfdir
803 dvidir
804 htmldir
805 infodir
806 docdir
807 oldincludedir
808 includedir
809 runstatedir
810 localstatedir
811 sharedstatedir
812 sysconfdir
813 datadir
814 datarootdir
815 libexecdir
816 sbindir
817 bindir
818 program_transform_name
819 prefix
820 exec_prefix
821 PACKAGE_URL
822 PACKAGE_BUGREPORT
823 PACKAGE_STRING
824 PACKAGE_VERSION
825 PACKAGE_TARNAME
826 PACKAGE_NAME
827 PATH_SEPARATOR
828 SHELL
829 am__quote'
830 ac_subst_files=''
831 ac_user_opts='
832 enable_option_checking
833 enable_silent_rules
834 enable_dependency_tracking
835 enable_static
836 enable_pic
837 with_pic
838 enable_shared
839 enable_fast_install
840 enable_aix_soname
841 with_aix_soname
842 with_gnu_ld
843 with_sysroot
844 enable_libtool_lock
845 enable_tools
846 enable_fuzzers
847 enable_werror
848 enable_weffc
849 enable_wparanoic
850 enable_debug
851 enable_tests
852 with_docs
853 '
854 ac_precious_vars='build_alias
855 host_alias
856 target_alias
857 CC
858 CFLAGS
859 LDFLAGS
860 LIBS
861 CPPFLAGS
862 CPP
863 CXX
864 CXXFLAGS
865 CCC
866 LT_SYS_LIBRARY_PATH
867 CXXCPP
868 PKG_CONFIG
869 PKG_CONFIG_PATH
870 PKG_CONFIG_LIBDIR
871 REVENGE_CFLAGS
872 REVENGE_LIBS
873 REVENGE_STREAM_CFLAGS
874 REVENGE_STREAM_LIBS
875 REVENGE_GENERATORS_CFLAGS
876 REVENGE_GENERATORS_LIBS
877 ZLIB_CFLAGS
878 ZLIB_LIBS
879 ICU_CFLAGS
880 ICU_LIBS
881 LCMS2_CFLAGS
882 LCMS2_LIBS
883 CPPUNIT_CFLAGS
884 CPPUNIT_LIBS'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 ac_unrecognized_opts=
891 ac_unrecognized_sep=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 runstatedir='${localstatedir}/run'
924 includedir='${prefix}/include'
925 oldincludedir='/usr/include'
926 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir='${datarootdir}/info'
928 htmldir='${docdir}'
929 dvidir='${docdir}'
930 pdfdir='${docdir}'
931 psdir='${docdir}'
932 libdir='${exec_prefix}/lib'
933 localedir='${datarootdir}/locale'
934 mandir='${datarootdir}/man'
935
936 ac_prev=
937 ac_dashdash=
938 for ac_option
939 do
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\$ac_option
943 ac_prev=
944 continue
945 fi
946
947 case $ac_option in
948 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
949 *=) ac_optarg= ;;
950 *) ac_optarg=yes ;;
951 esac
952
953 case $ac_dashdash$ac_option in
954 --)
955 ac_dashdash=yes ;;
956
957 -bindir | --bindir | --bindi | --bind | --bin | --bi)
958 ac_prev=bindir ;;
959 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960 bindir=$ac_optarg ;;
961
962 -build | --build | --buil | --bui | --bu)
963 ac_prev=build_alias ;;
964 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965 build_alias=$ac_optarg ;;
966
967 -cache-file | --cache-file | --cache-fil | --cache-fi \
968 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969 ac_prev=cache_file ;;
970 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972 cache_file=$ac_optarg ;;
973
974 --config-cache | -C)
975 cache_file=config.cache ;;
976
977 -datadir | --datadir | --datadi | --datad)
978 ac_prev=datadir ;;
979 -datadir=* | --datadir=* | --datadi=* | --datad=*)
980 datadir=$ac_optarg ;;
981
982 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983 | --dataroo | --dataro | --datar)
984 ac_prev=datarootdir ;;
985 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987 datarootdir=$ac_optarg ;;
988
989 -disable-* | --disable-*)
990 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991 # Reject names that are not valid shell variable names.
992 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993 as_fn_error $? "invalid feature name: '$ac_useropt'"
994 ac_useropt_orig=$ac_useropt
995 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
996 case $ac_user_opts in
997 *"
998 "enable_$ac_useropt"
999 "*) ;;
1000 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1001 ac_unrecognized_sep=', ';;
1002 esac
1003 eval enable_$ac_useropt=no ;;
1004
1005 -docdir | --docdir | --docdi | --doc | --do)
1006 ac_prev=docdir ;;
1007 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1008 docdir=$ac_optarg ;;
1009
1010 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1011 ac_prev=dvidir ;;
1012 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1013 dvidir=$ac_optarg ;;
1014
1015 -enable-* | --enable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: '$ac_useropt'"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=\$ac_optarg ;;
1030
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1039
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1042 with_gas=yes ;;
1043
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1050
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1055
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1057 ac_prev=htmldir ;;
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1059 | --ht=*)
1060 htmldir=$ac_optarg ;;
1061
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1068
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1070 ac_prev=infodir ;;
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1073
1074 -libdir | --libdir | --libdi | --libd)
1075 ac_prev=libdir ;;
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1078
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1085
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1090
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1097
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1099 ac_prev=mandir ;;
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1102
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1105 with_fp=no ;;
1106
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1109 no_create=yes ;;
1110
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1113 no_recursion=yes ;;
1114
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1123
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1125 ac_prev=prefix ;;
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1128
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1135
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1142
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1159
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1161 ac_prev=pdfdir ;;
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1164
1165 -psdir | --psdir | --psdi | --psd | --ps)
1166 ac_prev=psdir ;;
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1168 psdir=$ac_optarg ;;
1169
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1172 silent=yes ;;
1173
1174 -runstatedir | --runstatedir | --runstatedi | --runstated \
1175 | --runstate | --runstat | --runsta | --runst | --runs \
1176 | --run | --ru | --r)
1177 ac_prev=runstatedir ;;
1178 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1179 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1180 | --run=* | --ru=* | --r=*)
1181 runstatedir=$ac_optarg ;;
1182
1183 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 ac_prev=sbindir ;;
1185 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 | --sbi=* | --sb=*)
1187 sbindir=$ac_optarg ;;
1188
1189 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191 | --sharedst | --shareds | --shared | --share | --shar \
1192 | --sha | --sh)
1193 ac_prev=sharedstatedir ;;
1194 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 | --sha=* | --sh=*)
1198 sharedstatedir=$ac_optarg ;;
1199
1200 -site | --site | --sit)
1201 ac_prev=site ;;
1202 -site=* | --site=* | --sit=*)
1203 site=$ac_optarg ;;
1204
1205 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 ac_prev=srcdir ;;
1207 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208 srcdir=$ac_optarg ;;
1209
1210 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211 | --syscon | --sysco | --sysc | --sys | --sy)
1212 ac_prev=sysconfdir ;;
1213 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215 sysconfdir=$ac_optarg ;;
1216
1217 -target | --target | --targe | --targ | --tar | --ta | --t)
1218 ac_prev=target_alias ;;
1219 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220 target_alias=$ac_optarg ;;
1221
1222 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 verbose=yes ;;
1224
1225 -version | --version | --versio | --versi | --vers | -V)
1226 ac_init_version=: ;;
1227
1228 -with-* | --with-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: '$ac_useropt'"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1236 *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=\$ac_optarg ;;
1243
1244 -without-* | --without-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error $? "invalid package name: '$ac_useropt'"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1252 *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1257 esac
1258 eval with_$ac_useropt=no ;;
1259
1260 --x)
1261 # Obsolete; use --with-x.
1262 with_x=yes ;;
1263
1264 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265 | --x-incl | --x-inc | --x-in | --x-i)
1266 ac_prev=x_includes ;;
1267 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269 x_includes=$ac_optarg ;;
1270
1271 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273 ac_prev=x_libraries ;;
1274 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276 x_libraries=$ac_optarg ;;
1277
1278 -*) as_fn_error $? "unrecognized option: '$ac_option'
1279 Try '$0 --help' for more information"
1280 ;;
1281
1282 *=*)
1283 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' | [0-9]* | *[!_$as_cr_alnum]* )
1287 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1288 esac
1289 eval $ac_envvar=\$ac_optarg
1290 export $ac_envvar ;;
1291
1292 *)
1293 # FIXME: should be removed in autoconf 3.0.
1294 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1298 ;;
1299
1300 esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $? "missing argument to $ac_option"
1306 fi
1307
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1310 no) ;;
1311 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313 esac
1314 fi
1315
1316 # Check all directory arguments for consistency.
1317 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir runstatedir
1321 do
1322 eval ac_val=\$$ac_var
1323 # Remove trailing slashes.
1324 case $ac_val in
1325 */ )
1326 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\$ac_val;;
1328 esac
1329 # Be sure to have absolute directory names.
1330 case $ac_val in
1331 [\\/$]* | ?:[\\/]* ) continue;;
1332 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333 esac
1334 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1336
1337 # There might be people who depend on the old broken behavior: '$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346 if test "x$build_alias" = x; then
1347 cross_compiling=maybe
1348 elif test "x$build_alias" != "x$host_alias"; then
1349 cross_compiling=yes
1350 fi
1351 fi
1352
1353 ac_tool_prefix=
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1355
1356 test "$silent" = yes && exec 6>/dev/null
1357
1358
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362 as_fn_error $? "working directory cannot be determined"
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 as_fn_error $? "pwd does not report name of working directory"
1365
1366
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir=`$as_dirname -- "$as_myself" ||
1372 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376 printf "%s\n" X"$as_myself" |
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1378 s//\1/
1379 q
1380 }
1381 /^X\(\/\/\)[^/].*/{
1382 s//\1/
1383 q
1384 }
1385 /^X\(\/\/\)$/{
1386 s//\1/
1387 q
1388 }
1389 /^X\(\/\).*/{
1390 s//\1/
1391 q
1392 }
1393 s/.*/./; q'`
1394 srcdir=$ac_confdir
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1396 srcdir=..
1397 fi
1398 else
1399 ac_srcdir_defaulted=no
1400 fi
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1404 fi
1405 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1406 ac_abs_confdir=`(
1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1408 pwd)`
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1411 srcdir=.
1412 fi
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1416 case $srcdir in
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1418 esac
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1424 done
1425
1426 #
1427 # Report the --help message.
1428 #
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1432 cat <<_ACEOF
1433 'configure' configures libfreehand 0.1.3 to adapt to many kinds of systems.
1434
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1436
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1439
1440 Defaults for the options are specified in brackets.
1441
1442 Configuration:
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print 'checking ...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for '--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or '..']
1452
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1457 [PREFIX]
1458
1459 By default, 'make install' will install all the files in
1460 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than '$ac_default_prefix' using '--prefix',
1462 for instance '--prefix=\$HOME'.
1463
1464 For better control, use the options below.
1465
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1474 --libdir=DIR object code libraries [EPREFIX/lib]
1475 --includedir=DIR C header files [PREFIX/include]
1476 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1477 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1478 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1479 --infodir=DIR info documentation [DATAROOTDIR/info]
1480 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1481 --mandir=DIR man documentation [DATAROOTDIR/man]
1482 --docdir=DIR documentation root [DATAROOTDIR/doc/libfreehand]
1483 --htmldir=DIR html documentation [DOCDIR]
1484 --dvidir=DIR dvi documentation [DOCDIR]
1485 --pdfdir=DIR pdf documentation [DOCDIR]
1486 --psdir=DIR ps documentation [DOCDIR]
1487 _ACEOF
1488
1489 cat <<\_ACEOF
1490
1491 Program names:
1492 --program-prefix=PREFIX prepend PREFIX to installed program names
1493 --program-suffix=SUFFIX append SUFFIX to installed program names
1494 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1495
1496 System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499 _ACEOF
1500 fi
1501
1502 if test -n "$ac_init_help"; then
1503 case $ac_init_help in
1504 short | recursive ) echo "Configuration of libfreehand 0.1.3:";;
1505 esac
1506 cat <<\_ACEOF
1507
1508 Optional Features:
1509 --disable-option-checking ignore unrecognized --enable/--with options
1510 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1511 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1512 --enable-silent-rules less verbose build output (undo: "make V=1")
1513 --disable-silent-rules verbose build output (undo: "make V=0")
1514 --enable-dependency-tracking
1515 do not reject slow dependency extractors
1516 --disable-dependency-tracking
1517 speeds up one-time build
1518 --enable-static[=PKGS] build static libraries [default=no]
1519 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1520 both]
1521 --enable-shared[=PKGS] build shared libraries [default=yes]
1522 --enable-fast-install[=PKGS]
1523 optimize for fast installation [default=yes]
1524 --enable-aix-soname=aix|svr4|both
1525 shared library versioning (aka "SONAME") variant to
1526 provide on AIX, [default=aix].
1527 --disable-libtool-lock avoid locking (might break parallel builds)
1528 --disable-tools Build conversion tools
1529 --enable-fuzzers Build fuzzer(s)
1530 --enable-werror Treat all warnings as errors, useful for development
1531 --disable-weffc Disable -Weffc++ warnings, useful when using an old
1532 version of gcc or of boost
1533 --enable-wparanoic Enable a lot of warnings...
1534 --enable-debug Turn on debugging
1535 --enable-tests Build and run unit tests
1536
1537 Optional Packages:
1538 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1539 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1540 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1541 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1542 compiler's sysroot if not specified).
1543 --without-docs Do not build documentation
1544
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1553 CPP C preprocessor
1554 CXX C++ compiler command
1555 CXXFLAGS C++ compiler flags
1556 LT_SYS_LIBRARY_PATH
1557 User-defined run-time library search path.
1558 CXXCPP C++ preprocessor
1559 PKG_CONFIG path to pkg-config utility
1560 PKG_CONFIG_PATH
1561 directories to add to pkg-config's search path
1562 PKG_CONFIG_LIBDIR
1563 path overriding pkg-config's built-in search path
1564 REVENGE_CFLAGS
1565 C compiler flags for REVENGE, overriding pkg-config
1566 REVENGE_LIBS
1567 linker flags for REVENGE, overriding pkg-config
1568 REVENGE_STREAM_CFLAGS
1569 C compiler flags for REVENGE_STREAM, overriding pkg-config
1570 REVENGE_STREAM_LIBS
1571 linker flags for REVENGE_STREAM, overriding pkg-config
1572 REVENGE_GENERATORS_CFLAGS
1573 C compiler flags for REVENGE_GENERATORS, overriding pkg-config
1574 REVENGE_GENERATORS_LIBS
1575 linker flags for REVENGE_GENERATORS, overriding pkg-config
1576 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1577 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1578 ICU_CFLAGS C compiler flags for ICU, overriding pkg-config
1579 ICU_LIBS linker flags for ICU, overriding pkg-config
1580 LCMS2_CFLAGS
1581 C compiler flags for LCMS2, overriding pkg-config
1582 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
1583 CPPUNIT_CFLAGS
1584 C compiler flags for CPPUNIT, overriding pkg-config
1585 CPPUNIT_LIBS
1586 linker flags for CPPUNIT, overriding pkg-config
1587
1588 Use these variables to override the choices made by 'configure' or to help
1589 it to find libraries and programs with nonstandard names/locations.
1590
1591 Report bugs to the package provider.
1592 _ACEOF
1593 ac_status=$?
1594 fi
1595
1596 if test "$ac_init_help" = "recursive"; then
1597 # If there are subdirs, report their specific --help.
1598 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1599 test -d "$ac_dir" ||
1600 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1601 continue
1602 ac_builddir=.
1603
1604 case "$ac_dir" in
1605 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1606 *)
1607 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1608 # A ".." for each directory in $ac_dir_suffix.
1609 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1610 case $ac_top_builddir_sub in
1611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1613 esac ;;
1614 esac
1615 ac_abs_top_builddir=$ac_pwd
1616 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1617 # for backward compatibility:
1618 ac_top_builddir=$ac_top_build_prefix
1619
1620 case $srcdir in
1621 .) # We are building in place.
1622 ac_srcdir=.
1623 ac_top_srcdir=$ac_top_builddir_sub
1624 ac_abs_top_srcdir=$ac_pwd ;;
1625 [\\/]* | ?:[\\/]* ) # Absolute name.
1626 ac_srcdir=$srcdir$ac_dir_suffix;
1627 ac_top_srcdir=$srcdir
1628 ac_abs_top_srcdir=$srcdir ;;
1629 *) # Relative name.
1630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1631 ac_top_srcdir=$ac_top_build_prefix$srcdir
1632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1633 esac
1634 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1635
1636 cd "$ac_dir" || { ac_status=$?; continue; }
1637 # Check for configure.gnu first; this name is used for a wrapper for
1638 # Metaconfig's "Configure" on case-insensitive file systems.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1645 else
1646 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
1649 done
1650 fi
1651
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1654 cat <<\_ACEOF
1655 libfreehand configure 0.1.3
1656 generated by GNU Autoconf 2.72
1657
1658 Copyright (C) 2023 Free Software Foundation, Inc.
1659 This configure script is free software; the Free Software Foundation
1660 gives unlimited permission to copy, distribute and modify it.
1661 _ACEOF
1662 exit
1663 fi
1664
1665 ## ------------------------ ##
1666 ## Autoconf initialization. ##
1667 ## ------------------------ ##
1668
1669 # ac_fn_c_try_compile LINENO
1670 # --------------------------
1671 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_compile ()
1673 {
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest.beam
1676 if { { ac_try="$ac_compile"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 printf "%s\n" "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext
1695 then :
1696 ac_retval=0
1697 else case e in #(
1698 e) printf "%s\n" "$as_me: failed program was:" >&5
1699 sed 's/^/| /' conftest.$ac_ext >&5
1700
1701 ac_retval=1 ;;
1702 esac
1703 fi
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_compile
1708
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_cpp ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 printf "%s\n" "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i && {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 }
1734 then :
1735 ac_retval=0
1736 else case e in #(
1737 e) printf "%s\n" "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1739
1740 ac_retval=1 ;;
1741 esac
1742 fi
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_cpp
1747
1748 # ac_fn_cxx_try_compile LINENO
1749 # ----------------------------
1750 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_cxx_try_compile ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 rm -f conftest.$ac_objext conftest.beam
1755 if { { ac_try="$ac_compile"
1756 case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759 esac
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 printf "%s\n" "$ac_try_echo"; } >&5
1762 (eval "$ac_compile") 2>conftest.err
1763 ac_status=$?
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1768 fi
1769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } && {
1771 test -z "$ac_cxx_werror_flag" ||
1772 test ! -s conftest.err
1773 } && test -s conftest.$ac_objext
1774 then :
1775 ac_retval=0
1776 else case e in #(
1777 e) printf "%s\n" "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 ac_retval=1 ;;
1781 esac
1782 fi
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1785
1786 } # ac_fn_cxx_try_compile
1787
1788 # ac_fn_c_try_link LINENO
1789 # -----------------------
1790 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_c_try_link ()
1792 {
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796 case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799 esac
1800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 printf "%s\n" "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 test -x conftest$ac_exeext
1816 }
1817 then :
1818 ac_retval=0
1819 else case e in #(
1820 e) printf "%s\n" "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=1 ;;
1824 esac
1825 fi
1826 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1827 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1828 # interfere with the next link command; also delete a directory that is
1829 # left behind by Apple's compiler. We do this before executing the actions.
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_link
1835
1836 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1837 # -------------------------------------------------------
1838 # Tests whether HEADER exists and can be compiled using the include files in
1839 # INCLUDES, setting the cache variable VAR accordingly.
1840 ac_fn_c_check_header_compile ()
1841 {
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844 printf %s "checking for $2... " >&6; }
1845 if eval test \${$3+y}
1846 then :
1847 printf %s "(cached) " >&6
1848 else case e in #(
1849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 $4
1852 #include <$2>
1853 _ACEOF
1854 if ac_fn_c_try_compile "$LINENO"
1855 then :
1856 eval "$3=yes"
1857 else case e in #(
1858 e) eval "$3=no" ;;
1859 esac
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1862 esac
1863 fi
1864 eval ac_res=\$$3
1865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 printf "%s\n" "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 printf %s "checking for $2... " >&6; }
1879 if eval test \${$3+y}
1880 then :
1881 printf %s "(cached) " >&6
1882 else case e in #(
1883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (void); below. */
1891
1892 #include <limits.h>
1893 #undef $2
1894
1895 /* Override any GCC internal prototype to avoid an error.
1896 Use char because int might match the return type of a GCC
1897 builtin and then its argument prototype would still apply. */
1898 #ifdef __cplusplus
1899 extern "C"
1900 #endif
1901 char $2 (void);
1902 /* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905 #if defined __stub_$2 || defined __stub___$2
1906 choke me
1907 #endif
1908
1909 int
1910 main (void)
1911 {
1912 return $2 ();
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_link "$LINENO"
1918 then :
1919 eval "$3=yes"
1920 else case e in #(
1921 e) eval "$3=no" ;;
1922 esac
1923 fi
1924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1925 conftest$ac_exeext conftest.$ac_ext ;;
1926 esac
1927 fi
1928 eval ac_res=\$$3
1929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 printf "%s\n" "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933 } # ac_fn_c_check_func
1934
1935 # ac_fn_cxx_try_cpp LINENO
1936 # ------------------------
1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_cxx_try_cpp ()
1939 {
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_cpp conftest.$ac_ext"
1942 case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 printf "%s\n" "$ac_try_echo"; } >&5
1948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949 ac_status=$?
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1954 fi
1955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } > conftest.i && {
1957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958 test ! -s conftest.err
1959 }
1960 then :
1961 ac_retval=0
1962 else case e in #(
1963 e) printf "%s\n" "$as_me: failed program was:" >&5
1964 sed 's/^/| /' conftest.$ac_ext >&5
1965
1966 ac_retval=1 ;;
1967 esac
1968 fi
1969 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1970 as_fn_set_status $ac_retval
1971
1972 } # ac_fn_cxx_try_cpp
1973
1974 # ac_fn_cxx_try_link LINENO
1975 # -------------------------
1976 # Try to link conftest.$ac_ext, and return whether this succeeded.
1977 ac_fn_cxx_try_link ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1981 if { { ac_try="$ac_link"
1982 case "(($ac_try" in
1983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1984 *) ac_try_echo=$ac_try;;
1985 esac
1986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1987 printf "%s\n" "$ac_try_echo"; } >&5
1988 (eval "$ac_link") 2>conftest.err
1989 ac_status=$?
1990 if test -s conftest.err; then
1991 grep -v '^ *+' conftest.err >conftest.er1
1992 cat conftest.er1 >&5
1993 mv -f conftest.er1 conftest.err
1994 fi
1995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1996 test $ac_status = 0; } && {
1997 test -z "$ac_cxx_werror_flag" ||
1998 test ! -s conftest.err
1999 } && test -s conftest$ac_exeext && {
2000 test "$cross_compiling" = yes ||
2001 test -x conftest$ac_exeext
2002 }
2003 then :
2004 ac_retval=0
2005 else case e in #(
2006 e) printf "%s\n" "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2008
2009 ac_retval=1 ;;
2010 esac
2011 fi
2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014 # interfere with the next link command; also delete a directory that is
2015 # left behind by Apple's compiler. We do this before executing the actions.
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status $ac_retval
2019
2020 } # ac_fn_cxx_try_link
2021
2022 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2023 # ---------------------------------------------------------
2024 # Tests whether HEADER exists and can be compiled using the include files in
2025 # INCLUDES, setting the cache variable VAR accordingly.
2026 ac_fn_cxx_check_header_compile ()
2027 {
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 printf %s "checking for $2... " >&6; }
2031 if eval test \${$3+y}
2032 then :
2033 printf %s "(cached) " >&6
2034 else case e in #(
2035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036 /* end confdefs.h. */
2037 $4
2038 #include <$2>
2039 _ACEOF
2040 if ac_fn_cxx_try_compile "$LINENO"
2041 then :
2042 eval "$3=yes"
2043 else case e in #(
2044 e) eval "$3=no" ;;
2045 esac
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2048 esac
2049 fi
2050 eval ac_res=\$$3
2051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 printf "%s\n" "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055 } # ac_fn_cxx_check_header_compile
2056 ac_configure_args_raw=
2057 for ac_arg
2058 do
2059 case $ac_arg in
2060 *\'*)
2061 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062 esac
2063 as_fn_append ac_configure_args_raw " '$ac_arg'"
2064 done
2065
2066 case $ac_configure_args_raw in
2067 *$as_nl*)
2068 ac_safe_unquote= ;;
2069 *)
2070 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2071 ac_unsafe_a="$ac_unsafe_z#~"
2072 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2073 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2074 esac
2075
2076 cat >config.log <<_ACEOF
2077 This file contains any messages produced by compilers while
2078 running configure, to aid debugging if configure makes a mistake.
2079
2080 It was created by libfreehand $as_me 0.1.3, which was
2081 generated by GNU Autoconf 2.72. Invocation command line was
2082
2083 $ $0$ac_configure_args_raw
2084
2085 _ACEOF
2086 exec 5>>config.log
2087 {
2088 cat <<_ASUNAME
2089 ## --------- ##
2090 ## Platform. ##
2091 ## --------- ##
2092
2093 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2094 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2095 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2096 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2097 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2098
2099 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2100 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2101
2102 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2103 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2104 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2105 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2106 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2107 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2108 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2109
2110 _ASUNAME
2111
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115 IFS=$as_save_IFS
2116 case $as_dir in #(((
2117 '') as_dir=./ ;;
2118 */) ;;
2119 *) as_dir=$as_dir/ ;;
2120 esac
2121 printf "%s\n" "PATH: $as_dir"
2122 done
2123 IFS=$as_save_IFS
2124
2125 } >&5
2126
2127 cat >&5 <<_ACEOF
2128
2129
2130 ## ----------- ##
2131 ## Core tests. ##
2132 ## ----------- ##
2133
2134 _ACEOF
2135
2136
2137 # Keep a trace of the command line.
2138 # Strip out --no-create and --no-recursion so they do not pile up.
2139 # Strip out --silent because we don't want to record it for future runs.
2140 # Also quote any args containing shell meta-characters.
2141 # Make two passes to allow for proper duplicate-argument suppression.
2142 ac_configure_args=
2143 ac_configure_args0=
2144 ac_configure_args1=
2145 ac_must_keep_next=false
2146 for ac_pass in 1 2
2147 do
2148 for ac_arg
2149 do
2150 case $ac_arg in
2151 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2153 | -silent | --silent | --silen | --sile | --sil)
2154 continue ;;
2155 *\'*)
2156 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2157 esac
2158 case $ac_pass in
2159 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2160 2)
2161 as_fn_append ac_configure_args1 " '$ac_arg'"
2162 if test $ac_must_keep_next = true; then
2163 ac_must_keep_next=false # Got value, back to normal.
2164 else
2165 case $ac_arg in
2166 *=* | --config-cache | -C | -disable-* | --disable-* \
2167 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2168 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2169 | -with-* | --with-* | -without-* | --without-* | --x)
2170 case "$ac_configure_args0 " in
2171 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2172 esac
2173 ;;
2174 -* ) ac_must_keep_next=true ;;
2175 esac
2176 fi
2177 as_fn_append ac_configure_args " '$ac_arg'"
2178 ;;
2179 esac
2180 done
2181 done
2182 { ac_configure_args0=; unset ac_configure_args0;}
2183 { ac_configure_args1=; unset ac_configure_args1;}
2184
2185 # When interrupted or exit'd, cleanup temporary files, and complete
2186 # config.log. We remove comments because anyway the quotes in there
2187 # would cause problems or look ugly.
2188 # WARNING: Use '\'' to represent an apostrophe within the trap.
2189 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2190 trap 'exit_status=$?
2191 # Sanitize IFS.
2192 IFS=" "" $as_nl"
2193 # Save into config.log some information that might help in debugging.
2194 {
2195 echo
2196
2197 printf "%s\n" "## ---------------- ##
2198 ## Cache variables. ##
2199 ## ---------------- ##"
2200 echo
2201 # The following way of writing the cache mishandles newlines in values,
2202 (
2203 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2204 eval ac_val=\$$ac_var
2205 case $ac_val in #(
2206 *${as_nl}*)
2207 case $ac_var in #(
2208 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2209 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2210 esac
2211 case $ac_var in #(
2212 _ | IFS | as_nl) ;; #(
2213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2214 *) { eval $ac_var=; unset $ac_var;} ;;
2215 esac ;;
2216 esac
2217 done
2218 (set) 2>&1 |
2219 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2220 *${as_nl}ac_space=\ *)
2221 sed -n \
2222 "s/'\''/'\''\\\\'\'''\''/g;
2223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2224 ;; #(
2225 *)
2226 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2227 ;;
2228 esac |
2229 sort
2230 )
2231 echo
2232
2233 printf "%s\n" "## ----------------- ##
2234 ## Output variables. ##
2235 ## ----------------- ##"
2236 echo
2237 for ac_var in $ac_subst_vars
2238 do
2239 eval ac_val=\$$ac_var
2240 case $ac_val in
2241 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2242 esac
2243 printf "%s\n" "$ac_var='\''$ac_val'\''"
2244 done | sort
2245 echo
2246
2247 if test -n "$ac_subst_files"; then
2248 printf "%s\n" "## ------------------- ##
2249 ## File substitutions. ##
2250 ## ------------------- ##"
2251 echo
2252 for ac_var in $ac_subst_files
2253 do
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 printf "%s\n" "$ac_var='\''$ac_val'\''"
2259 done | sort
2260 echo
2261 fi
2262
2263 if test -s confdefs.h; then
2264 printf "%s\n" "## ----------- ##
2265 ## confdefs.h. ##
2266 ## ----------- ##"
2267 echo
2268 cat confdefs.h
2269 echo
2270 fi
2271 test "$ac_signal" != 0 &&
2272 printf "%s\n" "$as_me: caught signal $ac_signal"
2273 printf "%s\n" "$as_me: exit $exit_status"
2274 } >&5
2275 rm -f core *.core core.conftest.* &&
2276 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277 exit $exit_status
2278 ' 0
2279 for ac_signal in 1 2 13 15; do
2280 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2281 done
2282 ac_signal=0
2283
2284 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2285 rm -f -r conftest* confdefs.h
2286
2287 printf "%s\n" "/* confdefs.h */" > confdefs.h
2288
2289 # Predefined preprocessor variables.
2290
2291 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2292
2293 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2294
2295 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2296
2297 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2298
2299 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2300
2301 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2302
2303
2304 # Let the site file select an alternate cache file if it wants to.
2305 # Prefer an explicitly selected file to automatically selected ones.
2306 if test -n "$CONFIG_SITE"; then
2307 ac_site_files="$CONFIG_SITE"
2308 elif test "x$prefix" != xNONE; then
2309 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2310 else
2311 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2312 fi
2313
2314 for ac_site_file in $ac_site_files
2315 do
2316 case $ac_site_file in #(
2317 */*) :
2318 ;; #(
2319 *) :
2320 ac_site_file=./$ac_site_file ;;
2321 esac
2322 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2325 sed 's/^/| /' "$ac_site_file" >&5
2326 . "$ac_site_file" \
2327 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2328 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2329 as_fn_error $? "failed to load site script $ac_site_file
2330 See 'config.log' for more details" "$LINENO" 5; }
2331 fi
2332 done
2333
2334 if test -r "$cache_file"; then
2335 # Some versions of bash will fail to source /dev/null (special files
2336 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2337 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2339 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2340 case $cache_file in
2341 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2342 *) . "./$cache_file";;
2343 esac
2344 fi
2345 else
2346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2347 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2348 >$cache_file
2349 fi
2350
2351 # Test code for whether the C compiler supports C89 (global declarations)
2352 ac_c_conftest_c89_globals='
2353 /* Does the compiler advertise C89 conformance?
2354 Do not test the value of __STDC__, because some compilers set it to 0
2355 while being otherwise adequately conformant. */
2356 #if !defined __STDC__
2357 # error "Compiler does not advertise C89 conformance"
2358 #endif
2359
2360 #include <stddef.h>
2361 #include <stdarg.h>
2362 struct stat;
2363 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2364 struct buf { int x; };
2365 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2366 static char *e (char **p, int i)
2367 {
2368 return p[i];
2369 }
2370 static char *f (char * (*g) (char **, int), char **p, ...)
2371 {
2372 char *s;
2373 va_list v;
2374 va_start (v,p);
2375 s = g (p, va_arg (v,int));
2376 va_end (v);
2377 return s;
2378 }
2379
2380 /* C89 style stringification. */
2381 #define noexpand_stringify(a) #a
2382 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2383
2384 /* C89 style token pasting. Exercises some of the corner cases that
2385 e.g. old MSVC gets wrong, but not very hard. */
2386 #define noexpand_concat(a,b) a##b
2387 #define expand_concat(a,b) noexpand_concat(a,b)
2388 extern int vA;
2389 extern int vbee;
2390 #define aye A
2391 #define bee B
2392 int *pvA = &expand_concat(v,aye);
2393 int *pvbee = &noexpand_concat(v,bee);
2394
2395 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2396 function prototypes and stuff, but not \xHH hex character constants.
2397 These do not provoke an error unfortunately, instead are silently treated
2398 as an "x". The following induces an error, until -std is added to get
2399 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2400 array size at least. It is necessary to write \x00 == 0 to get something
2401 that is true only with -std. */
2402 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2403
2404 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2405 inside strings and character constants. */
2406 #define FOO(x) '\''x'\''
2407 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2408
2409 int test (int i, double x);
2410 struct s1 {int (*f) (int a);};
2411 struct s2 {int (*f) (double a);};
2412 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2413 int, int);'
2414
2415 # Test code for whether the C compiler supports C89 (body of main).
2416 ac_c_conftest_c89_main='
2417 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2418 '
2419
2420 # Test code for whether the C compiler supports C99 (global declarations)
2421 ac_c_conftest_c99_globals='
2422 /* Does the compiler advertise C99 conformance? */
2423 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2424 # error "Compiler does not advertise C99 conformance"
2425 #endif
2426
2427 // See if C++-style comments work.
2428
2429 #include <stdbool.h>
2430 extern int puts (const char *);
2431 extern int printf (const char *, ...);
2432 extern int dprintf (int, const char *, ...);
2433 extern void *malloc (size_t);
2434 extern void free (void *);
2435
2436 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2437 // dprintf is used instead of fprintf to avoid needing to declare
2438 // FILE and stderr.
2439 #define debug(...) dprintf (2, __VA_ARGS__)
2440 #define showlist(...) puts (#__VA_ARGS__)
2441 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2442 static void
2443 test_varargs_macros (void)
2444 {
2445 int x = 1234;
2446 int y = 5678;
2447 debug ("Flag");
2448 debug ("X = %d\n", x);
2449 showlist (The first, second, and third items.);
2450 report (x>y, "x is %d but y is %d", x, y);
2451 }
2452
2453 // Check long long types.
2454 #define BIG64 18446744073709551615ull
2455 #define BIG32 4294967295ul
2456 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2457 #if !BIG_OK
2458 #error "your preprocessor is broken"
2459 #endif
2460 #if BIG_OK
2461 #else
2462 #error "your preprocessor is broken"
2463 #endif
2464 static long long int bignum = -9223372036854775807LL;
2465 static unsigned long long int ubignum = BIG64;
2466
2467 struct incomplete_array
2468 {
2469 int datasize;
2470 double data[];
2471 };
2472
2473 struct named_init {
2474 int number;
2475 const wchar_t *name;
2476 double average;
2477 };
2478
2479 typedef const char *ccp;
2480
2481 static inline int
2482 test_restrict (ccp restrict text)
2483 {
2484 // Iterate through items via the restricted pointer.
2485 // Also check for declarations in for loops.
2486 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2487 continue;
2488 return 0;
2489 }
2490
2491 // Check varargs and va_copy.
2492 static bool
2493 test_varargs (const char *format, ...)
2494 {
2495 va_list args;
2496 va_start (args, format);
2497 va_list args_copy;
2498 va_copy (args_copy, args);
2499
2500 const char *str = "";
2501 int number = 0;
2502 float fnumber = 0;
2503
2504 while (*format)
2505 {
2506 switch (*format++)
2507 {
2508 case '\''s'\'': // string
2509 str = va_arg (args_copy, const char *);
2510 break;
2511 case '\''d'\'': // int
2512 number = va_arg (args_copy, int);
2513 break;
2514 case '\''f'\'': // float
2515 fnumber = va_arg (args_copy, double);
2516 break;
2517 default:
2518 break;
2519 }
2520 }
2521 va_end (args_copy);
2522 va_end (args);
2523
2524 return *str && number && fnumber;
2525 }
2526 '
2527
2528 # Test code for whether the C compiler supports C99 (body of main).
2529 ac_c_conftest_c99_main='
2530 // Check bool.
2531 _Bool success = false;
2532 success |= (argc != 0);
2533
2534 // Check restrict.
2535 if (test_restrict ("String literal") == 0)
2536 success = true;
2537 char *restrict newvar = "Another string";
2538
2539 // Check varargs.
2540 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2541 test_varargs_macros ();
2542
2543 // Check flexible array members.
2544 struct incomplete_array *ia =
2545 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2546 ia->datasize = 10;
2547 for (int i = 0; i < ia->datasize; ++i)
2548 ia->data[i] = i * 1.234;
2549 // Work around memory leak warnings.
2550 free (ia);
2551
2552 // Check named initializers.
2553 struct named_init ni = {
2554 .number = 34,
2555 .name = L"Test wide string",
2556 .average = 543.34343,
2557 };
2558
2559 ni.number = 58;
2560
2561 int dynamic_array[ni.number];
2562 dynamic_array[0] = argv[0][0];
2563 dynamic_array[ni.number - 1] = 543;
2564
2565 // work around unused variable warnings
2566 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2567 || dynamic_array[ni.number - 1] != 543);
2568 '
2569
2570 # Test code for whether the C compiler supports C11 (global declarations)
2571 ac_c_conftest_c11_globals='
2572 /* Does the compiler advertise C11 conformance? */
2573 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2574 # error "Compiler does not advertise C11 conformance"
2575 #endif
2576
2577 // Check _Alignas.
2578 char _Alignas (double) aligned_as_double;
2579 char _Alignas (0) no_special_alignment;
2580 extern char aligned_as_int;
2581 char _Alignas (0) _Alignas (int) aligned_as_int;
2582
2583 // Check _Alignof.
2584 enum
2585 {
2586 int_alignment = _Alignof (int),
2587 int_array_alignment = _Alignof (int[100]),
2588 char_alignment = _Alignof (char)
2589 };
2590 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2591
2592 // Check _Noreturn.
2593 int _Noreturn does_not_return (void) { for (;;) continue; }
2594
2595 // Check _Static_assert.
2596 struct test_static_assert
2597 {
2598 int x;
2599 _Static_assert (sizeof (int) <= sizeof (long int),
2600 "_Static_assert does not work in struct");
2601 long int y;
2602 };
2603
2604 // Check UTF-8 literals.
2605 #define u8 syntax error!
2606 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2607
2608 // Check duplicate typedefs.
2609 typedef long *long_ptr;
2610 typedef long int *long_ptr;
2611 typedef long_ptr long_ptr;
2612
2613 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2614 struct anonymous
2615 {
2616 union {
2617 struct { int i; int j; };
2618 struct { int k; long int l; } w;
2619 };
2620 int m;
2621 } v1;
2622 '
2623
2624 # Test code for whether the C compiler supports C11 (body of main).
2625 ac_c_conftest_c11_main='
2626 _Static_assert ((offsetof (struct anonymous, i)
2627 == offsetof (struct anonymous, w.k)),
2628 "Anonymous union alignment botch");
2629 v1.i = 2;
2630 v1.w.k = 5;
2631 ok |= v1.i != 5;
2632 '
2633
2634 # Test code for whether the C compiler supports C11 (complete).
2635 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2636 ${ac_c_conftest_c99_globals}
2637 ${ac_c_conftest_c11_globals}
2638
2639 int
2640 main (int argc, char **argv)
2641 {
2642 int ok = 0;
2643 ${ac_c_conftest_c89_main}
2644 ${ac_c_conftest_c99_main}
2645 ${ac_c_conftest_c11_main}
2646 return ok;
2647 }
2648 "
2649
2650 # Test code for whether the C compiler supports C99 (complete).
2651 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2652 ${ac_c_conftest_c99_globals}
2653
2654 int
2655 main (int argc, char **argv)
2656 {
2657 int ok = 0;
2658 ${ac_c_conftest_c89_main}
2659 ${ac_c_conftest_c99_main}
2660 return ok;
2661 }
2662 "
2663
2664 # Test code for whether the C compiler supports C89 (complete).
2665 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2666
2667 int
2668 main (int argc, char **argv)
2669 {
2670 int ok = 0;
2671 ${ac_c_conftest_c89_main}
2672 return ok;
2673 }
2674 "
2675
2676 # Test code for whether the C++ compiler supports C++98 (global declarations)
2677 ac_cxx_conftest_cxx98_globals='
2678 // Does the compiler advertise C++98 conformance?
2679 #if !defined __cplusplus || __cplusplus < 199711L
2680 # error "Compiler does not advertise C++98 conformance"
2681 #endif
2682
2683 // These inclusions are to reject old compilers that
2684 // lack the unsuffixed header files.
2685 #include <cstdlib>
2686 #include <exception>
2687
2688 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2689 extern void assert (int);
2690 namespace std {
2691 extern int strcmp (const char *, const char *);
2692 }
2693
2694 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2695 using std::exception;
2696 using std::strcmp;
2697
2698 namespace {
2699
2700 void test_exception_syntax()
2701 {
2702 try {
2703 throw "test";
2704 } catch (const char *s) {
2705 // Extra parentheses suppress a warning when building autoconf itself,
2706 // due to lint rules shared with more typical C programs.
2707 assert (!(strcmp) (s, "test"));
2708 }
2709 }
2710
2711 template <typename T> struct test_template
2712 {
2713 T const val;
2714 explicit test_template(T t) : val(t) {}
2715 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2716 };
2717
2718 } // anonymous namespace
2719 '
2720
2721 # Test code for whether the C++ compiler supports C++98 (body of main)
2722 ac_cxx_conftest_cxx98_main='
2723 assert (argc);
2724 assert (! argv[0]);
2725 {
2726 test_exception_syntax ();
2727 test_template<double> tt (2.0);
2728 assert (tt.add (4) == 6.0);
2729 assert (true && !false);
2730 }
2731 '
2732
2733 # Test code for whether the C++ compiler supports C++11 (global declarations)
2734 ac_cxx_conftest_cxx11_globals='
2735 // Does the compiler advertise C++ 2011 conformance?
2736 #if !defined __cplusplus || __cplusplus < 201103L
2737 # error "Compiler does not advertise C++11 conformance"
2738 #endif
2739
2740 namespace cxx11test
2741 {
2742 constexpr int get_val() { return 20; }
2743
2744 struct testinit
2745 {
2746 int i;
2747 double d;
2748 };
2749
2750 class delegate
2751 {
2752 public:
2753 delegate(int n) : n(n) {}
2754 delegate(): delegate(2354) {}
2755
2756 virtual int getval() { return this->n; };
2757 protected:
2758 int n;
2759 };
2760
2761 class overridden : public delegate
2762 {
2763 public:
2764 overridden(int n): delegate(n) {}
2765 virtual int getval() override final { return this->n * 2; }
2766 };
2767
2768 class nocopy
2769 {
2770 public:
2771 nocopy(int i): i(i) {}
2772 nocopy() = default;
2773 nocopy(const nocopy&) = delete;
2774 nocopy & operator=(const nocopy&) = delete;
2775 private:
2776 int i;
2777 };
2778
2779 // for testing lambda expressions
2780 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2781 {
2782 return f(v);
2783 }
2784
2785 // for testing variadic templates and trailing return types
2786 template <typename V> auto sum(V first) -> V
2787 {
2788 return first;
2789 }
2790 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2791 {
2792 return first + sum(rest...);
2793 }
2794 }
2795 '
2796
2797 # Test code for whether the C++ compiler supports C++11 (body of main)
2798 ac_cxx_conftest_cxx11_main='
2799 {
2800 // Test auto and decltype
2801 auto a1 = 6538;
2802 auto a2 = 48573953.4;
2803 auto a3 = "String literal";
2804
2805 int total = 0;
2806 for (auto i = a3; *i; ++i) { total += *i; }
2807
2808 decltype(a2) a4 = 34895.034;
2809 }
2810 {
2811 // Test constexpr
2812 short sa[cxx11test::get_val()] = { 0 };
2813 }
2814 {
2815 // Test initializer lists
2816 cxx11test::testinit il = { 4323, 435234.23544 };
2817 }
2818 {
2819 // Test range-based for
2820 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2821 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2822 for (auto &x : array) { x += 23; }
2823 }
2824 {
2825 // Test lambda expressions
2826 using cxx11test::eval;
2827 assert (eval ([](int x) { return x*2; }, 21) == 42);
2828 double d = 2.0;
2829 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2830 assert (d == 5.0);
2831 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2832 assert (d == 5.0);
2833 }
2834 {
2835 // Test use of variadic templates
2836 using cxx11test::sum;
2837 auto a = sum(1);
2838 auto b = sum(1, 2);
2839 auto c = sum(1.0, 2.0, 3.0);
2840 }
2841 {
2842 // Test constructor delegation
2843 cxx11test::delegate d1;
2844 cxx11test::delegate d2();
2845 cxx11test::delegate d3(45);
2846 }
2847 {
2848 // Test override and final
2849 cxx11test::overridden o1(55464);
2850 }
2851 {
2852 // Test nullptr
2853 char *c = nullptr;
2854 }
2855 {
2856 // Test template brackets
2857 test_template<::test_template<int>> v(test_template<int>(12));
2858 }
2859 {
2860 // Unicode literals
2861 char const *utf8 = u8"UTF-8 string \u2500";
2862 char16_t const *utf16 = u"UTF-8 string \u2500";
2863 char32_t const *utf32 = U"UTF-32 string \u2500";
2864 }
2865 '
2866
2867 # Test code for whether the C compiler supports C++11 (complete).
2868 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2869 ${ac_cxx_conftest_cxx11_globals}
2870
2871 int
2872 main (int argc, char **argv)
2873 {
2874 int ok = 0;
2875 ${ac_cxx_conftest_cxx98_main}
2876 ${ac_cxx_conftest_cxx11_main}
2877 return ok;
2878 }
2879 "
2880
2881 # Test code for whether the C compiler supports C++98 (complete).
2882 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2883 int
2884 main (int argc, char **argv)
2885 {
2886 int ok = 0;
2887 ${ac_cxx_conftest_cxx98_main}
2888 return ok;
2889 }
2890 "
2891
2892 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2893 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2894 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2895 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2896 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2897 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2898 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2899 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2900 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2901
2902 # Auxiliary files required by this configure script.
2903 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2904
2905 # Locations in which to look for auxiliary files.
2906 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2907
2908 # Search for a directory containing all of the required auxiliary files,
2909 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2910 # If we don't find one directory that contains all the files we need,
2911 # we report the set of missing files from the *first* directory in
2912 # $ac_aux_dir_candidates and give up.
2913 ac_missing_aux_files=""
2914 ac_first_candidate=:
2915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 as_found=false
2918 for as_dir in $ac_aux_dir_candidates
2919 do
2920 IFS=$as_save_IFS
2921 case $as_dir in #(((
2922 '') as_dir=./ ;;
2923 */) ;;
2924 *) as_dir=$as_dir/ ;;
2925 esac
2926 as_found=:
2927
2928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2929 ac_aux_dir_found=yes
2930 ac_install_sh=
2931 for ac_aux in $ac_aux_files
2932 do
2933 # As a special case, if "install-sh" is required, that requirement
2934 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2935 # and $ac_install_sh is set appropriately for whichever one is found.
2936 if test x"$ac_aux" = x"install-sh"
2937 then
2938 if test -f "${as_dir}install-sh"; then
2939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2940 ac_install_sh="${as_dir}install-sh -c"
2941 elif test -f "${as_dir}install.sh"; then
2942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2943 ac_install_sh="${as_dir}install.sh -c"
2944 elif test -f "${as_dir}shtool"; then
2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2946 ac_install_sh="${as_dir}shtool install -c"
2947 else
2948 ac_aux_dir_found=no
2949 if $ac_first_candidate; then
2950 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2951 else
2952 break
2953 fi
2954 fi
2955 else
2956 if test -f "${as_dir}${ac_aux}"; then
2957 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2958 else
2959 ac_aux_dir_found=no
2960 if $ac_first_candidate; then
2961 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2962 else
2963 break
2964 fi
2965 fi
2966 fi
2967 done
2968 if test "$ac_aux_dir_found" = yes; then
2969 ac_aux_dir="$as_dir"
2970 break
2971 fi
2972 ac_first_candidate=false
2973
2974 as_found=false
2975 done
2976 IFS=$as_save_IFS
2977 if $as_found
2978 then :
2979
2980 else case e in #(
2981 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2982 esac
2983 fi
2984
2985
2986 # These three variables are undocumented and unsupported,
2987 # and are intended to be withdrawn in a future Autoconf release.
2988 # They can cause serious problems if a builder's source tree is in a directory
2989 # whose full name contains unusual characters.
2990 if test -f "${ac_aux_dir}config.guess"; then
2991 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2992 fi
2993 if test -f "${ac_aux_dir}config.sub"; then
2994 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2995 fi
2996 if test -f "$ac_aux_dir/configure"; then
2997 ac_configure="$SHELL ${ac_aux_dir}configure"
2998 fi
2999
3000 # Check that the precious variables saved in the cache have kept the same
3001 # value.
3002 ac_cache_corrupted=false
3003 for ac_var in $ac_precious_vars; do
3004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3005 eval ac_new_set=\$ac_env_${ac_var}_set
3006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3007 eval ac_new_val=\$ac_env_${ac_var}_value
3008 case $ac_old_set,$ac_new_set in
3009 set,)
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3011 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3012 ac_cache_corrupted=: ;;
3013 ,set)
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3015 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3016 ac_cache_corrupted=: ;;
3017 ,);;
3018 *)
3019 if test "x$ac_old_val" != "x$ac_new_val"; then
3020 # differences in whitespace do not lead to failure.
3021 ac_old_val_w=`echo x $ac_old_val`
3022 ac_new_val_w=`echo x $ac_new_val`
3023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3025 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3026 ac_cache_corrupted=:
3027 else
3028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3029 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3030 eval $ac_var=\$ac_old_val
3031 fi
3032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3033 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3035 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3036 fi;;
3037 esac
3038 # Pass precious variables to config.status.
3039 if test "$ac_new_set" = set; then
3040 case $ac_new_val in
3041 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3042 *) ac_arg=$ac_var=$ac_new_val ;;
3043 esac
3044 case " $ac_configure_args " in
3045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3046 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3047 esac
3048 fi
3049 done
3050 if $ac_cache_corrupted; then
3051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3052 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3054 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3055 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3056 and start over" "$LINENO" 5
3057 fi
3058 ## -------------------- ##
3059 ## Main body of script. ##
3060 ## -------------------- ##
3061
3062 ac_ext=c
3063 ac_cpp='$CPP $CPPFLAGS'
3064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067
3068
3069
3070 ac_config_headers="$ac_config_headers config.h"
3071
3072 am__api_version='1.17'
3073
3074
3075
3076 # Find a good install program. We prefer a C program (faster),
3077 # so one script is as good as another. But avoid the broken or
3078 # incompatible versions:
3079 # SysV /etc/install, /usr/sbin/install
3080 # SunOS /usr/etc/install
3081 # IRIX /sbin/install
3082 # AIX /bin/install
3083 # AmigaOS /C/install, which installs bootblocks on floppy discs
3084 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3085 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3086 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3087 # OS/2's system install, which has a completely different semantic
3088 # ./install, which can be erroneously created by make from ./install.sh.
3089 # Reject install programs that cannot install multiple files.
3090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3091 printf %s "checking for a BSD-compatible install... " >&6; }
3092 if test -z "$INSTALL"; then
3093 if test ${ac_cv_path_install+y}
3094 then :
3095 printf %s "(cached) " >&6
3096 else case e in #(
3097 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3098 for as_dir in $PATH
3099 do
3100 IFS=$as_save_IFS
3101 case $as_dir in #(((
3102 '') as_dir=./ ;;
3103 */) ;;
3104 *) as_dir=$as_dir/ ;;
3105 esac
3106 # Account for fact that we put trailing slashes in our PATH walk.
3107 case $as_dir in #((
3108 ./ | /[cC]/* | \
3109 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3110 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3111 /usr/ucb/* ) ;;
3112 *)
3113 # OSF1 and SCO ODT 3.0 have their own names for install.
3114 # Don't use installbsd from OSF since it installs stuff as root
3115 # by default.
3116 for ac_prog in ginstall scoinst install; do
3117 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3119 if test $ac_prog = install &&
3120 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3121 # AIX install. It has an incompatible calling convention.
3122 :
3123 elif test $ac_prog = install &&
3124 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3125 # program-specific install script used by HP pwplus--don't use.
3126 :
3127 else
3128 rm -rf conftest.one conftest.two conftest.dir
3129 echo one > conftest.one
3130 echo two > conftest.two
3131 mkdir conftest.dir
3132 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3133 test -s conftest.one && test -s conftest.two &&
3134 test -s conftest.dir/conftest.one &&
3135 test -s conftest.dir/conftest.two
3136 then
3137 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3138 break 3
3139 fi
3140 fi
3141 fi
3142 done
3143 done
3144 ;;
3145 esac
3146
3147 done
3148 IFS=$as_save_IFS
3149
3150 rm -rf conftest.one conftest.two conftest.dir
3151 ;;
3152 esac
3153 fi
3154 if test ${ac_cv_path_install+y}; then
3155 INSTALL=$ac_cv_path_install
3156 else
3157 # As a last resort, use the slow shell script. Don't cache a
3158 # value for INSTALL within a source directory, because that will
3159 # break other packages using the cache if that directory is
3160 # removed, or if the value is a relative name.
3161 INSTALL=$ac_install_sh
3162 fi
3163 fi
3164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3165 printf "%s\n" "$INSTALL" >&6; }
3166
3167 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3168 # It thinks the first close brace ends the variable substitution.
3169 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3170
3171 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3172
3173 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3174
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3176 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3177 if test ${am_cv_sleep_fractional_seconds+y}
3178 then :
3179 printf %s "(cached) " >&6
3180 else case e in #(
3181 e) if sleep 0.001 2>/dev/null
3182 then :
3183 am_cv_sleep_fractional_seconds=yes
3184 else case e in #(
3185 e) am_cv_sleep_fractional_seconds=no ;;
3186 esac
3187 fi
3188 ;;
3189 esac
3190 fi
3191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3192 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3193
3194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3195 printf %s "checking filesystem timestamp resolution... " >&6; }
3196 if test ${am_cv_filesystem_timestamp_resolution+y}
3197 then :
3198 printf %s "(cached) " >&6
3199 else case e in #(
3200 e) # Default to the worst case.
3201 am_cv_filesystem_timestamp_resolution=2
3202
3203 # Only try to go finer than 1 sec if sleep can do it.
3204 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3205 # - 1 sec is not much of a win compared to 2 sec, and
3206 # - it takes 2 seconds to perform the test whether 1 sec works.
3207 #
3208 # Instead, just use the default 2s on platforms that have 1s resolution,
3209 # accept the extra 1s delay when using $sleep in the Automake tests, in
3210 # exchange for not incurring the 2s delay for running the test for all
3211 # packages.
3212 #
3213 am_try_resolutions=
3214 if test "$am_cv_sleep_fractional_seconds" = yes; then
3215 # Even a millisecond often causes a bunch of false positives,
3216 # so just try a hundredth of a second. The time saved between .001 and
3217 # .01 is not terribly consequential.
3218 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3219 fi
3220
3221 # In order to catch current-generation FAT out, we must *modify* files
3222 # that already exist; the *creation* timestamp is finer. Use names
3223 # that make ls -t sort them differently when they have equal
3224 # timestamps than when they have distinct timestamps, keeping
3225 # in mind that ls -t prints the *newest* file first.
3226 rm -f conftest.ts?
3227 : > conftest.ts1
3228 : > conftest.ts2
3229 : > conftest.ts3
3230
3231 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3232 # clobber the current shell's arguments. (Outer-level square brackets
3233 # are removed by m4; they're present so that m4 does not expand
3234 # <dollar><star>; be careful, easy to get confused.)
3235 if (
3236 set X `ls -t conftest.ts[12]` &&
3237 {
3238 test "$*" != "X conftest.ts1 conftest.ts2" ||
3239 test "$*" != "X conftest.ts2 conftest.ts1";
3240 }
3241 ); then :; else
3242 # If neither matched, then we have a broken ls. This can happen
3243 # if, for instance, CONFIG_SHELL is bash and it inherits a
3244 # broken ls alias from the environment. This has actually
3245 # happened. Such a system could not be considered "sane".
3246 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3248 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3249 as_fn_error $? "ls -t produces unexpected output.
3250 Make sure there is not a broken ls alias in your environment.
3251 See 'config.log' for more details" "$LINENO" 5; }
3252 fi
3253
3254 for am_try_res in $am_try_resolutions; do
3255 # Any one fine-grained sleep might happen to cross the boundary
3256 # between two values of a coarser actual resolution, but if we do
3257 # two fine-grained sleeps in a row, at least one of them will fall
3258 # entirely within a coarse interval.
3259 echo alpha > conftest.ts1
3260 sleep $am_try_res
3261 echo beta > conftest.ts2
3262 sleep $am_try_res
3263 echo gamma > conftest.ts3
3264
3265 # We assume that 'ls -t' will make use of high-resolution
3266 # timestamps if the operating system supports them at all.
3267 if (set X `ls -t conftest.ts?` &&
3268 test "$2" = conftest.ts3 &&
3269 test "$3" = conftest.ts2 &&
3270 test "$4" = conftest.ts1); then
3271 #
3272 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3273 # because we don't need to test make.
3274 make_ok=true
3275 if test $am_try_res != 1; then
3276 # But if we've succeeded so far with a subsecond resolution, we
3277 # have one more thing to check: make. It can happen that
3278 # everything else supports the subsecond mtimes, but make doesn't;
3279 # notably on macOS, which ships make 3.81 from 2006 (the last one
3280 # released under GPLv2). https://bugs.gnu.org/68808
3281 #
3282 # We test $MAKE if it is defined in the environment, else "make".
3283 # It might get overridden later, but our hope is that in practice
3284 # it does not matter: it is the system "make" which is (by far)
3285 # the most likely to be broken, whereas if the user overrides it,
3286 # probably they did so with a better, or at least not worse, make.
3287 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3288 #
3289 # Create a Makefile (real tab character here):
3290 rm -f conftest.mk
3291 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3292 echo ' touch conftest.ts2' >>conftest.mk
3293 #
3294 # Now, running
3295 # touch conftest.ts1; touch conftest.ts2; make
3296 # should touch ts1 because ts2 is newer. This could happen by luck,
3297 # but most often, it will fail if make's support is insufficient. So
3298 # test for several consecutive successes.
3299 #
3300 # (We reuse conftest.ts[12] because we still want to modify existing
3301 # files, not create new ones, per above.)
3302 n=0
3303 make=${MAKE-make}
3304 until test $n -eq 3; do
3305 echo one > conftest.ts1
3306 sleep $am_try_res
3307 echo two > conftest.ts2 # ts2 should now be newer than ts1
3308 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3309 make_ok=false
3310 break # out of $n loop
3311 fi
3312 n=`expr $n + 1`
3313 done
3314 fi
3315 #
3316 if $make_ok; then
3317 # Everything we know to check worked out, so call this resolution good.
3318 am_cv_filesystem_timestamp_resolution=$am_try_res
3319 break # out of $am_try_res loop
3320 fi
3321 # Otherwise, we'll go on to check the next resolution.
3322 fi
3323 done
3324 rm -f conftest.ts?
3325 # (end _am_filesystem_timestamp_resolution)
3326 ;;
3327 esac
3328 fi
3329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3330 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3331
3332 # This check should not be cached, as it may vary across builds of
3333 # different projects.
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3335 printf %s "checking whether build environment is sane... " >&6; }
3336 # Reject unsafe characters in $srcdir or the absolute working directory
3337 # name. Accept space and tab only in the latter.
3338 am_lf='
3339 '
3340 case `pwd` in
3341 *[\\\"\#\$\&\'\`$am_lf]*)
3342 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3343 esac
3344 case $srcdir in
3345 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3346 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3347 esac
3348
3349 # Do 'set' in a subshell so we don't clobber the current shell's
3350 # arguments. Must try -L first in case configure is actually a
3351 # symlink; some systems play weird games with the mod time of symlinks
3352 # (eg FreeBSD returns the mod time of the symlink's containing
3353 # directory).
3354 am_build_env_is_sane=no
3355 am_has_slept=no
3356 rm -f conftest.file
3357 for am_try in 1 2; do
3358 echo "timestamp, slept: $am_has_slept" > conftest.file
3359 if (
3360 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3361 if test "$*" = "X"; then
3362 # -L didn't work.
3363 set X `ls -t "$srcdir/configure" conftest.file`
3364 fi
3365 test "$2" = conftest.file
3366 ); then
3367 am_build_env_is_sane=yes
3368 break
3369 fi
3370 # Just in case.
3371 sleep "$am_cv_filesystem_timestamp_resolution"
3372 am_has_slept=yes
3373 done
3374
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3376 printf "%s\n" "$am_build_env_is_sane" >&6; }
3377 if test "$am_build_env_is_sane" = no; then
3378 as_fn_error $? "newly created file is older than distributed files!
3379 Check your system clock" "$LINENO" 5
3380 fi
3381
3382 # If we didn't sleep, we still need to ensure time stamps of config.status and
3383 # generated files are strictly newer.
3384 am_sleep_pid=
3385 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3386 then :
3387
3388 else case e in #(
3389 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3390 am_sleep_pid=$!
3391 ;;
3392 esac
3393 fi
3394
3395 rm -f conftest.file
3396
3397 test "$program_prefix" != NONE &&
3398 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3399 # Use a double $ so make ignores it.
3400 test "$program_suffix" != NONE &&
3401 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3402 # Double any \ or $.
3403 # By default was 's,x,x', remove it if useless.
3404 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3405 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3406
3407
3408 # Expand $ac_aux_dir to an absolute path.
3409 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3410
3411
3412 if test x"${MISSING+set}" != xset; then
3413 MISSING="\${SHELL} '$am_aux_dir/missing'"
3414 fi
3415 # Use eval to expand $SHELL
3416 if eval "$MISSING --is-lightweight"; then
3417 am_missing_run="$MISSING "
3418 else
3419 am_missing_run=
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3421 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3422 fi
3423
3424 if test x"${install_sh+set}" != xset; then
3425 case $am_aux_dir in
3426 *\ * | *\ *)
3427 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3428 *)
3429 install_sh="\${SHELL} $am_aux_dir/install-sh"
3430 esac
3431 fi
3432
3433 # Installed binaries are usually stripped using 'strip' when the user
3434 # run "make install-strip". However 'strip' might not be the right
3435 # tool to use in cross-compilation environments, therefore Automake
3436 # will honor the 'STRIP' environment variable to overrule this program.
3437 if test "$cross_compiling" != no; then
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3440 set dummy ${ac_tool_prefix}strip; ac_word=$2
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 printf %s "checking for $ac_word... " >&6; }
3443 if test ${ac_cv_prog_STRIP+y}
3444 then :
3445 printf %s "(cached) " >&6
3446 else case e in #(
3447 e) if test -n "$STRIP"; then
3448 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453 IFS=$as_save_IFS
3454 case $as_dir in #(((
3455 '') as_dir=./ ;;
3456 */) ;;
3457 *) as_dir=$as_dir/ ;;
3458 esac
3459 for ac_exec_ext in '' $ac_executable_extensions; do
3460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3461 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3463 break 2
3464 fi
3465 done
3466 done
3467 IFS=$as_save_IFS
3468
3469 fi ;;
3470 esac
3471 fi
3472 STRIP=$ac_cv_prog_STRIP
3473 if test -n "$STRIP"; then
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3475 printf "%s\n" "$STRIP" >&6; }
3476 else
3477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478 printf "%s\n" "no" >&6; }
3479 fi
3480
3481
3482 fi
3483 if test -z "$ac_cv_prog_STRIP"; then
3484 ac_ct_STRIP=$STRIP
3485 # Extract the first word of "strip", so it can be a program name with args.
3486 set dummy strip; ac_word=$2
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 printf %s "checking for $ac_word... " >&6; }
3489 if test ${ac_cv_prog_ac_ct_STRIP+y}
3490 then :
3491 printf %s "(cached) " >&6
3492 else case e in #(
3493 e) if test -n "$ac_ct_STRIP"; then
3494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499 IFS=$as_save_IFS
3500 case $as_dir in #(((
3501 '') as_dir=./ ;;
3502 */) ;;
3503 *) as_dir=$as_dir/ ;;
3504 esac
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_ac_ct_STRIP="strip"
3508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511 done
3512 done
3513 IFS=$as_save_IFS
3514
3515 fi ;;
3516 esac
3517 fi
3518 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3519 if test -n "$ac_ct_STRIP"; then
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3521 printf "%s\n" "$ac_ct_STRIP" >&6; }
3522 else
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 printf "%s\n" "no" >&6; }
3525 fi
3526
3527 if test "x$ac_ct_STRIP" = x; then
3528 STRIP=":"
3529 else
3530 case $cross_compiling:$ac_tool_warned in
3531 yes:)
3532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3534 ac_tool_warned=yes ;;
3535 esac
3536 STRIP=$ac_ct_STRIP
3537 fi
3538 else
3539 STRIP="$ac_cv_prog_STRIP"
3540 fi
3541
3542 fi
3543 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3544
3545
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3547 printf %s "checking for a race-free mkdir -p... " >&6; }
3548 if test -z "$MKDIR_P"; then
3549 if test ${ac_cv_path_mkdir+y}
3550 then :
3551 printf %s "(cached) " >&6
3552 else case e in #(
3553 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3555 do
3556 IFS=$as_save_IFS
3557 case $as_dir in #(((
3558 '') as_dir=./ ;;
3559 */) ;;
3560 *) as_dir=$as_dir/ ;;
3561 esac
3562 for ac_prog in mkdir gmkdir; do
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3565 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3566 'mkdir ('*'coreutils) '* | \
3567 *'BusyBox '* | \
3568 'mkdir (fileutils) '4.1*)
3569 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3570 break 3;;
3571 esac
3572 done
3573 done
3574 done
3575 IFS=$as_save_IFS
3576 ;;
3577 esac
3578 fi
3579
3580 test -d ./--version && rmdir ./--version
3581 if test ${ac_cv_path_mkdir+y}; then
3582 MKDIR_P="$ac_cv_path_mkdir -p"
3583 else
3584 # As a last resort, use plain mkdir -p,
3585 # in the hope it doesn't have the bugs of ancient mkdir.
3586 MKDIR_P='mkdir -p'
3587 fi
3588 fi
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3590 printf "%s\n" "$MKDIR_P" >&6; }
3591
3592 for ac_prog in gawk mawk nawk awk
3593 do
3594 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595 set dummy $ac_prog; ac_word=$2
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3597 printf %s "checking for $ac_word... " >&6; }
3598 if test ${ac_cv_prog_AWK+y}
3599 then :
3600 printf %s "(cached) " >&6
3601 else case e in #(
3602 e) if test -n "$AWK"; then
3603 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608 IFS=$as_save_IFS
3609 case $as_dir in #(((
3610 '') as_dir=./ ;;
3611 */) ;;
3612 *) as_dir=$as_dir/ ;;
3613 esac
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3616 ac_cv_prog_AWK="$ac_prog"
3617 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3618 break 2
3619 fi
3620 done
3621 done
3622 IFS=$as_save_IFS
3623
3624 fi ;;
3625 esac
3626 fi
3627 AWK=$ac_cv_prog_AWK
3628 if test -n "$AWK"; then
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3630 printf "%s\n" "$AWK" >&6; }
3631 else
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 printf "%s\n" "no" >&6; }
3634 fi
3635
3636
3637 test -n "$AWK" && break
3638 done
3639
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3641 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3642 set x ${MAKE-make}
3643 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3644 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3645 then :
3646 printf %s "(cached) " >&6
3647 else case e in #(
3648 e) cat >conftest.make <<\_ACEOF
3649 SHELL = /bin/sh
3650 all:
3651 @echo '@@@%%%=$(MAKE)=@@@%%%'
3652 _ACEOF
3653 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3654 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3655 *@@@%%%=?*=@@@%%%*)
3656 eval ac_cv_prog_make_${ac_make}_set=yes;;
3657 *)
3658 eval ac_cv_prog_make_${ac_make}_set=no;;
3659 esac
3660 rm -f conftest.make ;;
3661 esac
3662 fi
3663 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3665 printf "%s\n" "yes" >&6; }
3666 SET_MAKE=
3667 else
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3670 SET_MAKE="MAKE=${MAKE-make}"
3671 fi
3672
3673 rm -rf .tst 2>/dev/null
3674 mkdir .tst 2>/dev/null
3675 if test -d .tst; then
3676 am__leading_dot=.
3677 else
3678 am__leading_dot=_
3679 fi
3680 rmdir .tst 2>/dev/null
3681
3682 AM_DEFAULT_VERBOSITY=1
3683 # Check whether --enable-silent-rules was given.
3684 if test ${enable_silent_rules+y}
3685 then :
3686 enableval=$enable_silent_rules;
3687 fi
3688
3689 am_make=${MAKE-make}
3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3691 printf %s "checking whether $am_make supports nested variables... " >&6; }
3692 if test ${am_cv_make_support_nested_variables+y}
3693 then :
3694 printf %s "(cached) " >&6
3695 else case e in #(
3696 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3697 BAR0=false
3698 BAR1=true
3699 V=1
3700 am__doit:
3701 @$(TRUE)
3702 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3703 am_cv_make_support_nested_variables=yes
3704 else
3705 am_cv_make_support_nested_variables=no
3706 fi ;;
3707 esac
3708 fi
3709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3710 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3711 AM_BACKSLASH='\'
3712
3713 am__rm_f_notfound=
3714 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3715 then :
3716
3717 else case e in #(
3718 e) am__rm_f_notfound='""' ;;
3719 esac
3720 fi
3721
3722
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3724 printf %s "checking xargs -n works... " >&6; }
3725 if test ${am_cv_xargs_n_works+y}
3726 then :
3727 printf %s "(cached) " >&6
3728 else case e in #(
3729 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3730 3"
3731 then :
3732 am_cv_xargs_n_works=yes
3733 else case e in #(
3734 e) am_cv_xargs_n_works=no ;;
3735 esac
3736 fi ;;
3737 esac
3738 fi
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3740 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3741 if test "$am_cv_xargs_n_works" = yes
3742 then :
3743 am__xargs_n='xargs -n'
3744 else case e in #(
3745 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3746 ;;
3747 esac
3748 fi
3749
3750 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3751 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3752 # is not polluted with repeated "-I."
3753 am__isrc=' -I$(srcdir)'
3754 # test to see if srcdir already configured
3755 if test -f $srcdir/config.status; then
3756 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3757 fi
3758 fi
3759
3760 # test whether we have cygpath
3761 if test -z "$CYGPATH_W"; then
3762 if (cygpath --version) >/dev/null 2>/dev/null; then
3763 CYGPATH_W='cygpath -w'
3764 else
3765 CYGPATH_W=echo
3766 fi
3767 fi
3768
3769
3770 # Define the identity of the package.
3771 PACKAGE='libfreehand'
3772 VERSION='0.1.3'
3773
3774
3775 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3776
3777
3778 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3779
3780 # Some tools Automake needs.
3781
3782 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3783
3784
3785 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3786
3787
3788 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3789
3790
3791 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3792
3793
3794 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3795
3796 # For better backward compatibility. To be removed once Automake 1.9.x
3797 # dies out for good. For more background, see:
3798 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3799 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3800 mkdir_p='$(MKDIR_P)'
3801
3802 # We need awk for the "check" target (and possibly the TAP driver). The
3803 # system "awk" is bad on some platforms.
3804 # Always define AMTAR for backward compatibility. Yes, it's still used
3805 # in the wild :-( We should find a proper way to deprecate it ...
3806 AMTAR='$${TAR-tar}'
3807
3808
3809 # We'll loop over all known methods to create a tar archive until one works.
3810 _am_tools='gnutar pax cpio none'
3811
3812 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3813
3814
3815
3816
3817
3818 # Variables for tags utilities; see am/tags.am
3819 if test -z "$CTAGS"; then
3820 CTAGS=ctags
3821 fi
3822
3823 if test -z "$ETAGS"; then
3824 ETAGS=etags
3825 fi
3826
3827 if test -z "$CSCOPE"; then
3828 CSCOPE=cscope
3829 fi
3830
3831
3832
3833
3834
3835
3836
3837
3838 AM_DEFAULT_VERBOSITY=0
3839 ac_ext=cpp
3840 ac_cpp='$CXXCPP $CPPFLAGS'
3841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3844
3845
3846 # ===========================
3847 # Find required base packages
3848 # ===========================
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858 DEPDIR="${am__leading_dot}deps"
3859
3860 ac_config_commands="$ac_config_commands depfiles"
3861
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3863 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3864 cat > confinc.mk << 'END'
3865 am__doit:
3866 @echo this is the am__doit target >confinc.out
3867 .PHONY: am__doit
3868 END
3869 am__include="#"
3870 am__quote=
3871 # BSD make does it like this.
3872 echo '.include "confinc.mk" # ignored' > confmf.BSD
3873 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3874 echo 'include confinc.mk # ignored' > confmf.GNU
3875 _am_result=no
3876 for s in GNU BSD; do
3877 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3878 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3879 ac_status=$?
3880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881 (exit $ac_status); }
3882 case $?:`cat confinc.out 2>/dev/null` in #(
3883 '0:this is the am__doit target') :
3884 case $s in #(
3885 BSD) :
3886 am__include='.include' am__quote='"' ;; #(
3887 *) :
3888 am__include='include' am__quote='' ;;
3889 esac ;; #(
3890 *) :
3891 ;;
3892 esac
3893 if test "$am__include" != "#"; then
3894 _am_result="yes ($s style)"
3895 break
3896 fi
3897 done
3898 rm -f confinc.* confmf.*
3899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3900 printf "%s\n" "${_am_result}" >&6; }
3901
3902 # Check whether --enable-dependency-tracking was given.
3903 if test ${enable_dependency_tracking+y}
3904 then :
3905 enableval=$enable_dependency_tracking;
3906 fi
3907
3908 if test "x$enable_dependency_tracking" != xno; then
3909 am_depcomp="$ac_aux_dir/depcomp"
3910 AMDEPBACKSLASH='\'
3911 am__nodep='_no'
3912 fi
3913 if test "x$enable_dependency_tracking" != xno; then
3914 AMDEP_TRUE=
3915 AMDEP_FALSE='#'
3916 else
3917 AMDEP_TRUE='#'
3918 AMDEP_FALSE=
3919 fi
3920
3921
3922 ac_ext=c
3923 ac_cpp='$CPP $CPPFLAGS'
3924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927 if test -n "$ac_tool_prefix"; then
3928 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3929 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 printf %s "checking for $ac_word... " >&6; }
3932 if test ${ac_cv_prog_CC+y}
3933 then :
3934 printf %s "(cached) " >&6
3935 else case e in #(
3936 e) if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
3938 else
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 for as_dir in $PATH
3941 do
3942 IFS=$as_save_IFS
3943 case $as_dir in #(((
3944 '') as_dir=./ ;;
3945 */) ;;
3946 *) as_dir=$as_dir/ ;;
3947 esac
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3950 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3952 break 2
3953 fi
3954 done
3955 done
3956 IFS=$as_save_IFS
3957
3958 fi ;;
3959 esac
3960 fi
3961 CC=$ac_cv_prog_CC
3962 if test -n "$CC"; then
3963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3964 printf "%s\n" "$CC" >&6; }
3965 else
3966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 printf "%s\n" "no" >&6; }
3968 fi
3969
3970
3971 fi
3972 if test -z "$ac_cv_prog_CC"; then
3973 ac_ct_CC=$CC
3974 # Extract the first word of "gcc", so it can be a program name with args.
3975 set dummy gcc; ac_word=$2
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 printf %s "checking for $ac_word... " >&6; }
3978 if test ${ac_cv_prog_ac_ct_CC+y}
3979 then :
3980 printf %s "(cached) " >&6
3981 else case e in #(
3982 e) if test -n "$ac_ct_CC"; then
3983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988 IFS=$as_save_IFS
3989 case $as_dir in #(((
3990 '') as_dir=./ ;;
3991 */) ;;
3992 *) as_dir=$as_dir/ ;;
3993 esac
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3996 ac_cv_prog_ac_ct_CC="gcc"
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3998 break 2
3999 fi
4000 done
4001 done
4002 IFS=$as_save_IFS
4003
4004 fi ;;
4005 esac
4006 fi
4007 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4008 if test -n "$ac_ct_CC"; then
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4010 printf "%s\n" "$ac_ct_CC" >&6; }
4011 else
4012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 printf "%s\n" "no" >&6; }
4014 fi
4015
4016 if test "x$ac_ct_CC" = x; then
4017 CC=""
4018 else
4019 case $cross_compiling:$ac_tool_warned in
4020 yes:)
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4022 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4023 ac_tool_warned=yes ;;
4024 esac
4025 CC=$ac_ct_CC
4026 fi
4027 else
4028 CC="$ac_cv_prog_CC"
4029 fi
4030
4031 if test -z "$CC"; then
4032 if test -n "$ac_tool_prefix"; then
4033 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4034 set dummy ${ac_tool_prefix}cc; ac_word=$2
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 printf %s "checking for $ac_word... " >&6; }
4037 if test ${ac_cv_prog_CC+y}
4038 then :
4039 printf %s "(cached) " >&6
4040 else case e in #(
4041 e) if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4046 do
4047 IFS=$as_save_IFS
4048 case $as_dir in #(((
4049 '') as_dir=./ ;;
4050 */) ;;
4051 *) as_dir=$as_dir/ ;;
4052 esac
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4055 ac_cv_prog_CC="${ac_tool_prefix}cc"
4056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4057 break 2
4058 fi
4059 done
4060 done
4061 IFS=$as_save_IFS
4062
4063 fi ;;
4064 esac
4065 fi
4066 CC=$ac_cv_prog_CC
4067 if test -n "$CC"; then
4068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4069 printf "%s\n" "$CC" >&6; }
4070 else
4071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072 printf "%s\n" "no" >&6; }
4073 fi
4074
4075
4076 fi
4077 fi
4078 if test -z "$CC"; then
4079 # Extract the first word of "cc", so it can be a program name with args.
4080 set dummy cc; ac_word=$2
4081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4082 printf %s "checking for $ac_word... " >&6; }
4083 if test ${ac_cv_prog_CC+y}
4084 then :
4085 printf %s "(cached) " >&6
4086 else case e in #(
4087 e) if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4089 else
4090 ac_prog_rejected=no
4091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4092 for as_dir in $PATH
4093 do
4094 IFS=$as_save_IFS
4095 case $as_dir in #(((
4096 '') as_dir=./ ;;
4097 */) ;;
4098 *) as_dir=$as_dir/ ;;
4099 esac
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4102 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4103 ac_prog_rejected=yes
4104 continue
4105 fi
4106 ac_cv_prog_CC="cc"
4107 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4108 break 2
4109 fi
4110 done
4111 done
4112 IFS=$as_save_IFS
4113
4114 if test $ac_prog_rejected = yes; then
4115 # We found a bogon in the path, so make sure we never use it.
4116 set dummy $ac_cv_prog_CC
4117 shift
4118 if test $# != 0; then
4119 # We chose a different compiler from the bogus one.
4120 # However, it has the same basename, so the bogon will be chosen
4121 # first if we set CC to just the basename; use the full file name.
4122 shift
4123 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4124 fi
4125 fi
4126 fi ;;
4127 esac
4128 fi
4129 CC=$ac_cv_prog_CC
4130 if test -n "$CC"; then
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4132 printf "%s\n" "$CC" >&6; }
4133 else
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 printf "%s\n" "no" >&6; }
4136 fi
4137
4138
4139 fi
4140 if test -z "$CC"; then
4141 if test -n "$ac_tool_prefix"; then
4142 for ac_prog in cl.exe
4143 do
4144 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4145 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4147 printf %s "checking for $ac_word... " >&6; }
4148 if test ${ac_cv_prog_CC+y}
4149 then :
4150 printf %s "(cached) " >&6
4151 else case e in #(
4152 e) if test -n "$CC"; then
4153 ac_cv_prog_CC="$CC" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158 IFS=$as_save_IFS
4159 case $as_dir in #(((
4160 '') as_dir=./ ;;
4161 */) ;;
4162 *) as_dir=$as_dir/ ;;
4163 esac
4164 for ac_exec_ext in '' $ac_executable_extensions; do
4165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4166 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4168 break 2
4169 fi
4170 done
4171 done
4172 IFS=$as_save_IFS
4173
4174 fi ;;
4175 esac
4176 fi
4177 CC=$ac_cv_prog_CC
4178 if test -n "$CC"; then
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4180 printf "%s\n" "$CC" >&6; }
4181 else
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 printf "%s\n" "no" >&6; }
4184 fi
4185
4186
4187 test -n "$CC" && break
4188 done
4189 fi
4190 if test -z "$CC"; then
4191 ac_ct_CC=$CC
4192 for ac_prog in cl.exe
4193 do
4194 # Extract the first word of "$ac_prog", so it can be a program name with args.
4195 set dummy $ac_prog; ac_word=$2
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4197 printf %s "checking for $ac_word... " >&6; }
4198 if test ${ac_cv_prog_ac_ct_CC+y}
4199 then :
4200 printf %s "(cached) " >&6
4201 else case e in #(
4202 e) if test -n "$ac_ct_CC"; then
4203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4204 else
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208 IFS=$as_save_IFS
4209 case $as_dir in #(((
4210 '') as_dir=./ ;;
4211 */) ;;
4212 *) as_dir=$as_dir/ ;;
4213 esac
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4216 ac_cv_prog_ac_ct_CC="$ac_prog"
4217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4218 break 2
4219 fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224 fi ;;
4225 esac
4226 fi
4227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4228 if test -n "$ac_ct_CC"; then
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4230 printf "%s\n" "$ac_ct_CC" >&6; }
4231 else
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 printf "%s\n" "no" >&6; }
4234 fi
4235
4236
4237 test -n "$ac_ct_CC" && break
4238 done
4239
4240 if test "x$ac_ct_CC" = x; then
4241 CC=""
4242 else
4243 case $cross_compiling:$ac_tool_warned in
4244 yes:)
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4246 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4247 ac_tool_warned=yes ;;
4248 esac
4249 CC=$ac_ct_CC
4250 fi
4251 fi
4252
4253 fi
4254 if test -z "$CC"; then
4255 if test -n "$ac_tool_prefix"; then
4256 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4257 set dummy ${ac_tool_prefix}clang; ac_word=$2
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 printf %s "checking for $ac_word... " >&6; }
4260 if test ${ac_cv_prog_CC+y}
4261 then :
4262 printf %s "(cached) " >&6
4263 else case e in #(
4264 e) if test -n "$CC"; then
4265 ac_cv_prog_CC="$CC" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270 IFS=$as_save_IFS
4271 case $as_dir in #(((
4272 '') as_dir=./ ;;
4273 */) ;;
4274 *) as_dir=$as_dir/ ;;
4275 esac
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4278 ac_cv_prog_CC="${ac_tool_prefix}clang"
4279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282 done
4283 done
4284 IFS=$as_save_IFS
4285
4286 fi ;;
4287 esac
4288 fi
4289 CC=$ac_cv_prog_CC
4290 if test -n "$CC"; then
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4292 printf "%s\n" "$CC" >&6; }
4293 else
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 printf "%s\n" "no" >&6; }
4296 fi
4297
4298
4299 fi
4300 if test -z "$ac_cv_prog_CC"; then
4301 ac_ct_CC=$CC
4302 # Extract the first word of "clang", so it can be a program name with args.
4303 set dummy clang; ac_word=$2
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4305 printf %s "checking for $ac_word... " >&6; }
4306 if test ${ac_cv_prog_ac_ct_CC+y}
4307 then :
4308 printf %s "(cached) " >&6
4309 else case e in #(
4310 e) if test -n "$ac_ct_CC"; then
4311 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4312 else
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 for as_dir in $PATH
4315 do
4316 IFS=$as_save_IFS
4317 case $as_dir in #(((
4318 '') as_dir=./ ;;
4319 */) ;;
4320 *) as_dir=$as_dir/ ;;
4321 esac
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4324 ac_cv_prog_ac_ct_CC="clang"
4325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4326 break 2
4327 fi
4328 done
4329 done
4330 IFS=$as_save_IFS
4331
4332 fi ;;
4333 esac
4334 fi
4335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4336 if test -n "$ac_ct_CC"; then
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4338 printf "%s\n" "$ac_ct_CC" >&6; }
4339 else
4340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 printf "%s\n" "no" >&6; }
4342 fi
4343
4344 if test "x$ac_ct_CC" = x; then
4345 CC=""
4346 else
4347 case $cross_compiling:$ac_tool_warned in
4348 yes:)
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4350 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4351 ac_tool_warned=yes ;;
4352 esac
4353 CC=$ac_ct_CC
4354 fi
4355 else
4356 CC="$ac_cv_prog_CC"
4357 fi
4358
4359 fi
4360
4361
4362 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4363 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4364 as_fn_error $? "no acceptable C compiler found in \$PATH
4365 See 'config.log' for more details" "$LINENO" 5; }
4366
4367 # Provide some information about the compiler.
4368 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4369 set X $ac_compile
4370 ac_compiler=$2
4371 for ac_option in --version -v -V -qversion -version; do
4372 { { ac_try="$ac_compiler $ac_option >&5"
4373 case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 printf "%s\n" "$ac_try_echo"; } >&5
4379 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4380 ac_status=$?
4381 if test -s conftest.err; then
4382 sed '10a\
4383 ... rest of stderr output deleted ...
4384 10q' conftest.err >conftest.er1
4385 cat conftest.er1 >&5
4386 fi
4387 rm -f conftest.er1 conftest.err
4388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; }
4390 done
4391
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4394
4395 int
4396 main (void)
4397 {
4398
4399 ;
4400 return 0;
4401 }
4402 _ACEOF
4403 ac_clean_files_save=$ac_clean_files
4404 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4405 # Try to create an executable without -o first, disregard a.out.
4406 # It will help us diagnose broken compilers, and finding out an intuition
4407 # of exeext.
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4409 printf %s "checking whether the C compiler works... " >&6; }
4410 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4411
4412 # The possible output files:
4413 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4414
4415 ac_rmfiles=
4416 for ac_file in $ac_files
4417 do
4418 case $ac_file in
4419 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4420 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4421 esac
4422 done
4423 rm -f $ac_rmfiles
4424
4425 if { { ac_try="$ac_link_default"
4426 case "(($ac_try" in
4427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4429 esac
4430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4431 printf "%s\n" "$ac_try_echo"; } >&5
4432 (eval "$ac_link_default") 2>&5
4433 ac_status=$?
4434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4435 test $ac_status = 0; }
4436 then :
4437 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4438 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4440 # so that the user can short-circuit this test for compilers unknown to
4441 # Autoconf.
4442 for ac_file in $ac_files ''
4443 do
4444 test -f "$ac_file" || continue
4445 case $ac_file in
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4447 ;;
4448 [ab].out )
4449 # We found the default executable, but exeext='' is most
4450 # certainly right.
4451 break;;
4452 *.* )
4453 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4454 then :; else
4455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4456 fi
4457 # We set ac_cv_exeext here because the later test for it is not
4458 # safe: cross compilers may not add the suffix if given an '-o'
4459 # argument, so we may need to know it at that point already.
4460 # Even if this section looks crufty: it has the advantage of
4461 # actually working.
4462 break;;
4463 * )
4464 break;;
4465 esac
4466 done
4467 test "$ac_cv_exeext" = no && ac_cv_exeext=
4468
4469 else case e in #(
4470 e) ac_file='' ;;
4471 esac
4472 fi
4473 if test -z "$ac_file"
4474 then :
4475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 printf "%s\n" "no" >&6; }
4477 printf "%s\n" "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4481 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4482 as_fn_error 77 "C compiler cannot create executables
4483 See 'config.log' for more details" "$LINENO" 5; }
4484 else case e in #(
4485 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4486 printf "%s\n" "yes" >&6; } ;;
4487 esac
4488 fi
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4490 printf %s "checking for C compiler default output file name... " >&6; }
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4492 printf "%s\n" "$ac_file" >&6; }
4493 ac_exeext=$ac_cv_exeext
4494
4495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4496 ac_clean_files=$ac_clean_files_save
4497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4498 printf %s "checking for suffix of executables... " >&6; }
4499 if { { ac_try="$ac_link"
4500 case "(($ac_try" in
4501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4503 esac
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 printf "%s\n" "$ac_try_echo"; } >&5
4506 (eval "$ac_link") 2>&5
4507 ac_status=$?
4508 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }
4510 then :
4511 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4512 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4513 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4514 # 'rm'.
4515 for ac_file in conftest.exe conftest conftest.*; do
4516 test -f "$ac_file" || continue
4517 case $ac_file in
4518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4519 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4520 break;;
4521 * ) break;;
4522 esac
4523 done
4524 else case e in #(
4525 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4526 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4527 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4528 See 'config.log' for more details" "$LINENO" 5; } ;;
4529 esac
4530 fi
4531 rm -f conftest conftest$ac_cv_exeext
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4533 printf "%s\n" "$ac_cv_exeext" >&6; }
4534
4535 rm -f conftest.$ac_ext
4536 EXEEXT=$ac_cv_exeext
4537 ac_exeext=$EXEEXT
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540 #include <stdio.h>
4541 int
4542 main (void)
4543 {
4544 FILE *f = fopen ("conftest.out", "w");
4545 if (!f)
4546 return 1;
4547 return ferror (f) || fclose (f) != 0;
4548
4549 ;
4550 return 0;
4551 }
4552 _ACEOF
4553 ac_clean_files="$ac_clean_files conftest.out"
4554 # Check that the compiler produces executables we can run. If not, either
4555 # the compiler is broken, or we cross compile.
4556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4557 printf %s "checking whether we are cross compiling... " >&6; }
4558 if test "$cross_compiling" != yes; then
4559 { { ac_try="$ac_link"
4560 case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4563 esac
4564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4565 printf "%s\n" "$ac_try_echo"; } >&5
4566 (eval "$ac_link") 2>&5
4567 ac_status=$?
4568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4569 test $ac_status = 0; }
4570 if { ac_try='./conftest$ac_cv_exeext'
4571 { { case "(($ac_try" in
4572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4573 *) ac_try_echo=$ac_try;;
4574 esac
4575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4576 printf "%s\n" "$ac_try_echo"; } >&5
4577 (eval "$ac_try") 2>&5
4578 ac_status=$?
4579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }; }; then
4581 cross_compiling=no
4582 else
4583 if test "$cross_compiling" = maybe; then
4584 cross_compiling=yes
4585 else
4586 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4587 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4588 as_fn_error 77 "cannot run C compiled programs.
4589 If you meant to cross compile, use '--host'.
4590 See 'config.log' for more details" "$LINENO" 5; }
4591 fi
4592 fi
4593 fi
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4595 printf "%s\n" "$cross_compiling" >&6; }
4596
4597 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4598 conftest.o conftest.obj conftest.out
4599 ac_clean_files=$ac_clean_files_save
4600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4601 printf %s "checking for suffix of object files... " >&6; }
4602 if test ${ac_cv_objext+y}
4603 then :
4604 printf %s "(cached) " >&6
4605 else case e in #(
4606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4608
4609 int
4610 main (void)
4611 {
4612
4613 ;
4614 return 0;
4615 }
4616 _ACEOF
4617 rm -f conftest.o conftest.obj
4618 if { { ac_try="$ac_compile"
4619 case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 printf "%s\n" "$ac_try_echo"; } >&5
4625 (eval "$ac_compile") 2>&5
4626 ac_status=$?
4627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4629 then :
4630 for ac_file in conftest.o conftest.obj conftest.*; do
4631 test -f "$ac_file" || continue;
4632 case $ac_file in
4633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4634 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4635 break;;
4636 esac
4637 done
4638 else case e in #(
4639 e) printf "%s\n" "$as_me: failed program was:" >&5
4640 sed 's/^/| /' conftest.$ac_ext >&5
4641
4642 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4643 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4644 as_fn_error $? "cannot compute suffix of object files: cannot compile
4645 See 'config.log' for more details" "$LINENO" 5; } ;;
4646 esac
4647 fi
4648 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4649 esac
4650 fi
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4652 printf "%s\n" "$ac_cv_objext" >&6; }
4653 OBJEXT=$ac_cv_objext
4654 ac_objext=$OBJEXT
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4656 printf %s "checking whether the compiler supports GNU C... " >&6; }
4657 if test ${ac_cv_c_compiler_gnu+y}
4658 then :
4659 printf %s "(cached) " >&6
4660 else case e in #(
4661 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4663
4664 int
4665 main (void)
4666 {
4667 #ifndef __GNUC__
4668 choke me
4669 #endif
4670
4671 ;
4672 return 0;
4673 }
4674 _ACEOF
4675 if ac_fn_c_try_compile "$LINENO"
4676 then :
4677 ac_compiler_gnu=yes
4678 else case e in #(
4679 e) ac_compiler_gnu=no ;;
4680 esac
4681 fi
4682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4683 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4684 ;;
4685 esac
4686 fi
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4688 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4690
4691 if test $ac_compiler_gnu = yes; then
4692 GCC=yes
4693 else
4694 GCC=
4695 fi
4696 ac_test_CFLAGS=${CFLAGS+y}
4697 ac_save_CFLAGS=$CFLAGS
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4699 printf %s "checking whether $CC accepts -g... " >&6; }
4700 if test ${ac_cv_prog_cc_g+y}
4701 then :
4702 printf %s "(cached) " >&6
4703 else case e in #(
4704 e) ac_save_c_werror_flag=$ac_c_werror_flag
4705 ac_c_werror_flag=yes
4706 ac_cv_prog_cc_g=no
4707 CFLAGS="-g"
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4710
4711 int
4712 main (void)
4713 {
4714
4715 ;
4716 return 0;
4717 }
4718 _ACEOF
4719 if ac_fn_c_try_compile "$LINENO"
4720 then :
4721 ac_cv_prog_cc_g=yes
4722 else case e in #(
4723 e) CFLAGS=""
4724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4725 /* end confdefs.h. */
4726
4727 int
4728 main (void)
4729 {
4730
4731 ;
4732 return 0;
4733 }
4734 _ACEOF
4735 if ac_fn_c_try_compile "$LINENO"
4736 then :
4737
4738 else case e in #(
4739 e) ac_c_werror_flag=$ac_save_c_werror_flag
4740 CFLAGS="-g"
4741 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 if ac_fn_c_try_compile "$LINENO"
4753 then :
4754 ac_cv_prog_cc_g=yes
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4757 esac
4758 fi
4759 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4760 esac
4761 fi
4762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4763 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4764 esac
4765 fi
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4767 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4768 if test $ac_test_CFLAGS; then
4769 CFLAGS=$ac_save_CFLAGS
4770 elif test $ac_cv_prog_cc_g = yes; then
4771 if test "$GCC" = yes; then
4772 CFLAGS="-g -O2"
4773 else
4774 CFLAGS="-g"
4775 fi
4776 else
4777 if test "$GCC" = yes; then
4778 CFLAGS="-O2"
4779 else
4780 CFLAGS=
4781 fi
4782 fi
4783 ac_prog_cc_stdc=no
4784 if test x$ac_prog_cc_stdc = xno
4785 then :
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4787 printf %s "checking for $CC option to enable C11 features... " >&6; }
4788 if test ${ac_cv_prog_cc_c11+y}
4789 then :
4790 printf %s "(cached) " >&6
4791 else case e in #(
4792 e) ac_cv_prog_cc_c11=no
4793 ac_save_CC=$CC
4794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795 /* end confdefs.h. */
4796 $ac_c_conftest_c11_program
4797 _ACEOF
4798 for ac_arg in '' -std=gnu11
4799 do
4800 CC="$ac_save_CC $ac_arg"
4801 if ac_fn_c_try_compile "$LINENO"
4802 then :
4803 ac_cv_prog_cc_c11=$ac_arg
4804 fi
4805 rm -f core conftest.err conftest.$ac_objext conftest.beam
4806 test "x$ac_cv_prog_cc_c11" != "xno" && break
4807 done
4808 rm -f conftest.$ac_ext
4809 CC=$ac_save_CC ;;
4810 esac
4811 fi
4812
4813 if test "x$ac_cv_prog_cc_c11" = xno
4814 then :
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4816 printf "%s\n" "unsupported" >&6; }
4817 else case e in #(
4818 e) if test "x$ac_cv_prog_cc_c11" = x
4819 then :
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4821 printf "%s\n" "none needed" >&6; }
4822 else case e in #(
4823 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4824 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4825 CC="$CC $ac_cv_prog_cc_c11" ;;
4826 esac
4827 fi
4828 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4829 ac_prog_cc_stdc=c11 ;;
4830 esac
4831 fi
4832 fi
4833 if test x$ac_prog_cc_stdc = xno
4834 then :
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4836 printf %s "checking for $CC option to enable C99 features... " >&6; }
4837 if test ${ac_cv_prog_cc_c99+y}
4838 then :
4839 printf %s "(cached) " >&6
4840 else case e in #(
4841 e) ac_cv_prog_cc_c99=no
4842 ac_save_CC=$CC
4843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4844 /* end confdefs.h. */
4845 $ac_c_conftest_c99_program
4846 _ACEOF
4847 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4848 do
4849 CC="$ac_save_CC $ac_arg"
4850 if ac_fn_c_try_compile "$LINENO"
4851 then :
4852 ac_cv_prog_cc_c99=$ac_arg
4853 fi
4854 rm -f core conftest.err conftest.$ac_objext conftest.beam
4855 test "x$ac_cv_prog_cc_c99" != "xno" && break
4856 done
4857 rm -f conftest.$ac_ext
4858 CC=$ac_save_CC ;;
4859 esac
4860 fi
4861
4862 if test "x$ac_cv_prog_cc_c99" = xno
4863 then :
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4865 printf "%s\n" "unsupported" >&6; }
4866 else case e in #(
4867 e) if test "x$ac_cv_prog_cc_c99" = x
4868 then :
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4870 printf "%s\n" "none needed" >&6; }
4871 else case e in #(
4872 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4873 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4874 CC="$CC $ac_cv_prog_cc_c99" ;;
4875 esac
4876 fi
4877 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4878 ac_prog_cc_stdc=c99 ;;
4879 esac
4880 fi
4881 fi
4882 if test x$ac_prog_cc_stdc = xno
4883 then :
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4885 printf %s "checking for $CC option to enable C89 features... " >&6; }
4886 if test ${ac_cv_prog_cc_c89+y}
4887 then :
4888 printf %s "(cached) " >&6
4889 else case e in #(
4890 e) ac_cv_prog_cc_c89=no
4891 ac_save_CC=$CC
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 $ac_c_conftest_c89_program
4895 _ACEOF
4896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4897 do
4898 CC="$ac_save_CC $ac_arg"
4899 if ac_fn_c_try_compile "$LINENO"
4900 then :
4901 ac_cv_prog_cc_c89=$ac_arg
4902 fi
4903 rm -f core conftest.err conftest.$ac_objext conftest.beam
4904 test "x$ac_cv_prog_cc_c89" != "xno" && break
4905 done
4906 rm -f conftest.$ac_ext
4907 CC=$ac_save_CC ;;
4908 esac
4909 fi
4910
4911 if test "x$ac_cv_prog_cc_c89" = xno
4912 then :
4913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4914 printf "%s\n" "unsupported" >&6; }
4915 else case e in #(
4916 e) if test "x$ac_cv_prog_cc_c89" = x
4917 then :
4918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4919 printf "%s\n" "none needed" >&6; }
4920 else case e in #(
4921 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4922 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4923 CC="$CC $ac_cv_prog_cc_c89" ;;
4924 esac
4925 fi
4926 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4927 ac_prog_cc_stdc=c89 ;;
4928 esac
4929 fi
4930 fi
4931
4932 ac_ext=c
4933 ac_cpp='$CPP $CPPFLAGS'
4934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4937
4938
4939 ac_ext=c
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4945 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4946 if test ${am_cv_prog_cc_c_o+y}
4947 then :
4948 printf %s "(cached) " >&6
4949 else case e in #(
4950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952
4953 int
4954 main (void)
4955 {
4956
4957 ;
4958 return 0;
4959 }
4960 _ACEOF
4961 # Make sure it works both with $CC and with simple cc.
4962 # Following AC_PROG_CC_C_O, we do the test twice because some
4963 # compilers refuse to overwrite an existing .o file with -o,
4964 # though they will create one.
4965 am_cv_prog_cc_c_o=yes
4966 for am_i in 1 2; do
4967 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4968 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); } \
4972 && test -f conftest2.$ac_objext; then
4973 : OK
4974 else
4975 am_cv_prog_cc_c_o=no
4976 break
4977 fi
4978 done
4979 rm -f core conftest*
4980 unset am_i ;;
4981 esac
4982 fi
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4984 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4985 if test "$am_cv_prog_cc_c_o" != yes; then
4986 # Losing compiler, so override with the script.
4987 # FIXME: It is wrong to rewrite CC.
4988 # But if we don't then we get into trouble of one sort or another.
4989 # A longer-term fix would be to have automake use am__CC in this case,
4990 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4991 CC="$am_aux_dir/compile $CC"
4992 fi
4993 ac_ext=c
4994 ac_cpp='$CPP $CPPFLAGS'
4995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4998
4999
5000 depcc="$CC" am_compiler_list=
5001
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5003 printf %s "checking dependency style of $depcc... " >&6; }
5004 if test ${am_cv_CC_dependencies_compiler_type+y}
5005 then :
5006 printf %s "(cached) " >&6
5007 else case e in #(
5008 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5009 # We make a subdir and do the tests there. Otherwise we can end up
5010 # making bogus files that we don't know about and never remove. For
5011 # instance it was reported that on HP-UX the gcc test will end up
5012 # making a dummy file named 'D' -- because '-MD' means "put the output
5013 # in D".
5014 rm -rf conftest.dir
5015 mkdir conftest.dir
5016 # Copy depcomp to subdir because otherwise we won't find it if we're
5017 # using a relative directory.
5018 cp "$am_depcomp" conftest.dir
5019 cd conftest.dir
5020 # We will build objects and dependencies in a subdirectory because
5021 # it helps to detect inapplicable dependency modes. For instance
5022 # both Tru64's cc and ICC support -MD to output dependencies as a
5023 # side effect of compilation, but ICC will put the dependencies in
5024 # the current directory while Tru64 will put them in the object
5025 # directory.
5026 mkdir sub
5027
5028 am_cv_CC_dependencies_compiler_type=none
5029 if test "$am_compiler_list" = ""; then
5030 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5031 fi
5032 am__universal=false
5033 case " $depcc " in #(
5034 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5035 esac
5036
5037 for depmode in $am_compiler_list; do
5038 # Setup a source with many dependencies, because some compilers
5039 # like to wrap large dependency lists on column 80 (with \), and
5040 # we should not choose a depcomp mode which is confused by this.
5041 #
5042 # We need to recreate these files for each test, as the compiler may
5043 # overwrite some of them when testing with obscure command lines.
5044 # This happens at least with the AIX C compiler.
5045 : > sub/conftest.c
5046 for i in 1 2 3 4 5 6; do
5047 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5048 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5049 # Solaris 10 /bin/sh.
5050 echo '/* dummy */' > sub/conftst$i.h
5051 done
5052 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5053
5054 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5055 # mode. It turns out that the SunPro C++ compiler does not properly
5056 # handle '-M -o', and we need to detect this. Also, some Intel
5057 # versions had trouble with output in subdirs.
5058 am__obj=sub/conftest.${OBJEXT-o}
5059 am__minus_obj="-o $am__obj"
5060 case $depmode in
5061 gcc)
5062 # This depmode causes a compiler race in universal mode.
5063 test "$am__universal" = false || continue
5064 ;;
5065 nosideeffect)
5066 # After this tag, mechanisms are not by side-effect, so they'll
5067 # only be used when explicitly requested.
5068 if test "x$enable_dependency_tracking" = xyes; then
5069 continue
5070 else
5071 break
5072 fi
5073 ;;
5074 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5075 # This compiler won't grok '-c -o', but also, the minuso test has
5076 # not run yet. These depmodes are late enough in the game, and
5077 # so weak that their functioning should not be impacted.
5078 am__obj=conftest.${OBJEXT-o}
5079 am__minus_obj=
5080 ;;
5081 none) break ;;
5082 esac
5083 if depmode=$depmode \
5084 source=sub/conftest.c object=$am__obj \
5085 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5086 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5087 >/dev/null 2>conftest.err &&
5088 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5089 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5090 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5091 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5092 # icc doesn't choke on unknown options, it will just issue warnings
5093 # or remarks (even with -Werror). So we grep stderr for any message
5094 # that says an option was ignored or not supported.
5095 # When given -MP, icc 7.0 and 7.1 complain thus:
5096 # icc: Command line warning: ignoring option '-M'; no argument required
5097 # The diagnosis changed in icc 8.0:
5098 # icc: Command line remark: option '-MP' not supported
5099 if (grep 'ignoring option' conftest.err ||
5100 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5101 am_cv_CC_dependencies_compiler_type=$depmode
5102 break
5103 fi
5104 fi
5105 done
5106
5107 cd ..
5108 rm -rf conftest.dir
5109 else
5110 am_cv_CC_dependencies_compiler_type=none
5111 fi
5112 ;;
5113 esac
5114 fi
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5116 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5117 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5118
5119 if
5120 test "x$enable_dependency_tracking" != xno \
5121 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5122 am__fastdepCC_TRUE=
5123 am__fastdepCC_FALSE='#'
5124 else
5125 am__fastdepCC_TRUE='#'
5126 am__fastdepCC_FALSE=
5127 fi
5128
5129
5130
5131
5132 if test -n "$ac_tool_prefix"; then
5133 for ac_prog in ar lib "link -lib"
5134 do
5135 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 printf %s "checking for $ac_word... " >&6; }
5139 if test ${ac_cv_prog_AR+y}
5140 then :
5141 printf %s "(cached) " >&6
5142 else case e in #(
5143 e) if test -n "$AR"; then
5144 ac_cv_prog_AR="$AR" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5148 do
5149 IFS=$as_save_IFS
5150 case $as_dir in #(((
5151 '') as_dir=./ ;;
5152 */) ;;
5153 *) as_dir=$as_dir/ ;;
5154 esac
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5157 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5158 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 fi ;;
5166 esac
5167 fi
5168 AR=$ac_cv_prog_AR
5169 if test -n "$AR"; then
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5171 printf "%s\n" "$AR" >&6; }
5172 else
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 printf "%s\n" "no" >&6; }
5175 fi
5176
5177
5178 test -n "$AR" && break
5179 done
5180 fi
5181 if test -z "$AR"; then
5182 ac_ct_AR=$AR
5183 for ac_prog in ar lib "link -lib"
5184 do
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 printf %s "checking for $ac_word... " >&6; }
5189 if test ${ac_cv_prog_ac_ct_AR+y}
5190 then :
5191 printf %s "(cached) " >&6
5192 else case e in #(
5193 e) if test -n "$ac_ct_AR"; then
5194 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199 IFS=$as_save_IFS
5200 case $as_dir in #(((
5201 '') as_dir=./ ;;
5202 */) ;;
5203 *) as_dir=$as_dir/ ;;
5204 esac
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_ac_ct_AR="$ac_prog"
5208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5209 break 2
5210 fi
5211 done
5212 done
5213 IFS=$as_save_IFS
5214
5215 fi ;;
5216 esac
5217 fi
5218 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5219 if test -n "$ac_ct_AR"; then
5220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5221 printf "%s\n" "$ac_ct_AR" >&6; }
5222 else
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5224 printf "%s\n" "no" >&6; }
5225 fi
5226
5227
5228 test -n "$ac_ct_AR" && break
5229 done
5230
5231 if test "x$ac_ct_AR" = x; then
5232 AR="false"
5233 else
5234 case $cross_compiling:$ac_tool_warned in
5235 yes:)
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5237 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5238 ac_tool_warned=yes ;;
5239 esac
5240 AR=$ac_ct_AR
5241 fi
5242 fi
5243
5244 : ${AR=ar}
5245 : ${ARFLAGS=cr}
5246
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5248 printf %s "checking the archiver ($AR) interface... " >&6; }
5249 if test ${am_cv_ar_interface+y}
5250 then :
5251 printf %s "(cached) " >&6
5252 else case e in #(
5253 e) ac_ext=c
5254 ac_cpp='$CPP $CPPFLAGS'
5255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5258
5259 am_cv_ar_interface=ar
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 int some_variable = 0;
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"
5265 then :
5266 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5268 (eval $am_ar_try) 2>&5
5269 ac_status=$?
5270 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5271 test $ac_status = 0; }
5272 if test "$ac_status" -eq 0; then
5273 am_cv_ar_interface=ar
5274 else
5275 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5276 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5277 (eval $am_ar_try) 2>&5
5278 ac_status=$?
5279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5280 test $ac_status = 0; }
5281 if test "$ac_status" -eq 0; then
5282 am_cv_ar_interface=lib
5283 else
5284 am_cv_ar_interface=unknown
5285 fi
5286 fi
5287 rm -f conftest.lib libconftest.a
5288
5289 fi
5290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5291 ac_ext=cpp
5292 ac_cpp='$CXXCPP $CPPFLAGS'
5293 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5294 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5295 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5296 ;;
5297 esac
5298 fi
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5300 printf "%s\n" "$am_cv_ar_interface" >&6; }
5301
5302 case $am_cv_ar_interface in
5303 ar)
5304 ;;
5305 lib)
5306 # Microsoft lib, so override with the ar-lib wrapper script.
5307 # FIXME: It is wrong to rewrite AR.
5308 # But if we don't then we get into trouble of one sort or another.
5309 # A longer-term fix would be to have automake use am__AR in this case,
5310 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5311 # similar.
5312 AR="$am_aux_dir/ar-lib $AR"
5313 ;;
5314 unknown)
5315 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5316 ;;
5317 esac
5318
5319 ac_ext=c
5320 ac_cpp='$CPP $CPPFLAGS'
5321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5324 if test -n "$ac_tool_prefix"; then
5325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 printf %s "checking for $ac_word... " >&6; }
5329 if test ${ac_cv_prog_CC+y}
5330 then :
5331 printf %s "(cached) " >&6
5332 else case e in #(
5333 e) if test -n "$CC"; then
5334 ac_cv_prog_CC="$CC" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339 IFS=$as_save_IFS
5340 case $as_dir in #(((
5341 '') as_dir=./ ;;
5342 */) ;;
5343 *) as_dir=$as_dir/ ;;
5344 esac
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5347 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5349 break 2
5350 fi
5351 done
5352 done
5353 IFS=$as_save_IFS
5354
5355 fi ;;
5356 esac
5357 fi
5358 CC=$ac_cv_prog_CC
5359 if test -n "$CC"; then
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5361 printf "%s\n" "$CC" >&6; }
5362 else
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 printf "%s\n" "no" >&6; }
5365 fi
5366
5367
5368 fi
5369 if test -z "$ac_cv_prog_CC"; then
5370 ac_ct_CC=$CC
5371 # Extract the first word of "gcc", so it can be a program name with args.
5372 set dummy gcc; ac_word=$2
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5374 printf %s "checking for $ac_word... " >&6; }
5375 if test ${ac_cv_prog_ac_ct_CC+y}
5376 then :
5377 printf %s "(cached) " >&6
5378 else case e in #(
5379 e) if test -n "$ac_ct_CC"; then
5380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5381 else
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5383 for as_dir in $PATH
5384 do
5385 IFS=$as_save_IFS
5386 case $as_dir in #(((
5387 '') as_dir=./ ;;
5388 */) ;;
5389 *) as_dir=$as_dir/ ;;
5390 esac
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5393 ac_cv_prog_ac_ct_CC="gcc"
5394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5395 break 2
5396 fi
5397 done
5398 done
5399 IFS=$as_save_IFS
5400
5401 fi ;;
5402 esac
5403 fi
5404 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5405 if test -n "$ac_ct_CC"; then
5406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5407 printf "%s\n" "$ac_ct_CC" >&6; }
5408 else
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 printf "%s\n" "no" >&6; }
5411 fi
5412
5413 if test "x$ac_ct_CC" = x; then
5414 CC=""
5415 else
5416 case $cross_compiling:$ac_tool_warned in
5417 yes:)
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5419 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5420 ac_tool_warned=yes ;;
5421 esac
5422 CC=$ac_ct_CC
5423 fi
5424 else
5425 CC="$ac_cv_prog_CC"
5426 fi
5427
5428 if test -z "$CC"; then
5429 if test -n "$ac_tool_prefix"; then
5430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5431 set dummy ${ac_tool_prefix}cc; ac_word=$2
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 printf %s "checking for $ac_word... " >&6; }
5434 if test ${ac_cv_prog_CC+y}
5435 then :
5436 printf %s "(cached) " >&6
5437 else case e in #(
5438 e) if test -n "$CC"; then
5439 ac_cv_prog_CC="$CC" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444 IFS=$as_save_IFS
5445 case $as_dir in #(((
5446 '') as_dir=./ ;;
5447 */) ;;
5448 *) as_dir=$as_dir/ ;;
5449 esac
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5452 ac_cv_prog_CC="${ac_tool_prefix}cc"
5453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5454 break 2
5455 fi
5456 done
5457 done
5458 IFS=$as_save_IFS
5459
5460 fi ;;
5461 esac
5462 fi
5463 CC=$ac_cv_prog_CC
5464 if test -n "$CC"; then
5465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5466 printf "%s\n" "$CC" >&6; }
5467 else
5468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469 printf "%s\n" "no" >&6; }
5470 fi
5471
5472
5473 fi
5474 fi
5475 if test -z "$CC"; then
5476 # Extract the first word of "cc", so it can be a program name with args.
5477 set dummy cc; ac_word=$2
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5479 printf %s "checking for $ac_word... " >&6; }
5480 if test ${ac_cv_prog_CC+y}
5481 then :
5482 printf %s "(cached) " >&6
5483 else case e in #(
5484 e) if test -n "$CC"; then
5485 ac_cv_prog_CC="$CC" # Let the user override the test.
5486 else
5487 ac_prog_rejected=no
5488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 for as_dir in $PATH
5490 do
5491 IFS=$as_save_IFS
5492 case $as_dir in #(((
5493 '') as_dir=./ ;;
5494 */) ;;
5495 *) as_dir=$as_dir/ ;;
5496 esac
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5499 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5500 ac_prog_rejected=yes
5501 continue
5502 fi
5503 ac_cv_prog_CC="cc"
5504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507 done
5508 done
5509 IFS=$as_save_IFS
5510
5511 if test $ac_prog_rejected = yes; then
5512 # We found a bogon in the path, so make sure we never use it.
5513 set dummy $ac_cv_prog_CC
5514 shift
5515 if test $# != 0; then
5516 # We chose a different compiler from the bogus one.
5517 # However, it has the same basename, so the bogon will be chosen
5518 # first if we set CC to just the basename; use the full file name.
5519 shift
5520 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5521 fi
5522 fi
5523 fi ;;
5524 esac
5525 fi
5526 CC=$ac_cv_prog_CC
5527 if test -n "$CC"; then
5528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5529 printf "%s\n" "$CC" >&6; }
5530 else
5531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 printf "%s\n" "no" >&6; }
5533 fi
5534
5535
5536 fi
5537 if test -z "$CC"; then
5538 if test -n "$ac_tool_prefix"; then
5539 for ac_prog in cl.exe
5540 do
5541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5542 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5544 printf %s "checking for $ac_word... " >&6; }
5545 if test ${ac_cv_prog_CC+y}
5546 then :
5547 printf %s "(cached) " >&6
5548 else case e in #(
5549 e) if test -n "$CC"; then
5550 ac_cv_prog_CC="$CC" # Let the user override the test.
5551 else
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555 IFS=$as_save_IFS
5556 case $as_dir in #(((
5557 '') as_dir=./ ;;
5558 */) ;;
5559 *) as_dir=$as_dir/ ;;
5560 esac
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5563 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi ;;
5572 esac
5573 fi
5574 CC=$ac_cv_prog_CC
5575 if test -n "$CC"; then
5576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5577 printf "%s\n" "$CC" >&6; }
5578 else
5579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580 printf "%s\n" "no" >&6; }
5581 fi
5582
5583
5584 test -n "$CC" && break
5585 done
5586 fi
5587 if test -z "$CC"; then
5588 ac_ct_CC=$CC
5589 for ac_prog in cl.exe
5590 do
5591 # Extract the first word of "$ac_prog", so it can be a program name with args.
5592 set dummy $ac_prog; ac_word=$2
5593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 printf %s "checking for $ac_word... " >&6; }
5595 if test ${ac_cv_prog_ac_ct_CC+y}
5596 then :
5597 printf %s "(cached) " >&6
5598 else case e in #(
5599 e) if test -n "$ac_ct_CC"; then
5600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5601 else
5602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605 IFS=$as_save_IFS
5606 case $as_dir in #(((
5607 '') as_dir=./ ;;
5608 */) ;;
5609 *) as_dir=$as_dir/ ;;
5610 esac
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5613 ac_cv_prog_ac_ct_CC="$ac_prog"
5614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5615 break 2
5616 fi
5617 done
5618 done
5619 IFS=$as_save_IFS
5620
5621 fi ;;
5622 esac
5623 fi
5624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5625 if test -n "$ac_ct_CC"; then
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5627 printf "%s\n" "$ac_ct_CC" >&6; }
5628 else
5629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 printf "%s\n" "no" >&6; }
5631 fi
5632
5633
5634 test -n "$ac_ct_CC" && break
5635 done
5636
5637 if test "x$ac_ct_CC" = x; then
5638 CC=""
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 CC=$ac_ct_CC
5647 fi
5648 fi
5649
5650 fi
5651 if test -z "$CC"; then
5652 if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5654 set dummy ${ac_tool_prefix}clang; ac_word=$2
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 printf %s "checking for $ac_word... " >&6; }
5657 if test ${ac_cv_prog_CC+y}
5658 then :
5659 printf %s "(cached) " >&6
5660 else case e in #(
5661 e) if test -n "$CC"; then
5662 ac_cv_prog_CC="$CC" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667 IFS=$as_save_IFS
5668 case $as_dir in #(((
5669 '') as_dir=./ ;;
5670 */) ;;
5671 *) as_dir=$as_dir/ ;;
5672 esac
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_CC="${ac_tool_prefix}clang"
5676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi ;;
5684 esac
5685 fi
5686 CC=$ac_cv_prog_CC
5687 if test -n "$CC"; then
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5689 printf "%s\n" "$CC" >&6; }
5690 else
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 printf "%s\n" "no" >&6; }
5693 fi
5694
5695
5696 fi
5697 if test -z "$ac_cv_prog_CC"; then
5698 ac_ct_CC=$CC
5699 # Extract the first word of "clang", so it can be a program name with args.
5700 set dummy clang; ac_word=$2
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 printf %s "checking for $ac_word... " >&6; }
5703 if test ${ac_cv_prog_ac_ct_CC+y}
5704 then :
5705 printf %s "(cached) " >&6
5706 else case e in #(
5707 e) if test -n "$ac_ct_CC"; then
5708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713 IFS=$as_save_IFS
5714 case $as_dir in #(((
5715 '') as_dir=./ ;;
5716 */) ;;
5717 *) as_dir=$as_dir/ ;;
5718 esac
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_ac_ct_CC="clang"
5722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725 done
5726 done
5727 IFS=$as_save_IFS
5728
5729 fi ;;
5730 esac
5731 fi
5732 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5733 if test -n "$ac_ct_CC"; then
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5735 printf "%s\n" "$ac_ct_CC" >&6; }
5736 else
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 printf "%s\n" "no" >&6; }
5739 fi
5740
5741 if test "x$ac_ct_CC" = x; then
5742 CC=""
5743 else
5744 case $cross_compiling:$ac_tool_warned in
5745 yes:)
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5748 ac_tool_warned=yes ;;
5749 esac
5750 CC=$ac_ct_CC
5751 fi
5752 else
5753 CC="$ac_cv_prog_CC"
5754 fi
5755
5756 fi
5757
5758
5759 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5760 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5761 as_fn_error $? "no acceptable C compiler found in \$PATH
5762 See 'config.log' for more details" "$LINENO" 5; }
5763
5764 # Provide some information about the compiler.
5765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5766 set X $ac_compile
5767 ac_compiler=$2
5768 for ac_option in --version -v -V -qversion -version; do
5769 { { ac_try="$ac_compiler $ac_option >&5"
5770 case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5775 printf "%s\n" "$ac_try_echo"; } >&5
5776 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5777 ac_status=$?
5778 if test -s conftest.err; then
5779 sed '10a\
5780 ... rest of stderr output deleted ...
5781 10q' conftest.err >conftest.er1
5782 cat conftest.er1 >&5
5783 fi
5784 rm -f conftest.er1 conftest.err
5785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5786 test $ac_status = 0; }
5787 done
5788
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5790 printf %s "checking whether the compiler supports GNU C... " >&6; }
5791 if test ${ac_cv_c_compiler_gnu+y}
5792 then :
5793 printf %s "(cached) " >&6
5794 else case e in #(
5795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796 /* end confdefs.h. */
5797
5798 int
5799 main (void)
5800 {
5801 #ifndef __GNUC__
5802 choke me
5803 #endif
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_c_try_compile "$LINENO"
5810 then :
5811 ac_compiler_gnu=yes
5812 else case e in #(
5813 e) ac_compiler_gnu=no ;;
5814 esac
5815 fi
5816 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5817 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5818 ;;
5819 esac
5820 fi
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5822 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5824
5825 if test $ac_compiler_gnu = yes; then
5826 GCC=yes
5827 else
5828 GCC=
5829 fi
5830 ac_test_CFLAGS=${CFLAGS+y}
5831 ac_save_CFLAGS=$CFLAGS
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5833 printf %s "checking whether $CC accepts -g... " >&6; }
5834 if test ${ac_cv_prog_cc_g+y}
5835 then :
5836 printf %s "(cached) " >&6
5837 else case e in #(
5838 e) ac_save_c_werror_flag=$ac_c_werror_flag
5839 ac_c_werror_flag=yes
5840 ac_cv_prog_cc_g=no
5841 CFLAGS="-g"
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844
5845 int
5846 main (void)
5847 {
5848
5849 ;
5850 return 0;
5851 }
5852 _ACEOF
5853 if ac_fn_c_try_compile "$LINENO"
5854 then :
5855 ac_cv_prog_cc_g=yes
5856 else case e in #(
5857 e) CFLAGS=""
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5860
5861 int
5862 main (void)
5863 {
5864
5865 ;
5866 return 0;
5867 }
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"
5870 then :
5871
5872 else case e in #(
5873 e) ac_c_werror_flag=$ac_save_c_werror_flag
5874 CFLAGS="-g"
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877
5878 int
5879 main (void)
5880 {
5881
5882 ;
5883 return 0;
5884 }
5885 _ACEOF
5886 if ac_fn_c_try_compile "$LINENO"
5887 then :
5888 ac_cv_prog_cc_g=yes
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5891 esac
5892 fi
5893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5894 esac
5895 fi
5896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5897 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5898 esac
5899 fi
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5901 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5902 if test $ac_test_CFLAGS; then
5903 CFLAGS=$ac_save_CFLAGS
5904 elif test $ac_cv_prog_cc_g = yes; then
5905 if test "$GCC" = yes; then
5906 CFLAGS="-g -O2"
5907 else
5908 CFLAGS="-g"
5909 fi
5910 else
5911 if test "$GCC" = yes; then
5912 CFLAGS="-O2"
5913 else
5914 CFLAGS=
5915 fi
5916 fi
5917 ac_prog_cc_stdc=no
5918 if test x$ac_prog_cc_stdc = xno
5919 then :
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5921 printf %s "checking for $CC option to enable C11 features... " >&6; }
5922 if test ${ac_cv_prog_cc_c11+y}
5923 then :
5924 printf %s "(cached) " >&6
5925 else case e in #(
5926 e) ac_cv_prog_cc_c11=no
5927 ac_save_CC=$CC
5928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5929 /* end confdefs.h. */
5930 $ac_c_conftest_c11_program
5931 _ACEOF
5932 for ac_arg in '' -std=gnu11
5933 do
5934 CC="$ac_save_CC $ac_arg"
5935 if ac_fn_c_try_compile "$LINENO"
5936 then :
5937 ac_cv_prog_cc_c11=$ac_arg
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.beam
5940 test "x$ac_cv_prog_cc_c11" != "xno" && break
5941 done
5942 rm -f conftest.$ac_ext
5943 CC=$ac_save_CC ;;
5944 esac
5945 fi
5946
5947 if test "x$ac_cv_prog_cc_c11" = xno
5948 then :
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5950 printf "%s\n" "unsupported" >&6; }
5951 else case e in #(
5952 e) if test "x$ac_cv_prog_cc_c11" = x
5953 then :
5954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5955 printf "%s\n" "none needed" >&6; }
5956 else case e in #(
5957 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5958 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5959 CC="$CC $ac_cv_prog_cc_c11" ;;
5960 esac
5961 fi
5962 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5963 ac_prog_cc_stdc=c11 ;;
5964 esac
5965 fi
5966 fi
5967 if test x$ac_prog_cc_stdc = xno
5968 then :
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5970 printf %s "checking for $CC option to enable C99 features... " >&6; }
5971 if test ${ac_cv_prog_cc_c99+y}
5972 then :
5973 printf %s "(cached) " >&6
5974 else case e in #(
5975 e) ac_cv_prog_cc_c99=no
5976 ac_save_CC=$CC
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 $ac_c_conftest_c99_program
5980 _ACEOF
5981 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5982 do
5983 CC="$ac_save_CC $ac_arg"
5984 if ac_fn_c_try_compile "$LINENO"
5985 then :
5986 ac_cv_prog_cc_c99=$ac_arg
5987 fi
5988 rm -f core conftest.err conftest.$ac_objext conftest.beam
5989 test "x$ac_cv_prog_cc_c99" != "xno" && break
5990 done
5991 rm -f conftest.$ac_ext
5992 CC=$ac_save_CC ;;
5993 esac
5994 fi
5995
5996 if test "x$ac_cv_prog_cc_c99" = xno
5997 then :
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5999 printf "%s\n" "unsupported" >&6; }
6000 else case e in #(
6001 e) if test "x$ac_cv_prog_cc_c99" = x
6002 then :
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6004 printf "%s\n" "none needed" >&6; }
6005 else case e in #(
6006 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6007 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6008 CC="$CC $ac_cv_prog_cc_c99" ;;
6009 esac
6010 fi
6011 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6012 ac_prog_cc_stdc=c99 ;;
6013 esac
6014 fi
6015 fi
6016 if test x$ac_prog_cc_stdc = xno
6017 then :
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6019 printf %s "checking for $CC option to enable C89 features... " >&6; }
6020 if test ${ac_cv_prog_cc_c89+y}
6021 then :
6022 printf %s "(cached) " >&6
6023 else case e in #(
6024 e) ac_cv_prog_cc_c89=no
6025 ac_save_CC=$CC
6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6027 /* end confdefs.h. */
6028 $ac_c_conftest_c89_program
6029 _ACEOF
6030 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6031 do
6032 CC="$ac_save_CC $ac_arg"
6033 if ac_fn_c_try_compile "$LINENO"
6034 then :
6035 ac_cv_prog_cc_c89=$ac_arg
6036 fi
6037 rm -f core conftest.err conftest.$ac_objext conftest.beam
6038 test "x$ac_cv_prog_cc_c89" != "xno" && break
6039 done
6040 rm -f conftest.$ac_ext
6041 CC=$ac_save_CC ;;
6042 esac
6043 fi
6044
6045 if test "x$ac_cv_prog_cc_c89" = xno
6046 then :
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6048 printf "%s\n" "unsupported" >&6; }
6049 else case e in #(
6050 e) if test "x$ac_cv_prog_cc_c89" = x
6051 then :
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6053 printf "%s\n" "none needed" >&6; }
6054 else case e in #(
6055 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6056 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6057 CC="$CC $ac_cv_prog_cc_c89" ;;
6058 esac
6059 fi
6060 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6061 ac_prog_cc_stdc=c89 ;;
6062 esac
6063 fi
6064 fi
6065
6066 ac_ext=cpp
6067 ac_cpp='$CXXCPP $CPPFLAGS'
6068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6071
6072
6073 ac_ext=c
6074 ac_cpp='$CPP $CPPFLAGS'
6075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6079 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6080 if test ${am_cv_prog_cc_c_o+y}
6081 then :
6082 printf %s "(cached) " >&6
6083 else case e in #(
6084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6085 /* end confdefs.h. */
6086
6087 int
6088 main (void)
6089 {
6090
6091 ;
6092 return 0;
6093 }
6094 _ACEOF
6095 # Make sure it works both with $CC and with simple cc.
6096 # Following AC_PROG_CC_C_O, we do the test twice because some
6097 # compilers refuse to overwrite an existing .o file with -o,
6098 # though they will create one.
6099 am_cv_prog_cc_c_o=yes
6100 for am_i in 1 2; do
6101 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6102 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6103 ac_status=$?
6104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } \
6106 && test -f conftest2.$ac_objext; then
6107 : OK
6108 else
6109 am_cv_prog_cc_c_o=no
6110 break
6111 fi
6112 done
6113 rm -f core conftest*
6114 unset am_i ;;
6115 esac
6116 fi
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6118 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6119 if test "$am_cv_prog_cc_c_o" != yes; then
6120 # Losing compiler, so override with the script.
6121 # FIXME: It is wrong to rewrite CC.
6122 # But if we don't then we get into trouble of one sort or another.
6123 # A longer-term fix would be to have automake use am__CC in this case,
6124 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6125 CC="$am_aux_dir/compile $CC"
6126 fi
6127 ac_ext=cpp
6128 ac_cpp='$CXXCPP $CPPFLAGS'
6129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6132
6133
6134 depcc="$CC" am_compiler_list=
6135
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6137 printf %s "checking dependency style of $depcc... " >&6; }
6138 if test ${am_cv_CC_dependencies_compiler_type+y}
6139 then :
6140 printf %s "(cached) " >&6
6141 else case e in #(
6142 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6143 # We make a subdir and do the tests there. Otherwise we can end up
6144 # making bogus files that we don't know about and never remove. For
6145 # instance it was reported that on HP-UX the gcc test will end up
6146 # making a dummy file named 'D' -- because '-MD' means "put the output
6147 # in D".
6148 rm -rf conftest.dir
6149 mkdir conftest.dir
6150 # Copy depcomp to subdir because otherwise we won't find it if we're
6151 # using a relative directory.
6152 cp "$am_depcomp" conftest.dir
6153 cd conftest.dir
6154 # We will build objects and dependencies in a subdirectory because
6155 # it helps to detect inapplicable dependency modes. For instance
6156 # both Tru64's cc and ICC support -MD to output dependencies as a
6157 # side effect of compilation, but ICC will put the dependencies in
6158 # the current directory while Tru64 will put them in the object
6159 # directory.
6160 mkdir sub
6161
6162 am_cv_CC_dependencies_compiler_type=none
6163 if test "$am_compiler_list" = ""; then
6164 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6165 fi
6166 am__universal=false
6167 case " $depcc " in #(
6168 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6169 esac
6170
6171 for depmode in $am_compiler_list; do
6172 # Setup a source with many dependencies, because some compilers
6173 # like to wrap large dependency lists on column 80 (with \), and
6174 # we should not choose a depcomp mode which is confused by this.
6175 #
6176 # We need to recreate these files for each test, as the compiler may
6177 # overwrite some of them when testing with obscure command lines.
6178 # This happens at least with the AIX C compiler.
6179 : > sub/conftest.c
6180 for i in 1 2 3 4 5 6; do
6181 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6182 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6183 # Solaris 10 /bin/sh.
6184 echo '/* dummy */' > sub/conftst$i.h
6185 done
6186 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6187
6188 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6189 # mode. It turns out that the SunPro C++ compiler does not properly
6190 # handle '-M -o', and we need to detect this. Also, some Intel
6191 # versions had trouble with output in subdirs.
6192 am__obj=sub/conftest.${OBJEXT-o}
6193 am__minus_obj="-o $am__obj"
6194 case $depmode in
6195 gcc)
6196 # This depmode causes a compiler race in universal mode.
6197 test "$am__universal" = false || continue
6198 ;;
6199 nosideeffect)
6200 # After this tag, mechanisms are not by side-effect, so they'll
6201 # only be used when explicitly requested.
6202 if test "x$enable_dependency_tracking" = xyes; then
6203 continue
6204 else
6205 break
6206 fi
6207 ;;
6208 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6209 # This compiler won't grok '-c -o', but also, the minuso test has
6210 # not run yet. These depmodes are late enough in the game, and
6211 # so weak that their functioning should not be impacted.
6212 am__obj=conftest.${OBJEXT-o}
6213 am__minus_obj=
6214 ;;
6215 none) break ;;
6216 esac
6217 if depmode=$depmode \
6218 source=sub/conftest.c object=$am__obj \
6219 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6220 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6221 >/dev/null 2>conftest.err &&
6222 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6223 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6224 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6225 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6226 # icc doesn't choke on unknown options, it will just issue warnings
6227 # or remarks (even with -Werror). So we grep stderr for any message
6228 # that says an option was ignored or not supported.
6229 # When given -MP, icc 7.0 and 7.1 complain thus:
6230 # icc: Command line warning: ignoring option '-M'; no argument required
6231 # The diagnosis changed in icc 8.0:
6232 # icc: Command line remark: option '-MP' not supported
6233 if (grep 'ignoring option' conftest.err ||
6234 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6235 am_cv_CC_dependencies_compiler_type=$depmode
6236 break
6237 fi
6238 fi
6239 done
6240
6241 cd ..
6242 rm -rf conftest.dir
6243 else
6244 am_cv_CC_dependencies_compiler_type=none
6245 fi
6246 ;;
6247 esac
6248 fi
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6250 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6251 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6252
6253 if
6254 test "x$enable_dependency_tracking" != xno \
6255 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6256 am__fastdepCC_TRUE=
6257 am__fastdepCC_FALSE='#'
6258 else
6259 am__fastdepCC_TRUE='#'
6260 am__fastdepCC_FALSE=
6261 fi
6262
6263
6264 ac_ext=c
6265 ac_cpp='$CPP $CPPFLAGS'
6266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6270 printf %s "checking how to run the C preprocessor... " >&6; }
6271 # On Suns, sometimes $CPP names a directory.
6272 if test -n "$CPP" && test -d "$CPP"; then
6273 CPP=
6274 fi
6275 if test -z "$CPP"; then
6276 if test ${ac_cv_prog_CPP+y}
6277 then :
6278 printf %s "(cached) " >&6
6279 else case e in #(
6280 e) # Double quotes because $CC needs to be expanded
6281 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6282 do
6283 ac_preproc_ok=false
6284 for ac_c_preproc_warn_flag in '' yes
6285 do
6286 # Use a header file that comes with gcc, so configuring glibc
6287 # with a fresh cross-compiler works.
6288 # On the NeXT, cc -E runs the code through the compiler's parser,
6289 # not just through cpp. "Syntax error" is here to catch this case.
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291 /* end confdefs.h. */
6292 #include <limits.h>
6293 Syntax error
6294 _ACEOF
6295 if ac_fn_c_try_cpp "$LINENO"
6296 then :
6297
6298 else case e in #(
6299 e) # Broken: fails on valid input.
6300 continue ;;
6301 esac
6302 fi
6303 rm -f conftest.err conftest.i conftest.$ac_ext
6304
6305 # OK, works on sane cases. Now check whether nonexistent headers
6306 # can be detected and how.
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 #include <ac_nonexistent.h>
6310 _ACEOF
6311 if ac_fn_c_try_cpp "$LINENO"
6312 then :
6313 # Broken: success on invalid input.
6314 continue
6315 else case e in #(
6316 e) # Passes both tests.
6317 ac_preproc_ok=:
6318 break ;;
6319 esac
6320 fi
6321 rm -f conftest.err conftest.i conftest.$ac_ext
6322
6323 done
6324 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6325 rm -f conftest.i conftest.err conftest.$ac_ext
6326 if $ac_preproc_ok
6327 then :
6328 break
6329 fi
6330
6331 done
6332 ac_cv_prog_CPP=$CPP
6333 ;;
6334 esac
6335 fi
6336 CPP=$ac_cv_prog_CPP
6337 else
6338 ac_cv_prog_CPP=$CPP
6339 fi
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6341 printf "%s\n" "$CPP" >&6; }
6342 ac_preproc_ok=false
6343 for ac_c_preproc_warn_flag in '' yes
6344 do
6345 # Use a header file that comes with gcc, so configuring glibc
6346 # with a fresh cross-compiler works.
6347 # On the NeXT, cc -E runs the code through the compiler's parser,
6348 # not just through cpp. "Syntax error" is here to catch this case.
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6351 #include <limits.h>
6352 Syntax error
6353 _ACEOF
6354 if ac_fn_c_try_cpp "$LINENO"
6355 then :
6356
6357 else case e in #(
6358 e) # Broken: fails on valid input.
6359 continue ;;
6360 esac
6361 fi
6362 rm -f conftest.err conftest.i conftest.$ac_ext
6363
6364 # OK, works on sane cases. Now check whether nonexistent headers
6365 # can be detected and how.
6366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 #include <ac_nonexistent.h>
6369 _ACEOF
6370 if ac_fn_c_try_cpp "$LINENO"
6371 then :
6372 # Broken: success on invalid input.
6373 continue
6374 else case e in #(
6375 e) # Passes both tests.
6376 ac_preproc_ok=:
6377 break ;;
6378 esac
6379 fi
6380 rm -f conftest.err conftest.i conftest.$ac_ext
6381
6382 done
6383 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6384 rm -f conftest.i conftest.err conftest.$ac_ext
6385 if $ac_preproc_ok
6386 then :
6387
6388 else case e in #(
6389 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6390 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6391 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6392 See 'config.log' for more details" "$LINENO" 5; } ;;
6393 esac
6394 fi
6395
6396 ac_ext=cpp
6397 ac_cpp='$CXXCPP $CPPFLAGS'
6398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6401
6402
6403
6404
6405
6406
6407
6408 ac_ext=cpp
6409 ac_cpp='$CXXCPP $CPPFLAGS'
6410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6413 if test -z "$CXX"; then
6414 if test -n "$CCC"; then
6415 CXX=$CCC
6416 else
6417 if test -n "$ac_tool_prefix"; then
6418 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6419 do
6420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 printf %s "checking for $ac_word... " >&6; }
6424 if test ${ac_cv_prog_CXX+y}
6425 then :
6426 printf %s "(cached) " >&6
6427 else case e in #(
6428 e) if test -n "$CXX"; then
6429 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434 IFS=$as_save_IFS
6435 case $as_dir in #(((
6436 '') as_dir=./ ;;
6437 */) ;;
6438 *) as_dir=$as_dir/ ;;
6439 esac
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6442 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6444 break 2
6445 fi
6446 done
6447 done
6448 IFS=$as_save_IFS
6449
6450 fi ;;
6451 esac
6452 fi
6453 CXX=$ac_cv_prog_CXX
6454 if test -n "$CXX"; then
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6456 printf "%s\n" "$CXX" >&6; }
6457 else
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6459 printf "%s\n" "no" >&6; }
6460 fi
6461
6462
6463 test -n "$CXX" && break
6464 done
6465 fi
6466 if test -z "$CXX"; then
6467 ac_ct_CXX=$CXX
6468 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6469 do
6470 # Extract the first word of "$ac_prog", so it can be a program name with args.
6471 set dummy $ac_prog; ac_word=$2
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473 printf %s "checking for $ac_word... " >&6; }
6474 if test ${ac_cv_prog_ac_ct_CXX+y}
6475 then :
6476 printf %s "(cached) " >&6
6477 else case e in #(
6478 e) if test -n "$ac_ct_CXX"; then
6479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 case $as_dir in #(((
6486 '') as_dir=./ ;;
6487 */) ;;
6488 *) as_dir=$as_dir/ ;;
6489 esac
6490 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6492 ac_cv_prog_ac_ct_CXX="$ac_prog"
6493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6494 break 2
6495 fi
6496 done
6497 done
6498 IFS=$as_save_IFS
6499
6500 fi ;;
6501 esac
6502 fi
6503 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6504 if test -n "$ac_ct_CXX"; then
6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6506 printf "%s\n" "$ac_ct_CXX" >&6; }
6507 else
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 printf "%s\n" "no" >&6; }
6510 fi
6511
6512
6513 test -n "$ac_ct_CXX" && break
6514 done
6515
6516 if test "x$ac_ct_CXX" = x; then
6517 CXX="g++"
6518 else
6519 case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525 CXX=$ac_ct_CXX
6526 fi
6527 fi
6528
6529 fi
6530 fi
6531 # Provide some information about the compiler.
6532 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6533 set X $ac_compile
6534 ac_compiler=$2
6535 for ac_option in --version -v -V -qversion; do
6536 { { ac_try="$ac_compiler $ac_option >&5"
6537 case "(($ac_try" in
6538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6539 *) ac_try_echo=$ac_try;;
6540 esac
6541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6542 printf "%s\n" "$ac_try_echo"; } >&5
6543 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6544 ac_status=$?
6545 if test -s conftest.err; then
6546 sed '10a\
6547 ... rest of stderr output deleted ...
6548 10q' conftest.err >conftest.er1
6549 cat conftest.er1 >&5
6550 fi
6551 rm -f conftest.er1 conftest.err
6552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6553 test $ac_status = 0; }
6554 done
6555
6556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6557 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6558 if test ${ac_cv_cxx_compiler_gnu+y}
6559 then :
6560 printf %s "(cached) " >&6
6561 else case e in #(
6562 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6564
6565 int
6566 main (void)
6567 {
6568 #ifndef __GNUC__
6569 choke me
6570 #endif
6571
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 if ac_fn_cxx_try_compile "$LINENO"
6577 then :
6578 ac_compiler_gnu=yes
6579 else case e in #(
6580 e) ac_compiler_gnu=no ;;
6581 esac
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6584 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6585 ;;
6586 esac
6587 fi
6588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6589 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6590 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6591
6592 if test $ac_compiler_gnu = yes; then
6593 GXX=yes
6594 else
6595 GXX=
6596 fi
6597 ac_test_CXXFLAGS=${CXXFLAGS+y}
6598 ac_save_CXXFLAGS=$CXXFLAGS
6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6600 printf %s "checking whether $CXX accepts -g... " >&6; }
6601 if test ${ac_cv_prog_cxx_g+y}
6602 then :
6603 printf %s "(cached) " >&6
6604 else case e in #(
6605 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6606 ac_cxx_werror_flag=yes
6607 ac_cv_prog_cxx_g=no
6608 CXXFLAGS="-g"
6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6610 /* end confdefs.h. */
6611
6612 int
6613 main (void)
6614 {
6615
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 if ac_fn_cxx_try_compile "$LINENO"
6621 then :
6622 ac_cv_prog_cxx_g=yes
6623 else case e in #(
6624 e) CXXFLAGS=""
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627
6628 int
6629 main (void)
6630 {
6631
6632 ;
6633 return 0;
6634 }
6635 _ACEOF
6636 if ac_fn_cxx_try_compile "$LINENO"
6637 then :
6638
6639 else case e in #(
6640 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6641 CXXFLAGS="-g"
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6644
6645 int
6646 main (void)
6647 {
6648
6649 ;
6650 return 0;
6651 }
6652 _ACEOF
6653 if ac_fn_cxx_try_compile "$LINENO"
6654 then :
6655 ac_cv_prog_cxx_g=yes
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6658 esac
6659 fi
6660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6661 esac
6662 fi
6663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6664 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6665 esac
6666 fi
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6668 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6669 if test $ac_test_CXXFLAGS; then
6670 CXXFLAGS=$ac_save_CXXFLAGS
6671 elif test $ac_cv_prog_cxx_g = yes; then
6672 if test "$GXX" = yes; then
6673 CXXFLAGS="-g -O2"
6674 else
6675 CXXFLAGS="-g"
6676 fi
6677 else
6678 if test "$GXX" = yes; then
6679 CXXFLAGS="-O2"
6680 else
6681 CXXFLAGS=
6682 fi
6683 fi
6684 ac_prog_cxx_stdcxx=no
6685 if test x$ac_prog_cxx_stdcxx = xno
6686 then :
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6688 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6689 if test ${ac_cv_prog_cxx_cxx11+y}
6690 then :
6691 printf %s "(cached) " >&6
6692 else case e in #(
6693 e) ac_cv_prog_cxx_cxx11=no
6694 ac_save_CXX=$CXX
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6697 $ac_cxx_conftest_cxx11_program
6698 _ACEOF
6699 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6700 do
6701 CXX="$ac_save_CXX $ac_arg"
6702 if ac_fn_cxx_try_compile "$LINENO"
6703 then :
6704 ac_cv_prog_cxx_cxx11=$ac_arg
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.beam
6707 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6708 done
6709 rm -f conftest.$ac_ext
6710 CXX=$ac_save_CXX ;;
6711 esac
6712 fi
6713
6714 if test "x$ac_cv_prog_cxx_cxx11" = xno
6715 then :
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6717 printf "%s\n" "unsupported" >&6; }
6718 else case e in #(
6719 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6720 then :
6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6722 printf "%s\n" "none needed" >&6; }
6723 else case e in #(
6724 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6725 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6726 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6727 esac
6728 fi
6729 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6730 ac_prog_cxx_stdcxx=cxx11 ;;
6731 esac
6732 fi
6733 fi
6734 if test x$ac_prog_cxx_stdcxx = xno
6735 then :
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6737 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6738 if test ${ac_cv_prog_cxx_cxx98+y}
6739 then :
6740 printf %s "(cached) " >&6
6741 else case e in #(
6742 e) ac_cv_prog_cxx_cxx98=no
6743 ac_save_CXX=$CXX
6744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6746 $ac_cxx_conftest_cxx98_program
6747 _ACEOF
6748 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6749 do
6750 CXX="$ac_save_CXX $ac_arg"
6751 if ac_fn_cxx_try_compile "$LINENO"
6752 then :
6753 ac_cv_prog_cxx_cxx98=$ac_arg
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.beam
6756 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6757 done
6758 rm -f conftest.$ac_ext
6759 CXX=$ac_save_CXX ;;
6760 esac
6761 fi
6762
6763 if test "x$ac_cv_prog_cxx_cxx98" = xno
6764 then :
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6766 printf "%s\n" "unsupported" >&6; }
6767 else case e in #(
6768 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6769 then :
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6771 printf "%s\n" "none needed" >&6; }
6772 else case e in #(
6773 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6774 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6775 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6776 esac
6777 fi
6778 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6779 ac_prog_cxx_stdcxx=cxx98 ;;
6780 esac
6781 fi
6782 fi
6783
6784 ac_ext=cpp
6785 ac_cpp='$CXXCPP $CPPFLAGS'
6786 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6787 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6788 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6789
6790 depcc="$CXX" am_compiler_list=
6791
6792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6793 printf %s "checking dependency style of $depcc... " >&6; }
6794 if test ${am_cv_CXX_dependencies_compiler_type+y}
6795 then :
6796 printf %s "(cached) " >&6
6797 else case e in #(
6798 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6799 # We make a subdir and do the tests there. Otherwise we can end up
6800 # making bogus files that we don't know about and never remove. For
6801 # instance it was reported that on HP-UX the gcc test will end up
6802 # making a dummy file named 'D' -- because '-MD' means "put the output
6803 # in D".
6804 rm -rf conftest.dir
6805 mkdir conftest.dir
6806 # Copy depcomp to subdir because otherwise we won't find it if we're
6807 # using a relative directory.
6808 cp "$am_depcomp" conftest.dir
6809 cd conftest.dir
6810 # We will build objects and dependencies in a subdirectory because
6811 # it helps to detect inapplicable dependency modes. For instance
6812 # both Tru64's cc and ICC support -MD to output dependencies as a
6813 # side effect of compilation, but ICC will put the dependencies in
6814 # the current directory while Tru64 will put them in the object
6815 # directory.
6816 mkdir sub
6817
6818 am_cv_CXX_dependencies_compiler_type=none
6819 if test "$am_compiler_list" = ""; then
6820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6821 fi
6822 am__universal=false
6823 case " $depcc " in #(
6824 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6825 esac
6826
6827 for depmode in $am_compiler_list; do
6828 # Setup a source with many dependencies, because some compilers
6829 # like to wrap large dependency lists on column 80 (with \), and
6830 # we should not choose a depcomp mode which is confused by this.
6831 #
6832 # We need to recreate these files for each test, as the compiler may
6833 # overwrite some of them when testing with obscure command lines.
6834 # This happens at least with the AIX C compiler.
6835 : > sub/conftest.c
6836 for i in 1 2 3 4 5 6; do
6837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6838 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6839 # Solaris 10 /bin/sh.
6840 echo '/* dummy */' > sub/conftst$i.h
6841 done
6842 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6843
6844 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6845 # mode. It turns out that the SunPro C++ compiler does not properly
6846 # handle '-M -o', and we need to detect this. Also, some Intel
6847 # versions had trouble with output in subdirs.
6848 am__obj=sub/conftest.${OBJEXT-o}
6849 am__minus_obj="-o $am__obj"
6850 case $depmode in
6851 gcc)
6852 # This depmode causes a compiler race in universal mode.
6853 test "$am__universal" = false || continue
6854 ;;
6855 nosideeffect)
6856 # After this tag, mechanisms are not by side-effect, so they'll
6857 # only be used when explicitly requested.
6858 if test "x$enable_dependency_tracking" = xyes; then
6859 continue
6860 else
6861 break
6862 fi
6863 ;;
6864 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6865 # This compiler won't grok '-c -o', but also, the minuso test has
6866 # not run yet. These depmodes are late enough in the game, and
6867 # so weak that their functioning should not be impacted.
6868 am__obj=conftest.${OBJEXT-o}
6869 am__minus_obj=
6870 ;;
6871 none) break ;;
6872 esac
6873 if depmode=$depmode \
6874 source=sub/conftest.c object=$am__obj \
6875 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6876 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6877 >/dev/null 2>conftest.err &&
6878 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6879 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6880 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6881 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6882 # icc doesn't choke on unknown options, it will just issue warnings
6883 # or remarks (even with -Werror). So we grep stderr for any message
6884 # that says an option was ignored or not supported.
6885 # When given -MP, icc 7.0 and 7.1 complain thus:
6886 # icc: Command line warning: ignoring option '-M'; no argument required
6887 # The diagnosis changed in icc 8.0:
6888 # icc: Command line remark: option '-MP' not supported
6889 if (grep 'ignoring option' conftest.err ||
6890 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6891 am_cv_CXX_dependencies_compiler_type=$depmode
6892 break
6893 fi
6894 fi
6895 done
6896
6897 cd ..
6898 rm -rf conftest.dir
6899 else
6900 am_cv_CXX_dependencies_compiler_type=none
6901 fi
6902 ;;
6903 esac
6904 fi
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6906 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6907 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6908
6909 if
6910 test "x$enable_dependency_tracking" != xno \
6911 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6912 am__fastdepCXX_TRUE=
6913 am__fastdepCXX_FALSE='#'
6914 else
6915 am__fastdepCXX_TRUE='#'
6916 am__fastdepCXX_FALSE=
6917 fi
6918
6919
6920
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6922 printf %s "checking whether ln -s works... " >&6; }
6923 LN_S=$as_ln_s
6924 if test "$LN_S" = "ln -s"; then
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6926 printf "%s\n" "yes" >&6; }
6927 else
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6929 printf "%s\n" "no, using $LN_S" >&6; }
6930 fi
6931
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6933 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6934 set x ${MAKE-make}
6935 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6936 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6937 then :
6938 printf %s "(cached) " >&6
6939 else case e in #(
6940 e) cat >conftest.make <<\_ACEOF
6941 SHELL = /bin/sh
6942 all:
6943 @echo '@@@%%%=$(MAKE)=@@@%%%'
6944 _ACEOF
6945 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6946 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6947 *@@@%%%=?*=@@@%%%*)
6948 eval ac_cv_prog_make_${ac_make}_set=yes;;
6949 *)
6950 eval ac_cv_prog_make_${ac_make}_set=no;;
6951 esac
6952 rm -f conftest.make ;;
6953 esac
6954 fi
6955 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6957 printf "%s\n" "yes" >&6; }
6958 SET_MAKE=
6959 else
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 printf "%s\n" "no" >&6; }
6962 SET_MAKE="MAKE=${MAKE-make}"
6963 fi
6964
6965 case `pwd` in
6966 *\ * | *\ *)
6967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6968 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6969 esac
6970
6971
6972
6973 macro_version='2.5.4'
6974 macro_revision='2.5.4'
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989 ltmain=$ac_aux_dir/ltmain.sh
6990
6991
6992
6993 # Make sure we can run config.sub.
6994 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6995 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6996
6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6998 printf %s "checking build system type... " >&6; }
6999 if test ${ac_cv_build+y}
7000 then :
7001 printf %s "(cached) " >&6
7002 else case e in #(
7003 e) ac_build_alias=$build_alias
7004 test "x$ac_build_alias" = x &&
7005 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7006 test "x$ac_build_alias" = x &&
7007 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7008 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7009 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7010 ;;
7011 esac
7012 fi
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7014 printf "%s\n" "$ac_cv_build" >&6; }
7015 case $ac_cv_build in
7016 *-*-*) ;;
7017 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7018 esac
7019 build=$ac_cv_build
7020 ac_save_IFS=$IFS; IFS='-'
7021 set x $ac_cv_build
7022 shift
7023 build_cpu=$1
7024 build_vendor=$2
7025 shift; shift
7026 # Remember, the first character of IFS is used to create $*,
7027 # except with old shells:
7028 build_os=$*
7029 IFS=$ac_save_IFS
7030 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7031
7032
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7034 printf %s "checking host system type... " >&6; }
7035 if test ${ac_cv_host+y}
7036 then :
7037 printf %s "(cached) " >&6
7038 else case e in #(
7039 e) if test "x$host_alias" = x; then
7040 ac_cv_host=$ac_cv_build
7041 else
7042 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7043 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7044 fi
7045 ;;
7046 esac
7047 fi
7048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7049 printf "%s\n" "$ac_cv_host" >&6; }
7050 case $ac_cv_host in
7051 *-*-*) ;;
7052 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7053 esac
7054 host=$ac_cv_host
7055 ac_save_IFS=$IFS; IFS='-'
7056 set x $ac_cv_host
7057 shift
7058 host_cpu=$1
7059 host_vendor=$2
7060 shift; shift
7061 # Remember, the first character of IFS is used to create $*,
7062 # except with old shells:
7063 host_os=$*
7064 IFS=$ac_save_IFS
7065 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7066
7067
7068 # Backslashify metacharacters that are still active within
7069 # double-quoted strings.
7070 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7071
7072 # Same as above, but do not quote variable references.
7073 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7074
7075 # Sed substitution to delay expansion of an escaped shell variable in a
7076 # double_quote_subst'ed string.
7077 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7078
7079 # Sed substitution to delay expansion of an escaped single quote.
7080 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7081
7082 # Sed substitution to avoid accidental globbing in evaled expressions
7083 no_glob_subst='s/\*/\\\*/g'
7084
7085 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7086 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7087 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7088
7089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7090 printf %s "checking how to print strings... " >&6; }
7091 # Test print first, because it will be a builtin if present.
7092 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7093 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7094 ECHO='print -r --'
7095 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7096 ECHO='printf %s\n'
7097 else
7098 # Use this function as a fallback that always works.
7099 func_fallback_echo ()
7100 {
7101 eval 'cat <<_LTECHO_EOF
7102 $1
7103 _LTECHO_EOF'
7104 }
7105 ECHO='func_fallback_echo'
7106 fi
7107
7108 # func_echo_all arg...
7109 # Invoke $ECHO with all args, space-separated.
7110 func_echo_all ()
7111 {
7112 $ECHO ""
7113 }
7114
7115 case $ECHO in
7116 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7117 printf "%s\n" "printf" >&6; } ;;
7118 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7119 printf "%s\n" "print -r" >&6; } ;;
7120 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7121 printf "%s\n" "cat" >&6; } ;;
7122 esac
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7138 printf %s "checking for a sed that does not truncate output... " >&6; }
7139 if test ${ac_cv_path_SED+y}
7140 then :
7141 printf %s "(cached) " >&6
7142 else case e in #(
7143 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7144 for ac_i in 1 2 3 4 5 6 7; do
7145 ac_script="$ac_script$as_nl$ac_script"
7146 done
7147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7148 { ac_script=; unset ac_script;}
7149 if test -z "$SED"; then
7150 ac_path_SED_found=false
7151 # Loop through the user's path and test for each of PROGNAME-LIST
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 for as_dir in $PATH
7154 do
7155 IFS=$as_save_IFS
7156 case $as_dir in #(((
7157 '') as_dir=./ ;;
7158 */) ;;
7159 *) as_dir=$as_dir/ ;;
7160 esac
7161 for ac_prog in sed gsed
7162 do
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7165 as_fn_executable_p "$ac_path_SED" || continue
7166 # Check for GNU ac_path_SED and select it if it is found.
7167 # Check for GNU $ac_path_SED
7168 case `"$ac_path_SED" --version 2>&1` in #(
7169 *GNU*)
7170 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7171 #(
7172 *)
7173 ac_count=0
7174 printf %s 0123456789 >"conftest.in"
7175 while :
7176 do
7177 cat "conftest.in" "conftest.in" >"conftest.tmp"
7178 mv "conftest.tmp" "conftest.in"
7179 cp "conftest.in" "conftest.nl"
7180 printf "%s\n" '' >> "conftest.nl"
7181 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7183 as_fn_arith $ac_count + 1 && ac_count=$as_val
7184 if test $ac_count -gt ${ac_path_SED_max-0}; then
7185 # Best one so far, save it but keep looking for a better one
7186 ac_cv_path_SED="$ac_path_SED"
7187 ac_path_SED_max=$ac_count
7188 fi
7189 # 10*(2^10) chars as input seems more than enough
7190 test $ac_count -gt 10 && break
7191 done
7192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7193 esac
7194
7195 $ac_path_SED_found && break 3
7196 done
7197 done
7198 done
7199 IFS=$as_save_IFS
7200 if test -z "$ac_cv_path_SED"; then
7201 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7202 fi
7203 else
7204 ac_cv_path_SED=$SED
7205 fi
7206 ;;
7207 esac
7208 fi
7209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7210 printf "%s\n" "$ac_cv_path_SED" >&6; }
7211 SED="$ac_cv_path_SED"
7212 rm -f conftest.sed
7213
7214 test -z "$SED" && SED=sed
7215 Xsed="$SED -e 1s/^X//"
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7228 printf %s "checking for grep that handles long lines and -e... " >&6; }
7229 if test ${ac_cv_path_GREP+y}
7230 then :
7231 printf %s "(cached) " >&6
7232 else case e in #(
7233 e) if test -z "$GREP"; then
7234 ac_path_GREP_found=false
7235 # Loop through the user's path and test for each of PROGNAME-LIST
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7238 do
7239 IFS=$as_save_IFS
7240 case $as_dir in #(((
7241 '') as_dir=./ ;;
7242 */) ;;
7243 *) as_dir=$as_dir/ ;;
7244 esac
7245 for ac_prog in grep ggrep
7246 do
7247 for ac_exec_ext in '' $ac_executable_extensions; do
7248 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7249 as_fn_executable_p "$ac_path_GREP" || continue
7250 # Check for GNU ac_path_GREP and select it if it is found.
7251 # Check for GNU $ac_path_GREP
7252 case `"$ac_path_GREP" --version 2>&1` in #(
7253 *GNU*)
7254 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7255 #(
7256 *)
7257 ac_count=0
7258 printf %s 0123456789 >"conftest.in"
7259 while :
7260 do
7261 cat "conftest.in" "conftest.in" >"conftest.tmp"
7262 mv "conftest.tmp" "conftest.in"
7263 cp "conftest.in" "conftest.nl"
7264 printf "%s\n" 'GREP' >> "conftest.nl"
7265 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7267 as_fn_arith $ac_count + 1 && ac_count=$as_val
7268 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7269 # Best one so far, save it but keep looking for a better one
7270 ac_cv_path_GREP="$ac_path_GREP"
7271 ac_path_GREP_max=$ac_count
7272 fi
7273 # 10*(2^10) chars as input seems more than enough
7274 test $ac_count -gt 10 && break
7275 done
7276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7277 esac
7278
7279 $ac_path_GREP_found && break 3
7280 done
7281 done
7282 done
7283 IFS=$as_save_IFS
7284 if test -z "$ac_cv_path_GREP"; then
7285 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7286 fi
7287 else
7288 ac_cv_path_GREP=$GREP
7289 fi
7290 ;;
7291 esac
7292 fi
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7294 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7295 GREP="$ac_cv_path_GREP"
7296
7297
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7299 printf %s "checking for egrep... " >&6; }
7300 if test ${ac_cv_path_EGREP+y}
7301 then :
7302 printf %s "(cached) " >&6
7303 else case e in #(
7304 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7305 then ac_cv_path_EGREP="$GREP -E"
7306 else
7307 if test -z "$EGREP"; then
7308 ac_path_EGREP_found=false
7309 # Loop through the user's path and test for each of PROGNAME-LIST
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7312 do
7313 IFS=$as_save_IFS
7314 case $as_dir in #(((
7315 '') as_dir=./ ;;
7316 */) ;;
7317 *) as_dir=$as_dir/ ;;
7318 esac
7319 for ac_prog in egrep
7320 do
7321 for ac_exec_ext in '' $ac_executable_extensions; do
7322 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7323 as_fn_executable_p "$ac_path_EGREP" || continue
7324 # Check for GNU ac_path_EGREP and select it if it is found.
7325 # Check for GNU $ac_path_EGREP
7326 case `"$ac_path_EGREP" --version 2>&1` in #(
7327 *GNU*)
7328 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7329 #(
7330 *)
7331 ac_count=0
7332 printf %s 0123456789 >"conftest.in"
7333 while :
7334 do
7335 cat "conftest.in" "conftest.in" >"conftest.tmp"
7336 mv "conftest.tmp" "conftest.in"
7337 cp "conftest.in" "conftest.nl"
7338 printf "%s\n" 'EGREP' >> "conftest.nl"
7339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7341 as_fn_arith $ac_count + 1 && ac_count=$as_val
7342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7343 # Best one so far, save it but keep looking for a better one
7344 ac_cv_path_EGREP="$ac_path_EGREP"
7345 ac_path_EGREP_max=$ac_count
7346 fi
7347 # 10*(2^10) chars as input seems more than enough
7348 test $ac_count -gt 10 && break
7349 done
7350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7351 esac
7352
7353 $ac_path_EGREP_found && break 3
7354 done
7355 done
7356 done
7357 IFS=$as_save_IFS
7358 if test -z "$ac_cv_path_EGREP"; then
7359 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7360 fi
7361 else
7362 ac_cv_path_EGREP=$EGREP
7363 fi
7364
7365 fi ;;
7366 esac
7367 fi
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7369 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7370 EGREP="$ac_cv_path_EGREP"
7371
7372 EGREP_TRADITIONAL=$EGREP
7373 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7374
7375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7376 printf %s "checking for fgrep... " >&6; }
7377 if test ${ac_cv_path_FGREP+y}
7378 then :
7379 printf %s "(cached) " >&6
7380 else case e in #(
7381 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7382 then ac_cv_path_FGREP="$GREP -F"
7383 else
7384 if test -z "$FGREP"; then
7385 ac_path_FGREP_found=false
7386 # Loop through the user's path and test for each of PROGNAME-LIST
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7389 do
7390 IFS=$as_save_IFS
7391 case $as_dir in #(((
7392 '') as_dir=./ ;;
7393 */) ;;
7394 *) as_dir=$as_dir/ ;;
7395 esac
7396 for ac_prog in fgrep
7397 do
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7400 as_fn_executable_p "$ac_path_FGREP" || continue
7401 # Check for GNU ac_path_FGREP and select it if it is found.
7402 # Check for GNU $ac_path_FGREP
7403 case `"$ac_path_FGREP" --version 2>&1` in #(
7404 *GNU*)
7405 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7406 #(
7407 *)
7408 ac_count=0
7409 printf %s 0123456789 >"conftest.in"
7410 while :
7411 do
7412 cat "conftest.in" "conftest.in" >"conftest.tmp"
7413 mv "conftest.tmp" "conftest.in"
7414 cp "conftest.in" "conftest.nl"
7415 printf "%s\n" 'FGREP' >> "conftest.nl"
7416 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7418 as_fn_arith $ac_count + 1 && ac_count=$as_val
7419 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7420 # Best one so far, save it but keep looking for a better one
7421 ac_cv_path_FGREP="$ac_path_FGREP"
7422 ac_path_FGREP_max=$ac_count
7423 fi
7424 # 10*(2^10) chars as input seems more than enough
7425 test $ac_count -gt 10 && break
7426 done
7427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7428 esac
7429
7430 $ac_path_FGREP_found && break 3
7431 done
7432 done
7433 done
7434 IFS=$as_save_IFS
7435 if test -z "$ac_cv_path_FGREP"; then
7436 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7437 fi
7438 else
7439 ac_cv_path_FGREP=$FGREP
7440 fi
7441
7442 fi ;;
7443 esac
7444 fi
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7446 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7447 FGREP="$ac_cv_path_FGREP"
7448
7449
7450 test -z "$GREP" && GREP=grep
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470 # Check whether --with-gnu-ld was given.
7471 if test ${with_gnu_ld+y}
7472 then :
7473 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7474 else case e in #(
7475 e) with_gnu_ld=no ;;
7476 esac
7477 fi
7478
7479 ac_prog=ld
7480 if test yes = "$GCC"; then
7481 # Check if gcc -print-prog-name=ld gives a path.
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7483 printf %s "checking for ld used by $CC... " >&6; }
7484 case $host in
7485 *-*-mingw* | *-*-windows*)
7486 # gcc leaves a trailing carriage return, which upsets mingw
7487 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7488 *)
7489 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7490 esac
7491 case $ac_prog in
7492 # Accept absolute paths.
7493 [\\/]* | ?:[\\/]*)
7494 re_direlt='/[^/][^/]*/\.\./'
7495 # Canonicalize the pathname of ld
7496 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7497 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7498 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7499 done
7500 test -z "$LD" && LD=$ac_prog
7501 ;;
7502 "")
7503 # If it fails, then pretend we aren't using GCC.
7504 ac_prog=ld
7505 ;;
7506 *)
7507 # If it is relative, then search for the first ld in PATH.
7508 with_gnu_ld=unknown
7509 ;;
7510 esac
7511 elif test yes = "$with_gnu_ld"; then
7512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7513 printf %s "checking for GNU ld... " >&6; }
7514 else
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7516 printf %s "checking for non-GNU ld... " >&6; }
7517 fi
7518 if test ${lt_cv_path_LD+y}
7519 then :
7520 printf %s "(cached) " >&6
7521 else case e in #(
7522 e) if test -z "$LD"; then
7523 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7524 for ac_dir in $PATH; do
7525 IFS=$lt_save_ifs
7526 test -z "$ac_dir" && ac_dir=.
7527 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7528 lt_cv_path_LD=$ac_dir/$ac_prog
7529 # Check to see if the program is GNU ld. I'd rather use --version,
7530 # but apparently some variants of GNU ld only accept -v.
7531 # Break only if it was the GNU/non-GNU ld that we prefer.
7532 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7533 *GNU* | *'with BFD'*)
7534 test no != "$with_gnu_ld" && break
7535 ;;
7536 *)
7537 test yes != "$with_gnu_ld" && break
7538 ;;
7539 esac
7540 fi
7541 done
7542 IFS=$lt_save_ifs
7543 else
7544 lt_cv_path_LD=$LD # Let the user override the test with a path.
7545 fi ;;
7546 esac
7547 fi
7548
7549 LD=$lt_cv_path_LD
7550 if test -n "$LD"; then
7551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7552 printf "%s\n" "$LD" >&6; }
7553 else
7554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 printf "%s\n" "no" >&6; }
7556 fi
7557 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7559 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7560 if test ${lt_cv_prog_gnu_ld+y}
7561 then :
7562 printf %s "(cached) " >&6
7563 else case e in #(
7564 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7565 case `$LD -v 2>&1 </dev/null` in
7566 *GNU* | *'with BFD'*)
7567 lt_cv_prog_gnu_ld=yes
7568 ;;
7569 *)
7570 lt_cv_prog_gnu_ld=no
7571 ;;
7572 esac ;;
7573 esac
7574 fi
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7576 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7577 with_gnu_ld=$lt_cv_prog_gnu_ld
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7588 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7589 if test ${lt_cv_path_NM+y}
7590 then :
7591 printf %s "(cached) " >&6
7592 else case e in #(
7593 e) if test -n "$NM"; then
7594 # Let the user override the test.
7595 lt_cv_path_NM=$NM
7596 else
7597 lt_nm_to_check=${ac_tool_prefix}nm
7598 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7599 lt_nm_to_check="$lt_nm_to_check nm"
7600 fi
7601 for lt_tmp_nm in $lt_nm_to_check; do
7602 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7603 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7604 IFS=$lt_save_ifs
7605 test -z "$ac_dir" && ac_dir=.
7606 tmp_nm=$ac_dir/$lt_tmp_nm
7607 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7608 # Check to see if the nm accepts a BSD-compat flag.
7609 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7610 # nm: unknown option "B" ignored
7611 # Tru64's nm complains that /dev/null is an invalid object file
7612 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7613 case $build_os in
7614 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7615 *) lt_bad_file=/dev/null ;;
7616 esac
7617 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7618 *$lt_bad_file* | *'Invalid file or object type'*)
7619 lt_cv_path_NM="$tmp_nm -B"
7620 break 2
7621 ;;
7622 *)
7623 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7624 */dev/null*)
7625 lt_cv_path_NM="$tmp_nm -p"
7626 break 2
7627 ;;
7628 *)
7629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7630 continue # so that we can try to find one that supports BSD flags
7631 ;;
7632 esac
7633 ;;
7634 esac
7635 fi
7636 done
7637 IFS=$lt_save_ifs
7638 done
7639 : ${lt_cv_path_NM=no}
7640 fi ;;
7641 esac
7642 fi
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7644 printf "%s\n" "$lt_cv_path_NM" >&6; }
7645 if test no != "$lt_cv_path_NM"; then
7646 NM=$lt_cv_path_NM
7647 else
7648 # Didn't find any BSD compatible name lister, look for dumpbin.
7649 if test -n "$DUMPBIN"; then :
7650 # Let the user override the test.
7651 else
7652 if test -n "$ac_tool_prefix"; then
7653 for ac_prog in dumpbin "link -dump"
7654 do
7655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 printf %s "checking for $ac_word... " >&6; }
7659 if test ${ac_cv_prog_DUMPBIN+y}
7660 then :
7661 printf %s "(cached) " >&6
7662 else case e in #(
7663 e) if test -n "$DUMPBIN"; then
7664 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669 IFS=$as_save_IFS
7670 case $as_dir in #(((
7671 '') as_dir=./ ;;
7672 */) ;;
7673 *) as_dir=$as_dir/ ;;
7674 esac
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7677 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7679 break 2
7680 fi
7681 done
7682 done
7683 IFS=$as_save_IFS
7684
7685 fi ;;
7686 esac
7687 fi
7688 DUMPBIN=$ac_cv_prog_DUMPBIN
7689 if test -n "$DUMPBIN"; then
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7691 printf "%s\n" "$DUMPBIN" >&6; }
7692 else
7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 printf "%s\n" "no" >&6; }
7695 fi
7696
7697
7698 test -n "$DUMPBIN" && break
7699 done
7700 fi
7701 if test -z "$DUMPBIN"; then
7702 ac_ct_DUMPBIN=$DUMPBIN
7703 for ac_prog in dumpbin "link -dump"
7704 do
7705 # Extract the first word of "$ac_prog", so it can be a program name with args.
7706 set dummy $ac_prog; ac_word=$2
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7708 printf %s "checking for $ac_word... " >&6; }
7709 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7710 then :
7711 printf %s "(cached) " >&6
7712 else case e in #(
7713 e) if test -n "$ac_ct_DUMPBIN"; then
7714 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719 IFS=$as_save_IFS
7720 case $as_dir in #(((
7721 '') as_dir=./ ;;
7722 */) ;;
7723 *) as_dir=$as_dir/ ;;
7724 esac
7725 for ac_exec_ext in '' $ac_executable_extensions; do
7726 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7727 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7729 break 2
7730 fi
7731 done
7732 done
7733 IFS=$as_save_IFS
7734
7735 fi ;;
7736 esac
7737 fi
7738 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7739 if test -n "$ac_ct_DUMPBIN"; then
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7741 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7742 else
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 printf "%s\n" "no" >&6; }
7745 fi
7746
7747
7748 test -n "$ac_ct_DUMPBIN" && break
7749 done
7750
7751 if test "x$ac_ct_DUMPBIN" = x; then
7752 DUMPBIN=":"
7753 else
7754 case $cross_compiling:$ac_tool_warned in
7755 yes:)
7756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7757 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7758 ac_tool_warned=yes ;;
7759 esac
7760 DUMPBIN=$ac_ct_DUMPBIN
7761 fi
7762 fi
7763
7764 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7765 *COFF*)
7766 DUMPBIN="$DUMPBIN -symbols -headers"
7767 ;;
7768 *)
7769 DUMPBIN=:
7770 ;;
7771 esac
7772 fi
7773
7774 if test : != "$DUMPBIN"; then
7775 NM=$DUMPBIN
7776 fi
7777 fi
7778 test -z "$NM" && NM=nm
7779
7780
7781
7782
7783
7784
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7786 printf %s "checking the name lister ($NM) interface... " >&6; }
7787 if test ${lt_cv_nm_interface+y}
7788 then :
7789 printf %s "(cached) " >&6
7790 else case e in #(
7791 e) lt_cv_nm_interface="BSD nm"
7792 echo "int some_variable = 0;" > conftest.$ac_ext
7793 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7794 (eval "$ac_compile" 2>conftest.err)
7795 cat conftest.err >&5
7796 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7797 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7798 cat conftest.err >&5
7799 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7800 cat conftest.out >&5
7801 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7802 lt_cv_nm_interface="MS dumpbin"
7803 fi
7804 rm -f conftest* ;;
7805 esac
7806 fi
7807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7808 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7809
7810 # find the maximum length of command line arguments
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7812 printf %s "checking the maximum length of command line arguments... " >&6; }
7813 if test ${lt_cv_sys_max_cmd_len+y}
7814 then :
7815 printf %s "(cached) " >&6
7816 else case e in #(
7817 e) i=0
7818 teststring=ABCD
7819
7820 case $build_os in
7821 msdosdjgpp*)
7822 # On DJGPP, this test can blow up pretty badly due to problems in libc
7823 # (any single argument exceeding 2000 bytes causes a buffer overrun
7824 # during glob expansion). Even if it were fixed, the result of this
7825 # check would be larger than it should be.
7826 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7827 ;;
7828
7829 gnu* | ironclad*)
7830 # Under GNU Hurd and Ironclad, this test is not required because there
7831 # is no limit to the length of command line arguments.
7832 # Libtool will interpret -1 as no limit whatsoever
7833 lt_cv_sys_max_cmd_len=-1;
7834 ;;
7835
7836 cygwin* | mingw* | windows* | cegcc*)
7837 # On Win9x/ME, this test blows up -- it succeeds, but takes
7838 # about 5 minutes as the teststring grows exponentially.
7839 # Worse, since 9x/ME are not pre-emptively multitasking,
7840 # you end up with a "frozen" computer, even though with patience
7841 # the test eventually succeeds (with a max line length of 256k).
7842 # Instead, let's just punt: use the minimum linelength reported by
7843 # all of the supported platforms: 8192 (on NT/2K/XP).
7844 lt_cv_sys_max_cmd_len=8192;
7845 ;;
7846
7847 mint*)
7848 # On MiNT this can take a long time and run out of memory.
7849 lt_cv_sys_max_cmd_len=8192;
7850 ;;
7851
7852 amigaos*)
7853 # On AmigaOS with pdksh, this test takes hours, literally.
7854 # So we just punt and use a minimum line length of 8192.
7855 lt_cv_sys_max_cmd_len=8192;
7856 ;;
7857
7858 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7859 # This has been around since 386BSD, at least. Likely further.
7860 if test -x /sbin/sysctl; then
7861 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7862 elif test -x /usr/sbin/sysctl; then
7863 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7864 else
7865 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7866 fi
7867 # And add a safety zone
7868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7869 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7870 ;;
7871
7872 interix*)
7873 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7874 lt_cv_sys_max_cmd_len=196608
7875 ;;
7876
7877 os2*)
7878 # The test takes a long time on OS/2.
7879 lt_cv_sys_max_cmd_len=8192
7880 ;;
7881
7882 osf*)
7883 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7884 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7885 # nice to cause kernel panics so lets avoid the loop below.
7886 # First set a reasonable default.
7887 lt_cv_sys_max_cmd_len=16384
7888 #
7889 if test -x /sbin/sysconfig; then
7890 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7891 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7892 esac
7893 fi
7894 ;;
7895 sco3.2v5*)
7896 lt_cv_sys_max_cmd_len=102400
7897 ;;
7898 sysv5* | sco5v6* | sysv4.2uw2*)
7899 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7900 if test -n "$kargmax"; then
7901 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7902 else
7903 lt_cv_sys_max_cmd_len=32768
7904 fi
7905 ;;
7906 *)
7907 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7908 if test -n "$lt_cv_sys_max_cmd_len" && \
7909 test undefined != "$lt_cv_sys_max_cmd_len"; then
7910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7912 else
7913 # Make teststring a little bigger before we do anything with it.
7914 # a 1K string should be a reasonable start.
7915 for i in 1 2 3 4 5 6 7 8; do
7916 teststring=$teststring$teststring
7917 done
7918 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7919 # If test is not a shell built-in, we'll probably end up computing a
7920 # maximum length that is only half of the actual maximum length, but
7921 # we can't tell.
7922 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7923 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7924 test 17 != "$i" # 1/2 MB should be enough
7925 do
7926 i=`expr $i + 1`
7927 teststring=$teststring$teststring
7928 done
7929 # Only check the string length outside the loop.
7930 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7931 teststring=
7932 # Add a significant safety factor because C++ compilers can tack on
7933 # massive amounts of additional arguments before passing them to the
7934 # linker. It appears as though 1/2 is a usable value.
7935 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7936 fi
7937 ;;
7938 esac
7939 ;;
7940 esac
7941 fi
7942
7943 if test -n "$lt_cv_sys_max_cmd_len"; then
7944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7945 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
7946 else
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7948 printf "%s\n" "none" >&6; }
7949 fi
7950 max_cmd_len=$lt_cv_sys_max_cmd_len
7951
7952
7953
7954
7955
7956
7957 : ${CP="cp -f"}
7958 : ${MV="mv -f"}
7959 : ${RM="rm -f"}
7960
7961 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7962 lt_unset=unset
7963 else
7964 lt_unset=false
7965 fi
7966
7967
7968
7969
7970
7971 # test EBCDIC or ASCII
7972 case `echo X|tr X '\101'` in
7973 A) # ASCII based system
7974 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7975 lt_SP2NL='tr \040 \012'
7976 lt_NL2SP='tr \015\012 \040\040'
7977 ;;
7978 *) # EBCDIC based system
7979 lt_SP2NL='tr \100 \n'
7980 lt_NL2SP='tr \r\n \100\100'
7981 ;;
7982 esac
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7993 printf %s "checking how to convert $build file names to $host format... " >&6; }
7994 if test ${lt_cv_to_host_file_cmd+y}
7995 then :
7996 printf %s "(cached) " >&6
7997 else case e in #(
7998 e) case $host in
7999 *-*-mingw* )
8000 case $build in
8001 *-*-mingw* | *-*-windows* ) # actually msys
8002 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8003 ;;
8004 *-*-cygwin* )
8005 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8006 ;;
8007 * ) # otherwise, assume *nix
8008 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8009 ;;
8010 esac
8011 ;;
8012 *-*-cygwin* )
8013 case $build in
8014 *-*-mingw* | *-*-windows* ) # actually msys
8015 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8016 ;;
8017 *-*-cygwin* )
8018 lt_cv_to_host_file_cmd=func_convert_file_noop
8019 ;;
8020 * ) # otherwise, assume *nix
8021 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8022 ;;
8023 esac
8024 ;;
8025 * ) # unhandled hosts (and "normal" native builds)
8026 lt_cv_to_host_file_cmd=func_convert_file_noop
8027 ;;
8028 esac
8029 ;;
8030 esac
8031 fi
8032
8033 to_host_file_cmd=$lt_cv_to_host_file_cmd
8034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8035 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8036
8037
8038
8039
8040
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8042 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8043 if test ${lt_cv_to_tool_file_cmd+y}
8044 then :
8045 printf %s "(cached) " >&6
8046 else case e in #(
8047 e) #assume ordinary cross tools, or native build.
8048 lt_cv_to_tool_file_cmd=func_convert_file_noop
8049 case $host in
8050 *-*-mingw* | *-*-windows* )
8051 case $build in
8052 *-*-mingw* | *-*-windows* ) # actually msys
8053 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8054 ;;
8055 esac
8056 ;;
8057 esac
8058 ;;
8059 esac
8060 fi
8061
8062 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8064 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8065
8066
8067
8068
8069
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8071 printf %s "checking for $LD option to reload object files... " >&6; }
8072 if test ${lt_cv_ld_reload_flag+y}
8073 then :
8074 printf %s "(cached) " >&6
8075 else case e in #(
8076 e) lt_cv_ld_reload_flag='-r' ;;
8077 esac
8078 fi
8079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8080 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8081 reload_flag=$lt_cv_ld_reload_flag
8082 case $reload_flag in
8083 "" | " "*) ;;
8084 *) reload_flag=" $reload_flag" ;;
8085 esac
8086 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8087 case $host_os in
8088 cygwin* | mingw* | windows* | pw32* | cegcc*)
8089 if test yes != "$GCC"; then
8090 reload_cmds=false
8091 fi
8092 ;;
8093 darwin*)
8094 if test yes = "$GCC"; then
8095 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8096 else
8097 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8098 fi
8099 ;;
8100 esac
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110 # Extract the first word of "file", so it can be a program name with args.
8111 set dummy file; ac_word=$2
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 printf %s "checking for $ac_word... " >&6; }
8114 if test ${ac_cv_prog_FILECMD+y}
8115 then :
8116 printf %s "(cached) " >&6
8117 else case e in #(
8118 e) if test -n "$FILECMD"; then
8119 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 case $as_dir in #(((
8126 '') as_dir=./ ;;
8127 */) ;;
8128 *) as_dir=$as_dir/ ;;
8129 esac
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_FILECMD="file"
8133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
8141 fi ;;
8142 esac
8143 fi
8144 FILECMD=$ac_cv_prog_FILECMD
8145 if test -n "$FILECMD"; then
8146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8147 printf "%s\n" "$FILECMD" >&6; }
8148 else
8149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8150 printf "%s\n" "no" >&6; }
8151 fi
8152
8153
8154
8155
8156
8157
8158
8159
8160 if test -n "$ac_tool_prefix"; then
8161 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8162 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 printf %s "checking for $ac_word... " >&6; }
8165 if test ${ac_cv_prog_OBJDUMP+y}
8166 then :
8167 printf %s "(cached) " >&6
8168 else case e in #(
8169 e) if test -n "$OBJDUMP"; then
8170 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175 IFS=$as_save_IFS
8176 case $as_dir in #(((
8177 '') as_dir=./ ;;
8178 */) ;;
8179 *) as_dir=$as_dir/ ;;
8180 esac
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8183 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8184 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8185 break 2
8186 fi
8187 done
8188 done
8189 IFS=$as_save_IFS
8190
8191 fi ;;
8192 esac
8193 fi
8194 OBJDUMP=$ac_cv_prog_OBJDUMP
8195 if test -n "$OBJDUMP"; then
8196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8197 printf "%s\n" "$OBJDUMP" >&6; }
8198 else
8199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 printf "%s\n" "no" >&6; }
8201 fi
8202
8203
8204 fi
8205 if test -z "$ac_cv_prog_OBJDUMP"; then
8206 ac_ct_OBJDUMP=$OBJDUMP
8207 # Extract the first word of "objdump", so it can be a program name with args.
8208 set dummy objdump; ac_word=$2
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210 printf %s "checking for $ac_word... " >&6; }
8211 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8212 then :
8213 printf %s "(cached) " >&6
8214 else case e in #(
8215 e) if test -n "$ac_ct_OBJDUMP"; then
8216 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8220 do
8221 IFS=$as_save_IFS
8222 case $as_dir in #(((
8223 '') as_dir=./ ;;
8224 */) ;;
8225 *) as_dir=$as_dir/ ;;
8226 esac
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8229 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8231 break 2
8232 fi
8233 done
8234 done
8235 IFS=$as_save_IFS
8236
8237 fi ;;
8238 esac
8239 fi
8240 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8241 if test -n "$ac_ct_OBJDUMP"; then
8242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8243 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8244 else
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 printf "%s\n" "no" >&6; }
8247 fi
8248
8249 if test "x$ac_ct_OBJDUMP" = x; then
8250 OBJDUMP="false"
8251 else
8252 case $cross_compiling:$ac_tool_warned in
8253 yes:)
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8255 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8256 ac_tool_warned=yes ;;
8257 esac
8258 OBJDUMP=$ac_ct_OBJDUMP
8259 fi
8260 else
8261 OBJDUMP="$ac_cv_prog_OBJDUMP"
8262 fi
8263
8264 test -z "$OBJDUMP" && OBJDUMP=objdump
8265
8266
8267
8268
8269
8270
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8272 printf %s "checking how to recognize dependent libraries... " >&6; }
8273 if test ${lt_cv_deplibs_check_method+y}
8274 then :
8275 printf %s "(cached) " >&6
8276 else case e in #(
8277 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8278 lt_cv_file_magic_test_file=
8279 lt_cv_deplibs_check_method='unknown'
8280 # Need to set the preceding variable on all platforms that support
8281 # interlibrary dependencies.
8282 # 'none' -- dependencies not supported.
8283 # 'unknown' -- same as none, but documents that we really don't know.
8284 # 'pass_all' -- all dependencies passed with no checks.
8285 # 'file_magic [[regex]]' -- check by looking for files in library path
8286 # that responds to the $file_magic_cmd with a given extended regex.
8287 # If you have 'file' or equivalent on your system and you're not sure
8288 # whether 'pass_all' will *always* work, you probably want this one.
8289
8290 case $host_os in
8291 aix[4-9]*)
8292 lt_cv_deplibs_check_method=pass_all
8293 ;;
8294
8295 beos*)
8296 lt_cv_deplibs_check_method=pass_all
8297 ;;
8298
8299 bsdi[45]*)
8300 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8301 lt_cv_file_magic_cmd='$FILECMD -L'
8302 lt_cv_file_magic_test_file=/shlib/libc.so
8303 ;;
8304
8305 cygwin*)
8306 # func_win32_libid is a shell function defined in ltmain.sh
8307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8308 lt_cv_file_magic_cmd='func_win32_libid'
8309 ;;
8310
8311 mingw* | windows* | pw32*)
8312 # Base MSYS/MinGW do not provide the 'file' command needed by
8313 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8314 # unless we find 'file', for example because we are cross-compiling.
8315 if ( file / ) >/dev/null 2>&1; then
8316 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8317 lt_cv_file_magic_cmd='func_win32_libid'
8318 else
8319 # Keep this pattern in sync with the one in func_win32_libid.
8320 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8321 lt_cv_file_magic_cmd='$OBJDUMP -f'
8322 fi
8323 ;;
8324
8325 cegcc*)
8326 # use the weaker test based on 'objdump'. See mingw*.
8327 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8328 lt_cv_file_magic_cmd='$OBJDUMP -f'
8329 ;;
8330
8331 darwin* | rhapsody*)
8332 lt_cv_deplibs_check_method=pass_all
8333 ;;
8334
8335 freebsd* | dragonfly* | midnightbsd*)
8336 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8337 case $host_cpu in
8338 i*86 )
8339 # Not sure whether the presence of OpenBSD here was a mistake.
8340 # Let's accept both of them until this is cleared up.
8341 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8342 lt_cv_file_magic_cmd=$FILECMD
8343 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8344 ;;
8345 esac
8346 else
8347 lt_cv_deplibs_check_method=pass_all
8348 fi
8349 ;;
8350
8351 haiku*)
8352 lt_cv_deplibs_check_method=pass_all
8353 ;;
8354
8355 hpux10.20* | hpux11*)
8356 lt_cv_file_magic_cmd=$FILECMD
8357 case $host_cpu in
8358 ia64*)
8359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8360 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8361 ;;
8362 hppa*64*)
8363 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]'
8364 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8365 ;;
8366 *)
8367 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8368 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8369 ;;
8370 esac
8371 ;;
8372
8373 interix[3-9]*)
8374 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8375 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8376 ;;
8377
8378 irix5* | irix6* | nonstopux*)
8379 case $LD in
8380 *-32|*"-32 ") libmagic=32-bit;;
8381 *-n32|*"-n32 ") libmagic=N32;;
8382 *-64|*"-64 ") libmagic=64-bit;;
8383 *) libmagic=never-match;;
8384 esac
8385 lt_cv_deplibs_check_method=pass_all
8386 ;;
8387
8388 # This must be glibc/ELF.
8389 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8390 lt_cv_deplibs_check_method=pass_all
8391 ;;
8392
8393 *-mlibc)
8394 lt_cv_deplibs_check_method=pass_all
8395 ;;
8396
8397 netbsd* | netbsdelf*-gnu)
8398 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8400 else
8401 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8402 fi
8403 ;;
8404
8405 newos6*)
8406 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8407 lt_cv_file_magic_cmd=$FILECMD
8408 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8409 ;;
8410
8411 *nto* | *qnx*)
8412 lt_cv_deplibs_check_method=pass_all
8413 ;;
8414
8415 openbsd*)
8416 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8418 else
8419 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8420 fi
8421 ;;
8422
8423 osf3* | osf4* | osf5*)
8424 lt_cv_deplibs_check_method=pass_all
8425 ;;
8426
8427 rdos*)
8428 lt_cv_deplibs_check_method=pass_all
8429 ;;
8430
8431 serenity*)
8432 lt_cv_deplibs_check_method=pass_all
8433 ;;
8434
8435 solaris*)
8436 lt_cv_deplibs_check_method=pass_all
8437 ;;
8438
8439 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8440 lt_cv_deplibs_check_method=pass_all
8441 ;;
8442
8443 sysv4 | sysv4.3*)
8444 case $host_vendor in
8445 motorola)
8446 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]'
8447 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8448 ;;
8449 ncr)
8450 lt_cv_deplibs_check_method=pass_all
8451 ;;
8452 sequent)
8453 lt_cv_file_magic_cmd='/bin/file'
8454 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8455 ;;
8456 sni)
8457 lt_cv_file_magic_cmd='/bin/file'
8458 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8459 lt_cv_file_magic_test_file=/lib/libc.so
8460 ;;
8461 siemens)
8462 lt_cv_deplibs_check_method=pass_all
8463 ;;
8464 pc)
8465 lt_cv_deplibs_check_method=pass_all
8466 ;;
8467 esac
8468 ;;
8469
8470 tpf*)
8471 lt_cv_deplibs_check_method=pass_all
8472 ;;
8473 os2*)
8474 lt_cv_deplibs_check_method=pass_all
8475 ;;
8476 esac
8477 ;;
8478 esac
8479 fi
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8481 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8482
8483 file_magic_glob=
8484 want_nocaseglob=no
8485 if test "$build" = "$host"; then
8486 case $host_os in
8487 mingw* | windows* | pw32*)
8488 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8489 want_nocaseglob=yes
8490 else
8491 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8492 fi
8493 ;;
8494 esac
8495 fi
8496
8497 file_magic_cmd=$lt_cv_file_magic_cmd
8498 deplibs_check_method=$lt_cv_deplibs_check_method
8499 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522 if test -n "$ac_tool_prefix"; then
8523 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8524 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 printf %s "checking for $ac_word... " >&6; }
8527 if test ${ac_cv_prog_DLLTOOL+y}
8528 then :
8529 printf %s "(cached) " >&6
8530 else case e in #(
8531 e) if test -n "$DLLTOOL"; then
8532 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8536 do
8537 IFS=$as_save_IFS
8538 case $as_dir in #(((
8539 '') as_dir=./ ;;
8540 */) ;;
8541 *) as_dir=$as_dir/ ;;
8542 esac
8543 for ac_exec_ext in '' $ac_executable_extensions; do
8544 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8545 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8546 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8547 break 2
8548 fi
8549 done
8550 done
8551 IFS=$as_save_IFS
8552
8553 fi ;;
8554 esac
8555 fi
8556 DLLTOOL=$ac_cv_prog_DLLTOOL
8557 if test -n "$DLLTOOL"; then
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8559 printf "%s\n" "$DLLTOOL" >&6; }
8560 else
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8562 printf "%s\n" "no" >&6; }
8563 fi
8564
8565
8566 fi
8567 if test -z "$ac_cv_prog_DLLTOOL"; then
8568 ac_ct_DLLTOOL=$DLLTOOL
8569 # Extract the first word of "dlltool", so it can be a program name with args.
8570 set dummy dlltool; ac_word=$2
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8572 printf %s "checking for $ac_word... " >&6; }
8573 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8574 then :
8575 printf %s "(cached) " >&6
8576 else case e in #(
8577 e) if test -n "$ac_ct_DLLTOOL"; then
8578 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8579 else
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8582 do
8583 IFS=$as_save_IFS
8584 case $as_dir in #(((
8585 '') as_dir=./ ;;
8586 */) ;;
8587 *) as_dir=$as_dir/ ;;
8588 esac
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8591 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8593 break 2
8594 fi
8595 done
8596 done
8597 IFS=$as_save_IFS
8598
8599 fi ;;
8600 esac
8601 fi
8602 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8603 if test -n "$ac_ct_DLLTOOL"; then
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8605 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8606 else
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8608 printf "%s\n" "no" >&6; }
8609 fi
8610
8611 if test "x$ac_ct_DLLTOOL" = x; then
8612 DLLTOOL="false"
8613 else
8614 case $cross_compiling:$ac_tool_warned in
8615 yes:)
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8617 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8618 ac_tool_warned=yes ;;
8619 esac
8620 DLLTOOL=$ac_ct_DLLTOOL
8621 fi
8622 else
8623 DLLTOOL="$ac_cv_prog_DLLTOOL"
8624 fi
8625
8626 test -z "$DLLTOOL" && DLLTOOL=dlltool
8627
8628
8629
8630
8631
8632
8633
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8635 printf %s "checking how to associate runtime and link libraries... " >&6; }
8636 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8637 then :
8638 printf %s "(cached) " >&6
8639 else case e in #(
8640 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8641
8642 case $host_os in
8643 cygwin* | mingw* | windows* | pw32* | cegcc*)
8644 # two different shell functions defined in ltmain.sh;
8645 # decide which one to use based on capabilities of $DLLTOOL
8646 case `$DLLTOOL --help 2>&1` in
8647 *--identify-strict*)
8648 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8649 ;;
8650 *)
8651 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8652 ;;
8653 esac
8654 ;;
8655 *)
8656 # fallback: assume linklib IS sharedlib
8657 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8658 ;;
8659 esac
8660 ;;
8661 esac
8662 fi
8663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8664 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8665 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8666 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8667
8668
8669
8670
8671
8672
8673
8674
8675 if test -n "$ac_tool_prefix"; then
8676 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 printf %s "checking for $ac_word... " >&6; }
8680 if test ${ac_cv_prog_RANLIB+y}
8681 then :
8682 printf %s "(cached) " >&6
8683 else case e in #(
8684 e) if test -n "$RANLIB"; then
8685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690 IFS=$as_save_IFS
8691 case $as_dir in #(((
8692 '') as_dir=./ ;;
8693 */) ;;
8694 *) as_dir=$as_dir/ ;;
8695 esac
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8699 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8700 break 2
8701 fi
8702 done
8703 done
8704 IFS=$as_save_IFS
8705
8706 fi ;;
8707 esac
8708 fi
8709 RANLIB=$ac_cv_prog_RANLIB
8710 if test -n "$RANLIB"; then
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8712 printf "%s\n" "$RANLIB" >&6; }
8713 else
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715 printf "%s\n" "no" >&6; }
8716 fi
8717
8718
8719 fi
8720 if test -z "$ac_cv_prog_RANLIB"; then
8721 ac_ct_RANLIB=$RANLIB
8722 # Extract the first word of "ranlib", so it can be a program name with args.
8723 set dummy ranlib; ac_word=$2
8724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8725 printf %s "checking for $ac_word... " >&6; }
8726 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8727 then :
8728 printf %s "(cached) " >&6
8729 else case e in #(
8730 e) if test -n "$ac_ct_RANLIB"; then
8731 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8732 else
8733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734 for as_dir in $PATH
8735 do
8736 IFS=$as_save_IFS
8737 case $as_dir in #(((
8738 '') as_dir=./ ;;
8739 */) ;;
8740 *) as_dir=$as_dir/ ;;
8741 esac
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8744 ac_cv_prog_ac_ct_RANLIB="ranlib"
8745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8746 break 2
8747 fi
8748 done
8749 done
8750 IFS=$as_save_IFS
8751
8752 fi ;;
8753 esac
8754 fi
8755 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8756 if test -n "$ac_ct_RANLIB"; then
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8758 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8759 else
8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8761 printf "%s\n" "no" >&6; }
8762 fi
8763
8764 if test "x$ac_ct_RANLIB" = x; then
8765 RANLIB=":"
8766 else
8767 case $cross_compiling:$ac_tool_warned in
8768 yes:)
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8770 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8771 ac_tool_warned=yes ;;
8772 esac
8773 RANLIB=$ac_ct_RANLIB
8774 fi
8775 else
8776 RANLIB="$ac_cv_prog_RANLIB"
8777 fi
8778
8779 if test -n "$ac_tool_prefix"; then
8780 for ac_prog in ar
8781 do
8782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 printf %s "checking for $ac_word... " >&6; }
8786 if test ${ac_cv_prog_AR+y}
8787 then :
8788 printf %s "(cached) " >&6
8789 else case e in #(
8790 e) if test -n "$AR"; then
8791 ac_cv_prog_AR="$AR" # Let the user override the test.
8792 else
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in $PATH
8795 do
8796 IFS=$as_save_IFS
8797 case $as_dir in #(((
8798 '') as_dir=./ ;;
8799 */) ;;
8800 *) as_dir=$as_dir/ ;;
8801 esac
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8804 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8806 break 2
8807 fi
8808 done
8809 done
8810 IFS=$as_save_IFS
8811
8812 fi ;;
8813 esac
8814 fi
8815 AR=$ac_cv_prog_AR
8816 if test -n "$AR"; then
8817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8818 printf "%s\n" "$AR" >&6; }
8819 else
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 printf "%s\n" "no" >&6; }
8822 fi
8823
8824
8825 test -n "$AR" && break
8826 done
8827 fi
8828 if test -z "$AR"; then
8829 ac_ct_AR=$AR
8830 for ac_prog in ar
8831 do
8832 # Extract the first word of "$ac_prog", so it can be a program name with args.
8833 set dummy $ac_prog; ac_word=$2
8834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 printf %s "checking for $ac_word... " >&6; }
8836 if test ${ac_cv_prog_ac_ct_AR+y}
8837 then :
8838 printf %s "(cached) " >&6
8839 else case e in #(
8840 e) if test -n "$ac_ct_AR"; then
8841 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8842 else
8843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8844 for as_dir in $PATH
8845 do
8846 IFS=$as_save_IFS
8847 case $as_dir in #(((
8848 '') as_dir=./ ;;
8849 */) ;;
8850 *) as_dir=$as_dir/ ;;
8851 esac
8852 for ac_exec_ext in '' $ac_executable_extensions; do
8853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8854 ac_cv_prog_ac_ct_AR="$ac_prog"
8855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8856 break 2
8857 fi
8858 done
8859 done
8860 IFS=$as_save_IFS
8861
8862 fi ;;
8863 esac
8864 fi
8865 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8866 if test -n "$ac_ct_AR"; then
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8868 printf "%s\n" "$ac_ct_AR" >&6; }
8869 else
8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 printf "%s\n" "no" >&6; }
8872 fi
8873
8874
8875 test -n "$ac_ct_AR" && break
8876 done
8877
8878 if test "x$ac_ct_AR" = x; then
8879 AR="false"
8880 else
8881 case $cross_compiling:$ac_tool_warned in
8882 yes:)
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8884 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8885 ac_tool_warned=yes ;;
8886 esac
8887 AR=$ac_ct_AR
8888 fi
8889 fi
8890
8891 : ${AR=ar}
8892
8893
8894
8895
8896
8897
8898 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8899 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8900 # higher priority because that's what people were doing historically (setting
8901 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8902 # variable obsoleted/removed.
8903
8904 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8905 lt_ar_flags=$AR_FLAGS
8906
8907
8908
8909
8910
8911
8912 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8913 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
8914
8915
8916
8917
8918
8919
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8921 printf %s "checking for archiver @FILE support... " >&6; }
8922 if test ${lt_cv_ar_at_file+y}
8923 then :
8924 printf %s "(cached) " >&6
8925 else case e in #(
8926 e) lt_cv_ar_at_file=no
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929
8930 int
8931 main (void)
8932 {
8933
8934 ;
8935 return 0;
8936 }
8937 _ACEOF
8938 if ac_fn_cxx_try_compile "$LINENO"
8939 then :
8940 echo conftest.$ac_objext > conftest.lst
8941 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8943 (eval $lt_ar_try) 2>&5
8944 ac_status=$?
8945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8946 test $ac_status = 0; }
8947 if test 0 -eq "$ac_status"; then
8948 # Ensure the archiver fails upon bogus file names.
8949 rm -f conftest.$ac_objext libconftest.a
8950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8951 (eval $lt_ar_try) 2>&5
8952 ac_status=$?
8953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8954 test $ac_status = 0; }
8955 if test 0 -ne "$ac_status"; then
8956 lt_cv_ar_at_file=@
8957 fi
8958 fi
8959 rm -f conftest.* libconftest.a
8960
8961 fi
8962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8963 ;;
8964 esac
8965 fi
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8967 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
8968
8969 if test no = "$lt_cv_ar_at_file"; then
8970 archiver_list_spec=
8971 else
8972 archiver_list_spec=$lt_cv_ar_at_file
8973 fi
8974
8975
8976
8977
8978
8979
8980
8981 if test -n "$ac_tool_prefix"; then
8982 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8983 set dummy ${ac_tool_prefix}strip; ac_word=$2
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985 printf %s "checking for $ac_word... " >&6; }
8986 if test ${ac_cv_prog_STRIP+y}
8987 then :
8988 printf %s "(cached) " >&6
8989 else case e in #(
8990 e) if test -n "$STRIP"; then
8991 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8992 else
8993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8994 for as_dir in $PATH
8995 do
8996 IFS=$as_save_IFS
8997 case $as_dir in #(((
8998 '') as_dir=./ ;;
8999 */) ;;
9000 *) as_dir=$as_dir/ ;;
9001 esac
9002 for ac_exec_ext in '' $ac_executable_extensions; do
9003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9006 break 2
9007 fi
9008 done
9009 done
9010 IFS=$as_save_IFS
9011
9012 fi ;;
9013 esac
9014 fi
9015 STRIP=$ac_cv_prog_STRIP
9016 if test -n "$STRIP"; then
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9018 printf "%s\n" "$STRIP" >&6; }
9019 else
9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 printf "%s\n" "no" >&6; }
9022 fi
9023
9024
9025 fi
9026 if test -z "$ac_cv_prog_STRIP"; then
9027 ac_ct_STRIP=$STRIP
9028 # Extract the first word of "strip", so it can be a program name with args.
9029 set dummy strip; ac_word=$2
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031 printf %s "checking for $ac_word... " >&6; }
9032 if test ${ac_cv_prog_ac_ct_STRIP+y}
9033 then :
9034 printf %s "(cached) " >&6
9035 else case e in #(
9036 e) if test -n "$ac_ct_STRIP"; then
9037 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9038 else
9039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9040 for as_dir in $PATH
9041 do
9042 IFS=$as_save_IFS
9043 case $as_dir in #(((
9044 '') as_dir=./ ;;
9045 */) ;;
9046 *) as_dir=$as_dir/ ;;
9047 esac
9048 for ac_exec_ext in '' $ac_executable_extensions; do
9049 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9050 ac_cv_prog_ac_ct_STRIP="strip"
9051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9052 break 2
9053 fi
9054 done
9055 done
9056 IFS=$as_save_IFS
9057
9058 fi ;;
9059 esac
9060 fi
9061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9062 if test -n "$ac_ct_STRIP"; then
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9064 printf "%s\n" "$ac_ct_STRIP" >&6; }
9065 else
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067 printf "%s\n" "no" >&6; }
9068 fi
9069
9070 if test "x$ac_ct_STRIP" = x; then
9071 STRIP=":"
9072 else
9073 case $cross_compiling:$ac_tool_warned in
9074 yes:)
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9076 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9077 ac_tool_warned=yes ;;
9078 esac
9079 STRIP=$ac_ct_STRIP
9080 fi
9081 else
9082 STRIP="$ac_cv_prog_STRIP"
9083 fi
9084
9085 test -z "$STRIP" && STRIP=:
9086
9087
9088
9089
9090
9091
9092
9093 test -z "$RANLIB" && RANLIB=:
9094
9095
9096
9097
9098
9099
9100 # Determine commands to create old-style static archives.
9101 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9102 old_postinstall_cmds='chmod 644 $oldlib'
9103 old_postuninstall_cmds=
9104
9105 if test -n "$RANLIB"; then
9106 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9107 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9108 fi
9109
9110 case $host_os in
9111 darwin*)
9112 lock_old_archive_extraction=yes ;;
9113 *)
9114 lock_old_archive_extraction=no ;;
9115 esac
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155 # If no C compiler was specified, use CC.
9156 LTCC=${LTCC-"$CC"}
9157
9158 # If no C compiler flags were specified, use CFLAGS.
9159 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9160
9161 # Allow CC to be a program name with arguments.
9162 compiler=$CC
9163
9164
9165 # Check for command to grab the raw symbol name followed by C symbol from nm.
9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9167 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9168 if test ${lt_cv_sys_global_symbol_pipe+y}
9169 then :
9170 printf %s "(cached) " >&6
9171 else case e in #(
9172 e)
9173 # These are sane defaults that work on at least a few old systems.
9174 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9175
9176 # Character class describing NM global symbol codes.
9177 symcode='[BCDEGRST]'
9178
9179 # Regexp to match symbols that can be accessed directly from C.
9180 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9181
9182 # Define system-specific variables.
9183 case $host_os in
9184 aix*)
9185 symcode='[BCDT]'
9186 ;;
9187 cygwin* | mingw* | windows* | pw32* | cegcc*)
9188 symcode='[ABCDGISTW]'
9189 ;;
9190 hpux*)
9191 if test ia64 = "$host_cpu"; then
9192 symcode='[ABCDEGRST]'
9193 fi
9194 ;;
9195 irix* | nonstopux*)
9196 symcode='[BCDEGRST]'
9197 ;;
9198 osf*)
9199 symcode='[BCDEGQRST]'
9200 ;;
9201 solaris*)
9202 symcode='[BCDRT]'
9203 ;;
9204 sco3.2v5*)
9205 symcode='[DT]'
9206 ;;
9207 sysv4.2uw2*)
9208 symcode='[DT]'
9209 ;;
9210 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9211 symcode='[ABDT]'
9212 ;;
9213 sysv4)
9214 symcode='[DFNSTU]'
9215 ;;
9216 esac
9217
9218 # If we're using GNU nm, then use its standard symbol codes.
9219 case `$NM -V 2>&1` in
9220 *GNU* | *'with BFD'*)
9221 symcode='[ABCDGIRSTW]' ;;
9222 esac
9223
9224 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9225 # Gets list of data symbols to import.
9226 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9227 # Adjust the below global symbol transforms to fixup imported variables.
9228 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9229 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9230 lt_c_name_lib_hook="\
9231 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9232 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9233 else
9234 # Disable hooks by default.
9235 lt_cv_sys_global_symbol_to_import=
9236 lt_cdecl_hook=
9237 lt_c_name_hook=
9238 lt_c_name_lib_hook=
9239 fi
9240
9241 # Transform an extracted symbol line into a proper C declaration.
9242 # Some systems (esp. on ia64) link data and code symbols differently,
9243 # so use this general approach.
9244 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9245 $lt_cdecl_hook\
9246 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9247 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9248
9249 # Transform an extracted symbol line into symbol name and symbol address
9250 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9251 $lt_c_name_hook\
9252 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9253 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9254
9255 # Transform an extracted symbol line into symbol name with lib prefix and
9256 # symbol address.
9257 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9258 $lt_c_name_lib_hook\
9259 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9260 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9261 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9262
9263 # Handle CRLF in mingw tool chain
9264 opt_cr=
9265 case $build_os in
9266 mingw* | windows*)
9267 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9268 ;;
9269 esac
9270
9271 # Try without a prefix underscore, then with it.
9272 for ac_symprfx in "" "_"; do
9273
9274 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9275 symxfrm="\\1 $ac_symprfx\\2 \\2"
9276
9277 # Write the raw and C identifiers.
9278 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9279 # Fake it for dumpbin and say T for any non-static function,
9280 # D for any global variable and I for any imported variable.
9281 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9282 # which start with @ or ?.
9283 lt_cv_sys_global_symbol_pipe="$AWK '"\
9284 " {last_section=section; section=\$ 3};"\
9285 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9286 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9287 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9288 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9289 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9290 " \$ 0!~/External *\|/{next};"\
9291 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9292 " {if(hide[section]) next};"\
9293 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9294 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9295 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9296 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9297 " ' prfx=^$ac_symprfx"
9298 else
9299 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9300 fi
9301 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9302
9303 # Check to see that the pipe works correctly.
9304 pipe_works=no
9305
9306 rm -f conftest*
9307 cat > conftest.$ac_ext <<_LT_EOF
9308 #ifdef __cplusplus
9309 extern "C" {
9310 #endif
9311 char nm_test_var;
9312 void nm_test_func(void);
9313 void nm_test_func(void){}
9314 #ifdef __cplusplus
9315 }
9316 #endif
9317 int main(void){nm_test_var='a';nm_test_func();return(0);}
9318 _LT_EOF
9319
9320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9321 (eval $ac_compile) 2>&5
9322 ac_status=$?
9323 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9324 test $ac_status = 0; }; then
9325 # Now try to grab the symbols.
9326 nlist=conftest.nm
9327 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9328 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9329 # Try sorting and uniquifying the output.
9330 if sort "$nlist" | uniq > "$nlist"T; then
9331 mv -f "$nlist"T "$nlist"
9332 else
9333 rm -f "$nlist"T
9334 fi
9335
9336 # Make sure that we snagged all the symbols we need.
9337 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9338 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9339 cat <<_LT_EOF > conftest.$ac_ext
9340 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9341 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9342 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9343 relocations are performed -- see ld's documentation on pseudo-relocs. */
9344 # define LT_DLSYM_CONST
9345 #elif defined __osf__
9346 /* This system does not cope well with relocations in const data. */
9347 # define LT_DLSYM_CONST
9348 #else
9349 # define LT_DLSYM_CONST const
9350 #endif
9351
9352 #ifdef __cplusplus
9353 extern "C" {
9354 #endif
9355
9356 _LT_EOF
9357 # Now generate the symbol file.
9358 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9359
9360 cat <<_LT_EOF >> conftest.$ac_ext
9361
9362 /* The mapping between symbol names and symbols. */
9363 LT_DLSYM_CONST struct {
9364 const char *name;
9365 void *address;
9366 }
9367 lt__PROGRAM__LTX_preloaded_symbols[] =
9368 {
9369 { "@PROGRAM@", (void *) 0 },
9370 _LT_EOF
9371 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9372 cat <<\_LT_EOF >> conftest.$ac_ext
9373 {0, (void *) 0}
9374 };
9375
9376 /* This works around a problem in FreeBSD linker */
9377 #ifdef FREEBSD_WORKAROUND
9378 static const void *lt_preloaded_setup() {
9379 return lt__PROGRAM__LTX_preloaded_symbols;
9380 }
9381 #endif
9382
9383 #ifdef __cplusplus
9384 }
9385 #endif
9386 _LT_EOF
9387 # Now try linking the two files.
9388 mv conftest.$ac_objext conftstm.$ac_objext
9389 lt_globsym_save_LIBS=$LIBS
9390 lt_globsym_save_CFLAGS=$CFLAGS
9391 LIBS=conftstm.$ac_objext
9392 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9394 (eval $ac_link) 2>&5
9395 ac_status=$?
9396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9397 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9398 pipe_works=yes
9399 fi
9400 LIBS=$lt_globsym_save_LIBS
9401 CFLAGS=$lt_globsym_save_CFLAGS
9402 else
9403 echo "cannot find nm_test_func in $nlist" >&5
9404 fi
9405 else
9406 echo "cannot find nm_test_var in $nlist" >&5
9407 fi
9408 else
9409 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9410 fi
9411 else
9412 echo "$progname: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9414 fi
9415 rm -rf conftest* conftst*
9416
9417 # Do not use the global_symbol_pipe unless it works.
9418 if test yes = "$pipe_works"; then
9419 break
9420 else
9421 lt_cv_sys_global_symbol_pipe=
9422 fi
9423 done
9424 ;;
9425 esac
9426 fi
9427
9428 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9429 lt_cv_sys_global_symbol_to_cdecl=
9430 fi
9431 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9433 printf "%s\n" "failed" >&6; }
9434 else
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9436 printf "%s\n" "ok" >&6; }
9437 fi
9438
9439 # Response file support.
9440 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9441 nm_file_list_spec='@'
9442 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9443 nm_file_list_spec='@'
9444 fi
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9483 printf %s "checking for sysroot... " >&6; }
9484
9485 # Check whether --with-sysroot was given.
9486 if test ${with_sysroot+y}
9487 then :
9488 withval=$with_sysroot;
9489 else case e in #(
9490 e) with_sysroot=no ;;
9491 esac
9492 fi
9493
9494
9495 lt_sysroot=
9496 case $with_sysroot in #(
9497 yes)
9498 if test yes = "$GCC"; then
9499 # Trim trailing / since we'll always append absolute paths and we want
9500 # to avoid //, if only for less confusing output for the user.
9501 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9502 fi
9503 ;; #(
9504 /*)
9505 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9506 ;; #(
9507 no|'')
9508 ;; #(
9509 *)
9510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9511 printf "%s\n" "$with_sysroot" >&6; }
9512 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9513 ;;
9514 esac
9515
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9517 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9518
9519
9520
9521
9522
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9524 printf %s "checking for a working dd... " >&6; }
9525 if test ${ac_cv_path_lt_DD+y}
9526 then :
9527 printf %s "(cached) " >&6
9528 else case e in #(
9529 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9530 cat conftest.i conftest.i >conftest2.i
9531 : ${lt_DD:=$DD}
9532 if test -z "$lt_DD"; then
9533 ac_path_lt_DD_found=false
9534 # Loop through the user's path and test for each of PROGNAME-LIST
9535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536 for as_dir in $PATH
9537 do
9538 IFS=$as_save_IFS
9539 case $as_dir in #(((
9540 '') as_dir=./ ;;
9541 */) ;;
9542 *) as_dir=$as_dir/ ;;
9543 esac
9544 for ac_prog in dd
9545 do
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9548 as_fn_executable_p "$ac_path_lt_DD" || continue
9549 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9550 cmp -s conftest.i conftest.out \
9551 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9552 fi
9553 $ac_path_lt_DD_found && break 3
9554 done
9555 done
9556 done
9557 IFS=$as_save_IFS
9558 if test -z "$ac_cv_path_lt_DD"; then
9559 :
9560 fi
9561 else
9562 ac_cv_path_lt_DD=$lt_DD
9563 fi
9564
9565 rm -f conftest.i conftest2.i conftest.out ;;
9566 esac
9567 fi
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9569 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9570
9571
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9573 printf %s "checking how to truncate binary pipes... " >&6; }
9574 if test ${lt_cv_truncate_bin+y}
9575 then :
9576 printf %s "(cached) " >&6
9577 else case e in #(
9578 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9579 cat conftest.i conftest.i >conftest2.i
9580 lt_cv_truncate_bin=
9581 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9582 cmp -s conftest.i conftest.out \
9583 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9584 fi
9585 rm -f conftest.i conftest2.i conftest.out
9586 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9587 esac
9588 fi
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9590 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9591
9592
9593
9594
9595
9596
9597
9598 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9599 func_cc_basename ()
9600 {
9601 for cc_temp in $*""; do
9602 case $cc_temp in
9603 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9604 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9605 \-*) ;;
9606 *) break;;
9607 esac
9608 done
9609 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9610 }
9611
9612 # Check whether --enable-libtool-lock was given.
9613 if test ${enable_libtool_lock+y}
9614 then :
9615 enableval=$enable_libtool_lock;
9616 fi
9617
9618 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9619
9620 # Some flags need to be propagated to the compiler or linker for good
9621 # libtool support.
9622 case $host in
9623 ia64-*-hpux*)
9624 # Find out what ABI is being produced by ac_compile, and set mode
9625 # options accordingly.
9626 echo 'int i;' > conftest.$ac_ext
9627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9628 (eval $ac_compile) 2>&5
9629 ac_status=$?
9630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9631 test $ac_status = 0; }; then
9632 case `$FILECMD conftest.$ac_objext` in
9633 *ELF-32*)
9634 HPUX_IA64_MODE=32
9635 ;;
9636 *ELF-64*)
9637 HPUX_IA64_MODE=64
9638 ;;
9639 esac
9640 fi
9641 rm -rf conftest*
9642 ;;
9643 *-*-irix6*)
9644 # Find out what ABI is being produced by ac_compile, and set linker
9645 # options accordingly.
9646 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9647 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9648 (eval $ac_compile) 2>&5
9649 ac_status=$?
9650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9651 test $ac_status = 0; }; then
9652 if test yes = "$lt_cv_prog_gnu_ld"; then
9653 case `$FILECMD conftest.$ac_objext` in
9654 *32-bit*)
9655 LD="${LD-ld} -melf32bsmip"
9656 ;;
9657 *N32*)
9658 LD="${LD-ld} -melf32bmipn32"
9659 ;;
9660 *64-bit*)
9661 LD="${LD-ld} -melf64bmip"
9662 ;;
9663 esac
9664 else
9665 case `$FILECMD conftest.$ac_objext` in
9666 *32-bit*)
9667 LD="${LD-ld} -32"
9668 ;;
9669 *N32*)
9670 LD="${LD-ld} -n32"
9671 ;;
9672 *64-bit*)
9673 LD="${LD-ld} -64"
9674 ;;
9675 esac
9676 fi
9677 fi
9678 rm -rf conftest*
9679 ;;
9680
9681 mips64*-*linux*)
9682 # Find out what ABI is being produced by ac_compile, and set linker
9683 # options accordingly.
9684 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9686 (eval $ac_compile) 2>&5
9687 ac_status=$?
9688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9689 test $ac_status = 0; }; then
9690 emul=elf
9691 case `$FILECMD conftest.$ac_objext` in
9692 *32-bit*)
9693 emul="${emul}32"
9694 ;;
9695 *64-bit*)
9696 emul="${emul}64"
9697 ;;
9698 esac
9699 case `$FILECMD conftest.$ac_objext` in
9700 *MSB*)
9701 emul="${emul}btsmip"
9702 ;;
9703 *LSB*)
9704 emul="${emul}ltsmip"
9705 ;;
9706 esac
9707 case `$FILECMD conftest.$ac_objext` in
9708 *N32*)
9709 emul="${emul}n32"
9710 ;;
9711 esac
9712 LD="${LD-ld} -m $emul"
9713 fi
9714 rm -rf conftest*
9715 ;;
9716
9717 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9718 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9719 # Find out what ABI is being produced by ac_compile, and set linker
9720 # options accordingly. Note that the listed cases only cover the
9721 # situations where additional linker options are needed (such as when
9722 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9723 # vice versa); the common cases where no linker options are needed do
9724 # not appear in the list.
9725 echo 'int i;' > conftest.$ac_ext
9726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9727 (eval $ac_compile) 2>&5
9728 ac_status=$?
9729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9730 test $ac_status = 0; }; then
9731 case `$FILECMD conftest.o` in
9732 *32-bit*)
9733 case $host in
9734 x86_64-*kfreebsd*-gnu)
9735 LD="${LD-ld} -m elf_i386_fbsd"
9736 ;;
9737 x86_64-*linux*|x86_64-gnu*)
9738 case `$FILECMD conftest.o` in
9739 *x86-64*)
9740 LD="${LD-ld} -m elf32_x86_64"
9741 ;;
9742 *)
9743 LD="${LD-ld} -m elf_i386"
9744 ;;
9745 esac
9746 ;;
9747 powerpc64le-*linux*)
9748 LD="${LD-ld} -m elf32lppclinux"
9749 ;;
9750 powerpc64-*linux*)
9751 LD="${LD-ld} -m elf32ppclinux"
9752 ;;
9753 s390x-*linux*)
9754 LD="${LD-ld} -m elf_s390"
9755 ;;
9756 sparc64-*linux*)
9757 LD="${LD-ld} -m elf32_sparc"
9758 ;;
9759 esac
9760 ;;
9761 *64-bit*)
9762 case $host in
9763 x86_64-*kfreebsd*-gnu)
9764 LD="${LD-ld} -m elf_x86_64_fbsd"
9765 ;;
9766 x86_64-*linux*|x86_64-gnu*)
9767 LD="${LD-ld} -m elf_x86_64"
9768 ;;
9769 powerpcle-*linux*)
9770 LD="${LD-ld} -m elf64lppc"
9771 ;;
9772 powerpc-*linux*)
9773 LD="${LD-ld} -m elf64ppc"
9774 ;;
9775 s390*-*linux*|s390*-*tpf*)
9776 LD="${LD-ld} -m elf64_s390"
9777 ;;
9778 sparc*-*linux*)
9779 LD="${LD-ld} -m elf64_sparc"
9780 ;;
9781 esac
9782 ;;
9783 esac
9784 fi
9785 rm -rf conftest*
9786 ;;
9787
9788 *-*-sco3.2v5*)
9789 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9790 SAVE_CFLAGS=$CFLAGS
9791 CFLAGS="$CFLAGS -belf"
9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9793 printf %s "checking whether the C compiler needs -belf... " >&6; }
9794 if test ${lt_cv_cc_needs_belf+y}
9795 then :
9796 printf %s "(cached) " >&6
9797 else case e in #(
9798 e) ac_ext=c
9799 ac_cpp='$CPP $CPPFLAGS'
9800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9803
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805 /* end confdefs.h. */
9806
9807 int
9808 main (void)
9809 {
9810
9811 ;
9812 return 0;
9813 }
9814 _ACEOF
9815 if ac_fn_c_try_link "$LINENO"
9816 then :
9817 lt_cv_cc_needs_belf=yes
9818 else case e in #(
9819 e) lt_cv_cc_needs_belf=no ;;
9820 esac
9821 fi
9822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9823 conftest$ac_exeext conftest.$ac_ext
9824 ac_ext=c
9825 ac_cpp='$CPP $CPPFLAGS'
9826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9829 ;;
9830 esac
9831 fi
9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9833 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9834 if test yes != "$lt_cv_cc_needs_belf"; then
9835 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9836 CFLAGS=$SAVE_CFLAGS
9837 fi
9838 ;;
9839 *-*solaris*)
9840 # Find out what ABI is being produced by ac_compile, and set linker
9841 # options accordingly.
9842 echo 'int i;' > conftest.$ac_ext
9843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9844 (eval $ac_compile) 2>&5
9845 ac_status=$?
9846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9847 test $ac_status = 0; }; then
9848 case `$FILECMD conftest.o` in
9849 *64-bit*)
9850 case $lt_cv_prog_gnu_ld in
9851 yes*)
9852 case $host in
9853 i?86-*-solaris*|x86_64-*-solaris*)
9854 LD="${LD-ld} -m elf_x86_64"
9855 ;;
9856 sparc*-*-solaris*)
9857 LD="${LD-ld} -m elf64_sparc"
9858 ;;
9859 esac
9860 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9861 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9862 LD=${LD-ld}_sol2
9863 fi
9864 ;;
9865 *)
9866 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9867 LD="${LD-ld} -64"
9868 fi
9869 ;;
9870 esac
9871 ;;
9872 esac
9873 fi
9874 rm -rf conftest*
9875 ;;
9876 esac
9877
9878 need_locks=$enable_libtool_lock
9879
9880 if test -n "$ac_tool_prefix"; then
9881 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9882 set dummy ${ac_tool_prefix}mt; ac_word=$2
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9884 printf %s "checking for $ac_word... " >&6; }
9885 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9886 then :
9887 printf %s "(cached) " >&6
9888 else case e in #(
9889 e) if test -n "$MANIFEST_TOOL"; then
9890 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9891 else
9892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893 for as_dir in $PATH
9894 do
9895 IFS=$as_save_IFS
9896 case $as_dir in #(((
9897 '') as_dir=./ ;;
9898 */) ;;
9899 *) as_dir=$as_dir/ ;;
9900 esac
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9903 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9905 break 2
9906 fi
9907 done
9908 done
9909 IFS=$as_save_IFS
9910
9911 fi ;;
9912 esac
9913 fi
9914 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9915 if test -n "$MANIFEST_TOOL"; then
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9917 printf "%s\n" "$MANIFEST_TOOL" >&6; }
9918 else
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9920 printf "%s\n" "no" >&6; }
9921 fi
9922
9923
9924 fi
9925 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9926 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9927 # Extract the first word of "mt", so it can be a program name with args.
9928 set dummy mt; ac_word=$2
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9930 printf %s "checking for $ac_word... " >&6; }
9931 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
9932 then :
9933 printf %s "(cached) " >&6
9934 else case e in #(
9935 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
9936 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9937 else
9938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9939 for as_dir in $PATH
9940 do
9941 IFS=$as_save_IFS
9942 case $as_dir in #(((
9943 '') as_dir=./ ;;
9944 */) ;;
9945 *) as_dir=$as_dir/ ;;
9946 esac
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9949 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9951 break 2
9952 fi
9953 done
9954 done
9955 IFS=$as_save_IFS
9956
9957 fi ;;
9958 esac
9959 fi
9960 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9961 if test -n "$ac_ct_MANIFEST_TOOL"; then
9962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9963 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
9964 else
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966 printf "%s\n" "no" >&6; }
9967 fi
9968
9969 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9970 MANIFEST_TOOL=":"
9971 else
9972 case $cross_compiling:$ac_tool_warned in
9973 yes:)
9974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9975 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9976 ac_tool_warned=yes ;;
9977 esac
9978 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9979 fi
9980 else
9981 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9982 fi
9983
9984 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9986 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9987 if test ${lt_cv_path_manifest_tool+y}
9988 then :
9989 printf %s "(cached) " >&6
9990 else case e in #(
9991 e) lt_cv_path_manifest_tool=no
9992 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9993 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9994 cat conftest.err >&5
9995 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9996 lt_cv_path_manifest_tool=yes
9997 fi
9998 rm -f conftest* ;;
9999 esac
10000 fi
10001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
10002 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
10003 if test yes != "$lt_cv_path_manifest_tool"; then
10004 MANIFEST_TOOL=:
10005 fi
10006
10007
10008
10009
10010
10011
10012 case $host_os in
10013 rhapsody* | darwin*)
10014 if test -n "$ac_tool_prefix"; then
10015 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10016 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 printf %s "checking for $ac_word... " >&6; }
10019 if test ${ac_cv_prog_DSYMUTIL+y}
10020 then :
10021 printf %s "(cached) " >&6
10022 else case e in #(
10023 e) if test -n "$DSYMUTIL"; then
10024 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10025 else
10026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10027 for as_dir in $PATH
10028 do
10029 IFS=$as_save_IFS
10030 case $as_dir in #(((
10031 '') as_dir=./ ;;
10032 */) ;;
10033 *) as_dir=$as_dir/ ;;
10034 esac
10035 for ac_exec_ext in '' $ac_executable_extensions; do
10036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10037 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10039 break 2
10040 fi
10041 done
10042 done
10043 IFS=$as_save_IFS
10044
10045 fi ;;
10046 esac
10047 fi
10048 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10049 if test -n "$DSYMUTIL"; then
10050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10051 printf "%s\n" "$DSYMUTIL" >&6; }
10052 else
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10054 printf "%s\n" "no" >&6; }
10055 fi
10056
10057
10058 fi
10059 if test -z "$ac_cv_prog_DSYMUTIL"; then
10060 ac_ct_DSYMUTIL=$DSYMUTIL
10061 # Extract the first word of "dsymutil", so it can be a program name with args.
10062 set dummy dsymutil; ac_word=$2
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064 printf %s "checking for $ac_word... " >&6; }
10065 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10066 then :
10067 printf %s "(cached) " >&6
10068 else case e in #(
10069 e) if test -n "$ac_ct_DSYMUTIL"; then
10070 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10071 else
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073 for as_dir in $PATH
10074 do
10075 IFS=$as_save_IFS
10076 case $as_dir in #(((
10077 '') as_dir=./ ;;
10078 */) ;;
10079 *) as_dir=$as_dir/ ;;
10080 esac
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10083 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10085 break 2
10086 fi
10087 done
10088 done
10089 IFS=$as_save_IFS
10090
10091 fi ;;
10092 esac
10093 fi
10094 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10095 if test -n "$ac_ct_DSYMUTIL"; then
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10097 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10098 else
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10100 printf "%s\n" "no" >&6; }
10101 fi
10102
10103 if test "x$ac_ct_DSYMUTIL" = x; then
10104 DSYMUTIL=":"
10105 else
10106 case $cross_compiling:$ac_tool_warned in
10107 yes:)
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10109 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10110 ac_tool_warned=yes ;;
10111 esac
10112 DSYMUTIL=$ac_ct_DSYMUTIL
10113 fi
10114 else
10115 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10116 fi
10117
10118 if test -n "$ac_tool_prefix"; then
10119 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10120 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122 printf %s "checking for $ac_word... " >&6; }
10123 if test ${ac_cv_prog_NMEDIT+y}
10124 then :
10125 printf %s "(cached) " >&6
10126 else case e in #(
10127 e) if test -n "$NMEDIT"; then
10128 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10129 else
10130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10131 for as_dir in $PATH
10132 do
10133 IFS=$as_save_IFS
10134 case $as_dir in #(((
10135 '') as_dir=./ ;;
10136 */) ;;
10137 *) as_dir=$as_dir/ ;;
10138 esac
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10141 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10143 break 2
10144 fi
10145 done
10146 done
10147 IFS=$as_save_IFS
10148
10149 fi ;;
10150 esac
10151 fi
10152 NMEDIT=$ac_cv_prog_NMEDIT
10153 if test -n "$NMEDIT"; then
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10155 printf "%s\n" "$NMEDIT" >&6; }
10156 else
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10158 printf "%s\n" "no" >&6; }
10159 fi
10160
10161
10162 fi
10163 if test -z "$ac_cv_prog_NMEDIT"; then
10164 ac_ct_NMEDIT=$NMEDIT
10165 # Extract the first word of "nmedit", so it can be a program name with args.
10166 set dummy nmedit; ac_word=$2
10167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10168 printf %s "checking for $ac_word... " >&6; }
10169 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10170 then :
10171 printf %s "(cached) " >&6
10172 else case e in #(
10173 e) if test -n "$ac_ct_NMEDIT"; then
10174 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10175 else
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177 for as_dir in $PATH
10178 do
10179 IFS=$as_save_IFS
10180 case $as_dir in #(((
10181 '') as_dir=./ ;;
10182 */) ;;
10183 *) as_dir=$as_dir/ ;;
10184 esac
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10187 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10189 break 2
10190 fi
10191 done
10192 done
10193 IFS=$as_save_IFS
10194
10195 fi ;;
10196 esac
10197 fi
10198 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10199 if test -n "$ac_ct_NMEDIT"; then
10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10201 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10202 else
10203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 printf "%s\n" "no" >&6; }
10205 fi
10206
10207 if test "x$ac_ct_NMEDIT" = x; then
10208 NMEDIT=":"
10209 else
10210 case $cross_compiling:$ac_tool_warned in
10211 yes:)
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10213 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10214 ac_tool_warned=yes ;;
10215 esac
10216 NMEDIT=$ac_ct_NMEDIT
10217 fi
10218 else
10219 NMEDIT="$ac_cv_prog_NMEDIT"
10220 fi
10221
10222 if test -n "$ac_tool_prefix"; then
10223 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10224 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10226 printf %s "checking for $ac_word... " >&6; }
10227 if test ${ac_cv_prog_LIPO+y}
10228 then :
10229 printf %s "(cached) " >&6
10230 else case e in #(
10231 e) if test -n "$LIPO"; then
10232 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10233 else
10234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235 for as_dir in $PATH
10236 do
10237 IFS=$as_save_IFS
10238 case $as_dir in #(((
10239 '') as_dir=./ ;;
10240 */) ;;
10241 *) as_dir=$as_dir/ ;;
10242 esac
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10245 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10246 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10247 break 2
10248 fi
10249 done
10250 done
10251 IFS=$as_save_IFS
10252
10253 fi ;;
10254 esac
10255 fi
10256 LIPO=$ac_cv_prog_LIPO
10257 if test -n "$LIPO"; then
10258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10259 printf "%s\n" "$LIPO" >&6; }
10260 else
10261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 printf "%s\n" "no" >&6; }
10263 fi
10264
10265
10266 fi
10267 if test -z "$ac_cv_prog_LIPO"; then
10268 ac_ct_LIPO=$LIPO
10269 # Extract the first word of "lipo", so it can be a program name with args.
10270 set dummy lipo; ac_word=$2
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272 printf %s "checking for $ac_word... " >&6; }
10273 if test ${ac_cv_prog_ac_ct_LIPO+y}
10274 then :
10275 printf %s "(cached) " >&6
10276 else case e in #(
10277 e) if test -n "$ac_ct_LIPO"; then
10278 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10279 else
10280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10281 for as_dir in $PATH
10282 do
10283 IFS=$as_save_IFS
10284 case $as_dir in #(((
10285 '') as_dir=./ ;;
10286 */) ;;
10287 *) as_dir=$as_dir/ ;;
10288 esac
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10291 ac_cv_prog_ac_ct_LIPO="lipo"
10292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295 done
10296 done
10297 IFS=$as_save_IFS
10298
10299 fi ;;
10300 esac
10301 fi
10302 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10303 if test -n "$ac_ct_LIPO"; then
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10305 printf "%s\n" "$ac_ct_LIPO" >&6; }
10306 else
10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10308 printf "%s\n" "no" >&6; }
10309 fi
10310
10311 if test "x$ac_ct_LIPO" = x; then
10312 LIPO=":"
10313 else
10314 case $cross_compiling:$ac_tool_warned in
10315 yes:)
10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10317 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10318 ac_tool_warned=yes ;;
10319 esac
10320 LIPO=$ac_ct_LIPO
10321 fi
10322 else
10323 LIPO="$ac_cv_prog_LIPO"
10324 fi
10325
10326 if test -n "$ac_tool_prefix"; then
10327 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10328 set dummy ${ac_tool_prefix}otool; ac_word=$2
10329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330 printf %s "checking for $ac_word... " >&6; }
10331 if test ${ac_cv_prog_OTOOL+y}
10332 then :
10333 printf %s "(cached) " >&6
10334 else case e in #(
10335 e) if test -n "$OTOOL"; then
10336 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10337 else
10338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339 for as_dir in $PATH
10340 do
10341 IFS=$as_save_IFS
10342 case $as_dir in #(((
10343 '') as_dir=./ ;;
10344 */) ;;
10345 *) as_dir=$as_dir/ ;;
10346 esac
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10349 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10351 break 2
10352 fi
10353 done
10354 done
10355 IFS=$as_save_IFS
10356
10357 fi ;;
10358 esac
10359 fi
10360 OTOOL=$ac_cv_prog_OTOOL
10361 if test -n "$OTOOL"; then
10362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10363 printf "%s\n" "$OTOOL" >&6; }
10364 else
10365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10366 printf "%s\n" "no" >&6; }
10367 fi
10368
10369
10370 fi
10371 if test -z "$ac_cv_prog_OTOOL"; then
10372 ac_ct_OTOOL=$OTOOL
10373 # Extract the first word of "otool", so it can be a program name with args.
10374 set dummy otool; ac_word=$2
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10376 printf %s "checking for $ac_word... " >&6; }
10377 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10378 then :
10379 printf %s "(cached) " >&6
10380 else case e in #(
10381 e) if test -n "$ac_ct_OTOOL"; then
10382 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10383 else
10384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10385 for as_dir in $PATH
10386 do
10387 IFS=$as_save_IFS
10388 case $as_dir in #(((
10389 '') as_dir=./ ;;
10390 */) ;;
10391 *) as_dir=$as_dir/ ;;
10392 esac
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10395 ac_cv_prog_ac_ct_OTOOL="otool"
10396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10397 break 2
10398 fi
10399 done
10400 done
10401 IFS=$as_save_IFS
10402
10403 fi ;;
10404 esac
10405 fi
10406 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10407 if test -n "$ac_ct_OTOOL"; then
10408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10409 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10410 else
10411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 printf "%s\n" "no" >&6; }
10413 fi
10414
10415 if test "x$ac_ct_OTOOL" = x; then
10416 OTOOL=":"
10417 else
10418 case $cross_compiling:$ac_tool_warned in
10419 yes:)
10420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10421 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10422 ac_tool_warned=yes ;;
10423 esac
10424 OTOOL=$ac_ct_OTOOL
10425 fi
10426 else
10427 OTOOL="$ac_cv_prog_OTOOL"
10428 fi
10429
10430 if test -n "$ac_tool_prefix"; then
10431 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10432 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10434 printf %s "checking for $ac_word... " >&6; }
10435 if test ${ac_cv_prog_OTOOL64+y}
10436 then :
10437 printf %s "(cached) " >&6
10438 else case e in #(
10439 e) if test -n "$OTOOL64"; then
10440 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10441 else
10442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443 for as_dir in $PATH
10444 do
10445 IFS=$as_save_IFS
10446 case $as_dir in #(((
10447 '') as_dir=./ ;;
10448 */) ;;
10449 *) as_dir=$as_dir/ ;;
10450 esac
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10453 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10455 break 2
10456 fi
10457 done
10458 done
10459 IFS=$as_save_IFS
10460
10461 fi ;;
10462 esac
10463 fi
10464 OTOOL64=$ac_cv_prog_OTOOL64
10465 if test -n "$OTOOL64"; then
10466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10467 printf "%s\n" "$OTOOL64" >&6; }
10468 else
10469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470 printf "%s\n" "no" >&6; }
10471 fi
10472
10473
10474 fi
10475 if test -z "$ac_cv_prog_OTOOL64"; then
10476 ac_ct_OTOOL64=$OTOOL64
10477 # Extract the first word of "otool64", so it can be a program name with args.
10478 set dummy otool64; ac_word=$2
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 printf %s "checking for $ac_word... " >&6; }
10481 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10482 then :
10483 printf %s "(cached) " >&6
10484 else case e in #(
10485 e) if test -n "$ac_ct_OTOOL64"; then
10486 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10487 else
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10490 do
10491 IFS=$as_save_IFS
10492 case $as_dir in #(((
10493 '') as_dir=./ ;;
10494 */) ;;
10495 *) as_dir=$as_dir/ ;;
10496 esac
10497 for ac_exec_ext in '' $ac_executable_extensions; do
10498 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10499 ac_cv_prog_ac_ct_OTOOL64="otool64"
10500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10501 break 2
10502 fi
10503 done
10504 done
10505 IFS=$as_save_IFS
10506
10507 fi ;;
10508 esac
10509 fi
10510 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10511 if test -n "$ac_ct_OTOOL64"; then
10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10513 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10514 else
10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 printf "%s\n" "no" >&6; }
10517 fi
10518
10519 if test "x$ac_ct_OTOOL64" = x; then
10520 OTOOL64=":"
10521 else
10522 case $cross_compiling:$ac_tool_warned in
10523 yes:)
10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10525 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10526 ac_tool_warned=yes ;;
10527 esac
10528 OTOOL64=$ac_ct_OTOOL64
10529 fi
10530 else
10531 OTOOL64="$ac_cv_prog_OTOOL64"
10532 fi
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10561 printf %s "checking for -single_module linker flag... " >&6; }
10562 if test ${lt_cv_apple_cc_single_mod+y}
10563 then :
10564 printf %s "(cached) " >&6
10565 else case e in #(
10566 e) lt_cv_apple_cc_single_mod=no
10567 if test -z "$LT_MULTI_MODULE"; then
10568 # By default we will add the -single_module flag. You can override
10569 # by either setting the environment variable LT_MULTI_MODULE
10570 # non-empty at configure time, or by adding -multi_module to the
10571 # link flags.
10572 rm -rf libconftest.dylib*
10573 echo "int foo(void){return 1;}" > conftest.c
10574 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10575 -dynamiclib -Wl,-single_module conftest.c" >&5
10576 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10577 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10578 _lt_result=$?
10579 # If there is a non-empty error log, and "single_module"
10580 # appears in it, assume the flag caused a linker warning
10581 if test -s conftest.err && $GREP single_module conftest.err; then
10582 cat conftest.err >&5
10583 # Otherwise, if the output was created with a 0 exit code from
10584 # the compiler, it worked.
10585 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10586 lt_cv_apple_cc_single_mod=yes
10587 else
10588 cat conftest.err >&5
10589 fi
10590 rm -rf libconftest.dylib*
10591 rm -f conftest.*
10592 fi ;;
10593 esac
10594 fi
10595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10596 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10597
10598 # Feature test to disable chained fixups since it is not
10599 # compatible with '-undefined dynamic_lookup'
10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10601 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10602 if test ${lt_cv_support_no_fixup_chains+y}
10603 then :
10604 printf %s "(cached) " >&6
10605 else case e in #(
10606 e) save_LDFLAGS=$LDFLAGS
10607 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609 /* end confdefs.h. */
10610
10611 int
10612 main (void)
10613 {
10614
10615 ;
10616 return 0;
10617 }
10618 _ACEOF
10619 if ac_fn_c_try_link "$LINENO"
10620 then :
10621 lt_cv_support_no_fixup_chains=yes
10622 else case e in #(
10623 e) lt_cv_support_no_fixup_chains=no
10624 ;;
10625 esac
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10628 conftest$ac_exeext conftest.$ac_ext
10629 LDFLAGS=$save_LDFLAGS
10630
10631 ;;
10632 esac
10633 fi
10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10635 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
10636
10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10638 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10639 if test ${lt_cv_ld_exported_symbols_list+y}
10640 then :
10641 printf %s "(cached) " >&6
10642 else case e in #(
10643 e) lt_cv_ld_exported_symbols_list=no
10644 save_LDFLAGS=$LDFLAGS
10645 echo "_main" > conftest.sym
10646 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649
10650 int
10651 main (void)
10652 {
10653
10654 ;
10655 return 0;
10656 }
10657 _ACEOF
10658 if ac_fn_c_try_link "$LINENO"
10659 then :
10660 lt_cv_ld_exported_symbols_list=yes
10661 else case e in #(
10662 e) lt_cv_ld_exported_symbols_list=no ;;
10663 esac
10664 fi
10665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LDFLAGS=$save_LDFLAGS
10668 ;;
10669 esac
10670 fi
10671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10672 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10673
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10675 printf %s "checking for -force_load linker flag... " >&6; }
10676 if test ${lt_cv_ld_force_load+y}
10677 then :
10678 printf %s "(cached) " >&6
10679 else case e in #(
10680 e) lt_cv_ld_force_load=no
10681 cat > conftest.c << _LT_EOF
10682 int forced_loaded() { return 2;}
10683 _LT_EOF
10684 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10685 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10686 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10687 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10688 echo "$RANLIB libconftest.a" >&5
10689 $RANLIB libconftest.a 2>&5
10690 cat > conftest.c << _LT_EOF
10691 int main(void) { return 0;}
10692 _LT_EOF
10693 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10694 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10695 _lt_result=$?
10696 if test -s conftest.err && $GREP force_load conftest.err; then
10697 cat conftest.err >&5
10698 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10699 lt_cv_ld_force_load=yes
10700 else
10701 cat conftest.err >&5
10702 fi
10703 rm -f conftest.err libconftest.a conftest conftest.c
10704 rm -rf conftest.dSYM
10705 ;;
10706 esac
10707 fi
10708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10709 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10710 case $host_os in
10711 rhapsody* | darwin1.[012])
10712 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10713 darwin1.*)
10714 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10715 darwin*)
10716 case $MACOSX_DEPLOYMENT_TARGET,$host in
10717 10.[012],*|,*powerpc*-darwin[5-8]*)
10718 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10719 *)
10720 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10721 if test yes = "$lt_cv_support_no_fixup_chains"; then
10722 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10723 fi
10724 ;;
10725 esac
10726 ;;
10727 esac
10728 if test yes = "$lt_cv_apple_cc_single_mod"; then
10729 _lt_dar_single_mod='$single_module'
10730 fi
10731 _lt_dar_needs_single_mod=no
10732 case $host_os in
10733 rhapsody* | darwin1.*)
10734 _lt_dar_needs_single_mod=yes ;;
10735 darwin*)
10736 # When targeting Mac OS X 10.4 (darwin 8) or later,
10737 # -single_module is the default and -multi_module is unsupported.
10738 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10739 # target any OS version that needs -single_module.
10740 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10741 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10742 _lt_dar_needs_single_mod=yes ;;
10743 esac
10744 ;;
10745 esac
10746 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10747 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10748 else
10749 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10750 fi
10751 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10752 _lt_dsymutil='~$DSYMUTIL $lib || :'
10753 else
10754 _lt_dsymutil=
10755 fi
10756 ;;
10757 esac
10758
10759 # func_munge_path_list VARIABLE PATH
10760 # -----------------------------------
10761 # VARIABLE is name of variable containing _space_ separated list of
10762 # directories to be munged by the contents of PATH, which is string
10763 # having a format:
10764 # "DIR[:DIR]:"
10765 # string "DIR[ DIR]" will be prepended to VARIABLE
10766 # ":DIR[:DIR]"
10767 # string "DIR[ DIR]" will be appended to VARIABLE
10768 # "DIRP[:DIRP]::[DIRA:]DIRA"
10769 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10770 # "DIRA[ DIRA]" will be appended to VARIABLE
10771 # "DIR[:DIR]"
10772 # VARIABLE will be replaced by "DIR[ DIR]"
10773 func_munge_path_list ()
10774 {
10775 case x$2 in
10776 x)
10777 ;;
10778 *:)
10779 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10780 ;;
10781 x:*)
10782 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10783 ;;
10784 *::*)
10785 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10786 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10787 ;;
10788 *)
10789 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10790 ;;
10791 esac
10792 }
10793
10794 ac_header= ac_cache=
10795 for ac_item in $ac_header_c_list
10796 do
10797 if test $ac_cache; then
10798 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
10799 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
10800 printf "%s\n" "#define $ac_item 1" >> confdefs.h
10801 fi
10802 ac_header= ac_cache=
10803 elif test $ac_header; then
10804 ac_cache=$ac_item
10805 else
10806 ac_header=$ac_item
10807 fi
10808 done
10809
10810
10811
10812
10813
10814
10815
10816
10817 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
10818 then :
10819
10820 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10821
10822 fi
10823 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10824 "
10825 if test "x$ac_cv_header_dlfcn_h" = xyes
10826 then :
10827 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10828
10829 fi
10830
10831
10832
10833 func_stripname_cnf ()
10834 {
10835 case $2 in
10836 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10837 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10838 esac
10839 } # func_stripname_cnf
10840
10841
10842
10843
10844
10845 # Set options
10846 enable_win32_dll=yes
10847
10848 case $host in
10849 *-*-cygwin* | *-*-mingw* | *-*-windows* | *-*-pw32* | *-*-cegcc*)
10850 if test -n "$ac_tool_prefix"; then
10851 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10852 set dummy ${ac_tool_prefix}as; ac_word=$2
10853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854 printf %s "checking for $ac_word... " >&6; }
10855 if test ${ac_cv_prog_AS+y}
10856 then :
10857 printf %s "(cached) " >&6
10858 else case e in #(
10859 e) if test -n "$AS"; then
10860 ac_cv_prog_AS="$AS" # Let the user override the test.
10861 else
10862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863 for as_dir in $PATH
10864 do
10865 IFS=$as_save_IFS
10866 case $as_dir in #(((
10867 '') as_dir=./ ;;
10868 */) ;;
10869 *) as_dir=$as_dir/ ;;
10870 esac
10871 for ac_exec_ext in '' $ac_executable_extensions; do
10872 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10873 ac_cv_prog_AS="${ac_tool_prefix}as"
10874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10875 break 2
10876 fi
10877 done
10878 done
10879 IFS=$as_save_IFS
10880
10881 fi ;;
10882 esac
10883 fi
10884 AS=$ac_cv_prog_AS
10885 if test -n "$AS"; then
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10887 printf "%s\n" "$AS" >&6; }
10888 else
10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 printf "%s\n" "no" >&6; }
10891 fi
10892
10893
10894 fi
10895 if test -z "$ac_cv_prog_AS"; then
10896 ac_ct_AS=$AS
10897 # Extract the first word of "as", so it can be a program name with args.
10898 set dummy as; ac_word=$2
10899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10900 printf %s "checking for $ac_word... " >&6; }
10901 if test ${ac_cv_prog_ac_ct_AS+y}
10902 then :
10903 printf %s "(cached) " >&6
10904 else case e in #(
10905 e) if test -n "$ac_ct_AS"; then
10906 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10907 else
10908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10909 for as_dir in $PATH
10910 do
10911 IFS=$as_save_IFS
10912 case $as_dir in #(((
10913 '') as_dir=./ ;;
10914 */) ;;
10915 *) as_dir=$as_dir/ ;;
10916 esac
10917 for ac_exec_ext in '' $ac_executable_extensions; do
10918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10919 ac_cv_prog_ac_ct_AS="as"
10920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10921 break 2
10922 fi
10923 done
10924 done
10925 IFS=$as_save_IFS
10926
10927 fi ;;
10928 esac
10929 fi
10930 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10931 if test -n "$ac_ct_AS"; then
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10933 printf "%s\n" "$ac_ct_AS" >&6; }
10934 else
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10936 printf "%s\n" "no" >&6; }
10937 fi
10938
10939 if test "x$ac_ct_AS" = x; then
10940 AS="false"
10941 else
10942 case $cross_compiling:$ac_tool_warned in
10943 yes:)
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10945 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10946 ac_tool_warned=yes ;;
10947 esac
10948 AS=$ac_ct_AS
10949 fi
10950 else
10951 AS="$ac_cv_prog_AS"
10952 fi
10953
10954 if test -n "$ac_tool_prefix"; then
10955 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10956 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10958 printf %s "checking for $ac_word... " >&6; }
10959 if test ${ac_cv_prog_DLLTOOL+y}
10960 then :
10961 printf %s "(cached) " >&6
10962 else case e in #(
10963 e) if test -n "$DLLTOOL"; then
10964 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10965 else
10966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10967 for as_dir in $PATH
10968 do
10969 IFS=$as_save_IFS
10970 case $as_dir in #(((
10971 '') as_dir=./ ;;
10972 */) ;;
10973 *) as_dir=$as_dir/ ;;
10974 esac
10975 for ac_exec_ext in '' $ac_executable_extensions; do
10976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10977 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10979 break 2
10980 fi
10981 done
10982 done
10983 IFS=$as_save_IFS
10984
10985 fi ;;
10986 esac
10987 fi
10988 DLLTOOL=$ac_cv_prog_DLLTOOL
10989 if test -n "$DLLTOOL"; then
10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10991 printf "%s\n" "$DLLTOOL" >&6; }
10992 else
10993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 printf "%s\n" "no" >&6; }
10995 fi
10996
10997
10998 fi
10999 if test -z "$ac_cv_prog_DLLTOOL"; then
11000 ac_ct_DLLTOOL=$DLLTOOL
11001 # Extract the first word of "dlltool", so it can be a program name with args.
11002 set dummy dlltool; ac_word=$2
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11004 printf %s "checking for $ac_word... " >&6; }
11005 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11006 then :
11007 printf %s "(cached) " >&6
11008 else case e in #(
11009 e) if test -n "$ac_ct_DLLTOOL"; then
11010 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11011 else
11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11013 for as_dir in $PATH
11014 do
11015 IFS=$as_save_IFS
11016 case $as_dir in #(((
11017 '') as_dir=./ ;;
11018 */) ;;
11019 *) as_dir=$as_dir/ ;;
11020 esac
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11023 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027 done
11028 done
11029 IFS=$as_save_IFS
11030
11031 fi ;;
11032 esac
11033 fi
11034 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11035 if test -n "$ac_ct_DLLTOOL"; then
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11037 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11038 else
11039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11040 printf "%s\n" "no" >&6; }
11041 fi
11042
11043 if test "x$ac_ct_DLLTOOL" = x; then
11044 DLLTOOL="false"
11045 else
11046 case $cross_compiling:$ac_tool_warned in
11047 yes:)
11048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11049 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11050 ac_tool_warned=yes ;;
11051 esac
11052 DLLTOOL=$ac_ct_DLLTOOL
11053 fi
11054 else
11055 DLLTOOL="$ac_cv_prog_DLLTOOL"
11056 fi
11057
11058 if test -n "$ac_tool_prefix"; then
11059 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11060 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11062 printf %s "checking for $ac_word... " >&6; }
11063 if test ${ac_cv_prog_OBJDUMP+y}
11064 then :
11065 printf %s "(cached) " >&6
11066 else case e in #(
11067 e) if test -n "$OBJDUMP"; then
11068 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11069 else
11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071 for as_dir in $PATH
11072 do
11073 IFS=$as_save_IFS
11074 case $as_dir in #(((
11075 '') as_dir=./ ;;
11076 */) ;;
11077 *) as_dir=$as_dir/ ;;
11078 esac
11079 for ac_exec_ext in '' $ac_executable_extensions; do
11080 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11081 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11083 break 2
11084 fi
11085 done
11086 done
11087 IFS=$as_save_IFS
11088
11089 fi ;;
11090 esac
11091 fi
11092 OBJDUMP=$ac_cv_prog_OBJDUMP
11093 if test -n "$OBJDUMP"; then
11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11095 printf "%s\n" "$OBJDUMP" >&6; }
11096 else
11097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 printf "%s\n" "no" >&6; }
11099 fi
11100
11101
11102 fi
11103 if test -z "$ac_cv_prog_OBJDUMP"; then
11104 ac_ct_OBJDUMP=$OBJDUMP
11105 # Extract the first word of "objdump", so it can be a program name with args.
11106 set dummy objdump; ac_word=$2
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 printf %s "checking for $ac_word... " >&6; }
11109 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11110 then :
11111 printf %s "(cached) " >&6
11112 else case e in #(
11113 e) if test -n "$ac_ct_OBJDUMP"; then
11114 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11115 else
11116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11118 do
11119 IFS=$as_save_IFS
11120 case $as_dir in #(((
11121 '') as_dir=./ ;;
11122 */) ;;
11123 *) as_dir=$as_dir/ ;;
11124 esac
11125 for ac_exec_ext in '' $ac_executable_extensions; do
11126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11127 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11129 break 2
11130 fi
11131 done
11132 done
11133 IFS=$as_save_IFS
11134
11135 fi ;;
11136 esac
11137 fi
11138 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11139 if test -n "$ac_ct_OBJDUMP"; then
11140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11141 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11142 else
11143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11144 printf "%s\n" "no" >&6; }
11145 fi
11146
11147 if test "x$ac_ct_OBJDUMP" = x; then
11148 OBJDUMP="false"
11149 else
11150 case $cross_compiling:$ac_tool_warned in
11151 yes:)
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11153 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11154 ac_tool_warned=yes ;;
11155 esac
11156 OBJDUMP=$ac_ct_OBJDUMP
11157 fi
11158 else
11159 OBJDUMP="$ac_cv_prog_OBJDUMP"
11160 fi
11161
11162 ;;
11163 esac
11164
11165 test -z "$AS" && AS=as
11166
11167
11168
11169
11170
11171 test -z "$DLLTOOL" && DLLTOOL=dlltool
11172
11173
11174
11175
11176
11177 test -z "$OBJDUMP" && OBJDUMP=objdump
11178
11179
11180
11181
11182 # Check whether --enable-static was given.
11183 if test ${enable_static+y}
11184 then :
11185 enableval=$enable_static; p=${PACKAGE-default}
11186 case $enableval in
11187 yes) enable_static=yes ;;
11188 no) enable_static=no ;;
11189 *)
11190 enable_static=no
11191 # Look at the argument we got. We use all the common list separators.
11192 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11193 for pkg in $enableval; do
11194 IFS=$lt_save_ifs
11195 if test "X$pkg" = "X$p"; then
11196 enable_static=yes
11197 fi
11198 done
11199 IFS=$lt_save_ifs
11200 ;;
11201 esac
11202 else case e in #(
11203 e) enable_static=no ;;
11204 esac
11205 fi
11206
11207
11208
11209
11210
11211
11212
11213 # Check whether --enable-pic was given.
11214 if test ${enable_pic+y}
11215 then :
11216 enableval=$enable_pic; lt_p=${PACKAGE-default}
11217 case $enableval in
11218 yes|no) pic_mode=$enableval ;;
11219 *)
11220 pic_mode=default
11221 # Look at the argument we got. We use all the common list separators.
11222 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11223 for lt_pkg in $enableval; do
11224 IFS=$lt_save_ifs
11225 if test "X$lt_pkg" = "X$lt_p"; then
11226 pic_mode=yes
11227 fi
11228 done
11229 IFS=$lt_save_ifs
11230 ;;
11231 esac
11232 else case e in #(
11233 e) # Check whether --with-pic was given.
11234 if test ${with_pic+y}
11235 then :
11236 withval=$with_pic; lt_p=${PACKAGE-default}
11237 case $withval in
11238 yes|no) pic_mode=$withval ;;
11239 *)
11240 pic_mode=default
11241 # Look at the argument we got. We use all the common list separators.
11242 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11243 for lt_pkg in $withval; do
11244 IFS=$lt_save_ifs
11245 if test "X$lt_pkg" = "X$lt_p"; then
11246 pic_mode=yes
11247 fi
11248 done
11249 IFS=$lt_save_ifs
11250 ;;
11251 esac
11252 else case e in #(
11253 e) pic_mode=yes ;;
11254 esac
11255 fi
11256
11257 ;;
11258 esac
11259 fi
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269 enable_dlopen=no
11270
11271
11272
11273 # Check whether --enable-shared was given.
11274 if test ${enable_shared+y}
11275 then :
11276 enableval=$enable_shared; p=${PACKAGE-default}
11277 case $enableval in
11278 yes) enable_shared=yes ;;
11279 no) enable_shared=no ;;
11280 *)
11281 enable_shared=no
11282 # Look at the argument we got. We use all the common list separators.
11283 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11284 for pkg in $enableval; do
11285 IFS=$lt_save_ifs
11286 if test "X$pkg" = "X$p"; then
11287 enable_shared=yes
11288 fi
11289 done
11290 IFS=$lt_save_ifs
11291 ;;
11292 esac
11293 else case e in #(
11294 e) enable_shared=yes ;;
11295 esac
11296 fi
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308 # Check whether --enable-fast-install was given.
11309 if test ${enable_fast_install+y}
11310 then :
11311 enableval=$enable_fast_install; p=${PACKAGE-default}
11312 case $enableval in
11313 yes) enable_fast_install=yes ;;
11314 no) enable_fast_install=no ;;
11315 *)
11316 enable_fast_install=no
11317 # Look at the argument we got. We use all the common list separators.
11318 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11319 for pkg in $enableval; do
11320 IFS=$lt_save_ifs
11321 if test "X$pkg" = "X$p"; then
11322 enable_fast_install=yes
11323 fi
11324 done
11325 IFS=$lt_save_ifs
11326 ;;
11327 esac
11328 else case e in #(
11329 e) enable_fast_install=yes ;;
11330 esac
11331 fi
11332
11333
11334
11335
11336
11337
11338
11339
11340 shared_archive_member_spec=
11341 case $host,$enable_shared in
11342 power*-*-aix[5-9]*,yes)
11343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11344 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11345 # Check whether --enable-aix-soname was given.
11346 if test ${enable_aix_soname+y}
11347 then :
11348 enableval=$enable_aix_soname; case $enableval in
11349 aix|svr4|both)
11350 ;;
11351 *)
11352 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11353 ;;
11354 esac
11355 lt_cv_with_aix_soname=$enable_aix_soname
11356 else case e in #(
11357 e) # Check whether --with-aix-soname was given.
11358 if test ${with_aix_soname+y}
11359 then :
11360 withval=$with_aix_soname; case $withval in
11361 aix|svr4|both)
11362 ;;
11363 *)
11364 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11365 ;;
11366 esac
11367 lt_cv_with_aix_soname=$with_aix_soname
11368 else case e in #(
11369 e) if test ${lt_cv_with_aix_soname+y}
11370 then :
11371 printf %s "(cached) " >&6
11372 else case e in #(
11373 e) lt_cv_with_aix_soname=aix ;;
11374 esac
11375 fi
11376 ;;
11377 esac
11378 fi
11379
11380 enable_aix_soname=$lt_cv_with_aix_soname ;;
11381 esac
11382 fi
11383
11384 with_aix_soname=$enable_aix_soname
11385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11386 printf "%s\n" "$with_aix_soname" >&6; }
11387 if test aix != "$with_aix_soname"; then
11388 # For the AIX way of multilib, we name the shared archive member
11389 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11390 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11391 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11392 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11393 if test 64 = "${OBJECT_MODE-32}"; then
11394 shared_archive_member_spec=shr_64
11395 else
11396 shared_archive_member_spec=shr
11397 fi
11398 fi
11399 ;;
11400 *)
11401 with_aix_soname=aix
11402 ;;
11403 esac
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414 # This can be used to rebuild libtool when needed
11415 LIBTOOL_DEPS=$ltmain
11416
11417 # Always use our own libtool.
11418 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449 test -z "$LN_S" && LN_S="ln -s"
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464 if test -n "${ZSH_VERSION+set}"; then
11465 setopt NO_GLOB_SUBST
11466 fi
11467
11468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11469 printf %s "checking for objdir... " >&6; }
11470 if test ${lt_cv_objdir+y}
11471 then :
11472 printf %s "(cached) " >&6
11473 else case e in #(
11474 e) rm -f .libs 2>/dev/null
11475 mkdir .libs 2>/dev/null
11476 if test -d .libs; then
11477 lt_cv_objdir=.libs
11478 else
11479 # MS-DOS does not allow filenames that begin with a dot.
11480 lt_cv_objdir=_libs
11481 fi
11482 rmdir .libs 2>/dev/null ;;
11483 esac
11484 fi
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11486 printf "%s\n" "$lt_cv_objdir" >&6; }
11487 objdir=$lt_cv_objdir
11488
11489
11490
11491
11492
11493 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11494
11495
11496
11497
11498 case $host_os in
11499 aix3*)
11500 # AIX sometimes has problems with the GCC collect2 program. For some
11501 # reason, if we set the COLLECT_NAMES environment variable, the problems
11502 # vanish in a puff of smoke.
11503 if test set != "${COLLECT_NAMES+set}"; then
11504 COLLECT_NAMES=
11505 export COLLECT_NAMES
11506 fi
11507 ;;
11508 esac
11509
11510 # Global variables:
11511 ofile=libtool
11512 can_build_shared=yes
11513
11514 # All known linkers require a '.a' archive for static linking (except MSVC and
11515 # ICC, which need '.lib').
11516 libext=a
11517
11518 with_gnu_ld=$lt_cv_prog_gnu_ld
11519
11520 old_CC=$CC
11521 old_CFLAGS=$CFLAGS
11522
11523 # Set sane defaults for various variables
11524 test -z "$CC" && CC=cc
11525 test -z "$LTCC" && LTCC=$CC
11526 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11527 test -z "$LD" && LD=ld
11528 test -z "$ac_objext" && ac_objext=o
11529
11530 func_cc_basename $compiler
11531 cc_basename=$func_cc_basename_result
11532
11533
11534 # Only perform the check for file, if the check method requires it
11535 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11536 case $deplibs_check_method in
11537 file_magic*)
11538 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11540 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11541 if test ${lt_cv_path_MAGIC_CMD+y}
11542 then :
11543 printf %s "(cached) " >&6
11544 else case e in #(
11545 e) case $MAGIC_CMD in
11546 [\\/*] | ?:[\\/]*)
11547 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11548 ;;
11549 *)
11550 lt_save_MAGIC_CMD=$MAGIC_CMD
11551 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11552 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11553 for ac_dir in $ac_dummy; do
11554 IFS=$lt_save_ifs
11555 test -z "$ac_dir" && ac_dir=.
11556 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11557 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11558 if test -n "$file_magic_test_file"; then
11559 case $deplibs_check_method in
11560 "file_magic "*)
11561 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11562 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11563 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11564 $EGREP "$file_magic_regex" > /dev/null; then
11565 :
11566 else
11567 cat <<_LT_EOF 1>&2
11568
11569 *** Warning: the command libtool uses to detect shared libraries,
11570 *** $file_magic_cmd, produces output that libtool cannot recognize.
11571 *** The result is that libtool may fail to recognize shared libraries
11572 *** as such. This will affect the creation of libtool libraries that
11573 *** depend on shared libraries, but programs linked with such libtool
11574 *** libraries will work regardless of this problem. Nevertheless, you
11575 *** may want to report the problem to your system manager and/or to
11576 *** [email protected]
11577
11578 _LT_EOF
11579 fi ;;
11580 esac
11581 fi
11582 break
11583 fi
11584 done
11585 IFS=$lt_save_ifs
11586 MAGIC_CMD=$lt_save_MAGIC_CMD
11587 ;;
11588 esac ;;
11589 esac
11590 fi
11591
11592 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11593 if test -n "$MAGIC_CMD"; then
11594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11595 printf "%s\n" "$MAGIC_CMD" >&6; }
11596 else
11597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 printf "%s\n" "no" >&6; }
11599 fi
11600
11601
11602
11603
11604
11605 if test -z "$lt_cv_path_MAGIC_CMD"; then
11606 if test -n "$ac_tool_prefix"; then
11607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11608 printf %s "checking for file... " >&6; }
11609 if test ${lt_cv_path_MAGIC_CMD+y}
11610 then :
11611 printf %s "(cached) " >&6
11612 else case e in #(
11613 e) case $MAGIC_CMD in
11614 [\\/*] | ?:[\\/]*)
11615 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11616 ;;
11617 *)
11618 lt_save_MAGIC_CMD=$MAGIC_CMD
11619 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11621 for ac_dir in $ac_dummy; do
11622 IFS=$lt_save_ifs
11623 test -z "$ac_dir" && ac_dir=.
11624 if test -f "$ac_dir/file"; then
11625 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11626 if test -n "$file_magic_test_file"; then
11627 case $deplibs_check_method in
11628 "file_magic "*)
11629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11630 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11632 $EGREP "$file_magic_regex" > /dev/null; then
11633 :
11634 else
11635 cat <<_LT_EOF 1>&2
11636
11637 *** Warning: the command libtool uses to detect shared libraries,
11638 *** $file_magic_cmd, produces output that libtool cannot recognize.
11639 *** The result is that libtool may fail to recognize shared libraries
11640 *** as such. This will affect the creation of libtool libraries that
11641 *** depend on shared libraries, but programs linked with such libtool
11642 *** libraries will work regardless of this problem. Nevertheless, you
11643 *** may want to report the problem to your system manager and/or to
11644 *** [email protected]
11645
11646 _LT_EOF
11647 fi ;;
11648 esac
11649 fi
11650 break
11651 fi
11652 done
11653 IFS=$lt_save_ifs
11654 MAGIC_CMD=$lt_save_MAGIC_CMD
11655 ;;
11656 esac ;;
11657 esac
11658 fi
11659
11660 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11661 if test -n "$MAGIC_CMD"; then
11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11663 printf "%s\n" "$MAGIC_CMD" >&6; }
11664 else
11665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 printf "%s\n" "no" >&6; }
11667 fi
11668
11669
11670 else
11671 MAGIC_CMD=:
11672 fi
11673 fi
11674
11675 fi
11676 ;;
11677 esac
11678
11679 # Use C for the default configuration in the libtool script
11680
11681 lt_save_CC=$CC
11682 ac_ext=c
11683 ac_cpp='$CPP $CPPFLAGS'
11684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11687
11688
11689 # Source file extension for C test sources.
11690 ac_ext=c
11691
11692 # Object file extension for compiled C test sources.
11693 objext=o
11694 objext=$objext
11695
11696 # Code to be used in simple compile tests
11697 lt_simple_compile_test_code="int some_variable = 0;"
11698
11699 # Code to be used in simple link tests
11700 lt_simple_link_test_code='int main(void){return(0);}'
11701
11702
11703
11704
11705
11706
11707
11708 # If no C compiler was specified, use CC.
11709 LTCC=${LTCC-"$CC"}
11710
11711 # If no C compiler flags were specified, use CFLAGS.
11712 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11713
11714 # Allow CC to be a program name with arguments.
11715 compiler=$CC
11716
11717 # Save the default compiler, since it gets overwritten when the other
11718 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11719 compiler_DEFAULT=$CC
11720
11721 # save warnings/boilerplate of simple test code
11722 ac_outfile=conftest.$ac_objext
11723 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11724 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11725 _lt_compiler_boilerplate=`cat conftest.err`
11726 $RM conftest*
11727
11728 ac_outfile=conftest.$ac_objext
11729 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11730 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11731 _lt_linker_boilerplate=`cat conftest.err`
11732 $RM -r conftest*
11733
11734
11735 ## CAVEAT EMPTOR:
11736 ## There is no encapsulation within the following macros, do not change
11737 ## the running order or otherwise move them around unless you know exactly
11738 ## what you are doing...
11739 if test -n "$compiler"; then
11740
11741 lt_prog_compiler_no_builtin_flag=
11742
11743 if test yes = "$GCC"; then
11744 case $cc_basename in
11745 nvcc*)
11746 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11747 *)
11748 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11749 esac
11750
11751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11752 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11753 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11754 then :
11755 printf %s "(cached) " >&6
11756 else case e in #(
11757 e) lt_cv_prog_compiler_rtti_exceptions=no
11758 ac_outfile=conftest.$ac_objext
11759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11760 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11761 # Insert the option either (1) after the last *FLAGS variable, or
11762 # (2) before a word containing "conftest.", or (3) at the end.
11763 # Note that $ac_compile itself does not contain backslashes and begins
11764 # with a dollar sign (not a hyphen), so the echo should work correctly.
11765 # The option is referenced via a variable to avoid confusing sed.
11766 lt_compile=`echo "$ac_compile" | $SED \
11767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11769 -e 's:$: $lt_compiler_flag:'`
11770 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11771 (eval "$lt_compile" 2>conftest.err)
11772 ac_status=$?
11773 cat conftest.err >&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 if (exit $ac_status) && test -s "$ac_outfile"; then
11776 # The compiler can only warn and ignore the option if not recognized
11777 # So say no if there are warnings other than the usual output.
11778 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11780 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11781 lt_cv_prog_compiler_rtti_exceptions=yes
11782 fi
11783 fi
11784 $RM conftest*
11785 ;;
11786 esac
11787 fi
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11789 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11790
11791 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11793 else
11794 :
11795 fi
11796
11797 fi
11798
11799
11800
11801
11802
11803
11804 lt_prog_compiler_wl=
11805 lt_prog_compiler_pic=
11806 lt_prog_compiler_static=
11807
11808
11809 if test yes = "$GCC"; then
11810 lt_prog_compiler_wl='-Wl,'
11811 lt_prog_compiler_static='-static'
11812
11813 case $host_os in
11814 aix*)
11815 # All AIX code is PIC.
11816 if test ia64 = "$host_cpu"; then
11817 # AIX 5 now supports IA64 processor
11818 lt_prog_compiler_static='-Bstatic'
11819 fi
11820 lt_prog_compiler_pic='-fPIC'
11821 ;;
11822
11823 amigaos*)
11824 case $host_cpu in
11825 powerpc)
11826 # see comment about AmigaOS4 .so support
11827 lt_prog_compiler_pic='-fPIC'
11828 ;;
11829 m68k)
11830 # FIXME: we need at least 68020 code to build shared libraries, but
11831 # adding the '-m68020' flag to GCC prevents building anything better,
11832 # like '-m68040'.
11833 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11834 ;;
11835 esac
11836 ;;
11837
11838 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11839 # PIC is the default for these OSes.
11840 ;;
11841
11842 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11843 # This hack is so that the source file can tell whether it is being
11844 # built for inclusion in a dll (and should export symbols for example).
11845 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11846 # (--disable-auto-import) libraries
11847 lt_prog_compiler_pic='-DDLL_EXPORT'
11848 case $host_os in
11849 os2*)
11850 lt_prog_compiler_static='$wl-static'
11851 ;;
11852 esac
11853 ;;
11854
11855 darwin* | rhapsody*)
11856 # PIC is the default on this platform
11857 # Common symbols not allowed in MH_DYLIB files
11858 lt_prog_compiler_pic='-fno-common'
11859 ;;
11860
11861 haiku*)
11862 # PIC is the default for Haiku.
11863 # The "-static" flag exists, but is broken.
11864 lt_prog_compiler_static=
11865 ;;
11866
11867 hpux*)
11868 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11869 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11870 # sets the default TLS model and affects inlining.
11871 case $host_cpu in
11872 hppa*64*)
11873 # +Z the default
11874 ;;
11875 *)
11876 lt_prog_compiler_pic='-fPIC'
11877 ;;
11878 esac
11879 ;;
11880
11881 interix[3-9]*)
11882 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11883 # Instead, we relocate shared libraries at runtime.
11884 ;;
11885
11886 msdosdjgpp*)
11887 # Just because we use GCC doesn't mean we suddenly get shared libraries
11888 # on systems that don't support them.
11889 lt_prog_compiler_can_build_shared=no
11890 enable_shared=no
11891 ;;
11892
11893 *nto* | *qnx*)
11894 # QNX uses GNU C++, but need to define -shared option too, otherwise
11895 # it will coredump.
11896 lt_prog_compiler_pic='-fPIC -shared'
11897 ;;
11898
11899 sysv4*MP*)
11900 if test -d /usr/nec; then
11901 lt_prog_compiler_pic=-Kconform_pic
11902 fi
11903 ;;
11904
11905 *)
11906 lt_prog_compiler_pic='-fPIC'
11907 ;;
11908 esac
11909
11910 case $cc_basename in
11911 nvcc*) # Cuda Compiler Driver 2.2
11912 lt_prog_compiler_wl='-Xlinker '
11913 if test -n "$lt_prog_compiler_pic"; then
11914 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11915 fi
11916 ;;
11917 esac
11918 else
11919 # PORTME Check for flag to pass linker flags through the system compiler.
11920 case $host_os in
11921 aix*)
11922 lt_prog_compiler_wl='-Wl,'
11923 if test ia64 = "$host_cpu"; then
11924 # AIX 5 now supports IA64 processor
11925 lt_prog_compiler_static='-Bstatic'
11926 else
11927 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11928 fi
11929 ;;
11930
11931 darwin* | rhapsody*)
11932 # PIC is the default on this platform
11933 # Common symbols not allowed in MH_DYLIB files
11934 lt_prog_compiler_pic='-fno-common'
11935 case $cc_basename in
11936 nagfor*)
11937 # NAG Fortran compiler
11938 lt_prog_compiler_wl='-Wl,-Wl,,'
11939 lt_prog_compiler_pic='-PIC'
11940 lt_prog_compiler_static='-Bstatic'
11941 ;;
11942 esac
11943 ;;
11944
11945 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11946 # This hack is so that the source file can tell whether it is being
11947 # built for inclusion in a dll (and should export symbols for example).
11948 lt_prog_compiler_pic='-DDLL_EXPORT'
11949 case $host_os in
11950 os2*)
11951 lt_prog_compiler_static='$wl-static'
11952 ;;
11953 esac
11954 ;;
11955
11956 hpux9* | hpux10* | hpux11*)
11957 lt_prog_compiler_wl='-Wl,'
11958 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11959 # not for PA HP-UX.
11960 case $host_cpu in
11961 hppa*64*|ia64*)
11962 # +Z the default
11963 ;;
11964 *)
11965 lt_prog_compiler_pic='+Z'
11966 ;;
11967 esac
11968 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11969 lt_prog_compiler_static='$wl-a ${wl}archive'
11970 ;;
11971
11972 irix5* | irix6* | nonstopux*)
11973 lt_prog_compiler_wl='-Wl,'
11974 # PIC (with -KPIC) is the default.
11975 lt_prog_compiler_static='-non_shared'
11976 ;;
11977
11978 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11979 case $cc_basename in
11980 # old Intel for x86_64, which still supported -KPIC.
11981 ecc*)
11982 lt_prog_compiler_wl='-Wl,'
11983 lt_prog_compiler_pic='-KPIC'
11984 lt_prog_compiler_static='-static'
11985 ;;
11986 *flang* | ftn | f18* | f95*)
11987 # Flang compiler.
11988 lt_prog_compiler_wl='-Wl,'
11989 lt_prog_compiler_pic='-fPIC'
11990 lt_prog_compiler_static='-static'
11991 ;;
11992 # flang / f18. f95 an alias for gfortran or flang on Debian
11993 flang* | f18* | f95*)
11994 lt_prog_compiler_wl='-Wl,'
11995 lt_prog_compiler_pic='-fPIC'
11996 lt_prog_compiler_static='-static'
11997 ;;
11998 # icc used to be incompatible with GCC.
11999 # ICC 10 doesn't accept -KPIC any more.
12000 icc* | ifort*)
12001 lt_prog_compiler_wl='-Wl,'
12002 lt_prog_compiler_pic='-fPIC'
12003 lt_prog_compiler_static='-static'
12004 ;;
12005 # Lahey Fortran 8.1.
12006 lf95*)
12007 lt_prog_compiler_wl='-Wl,'
12008 lt_prog_compiler_pic='--shared'
12009 lt_prog_compiler_static='--static'
12010 ;;
12011 nagfor*)
12012 # NAG Fortran compiler
12013 lt_prog_compiler_wl='-Wl,-Wl,,'
12014 lt_prog_compiler_pic='-PIC'
12015 lt_prog_compiler_static='-Bstatic'
12016 ;;
12017 tcc*)
12018 # Fabrice Bellard et al's Tiny C Compiler
12019 lt_prog_compiler_wl='-Wl,'
12020 lt_prog_compiler_pic='-fPIC'
12021 lt_prog_compiler_static='-static'
12022 ;;
12023 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12024 # Portland Group compilers (*not* the Pentium gcc compiler,
12025 # which looks to be a dead project)
12026 lt_prog_compiler_wl='-Wl,'
12027 lt_prog_compiler_pic='-fpic'
12028 lt_prog_compiler_static='-Bstatic'
12029 ;;
12030 ccc*)
12031 lt_prog_compiler_wl='-Wl,'
12032 # All Alpha code is PIC.
12033 lt_prog_compiler_static='-non_shared'
12034 ;;
12035 xl* | bgxl* | bgf* | mpixl*)
12036 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12037 lt_prog_compiler_wl='-Wl,'
12038 lt_prog_compiler_pic='-qpic'
12039 lt_prog_compiler_static='-qstaticlink'
12040 ;;
12041 *)
12042 case `$CC -V 2>&1 | $SED 5q` in
12043 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12044 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12045 lt_prog_compiler_pic='-KPIC'
12046 lt_prog_compiler_static='-Bstatic'
12047 lt_prog_compiler_wl=''
12048 ;;
12049 *Sun\ F* | *Sun*Fortran*)
12050 lt_prog_compiler_pic='-KPIC'
12051 lt_prog_compiler_static='-Bstatic'
12052 lt_prog_compiler_wl='-Qoption ld '
12053 ;;
12054 *Sun\ C*)
12055 # Sun C 5.9
12056 lt_prog_compiler_pic='-KPIC'
12057 lt_prog_compiler_static='-Bstatic'
12058 lt_prog_compiler_wl='-Wl,'
12059 ;;
12060 *Intel*\ [CF]*Compiler*)
12061 lt_prog_compiler_wl='-Wl,'
12062 lt_prog_compiler_pic='-fPIC'
12063 lt_prog_compiler_static='-static'
12064 ;;
12065 *Portland\ Group*)
12066 lt_prog_compiler_wl='-Wl,'
12067 lt_prog_compiler_pic='-fpic'
12068 lt_prog_compiler_static='-Bstatic'
12069 ;;
12070 esac
12071 ;;
12072 esac
12073 ;;
12074
12075 newsos6)
12076 lt_prog_compiler_pic='-KPIC'
12077 lt_prog_compiler_static='-Bstatic'
12078 ;;
12079
12080 *-mlibc)
12081 lt_prog_compiler_wl='-Wl,'
12082 lt_prog_compiler_pic='-fPIC'
12083 lt_prog_compiler_static='-static'
12084 ;;
12085
12086 *nto* | *qnx*)
12087 # QNX uses GNU C++, but need to define -shared option too, otherwise
12088 # it will coredump.
12089 lt_prog_compiler_pic='-fPIC -shared'
12090 ;;
12091
12092 osf3* | osf4* | osf5*)
12093 lt_prog_compiler_wl='-Wl,'
12094 # All OSF/1 code is PIC.
12095 lt_prog_compiler_static='-non_shared'
12096 ;;
12097
12098 rdos*)
12099 lt_prog_compiler_static='-non_shared'
12100 ;;
12101
12102 serenity*)
12103 ;;
12104
12105 solaris*)
12106 lt_prog_compiler_pic='-KPIC'
12107 lt_prog_compiler_static='-Bstatic'
12108 case $cc_basename in
12109 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12110 lt_prog_compiler_wl='-Qoption ld ';;
12111 *)
12112 lt_prog_compiler_wl='-Wl,';;
12113 esac
12114 ;;
12115
12116 sunos4*)
12117 lt_prog_compiler_wl='-Qoption ld '
12118 lt_prog_compiler_pic='-PIC'
12119 lt_prog_compiler_static='-Bstatic'
12120 ;;
12121
12122 sysv4 | sysv4.2uw2* | sysv4.3*)
12123 lt_prog_compiler_wl='-Wl,'
12124 lt_prog_compiler_pic='-KPIC'
12125 lt_prog_compiler_static='-Bstatic'
12126 ;;
12127
12128 sysv4*MP*)
12129 if test -d /usr/nec; then
12130 lt_prog_compiler_pic='-Kconform_pic'
12131 lt_prog_compiler_static='-Bstatic'
12132 fi
12133 ;;
12134
12135 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12136 lt_prog_compiler_wl='-Wl,'
12137 lt_prog_compiler_pic='-KPIC'
12138 lt_prog_compiler_static='-Bstatic'
12139 ;;
12140
12141 unicos*)
12142 lt_prog_compiler_wl='-Wl,'
12143 lt_prog_compiler_can_build_shared=no
12144 ;;
12145
12146 uts4*)
12147 lt_prog_compiler_pic='-pic'
12148 lt_prog_compiler_static='-Bstatic'
12149 ;;
12150
12151 *)
12152 lt_prog_compiler_can_build_shared=no
12153 ;;
12154 esac
12155 fi
12156
12157 case $host_os in
12158 # For platforms that do not support PIC, -DPIC is meaningless:
12159 *djgpp*)
12160 lt_prog_compiler_pic=
12161 ;;
12162 *)
12163 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12164 ;;
12165 esac
12166
12167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12168 printf %s "checking for $compiler option to produce PIC... " >&6; }
12169 if test ${lt_cv_prog_compiler_pic+y}
12170 then :
12171 printf %s "(cached) " >&6
12172 else case e in #(
12173 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12174 esac
12175 fi
12176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12177 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12178 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12179
12180 #
12181 # Check to make sure the PIC flag actually works.
12182 #
12183 if test -n "$lt_prog_compiler_pic"; then
12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12185 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12186 if test ${lt_cv_prog_compiler_pic_works+y}
12187 then :
12188 printf %s "(cached) " >&6
12189 else case e in #(
12190 e) lt_cv_prog_compiler_pic_works=no
12191 ac_outfile=conftest.$ac_objext
12192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12193 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12194 # Insert the option either (1) after the last *FLAGS variable, or
12195 # (2) before a word containing "conftest.", or (3) at the end.
12196 # Note that $ac_compile itself does not contain backslashes and begins
12197 # with a dollar sign (not a hyphen), so the echo should work correctly.
12198 # The option is referenced via a variable to avoid confusing sed.
12199 lt_compile=`echo "$ac_compile" | $SED \
12200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12202 -e 's:$: $lt_compiler_flag:'`
12203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12204 (eval "$lt_compile" 2>conftest.err)
12205 ac_status=$?
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 if (exit $ac_status) && test -s "$ac_outfile"; then
12209 # The compiler can only warn and ignore the option if not recognized
12210 # So say no if there are warnings other than the usual output.
12211 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12212 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12213 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12214 lt_cv_prog_compiler_pic_works=yes
12215 fi
12216 fi
12217 $RM conftest*
12218 ;;
12219 esac
12220 fi
12221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12222 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12223
12224 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12225 case $lt_prog_compiler_pic in
12226 "" | " "*) ;;
12227 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12228 esac
12229 else
12230 lt_prog_compiler_pic=
12231 lt_prog_compiler_can_build_shared=no
12232 fi
12233
12234 fi
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246 #
12247 # Check to make sure the static flag actually works.
12248 #
12249 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12251 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12252 if test ${lt_cv_prog_compiler_static_works+y}
12253 then :
12254 printf %s "(cached) " >&6
12255 else case e in #(
12256 e) lt_cv_prog_compiler_static_works=no
12257 save_LDFLAGS=$LDFLAGS
12258 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12259 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12260 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12261 # The linker can only warn and ignore the option if not recognized
12262 # So say no if there are warnings
12263 if test -s conftest.err; then
12264 # Append any errors to the config.log.
12265 cat conftest.err 1>&5
12266 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12267 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12268 if diff conftest.exp conftest.er2 >/dev/null; then
12269 lt_cv_prog_compiler_static_works=yes
12270 fi
12271 else
12272 lt_cv_prog_compiler_static_works=yes
12273 fi
12274 fi
12275 $RM -r conftest*
12276 LDFLAGS=$save_LDFLAGS
12277 ;;
12278 esac
12279 fi
12280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12281 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12282
12283 if test yes = "$lt_cv_prog_compiler_static_works"; then
12284 :
12285 else
12286 lt_prog_compiler_static=
12287 fi
12288
12289
12290
12291
12292
12293
12294
12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12296 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12297 if test ${lt_cv_prog_compiler_c_o+y}
12298 then :
12299 printf %s "(cached) " >&6
12300 else case e in #(
12301 e) lt_cv_prog_compiler_c_o=no
12302 $RM -r conftest 2>/dev/null
12303 mkdir conftest
12304 cd conftest
12305 mkdir out
12306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12307
12308 lt_compiler_flag="-o out/conftest2.$ac_objext"
12309 # Insert the option either (1) after the last *FLAGS variable, or
12310 # (2) before a word containing "conftest.", or (3) at the end.
12311 # Note that $ac_compile itself does not contain backslashes and begins
12312 # with a dollar sign (not a hyphen), so the echo should work correctly.
12313 lt_compile=`echo "$ac_compile" | $SED \
12314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12316 -e 's:$: $lt_compiler_flag:'`
12317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12318 (eval "$lt_compile" 2>out/conftest.err)
12319 ac_status=$?
12320 cat out/conftest.err >&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12323 then
12324 # The compiler can only warn and ignore the option if not recognized
12325 # So say no if there are warnings
12326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12327 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12328 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12329 lt_cv_prog_compiler_c_o=yes
12330 fi
12331 fi
12332 chmod u+w . 2>&5
12333 $RM conftest*
12334 # SGI C++ compiler will create directory out/ii_files/ for
12335 # template instantiation
12336 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12337 $RM out/* && rmdir out
12338 cd ..
12339 $RM -r conftest
12340 $RM conftest*
12341 ;;
12342 esac
12343 fi
12344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12345 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12346
12347
12348
12349
12350
12351
12352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12353 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12354 if test ${lt_cv_prog_compiler_c_o+y}
12355 then :
12356 printf %s "(cached) " >&6
12357 else case e in #(
12358 e) lt_cv_prog_compiler_c_o=no
12359 $RM -r conftest 2>/dev/null
12360 mkdir conftest
12361 cd conftest
12362 mkdir out
12363 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12364
12365 lt_compiler_flag="-o out/conftest2.$ac_objext"
12366 # Insert the option either (1) after the last *FLAGS variable, or
12367 # (2) before a word containing "conftest.", or (3) at the end.
12368 # Note that $ac_compile itself does not contain backslashes and begins
12369 # with a dollar sign (not a hyphen), so the echo should work correctly.
12370 lt_compile=`echo "$ac_compile" | $SED \
12371 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12373 -e 's:$: $lt_compiler_flag:'`
12374 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12375 (eval "$lt_compile" 2>out/conftest.err)
12376 ac_status=$?
12377 cat out/conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12380 then
12381 # The compiler can only warn and ignore the option if not recognized
12382 # So say no if there are warnings
12383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12384 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12385 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12386 lt_cv_prog_compiler_c_o=yes
12387 fi
12388 fi
12389 chmod u+w . 2>&5
12390 $RM conftest*
12391 # SGI C++ compiler will create directory out/ii_files/ for
12392 # template instantiation
12393 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12394 $RM out/* && rmdir out
12395 cd ..
12396 $RM -r conftest
12397 $RM conftest*
12398 ;;
12399 esac
12400 fi
12401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12402 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12403
12404
12405
12406
12407 hard_links=nottested
12408 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12409 # do not overwrite the value of need_locks provided by the user
12410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12411 printf %s "checking if we can lock with hard links... " >&6; }
12412 hard_links=yes
12413 $RM conftest*
12414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12415 touch conftest.a
12416 ln conftest.a conftest.b 2>&5 || hard_links=no
12417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12419 printf "%s\n" "$hard_links" >&6; }
12420 if test no = "$hard_links"; then
12421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12422 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12423 need_locks=warn
12424 fi
12425 else
12426 need_locks=no
12427 fi
12428
12429
12430
12431
12432
12433
12434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12435 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12436
12437 runpath_var=
12438 allow_undefined_flag=
12439 always_export_symbols=no
12440 archive_cmds=
12441 archive_expsym_cmds=
12442 compiler_needs_object=no
12443 enable_shared_with_static_runtimes=no
12444 export_dynamic_flag_spec=
12445 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12446 hardcode_automatic=no
12447 hardcode_direct=no
12448 hardcode_direct_absolute=no
12449 hardcode_libdir_flag_spec=
12450 hardcode_libdir_separator=
12451 hardcode_minus_L=no
12452 hardcode_shlibpath_var=unsupported
12453 inherit_rpath=no
12454 link_all_deplibs=unknown
12455 module_cmds=
12456 module_expsym_cmds=
12457 old_archive_from_new_cmds=
12458 old_archive_from_expsyms_cmds=
12459 thread_safe_flag_spec=
12460 whole_archive_flag_spec=
12461 # include_expsyms should be a list of space-separated symbols to be *always*
12462 # included in the symbol list
12463 include_expsyms=
12464 # exclude_expsyms can be an extended regexp of symbols to exclude
12465 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12466 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12467 # as well as any symbol that contains 'd'.
12468 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12469 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12470 # platforms (ab)use it in PIC code, but their linkers get confused if
12471 # the symbol is explicitly referenced. Since portable code cannot
12472 # rely on this symbol name, it's probably fine to never include it in
12473 # preloaded symbol tables.
12474 # Exclude shared library initialization/finalization symbols.
12475 extract_expsyms_cmds=
12476
12477 case $host_os in
12478 cygwin* | mingw* | windows* | pw32* | cegcc*)
12479 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12480 # When not using gcc, we currently assume that we are using
12481 # Microsoft Visual C++ or Intel C++ Compiler.
12482 if test yes != "$GCC"; then
12483 with_gnu_ld=no
12484 fi
12485 ;;
12486 interix*)
12487 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12488 with_gnu_ld=yes
12489 ;;
12490 linux* | k*bsd*-gnu | gnu*)
12491 link_all_deplibs=no
12492 ;;
12493 esac
12494
12495 ld_shlibs=yes
12496
12497 # On some targets, GNU ld is compatible enough with the native linker
12498 # that we're better off using the native interface for both.
12499 lt_use_gnu_ld_interface=no
12500 if test yes = "$with_gnu_ld"; then
12501 case $host_os in
12502 aix*)
12503 # The AIX port of GNU ld has always aspired to compatibility
12504 # with the native linker. However, as the warning in the GNU ld
12505 # block says, versions before 2.19.5* couldn't really create working
12506 # shared libraries, regardless of the interface used.
12507 case `$LD -v 2>&1` in
12508 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12509 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12510 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12511 *)
12512 lt_use_gnu_ld_interface=yes
12513 ;;
12514 esac
12515 ;;
12516 *)
12517 lt_use_gnu_ld_interface=yes
12518 ;;
12519 esac
12520 fi
12521
12522 if test yes = "$lt_use_gnu_ld_interface"; then
12523 # If archive_cmds runs LD, not CC, wlarc should be empty
12524 wlarc='$wl'
12525
12526 # Set some defaults for GNU ld with shared library support. These
12527 # are reset later if shared libraries are not supported. Putting them
12528 # here allows them to be overridden if necessary.
12529 runpath_var=LD_RUN_PATH
12530 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12531 export_dynamic_flag_spec='$wl--export-dynamic'
12532 # ancient GNU ld didn't support --whole-archive et. al.
12533 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12534 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12535 else
12536 whole_archive_flag_spec=
12537 fi
12538 supports_anon_versioning=no
12539 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12540 *GNU\ gold*) supports_anon_versioning=yes ;;
12541 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12542 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12543 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12544 *\ 2.11.*) ;; # other 2.11 versions
12545 *) supports_anon_versioning=yes ;;
12546 esac
12547
12548 # See if GNU ld supports shared libraries.
12549 case $host_os in
12550 aix[3-9]*)
12551 # On AIX/PPC, the GNU linker is very broken
12552 if test ia64 != "$host_cpu"; then
12553 ld_shlibs=no
12554 cat <<_LT_EOF 1>&2
12555
12556 *** Warning: the GNU linker, at least up to release 2.19, is reported
12557 *** to be unable to reliably create shared libraries on AIX.
12558 *** Therefore, libtool is disabling shared libraries support. If you
12559 *** really care for shared libraries, you may want to install binutils
12560 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12561 *** You will then need to restart the configuration process.
12562
12563 _LT_EOF
12564 fi
12565 ;;
12566
12567 amigaos*)
12568 case $host_cpu in
12569 powerpc)
12570 # see comment about AmigaOS4 .so support
12571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12572 archive_expsym_cmds=''
12573 ;;
12574 m68k)
12575 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)'
12576 hardcode_libdir_flag_spec='-L$libdir'
12577 hardcode_minus_L=yes
12578 ;;
12579 esac
12580 ;;
12581
12582 beos*)
12583 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12584 allow_undefined_flag=unsupported
12585 # Joseph Beckenbach <[email protected]> says some releases of gcc
12586 # support --undefined. This deserves some investigation. FIXME
12587 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12588 else
12589 ld_shlibs=no
12590 fi
12591 ;;
12592
12593 cygwin* | mingw* | windows* | pw32* | cegcc*)
12594 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12595 # as there is no search path for DLLs.
12596 hardcode_libdir_flag_spec='-L$libdir'
12597 export_dynamic_flag_spec='$wl--export-all-symbols'
12598 allow_undefined_flag=unsupported
12599 always_export_symbols=no
12600 enable_shared_with_static_runtimes=yes
12601 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'
12602 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12603 file_list_spec='@'
12604
12605 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12607 # If the export-symbols file already is a .def file, use it as
12608 # is; otherwise, prepend EXPORTS...
12609 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12610 cp $export_symbols $output_objdir/$soname.def;
12611 else
12612 echo EXPORTS > $output_objdir/$soname.def;
12613 cat $export_symbols >> $output_objdir/$soname.def;
12614 fi~
12615 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12616 else
12617 ld_shlibs=no
12618 fi
12619 ;;
12620
12621 haiku*)
12622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12623 link_all_deplibs=no
12624 ;;
12625
12626 os2*)
12627 hardcode_libdir_flag_spec='-L$libdir'
12628 hardcode_minus_L=yes
12629 allow_undefined_flag=unsupported
12630 shrext_cmds=.dll
12631 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12632 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12633 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12634 $ECHO EXPORTS >> $output_objdir/$libname.def~
12635 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12636 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12637 emximp -o $lib $output_objdir/$libname.def'
12638 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12639 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12640 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12641 $ECHO EXPORTS >> $output_objdir/$libname.def~
12642 prefix_cmds="$SED"~
12643 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12644 prefix_cmds="$prefix_cmds -e 1d";
12645 fi~
12646 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12647 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12648 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12649 emximp -o $lib $output_objdir/$libname.def'
12650 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12651 enable_shared_with_static_runtimes=yes
12652 file_list_spec='@'
12653 ;;
12654
12655 interix[3-9]*)
12656 hardcode_direct=no
12657 hardcode_shlibpath_var=no
12658 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12659 export_dynamic_flag_spec='$wl-E'
12660 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12661 # Instead, shared libraries are loaded at an image base (0x10000000 by
12662 # default) and relocated if they conflict, which is a slow very memory
12663 # consuming and fragmenting process. To avoid this, we pick a random,
12664 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12665 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12666 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12667 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'
12668 ;;
12669
12670 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12671 tmp_diet=no
12672 if test linux-dietlibc = "$host_os"; then
12673 case $cc_basename in
12674 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12675 esac
12676 fi
12677 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12678 && test no = "$tmp_diet"
12679 then
12680 tmp_addflag=' $pic_flag'
12681 tmp_sharedflag='-shared'
12682 case $cc_basename,$host_cpu in
12683 pgcc*) # Portland Group C compiler
12684 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'
12685 tmp_addflag=' $pic_flag'
12686 ;;
12687 pgf77* | pgf90* | pgf95* | pgfortran*)
12688 # Portland Group f77 and f90 compilers
12689 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'
12690 tmp_addflag=' $pic_flag -Mnomain' ;;
12691 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12692 tmp_addflag=' -i_dynamic' ;;
12693 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12694 tmp_addflag=' -i_dynamic -nofor_main' ;;
12695 ifc* | ifort*) # Intel Fortran compiler
12696 tmp_addflag=' -nofor_main' ;;
12697 lf95*) # Lahey Fortran 8.1
12698 whole_archive_flag_spec=
12699 tmp_sharedflag='--shared' ;;
12700 nagfor*) # NAGFOR 5.3
12701 tmp_sharedflag='-Wl,-shared' ;;
12702 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12703 tmp_sharedflag='-qmkshrobj'
12704 tmp_addflag= ;;
12705 nvcc*) # Cuda Compiler Driver 2.2
12706 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'
12707 compiler_needs_object=yes
12708 ;;
12709 esac
12710 case `$CC -V 2>&1 | $SED 5q` in
12711 *Sun\ C*) # Sun C 5.9
12712 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'
12713 compiler_needs_object=yes
12714 tmp_sharedflag='-G' ;;
12715 *Sun\ F*) # Sun Fortran 8.3
12716 tmp_sharedflag='-G' ;;
12717 esac
12718 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12719
12720 if test yes = "$supports_anon_versioning"; then
12721 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12722 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12723 echo "local: *; };" >> $output_objdir/$libname.ver~
12724 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12725 fi
12726
12727 case $cc_basename in
12728 tcc*)
12729 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12730 export_dynamic_flag_spec='-rdynamic'
12731 ;;
12732 xlf* | bgf* | bgxlf* | mpixlf*)
12733 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12734 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12735 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12736 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12737 if test yes = "$supports_anon_versioning"; then
12738 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12739 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12740 echo "local: *; };" >> $output_objdir/$libname.ver~
12741 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12742 fi
12743 ;;
12744 esac
12745 else
12746 ld_shlibs=no
12747 fi
12748 ;;
12749
12750 *-mlibc)
12751 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12752 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12753 ;;
12754
12755 netbsd* | netbsdelf*-gnu)
12756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12758 wlarc=
12759 else
12760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12761 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12762 fi
12763 ;;
12764
12765 solaris*)
12766 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12767 ld_shlibs=no
12768 cat <<_LT_EOF 1>&2
12769
12770 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12771 *** create shared libraries on Solaris systems. Therefore, libtool
12772 *** is disabling shared libraries support. We urge you to upgrade GNU
12773 *** binutils to release 2.9.1 or newer. Another option is to modify
12774 *** your PATH or compiler configuration so that the native linker is
12775 *** used, and then restart.
12776
12777 _LT_EOF
12778 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12780 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12781 else
12782 ld_shlibs=no
12783 fi
12784 ;;
12785
12786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12787 case `$LD -v 2>&1` in
12788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12789 ld_shlibs=no
12790 cat <<_LT_EOF 1>&2
12791
12792 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12793 *** reliably create shared libraries on SCO systems. Therefore, libtool
12794 *** is disabling shared libraries support. We urge you to upgrade GNU
12795 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12796 *** your PATH or compiler configuration so that the native linker is
12797 *** used, and then restart.
12798
12799 _LT_EOF
12800 ;;
12801 *)
12802 # For security reasons, it is highly recommended that you always
12803 # use absolute paths for naming shared libraries, and exclude the
12804 # DT_RUNPATH tag from executables and libraries. But doing so
12805 # requires that you compile everything twice, which is a pain.
12806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12807 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12810 else
12811 ld_shlibs=no
12812 fi
12813 ;;
12814 esac
12815 ;;
12816
12817 sunos4*)
12818 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12819 wlarc=
12820 hardcode_direct=yes
12821 hardcode_shlibpath_var=no
12822 ;;
12823
12824 *)
12825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12828 else
12829 ld_shlibs=no
12830 fi
12831 ;;
12832 esac
12833
12834 if test no = "$ld_shlibs"; then
12835 runpath_var=
12836 hardcode_libdir_flag_spec=
12837 export_dynamic_flag_spec=
12838 whole_archive_flag_spec=
12839 fi
12840 else
12841 # PORTME fill in a description of your system's linker (not GNU ld)
12842 case $host_os in
12843 aix3*)
12844 allow_undefined_flag=unsupported
12845 always_export_symbols=yes
12846 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'
12847 # Note: this linker hardcodes the directories in LIBPATH if there
12848 # are no directories specified by -L.
12849 hardcode_minus_L=yes
12850 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12851 # Neither direct hardcoding nor static linking is supported with a
12852 # broken collect2.
12853 hardcode_direct=unsupported
12854 fi
12855 ;;
12856
12857 aix[4-9]*)
12858 if test ia64 = "$host_cpu"; then
12859 # On IA64, the linker does run time linking by default, so we don't
12860 # have to do anything special.
12861 aix_use_runtimelinking=no
12862 exp_sym_flag='-Bexport'
12863 no_entry_flag=
12864 else
12865 # If we're using GNU nm, then we don't want the "-C" option.
12866 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12867 # Without the "-l" option, or with the "-B" option, AIX nm treats
12868 # weak defined symbols like other global defined symbols, whereas
12869 # GNU nm marks them as "W".
12870 # While the 'weak' keyword is ignored in the Export File, we need
12871 # it in the Import File for the 'aix-soname' feature, so we have
12872 # to replace the "-B" option with "-P" for AIX nm.
12873 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12874 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'
12875 else
12876 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'
12877 fi
12878 aix_use_runtimelinking=no
12879
12880 # Test if we are trying to use run time linking or normal
12881 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12882 # have runtime linking enabled, and use it for executables.
12883 # For shared libraries, we enable/disable runtime linking
12884 # depending on the kind of the shared library created -
12885 # when "with_aix_soname,aix_use_runtimelinking" is:
12886 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12887 # "aix,yes" lib.so shared, rtl:yes, for executables
12888 # lib.a static archive
12889 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12890 # lib.a(lib.so.V) shared, rtl:no, for executables
12891 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12892 # lib.a(lib.so.V) shared, rtl:no
12893 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12894 # lib.a static archive
12895 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12896 for ld_flag in $LDFLAGS; do
12897 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12898 aix_use_runtimelinking=yes
12899 break
12900 fi
12901 done
12902 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12903 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12904 # so we don't have lib.a shared libs to link our executables.
12905 # We have to force runtime linking in this case.
12906 aix_use_runtimelinking=yes
12907 LDFLAGS="$LDFLAGS -Wl,-brtl"
12908 fi
12909 ;;
12910 esac
12911
12912 exp_sym_flag='-bexport'
12913 no_entry_flag='-bnoentry'
12914 fi
12915
12916 # When large executables or shared objects are built, AIX ld can
12917 # have problems creating the table of contents. If linking a library
12918 # or program results in "error TOC overflow" add -mminimal-toc to
12919 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12920 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12921
12922 archive_cmds=''
12923 hardcode_direct=yes
12924 hardcode_direct_absolute=yes
12925 hardcode_libdir_separator=':'
12926 link_all_deplibs=yes
12927 file_list_spec='$wl-f,'
12928 case $with_aix_soname,$aix_use_runtimelinking in
12929 aix,*) ;; # traditional, no import file
12930 svr4,* | *,yes) # use import file
12931 # The Import File defines what to hardcode.
12932 hardcode_direct=no
12933 hardcode_direct_absolute=no
12934 ;;
12935 esac
12936
12937 if test yes = "$GCC"; then
12938 case $host_os in aix4.[012]|aix4.[012].*)
12939 # We only want to do this on AIX 4.2 and lower, the check
12940 # below for broken collect2 doesn't work under 4.3+
12941 collect2name=`$CC -print-prog-name=collect2`
12942 if test -f "$collect2name" &&
12943 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12944 then
12945 # We have reworked collect2
12946 :
12947 else
12948 # We have old collect2
12949 hardcode_direct=unsupported
12950 # It fails to find uninstalled libraries when the uninstalled
12951 # path is not listed in the libpath. Setting hardcode_minus_L
12952 # to unsupported forces relinking
12953 hardcode_minus_L=yes
12954 hardcode_libdir_flag_spec='-L$libdir'
12955 hardcode_libdir_separator=
12956 fi
12957 ;;
12958 esac
12959 shared_flag='-shared'
12960 if test yes = "$aix_use_runtimelinking"; then
12961 shared_flag="$shared_flag "'$wl-G'
12962 fi
12963 # Need to ensure runtime linking is disabled for the traditional
12964 # shared library, or the linker may eventually find shared libraries
12965 # /with/ Import File - we do not want to mix them.
12966 shared_flag_aix='-shared'
12967 shared_flag_svr4='-shared $wl-G'
12968 else
12969 # not using gcc
12970 if test ia64 = "$host_cpu"; then
12971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12972 # chokes on -Wl,-G. The following line is correct:
12973 shared_flag='-G'
12974 else
12975 if test yes = "$aix_use_runtimelinking"; then
12976 shared_flag='$wl-G'
12977 else
12978 shared_flag='$wl-bM:SRE'
12979 fi
12980 shared_flag_aix='$wl-bM:SRE'
12981 shared_flag_svr4='$wl-G'
12982 fi
12983 fi
12984
12985 export_dynamic_flag_spec='$wl-bexpall'
12986 # It seems that -bexpall does not export symbols beginning with
12987 # underscore (_), so it is better to generate a list of symbols to export.
12988 always_export_symbols=yes
12989 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12990 # Warning - without using the other runtime loading flags (-brtl),
12991 # -berok will link without error, but may produce a broken library.
12992 allow_undefined_flag='-berok'
12993 # Determine the default libpath from the value encoded in an
12994 # empty executable.
12995 if test set = "${lt_cv_aix_libpath+set}"; then
12996 aix_libpath=$lt_cv_aix_libpath
12997 else
12998 if test ${lt_cv_aix_libpath_+y}
12999 then :
13000 printf %s "(cached) " >&6
13001 else case e in #(
13002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13003 /* end confdefs.h. */
13004
13005 int
13006 main (void)
13007 {
13008
13009 ;
13010 return 0;
13011 }
13012 _ACEOF
13013 if ac_fn_c_try_link "$LINENO"
13014 then :
13015
13016 lt_aix_libpath_sed='
13017 /Import File Strings/,/^$/ {
13018 /^0/ {
13019 s/^0 *\([^ ]*\) *$/\1/
13020 p
13021 }
13022 }'
13023 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13024 # Check for a 64-bit object if we didn't find anything.
13025 if test -z "$lt_cv_aix_libpath_"; then
13026 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13027 fi
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13030 conftest$ac_exeext conftest.$ac_ext
13031 if test -z "$lt_cv_aix_libpath_"; then
13032 lt_cv_aix_libpath_=/usr/lib:/lib
13033 fi
13034 ;;
13035 esac
13036 fi
13037
13038 aix_libpath=$lt_cv_aix_libpath_
13039 fi
13040
13041 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13042 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
13043 else
13044 if test ia64 = "$host_cpu"; then
13045 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13046 allow_undefined_flag="-z nodefs"
13047 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"
13048 else
13049 # Determine the default libpath from the value encoded in an
13050 # empty executable.
13051 if test set = "${lt_cv_aix_libpath+set}"; then
13052 aix_libpath=$lt_cv_aix_libpath
13053 else
13054 if test ${lt_cv_aix_libpath_+y}
13055 then :
13056 printf %s "(cached) " >&6
13057 else case e in #(
13058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060
13061 int
13062 main (void)
13063 {
13064
13065 ;
13066 return 0;
13067 }
13068 _ACEOF
13069 if ac_fn_c_try_link "$LINENO"
13070 then :
13071
13072 lt_aix_libpath_sed='
13073 /Import File Strings/,/^$/ {
13074 /^0/ {
13075 s/^0 *\([^ ]*\) *$/\1/
13076 p
13077 }
13078 }'
13079 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13080 # Check for a 64-bit object if we didn't find anything.
13081 if test -z "$lt_cv_aix_libpath_"; then
13082 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13083 fi
13084 fi
13085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13086 conftest$ac_exeext conftest.$ac_ext
13087 if test -z "$lt_cv_aix_libpath_"; then
13088 lt_cv_aix_libpath_=/usr/lib:/lib
13089 fi
13090 ;;
13091 esac
13092 fi
13093
13094 aix_libpath=$lt_cv_aix_libpath_
13095 fi
13096
13097 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13098 # Warning - without using the other run time loading flags,
13099 # -berok will link without error, but may produce a broken library.
13100 no_undefined_flag=' $wl-bernotok'
13101 allow_undefined_flag=' $wl-berok'
13102 if test yes = "$with_gnu_ld"; then
13103 # We only use this code for GNU lds that support --whole-archive.
13104 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13105 else
13106 # Exported symbols can be pulled into shared objects from archives
13107 whole_archive_flag_spec='$convenience'
13108 fi
13109 archive_cmds_need_lc=yes
13110 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13111 # -brtl affects multiple linker settings, -berok does not and is overridden later
13112 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13113 if test svr4 != "$with_aix_soname"; then
13114 # This is similar to how AIX traditionally builds its shared libraries.
13115 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'
13116 fi
13117 if test aix != "$with_aix_soname"; then
13118 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'
13119 else
13120 # used by -dlpreopen to get the symbols
13121 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13122 fi
13123 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13124 fi
13125 fi
13126 ;;
13127
13128 amigaos*)
13129 case $host_cpu in
13130 powerpc)
13131 # see comment about AmigaOS4 .so support
13132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13133 archive_expsym_cmds=''
13134 ;;
13135 m68k)
13136 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)'
13137 hardcode_libdir_flag_spec='-L$libdir'
13138 hardcode_minus_L=yes
13139 ;;
13140 esac
13141 ;;
13142
13143 bsdi[45]*)
13144 export_dynamic_flag_spec=-rdynamic
13145 ;;
13146
13147 cygwin* | mingw* | windows* | pw32* | cegcc*)
13148 # When not using gcc, we currently assume that we are using
13149 # Microsoft Visual C++ or Intel C++ Compiler.
13150 # hardcode_libdir_flag_spec is actually meaningless, as there is
13151 # no search path for DLLs.
13152 case $cc_basename in
13153 cl* | icl*)
13154 # Native MSVC or ICC
13155 hardcode_libdir_flag_spec=' '
13156 allow_undefined_flag=unsupported
13157 always_export_symbols=yes
13158 file_list_spec='@'
13159 # Tell ltmain to make .lib files, not .a files.
13160 libext=lib
13161 # Tell ltmain to make .dll files, not .so files.
13162 shrext_cmds=.dll
13163 # FIXME: Setting linknames here is a bad hack.
13164 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13165 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13166 cp "$export_symbols" "$output_objdir/$soname.def";
13167 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13168 else
13169 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13170 fi~
13171 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13172 linknames='
13173 # The linker will not automatically build a static lib if we build a DLL.
13174 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13175 enable_shared_with_static_runtimes=yes
13176 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13177 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13178 # Don't use ranlib
13179 old_postinstall_cmds='chmod 644 $oldlib'
13180 postlink_cmds='lt_outputfile="@OUTPUT@"~
13181 lt_tool_outputfile="@TOOL_OUTPUT@"~
13182 case $lt_outputfile in
13183 *.exe|*.EXE) ;;
13184 *)
13185 lt_outputfile=$lt_outputfile.exe
13186 lt_tool_outputfile=$lt_tool_outputfile.exe
13187 ;;
13188 esac~
13189 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13190 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13191 $RM "$lt_outputfile.manifest";
13192 fi'
13193 ;;
13194 *)
13195 # Assume MSVC and ICC wrapper
13196 hardcode_libdir_flag_spec=' '
13197 allow_undefined_flag=unsupported
13198 # Tell ltmain to make .lib files, not .a files.
13199 libext=lib
13200 # Tell ltmain to make .dll files, not .so files.
13201 shrext_cmds=.dll
13202 # FIXME: Setting linknames here is a bad hack.
13203 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13204 # The linker will automatically build a .lib file if we build a DLL.
13205 old_archive_from_new_cmds='true'
13206 # FIXME: Should let the user specify the lib program.
13207 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13208 enable_shared_with_static_runtimes=yes
13209 ;;
13210 esac
13211 ;;
13212
13213 darwin* | rhapsody*)
13214
13215
13216 archive_cmds_need_lc=no
13217 hardcode_direct=no
13218 hardcode_automatic=yes
13219 hardcode_shlibpath_var=unsupported
13220 if test yes = "$lt_cv_ld_force_load"; then
13221 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\"`'
13222
13223 else
13224 whole_archive_flag_spec=''
13225 fi
13226 link_all_deplibs=yes
13227 allow_undefined_flag=$_lt_dar_allow_undefined
13228 case $cc_basename in
13229 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13230 *) _lt_dar_can_shared=$GCC ;;
13231 esac
13232 if test yes = "$_lt_dar_can_shared"; then
13233 output_verbose_link_cmd=func_echo_all
13234 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13235 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13236 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"
13237 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"
13238
13239 else
13240 ld_shlibs=no
13241 fi
13242
13243 ;;
13244
13245 dgux*)
13246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13247 hardcode_libdir_flag_spec='-L$libdir'
13248 hardcode_shlibpath_var=no
13249 ;;
13250
13251 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13252 # support. Future versions do this automatically, but an explicit c++rt0.o
13253 # does not break anything, and helps significantly (at the cost of a little
13254 # extra space).
13255 freebsd2.2*)
13256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13257 hardcode_libdir_flag_spec='-R$libdir'
13258 hardcode_direct=yes
13259 hardcode_shlibpath_var=no
13260 ;;
13261
13262 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13263 freebsd2.*)
13264 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13265 hardcode_direct=yes
13266 hardcode_minus_L=yes
13267 hardcode_shlibpath_var=no
13268 ;;
13269
13270 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13271 freebsd* | dragonfly* | midnightbsd*)
13272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13273 hardcode_libdir_flag_spec='-R$libdir'
13274 hardcode_direct=yes
13275 hardcode_shlibpath_var=no
13276 ;;
13277
13278 hpux9*)
13279 if test yes = "$GCC"; then
13280 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'
13281 else
13282 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'
13283 fi
13284 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13285 hardcode_libdir_separator=:
13286 hardcode_direct=yes
13287
13288 # hardcode_minus_L: Not really in the search PATH,
13289 # but as the default location of the library.
13290 hardcode_minus_L=yes
13291 export_dynamic_flag_spec='$wl-E'
13292 ;;
13293
13294 hpux10*)
13295 if test yes,no = "$GCC,$with_gnu_ld"; then
13296 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13297 else
13298 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13299 fi
13300 if test no = "$with_gnu_ld"; then
13301 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13302 hardcode_libdir_separator=:
13303 hardcode_direct=yes
13304 hardcode_direct_absolute=yes
13305 export_dynamic_flag_spec='$wl-E'
13306 # hardcode_minus_L: Not really in the search PATH,
13307 # but as the default location of the library.
13308 hardcode_minus_L=yes
13309 fi
13310 ;;
13311
13312 hpux11*)
13313 if test yes,no = "$GCC,$with_gnu_ld"; then
13314 case $host_cpu in
13315 hppa*64*)
13316 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13317 ;;
13318 ia64*)
13319 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13320 ;;
13321 *)
13322 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13323 ;;
13324 esac
13325 else
13326 case $host_cpu in
13327 hppa*64*)
13328 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 ;;
13330 ia64*)
13331 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13332 ;;
13333 *)
13334
13335 # Older versions of the 11.00 compiler do not understand -b yet
13336 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13338 printf %s "checking if $CC understands -b... " >&6; }
13339 if test ${lt_cv_prog_compiler__b+y}
13340 then :
13341 printf %s "(cached) " >&6
13342 else case e in #(
13343 e) lt_cv_prog_compiler__b=no
13344 save_LDFLAGS=$LDFLAGS
13345 LDFLAGS="$LDFLAGS -b"
13346 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13347 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13348 # The linker can only warn and ignore the option if not recognized
13349 # So say no if there are warnings
13350 if test -s conftest.err; then
13351 # Append any errors to the config.log.
13352 cat conftest.err 1>&5
13353 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13354 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13355 if diff conftest.exp conftest.er2 >/dev/null; then
13356 lt_cv_prog_compiler__b=yes
13357 fi
13358 else
13359 lt_cv_prog_compiler__b=yes
13360 fi
13361 fi
13362 $RM -r conftest*
13363 LDFLAGS=$save_LDFLAGS
13364 ;;
13365 esac
13366 fi
13367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13368 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13369
13370 if test yes = "$lt_cv_prog_compiler__b"; then
13371 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13372 else
13373 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13374 fi
13375
13376 ;;
13377 esac
13378 fi
13379 if test no = "$with_gnu_ld"; then
13380 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13381 hardcode_libdir_separator=:
13382
13383 case $host_cpu in
13384 hppa*64*|ia64*)
13385 hardcode_direct=no
13386 hardcode_shlibpath_var=no
13387 ;;
13388 *)
13389 hardcode_direct=yes
13390 hardcode_direct_absolute=yes
13391 export_dynamic_flag_spec='$wl-E'
13392
13393 # hardcode_minus_L: Not really in the search PATH,
13394 # but as the default location of the library.
13395 hardcode_minus_L=yes
13396 ;;
13397 esac
13398 fi
13399 ;;
13400
13401 irix5* | irix6* | nonstopux*)
13402 if test yes = "$GCC"; then
13403 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'
13404 # Try to use the -exported_symbol ld option, if it does not
13405 # work, assume that -exports_file does not work either and
13406 # implicitly export all symbols.
13407 # This should be the same for all languages, so no per-tag cache variable.
13408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13409 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13410 if test ${lt_cv_irix_exported_symbol+y}
13411 then :
13412 printf %s "(cached) " >&6
13413 else case e in #(
13414 e) save_LDFLAGS=$LDFLAGS
13415 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418 int foo (void) { return 0; }
13419 _ACEOF
13420 if ac_fn_c_try_link "$LINENO"
13421 then :
13422 lt_cv_irix_exported_symbol=yes
13423 else case e in #(
13424 e) lt_cv_irix_exported_symbol=no ;;
13425 esac
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13428 conftest$ac_exeext conftest.$ac_ext
13429 LDFLAGS=$save_LDFLAGS ;;
13430 esac
13431 fi
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13433 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13434 if test yes = "$lt_cv_irix_exported_symbol"; then
13435 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'
13436 fi
13437 link_all_deplibs=no
13438 else
13439 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'
13440 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'
13441 fi
13442 archive_cmds_need_lc='no'
13443 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13444 hardcode_libdir_separator=:
13445 inherit_rpath=yes
13446 link_all_deplibs=yes
13447 ;;
13448
13449 linux*)
13450 case $cc_basename in
13451 tcc*)
13452 # Fabrice Bellard et al's Tiny C Compiler
13453 ld_shlibs=yes
13454 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13455 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13456 ;;
13457 esac
13458 ;;
13459
13460 *-mlibc)
13461 ;;
13462
13463 netbsd* | netbsdelf*-gnu)
13464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13466 else
13467 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13468 fi
13469 hardcode_libdir_flag_spec='-R$libdir'
13470 hardcode_direct=yes
13471 hardcode_shlibpath_var=no
13472 ;;
13473
13474 newsos6)
13475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13476 hardcode_direct=yes
13477 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13478 hardcode_libdir_separator=:
13479 hardcode_shlibpath_var=no
13480 ;;
13481
13482 *nto* | *qnx*)
13483 ;;
13484
13485 openbsd*)
13486 if test -f /usr/libexec/ld.so; then
13487 hardcode_direct=yes
13488 hardcode_shlibpath_var=no
13489 hardcode_direct_absolute=yes
13490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13492 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13493 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13494 export_dynamic_flag_spec='$wl-E'
13495 else
13496 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13497 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13498 fi
13499 else
13500 ld_shlibs=no
13501 fi
13502 ;;
13503
13504 os2*)
13505 hardcode_libdir_flag_spec='-L$libdir'
13506 hardcode_minus_L=yes
13507 allow_undefined_flag=unsupported
13508 shrext_cmds=.dll
13509 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13510 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13511 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13512 $ECHO EXPORTS >> $output_objdir/$libname.def~
13513 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13514 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13515 emximp -o $lib $output_objdir/$libname.def'
13516 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13517 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13518 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13519 $ECHO EXPORTS >> $output_objdir/$libname.def~
13520 prefix_cmds="$SED"~
13521 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13522 prefix_cmds="$prefix_cmds -e 1d";
13523 fi~
13524 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13525 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13526 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13527 emximp -o $lib $output_objdir/$libname.def'
13528 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13529 enable_shared_with_static_runtimes=yes
13530 file_list_spec='@'
13531 ;;
13532
13533 osf3*)
13534 if test yes = "$GCC"; then
13535 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13536 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'
13537 else
13538 allow_undefined_flag=' -expect_unresolved \*'
13539 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'
13540 fi
13541 archive_cmds_need_lc='no'
13542 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13543 hardcode_libdir_separator=:
13544 ;;
13545
13546 osf4* | osf5*) # as osf3* with the addition of -msym flag
13547 if test yes = "$GCC"; then
13548 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13549 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'
13550 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13551 else
13552 allow_undefined_flag=' -expect_unresolved \*'
13553 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'
13554 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~
13555 $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'
13556
13557 # Both c and cxx compiler support -rpath directly
13558 hardcode_libdir_flag_spec='-rpath $libdir'
13559 fi
13560 archive_cmds_need_lc='no'
13561 hardcode_libdir_separator=:
13562 ;;
13563
13564 serenity*)
13565 ;;
13566
13567 solaris*)
13568 no_undefined_flag=' -z defs'
13569 if test yes = "$GCC"; then
13570 wlarc='$wl'
13571 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13572 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13573 $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'
13574 else
13575 case `$CC -V 2>&1` in
13576 *"Compilers 5.0"*)
13577 wlarc=''
13578 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13579 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13580 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13581 ;;
13582 *)
13583 wlarc='$wl'
13584 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13585 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13586 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13587 ;;
13588 esac
13589 fi
13590 hardcode_libdir_flag_spec='-R$libdir'
13591 hardcode_shlibpath_var=no
13592 case $host_os in
13593 solaris2.[0-5] | solaris2.[0-5].*) ;;
13594 *)
13595 # The compiler driver will combine and reorder linker options,
13596 # but understands '-z linker_flag'. GCC discards it without '$wl',
13597 # but is careful enough not to reorder.
13598 # Supported since Solaris 2.6 (maybe 2.5.1?)
13599 if test yes = "$GCC"; then
13600 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13601 else
13602 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13603 fi
13604 ;;
13605 esac
13606 link_all_deplibs=yes
13607 ;;
13608
13609 sunos4*)
13610 if test sequent = "$host_vendor"; then
13611 # Use $CC to link under sequent, because it throws in some extra .o
13612 # files that make .init and .fini sections work.
13613 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13614 else
13615 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13616 fi
13617 hardcode_libdir_flag_spec='-L$libdir'
13618 hardcode_direct=yes
13619 hardcode_minus_L=yes
13620 hardcode_shlibpath_var=no
13621 ;;
13622
13623 sysv4)
13624 case $host_vendor in
13625 sni)
13626 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13627 hardcode_direct=yes # is this really true???
13628 ;;
13629 siemens)
13630 ## LD is ld it makes a PLAMLIB
13631 ## CC just makes a GrossModule.
13632 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13633 reload_cmds='$CC -r -o $output$reload_objs'
13634 hardcode_direct=no
13635 ;;
13636 motorola)
13637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13638 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13639 ;;
13640 esac
13641 runpath_var='LD_RUN_PATH'
13642 hardcode_shlibpath_var=no
13643 ;;
13644
13645 sysv4.3*)
13646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13647 hardcode_shlibpath_var=no
13648 export_dynamic_flag_spec='-Bexport'
13649 ;;
13650
13651 sysv4*MP*)
13652 if test -d /usr/nec; then
13653 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13654 hardcode_shlibpath_var=no
13655 runpath_var=LD_RUN_PATH
13656 hardcode_runpath_var=yes
13657 ld_shlibs=yes
13658 fi
13659 ;;
13660
13661 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13662 no_undefined_flag='$wl-z,text'
13663 archive_cmds_need_lc=no
13664 hardcode_shlibpath_var=no
13665 runpath_var='LD_RUN_PATH'
13666
13667 if test yes = "$GCC"; then
13668 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13669 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13670 else
13671 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13672 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13673 fi
13674 ;;
13675
13676 sysv5* | sco3.2v5* | sco5v6*)
13677 # Note: We CANNOT use -z defs as we might desire, because we do not
13678 # link with -lc, and that would cause any symbols used from libc to
13679 # always be unresolved, which means just about no library would
13680 # ever link correctly. If we're not using GNU ld we use -z text
13681 # though, which does catch some bad symbols but isn't as heavy-handed
13682 # as -z defs.
13683 no_undefined_flag='$wl-z,text'
13684 allow_undefined_flag='$wl-z,nodefs'
13685 archive_cmds_need_lc=no
13686 hardcode_shlibpath_var=no
13687 hardcode_libdir_flag_spec='$wl-R,$libdir'
13688 hardcode_libdir_separator=':'
13689 link_all_deplibs=yes
13690 export_dynamic_flag_spec='$wl-Bexport'
13691 runpath_var='LD_RUN_PATH'
13692
13693 if test yes = "$GCC"; then
13694 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13695 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13696 else
13697 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13698 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13699 fi
13700 ;;
13701
13702 uts4*)
13703 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13704 hardcode_libdir_flag_spec='-L$libdir'
13705 hardcode_shlibpath_var=no
13706 ;;
13707
13708 *)
13709 ld_shlibs=no
13710 ;;
13711 esac
13712
13713 if test sni = "$host_vendor"; then
13714 case $host in
13715 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13716 export_dynamic_flag_spec='$wl-Blargedynsym'
13717 ;;
13718 esac
13719 fi
13720 fi
13721
13722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13723 printf "%s\n" "$ld_shlibs" >&6; }
13724 test no = "$ld_shlibs" && can_build_shared=no
13725
13726 with_gnu_ld=$with_gnu_ld
13727
13728
13729
13730
13731
13732
13733
13734
13735
13736
13737
13738
13739
13740
13741
13742 #
13743 # Do we need to explicitly link libc?
13744 #
13745 case "x$archive_cmds_need_lc" in
13746 x|xyes)
13747 # Assume -lc should be added
13748 archive_cmds_need_lc=yes
13749
13750 if test yes,yes = "$GCC,$enable_shared"; then
13751 case $archive_cmds in
13752 *'~'*)
13753 # FIXME: we may have to deal with multi-command sequences.
13754 ;;
13755 '$CC '*)
13756 # Test whether the compiler implicitly links with -lc since on some
13757 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13758 # to ld, don't add -lc before -lgcc.
13759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13760 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13761 if test ${lt_cv_archive_cmds_need_lc+y}
13762 then :
13763 printf %s "(cached) " >&6
13764 else case e in #(
13765 e) $RM conftest*
13766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13767
13768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13769 (eval $ac_compile) 2>&5
13770 ac_status=$?
13771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13772 test $ac_status = 0; } 2>conftest.err; then
13773 soname=conftest
13774 lib=conftest
13775 libobjs=conftest.$ac_objext
13776 deplibs=
13777 wl=$lt_prog_compiler_wl
13778 pic_flag=$lt_prog_compiler_pic
13779 compiler_flags=-v
13780 linker_flags=-v
13781 verstring=
13782 output_objdir=.
13783 libname=conftest
13784 lt_save_allow_undefined_flag=$allow_undefined_flag
13785 allow_undefined_flag=
13786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13787 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13788 ac_status=$?
13789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13790 test $ac_status = 0; }
13791 then
13792 lt_cv_archive_cmds_need_lc=no
13793 else
13794 lt_cv_archive_cmds_need_lc=yes
13795 fi
13796 allow_undefined_flag=$lt_save_allow_undefined_flag
13797 else
13798 cat conftest.err 1>&5
13799 fi
13800 $RM conftest*
13801 ;;
13802 esac
13803 fi
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13805 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13806 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13807 ;;
13808 esac
13809 fi
13810 ;;
13811 esac
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911
13912
13913
13914
13915
13916
13917
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13965 printf %s "checking dynamic linker characteristics... " >&6; }
13966
13967 if test yes = "$GCC"; then
13968 case $host_os in
13969 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13970 *) lt_awk_arg='/^libraries:/' ;;
13971 esac
13972 case $host_os in
13973 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13974 *) lt_sed_strip_eq='s|=/|/|g' ;;
13975 esac
13976 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13977 case $lt_search_path_spec in
13978 *\;*)
13979 # if the path contains ";" then we assume it to be the separator
13980 # otherwise default to the standard path separator (i.e. ":") - it is
13981 # assumed that no part of a normal pathname contains ";" but that should
13982 # okay in the real world where ";" in dirpaths is itself problematic.
13983 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13984 ;;
13985 *)
13986 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13987 ;;
13988 esac
13989 # Ok, now we have the path, separated by spaces, we can step through it
13990 # and add multilib dir if necessary...
13991 lt_tmp_lt_search_path_spec=
13992 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13993 # ...but if some path component already ends with the multilib dir we assume
13994 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13995 case "$lt_multi_os_dir; $lt_search_path_spec " in
13996 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13997 lt_multi_os_dir=
13998 ;;
13999 esac
14000 for lt_sys_path in $lt_search_path_spec; do
14001 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14002 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14003 elif test -n "$lt_multi_os_dir"; then
14004 test -d "$lt_sys_path" && \
14005 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14006 fi
14007 done
14008 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14009 BEGIN {RS = " "; FS = "/|\n";} {
14010 lt_foo = "";
14011 lt_count = 0;
14012 for (lt_i = NF; lt_i > 0; lt_i--) {
14013 if ($lt_i != "" && $lt_i != ".") {
14014 if ($lt_i == "..") {
14015 lt_count++;
14016 } else {
14017 if (lt_count == 0) {
14018 lt_foo = "/" $lt_i lt_foo;
14019 } else {
14020 lt_count--;
14021 }
14022 }
14023 }
14024 }
14025 if (lt_foo != "") { lt_freq[lt_foo]++; }
14026 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14027 }'`
14028 # AWK program above erroneously prepends '/' to C:/dos/paths
14029 # for these hosts.
14030 case $host_os in
14031 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14032 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14033 esac
14034 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14035 else
14036 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14037 fi
14038 library_names_spec=
14039 libname_spec='lib$name'
14040 soname_spec=
14041 shrext_cmds=.so
14042 postinstall_cmds=
14043 postuninstall_cmds=
14044 finish_cmds=
14045 finish_eval=
14046 shlibpath_var=
14047 shlibpath_overrides_runpath=unknown
14048 version_type=none
14049 dynamic_linker="$host_os ld.so"
14050 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14051 need_lib_prefix=unknown
14052 hardcode_into_libs=no
14053
14054 # when you set need_version to no, make sure it does not cause -set_version
14055 # flags to be left without arguments
14056 need_version=unknown
14057
14058
14059
14060 case $host_os in
14061 aix3*)
14062 version_type=linux # correct to gnu/linux during the next big refactor
14063 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14064 shlibpath_var=LIBPATH
14065
14066 # AIX 3 has no versioning support, so we append a major version to the name.
14067 soname_spec='$libname$release$shared_ext$major'
14068 ;;
14069
14070 aix[4-9]*)
14071 version_type=linux # correct to gnu/linux during the next big refactor
14072 need_lib_prefix=no
14073 need_version=no
14074 hardcode_into_libs=yes
14075 if test ia64 = "$host_cpu"; then
14076 # AIX 5 supports IA64
14077 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14078 shlibpath_var=LD_LIBRARY_PATH
14079 else
14080 # With GCC up to 2.95.x, collect2 would create an import file
14081 # for dependence libraries. The import file would start with
14082 # the line '#! .'. This would cause the generated library to
14083 # depend on '.', always an invalid library. This was fixed in
14084 # development snapshots of GCC prior to 3.0.
14085 case $host_os in
14086 aix4 | aix4.[01] | aix4.[01].*)
14087 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14088 echo ' yes '
14089 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14090 :
14091 else
14092 can_build_shared=no
14093 fi
14094 ;;
14095 esac
14096 # Using Import Files as archive members, it is possible to support
14097 # filename-based versioning of shared library archives on AIX. While
14098 # this would work for both with and without runtime linking, it will
14099 # prevent static linking of such archives. So we do filename-based
14100 # shared library versioning with .so extension only, which is used
14101 # when both runtime linking and shared linking is enabled.
14102 # Unfortunately, runtime linking may impact performance, so we do
14103 # not want this to be the default eventually. Also, we use the
14104 # versioned .so libs for executables only if there is the -brtl
14105 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
14106 # To allow for filename-based versioning support, we need to create
14107 # libNAME.so.V as an archive file, containing:
14108 # *) an Import File, referring to the versioned filename of the
14109 # archive as well as the shared archive member, telling the
14110 # bitwidth (32 or 64) of that shared object, and providing the
14111 # list of exported symbols of that shared object, eventually
14112 # decorated with the 'weak' keyword
14113 # *) the shared object with the F_LOADONLY flag set, to really avoid
14114 # it being seen by the linker.
14115 # At run time we better use the real file rather than another symlink,
14116 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14117
14118 case $with_aix_soname,$aix_use_runtimelinking in
14119 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14120 # soname into executable. Probably we can add versioning support to
14121 # collect2, so additional links can be useful in future.
14122 aix,yes) # traditional libtool
14123 dynamic_linker='AIX unversionable lib.so'
14124 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14125 # instead of lib<name>.a to let people know that these are not
14126 # typical AIX shared libraries.
14127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14128 ;;
14129 aix,no) # traditional AIX only
14130 dynamic_linker='AIX lib.a(lib.so.V)'
14131 # We preserve .a as extension for shared libraries through AIX4.2
14132 # and later when we are not doing run time linking.
14133 library_names_spec='$libname$release.a $libname.a'
14134 soname_spec='$libname$release$shared_ext$major'
14135 ;;
14136 svr4,*) # full svr4 only
14137 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14138 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14139 # We do not specify a path in Import Files, so LIBPATH fires.
14140 shlibpath_overrides_runpath=yes
14141 ;;
14142 *,yes) # both, prefer svr4
14143 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14144 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14145 # unpreferred sharedlib libNAME.a needs extra handling
14146 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"'
14147 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"'
14148 # We do not specify a path in Import Files, so LIBPATH fires.
14149 shlibpath_overrides_runpath=yes
14150 ;;
14151 *,no) # both, prefer aix
14152 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14153 library_names_spec='$libname$release.a $libname.a'
14154 soname_spec='$libname$release$shared_ext$major'
14155 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14156 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)'
14157 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"'
14158 ;;
14159 esac
14160 shlibpath_var=LIBPATH
14161 fi
14162 ;;
14163
14164 amigaos*)
14165 case $host_cpu in
14166 powerpc)
14167 # Since July 2007 AmigaOS4 officially supports .so libraries.
14168 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14170 ;;
14171 m68k)
14172 library_names_spec='$libname.ixlibrary $libname.a'
14173 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14174 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'
14175 ;;
14176 esac
14177 ;;
14178
14179 beos*)
14180 library_names_spec='$libname$shared_ext'
14181 dynamic_linker="$host_os ld.so"
14182 shlibpath_var=LIBRARY_PATH
14183 ;;
14184
14185 bsdi[45]*)
14186 version_type=linux # correct to gnu/linux during the next big refactor
14187 need_version=no
14188 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14189 soname_spec='$libname$release$shared_ext$major'
14190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14191 shlibpath_var=LD_LIBRARY_PATH
14192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14194 # the default ld.so.conf also contains /usr/contrib/lib and
14195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14196 # libtool to hard-code these into programs
14197 ;;
14198
14199 cygwin* | mingw* | windows* | pw32* | cegcc*)
14200 version_type=windows
14201 shrext_cmds=.dll
14202 need_version=no
14203 need_lib_prefix=no
14204
14205 case $GCC,$cc_basename in
14206 yes,*)
14207 # gcc
14208 library_names_spec='$libname.dll.a'
14209 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14210 # If user builds GCC with multilib enabled,
14211 # it should just install on $(libdir)
14212 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
14213 if test xyes = x"$multilib"; then
14214 postinstall_cmds='base_file=`basename \$file`~
14215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14216 dldir=$destdir/`dirname \$dlpath`~
14217 $install_prog $dir/$dlname $destdir/$dlname~
14218 chmod a+x $destdir/$dlname~
14219 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14220 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
14221 fi'
14222 else
14223 postinstall_cmds='base_file=`basename \$file`~
14224 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14225 dldir=$destdir/`dirname \$dlpath`~
14226 test -d \$dldir || mkdir -p \$dldir~
14227 $install_prog $dir/$dlname \$dldir/$dlname~
14228 chmod a+x \$dldir/$dlname~
14229 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14230 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14231 fi'
14232 fi
14233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14234 dlpath=$dir/\$dldll~
14235 $RM \$dlpath'
14236 shlibpath_overrides_runpath=yes
14237
14238 case $host_os in
14239 cygwin*)
14240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14241 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14242
14243 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14244 ;;
14245 mingw* | windows* | cegcc*)
14246 # MinGW DLLs use traditional 'lib' prefix
14247 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14248 ;;
14249 pw32*)
14250 # pw32 DLLs use 'pw' prefix rather than 'lib'
14251 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14252 ;;
14253 esac
14254 dynamic_linker='Win32 ld.exe'
14255 ;;
14256
14257 *,cl* | *,icl*)
14258 # Native MSVC or ICC
14259 libname_spec='$name'
14260 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14261 library_names_spec='$libname.dll.lib'
14262
14263 case $build_os in
14264 mingw* | windows*)
14265 sys_lib_search_path_spec=
14266 lt_save_ifs=$IFS
14267 IFS=';'
14268 for lt_path in $LIB
14269 do
14270 IFS=$lt_save_ifs
14271 # Let DOS variable expansion print the short 8.3 style file name.
14272 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14273 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14274 done
14275 IFS=$lt_save_ifs
14276 # Convert to MSYS style.
14277 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14278 ;;
14279 cygwin*)
14280 # Convert to unix form, then to dos form, then back to unix form
14281 # but this time dos style (no spaces!) so that the unix form looks
14282 # like /cygdrive/c/PROGRA~1:/cygdr...
14283 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14284 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14285 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14286 ;;
14287 *)
14288 sys_lib_search_path_spec=$LIB
14289 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14290 # It is most probably a Windows format PATH.
14291 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14292 else
14293 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14294 fi
14295 # FIXME: find the short name or the path components, as spaces are
14296 # common. (e.g. "Program Files" -> "PROGRA~1")
14297 ;;
14298 esac
14299
14300 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14301 postinstall_cmds='base_file=`basename \$file`~
14302 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14303 dldir=$destdir/`dirname \$dlpath`~
14304 test -d \$dldir || mkdir -p \$dldir~
14305 $install_prog $dir/$dlname \$dldir/$dlname'
14306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14307 dlpath=$dir/\$dldll~
14308 $RM \$dlpath'
14309 shlibpath_overrides_runpath=yes
14310 dynamic_linker='Win32 link.exe'
14311 ;;
14312
14313 *)
14314 # Assume MSVC and ICC wrapper
14315 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14316 dynamic_linker='Win32 ld.exe'
14317 ;;
14318 esac
14319 # FIXME: first we should search . and the directory the executable is in
14320 shlibpath_var=PATH
14321 ;;
14322
14323 darwin* | rhapsody*)
14324 dynamic_linker="$host_os dyld"
14325 version_type=darwin
14326 need_lib_prefix=no
14327 need_version=no
14328 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14329 soname_spec='$libname$release$major$shared_ext'
14330 shlibpath_overrides_runpath=yes
14331 shlibpath_var=DYLD_LIBRARY_PATH
14332 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14333
14334 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14335 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14336 ;;
14337
14338 dgux*)
14339 version_type=linux # correct to gnu/linux during the next big refactor
14340 need_lib_prefix=no
14341 need_version=no
14342 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14343 soname_spec='$libname$release$shared_ext$major'
14344 shlibpath_var=LD_LIBRARY_PATH
14345 ;;
14346
14347 freebsd* | dragonfly* | midnightbsd*)
14348 # DragonFly does not have aout. When/if they implement a new
14349 # versioning mechanism, adjust this.
14350 if test -x /usr/bin/objformat; then
14351 objformat=`/usr/bin/objformat`
14352 else
14353 case $host_os in
14354 freebsd[23].*) objformat=aout ;;
14355 *) objformat=elf ;;
14356 esac
14357 fi
14358 version_type=freebsd-$objformat
14359 case $version_type in
14360 freebsd-elf*)
14361 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14362 soname_spec='$libname$release$shared_ext$major'
14363 need_version=no
14364 need_lib_prefix=no
14365 ;;
14366 freebsd-*)
14367 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14368 need_version=yes
14369 ;;
14370 esac
14371 case $host_cpu in
14372 powerpc64)
14373 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14374 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 int test_pointer_size[sizeof (void *) - 5];
14378
14379 _ACEOF
14380 if ac_fn_c_try_compile "$LINENO"
14381 then :
14382 shlibpath_var=LD_LIBRARY_PATH
14383 else case e in #(
14384 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14385 esac
14386 fi
14387 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14388 ;;
14389 *)
14390 shlibpath_var=LD_LIBRARY_PATH
14391 ;;
14392 esac
14393 case $host_os in
14394 freebsd2.*)
14395 shlibpath_overrides_runpath=yes
14396 ;;
14397 freebsd3.[01]* | freebsdelf3.[01]*)
14398 shlibpath_overrides_runpath=yes
14399 hardcode_into_libs=yes
14400 ;;
14401 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14402 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14403 shlibpath_overrides_runpath=no
14404 hardcode_into_libs=yes
14405 ;;
14406 *) # from 4.6 on, and DragonFly
14407 shlibpath_overrides_runpath=yes
14408 hardcode_into_libs=yes
14409 ;;
14410 esac
14411 ;;
14412
14413 haiku*)
14414 version_type=linux # correct to gnu/linux during the next big refactor
14415 need_lib_prefix=no
14416 need_version=no
14417 dynamic_linker="$host_os runtime_loader"
14418 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14419 soname_spec='$libname$release$shared_ext$major'
14420 shlibpath_var=LIBRARY_PATH
14421 shlibpath_overrides_runpath=no
14422 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14423 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14424 hardcode_into_libs=no
14425 ;;
14426
14427 hpux9* | hpux10* | hpux11*)
14428 # Give a soname corresponding to the major version so that dld.sl refuses to
14429 # link against other versions.
14430 version_type=sunos
14431 need_lib_prefix=no
14432 need_version=no
14433 case $host_cpu in
14434 ia64*)
14435 shrext_cmds='.so'
14436 hardcode_into_libs=yes
14437 dynamic_linker="$host_os dld.so"
14438 shlibpath_var=LD_LIBRARY_PATH
14439 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14441 soname_spec='$libname$release$shared_ext$major'
14442 if test 32 = "$HPUX_IA64_MODE"; then
14443 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14444 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14445 else
14446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14447 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14448 fi
14449 ;;
14450 hppa*64*)
14451 shrext_cmds='.sl'
14452 hardcode_into_libs=yes
14453 dynamic_linker="$host_os dld.sl"
14454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14457 soname_spec='$libname$release$shared_ext$major'
14458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14460 ;;
14461 *)
14462 shrext_cmds='.sl'
14463 dynamic_linker="$host_os dld.sl"
14464 shlibpath_var=SHLIB_PATH
14465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14466 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14467 soname_spec='$libname$release$shared_ext$major'
14468 ;;
14469 esac
14470 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14471 postinstall_cmds='chmod 555 $lib'
14472 # or fails outright, so override atomically:
14473 install_override_mode=555
14474 ;;
14475
14476 interix[3-9]*)
14477 version_type=linux # correct to gnu/linux during the next big refactor
14478 need_lib_prefix=no
14479 need_version=no
14480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14481 soname_spec='$libname$release$shared_ext$major'
14482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14483 shlibpath_var=LD_LIBRARY_PATH
14484 shlibpath_overrides_runpath=no
14485 hardcode_into_libs=yes
14486 ;;
14487
14488 irix5* | irix6* | nonstopux*)
14489 case $host_os in
14490 nonstopux*) version_type=nonstopux ;;
14491 *)
14492 if test yes = "$lt_cv_prog_gnu_ld"; then
14493 version_type=linux # correct to gnu/linux during the next big refactor
14494 else
14495 version_type=irix
14496 fi ;;
14497 esac
14498 need_lib_prefix=no
14499 need_version=no
14500 soname_spec='$libname$release$shared_ext$major'
14501 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14502 case $host_os in
14503 irix5* | nonstopux*)
14504 libsuff= shlibsuff=
14505 ;;
14506 *)
14507 case $LD in # libtool.m4 will add one of these switches to LD
14508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14509 libsuff= shlibsuff= libmagic=32-bit;;
14510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14511 libsuff=32 shlibsuff=N32 libmagic=N32;;
14512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14514 *) libsuff= shlibsuff= libmagic=never-match;;
14515 esac
14516 ;;
14517 esac
14518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14519 shlibpath_overrides_runpath=no
14520 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14521 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14522 hardcode_into_libs=yes
14523 ;;
14524
14525 # No shared lib support for Linux oldld, aout, or coff.
14526 linux*oldld* | linux*aout* | linux*coff*)
14527 dynamic_linker=no
14528 ;;
14529
14530 linux*android*)
14531 version_type=none # Android doesn't support versioned libraries.
14532 need_lib_prefix=no
14533 need_version=no
14534 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14535 soname_spec='$libname$release$shared_ext'
14536 finish_cmds=
14537 shlibpath_var=LD_LIBRARY_PATH
14538 shlibpath_overrides_runpath=yes
14539
14540 # This implies no fast_install, which is unacceptable.
14541 # Some rework will be needed to allow for fast_install
14542 # before this can be enabled.
14543 hardcode_into_libs=yes
14544
14545 dynamic_linker='Android linker'
14546 # -rpath works at least for libraries that are not overridden by
14547 # libraries installed in system locations.
14548 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14549 ;;
14550
14551 # This must be glibc/ELF.
14552 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14553 version_type=linux # correct to gnu/linux during the next big refactor
14554 need_lib_prefix=no
14555 need_version=no
14556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14557 soname_spec='$libname$release$shared_ext$major'
14558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 shlibpath_overrides_runpath=no
14561
14562 # Some binutils ld are patched to set DT_RUNPATH
14563 if test ${lt_cv_shlibpath_overrides_runpath+y}
14564 then :
14565 printf %s "(cached) " >&6
14566 else case e in #(
14567 e) lt_cv_shlibpath_overrides_runpath=no
14568 save_LDFLAGS=$LDFLAGS
14569 save_libdir=$libdir
14570 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14571 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573 /* end confdefs.h. */
14574
14575 int
14576 main (void)
14577 {
14578
14579 ;
14580 return 0;
14581 }
14582 _ACEOF
14583 if ac_fn_c_try_link "$LINENO"
14584 then :
14585 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14586 then :
14587 lt_cv_shlibpath_overrides_runpath=yes
14588 fi
14589 fi
14590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14591 conftest$ac_exeext conftest.$ac_ext
14592 LDFLAGS=$save_LDFLAGS
14593 libdir=$save_libdir
14594 ;;
14595 esac
14596 fi
14597
14598 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14599
14600 # This implies no fast_install, which is unacceptable.
14601 # Some rework will be needed to allow for fast_install
14602 # before this can be enabled.
14603 hardcode_into_libs=yes
14604
14605 # Ideally, we could use ldconfig to report *all* directories which are
14606 # searched for libraries, however this is still not possible. Aside from not
14607 # being certain /sbin/ldconfig is available, command
14608 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14609 # even though it is searched at run-time. Try to do the best guess by
14610 # appending ld.so.conf contents (and includes) to the search path.
14611 if test -f /etc/ld.so.conf; then
14612 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' ' '`
14613 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14614 fi
14615
14616 # We used to test for /lib/ld.so.1 and disable shared libraries on
14617 # powerpc, because MkLinux only supported shared libraries with the
14618 # GNU dynamic linker. Since this was broken with cross compilers,
14619 # most powerpc-linux boxes support dynamic linking these days and
14620 # people can always --disable-shared, the test was removed, and we
14621 # assume the GNU/Linux dynamic linker is in use.
14622 dynamic_linker='GNU/Linux ld.so'
14623 ;;
14624
14625 netbsdelf*-gnu)
14626 version_type=linux
14627 need_lib_prefix=no
14628 need_version=no
14629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14630 soname_spec='$libname$release$shared_ext$major'
14631 shlibpath_var=LD_LIBRARY_PATH
14632 shlibpath_overrides_runpath=no
14633 hardcode_into_libs=yes
14634 dynamic_linker='NetBSD ld.elf_so'
14635 ;;
14636
14637 netbsdelf*-gnu)
14638 version_type=linux
14639 need_lib_prefix=no
14640 need_version=no
14641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14642 soname_spec='${libname}${release}${shared_ext}$major'
14643 shlibpath_var=LD_LIBRARY_PATH
14644 shlibpath_overrides_runpath=no
14645 hardcode_into_libs=yes
14646 dynamic_linker='NetBSD ld.elf_so'
14647 ;;
14648
14649 netbsd*)
14650 version_type=sunos
14651 need_lib_prefix=no
14652 need_version=no
14653 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14654 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14656 dynamic_linker='NetBSD (a.out) ld.so'
14657 else
14658 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14659 soname_spec='$libname$release$shared_ext$major'
14660 dynamic_linker='NetBSD ld.elf_so'
14661 fi
14662 shlibpath_var=LD_LIBRARY_PATH
14663 shlibpath_overrides_runpath=yes
14664 hardcode_into_libs=yes
14665 ;;
14666
14667 *-mlibc)
14668 version_type=linux # correct to gnu/linux during the next big refactor
14669 need_lib_prefix=no
14670 need_version=no
14671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14672 soname_spec='$libname$release$shared_ext$major'
14673 dynamic_linker='mlibc ld.so'
14674 shlibpath_var=LD_LIBRARY_PATH
14675 shlibpath_overrides_runpath=no
14676 hardcode_into_libs=yes
14677 ;;
14678
14679 newsos6)
14680 version_type=linux # correct to gnu/linux during the next big refactor
14681 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14682 shlibpath_var=LD_LIBRARY_PATH
14683 shlibpath_overrides_runpath=yes
14684 ;;
14685
14686 *nto* | *qnx*)
14687 version_type=qnx
14688 need_lib_prefix=no
14689 need_version=no
14690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14691 soname_spec='$libname$release$shared_ext$major'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=no
14694 hardcode_into_libs=yes
14695 dynamic_linker='ldqnx.so'
14696 ;;
14697
14698 openbsd*)
14699 version_type=sunos
14700 sys_lib_dlsearch_path_spec=/usr/lib
14701 need_lib_prefix=no
14702 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14703 need_version=no
14704 else
14705 need_version=yes
14706 fi
14707 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14708 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14709 shlibpath_var=LD_LIBRARY_PATH
14710 shlibpath_overrides_runpath=yes
14711 ;;
14712
14713 os2*)
14714 libname_spec='$name'
14715 version_type=windows
14716 shrext_cmds=.dll
14717 need_version=no
14718 need_lib_prefix=no
14719 # OS/2 can only load a DLL with a base name of 8 characters or less.
14720 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14721 v=$($ECHO $release$versuffix | tr -d .-);
14722 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14723 $ECHO $n$v`$shared_ext'
14724 library_names_spec='${libname}_dll.$libext'
14725 dynamic_linker='OS/2 ld.exe'
14726 shlibpath_var=BEGINLIBPATH
14727 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14728 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14729 postinstall_cmds='base_file=`basename \$file`~
14730 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14731 dldir=$destdir/`dirname \$dlpath`~
14732 test -d \$dldir || mkdir -p \$dldir~
14733 $install_prog $dir/$dlname \$dldir/$dlname~
14734 chmod a+x \$dldir/$dlname~
14735 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14736 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14737 fi'
14738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14739 dlpath=$dir/\$dldll~
14740 $RM \$dlpath'
14741 ;;
14742
14743 osf3* | osf4* | osf5*)
14744 version_type=osf
14745 need_lib_prefix=no
14746 need_version=no
14747 soname_spec='$libname$release$shared_ext$major'
14748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14751 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14752 ;;
14753
14754 rdos*)
14755 dynamic_linker=no
14756 ;;
14757
14758 serenity*)
14759 version_type=linux # correct to gnu/linux during the next big refactor
14760 need_lib_prefix=no
14761 need_version=no
14762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14763 soname_spec='$libname$release$shared_ext$major'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 shlibpath_overrides_runpath=no
14766 dynamic_linker='SerenityOS LibELF'
14767 ;;
14768
14769 solaris*)
14770 version_type=linux # correct to gnu/linux during the next big refactor
14771 need_lib_prefix=no
14772 need_version=no
14773 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14774 soname_spec='$libname$release$shared_ext$major'
14775 shlibpath_var=LD_LIBRARY_PATH
14776 shlibpath_overrides_runpath=yes
14777 hardcode_into_libs=yes
14778 # ldd complains unless libraries are executable
14779 postinstall_cmds='chmod +x $lib'
14780 ;;
14781
14782 sunos4*)
14783 version_type=sunos
14784 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=yes
14788 if test yes = "$with_gnu_ld"; then
14789 need_lib_prefix=no
14790 fi
14791 need_version=yes
14792 ;;
14793
14794 sysv4 | sysv4.3*)
14795 version_type=linux # correct to gnu/linux during the next big refactor
14796 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14797 soname_spec='$libname$release$shared_ext$major'
14798 shlibpath_var=LD_LIBRARY_PATH
14799 case $host_vendor in
14800 sni)
14801 shlibpath_overrides_runpath=no
14802 need_lib_prefix=no
14803 runpath_var=LD_RUN_PATH
14804 ;;
14805 siemens)
14806 need_lib_prefix=no
14807 ;;
14808 motorola)
14809 need_lib_prefix=no
14810 need_version=no
14811 shlibpath_overrides_runpath=no
14812 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14813 ;;
14814 esac
14815 ;;
14816
14817 sysv4*MP*)
14818 if test -d /usr/nec; then
14819 version_type=linux # correct to gnu/linux during the next big refactor
14820 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14821 soname_spec='$libname$shared_ext.$major'
14822 shlibpath_var=LD_LIBRARY_PATH
14823 fi
14824 ;;
14825
14826 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14827 version_type=sco
14828 need_lib_prefix=no
14829 need_version=no
14830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14831 soname_spec='$libname$release$shared_ext$major'
14832 shlibpath_var=LD_LIBRARY_PATH
14833 shlibpath_overrides_runpath=yes
14834 hardcode_into_libs=yes
14835 if test yes = "$with_gnu_ld"; then
14836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14837 else
14838 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14839 case $host_os in
14840 sco3.2v5*)
14841 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14842 ;;
14843 esac
14844 fi
14845 sys_lib_dlsearch_path_spec='/usr/lib'
14846 ;;
14847
14848 tpf*)
14849 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14850 version_type=linux # correct to gnu/linux during the next big refactor
14851 need_lib_prefix=no
14852 need_version=no
14853 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14854 shlibpath_var=LD_LIBRARY_PATH
14855 shlibpath_overrides_runpath=no
14856 hardcode_into_libs=yes
14857 ;;
14858
14859 uts4*)
14860 version_type=linux # correct to gnu/linux during the next big refactor
14861 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14862 soname_spec='$libname$release$shared_ext$major'
14863 shlibpath_var=LD_LIBRARY_PATH
14864 ;;
14865
14866 emscripten*)
14867 version_type=none
14868 need_lib_prefix=no
14869 need_version=no
14870 library_names_spec='$libname$release$shared_ext'
14871 soname_spec='$libname$release$shared_ext'
14872 finish_cmds=
14873 dynamic_linker="Emscripten linker"
14874 lt_prog_compiler_wl=
14875 lt_prog_compiler_pic=
14876 lt_prog_compiler_static=
14877
14878
14879 if test yes = "$GCC"; then
14880 lt_prog_compiler_wl='-Wl,'
14881 lt_prog_compiler_static='-static'
14882
14883 case $host_os in
14884 aix*)
14885 # All AIX code is PIC.
14886 if test ia64 = "$host_cpu"; then
14887 # AIX 5 now supports IA64 processor
14888 lt_prog_compiler_static='-Bstatic'
14889 fi
14890 lt_prog_compiler_pic='-fPIC'
14891 ;;
14892
14893 amigaos*)
14894 case $host_cpu in
14895 powerpc)
14896 # see comment about AmigaOS4 .so support
14897 lt_prog_compiler_pic='-fPIC'
14898 ;;
14899 m68k)
14900 # FIXME: we need at least 68020 code to build shared libraries, but
14901 # adding the '-m68020' flag to GCC prevents building anything better,
14902 # like '-m68040'.
14903 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14904 ;;
14905 esac
14906 ;;
14907
14908 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14909 # PIC is the default for these OSes.
14910 ;;
14911
14912 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14913 # This hack is so that the source file can tell whether it is being
14914 # built for inclusion in a dll (and should export symbols for example).
14915 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14916 # (--disable-auto-import) libraries
14917 lt_prog_compiler_pic='-DDLL_EXPORT'
14918 case $host_os in
14919 os2*)
14920 lt_prog_compiler_static='$wl-static'
14921 ;;
14922 esac
14923 ;;
14924
14925 darwin* | rhapsody*)
14926 # PIC is the default on this platform
14927 # Common symbols not allowed in MH_DYLIB files
14928 lt_prog_compiler_pic='-fno-common'
14929 ;;
14930
14931 haiku*)
14932 # PIC is the default for Haiku.
14933 # The "-static" flag exists, but is broken.
14934 lt_prog_compiler_static=
14935 ;;
14936
14937 hpux*)
14938 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14939 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14940 # sets the default TLS model and affects inlining.
14941 case $host_cpu in
14942 hppa*64*)
14943 # +Z the default
14944 ;;
14945 *)
14946 lt_prog_compiler_pic='-fPIC'
14947 ;;
14948 esac
14949 ;;
14950
14951 interix[3-9]*)
14952 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14953 # Instead, we relocate shared libraries at runtime.
14954 ;;
14955
14956 msdosdjgpp*)
14957 # Just because we use GCC doesn't mean we suddenly get shared libraries
14958 # on systems that don't support them.
14959 lt_prog_compiler_can_build_shared=no
14960 enable_shared=no
14961 ;;
14962
14963 *nto* | *qnx*)
14964 # QNX uses GNU C++, but need to define -shared option too, otherwise
14965 # it will coredump.
14966 lt_prog_compiler_pic='-fPIC -shared'
14967 ;;
14968
14969 sysv4*MP*)
14970 if test -d /usr/nec; then
14971 lt_prog_compiler_pic=-Kconform_pic
14972 fi
14973 ;;
14974
14975 *)
14976 lt_prog_compiler_pic='-fPIC'
14977 ;;
14978 esac
14979
14980 case $cc_basename in
14981 nvcc*) # Cuda Compiler Driver 2.2
14982 lt_prog_compiler_wl='-Xlinker '
14983 if test -n "$lt_prog_compiler_pic"; then
14984 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14985 fi
14986 ;;
14987 esac
14988 else
14989 # PORTME Check for flag to pass linker flags through the system compiler.
14990 case $host_os in
14991 aix*)
14992 lt_prog_compiler_wl='-Wl,'
14993 if test ia64 = "$host_cpu"; then
14994 # AIX 5 now supports IA64 processor
14995 lt_prog_compiler_static='-Bstatic'
14996 else
14997 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14998 fi
14999 ;;
15000
15001 darwin* | rhapsody*)
15002 # PIC is the default on this platform
15003 # Common symbols not allowed in MH_DYLIB files
15004 lt_prog_compiler_pic='-fno-common'
15005 case $cc_basename in
15006 nagfor*)
15007 # NAG Fortran compiler
15008 lt_prog_compiler_wl='-Wl,-Wl,,'
15009 lt_prog_compiler_pic='-PIC'
15010 lt_prog_compiler_static='-Bstatic'
15011 ;;
15012 esac
15013 ;;
15014
15015 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
15016 # This hack is so that the source file can tell whether it is being
15017 # built for inclusion in a dll (and should export symbols for example).
15018 lt_prog_compiler_pic='-DDLL_EXPORT'
15019 case $host_os in
15020 os2*)
15021 lt_prog_compiler_static='$wl-static'
15022 ;;
15023 esac
15024 ;;
15025
15026 hpux9* | hpux10* | hpux11*)
15027 lt_prog_compiler_wl='-Wl,'
15028 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15029 # not for PA HP-UX.
15030 case $host_cpu in
15031 hppa*64*|ia64*)
15032 # +Z the default
15033 ;;
15034 *)
15035 lt_prog_compiler_pic='+Z'
15036 ;;
15037 esac
15038 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15039 lt_prog_compiler_static='$wl-a ${wl}archive'
15040 ;;
15041
15042 irix5* | irix6* | nonstopux*)
15043 lt_prog_compiler_wl='-Wl,'
15044 # PIC (with -KPIC) is the default.
15045 lt_prog_compiler_static='-non_shared'
15046 ;;
15047
15048 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15049 case $cc_basename in
15050 # old Intel for x86_64, which still supported -KPIC.
15051 ecc*)
15052 lt_prog_compiler_wl='-Wl,'
15053 lt_prog_compiler_pic='-KPIC'
15054 lt_prog_compiler_static='-static'
15055 ;;
15056 *flang* | ftn | f18* | f95*)
15057 # Flang compiler.
15058 lt_prog_compiler_wl='-Wl,'
15059 lt_prog_compiler_pic='-fPIC'
15060 lt_prog_compiler_static='-static'
15061 ;;
15062 # flang / f18. f95 an alias for gfortran or flang on Debian
15063 flang* | f18* | f95*)
15064 lt_prog_compiler_wl='-Wl,'
15065 lt_prog_compiler_pic='-fPIC'
15066 lt_prog_compiler_static='-static'
15067 ;;
15068 # icc used to be incompatible with GCC.
15069 # ICC 10 doesn't accept -KPIC any more.
15070 icc* | ifort*)
15071 lt_prog_compiler_wl='-Wl,'
15072 lt_prog_compiler_pic='-fPIC'
15073 lt_prog_compiler_static='-static'
15074 ;;
15075 # Lahey Fortran 8.1.
15076 lf95*)
15077 lt_prog_compiler_wl='-Wl,'
15078 lt_prog_compiler_pic='--shared'
15079 lt_prog_compiler_static='--static'
15080 ;;
15081 nagfor*)
15082 # NAG Fortran compiler
15083 lt_prog_compiler_wl='-Wl,-Wl,,'
15084 lt_prog_compiler_pic='-PIC'
15085 lt_prog_compiler_static='-Bstatic'
15086 ;;
15087 tcc*)
15088 # Fabrice Bellard et al's Tiny C Compiler
15089 lt_prog_compiler_wl='-Wl,'
15090 lt_prog_compiler_pic='-fPIC'
15091 lt_prog_compiler_static='-static'
15092 ;;
15093 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15094 # Portland Group compilers (*not* the Pentium gcc compiler,
15095 # which looks to be a dead project)
15096 lt_prog_compiler_wl='-Wl,'
15097 lt_prog_compiler_pic='-fpic'
15098 lt_prog_compiler_static='-Bstatic'
15099 ;;
15100 ccc*)
15101 lt_prog_compiler_wl='-Wl,'
15102 # All Alpha code is PIC.
15103 lt_prog_compiler_static='-non_shared'
15104 ;;
15105 xl* | bgxl* | bgf* | mpixl*)
15106 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15107 lt_prog_compiler_wl='-Wl,'
15108 lt_prog_compiler_pic='-qpic'
15109 lt_prog_compiler_static='-qstaticlink'
15110 ;;
15111 *)
15112 case `$CC -V 2>&1 | $SED 5q` in
15113 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15115 lt_prog_compiler_pic='-KPIC'
15116 lt_prog_compiler_static='-Bstatic'
15117 lt_prog_compiler_wl=''
15118 ;;
15119 *Sun\ F* | *Sun*Fortran*)
15120 lt_prog_compiler_pic='-KPIC'
15121 lt_prog_compiler_static='-Bstatic'
15122 lt_prog_compiler_wl='-Qoption ld '
15123 ;;
15124 *Sun\ C*)
15125 # Sun C 5.9
15126 lt_prog_compiler_pic='-KPIC'
15127 lt_prog_compiler_static='-Bstatic'
15128 lt_prog_compiler_wl='-Wl,'
15129 ;;
15130 *Intel*\ [CF]*Compiler*)
15131 lt_prog_compiler_wl='-Wl,'
15132 lt_prog_compiler_pic='-fPIC'
15133 lt_prog_compiler_static='-static'
15134 ;;
15135 *Portland\ Group*)
15136 lt_prog_compiler_wl='-Wl,'
15137 lt_prog_compiler_pic='-fpic'
15138 lt_prog_compiler_static='-Bstatic'
15139 ;;
15140 esac
15141 ;;
15142 esac
15143 ;;
15144
15145 newsos6)
15146 lt_prog_compiler_pic='-KPIC'
15147 lt_prog_compiler_static='-Bstatic'
15148 ;;
15149
15150 *-mlibc)
15151 lt_prog_compiler_wl='-Wl,'
15152 lt_prog_compiler_pic='-fPIC'
15153 lt_prog_compiler_static='-static'
15154 ;;
15155
15156 *nto* | *qnx*)
15157 # QNX uses GNU C++, but need to define -shared option too, otherwise
15158 # it will coredump.
15159 lt_prog_compiler_pic='-fPIC -shared'
15160 ;;
15161
15162 osf3* | osf4* | osf5*)
15163 lt_prog_compiler_wl='-Wl,'
15164 # All OSF/1 code is PIC.
15165 lt_prog_compiler_static='-non_shared'
15166 ;;
15167
15168 rdos*)
15169 lt_prog_compiler_static='-non_shared'
15170 ;;
15171
15172 serenity*)
15173 ;;
15174
15175 solaris*)
15176 lt_prog_compiler_pic='-KPIC'
15177 lt_prog_compiler_static='-Bstatic'
15178 case $cc_basename in
15179 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15180 lt_prog_compiler_wl='-Qoption ld ';;
15181 *)
15182 lt_prog_compiler_wl='-Wl,';;
15183 esac
15184 ;;
15185
15186 sunos4*)
15187 lt_prog_compiler_wl='-Qoption ld '
15188 lt_prog_compiler_pic='-PIC'
15189 lt_prog_compiler_static='-Bstatic'
15190 ;;
15191
15192 sysv4 | sysv4.2uw2* | sysv4.3*)
15193 lt_prog_compiler_wl='-Wl,'
15194 lt_prog_compiler_pic='-KPIC'
15195 lt_prog_compiler_static='-Bstatic'
15196 ;;
15197
15198 sysv4*MP*)
15199 if test -d /usr/nec; then
15200 lt_prog_compiler_pic='-Kconform_pic'
15201 lt_prog_compiler_static='-Bstatic'
15202 fi
15203 ;;
15204
15205 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15206 lt_prog_compiler_wl='-Wl,'
15207 lt_prog_compiler_pic='-KPIC'
15208 lt_prog_compiler_static='-Bstatic'
15209 ;;
15210
15211 unicos*)
15212 lt_prog_compiler_wl='-Wl,'
15213 lt_prog_compiler_can_build_shared=no
15214 ;;
15215
15216 uts4*)
15217 lt_prog_compiler_pic='-pic'
15218 lt_prog_compiler_static='-Bstatic'
15219 ;;
15220
15221 *)
15222 lt_prog_compiler_can_build_shared=no
15223 ;;
15224 esac
15225 fi
15226
15227 case $host_os in
15228 # For platforms that do not support PIC, -DPIC is meaningless:
15229 *djgpp*)
15230 lt_prog_compiler_pic=
15231 ;;
15232 *)
15233 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15234 ;;
15235 esac
15236
15237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15238 printf %s "checking for $compiler option to produce PIC... " >&6; }
15239 if test ${lt_cv_prog_compiler_pic+y}
15240 then :
15241 printf %s "(cached) " >&6
15242 else case e in #(
15243 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
15244 esac
15245 fi
15246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15247 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
15248 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15249
15250 #
15251 # Check to make sure the PIC flag actually works.
15252 #
15253 if test -n "$lt_prog_compiler_pic"; then
15254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15255 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15256 if test ${lt_cv_prog_compiler_pic_works+y}
15257 then :
15258 printf %s "(cached) " >&6
15259 else case e in #(
15260 e) lt_cv_prog_compiler_pic_works=no
15261 ac_outfile=conftest.$ac_objext
15262 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15263 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
15264 # Insert the option either (1) after the last *FLAGS variable, or
15265 # (2) before a word containing "conftest.", or (3) at the end.
15266 # Note that $ac_compile itself does not contain backslashes and begins
15267 # with a dollar sign (not a hyphen), so the echo should work correctly.
15268 # The option is referenced via a variable to avoid confusing sed.
15269 lt_compile=`echo "$ac_compile" | $SED \
15270 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15271 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15272 -e 's:$: $lt_compiler_flag:'`
15273 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15274 (eval "$lt_compile" 2>conftest.err)
15275 ac_status=$?
15276 cat conftest.err >&5
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 if (exit $ac_status) && test -s "$ac_outfile"; then
15279 # The compiler can only warn and ignore the option if not recognized
15280 # So say no if there are warnings other than the usual output.
15281 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15282 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15283 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15284 lt_cv_prog_compiler_pic_works=yes
15285 fi
15286 fi
15287 $RM conftest*
15288 ;;
15289 esac
15290 fi
15291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15292 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
15293
15294 if test yes = "$lt_cv_prog_compiler_pic_works"; then
15295 case $lt_prog_compiler_pic in
15296 "" | " "*) ;;
15297 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15298 esac
15299 else
15300 lt_prog_compiler_pic=
15301 lt_prog_compiler_can_build_shared=no
15302 fi
15303
15304 fi
15305
15306
15307
15308
15309
15310 #
15311 # Check to make sure the static flag actually works.
15312 #
15313 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15315 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15316 if test ${lt_cv_prog_compiler_static_works+y}
15317 then :
15318 printf %s "(cached) " >&6
15319 else case e in #(
15320 e) lt_cv_prog_compiler_static_works=no
15321 save_LDFLAGS=$LDFLAGS
15322 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15323 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15324 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15325 # The linker can only warn and ignore the option if not recognized
15326 # So say no if there are warnings
15327 if test -s conftest.err; then
15328 # Append any errors to the config.log.
15329 cat conftest.err 1>&5
15330 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15331 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15332 if diff conftest.exp conftest.er2 >/dev/null; then
15333 lt_cv_prog_compiler_static_works=yes
15334 fi
15335 else
15336 lt_cv_prog_compiler_static_works=yes
15337 fi
15338 fi
15339 $RM -r conftest*
15340 LDFLAGS=$save_LDFLAGS
15341 ;;
15342 esac
15343 fi
15344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15345 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15346
15347 if test yes = "$lt_cv_prog_compiler_static_works"; then
15348 :
15349 else
15350 lt_prog_compiler_static=
15351 fi
15352
15353
15354
15355 ='-fPIC'
15356 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15357 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'
15358 archive_cmds_need_lc=no
15359 no_undefined_flag=
15360 ;;
15361
15362 *)
15363 dynamic_linker=no
15364 ;;
15365 esac
15366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15367 printf "%s\n" "$dynamic_linker" >&6; }
15368 test no = "$dynamic_linker" && can_build_shared=no
15369
15370 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15371 if test yes = "$GCC"; then
15372 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15373 fi
15374
15375 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15376 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15377 fi
15378
15379 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15380 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15381 fi
15382
15383 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15384 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15385
15386 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15387 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15388
15389 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15390 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15489 printf %s "checking how to hardcode library paths into programs... " >&6; }
15490 hardcode_action=
15491 if test -n "$hardcode_libdir_flag_spec" ||
15492 test -n "$runpath_var" ||
15493 test yes = "$hardcode_automatic"; then
15494
15495 # We can hardcode non-existent directories.
15496 if test no != "$hardcode_direct" &&
15497 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15498 # have to relink, otherwise we might link with an installed library
15499 # when we should be linking with a yet-to-be-installed one
15500 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15501 test no != "$hardcode_minus_L"; then
15502 # Linking always hardcodes the temporary library directory.
15503 hardcode_action=relink
15504 else
15505 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15506 hardcode_action=immediate
15507 fi
15508 else
15509 # We cannot hardcode anything, or else we can only hardcode existing
15510 # directories.
15511 hardcode_action=unsupported
15512 fi
15513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15514 printf "%s\n" "$hardcode_action" >&6; }
15515
15516 if test relink = "$hardcode_action" ||
15517 test yes = "$inherit_rpath"; then
15518 # Fast installation is not supported
15519 enable_fast_install=no
15520 elif test yes = "$shlibpath_overrides_runpath" ||
15521 test no = "$enable_shared"; then
15522 # Fast installation is not necessary
15523 enable_fast_install=needless
15524 fi
15525
15526
15527
15528
15529
15530
15531 if test yes != "$enable_dlopen"; then
15532 enable_dlopen=unknown
15533 enable_dlopen_self=unknown
15534 enable_dlopen_self_static=unknown
15535 else
15536 lt_cv_dlopen=no
15537 lt_cv_dlopen_libs=
15538
15539 case $host_os in
15540 beos*)
15541 lt_cv_dlopen=load_add_on
15542 lt_cv_dlopen_libs=
15543 lt_cv_dlopen_self=yes
15544 ;;
15545
15546 mingw* | windows* | pw32* | cegcc*)
15547 lt_cv_dlopen=LoadLibrary
15548 lt_cv_dlopen_libs=
15549 ;;
15550
15551 cygwin*)
15552 lt_cv_dlopen=dlopen
15553 lt_cv_dlopen_libs=
15554 ;;
15555
15556 darwin*)
15557 # if libdl is installed we need to link against it
15558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15559 printf %s "checking for dlopen in -ldl... " >&6; }
15560 if test ${ac_cv_lib_dl_dlopen+y}
15561 then :
15562 printf %s "(cached) " >&6
15563 else case e in #(
15564 e) ac_check_lib_save_LIBS=$LIBS
15565 LIBS="-ldl $LIBS"
15566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15567 /* end confdefs.h. */
15568
15569 /* Override any GCC internal prototype to avoid an error.
15570 Use char because int might match the return type of a GCC
15571 builtin and then its argument prototype would still apply.
15572 The 'extern "C"' is for builds by C++ compilers;
15573 although this is not generally supported in C code supporting it here
15574 has little cost and some practical benefit (sr 110532). */
15575 #ifdef __cplusplus
15576 extern "C"
15577 #endif
15578 char dlopen (void);
15579 int
15580 main (void)
15581 {
15582 return dlopen ();
15583 ;
15584 return 0;
15585 }
15586 _ACEOF
15587 if ac_fn_c_try_link "$LINENO"
15588 then :
15589 ac_cv_lib_dl_dlopen=yes
15590 else case e in #(
15591 e) ac_cv_lib_dl_dlopen=no ;;
15592 esac
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15595 conftest$ac_exeext conftest.$ac_ext
15596 LIBS=$ac_check_lib_save_LIBS ;;
15597 esac
15598 fi
15599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15600 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15601 if test "x$ac_cv_lib_dl_dlopen" = xyes
15602 then :
15603 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15604 else case e in #(
15605 e)
15606 lt_cv_dlopen=dyld
15607 lt_cv_dlopen_libs=
15608 lt_cv_dlopen_self=yes
15609 ;;
15610 esac
15611 fi
15612
15613 ;;
15614
15615 tpf*)
15616 # Don't try to run any link tests for TPF. We know it's impossible
15617 # because TPF is a cross-compiler, and we know how we open DSOs.
15618 lt_cv_dlopen=dlopen
15619 lt_cv_dlopen_libs=
15620 lt_cv_dlopen_self=no
15621 ;;
15622
15623 *)
15624 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15625 if test "x$ac_cv_func_shl_load" = xyes
15626 then :
15627 lt_cv_dlopen=shl_load
15628 else case e in #(
15629 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15630 printf %s "checking for shl_load in -ldld... " >&6; }
15631 if test ${ac_cv_lib_dld_shl_load+y}
15632 then :
15633 printf %s "(cached) " >&6
15634 else case e in #(
15635 e) ac_check_lib_save_LIBS=$LIBS
15636 LIBS="-ldld $LIBS"
15637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15638 /* end confdefs.h. */
15639
15640 /* Override any GCC internal prototype to avoid an error.
15641 Use char because int might match the return type of a GCC
15642 builtin and then its argument prototype would still apply.
15643 The 'extern "C"' is for builds by C++ compilers;
15644 although this is not generally supported in C code supporting it here
15645 has little cost and some practical benefit (sr 110532). */
15646 #ifdef __cplusplus
15647 extern "C"
15648 #endif
15649 char shl_load (void);
15650 int
15651 main (void)
15652 {
15653 return shl_load ();
15654 ;
15655 return 0;
15656 }
15657 _ACEOF
15658 if ac_fn_c_try_link "$LINENO"
15659 then :
15660 ac_cv_lib_dld_shl_load=yes
15661 else case e in #(
15662 e) ac_cv_lib_dld_shl_load=no ;;
15663 esac
15664 fi
15665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15666 conftest$ac_exeext conftest.$ac_ext
15667 LIBS=$ac_check_lib_save_LIBS ;;
15668 esac
15669 fi
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15671 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15672 if test "x$ac_cv_lib_dld_shl_load" = xyes
15673 then :
15674 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15675 else case e in #(
15676 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15677 if test "x$ac_cv_func_dlopen" = xyes
15678 then :
15679 lt_cv_dlopen=dlopen
15680 else case e in #(
15681 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15682 printf %s "checking for dlopen in -ldl... " >&6; }
15683 if test ${ac_cv_lib_dl_dlopen+y}
15684 then :
15685 printf %s "(cached) " >&6
15686 else case e in #(
15687 e) ac_check_lib_save_LIBS=$LIBS
15688 LIBS="-ldl $LIBS"
15689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15691
15692 /* Override any GCC internal prototype to avoid an error.
15693 Use char because int might match the return type of a GCC
15694 builtin and then its argument prototype would still apply.
15695 The 'extern "C"' is for builds by C++ compilers;
15696 although this is not generally supported in C code supporting it here
15697 has little cost and some practical benefit (sr 110532). */
15698 #ifdef __cplusplus
15699 extern "C"
15700 #endif
15701 char dlopen (void);
15702 int
15703 main (void)
15704 {
15705 return dlopen ();
15706 ;
15707 return 0;
15708 }
15709 _ACEOF
15710 if ac_fn_c_try_link "$LINENO"
15711 then :
15712 ac_cv_lib_dl_dlopen=yes
15713 else case e in #(
15714 e) ac_cv_lib_dl_dlopen=no ;;
15715 esac
15716 fi
15717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15718 conftest$ac_exeext conftest.$ac_ext
15719 LIBS=$ac_check_lib_save_LIBS ;;
15720 esac
15721 fi
15722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15723 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15724 if test "x$ac_cv_lib_dl_dlopen" = xyes
15725 then :
15726 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15727 else case e in #(
15728 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15729 printf %s "checking for dlopen in -lsvld... " >&6; }
15730 if test ${ac_cv_lib_svld_dlopen+y}
15731 then :
15732 printf %s "(cached) " >&6
15733 else case e in #(
15734 e) ac_check_lib_save_LIBS=$LIBS
15735 LIBS="-lsvld $LIBS"
15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15738
15739 /* Override any GCC internal prototype to avoid an error.
15740 Use char because int might match the return type of a GCC
15741 builtin and then its argument prototype would still apply.
15742 The 'extern "C"' is for builds by C++ compilers;
15743 although this is not generally supported in C code supporting it here
15744 has little cost and some practical benefit (sr 110532). */
15745 #ifdef __cplusplus
15746 extern "C"
15747 #endif
15748 char dlopen (void);
15749 int
15750 main (void)
15751 {
15752 return dlopen ();
15753 ;
15754 return 0;
15755 }
15756 _ACEOF
15757 if ac_fn_c_try_link "$LINENO"
15758 then :
15759 ac_cv_lib_svld_dlopen=yes
15760 else case e in #(
15761 e) ac_cv_lib_svld_dlopen=no ;;
15762 esac
15763 fi
15764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15765 conftest$ac_exeext conftest.$ac_ext
15766 LIBS=$ac_check_lib_save_LIBS ;;
15767 esac
15768 fi
15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15770 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15771 if test "x$ac_cv_lib_svld_dlopen" = xyes
15772 then :
15773 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15774 else case e in #(
15775 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15776 printf %s "checking for dld_link in -ldld... " >&6; }
15777 if test ${ac_cv_lib_dld_dld_link+y}
15778 then :
15779 printf %s "(cached) " >&6
15780 else case e in #(
15781 e) ac_check_lib_save_LIBS=$LIBS
15782 LIBS="-ldld $LIBS"
15783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15784 /* end confdefs.h. */
15785
15786 /* Override any GCC internal prototype to avoid an error.
15787 Use char because int might match the return type of a GCC
15788 builtin and then its argument prototype would still apply.
15789 The 'extern "C"' is for builds by C++ compilers;
15790 although this is not generally supported in C code supporting it here
15791 has little cost and some practical benefit (sr 110532). */
15792 #ifdef __cplusplus
15793 extern "C"
15794 #endif
15795 char dld_link (void);
15796 int
15797 main (void)
15798 {
15799 return dld_link ();
15800 ;
15801 return 0;
15802 }
15803 _ACEOF
15804 if ac_fn_c_try_link "$LINENO"
15805 then :
15806 ac_cv_lib_dld_dld_link=yes
15807 else case e in #(
15808 e) ac_cv_lib_dld_dld_link=no ;;
15809 esac
15810 fi
15811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15812 conftest$ac_exeext conftest.$ac_ext
15813 LIBS=$ac_check_lib_save_LIBS ;;
15814 esac
15815 fi
15816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15817 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15818 if test "x$ac_cv_lib_dld_dld_link" = xyes
15819 then :
15820 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15821 fi
15822
15823 ;;
15824 esac
15825 fi
15826
15827 ;;
15828 esac
15829 fi
15830
15831 ;;
15832 esac
15833 fi
15834
15835 ;;
15836 esac
15837 fi
15838
15839 ;;
15840 esac
15841 fi
15842
15843 ;;
15844 esac
15845
15846 if test no = "$lt_cv_dlopen"; then
15847 enable_dlopen=no
15848 else
15849 enable_dlopen=yes
15850 fi
15851
15852 case $lt_cv_dlopen in
15853 dlopen)
15854 save_CPPFLAGS=$CPPFLAGS
15855 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15856
15857 save_LDFLAGS=$LDFLAGS
15858 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15859
15860 save_LIBS=$LIBS
15861 LIBS="$lt_cv_dlopen_libs $LIBS"
15862
15863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15864 printf %s "checking whether a program can dlopen itself... " >&6; }
15865 if test ${lt_cv_dlopen_self+y}
15866 then :
15867 printf %s "(cached) " >&6
15868 else case e in #(
15869 e) if test yes = "$cross_compiling"; then :
15870 lt_cv_dlopen_self=cross
15871 else
15872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15873 lt_status=$lt_dlunknown
15874 cat > conftest.$ac_ext <<_LT_EOF
15875 #line $LINENO "configure"
15876 #include "confdefs.h"
15877
15878 #if HAVE_DLFCN_H
15879 #include <dlfcn.h>
15880 #endif
15881
15882 #include <stdio.h>
15883
15884 #ifdef RTLD_GLOBAL
15885 # define LT_DLGLOBAL RTLD_GLOBAL
15886 #else
15887 # ifdef DL_GLOBAL
15888 # define LT_DLGLOBAL DL_GLOBAL
15889 # else
15890 # define LT_DLGLOBAL 0
15891 # endif
15892 #endif
15893
15894 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15895 find out it does not work in some platform. */
15896 #ifndef LT_DLLAZY_OR_NOW
15897 # ifdef RTLD_LAZY
15898 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15899 # else
15900 # ifdef DL_LAZY
15901 # define LT_DLLAZY_OR_NOW DL_LAZY
15902 # else
15903 # ifdef RTLD_NOW
15904 # define LT_DLLAZY_OR_NOW RTLD_NOW
15905 # else
15906 # ifdef DL_NOW
15907 # define LT_DLLAZY_OR_NOW DL_NOW
15908 # else
15909 # define LT_DLLAZY_OR_NOW 0
15910 # endif
15911 # endif
15912 # endif
15913 # endif
15914 #endif
15915
15916 /* When -fvisibility=hidden is used, assume the code has been annotated
15917 correspondingly for the symbols needed. */
15918 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15919 int fnord (void) __attribute__((visibility("default")));
15920 #endif
15921
15922 int fnord (void) { return 42; }
15923 int main (void)
15924 {
15925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15926 int status = $lt_dlunknown;
15927
15928 if (self)
15929 {
15930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15931 else
15932 {
15933 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15934 else puts (dlerror ());
15935 }
15936 /* dlclose (self); */
15937 }
15938 else
15939 puts (dlerror ());
15940
15941 return status;
15942 }
15943 _LT_EOF
15944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15945 (eval $ac_link) 2>&5
15946 ac_status=$?
15947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15948 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15949 (./conftest; exit; ) >&5 2>/dev/null
15950 lt_status=$?
15951 case x$lt_status in
15952 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15953 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15954 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15955 esac
15956 else :
15957 # compilation failed
15958 lt_cv_dlopen_self=no
15959 fi
15960 fi
15961 rm -fr conftest*
15962
15963 ;;
15964 esac
15965 fi
15966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15967 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15968
15969 if test yes = "$lt_cv_dlopen_self"; then
15970 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15972 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15973 if test ${lt_cv_dlopen_self_static+y}
15974 then :
15975 printf %s "(cached) " >&6
15976 else case e in #(
15977 e) if test yes = "$cross_compiling"; then :
15978 lt_cv_dlopen_self_static=cross
15979 else
15980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15981 lt_status=$lt_dlunknown
15982 cat > conftest.$ac_ext <<_LT_EOF
15983 #line $LINENO "configure"
15984 #include "confdefs.h"
15985
15986 #if HAVE_DLFCN_H
15987 #include <dlfcn.h>
15988 #endif
15989
15990 #include <stdio.h>
15991
15992 #ifdef RTLD_GLOBAL
15993 # define LT_DLGLOBAL RTLD_GLOBAL
15994 #else
15995 # ifdef DL_GLOBAL
15996 # define LT_DLGLOBAL DL_GLOBAL
15997 # else
15998 # define LT_DLGLOBAL 0
15999 # endif
16000 #endif
16001
16002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16003 find out it does not work in some platform. */
16004 #ifndef LT_DLLAZY_OR_NOW
16005 # ifdef RTLD_LAZY
16006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16007 # else
16008 # ifdef DL_LAZY
16009 # define LT_DLLAZY_OR_NOW DL_LAZY
16010 # else
16011 # ifdef RTLD_NOW
16012 # define LT_DLLAZY_OR_NOW RTLD_NOW
16013 # else
16014 # ifdef DL_NOW
16015 # define LT_DLLAZY_OR_NOW DL_NOW
16016 # else
16017 # define LT_DLLAZY_OR_NOW 0
16018 # endif
16019 # endif
16020 # endif
16021 # endif
16022 #endif
16023
16024 /* When -fvisibility=hidden is used, assume the code has been annotated
16025 correspondingly for the symbols needed. */
16026 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16027 int fnord (void) __attribute__((visibility("default")));
16028 #endif
16029
16030 int fnord (void) { return 42; }
16031 int main (void)
16032 {
16033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16034 int status = $lt_dlunknown;
16035
16036 if (self)
16037 {
16038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16039 else
16040 {
16041 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16042 else puts (dlerror ());
16043 }
16044 /* dlclose (self); */
16045 }
16046 else
16047 puts (dlerror ());
16048
16049 return status;
16050 }
16051 _LT_EOF
16052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16053 (eval $ac_link) 2>&5
16054 ac_status=$?
16055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16056 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16057 (./conftest; exit; ) >&5 2>/dev/null
16058 lt_status=$?
16059 case x$lt_status in
16060 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16061 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16062 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16063 esac
16064 else :
16065 # compilation failed
16066 lt_cv_dlopen_self_static=no
16067 fi
16068 fi
16069 rm -fr conftest*
16070
16071 ;;
16072 esac
16073 fi
16074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16075 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16076 fi
16077
16078 CPPFLAGS=$save_CPPFLAGS
16079 LDFLAGS=$save_LDFLAGS
16080 LIBS=$save_LIBS
16081 ;;
16082 esac
16083
16084 case $lt_cv_dlopen_self in
16085 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16086 *) enable_dlopen_self=unknown ;;
16087 esac
16088
16089 case $lt_cv_dlopen_self_static in
16090 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16091 *) enable_dlopen_self_static=unknown ;;
16092 esac
16093 fi
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111 striplib=
16112 old_striplib=
16113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16114 printf %s "checking whether stripping libraries is possible... " >&6; }
16115 if test -z "$STRIP"; then
16116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16117 printf "%s\n" "no" >&6; }
16118 else
16119 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16120 old_striplib="$STRIP --strip-debug"
16121 striplib="$STRIP --strip-unneeded"
16122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16123 printf "%s\n" "yes" >&6; }
16124 else
16125 case $host_os in
16126 darwin*)
16127 # FIXME - insert some real tests, host_os isn't really good enough
16128 striplib="$STRIP -x"
16129 old_striplib="$STRIP -S"
16130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16131 printf "%s\n" "yes" >&6; }
16132 ;;
16133 freebsd*)
16134 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16135 old_striplib="$STRIP --strip-debug"
16136 striplib="$STRIP --strip-unneeded"
16137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16138 printf "%s\n" "yes" >&6; }
16139 else
16140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16141 printf "%s\n" "no" >&6; }
16142 fi
16143 ;;
16144 *)
16145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16146 printf "%s\n" "no" >&6; }
16147 ;;
16148 esac
16149 fi
16150 fi
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163 # Report what library types will actually be built
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16165 printf %s "checking if libtool supports shared libraries... " >&6; }
16166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16167 printf "%s\n" "$can_build_shared" >&6; }
16168
16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16170 printf %s "checking whether to build shared libraries... " >&6; }
16171 test no = "$can_build_shared" && enable_shared=no
16172
16173 # On AIX, shared libraries and static libraries use the same namespace, and
16174 # are all built from PIC.
16175 case $host_os in
16176 aix3*)
16177 test yes = "$enable_shared" && enable_static=no
16178 if test -n "$RANLIB"; then
16179 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16180 postinstall_cmds='$RANLIB $lib'
16181 fi
16182 ;;
16183
16184 aix[4-9]*)
16185 if test ia64 != "$host_cpu"; then
16186 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16187 yes,aix,yes) ;; # shared object as lib.so file only
16188 yes,svr4,*) ;; # shared object as lib.so archive member only
16189 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16190 esac
16191 fi
16192 ;;
16193 esac
16194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16195 printf "%s\n" "$enable_shared" >&6; }
16196
16197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16198 printf %s "checking whether to build static libraries... " >&6; }
16199 # Make sure either enable_shared or enable_static is yes.
16200 test yes = "$enable_shared" || enable_static=yes
16201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16202 printf "%s\n" "$enable_static" >&6; }
16203
16204
16205
16206
16207 fi
16208 ac_ext=cpp
16209 ac_cpp='$CXXCPP $CPPFLAGS'
16210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16213
16214 CC=$lt_save_CC
16215
16216 if test -n "$CXX" && ( test no != "$CXX" &&
16217 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16218 (test g++ != "$CXX"))); then
16219 ac_ext=cpp
16220 ac_cpp='$CXXCPP $CPPFLAGS'
16221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16225 printf %s "checking how to run the C++ preprocessor... " >&6; }
16226 if test -z "$CXXCPP"; then
16227 if test ${ac_cv_prog_CXXCPP+y}
16228 then :
16229 printf %s "(cached) " >&6
16230 else case e in #(
16231 e) # Double quotes because $CXX needs to be expanded
16232 for CXXCPP in "$CXX -E" cpp /lib/cpp
16233 do
16234 ac_preproc_ok=false
16235 for ac_cxx_preproc_warn_flag in '' yes
16236 do
16237 # Use a header file that comes with gcc, so configuring glibc
16238 # with a fresh cross-compiler works.
16239 # On the NeXT, cc -E runs the code through the compiler's parser,
16240 # not just through cpp. "Syntax error" is here to catch this case.
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h. */
16243 #include <limits.h>
16244 Syntax error
16245 _ACEOF
16246 if ac_fn_cxx_try_cpp "$LINENO"
16247 then :
16248
16249 else case e in #(
16250 e) # Broken: fails on valid input.
16251 continue ;;
16252 esac
16253 fi
16254 rm -f conftest.err conftest.i conftest.$ac_ext
16255
16256 # OK, works on sane cases. Now check whether nonexistent headers
16257 # can be detected and how.
16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 /* end confdefs.h. */
16260 #include <ac_nonexistent.h>
16261 _ACEOF
16262 if ac_fn_cxx_try_cpp "$LINENO"
16263 then :
16264 # Broken: success on invalid input.
16265 continue
16266 else case e in #(
16267 e) # Passes both tests.
16268 ac_preproc_ok=:
16269 break ;;
16270 esac
16271 fi
16272 rm -f conftest.err conftest.i conftest.$ac_ext
16273
16274 done
16275 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16276 rm -f conftest.i conftest.err conftest.$ac_ext
16277 if $ac_preproc_ok
16278 then :
16279 break
16280 fi
16281
16282 done
16283 ac_cv_prog_CXXCPP=$CXXCPP
16284 ;;
16285 esac
16286 fi
16287 CXXCPP=$ac_cv_prog_CXXCPP
16288 else
16289 ac_cv_prog_CXXCPP=$CXXCPP
16290 fi
16291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16292 printf "%s\n" "$CXXCPP" >&6; }
16293 ac_preproc_ok=false
16294 for ac_cxx_preproc_warn_flag in '' yes
16295 do
16296 # Use a header file that comes with gcc, so configuring glibc
16297 # with a fresh cross-compiler works.
16298 # On the NeXT, cc -E runs the code through the compiler's parser,
16299 # not just through cpp. "Syntax error" is here to catch this case.
16300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16301 /* end confdefs.h. */
16302 #include <limits.h>
16303 Syntax error
16304 _ACEOF
16305 if ac_fn_cxx_try_cpp "$LINENO"
16306 then :
16307
16308 else case e in #(
16309 e) # Broken: fails on valid input.
16310 continue ;;
16311 esac
16312 fi
16313 rm -f conftest.err conftest.i conftest.$ac_ext
16314
16315 # OK, works on sane cases. Now check whether nonexistent headers
16316 # can be detected and how.
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319 #include <ac_nonexistent.h>
16320 _ACEOF
16321 if ac_fn_cxx_try_cpp "$LINENO"
16322 then :
16323 # Broken: success on invalid input.
16324 continue
16325 else case e in #(
16326 e) # Passes both tests.
16327 ac_preproc_ok=:
16328 break ;;
16329 esac
16330 fi
16331 rm -f conftest.err conftest.i conftest.$ac_ext
16332
16333 done
16334 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16335 rm -f conftest.i conftest.err conftest.$ac_ext
16336 if $ac_preproc_ok
16337 then :
16338
16339 else case e in #(
16340 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16341 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16342 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16343 See 'config.log' for more details" "$LINENO" 5; } ;;
16344 esac
16345 fi
16346
16347 ac_ext=cpp
16348 ac_cpp='$CXXCPP $CPPFLAGS'
16349 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16350 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16351 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16352
16353 else
16354 _lt_caught_CXX_error=yes
16355 fi
16356
16357 ac_ext=cpp
16358 ac_cpp='$CXXCPP $CPPFLAGS'
16359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16362
16363 archive_cmds_need_lc_CXX=no
16364 allow_undefined_flag_CXX=
16365 always_export_symbols_CXX=no
16366 archive_expsym_cmds_CXX=
16367 compiler_needs_object_CXX=no
16368 export_dynamic_flag_spec_CXX=
16369 hardcode_direct_CXX=no
16370 hardcode_direct_absolute_CXX=no
16371 hardcode_libdir_flag_spec_CXX=
16372 hardcode_libdir_separator_CXX=
16373 hardcode_minus_L_CXX=no
16374 hardcode_shlibpath_var_CXX=unsupported
16375 hardcode_automatic_CXX=no
16376 inherit_rpath_CXX=no
16377 module_cmds_CXX=
16378 module_expsym_cmds_CXX=
16379 link_all_deplibs_CXX=unknown
16380 old_archive_cmds_CXX=$old_archive_cmds
16381 reload_flag_CXX=$reload_flag
16382 reload_cmds_CXX=$reload_cmds
16383 no_undefined_flag_CXX=
16384 whole_archive_flag_spec_CXX=
16385 enable_shared_with_static_runtimes_CXX=no
16386
16387 # Source file extension for C++ test sources.
16388 ac_ext=cpp
16389
16390 # Object file extension for compiled C++ test sources.
16391 objext=o
16392 objext_CXX=$objext
16393
16394 # No sense in running all these tests if we already determined that
16395 # the CXX compiler isn't working. Some variables (like enable_shared)
16396 # are currently assumed to apply to all compilers on this platform,
16397 # and will be corrupted by setting them based on a non-working compiler.
16398 if test yes != "$_lt_caught_CXX_error"; then
16399 # Code to be used in simple compile tests
16400 lt_simple_compile_test_code="int some_variable = 0;"
16401
16402 # Code to be used in simple link tests
16403 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16404
16405 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16406
16407
16408
16409
16410
16411
16412 # If no C compiler was specified, use CC.
16413 LTCC=${LTCC-"$CC"}
16414
16415 # If no C compiler flags were specified, use CFLAGS.
16416 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16417
16418 # Allow CC to be a program name with arguments.
16419 compiler=$CC
16420
16421
16422 # save warnings/boilerplate of simple test code
16423 ac_outfile=conftest.$ac_objext
16424 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16425 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16426 _lt_compiler_boilerplate=`cat conftest.err`
16427 $RM conftest*
16428
16429 ac_outfile=conftest.$ac_objext
16430 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16431 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16432 _lt_linker_boilerplate=`cat conftest.err`
16433 $RM -r conftest*
16434
16435
16436 # Allow CC to be a program name with arguments.
16437 lt_save_CC=$CC
16438 lt_save_CFLAGS=$CFLAGS
16439 lt_save_LD=$LD
16440 lt_save_GCC=$GCC
16441 GCC=$GXX
16442 lt_save_with_gnu_ld=$with_gnu_ld
16443 lt_save_path_LD=$lt_cv_path_LD
16444 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16445 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16446 else
16447 $as_unset lt_cv_prog_gnu_ld
16448 fi
16449 if test -n "${lt_cv_path_LDCXX+set}"; then
16450 lt_cv_path_LD=$lt_cv_path_LDCXX
16451 else
16452 $as_unset lt_cv_path_LD
16453 fi
16454 test -z "${LDCXX+set}" || LD=$LDCXX
16455 CC=${CXX-"c++"}
16456 CFLAGS=$CXXFLAGS
16457 compiler=$CC
16458 compiler_CXX=$CC
16459 func_cc_basename $compiler
16460 cc_basename=$func_cc_basename_result
16461
16462
16463 if test -n "$compiler"; then
16464 # We don't want -fno-exception when compiling C++ code, so set the
16465 # no_builtin_flag separately
16466 if test yes = "$GXX"; then
16467 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16468 else
16469 lt_prog_compiler_no_builtin_flag_CXX=
16470 fi
16471
16472 if test yes = "$GXX"; then
16473 # Set up default GNU C++ configuration
16474
16475
16476
16477 # Check whether --with-gnu-ld was given.
16478 if test ${with_gnu_ld+y}
16479 then :
16480 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16481 else case e in #(
16482 e) with_gnu_ld=no ;;
16483 esac
16484 fi
16485
16486 ac_prog=ld
16487 if test yes = "$GCC"; then
16488 # Check if gcc -print-prog-name=ld gives a path.
16489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16490 printf %s "checking for ld used by $CC... " >&6; }
16491 case $host in
16492 *-*-mingw* | *-*-windows*)
16493 # gcc leaves a trailing carriage return, which upsets mingw
16494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16495 *)
16496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16497 esac
16498 case $ac_prog in
16499 # Accept absolute paths.
16500 [\\/]* | ?:[\\/]*)
16501 re_direlt='/[^/][^/]*/\.\./'
16502 # Canonicalize the pathname of ld
16503 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16504 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16505 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16506 done
16507 test -z "$LD" && LD=$ac_prog
16508 ;;
16509 "")
16510 # If it fails, then pretend we aren't using GCC.
16511 ac_prog=ld
16512 ;;
16513 *)
16514 # If it is relative, then search for the first ld in PATH.
16515 with_gnu_ld=unknown
16516 ;;
16517 esac
16518 elif test yes = "$with_gnu_ld"; then
16519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16520 printf %s "checking for GNU ld... " >&6; }
16521 else
16522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16523 printf %s "checking for non-GNU ld... " >&6; }
16524 fi
16525 if test ${lt_cv_path_LD+y}
16526 then :
16527 printf %s "(cached) " >&6
16528 else case e in #(
16529 e) if test -z "$LD"; then
16530 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16531 for ac_dir in $PATH; do
16532 IFS=$lt_save_ifs
16533 test -z "$ac_dir" && ac_dir=.
16534 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16535 lt_cv_path_LD=$ac_dir/$ac_prog
16536 # Check to see if the program is GNU ld. I'd rather use --version,
16537 # but apparently some variants of GNU ld only accept -v.
16538 # Break only if it was the GNU/non-GNU ld that we prefer.
16539 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16540 *GNU* | *'with BFD'*)
16541 test no != "$with_gnu_ld" && break
16542 ;;
16543 *)
16544 test yes != "$with_gnu_ld" && break
16545 ;;
16546 esac
16547 fi
16548 done
16549 IFS=$lt_save_ifs
16550 else
16551 lt_cv_path_LD=$LD # Let the user override the test with a path.
16552 fi ;;
16553 esac
16554 fi
16555
16556 LD=$lt_cv_path_LD
16557 if test -n "$LD"; then
16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16559 printf "%s\n" "$LD" >&6; }
16560 else
16561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16562 printf "%s\n" "no" >&6; }
16563 fi
16564 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16566 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16567 if test ${lt_cv_prog_gnu_ld+y}
16568 then :
16569 printf %s "(cached) " >&6
16570 else case e in #(
16571 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16572 case `$LD -v 2>&1 </dev/null` in
16573 *GNU* | *'with BFD'*)
16574 lt_cv_prog_gnu_ld=yes
16575 ;;
16576 *)
16577 lt_cv_prog_gnu_ld=no
16578 ;;
16579 esac ;;
16580 esac
16581 fi
16582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16583 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16584 with_gnu_ld=$lt_cv_prog_gnu_ld
16585
16586
16587
16588
16589
16590
16591
16592 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16593 # archiving commands below assume that GNU ld is being used.
16594 if test yes = "$with_gnu_ld"; then
16595 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16596 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'
16597
16598 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16599 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16600
16601 # If archive_cmds runs LD, not CC, wlarc should be empty
16602 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16603 # investigate it a little bit more. (MM)
16604 wlarc='$wl'
16605
16606 # ancient GNU ld didn't support --whole-archive et. al.
16607 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16608 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16609 else
16610 whole_archive_flag_spec_CXX=
16611 fi
16612 else
16613 with_gnu_ld=no
16614 wlarc=
16615
16616 # A generic and very simple default shared library creation
16617 # command for GNU C++ for the case where it uses the native
16618 # linker, instead of GNU ld. If possible, this setting should
16619 # overridden to take advantage of the native linker features on
16620 # the platform it is being used on.
16621 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16622 fi
16623
16624 # Commands to make compiler produce verbose output that lists
16625 # what "hidden" libraries, object files and flags are used when
16626 # linking a shared library.
16627 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16628
16629 else
16630 GXX=no
16631 with_gnu_ld=no
16632 wlarc=
16633 fi
16634
16635 # PORTME: fill in a description of your system's C++ link characteristics
16636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16637 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16638 ld_shlibs_CXX=yes
16639 case $host_os in
16640 aix3*)
16641 # FIXME: insert proper C++ library support
16642 ld_shlibs_CXX=no
16643 ;;
16644 aix[4-9]*)
16645 if test ia64 = "$host_cpu"; then
16646 # On IA64, the linker does run time linking by default, so we don't
16647 # have to do anything special.
16648 aix_use_runtimelinking=no
16649 exp_sym_flag='-Bexport'
16650 no_entry_flag=
16651 else
16652 aix_use_runtimelinking=no
16653
16654 # Test if we are trying to use run time linking or normal
16655 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16656 # have runtime linking enabled, and use it for executables.
16657 # For shared libraries, we enable/disable runtime linking
16658 # depending on the kind of the shared library created -
16659 # when "with_aix_soname,aix_use_runtimelinking" is:
16660 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16661 # "aix,yes" lib.so shared, rtl:yes, for executables
16662 # lib.a static archive
16663 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16664 # lib.a(lib.so.V) shared, rtl:no, for executables
16665 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16666 # lib.a(lib.so.V) shared, rtl:no
16667 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16668 # lib.a static archive
16669 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16670 for ld_flag in $LDFLAGS; do
16671 case $ld_flag in
16672 *-brtl*)
16673 aix_use_runtimelinking=yes
16674 break
16675 ;;
16676 esac
16677 done
16678 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16679 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16680 # so we don't have lib.a shared libs to link our executables.
16681 # We have to force runtime linking in this case.
16682 aix_use_runtimelinking=yes
16683 LDFLAGS="$LDFLAGS -Wl,-brtl"
16684 fi
16685 ;;
16686 esac
16687
16688 exp_sym_flag='-bexport'
16689 no_entry_flag='-bnoentry'
16690 fi
16691
16692 # When large executables or shared objects are built, AIX ld can
16693 # have problems creating the table of contents. If linking a library
16694 # or program results in "error TOC overflow" add -mminimal-toc to
16695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16697
16698 archive_cmds_CXX=''
16699 hardcode_direct_CXX=yes
16700 hardcode_direct_absolute_CXX=yes
16701 hardcode_libdir_separator_CXX=':'
16702 link_all_deplibs_CXX=yes
16703 file_list_spec_CXX='$wl-f,'
16704 case $with_aix_soname,$aix_use_runtimelinking in
16705 aix,*) ;; # no import file
16706 svr4,* | *,yes) # use import file
16707 # The Import File defines what to hardcode.
16708 hardcode_direct_CXX=no
16709 hardcode_direct_absolute_CXX=no
16710 ;;
16711 esac
16712
16713 if test yes = "$GXX"; then
16714 case $host_os in aix4.[012]|aix4.[012].*)
16715 # We only want to do this on AIX 4.2 and lower, the check
16716 # below for broken collect2 doesn't work under 4.3+
16717 collect2name=`$CC -print-prog-name=collect2`
16718 if test -f "$collect2name" &&
16719 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16720 then
16721 # We have reworked collect2
16722 :
16723 else
16724 # We have old collect2
16725 hardcode_direct_CXX=unsupported
16726 # It fails to find uninstalled libraries when the uninstalled
16727 # path is not listed in the libpath. Setting hardcode_minus_L
16728 # to unsupported forces relinking
16729 hardcode_minus_L_CXX=yes
16730 hardcode_libdir_flag_spec_CXX='-L$libdir'
16731 hardcode_libdir_separator_CXX=
16732 fi
16733 esac
16734 shared_flag='-shared'
16735 if test yes = "$aix_use_runtimelinking"; then
16736 shared_flag=$shared_flag' $wl-G'
16737 fi
16738 # Need to ensure runtime linking is disabled for the traditional
16739 # shared library, or the linker may eventually find shared libraries
16740 # /with/ Import File - we do not want to mix them.
16741 shared_flag_aix='-shared'
16742 shared_flag_svr4='-shared $wl-G'
16743 else
16744 # not using gcc
16745 if test ia64 = "$host_cpu"; then
16746 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16747 # chokes on -Wl,-G. The following line is correct:
16748 shared_flag='-G'
16749 else
16750 if test yes = "$aix_use_runtimelinking"; then
16751 shared_flag='$wl-G'
16752 else
16753 shared_flag='$wl-bM:SRE'
16754 fi
16755 shared_flag_aix='$wl-bM:SRE'
16756 shared_flag_svr4='$wl-G'
16757 fi
16758 fi
16759
16760 export_dynamic_flag_spec_CXX='$wl-bexpall'
16761 # It seems that -bexpall does not export symbols beginning with
16762 # underscore (_), so it is better to generate a list of symbols to
16763 # export.
16764 always_export_symbols_CXX=yes
16765 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16766 # Warning - without using the other runtime loading flags (-brtl),
16767 # -berok will link without error, but may produce a broken library.
16768 # The "-G" linker flag allows undefined symbols.
16769 no_undefined_flag_CXX='-bernotok'
16770 # Determine the default libpath from the value encoded in an empty
16771 # executable.
16772 if test set = "${lt_cv_aix_libpath+set}"; then
16773 aix_libpath=$lt_cv_aix_libpath
16774 else
16775 if test ${lt_cv_aix_libpath__CXX+y}
16776 then :
16777 printf %s "(cached) " >&6
16778 else case e in #(
16779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16780 /* end confdefs.h. */
16781
16782 int
16783 main (void)
16784 {
16785
16786 ;
16787 return 0;
16788 }
16789 _ACEOF
16790 if ac_fn_cxx_try_link "$LINENO"
16791 then :
16792
16793 lt_aix_libpath_sed='
16794 /Import File Strings/,/^$/ {
16795 /^0/ {
16796 s/^0 *\([^ ]*\) *$/\1/
16797 p
16798 }
16799 }'
16800 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16801 # Check for a 64-bit object if we didn't find anything.
16802 if test -z "$lt_cv_aix_libpath__CXX"; then
16803 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16804 fi
16805 fi
16806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16807 conftest$ac_exeext conftest.$ac_ext
16808 if test -z "$lt_cv_aix_libpath__CXX"; then
16809 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16810 fi
16811 ;;
16812 esac
16813 fi
16814
16815 aix_libpath=$lt_cv_aix_libpath__CXX
16816 fi
16817
16818 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16819
16820 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
16821 else
16822 if test ia64 = "$host_cpu"; then
16823 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16824 allow_undefined_flag_CXX="-z nodefs"
16825 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"
16826 else
16827 # Determine the default libpath from the value encoded in an
16828 # empty executable.
16829 if test set = "${lt_cv_aix_libpath+set}"; then
16830 aix_libpath=$lt_cv_aix_libpath
16831 else
16832 if test ${lt_cv_aix_libpath__CXX+y}
16833 then :
16834 printf %s "(cached) " >&6
16835 else case e in #(
16836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16837 /* end confdefs.h. */
16838
16839 int
16840 main (void)
16841 {
16842
16843 ;
16844 return 0;
16845 }
16846 _ACEOF
16847 if ac_fn_cxx_try_link "$LINENO"
16848 then :
16849
16850 lt_aix_libpath_sed='
16851 /Import File Strings/,/^$/ {
16852 /^0/ {
16853 s/^0 *\([^ ]*\) *$/\1/
16854 p
16855 }
16856 }'
16857 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16858 # Check for a 64-bit object if we didn't find anything.
16859 if test -z "$lt_cv_aix_libpath__CXX"; then
16860 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16861 fi
16862 fi
16863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16864 conftest$ac_exeext conftest.$ac_ext
16865 if test -z "$lt_cv_aix_libpath__CXX"; then
16866 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16867 fi
16868 ;;
16869 esac
16870 fi
16871
16872 aix_libpath=$lt_cv_aix_libpath__CXX
16873 fi
16874
16875 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16876 # Warning - without using the other run time loading flags,
16877 # -berok will link without error, but may produce a broken library.
16878 no_undefined_flag_CXX=' $wl-bernotok'
16879 allow_undefined_flag_CXX=' $wl-berok'
16880 if test yes = "$with_gnu_ld"; then
16881 # We only use this code for GNU lds that support --whole-archive.
16882 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16883 else
16884 # Exported symbols can be pulled into shared objects from archives
16885 whole_archive_flag_spec_CXX='$convenience'
16886 fi
16887 archive_cmds_need_lc_CXX=yes
16888 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16889 # -brtl affects multiple linker settings, -berok does not and is overridden later
16890 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16891 if test svr4 != "$with_aix_soname"; then
16892 # This is similar to how AIX traditionally builds its shared
16893 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16894 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'
16895 fi
16896 if test aix != "$with_aix_soname"; then
16897 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'
16898 else
16899 # used by -dlpreopen to get the symbols
16900 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16901 fi
16902 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16903 fi
16904 fi
16905 ;;
16906
16907 beos*)
16908 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16909 allow_undefined_flag_CXX=unsupported
16910 # Joseph Beckenbach <[email protected]> says some releases of gcc
16911 # support --undefined. This deserves some investigation. FIXME
16912 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16913 else
16914 ld_shlibs_CXX=no
16915 fi
16916 ;;
16917
16918 chorus*)
16919 case $cc_basename in
16920 *)
16921 # FIXME: insert proper C++ library support
16922 ld_shlibs_CXX=no
16923 ;;
16924 esac
16925 ;;
16926
16927 cygwin* | mingw* | windows* | pw32* | cegcc*)
16928 case $GXX,$cc_basename in
16929 ,cl* | no,cl* | ,icl* | no,icl*)
16930 # Native MSVC or ICC
16931 # hardcode_libdir_flag_spec is actually meaningless, as there is
16932 # no search path for DLLs.
16933 hardcode_libdir_flag_spec_CXX=' '
16934 allow_undefined_flag_CXX=unsupported
16935 always_export_symbols_CXX=yes
16936 file_list_spec_CXX='@'
16937 # Tell ltmain to make .lib files, not .a files.
16938 libext=lib
16939 # Tell ltmain to make .dll files, not .so files.
16940 shrext_cmds=.dll
16941 # FIXME: Setting linknames here is a bad hack.
16942 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16943 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16944 cp "$export_symbols" "$output_objdir/$soname.def";
16945 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16946 else
16947 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16948 fi~
16949 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16950 linknames='
16951 # The linker will not automatically build a static lib if we build a DLL.
16952 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16953 enable_shared_with_static_runtimes_CXX=yes
16954 # Don't use ranlib
16955 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16956 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16957 lt_tool_outputfile="@TOOL_OUTPUT@"~
16958 case $lt_outputfile in
16959 *.exe|*.EXE) ;;
16960 *)
16961 lt_outputfile=$lt_outputfile.exe
16962 lt_tool_outputfile=$lt_tool_outputfile.exe
16963 ;;
16964 esac~
16965 func_to_tool_file "$lt_outputfile"~
16966 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16967 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16968 $RM "$lt_outputfile.manifest";
16969 fi'
16970 ;;
16971 *)
16972 # g++
16973 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16974 # as there is no search path for DLLs.
16975 hardcode_libdir_flag_spec_CXX='-L$libdir'
16976 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16977 allow_undefined_flag_CXX=unsupported
16978 always_export_symbols_CXX=no
16979 enable_shared_with_static_runtimes_CXX=yes
16980 file_list_spec_CXX='@'
16981
16982 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16983 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'
16984 # If the export-symbols file already is a .def file, use it as
16985 # is; otherwise, prepend EXPORTS...
16986 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16987 cp $export_symbols $output_objdir/$soname.def;
16988 else
16989 echo EXPORTS > $output_objdir/$soname.def;
16990 cat $export_symbols >> $output_objdir/$soname.def;
16991 fi~
16992 $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'
16993 else
16994 ld_shlibs_CXX=no
16995 fi
16996 ;;
16997 esac
16998 ;;
16999 darwin* | rhapsody*)
17000
17001
17002 archive_cmds_need_lc_CXX=no
17003 hardcode_direct_CXX=no
17004 hardcode_automatic_CXX=yes
17005 hardcode_shlibpath_var_CXX=unsupported
17006 if test yes = "$lt_cv_ld_force_load"; then
17007 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\"`'
17008
17009 else
17010 whole_archive_flag_spec_CXX=''
17011 fi
17012 link_all_deplibs_CXX=yes
17013 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17014 case $cc_basename in
17015 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17016 *) _lt_dar_can_shared=$GCC ;;
17017 esac
17018 if test yes = "$_lt_dar_can_shared"; then
17019 output_verbose_link_cmd=func_echo_all
17020 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"
17021 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17022 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"
17023 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"
17024 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
17025 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"
17026 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"
17027 fi
17028
17029 else
17030 ld_shlibs_CXX=no
17031 fi
17032
17033 ;;
17034
17035 os2*)
17036 hardcode_libdir_flag_spec_CXX='-L$libdir'
17037 hardcode_minus_L_CXX=yes
17038 allow_undefined_flag_CXX=unsupported
17039 shrext_cmds=.dll
17040 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17041 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17042 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17043 $ECHO EXPORTS >> $output_objdir/$libname.def~
17044 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17045 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17046 emximp -o $lib $output_objdir/$libname.def'
17047 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17048 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17049 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17050 $ECHO EXPORTS >> $output_objdir/$libname.def~
17051 prefix_cmds="$SED"~
17052 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17053 prefix_cmds="$prefix_cmds -e 1d";
17054 fi~
17055 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17056 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17057 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17058 emximp -o $lib $output_objdir/$libname.def'
17059 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17060 enable_shared_with_static_runtimes_CXX=yes
17061 file_list_spec_CXX='@'
17062 ;;
17063
17064 dgux*)
17065 case $cc_basename in
17066 ec++*)
17067 # FIXME: insert proper C++ library support
17068 ld_shlibs_CXX=no
17069 ;;
17070 ghcx*)
17071 # Green Hills C++ Compiler
17072 # FIXME: insert proper C++ library support
17073 ld_shlibs_CXX=no
17074 ;;
17075 *)
17076 # FIXME: insert proper C++ library support
17077 ld_shlibs_CXX=no
17078 ;;
17079 esac
17080 ;;
17081
17082 freebsd2.*)
17083 # C++ shared libraries reported to be fairly broken before
17084 # switch to ELF
17085 ld_shlibs_CXX=no
17086 ;;
17087
17088 freebsd-elf*)
17089 archive_cmds_need_lc_CXX=no
17090 ;;
17091
17092 freebsd* | dragonfly* | midnightbsd*)
17093 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17094 # conventions
17095 ld_shlibs_CXX=yes
17096 ;;
17097
17098 haiku*)
17099 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17100 link_all_deplibs_CXX=no
17101 ;;
17102
17103 hpux9*)
17104 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17105 hardcode_libdir_separator_CXX=:
17106 export_dynamic_flag_spec_CXX='$wl-E'
17107 hardcode_direct_CXX=yes
17108 hardcode_minus_L_CXX=yes # Not in the search PATH,
17109 # but as the default
17110 # location of the library.
17111
17112 case $cc_basename in
17113 CC*)
17114 # FIXME: insert proper C++ library support
17115 ld_shlibs_CXX=no
17116 ;;
17117 aCC*)
17118 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'
17119 # Commands to make compiler produce verbose output that lists
17120 # what "hidden" libraries, object files and flags are used when
17121 # linking a shared library.
17122 #
17123 # There doesn't appear to be a way to prevent this compiler from
17124 # explicitly linking system object files so we need to strip them
17125 # from the output so that they don't get included in the library
17126 # dependencies.
17127 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"'
17128 ;;
17129 *)
17130 if test yes = "$GXX"; then
17131 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'
17132 else
17133 # FIXME: insert proper C++ library support
17134 ld_shlibs_CXX=no
17135 fi
17136 ;;
17137 esac
17138 ;;
17139
17140 hpux10*|hpux11*)
17141 if test no = "$with_gnu_ld"; then
17142 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17143 hardcode_libdir_separator_CXX=:
17144
17145 case $host_cpu in
17146 hppa*64*|ia64*)
17147 ;;
17148 *)
17149 export_dynamic_flag_spec_CXX='$wl-E'
17150 ;;
17151 esac
17152 fi
17153 case $host_cpu in
17154 hppa*64*|ia64*)
17155 hardcode_direct_CXX=no
17156 hardcode_shlibpath_var_CXX=no
17157 ;;
17158 *)
17159 hardcode_direct_CXX=yes
17160 hardcode_direct_absolute_CXX=yes
17161 hardcode_minus_L_CXX=yes # Not in the search PATH,
17162 # but as the default
17163 # location of the library.
17164 ;;
17165 esac
17166
17167 case $cc_basename in
17168 CC*)
17169 # FIXME: insert proper C++ library support
17170 ld_shlibs_CXX=no
17171 ;;
17172 aCC*)
17173 case $host_cpu in
17174 hppa*64*)
17175 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17176 ;;
17177 ia64*)
17178 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17179 ;;
17180 *)
17181 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17182 ;;
17183 esac
17184 # Commands to make compiler produce verbose output that lists
17185 # what "hidden" libraries, object files and flags are used when
17186 # linking a shared library.
17187 #
17188 # There doesn't appear to be a way to prevent this compiler from
17189 # explicitly linking system object files so we need to strip them
17190 # from the output so that they don't get included in the library
17191 # dependencies.
17192 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"'
17193 ;;
17194 *)
17195 if test yes = "$GXX"; then
17196 if test no = "$with_gnu_ld"; then
17197 case $host_cpu in
17198 hppa*64*)
17199 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17200 ;;
17201 ia64*)
17202 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17203 ;;
17204 *)
17205 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'
17206 ;;
17207 esac
17208 fi
17209 else
17210 # FIXME: insert proper C++ library support
17211 ld_shlibs_CXX=no
17212 fi
17213 ;;
17214 esac
17215 ;;
17216
17217 interix[3-9]*)
17218 hardcode_direct_CXX=no
17219 hardcode_shlibpath_var_CXX=no
17220 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17221 export_dynamic_flag_spec_CXX='$wl-E'
17222 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17223 # Instead, shared libraries are loaded at an image base (0x10000000 by
17224 # default) and relocated if they conflict, which is a slow very memory
17225 # consuming and fragmenting process. To avoid this, we pick a random,
17226 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17227 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17228 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'
17229 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'
17230 ;;
17231 irix5* | irix6*)
17232 case $cc_basename in
17233 CC*)
17234 # SGI C++
17235 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'
17236
17237 # Archives containing C++ object files must be created using
17238 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17239 # necessary to make sure instantiated templates are included
17240 # in the archive.
17241 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17242 ;;
17243 *)
17244 if test yes = "$GXX"; then
17245 if test no = "$with_gnu_ld"; then
17246 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'
17247 else
17248 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'
17249 fi
17250 fi
17251 link_all_deplibs_CXX=yes
17252 ;;
17253 esac
17254 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17255 hardcode_libdir_separator_CXX=:
17256 inherit_rpath_CXX=yes
17257 ;;
17258
17259 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17260 case $cc_basename in
17261 KCC*)
17262 # Kuck and Associates, Inc. (KAI) C++ Compiler
17263
17264 # KCC will only create a shared library if the output file
17265 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17266 # to its proper name (with version) after linking.
17267 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'
17268 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'
17269 # Commands to make compiler produce verbose output that lists
17270 # what "hidden" libraries, object files and flags are used when
17271 # linking a shared library.
17272 #
17273 # There doesn't appear to be a way to prevent this compiler from
17274 # explicitly linking system object files so we need to strip them
17275 # from the output so that they don't get included in the library
17276 # dependencies.
17277 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"'
17278
17279 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17280 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17281
17282 # Archives containing C++ object files must be created using
17283 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17284 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17285 ;;
17286 icpc* | ecpc* )
17287 # Intel C++
17288 with_gnu_ld=yes
17289 # version 8.0 and above of icpc choke on multiply defined symbols
17290 # if we add $predep_objects and $postdep_objects, however 7.1 and
17291 # earlier do not add the objects themselves.
17292 case `$CC -V 2>&1` in
17293 *"Version 7."*)
17294 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17295 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'
17296 ;;
17297 *) # Version 8.0 or newer
17298 tmp_idyn=
17299 case $host_cpu in
17300 ia64*) tmp_idyn=' -i_dynamic';;
17301 esac
17302 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17303 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'
17304 ;;
17305 esac
17306 archive_cmds_need_lc_CXX=no
17307 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17308 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17309 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17310 ;;
17311 pgCC* | pgcpp*)
17312 # Portland Group C++ compiler
17313 case `$CC -V` in
17314 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17315 prelink_cmds_CXX='tpldir=Template.dir~
17316 rm -rf $tpldir~
17317 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17318 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17319 old_archive_cmds_CXX='tpldir=Template.dir~
17320 rm -rf $tpldir~
17321 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17322 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17323 $RANLIB $oldlib'
17324 archive_cmds_CXX='tpldir=Template.dir~
17325 rm -rf $tpldir~
17326 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17327 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17328 archive_expsym_cmds_CXX='tpldir=Template.dir~
17329 rm -rf $tpldir~
17330 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17331 $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'
17332 ;;
17333 *) # Version 6 and above use weak symbols
17334 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17335 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'
17336 ;;
17337 esac
17338
17339 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17340 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17341 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'
17342 ;;
17343 cxx*)
17344 # Compaq C++
17345 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17346 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'
17347
17348 runpath_var=LD_RUN_PATH
17349 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17350 hardcode_libdir_separator_CXX=:
17351
17352 # Commands to make compiler produce verbose output that lists
17353 # what "hidden" libraries, object files and flags are used when
17354 # linking a shared library.
17355 #
17356 # There doesn't appear to be a way to prevent this compiler from
17357 # explicitly linking system object files so we need to strip them
17358 # from the output so that they don't get included in the library
17359 # dependencies.
17360 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'
17361 ;;
17362 xl* | mpixl* | bgxl*)
17363 # IBM XL 8.0 on PPC, with GNU ld
17364 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17365 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17366 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17367 if test yes = "$supports_anon_versioning"; then
17368 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17369 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17370 echo "local: *; };" >> $output_objdir/$libname.ver~
17371 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17372 fi
17373 ;;
17374 *)
17375 case `$CC -V 2>&1 | $SED 5q` in
17376 *Sun\ C*)
17377 # Sun C++ 5.9
17378 no_undefined_flag_CXX=' -zdefs'
17379 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17380 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'
17381 hardcode_libdir_flag_spec_CXX='-R$libdir'
17382 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'
17383 compiler_needs_object_CXX=yes
17384
17385 # Not sure whether something based on
17386 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17387 # would be better.
17388 output_verbose_link_cmd='func_echo_all'
17389
17390 # Archives containing C++ object files must be created using
17391 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17392 # necessary to make sure instantiated templates are included
17393 # in the archive.
17394 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17395 ;;
17396 esac
17397 ;;
17398 esac
17399 ;;
17400
17401 lynxos*)
17402 # FIXME: insert proper C++ library support
17403 ld_shlibs_CXX=no
17404 ;;
17405
17406 m88k*)
17407 # FIXME: insert proper C++ library support
17408 ld_shlibs_CXX=no
17409 ;;
17410
17411 mvs*)
17412 case $cc_basename in
17413 cxx*)
17414 # FIXME: insert proper C++ library support
17415 ld_shlibs_CXX=no
17416 ;;
17417 *)
17418 # FIXME: insert proper C++ library support
17419 ld_shlibs_CXX=no
17420 ;;
17421 esac
17422 ;;
17423
17424 *-mlibc)
17425 ld_shlibs_CXX=yes
17426 ;;
17427
17428 netbsd*)
17429 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17430 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17431 wlarc=
17432 hardcode_libdir_flag_spec_CXX='-R$libdir'
17433 hardcode_direct_CXX=yes
17434 hardcode_shlibpath_var_CXX=no
17435 fi
17436 # Workaround some broken pre-1.5 toolchains
17437 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17438 ;;
17439
17440 *nto* | *qnx*)
17441 ld_shlibs_CXX=yes
17442 ;;
17443
17444 openbsd*)
17445 if test -f /usr/libexec/ld.so; then
17446 hardcode_direct_CXX=yes
17447 hardcode_shlibpath_var_CXX=no
17448 hardcode_direct_absolute_CXX=yes
17449 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17450 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17451 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17452 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17453 export_dynamic_flag_spec_CXX='$wl-E'
17454 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17455 fi
17456 output_verbose_link_cmd=func_echo_all
17457 else
17458 ld_shlibs_CXX=no
17459 fi
17460 ;;
17461
17462 osf3* | osf4* | osf5*)
17463 case $cc_basename in
17464 KCC*)
17465 # Kuck and Associates, Inc. (KAI) C++ Compiler
17466
17467 # KCC will only create a shared library if the output file
17468 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17469 # to its proper name (with version) after linking.
17470 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'
17471
17472 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17473 hardcode_libdir_separator_CXX=:
17474
17475 # Archives containing C++ object files must be created using
17476 # the KAI C++ compiler.
17477 case $host in
17478 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17479 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17480 esac
17481 ;;
17482 RCC*)
17483 # Rational C++ 2.4.1
17484 # FIXME: insert proper C++ library support
17485 ld_shlibs_CXX=no
17486 ;;
17487 cxx*)
17488 case $host in
17489 osf3*)
17490 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17491 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'
17492 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17493 ;;
17494 *)
17495 allow_undefined_flag_CXX=' -expect_unresolved \*'
17496 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'
17497 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17498 echo "-hidden">> $lib.exp~
17499 $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~
17500 $RM $lib.exp'
17501 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17502 ;;
17503 esac
17504
17505 hardcode_libdir_separator_CXX=:
17506
17507 # Commands to make compiler produce verbose output that lists
17508 # what "hidden" libraries, object files and flags are used when
17509 # linking a shared library.
17510 #
17511 # There doesn't appear to be a way to prevent this compiler from
17512 # explicitly linking system object files so we need to strip them
17513 # from the output so that they don't get included in the library
17514 # dependencies.
17515 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"'
17516 ;;
17517 *)
17518 if test yes,no = "$GXX,$with_gnu_ld"; then
17519 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17520 case $host in
17521 osf3*)
17522 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'
17523 ;;
17524 *)
17525 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'
17526 ;;
17527 esac
17528
17529 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17530 hardcode_libdir_separator_CXX=:
17531
17532 # Commands to make compiler produce verbose output that lists
17533 # what "hidden" libraries, object files and flags are used when
17534 # linking a shared library.
17535 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17536
17537 else
17538 # FIXME: insert proper C++ library support
17539 ld_shlibs_CXX=no
17540 fi
17541 ;;
17542 esac
17543 ;;
17544
17545 psos*)
17546 # FIXME: insert proper C++ library support
17547 ld_shlibs_CXX=no
17548 ;;
17549
17550 serenity*)
17551 ;;
17552
17553 sunos4*)
17554 case $cc_basename in
17555 CC*)
17556 # Sun C++ 4.x
17557 # FIXME: insert proper C++ library support
17558 ld_shlibs_CXX=no
17559 ;;
17560 lcc*)
17561 # Lucid
17562 # FIXME: insert proper C++ library support
17563 ld_shlibs_CXX=no
17564 ;;
17565 *)
17566 # FIXME: insert proper C++ library support
17567 ld_shlibs_CXX=no
17568 ;;
17569 esac
17570 ;;
17571
17572 solaris*)
17573 case $cc_basename in
17574 CC* | sunCC*)
17575 # Sun C++ 4.2, 5.x and Centerline C++
17576 archive_cmds_need_lc_CXX=yes
17577 no_undefined_flag_CXX=' -zdefs'
17578 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17579 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17580 $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'
17581
17582 hardcode_libdir_flag_spec_CXX='-R$libdir'
17583 hardcode_shlibpath_var_CXX=no
17584 case $host_os in
17585 solaris2.[0-5] | solaris2.[0-5].*) ;;
17586 *)
17587 # The compiler driver will combine and reorder linker options,
17588 # but understands '-z linker_flag'.
17589 # Supported since Solaris 2.6 (maybe 2.5.1?)
17590 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17591 ;;
17592 esac
17593 link_all_deplibs_CXX=yes
17594
17595 output_verbose_link_cmd='func_echo_all'
17596
17597 # Archives containing C++ object files must be created using
17598 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17599 # necessary to make sure instantiated templates are included
17600 # in the archive.
17601 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17602 ;;
17603 gcx*)
17604 # Green Hills C++ Compiler
17605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17606
17607 # The C++ compiler must be used to create the archive.
17608 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17609 ;;
17610 *)
17611 # GNU C++ compiler with Solaris linker
17612 if test yes,no = "$GXX,$with_gnu_ld"; then
17613 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17614 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17615 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17616 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17617 $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'
17618
17619 # Commands to make compiler produce verbose output that lists
17620 # what "hidden" libraries, object files and flags are used when
17621 # linking a shared library.
17622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17623 else
17624 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17625 # platform.
17626 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17627 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17628 $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'
17629
17630 # Commands to make compiler produce verbose output that lists
17631 # what "hidden" libraries, object files and flags are used when
17632 # linking a shared library.
17633 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17634 fi
17635
17636 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17637 case $host_os in
17638 solaris2.[0-5] | solaris2.[0-5].*) ;;
17639 *)
17640 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17641 ;;
17642 esac
17643 fi
17644 ;;
17645 esac
17646 ;;
17647
17648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17649 no_undefined_flag_CXX='$wl-z,text'
17650 archive_cmds_need_lc_CXX=no
17651 hardcode_shlibpath_var_CXX=no
17652 runpath_var='LD_RUN_PATH'
17653
17654 case $cc_basename in
17655 CC*)
17656 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17657 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17658 ;;
17659 *)
17660 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17661 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17662 ;;
17663 esac
17664 ;;
17665
17666 sysv5* | sco3.2v5* | sco5v6*)
17667 # Note: We CANNOT use -z defs as we might desire, because we do not
17668 # link with -lc, and that would cause any symbols used from libc to
17669 # always be unresolved, which means just about no library would
17670 # ever link correctly. If we're not using GNU ld we use -z text
17671 # though, which does catch some bad symbols but isn't as heavy-handed
17672 # as -z defs.
17673 no_undefined_flag_CXX='$wl-z,text'
17674 allow_undefined_flag_CXX='$wl-z,nodefs'
17675 archive_cmds_need_lc_CXX=no
17676 hardcode_shlibpath_var_CXX=no
17677 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17678 hardcode_libdir_separator_CXX=':'
17679 link_all_deplibs_CXX=yes
17680 export_dynamic_flag_spec_CXX='$wl-Bexport'
17681 runpath_var='LD_RUN_PATH'
17682
17683 case $cc_basename in
17684 CC*)
17685 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17686 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17687 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17688 '"$old_archive_cmds_CXX"
17689 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17690 '"$reload_cmds_CXX"
17691 ;;
17692 *)
17693 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17694 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17695 ;;
17696 esac
17697 ;;
17698
17699 tandem*)
17700 case $cc_basename in
17701 NCC*)
17702 # NonStop-UX NCC 3.20
17703 # FIXME: insert proper C++ library support
17704 ld_shlibs_CXX=no
17705 ;;
17706 *)
17707 # FIXME: insert proper C++ library support
17708 ld_shlibs_CXX=no
17709 ;;
17710 esac
17711 ;;
17712
17713 vxworks*)
17714 # FIXME: insert proper C++ library support
17715 ld_shlibs_CXX=no
17716 ;;
17717
17718 *)
17719 # FIXME: insert proper C++ library support
17720 ld_shlibs_CXX=no
17721 ;;
17722 esac
17723
17724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17725 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17726 test no = "$ld_shlibs_CXX" && can_build_shared=no
17727
17728 GCC_CXX=$GXX
17729 LD_CXX=$LD
17730
17731 ## CAVEAT EMPTOR:
17732 ## There is no encapsulation within the following macros, do not change
17733 ## the running order or otherwise move them around unless you know exactly
17734 ## what you are doing...
17735 # Dependencies to place before and after the object being linked:
17736 predep_objects_CXX=
17737 postdep_objects_CXX=
17738 predeps_CXX=
17739 postdeps_CXX=
17740 compiler_lib_search_path_CXX=
17741
17742 cat > conftest.$ac_ext <<_LT_EOF
17743 class Foo
17744 {
17745 public:
17746 Foo (void) { a = 0; }
17747 private:
17748 int a;
17749 };
17750 _LT_EOF
17751
17752
17753 _lt_libdeps_save_CFLAGS=$CFLAGS
17754 case "$CC $CFLAGS " in #(
17755 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17756 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17757 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17758 esac
17759
17760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17761 (eval $ac_compile) 2>&5
17762 ac_status=$?
17763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17764 test $ac_status = 0; }; then
17765 # Parse the compiler output and extract the necessary
17766 # objects, libraries and library flags.
17767
17768 # Sentinel used to keep track of whether or not we are before
17769 # the conftest object file.
17770 pre_test_object_deps_done=no
17771
17772 for p in `eval "$output_verbose_link_cmd"`; do
17773 case $prev$p in
17774
17775 -L* | -R* | -l*)
17776 # Some compilers place space between "-{L,R,l}" and the path.
17777 # Remove the space.
17778 if test x-L = x"$p" ||
17779 test x-R = x"$p" ||
17780 test x-l = x"$p"; then
17781 prev=$p
17782 continue
17783 fi
17784
17785 # Expand the sysroot to ease extracting the directories later.
17786 if test -z "$prev"; then
17787 case $p in
17788 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17789 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17790 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17791 esac
17792 fi
17793 case $p in
17794 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17795 esac
17796 if test no = "$pre_test_object_deps_done"; then
17797 case $prev in
17798 -L | -R)
17799 # Internal compiler library paths should come after those
17800 # provided the user. The postdeps already come after the
17801 # user supplied libs so there is no need to process them.
17802 if test -z "$compiler_lib_search_path_CXX"; then
17803 compiler_lib_search_path_CXX=$prev$p
17804 else
17805 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17806 fi
17807 ;;
17808 # The "-l" case would never come before the object being
17809 # linked, so don't bother handling this case.
17810 esac
17811 else
17812 if test -z "$postdeps_CXX"; then
17813 postdeps_CXX=$prev$p
17814 else
17815 postdeps_CXX="${postdeps_CXX} $prev$p"
17816 fi
17817 fi
17818 prev=
17819 ;;
17820
17821 *.lto.$objext) ;; # Ignore GCC LTO objects
17822 *.$objext)
17823 # This assumes that the test object file only shows up
17824 # once in the compiler output.
17825 if test "$p" = "conftest.$objext"; then
17826 pre_test_object_deps_done=yes
17827 continue
17828 fi
17829
17830 if test no = "$pre_test_object_deps_done"; then
17831 if test -z "$predep_objects_CXX"; then
17832 predep_objects_CXX=$p
17833 else
17834 predep_objects_CXX="$predep_objects_CXX $p"
17835 fi
17836 else
17837 if test -z "$postdep_objects_CXX"; then
17838 postdep_objects_CXX=$p
17839 else
17840 postdep_objects_CXX="$postdep_objects_CXX $p"
17841 fi
17842 fi
17843 ;;
17844
17845 *) ;; # Ignore the rest.
17846
17847 esac
17848 done
17849
17850 # Clean up.
17851 rm -f a.out a.exe
17852 else
17853 echo "libtool.m4: error: problem compiling CXX test program"
17854 fi
17855
17856 $RM -f confest.$objext
17857 CFLAGS=$_lt_libdeps_save_CFLAGS
17858
17859 # PORTME: override above test on systems where it is broken
17860 case $host_os in
17861 interix[3-9]*)
17862 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17863 # hack all around it, let's just trust "g++" to DTRT.
17864 predep_objects_CXX=
17865 postdep_objects_CXX=
17866 postdeps_CXX=
17867 ;;
17868 esac
17869
17870
17871 case " $postdeps_CXX " in
17872 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17873 esac
17874 compiler_lib_search_dirs_CXX=
17875 if test -n "${compiler_lib_search_path_CXX}"; then
17876 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17877 fi
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909 lt_prog_compiler_wl_CXX=
17910 lt_prog_compiler_pic_CXX=
17911 lt_prog_compiler_static_CXX=
17912
17913
17914 # C++ specific cases for pic, static, wl, etc.
17915 if test yes = "$GXX"; then
17916 lt_prog_compiler_wl_CXX='-Wl,'
17917 lt_prog_compiler_static_CXX='-static'
17918
17919 case $host_os in
17920 aix*)
17921 # All AIX code is PIC.
17922 if test ia64 = "$host_cpu"; then
17923 # AIX 5 now supports IA64 processor
17924 lt_prog_compiler_static_CXX='-Bstatic'
17925 fi
17926 lt_prog_compiler_pic_CXX='-fPIC'
17927 ;;
17928
17929 amigaos*)
17930 case $host_cpu in
17931 powerpc)
17932 # see comment about AmigaOS4 .so support
17933 lt_prog_compiler_pic_CXX='-fPIC'
17934 ;;
17935 m68k)
17936 # FIXME: we need at least 68020 code to build shared libraries, but
17937 # adding the '-m68020' flag to GCC prevents building anything better,
17938 # like '-m68040'.
17939 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17940 ;;
17941 esac
17942 ;;
17943
17944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17945 # PIC is the default for these OSes.
17946 ;;
17947 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17948 # This hack is so that the source file can tell whether it is being
17949 # built for inclusion in a dll (and should export symbols for example).
17950 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17951 # (--disable-auto-import) libraries
17952 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17953 case $host_os in
17954 os2*)
17955 lt_prog_compiler_static_CXX='$wl-static'
17956 ;;
17957 esac
17958 ;;
17959 darwin* | rhapsody*)
17960 # PIC is the default on this platform
17961 # Common symbols not allowed in MH_DYLIB files
17962 lt_prog_compiler_pic_CXX='-fno-common'
17963 ;;
17964 *djgpp*)
17965 # DJGPP does not support shared libraries at all
17966 lt_prog_compiler_pic_CXX=
17967 ;;
17968 haiku*)
17969 # PIC is the default for Haiku.
17970 # The "-static" flag exists, but is broken.
17971 lt_prog_compiler_static_CXX=
17972 ;;
17973 interix[3-9]*)
17974 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17975 # Instead, we relocate shared libraries at runtime.
17976 ;;
17977 sysv4*MP*)
17978 if test -d /usr/nec; then
17979 lt_prog_compiler_pic_CXX=-Kconform_pic
17980 fi
17981 ;;
17982 hpux*)
17983 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17984 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17985 # sets the default TLS model and affects inlining.
17986 case $host_cpu in
17987 hppa*64*)
17988 ;;
17989 *)
17990 lt_prog_compiler_pic_CXX='-fPIC'
17991 ;;
17992 esac
17993 ;;
17994 *qnx* | *nto*)
17995 # QNX uses GNU C++, but need to define -shared option too, otherwise
17996 # it will coredump.
17997 lt_prog_compiler_pic_CXX='-fPIC -shared'
17998 ;;
17999 *)
18000 lt_prog_compiler_pic_CXX='-fPIC'
18001 ;;
18002 esac
18003 else
18004 case $host_os in
18005 aix[4-9]*)
18006 # All AIX code is PIC.
18007 if test ia64 = "$host_cpu"; then
18008 # AIX 5 now supports IA64 processor
18009 lt_prog_compiler_static_CXX='-Bstatic'
18010 else
18011 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18012 fi
18013 ;;
18014 chorus*)
18015 case $cc_basename in
18016 cxch68*)
18017 # Green Hills C++ Compiler
18018 # _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"
18019 ;;
18020 esac
18021 ;;
18022 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
18023 # This hack is so that the source file can tell whether it is being
18024 # built for inclusion in a dll (and should export symbols for example).
18025 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18026 ;;
18027 dgux*)
18028 case $cc_basename in
18029 ec++*)
18030 lt_prog_compiler_pic_CXX='-KPIC'
18031 ;;
18032 ghcx*)
18033 # Green Hills C++ Compiler
18034 lt_prog_compiler_pic_CXX='-pic'
18035 ;;
18036 *)
18037 ;;
18038 esac
18039 ;;
18040 freebsd* | dragonfly* | midnightbsd*)
18041 # FreeBSD uses GNU C++
18042 ;;
18043 hpux9* | hpux10* | hpux11*)
18044 case $cc_basename in
18045 CC*)
18046 lt_prog_compiler_wl_CXX='-Wl,'
18047 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18048 if test ia64 != "$host_cpu"; then
18049 lt_prog_compiler_pic_CXX='+Z'
18050 fi
18051 ;;
18052 aCC*)
18053 lt_prog_compiler_wl_CXX='-Wl,'
18054 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18055 case $host_cpu in
18056 hppa*64*|ia64*)
18057 # +Z the default
18058 ;;
18059 *)
18060 lt_prog_compiler_pic_CXX='+Z'
18061 ;;
18062 esac
18063 ;;
18064 *)
18065 ;;
18066 esac
18067 ;;
18068 interix*)
18069 # This is c89, which is MS Visual C++ (no shared libs)
18070 # Anyone wants to do a port?
18071 ;;
18072 irix5* | irix6* | nonstopux*)
18073 case $cc_basename in
18074 CC*)
18075 lt_prog_compiler_wl_CXX='-Wl,'
18076 lt_prog_compiler_static_CXX='-non_shared'
18077 # CC pic flag -KPIC is the default.
18078 ;;
18079 *)
18080 ;;
18081 esac
18082 ;;
18083 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18084 case $cc_basename in
18085 KCC*)
18086 # KAI C++ Compiler
18087 lt_prog_compiler_wl_CXX='--backend -Wl,'
18088 lt_prog_compiler_pic_CXX='-fPIC'
18089 ;;
18090 ecpc* )
18091 # old Intel C++ for x86_64, which still supported -KPIC.
18092 lt_prog_compiler_wl_CXX='-Wl,'
18093 lt_prog_compiler_pic_CXX='-KPIC'
18094 lt_prog_compiler_static_CXX='-static'
18095 ;;
18096 icpc* )
18097 # Intel C++, used to be incompatible with GCC.
18098 # ICC 10 doesn't accept -KPIC any more.
18099 lt_prog_compiler_wl_CXX='-Wl,'
18100 lt_prog_compiler_pic_CXX='-fPIC'
18101 lt_prog_compiler_static_CXX='-static'
18102 ;;
18103 pgCC* | pgcpp*)
18104 # Portland Group C++ compiler
18105 lt_prog_compiler_wl_CXX='-Wl,'
18106 lt_prog_compiler_pic_CXX='-fpic'
18107 lt_prog_compiler_static_CXX='-Bstatic'
18108 ;;
18109 cxx*)
18110 # Compaq C++
18111 # Make sure the PIC flag is empty. It appears that all Alpha
18112 # Linux and Compaq Tru64 Unix objects are PIC.
18113 lt_prog_compiler_pic_CXX=
18114 lt_prog_compiler_static_CXX='-non_shared'
18115 ;;
18116 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18117 # IBM XL 8.0, 9.0 on PPC and BlueGene
18118 lt_prog_compiler_wl_CXX='-Wl,'
18119 lt_prog_compiler_pic_CXX='-qpic'
18120 lt_prog_compiler_static_CXX='-qstaticlink'
18121 ;;
18122 *)
18123 case `$CC -V 2>&1 | $SED 5q` in
18124 *Sun\ C*)
18125 # Sun C++ 5.9
18126 lt_prog_compiler_pic_CXX='-KPIC'
18127 lt_prog_compiler_static_CXX='-Bstatic'
18128 lt_prog_compiler_wl_CXX='-Qoption ld '
18129 ;;
18130 esac
18131 ;;
18132 esac
18133 ;;
18134 lynxos*)
18135 ;;
18136 m88k*)
18137 ;;
18138 mvs*)
18139 case $cc_basename in
18140 cxx*)
18141 lt_prog_compiler_pic_CXX='-W c,exportall'
18142 ;;
18143 *)
18144 ;;
18145 esac
18146 ;;
18147 netbsd* | netbsdelf*-gnu)
18148 ;;
18149 *-mlibc)
18150 ;;
18151 *qnx* | *nto*)
18152 # QNX uses GNU C++, but need to define -shared option too, otherwise
18153 # it will coredump.
18154 lt_prog_compiler_pic_CXX='-fPIC -shared'
18155 ;;
18156 osf3* | osf4* | osf5*)
18157 case $cc_basename in
18158 KCC*)
18159 lt_prog_compiler_wl_CXX='--backend -Wl,'
18160 ;;
18161 RCC*)
18162 # Rational C++ 2.4.1
18163 lt_prog_compiler_pic_CXX='-pic'
18164 ;;
18165 cxx*)
18166 # Digital/Compaq C++
18167 lt_prog_compiler_wl_CXX='-Wl,'
18168 # Make sure the PIC flag is empty. It appears that all Alpha
18169 # Linux and Compaq Tru64 Unix objects are PIC.
18170 lt_prog_compiler_pic_CXX=
18171 lt_prog_compiler_static_CXX='-non_shared'
18172 ;;
18173 *)
18174 ;;
18175 esac
18176 ;;
18177 psos*)
18178 ;;
18179 serenity*)
18180 ;;
18181 solaris*)
18182 case $cc_basename in
18183 CC* | sunCC*)
18184 # Sun C++ 4.2, 5.x and Centerline C++
18185 lt_prog_compiler_pic_CXX='-KPIC'
18186 lt_prog_compiler_static_CXX='-Bstatic'
18187 lt_prog_compiler_wl_CXX='-Qoption ld '
18188 ;;
18189 gcx*)
18190 # Green Hills C++ Compiler
18191 lt_prog_compiler_pic_CXX='-PIC'
18192 ;;
18193 *)
18194 ;;
18195 esac
18196 ;;
18197 sunos4*)
18198 case $cc_basename in
18199 CC*)
18200 # Sun C++ 4.x
18201 lt_prog_compiler_pic_CXX='-pic'
18202 lt_prog_compiler_static_CXX='-Bstatic'
18203 ;;
18204 lcc*)
18205 # Lucid
18206 lt_prog_compiler_pic_CXX='-pic'
18207 ;;
18208 *)
18209 ;;
18210 esac
18211 ;;
18212 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18213 case $cc_basename in
18214 CC*)
18215 lt_prog_compiler_wl_CXX='-Wl,'
18216 lt_prog_compiler_pic_CXX='-KPIC'
18217 lt_prog_compiler_static_CXX='-Bstatic'
18218 ;;
18219 esac
18220 ;;
18221 tandem*)
18222 case $cc_basename in
18223 NCC*)
18224 # NonStop-UX NCC 3.20
18225 lt_prog_compiler_pic_CXX='-KPIC'
18226 ;;
18227 *)
18228 ;;
18229 esac
18230 ;;
18231 vxworks*)
18232 ;;
18233 *)
18234 lt_prog_compiler_can_build_shared_CXX=no
18235 ;;
18236 esac
18237 fi
18238
18239 case $host_os in
18240 # For platforms that do not support PIC, -DPIC is meaningless:
18241 *djgpp*)
18242 lt_prog_compiler_pic_CXX=
18243 ;;
18244 *)
18245 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18246 ;;
18247 esac
18248
18249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18250 printf %s "checking for $compiler option to produce PIC... " >&6; }
18251 if test ${lt_cv_prog_compiler_pic_CXX+y}
18252 then :
18253 printf %s "(cached) " >&6
18254 else case e in #(
18255 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
18256 esac
18257 fi
18258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18259 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18260 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18261
18262 #
18263 # Check to make sure the PIC flag actually works.
18264 #
18265 if test -n "$lt_prog_compiler_pic_CXX"; then
18266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18267 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18268 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18269 then :
18270 printf %s "(cached) " >&6
18271 else case e in #(
18272 e) lt_cv_prog_compiler_pic_works_CXX=no
18273 ac_outfile=conftest.$ac_objext
18274 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18275 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
18276 # Insert the option either (1) after the last *FLAGS variable, or
18277 # (2) before a word containing "conftest.", or (3) at the end.
18278 # Note that $ac_compile itself does not contain backslashes and begins
18279 # with a dollar sign (not a hyphen), so the echo should work correctly.
18280 # The option is referenced via a variable to avoid confusing sed.
18281 lt_compile=`echo "$ac_compile" | $SED \
18282 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18283 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18284 -e 's:$: $lt_compiler_flag:'`
18285 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18286 (eval "$lt_compile" 2>conftest.err)
18287 ac_status=$?
18288 cat conftest.err >&5
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 if (exit $ac_status) && test -s "$ac_outfile"; then
18291 # The compiler can only warn and ignore the option if not recognized
18292 # So say no if there are warnings other than the usual output.
18293 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18294 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18295 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18296 lt_cv_prog_compiler_pic_works_CXX=yes
18297 fi
18298 fi
18299 $RM conftest*
18300 ;;
18301 esac
18302 fi
18303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18304 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18305
18306 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18307 case $lt_prog_compiler_pic_CXX in
18308 "" | " "*) ;;
18309 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18310 esac
18311 else
18312 lt_prog_compiler_pic_CXX=
18313 lt_prog_compiler_can_build_shared_CXX=no
18314 fi
18315
18316 fi
18317
18318
18319
18320
18321
18322 #
18323 # Check to make sure the static flag actually works.
18324 #
18325 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18327 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18328 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18329 then :
18330 printf %s "(cached) " >&6
18331 else case e in #(
18332 e) lt_cv_prog_compiler_static_works_CXX=no
18333 save_LDFLAGS=$LDFLAGS
18334 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18335 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18336 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18337 # The linker can only warn and ignore the option if not recognized
18338 # So say no if there are warnings
18339 if test -s conftest.err; then
18340 # Append any errors to the config.log.
18341 cat conftest.err 1>&5
18342 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18343 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18344 if diff conftest.exp conftest.er2 >/dev/null; then
18345 lt_cv_prog_compiler_static_works_CXX=yes
18346 fi
18347 else
18348 lt_cv_prog_compiler_static_works_CXX=yes
18349 fi
18350 fi
18351 $RM -r conftest*
18352 LDFLAGS=$save_LDFLAGS
18353 ;;
18354 esac
18355 fi
18356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18357 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18358
18359 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18360 :
18361 else
18362 lt_prog_compiler_static_CXX=
18363 fi
18364
18365
18366
18367
18368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18369 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18370 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18371 then :
18372 printf %s "(cached) " >&6
18373 else case e in #(
18374 e) lt_cv_prog_compiler_c_o_CXX=no
18375 $RM -r conftest 2>/dev/null
18376 mkdir conftest
18377 cd conftest
18378 mkdir out
18379 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18380
18381 lt_compiler_flag="-o out/conftest2.$ac_objext"
18382 # Insert the option either (1) after the last *FLAGS variable, or
18383 # (2) before a word containing "conftest.", or (3) at the end.
18384 # Note that $ac_compile itself does not contain backslashes and begins
18385 # with a dollar sign (not a hyphen), so the echo should work correctly.
18386 lt_compile=`echo "$ac_compile" | $SED \
18387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18389 -e 's:$: $lt_compiler_flag:'`
18390 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18391 (eval "$lt_compile" 2>out/conftest.err)
18392 ac_status=$?
18393 cat out/conftest.err >&5
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18396 then
18397 # The compiler can only warn and ignore the option if not recognized
18398 # So say no if there are warnings
18399 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18400 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18401 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18402 lt_cv_prog_compiler_c_o_CXX=yes
18403 fi
18404 fi
18405 chmod u+w . 2>&5
18406 $RM conftest*
18407 # SGI C++ compiler will create directory out/ii_files/ for
18408 # template instantiation
18409 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18410 $RM out/* && rmdir out
18411 cd ..
18412 $RM -r conftest
18413 $RM conftest*
18414 ;;
18415 esac
18416 fi
18417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18418 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18419
18420
18421
18422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18423 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18424 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18425 then :
18426 printf %s "(cached) " >&6
18427 else case e in #(
18428 e) lt_cv_prog_compiler_c_o_CXX=no
18429 $RM -r conftest 2>/dev/null
18430 mkdir conftest
18431 cd conftest
18432 mkdir out
18433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18434
18435 lt_compiler_flag="-o out/conftest2.$ac_objext"
18436 # Insert the option either (1) after the last *FLAGS variable, or
18437 # (2) before a word containing "conftest.", or (3) at the end.
18438 # Note that $ac_compile itself does not contain backslashes and begins
18439 # with a dollar sign (not a hyphen), so the echo should work correctly.
18440 lt_compile=`echo "$ac_compile" | $SED \
18441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18443 -e 's:$: $lt_compiler_flag:'`
18444 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18445 (eval "$lt_compile" 2>out/conftest.err)
18446 ac_status=$?
18447 cat out/conftest.err >&5
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18450 then
18451 # The compiler can only warn and ignore the option if not recognized
18452 # So say no if there are warnings
18453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18454 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18455 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18456 lt_cv_prog_compiler_c_o_CXX=yes
18457 fi
18458 fi
18459 chmod u+w . 2>&5
18460 $RM conftest*
18461 # SGI C++ compiler will create directory out/ii_files/ for
18462 # template instantiation
18463 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18464 $RM out/* && rmdir out
18465 cd ..
18466 $RM -r conftest
18467 $RM conftest*
18468 ;;
18469 esac
18470 fi
18471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18472 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18473
18474
18475
18476
18477 hard_links=nottested
18478 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18479 # do not overwrite the value of need_locks provided by the user
18480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18481 printf %s "checking if we can lock with hard links... " >&6; }
18482 hard_links=yes
18483 $RM conftest*
18484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18485 touch conftest.a
18486 ln conftest.a conftest.b 2>&5 || hard_links=no
18487 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18489 printf "%s\n" "$hard_links" >&6; }
18490 if test no = "$hard_links"; then
18491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18492 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18493 need_locks=warn
18494 fi
18495 else
18496 need_locks=no
18497 fi
18498
18499
18500
18501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18502 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18503
18504 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18505 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18506 case $host_os in
18507 aix[4-9]*)
18508 # If we're using GNU nm, then we don't want the "-C" option.
18509 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18510 # Without the "-l" option, or with the "-B" option, AIX nm treats
18511 # weak defined symbols like other global defined symbols, whereas
18512 # GNU nm marks them as "W".
18513 # While the 'weak' keyword is ignored in the Export File, we need
18514 # it in the Import File for the 'aix-soname' feature, so we have
18515 # to replace the "-B" option with "-P" for AIX nm.
18516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18517 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'
18518 else
18519 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'
18520 fi
18521 ;;
18522 pw32*)
18523 export_symbols_cmds_CXX=$ltdll_cmds
18524 ;;
18525 cygwin* | mingw* | windows* | cegcc*)
18526 case $cc_basename in
18527 cl* | icl*)
18528 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18529 ;;
18530 *)
18531 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'
18532 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18533 ;;
18534 esac
18535 ;;
18536 linux* | k*bsd*-gnu | gnu*)
18537 link_all_deplibs_CXX=no
18538 ;;
18539 *)
18540 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18541 ;;
18542 esac
18543
18544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18545 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18546 test no = "$ld_shlibs_CXX" && can_build_shared=no
18547
18548 with_gnu_ld_CXX=$with_gnu_ld
18549
18550
18551
18552
18553
18554
18555 #
18556 # Do we need to explicitly link libc?
18557 #
18558 case "x$archive_cmds_need_lc_CXX" in
18559 x|xyes)
18560 # Assume -lc should be added
18561 archive_cmds_need_lc_CXX=yes
18562
18563 if test yes,yes = "$GCC,$enable_shared"; then
18564 case $archive_cmds_CXX in
18565 *'~'*)
18566 # FIXME: we may have to deal with multi-command sequences.
18567 ;;
18568 '$CC '*)
18569 # Test whether the compiler implicitly links with -lc since on some
18570 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18571 # to ld, don't add -lc before -lgcc.
18572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18573 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18574 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18575 then :
18576 printf %s "(cached) " >&6
18577 else case e in #(
18578 e) $RM conftest*
18579 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18580
18581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18582 (eval $ac_compile) 2>&5
18583 ac_status=$?
18584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18585 test $ac_status = 0; } 2>conftest.err; then
18586 soname=conftest
18587 lib=conftest
18588 libobjs=conftest.$ac_objext
18589 deplibs=
18590 wl=$lt_prog_compiler_wl_CXX
18591 pic_flag=$lt_prog_compiler_pic_CXX
18592 compiler_flags=-v
18593 linker_flags=-v
18594 verstring=
18595 output_objdir=.
18596 libname=conftest
18597 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18598 allow_undefined_flag_CXX=
18599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18600 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18601 ac_status=$?
18602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18603 test $ac_status = 0; }
18604 then
18605 lt_cv_archive_cmds_need_lc_CXX=no
18606 else
18607 lt_cv_archive_cmds_need_lc_CXX=yes
18608 fi
18609 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18610 else
18611 cat conftest.err 1>&5
18612 fi
18613 $RM conftest*
18614 ;;
18615 esac
18616 fi
18617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18618 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18619 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18620 ;;
18621 esac
18622 fi
18623 ;;
18624 esac
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18688 printf %s "checking dynamic linker characteristics... " >&6; }
18689
18690 library_names_spec=
18691 libname_spec='lib$name'
18692 soname_spec=
18693 shrext_cmds=.so
18694 postinstall_cmds=
18695 postuninstall_cmds=
18696 finish_cmds=
18697 finish_eval=
18698 shlibpath_var=
18699 shlibpath_overrides_runpath=unknown
18700 version_type=none
18701 dynamic_linker="$host_os ld.so"
18702 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18703 need_lib_prefix=unknown
18704 hardcode_into_libs=no
18705
18706 # when you set need_version to no, make sure it does not cause -set_version
18707 # flags to be left without arguments
18708 need_version=unknown
18709
18710
18711
18712 case $host_os in
18713 aix3*)
18714 version_type=linux # correct to gnu/linux during the next big refactor
18715 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18716 shlibpath_var=LIBPATH
18717
18718 # AIX 3 has no versioning support, so we append a major version to the name.
18719 soname_spec='$libname$release$shared_ext$major'
18720 ;;
18721
18722 aix[4-9]*)
18723 version_type=linux # correct to gnu/linux during the next big refactor
18724 need_lib_prefix=no
18725 need_version=no
18726 hardcode_into_libs=yes
18727 if test ia64 = "$host_cpu"; then
18728 # AIX 5 supports IA64
18729 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18730 shlibpath_var=LD_LIBRARY_PATH
18731 else
18732 # With GCC up to 2.95.x, collect2 would create an import file
18733 # for dependence libraries. The import file would start with
18734 # the line '#! .'. This would cause the generated library to
18735 # depend on '.', always an invalid library. This was fixed in
18736 # development snapshots of GCC prior to 3.0.
18737 case $host_os in
18738 aix4 | aix4.[01] | aix4.[01].*)
18739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18740 echo ' yes '
18741 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18742 :
18743 else
18744 can_build_shared=no
18745 fi
18746 ;;
18747 esac
18748 # Using Import Files as archive members, it is possible to support
18749 # filename-based versioning of shared library archives on AIX. While
18750 # this would work for both with and without runtime linking, it will
18751 # prevent static linking of such archives. So we do filename-based
18752 # shared library versioning with .so extension only, which is used
18753 # when both runtime linking and shared linking is enabled.
18754 # Unfortunately, runtime linking may impact performance, so we do
18755 # not want this to be the default eventually. Also, we use the
18756 # versioned .so libs for executables only if there is the -brtl
18757 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18758 # To allow for filename-based versioning support, we need to create
18759 # libNAME.so.V as an archive file, containing:
18760 # *) an Import File, referring to the versioned filename of the
18761 # archive as well as the shared archive member, telling the
18762 # bitwidth (32 or 64) of that shared object, and providing the
18763 # list of exported symbols of that shared object, eventually
18764 # decorated with the 'weak' keyword
18765 # *) the shared object with the F_LOADONLY flag set, to really avoid
18766 # it being seen by the linker.
18767 # At run time we better use the real file rather than another symlink,
18768 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18769
18770 case $with_aix_soname,$aix_use_runtimelinking in
18771 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18772 # soname into executable. Probably we can add versioning support to
18773 # collect2, so additional links can be useful in future.
18774 aix,yes) # traditional libtool
18775 dynamic_linker='AIX unversionable lib.so'
18776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18777 # instead of lib<name>.a to let people know that these are not
18778 # typical AIX shared libraries.
18779 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18780 ;;
18781 aix,no) # traditional AIX only
18782 dynamic_linker='AIX lib.a(lib.so.V)'
18783 # We preserve .a as extension for shared libraries through AIX4.2
18784 # and later when we are not doing run time linking.
18785 library_names_spec='$libname$release.a $libname.a'
18786 soname_spec='$libname$release$shared_ext$major'
18787 ;;
18788 svr4,*) # full svr4 only
18789 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18790 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18791 # We do not specify a path in Import Files, so LIBPATH fires.
18792 shlibpath_overrides_runpath=yes
18793 ;;
18794 *,yes) # both, prefer svr4
18795 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18796 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18797 # unpreferred sharedlib libNAME.a needs extra handling
18798 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"'
18799 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"'
18800 # We do not specify a path in Import Files, so LIBPATH fires.
18801 shlibpath_overrides_runpath=yes
18802 ;;
18803 *,no) # both, prefer aix
18804 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18805 library_names_spec='$libname$release.a $libname.a'
18806 soname_spec='$libname$release$shared_ext$major'
18807 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18808 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)'
18809 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"'
18810 ;;
18811 esac
18812 shlibpath_var=LIBPATH
18813 fi
18814 ;;
18815
18816 amigaos*)
18817 case $host_cpu in
18818 powerpc)
18819 # Since July 2007 AmigaOS4 officially supports .so libraries.
18820 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18821 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18822 ;;
18823 m68k)
18824 library_names_spec='$libname.ixlibrary $libname.a'
18825 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18826 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'
18827 ;;
18828 esac
18829 ;;
18830
18831 beos*)
18832 library_names_spec='$libname$shared_ext'
18833 dynamic_linker="$host_os ld.so"
18834 shlibpath_var=LIBRARY_PATH
18835 ;;
18836
18837 bsdi[45]*)
18838 version_type=linux # correct to gnu/linux during the next big refactor
18839 need_version=no
18840 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18841 soname_spec='$libname$release$shared_ext$major'
18842 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18843 shlibpath_var=LD_LIBRARY_PATH
18844 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18845 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18846 # the default ld.so.conf also contains /usr/contrib/lib and
18847 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18848 # libtool to hard-code these into programs
18849 ;;
18850
18851 cygwin* | mingw* | windows* | pw32* | cegcc*)
18852 version_type=windows
18853 shrext_cmds=.dll
18854 need_version=no
18855 need_lib_prefix=no
18856
18857 case $GCC,$cc_basename in
18858 yes,*)
18859 # gcc
18860 library_names_spec='$libname.dll.a'
18861 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18862 # If user builds GCC with multilib enabled,
18863 # it should just install on $(libdir)
18864 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18865 if test xyes = x"$multilib"; then
18866 postinstall_cmds='base_file=`basename \$file`~
18867 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18868 dldir=$destdir/`dirname \$dlpath`~
18869 $install_prog $dir/$dlname $destdir/$dlname~
18870 chmod a+x $destdir/$dlname~
18871 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18872 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18873 fi'
18874 else
18875 postinstall_cmds='base_file=`basename \$file`~
18876 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18877 dldir=$destdir/`dirname \$dlpath`~
18878 test -d \$dldir || mkdir -p \$dldir~
18879 $install_prog $dir/$dlname \$dldir/$dlname~
18880 chmod a+x \$dldir/$dlname~
18881 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18882 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18883 fi'
18884 fi
18885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18886 dlpath=$dir/\$dldll~
18887 $RM \$dlpath'
18888 shlibpath_overrides_runpath=yes
18889
18890 case $host_os in
18891 cygwin*)
18892 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18893 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18894
18895 ;;
18896 mingw* | windows* | cegcc*)
18897 # MinGW DLLs use traditional 'lib' prefix
18898 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18899 ;;
18900 pw32*)
18901 # pw32 DLLs use 'pw' prefix rather than 'lib'
18902 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18903 ;;
18904 esac
18905 dynamic_linker='Win32 ld.exe'
18906 ;;
18907
18908 *,cl* | *,icl*)
18909 # Native MSVC or ICC
18910 libname_spec='$name'
18911 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18912 library_names_spec='$libname.dll.lib'
18913
18914 case $build_os in
18915 mingw* | windows*)
18916 sys_lib_search_path_spec=
18917 lt_save_ifs=$IFS
18918 IFS=';'
18919 for lt_path in $LIB
18920 do
18921 IFS=$lt_save_ifs
18922 # Let DOS variable expansion print the short 8.3 style file name.
18923 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18924 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18925 done
18926 IFS=$lt_save_ifs
18927 # Convert to MSYS style.
18928 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18929 ;;
18930 cygwin*)
18931 # Convert to unix form, then to dos form, then back to unix form
18932 # but this time dos style (no spaces!) so that the unix form looks
18933 # like /cygdrive/c/PROGRA~1:/cygdr...
18934 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18935 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18936 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18937 ;;
18938 *)
18939 sys_lib_search_path_spec=$LIB
18940 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18941 # It is most probably a Windows format PATH.
18942 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18943 else
18944 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18945 fi
18946 # FIXME: find the short name or the path components, as spaces are
18947 # common. (e.g. "Program Files" -> "PROGRA~1")
18948 ;;
18949 esac
18950
18951 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18952 postinstall_cmds='base_file=`basename \$file`~
18953 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18954 dldir=$destdir/`dirname \$dlpath`~
18955 test -d \$dldir || mkdir -p \$dldir~
18956 $install_prog $dir/$dlname \$dldir/$dlname'
18957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18958 dlpath=$dir/\$dldll~
18959 $RM \$dlpath'
18960 shlibpath_overrides_runpath=yes
18961 dynamic_linker='Win32 link.exe'
18962 ;;
18963
18964 *)
18965 # Assume MSVC and ICC wrapper
18966 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18967 dynamic_linker='Win32 ld.exe'
18968 ;;
18969 esac
18970 # FIXME: first we should search . and the directory the executable is in
18971 shlibpath_var=PATH
18972 ;;
18973
18974 darwin* | rhapsody*)
18975 dynamic_linker="$host_os dyld"
18976 version_type=darwin
18977 need_lib_prefix=no
18978 need_version=no
18979 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18980 soname_spec='$libname$release$major$shared_ext'
18981 shlibpath_overrides_runpath=yes
18982 shlibpath_var=DYLD_LIBRARY_PATH
18983 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18984
18985 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18986 ;;
18987
18988 dgux*)
18989 version_type=linux # correct to gnu/linux during the next big refactor
18990 need_lib_prefix=no
18991 need_version=no
18992 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18993 soname_spec='$libname$release$shared_ext$major'
18994 shlibpath_var=LD_LIBRARY_PATH
18995 ;;
18996
18997 freebsd* | dragonfly* | midnightbsd*)
18998 # DragonFly does not have aout. When/if they implement a new
18999 # versioning mechanism, adjust this.
19000 if test -x /usr/bin/objformat; then
19001 objformat=`/usr/bin/objformat`
19002 else
19003 case $host_os in
19004 freebsd[23].*) objformat=aout ;;
19005 *) objformat=elf ;;
19006 esac
19007 fi
19008 version_type=freebsd-$objformat
19009 case $version_type in
19010 freebsd-elf*)
19011 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19012 soname_spec='$libname$release$shared_ext$major'
19013 need_version=no
19014 need_lib_prefix=no
19015 ;;
19016 freebsd-*)
19017 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19018 need_version=yes
19019 ;;
19020 esac
19021 case $host_cpu in
19022 powerpc64)
19023 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
19024 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
19025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026 /* end confdefs.h. */
19027 int test_pointer_size[sizeof (void *) - 5];
19028
19029 _ACEOF
19030 if ac_fn_cxx_try_compile "$LINENO"
19031 then :
19032 shlibpath_var=LD_LIBRARY_PATH
19033 else case e in #(
19034 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
19035 esac
19036 fi
19037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19038 ;;
19039 *)
19040 shlibpath_var=LD_LIBRARY_PATH
19041 ;;
19042 esac
19043 case $host_os in
19044 freebsd2.*)
19045 shlibpath_overrides_runpath=yes
19046 ;;
19047 freebsd3.[01]* | freebsdelf3.[01]*)
19048 shlibpath_overrides_runpath=yes
19049 hardcode_into_libs=yes
19050 ;;
19051 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19052 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19053 shlibpath_overrides_runpath=no
19054 hardcode_into_libs=yes
19055 ;;
19056 *) # from 4.6 on, and DragonFly
19057 shlibpath_overrides_runpath=yes
19058 hardcode_into_libs=yes
19059 ;;
19060 esac
19061 ;;
19062
19063 haiku*)
19064 version_type=linux # correct to gnu/linux during the next big refactor
19065 need_lib_prefix=no
19066 need_version=no
19067 dynamic_linker="$host_os runtime_loader"
19068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19069 soname_spec='$libname$release$shared_ext$major'
19070 shlibpath_var=LIBRARY_PATH
19071 shlibpath_overrides_runpath=no
19072 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
19073 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
19074 hardcode_into_libs=no
19075 ;;
19076
19077 hpux9* | hpux10* | hpux11*)
19078 # Give a soname corresponding to the major version so that dld.sl refuses to
19079 # link against other versions.
19080 version_type=sunos
19081 need_lib_prefix=no
19082 need_version=no
19083 case $host_cpu in
19084 ia64*)
19085 shrext_cmds='.so'
19086 hardcode_into_libs=yes
19087 dynamic_linker="$host_os dld.so"
19088 shlibpath_var=LD_LIBRARY_PATH
19089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19091 soname_spec='$libname$release$shared_ext$major'
19092 if test 32 = "$HPUX_IA64_MODE"; then
19093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19094 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19095 else
19096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19097 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19098 fi
19099 ;;
19100 hppa*64*)
19101 shrext_cmds='.sl'
19102 hardcode_into_libs=yes
19103 dynamic_linker="$host_os dld.sl"
19104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19107 soname_spec='$libname$release$shared_ext$major'
19108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19110 ;;
19111 *)
19112 shrext_cmds='.sl'
19113 dynamic_linker="$host_os dld.sl"
19114 shlibpath_var=SHLIB_PATH
19115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19117 soname_spec='$libname$release$shared_ext$major'
19118 ;;
19119 esac
19120 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19121 postinstall_cmds='chmod 555 $lib'
19122 # or fails outright, so override atomically:
19123 install_override_mode=555
19124 ;;
19125
19126 interix[3-9]*)
19127 version_type=linux # correct to gnu/linux during the next big refactor
19128 need_lib_prefix=no
19129 need_version=no
19130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19131 soname_spec='$libname$release$shared_ext$major'
19132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19133 shlibpath_var=LD_LIBRARY_PATH
19134 shlibpath_overrides_runpath=no
19135 hardcode_into_libs=yes
19136 ;;
19137
19138 irix5* | irix6* | nonstopux*)
19139 case $host_os in
19140 nonstopux*) version_type=nonstopux ;;
19141 *)
19142 if test yes = "$lt_cv_prog_gnu_ld"; then
19143 version_type=linux # correct to gnu/linux during the next big refactor
19144 else
19145 version_type=irix
19146 fi ;;
19147 esac
19148 need_lib_prefix=no
19149 need_version=no
19150 soname_spec='$libname$release$shared_ext$major'
19151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19152 case $host_os in
19153 irix5* | nonstopux*)
19154 libsuff= shlibsuff=
19155 ;;
19156 *)
19157 case $LD in # libtool.m4 will add one of these switches to LD
19158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19159 libsuff= shlibsuff= libmagic=32-bit;;
19160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19161 libsuff=32 shlibsuff=N32 libmagic=N32;;
19162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19164 *) libsuff= shlibsuff= libmagic=never-match;;
19165 esac
19166 ;;
19167 esac
19168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19169 shlibpath_overrides_runpath=no
19170 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19171 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19172 hardcode_into_libs=yes
19173 ;;
19174
19175 # No shared lib support for Linux oldld, aout, or coff.
19176 linux*oldld* | linux*aout* | linux*coff*)
19177 dynamic_linker=no
19178 ;;
19179
19180 linux*android*)
19181 version_type=none # Android doesn't support versioned libraries.
19182 need_lib_prefix=no
19183 need_version=no
19184 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
19185 soname_spec='$libname$release$shared_ext'
19186 finish_cmds=
19187 shlibpath_var=LD_LIBRARY_PATH
19188 shlibpath_overrides_runpath=yes
19189
19190 # This implies no fast_install, which is unacceptable.
19191 # Some rework will be needed to allow for fast_install
19192 # before this can be enabled.
19193 hardcode_into_libs=yes
19194
19195 dynamic_linker='Android linker'
19196 # -rpath works at least for libraries that are not overridden by
19197 # libraries installed in system locations.
19198 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19199 ;;
19200
19201 # This must be glibc/ELF.
19202 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19203 version_type=linux # correct to gnu/linux during the next big refactor
19204 need_lib_prefix=no
19205 need_version=no
19206 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19207 soname_spec='$libname$release$shared_ext$major'
19208 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19209 shlibpath_var=LD_LIBRARY_PATH
19210 shlibpath_overrides_runpath=no
19211
19212 # Some binutils ld are patched to set DT_RUNPATH
19213 if test ${lt_cv_shlibpath_overrides_runpath+y}
19214 then :
19215 printf %s "(cached) " >&6
19216 else case e in #(
19217 e) lt_cv_shlibpath_overrides_runpath=no
19218 save_LDFLAGS=$LDFLAGS
19219 save_libdir=$libdir
19220 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19221 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19223 /* end confdefs.h. */
19224
19225 int
19226 main (void)
19227 {
19228
19229 ;
19230 return 0;
19231 }
19232 _ACEOF
19233 if ac_fn_cxx_try_link "$LINENO"
19234 then :
19235 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19236 then :
19237 lt_cv_shlibpath_overrides_runpath=yes
19238 fi
19239 fi
19240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19241 conftest$ac_exeext conftest.$ac_ext
19242 LDFLAGS=$save_LDFLAGS
19243 libdir=$save_libdir
19244 ;;
19245 esac
19246 fi
19247
19248 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19249
19250 # This implies no fast_install, which is unacceptable.
19251 # Some rework will be needed to allow for fast_install
19252 # before this can be enabled.
19253 hardcode_into_libs=yes
19254
19255 # Ideally, we could use ldconfig to report *all* directories which are
19256 # searched for libraries, however this is still not possible. Aside from not
19257 # being certain /sbin/ldconfig is available, command
19258 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19259 # even though it is searched at run-time. Try to do the best guess by
19260 # appending ld.so.conf contents (and includes) to the search path.
19261 if test -f /etc/ld.so.conf; then
19262 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' ' '`
19263 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19264 fi
19265
19266 # We used to test for /lib/ld.so.1 and disable shared libraries on
19267 # powerpc, because MkLinux only supported shared libraries with the
19268 # GNU dynamic linker. Since this was broken with cross compilers,
19269 # most powerpc-linux boxes support dynamic linking these days and
19270 # people can always --disable-shared, the test was removed, and we
19271 # assume the GNU/Linux dynamic linker is in use.
19272 dynamic_linker='GNU/Linux ld.so'
19273 ;;
19274
19275 netbsdelf*-gnu)
19276 version_type=linux
19277 need_lib_prefix=no
19278 need_version=no
19279 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19280 soname_spec='$libname$release$shared_ext$major'
19281 shlibpath_var=LD_LIBRARY_PATH
19282 shlibpath_overrides_runpath=no
19283 hardcode_into_libs=yes
19284 dynamic_linker='NetBSD ld.elf_so'
19285 ;;
19286
19287 netbsdelf*-gnu)
19288 version_type=linux
19289 need_lib_prefix=no
19290 need_version=no
19291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19292 soname_spec='${libname}${release}${shared_ext}$major'
19293 shlibpath_var=LD_LIBRARY_PATH
19294 shlibpath_overrides_runpath=no
19295 hardcode_into_libs=yes
19296 dynamic_linker='NetBSD ld.elf_so'
19297 ;;
19298
19299 netbsd*)
19300 version_type=sunos
19301 need_lib_prefix=no
19302 need_version=no
19303 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19304 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19306 dynamic_linker='NetBSD (a.out) ld.so'
19307 else
19308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19309 soname_spec='$libname$release$shared_ext$major'
19310 dynamic_linker='NetBSD ld.elf_so'
19311 fi
19312 shlibpath_var=LD_LIBRARY_PATH
19313 shlibpath_overrides_runpath=yes
19314 hardcode_into_libs=yes
19315 ;;
19316
19317 *-mlibc)
19318 version_type=linux # correct to gnu/linux during the next big refactor
19319 need_lib_prefix=no
19320 need_version=no
19321 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19322 soname_spec='$libname$release$shared_ext$major'
19323 dynamic_linker='mlibc ld.so'
19324 shlibpath_var=LD_LIBRARY_PATH
19325 shlibpath_overrides_runpath=no
19326 hardcode_into_libs=yes
19327 ;;
19328
19329 newsos6)
19330 version_type=linux # correct to gnu/linux during the next big refactor
19331 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19332 shlibpath_var=LD_LIBRARY_PATH
19333 shlibpath_overrides_runpath=yes
19334 ;;
19335
19336 *nto* | *qnx*)
19337 version_type=qnx
19338 need_lib_prefix=no
19339 need_version=no
19340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19341 soname_spec='$libname$release$shared_ext$major'
19342 shlibpath_var=LD_LIBRARY_PATH
19343 shlibpath_overrides_runpath=no
19344 hardcode_into_libs=yes
19345 dynamic_linker='ldqnx.so'
19346 ;;
19347
19348 openbsd*)
19349 version_type=sunos
19350 sys_lib_dlsearch_path_spec=/usr/lib
19351 need_lib_prefix=no
19352 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19353 need_version=no
19354 else
19355 need_version=yes
19356 fi
19357 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19359 shlibpath_var=LD_LIBRARY_PATH
19360 shlibpath_overrides_runpath=yes
19361 ;;
19362
19363 os2*)
19364 libname_spec='$name'
19365 version_type=windows
19366 shrext_cmds=.dll
19367 need_version=no
19368 need_lib_prefix=no
19369 # OS/2 can only load a DLL with a base name of 8 characters or less.
19370 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19371 v=$($ECHO $release$versuffix | tr -d .-);
19372 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19373 $ECHO $n$v`$shared_ext'
19374 library_names_spec='${libname}_dll.$libext'
19375 dynamic_linker='OS/2 ld.exe'
19376 shlibpath_var=BEGINLIBPATH
19377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19378 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19379 postinstall_cmds='base_file=`basename \$file`~
19380 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19381 dldir=$destdir/`dirname \$dlpath`~
19382 test -d \$dldir || mkdir -p \$dldir~
19383 $install_prog $dir/$dlname \$dldir/$dlname~
19384 chmod a+x \$dldir/$dlname~
19385 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19386 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19387 fi'
19388 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19389 dlpath=$dir/\$dldll~
19390 $RM \$dlpath'
19391 ;;
19392
19393 osf3* | osf4* | osf5*)
19394 version_type=osf
19395 need_lib_prefix=no
19396 need_version=no
19397 soname_spec='$libname$release$shared_ext$major'
19398 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19399 shlibpath_var=LD_LIBRARY_PATH
19400 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19401 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19402 ;;
19403
19404 rdos*)
19405 dynamic_linker=no
19406 ;;
19407
19408 serenity*)
19409 version_type=linux # correct to gnu/linux during the next big refactor
19410 need_lib_prefix=no
19411 need_version=no
19412 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19413 soname_spec='$libname$release$shared_ext$major'
19414 shlibpath_var=LD_LIBRARY_PATH
19415 shlibpath_overrides_runpath=no
19416 dynamic_linker='SerenityOS LibELF'
19417 ;;
19418
19419 solaris*)
19420 version_type=linux # correct to gnu/linux during the next big refactor
19421 need_lib_prefix=no
19422 need_version=no
19423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19424 soname_spec='$libname$release$shared_ext$major'
19425 shlibpath_var=LD_LIBRARY_PATH
19426 shlibpath_overrides_runpath=yes
19427 hardcode_into_libs=yes
19428 # ldd complains unless libraries are executable
19429 postinstall_cmds='chmod +x $lib'
19430 ;;
19431
19432 sunos4*)
19433 version_type=sunos
19434 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19436 shlibpath_var=LD_LIBRARY_PATH
19437 shlibpath_overrides_runpath=yes
19438 if test yes = "$with_gnu_ld"; then
19439 need_lib_prefix=no
19440 fi
19441 need_version=yes
19442 ;;
19443
19444 sysv4 | sysv4.3*)
19445 version_type=linux # correct to gnu/linux during the next big refactor
19446 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19447 soname_spec='$libname$release$shared_ext$major'
19448 shlibpath_var=LD_LIBRARY_PATH
19449 case $host_vendor in
19450 sni)
19451 shlibpath_overrides_runpath=no
19452 need_lib_prefix=no
19453 runpath_var=LD_RUN_PATH
19454 ;;
19455 siemens)
19456 need_lib_prefix=no
19457 ;;
19458 motorola)
19459 need_lib_prefix=no
19460 need_version=no
19461 shlibpath_overrides_runpath=no
19462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19463 ;;
19464 esac
19465 ;;
19466
19467 sysv4*MP*)
19468 if test -d /usr/nec; then
19469 version_type=linux # correct to gnu/linux during the next big refactor
19470 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19471 soname_spec='$libname$shared_ext.$major'
19472 shlibpath_var=LD_LIBRARY_PATH
19473 fi
19474 ;;
19475
19476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19477 version_type=sco
19478 need_lib_prefix=no
19479 need_version=no
19480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19481 soname_spec='$libname$release$shared_ext$major'
19482 shlibpath_var=LD_LIBRARY_PATH
19483 shlibpath_overrides_runpath=yes
19484 hardcode_into_libs=yes
19485 if test yes = "$with_gnu_ld"; then
19486 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19487 else
19488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19489 case $host_os in
19490 sco3.2v5*)
19491 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19492 ;;
19493 esac
19494 fi
19495 sys_lib_dlsearch_path_spec='/usr/lib'
19496 ;;
19497
19498 tpf*)
19499 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19500 version_type=linux # correct to gnu/linux during the next big refactor
19501 need_lib_prefix=no
19502 need_version=no
19503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19504 shlibpath_var=LD_LIBRARY_PATH
19505 shlibpath_overrides_runpath=no
19506 hardcode_into_libs=yes
19507 ;;
19508
19509 uts4*)
19510 version_type=linux # correct to gnu/linux during the next big refactor
19511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19512 soname_spec='$libname$release$shared_ext$major'
19513 shlibpath_var=LD_LIBRARY_PATH
19514 ;;
19515
19516 emscripten*)
19517 version_type=none
19518 need_lib_prefix=no
19519 need_version=no
19520 library_names_spec='$libname$release$shared_ext'
19521 soname_spec='$libname$release$shared_ext'
19522 finish_cmds=
19523 dynamic_linker="Emscripten linker"
19524 lt_prog_compiler_wl_CXX=
19525 lt_prog_compiler_pic_CXX=
19526 lt_prog_compiler_static_CXX=
19527
19528
19529 # C++ specific cases for pic, static, wl, etc.
19530 if test yes = "$GXX"; then
19531 lt_prog_compiler_wl_CXX='-Wl,'
19532 lt_prog_compiler_static_CXX='-static'
19533
19534 case $host_os in
19535 aix*)
19536 # All AIX code is PIC.
19537 if test ia64 = "$host_cpu"; then
19538 # AIX 5 now supports IA64 processor
19539 lt_prog_compiler_static_CXX='-Bstatic'
19540 fi
19541 lt_prog_compiler_pic_CXX='-fPIC'
19542 ;;
19543
19544 amigaos*)
19545 case $host_cpu in
19546 powerpc)
19547 # see comment about AmigaOS4 .so support
19548 lt_prog_compiler_pic_CXX='-fPIC'
19549 ;;
19550 m68k)
19551 # FIXME: we need at least 68020 code to build shared libraries, but
19552 # adding the '-m68020' flag to GCC prevents building anything better,
19553 # like '-m68040'.
19554 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19555 ;;
19556 esac
19557 ;;
19558
19559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19560 # PIC is the default for these OSes.
19561 ;;
19562 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19563 # This hack is so that the source file can tell whether it is being
19564 # built for inclusion in a dll (and should export symbols for example).
19565 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19566 # (--disable-auto-import) libraries
19567 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19568 case $host_os in
19569 os2*)
19570 lt_prog_compiler_static_CXX='$wl-static'
19571 ;;
19572 esac
19573 ;;
19574 darwin* | rhapsody*)
19575 # PIC is the default on this platform
19576 # Common symbols not allowed in MH_DYLIB files
19577 lt_prog_compiler_pic_CXX='-fno-common'
19578 ;;
19579 *djgpp*)
19580 # DJGPP does not support shared libraries at all
19581 lt_prog_compiler_pic_CXX=
19582 ;;
19583 haiku*)
19584 # PIC is the default for Haiku.
19585 # The "-static" flag exists, but is broken.
19586 lt_prog_compiler_static_CXX=
19587 ;;
19588 interix[3-9]*)
19589 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19590 # Instead, we relocate shared libraries at runtime.
19591 ;;
19592 sysv4*MP*)
19593 if test -d /usr/nec; then
19594 lt_prog_compiler_pic_CXX=-Kconform_pic
19595 fi
19596 ;;
19597 hpux*)
19598 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19599 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19600 # sets the default TLS model and affects inlining.
19601 case $host_cpu in
19602 hppa*64*)
19603 ;;
19604 *)
19605 lt_prog_compiler_pic_CXX='-fPIC'
19606 ;;
19607 esac
19608 ;;
19609 *qnx* | *nto*)
19610 # QNX uses GNU C++, but need to define -shared option too, otherwise
19611 # it will coredump.
19612 lt_prog_compiler_pic_CXX='-fPIC -shared'
19613 ;;
19614 *)
19615 lt_prog_compiler_pic_CXX='-fPIC'
19616 ;;
19617 esac
19618 else
19619 case $host_os in
19620 aix[4-9]*)
19621 # All AIX code is PIC.
19622 if test ia64 = "$host_cpu"; then
19623 # AIX 5 now supports IA64 processor
19624 lt_prog_compiler_static_CXX='-Bstatic'
19625 else
19626 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19627 fi
19628 ;;
19629 chorus*)
19630 case $cc_basename in
19631 cxch68*)
19632 # Green Hills C++ Compiler
19633 # _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"
19634 ;;
19635 esac
19636 ;;
19637 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19638 # This hack is so that the source file can tell whether it is being
19639 # built for inclusion in a dll (and should export symbols for example).
19640 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19641 ;;
19642 dgux*)
19643 case $cc_basename in
19644 ec++*)
19645 lt_prog_compiler_pic_CXX='-KPIC'
19646 ;;
19647 ghcx*)
19648 # Green Hills C++ Compiler
19649 lt_prog_compiler_pic_CXX='-pic'
19650 ;;
19651 *)
19652 ;;
19653 esac
19654 ;;
19655 freebsd* | dragonfly* | midnightbsd*)
19656 # FreeBSD uses GNU C++
19657 ;;
19658 hpux9* | hpux10* | hpux11*)
19659 case $cc_basename in
19660 CC*)
19661 lt_prog_compiler_wl_CXX='-Wl,'
19662 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19663 if test ia64 != "$host_cpu"; then
19664 lt_prog_compiler_pic_CXX='+Z'
19665 fi
19666 ;;
19667 aCC*)
19668 lt_prog_compiler_wl_CXX='-Wl,'
19669 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19670 case $host_cpu in
19671 hppa*64*|ia64*)
19672 # +Z the default
19673 ;;
19674 *)
19675 lt_prog_compiler_pic_CXX='+Z'
19676 ;;
19677 esac
19678 ;;
19679 *)
19680 ;;
19681 esac
19682 ;;
19683 interix*)
19684 # This is c89, which is MS Visual C++ (no shared libs)
19685 # Anyone wants to do a port?
19686 ;;
19687 irix5* | irix6* | nonstopux*)
19688 case $cc_basename in
19689 CC*)
19690 lt_prog_compiler_wl_CXX='-Wl,'
19691 lt_prog_compiler_static_CXX='-non_shared'
19692 # CC pic flag -KPIC is the default.
19693 ;;
19694 *)
19695 ;;
19696 esac
19697 ;;
19698 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19699 case $cc_basename in
19700 KCC*)
19701 # KAI C++ Compiler
19702 lt_prog_compiler_wl_CXX='--backend -Wl,'
19703 lt_prog_compiler_pic_CXX='-fPIC'
19704 ;;
19705 ecpc* )
19706 # old Intel C++ for x86_64, which still supported -KPIC.
19707 lt_prog_compiler_wl_CXX='-Wl,'
19708 lt_prog_compiler_pic_CXX='-KPIC'
19709 lt_prog_compiler_static_CXX='-static'
19710 ;;
19711 icpc* )
19712 # Intel C++, used to be incompatible with GCC.
19713 # ICC 10 doesn't accept -KPIC any more.
19714 lt_prog_compiler_wl_CXX='-Wl,'
19715 lt_prog_compiler_pic_CXX='-fPIC'
19716 lt_prog_compiler_static_CXX='-static'
19717 ;;
19718 pgCC* | pgcpp*)
19719 # Portland Group C++ compiler
19720 lt_prog_compiler_wl_CXX='-Wl,'
19721 lt_prog_compiler_pic_CXX='-fpic'
19722 lt_prog_compiler_static_CXX='-Bstatic'
19723 ;;
19724 cxx*)
19725 # Compaq C++
19726 # Make sure the PIC flag is empty. It appears that all Alpha
19727 # Linux and Compaq Tru64 Unix objects are PIC.
19728 lt_prog_compiler_pic_CXX=
19729 lt_prog_compiler_static_CXX='-non_shared'
19730 ;;
19731 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19732 # IBM XL 8.0, 9.0 on PPC and BlueGene
19733 lt_prog_compiler_wl_CXX='-Wl,'
19734 lt_prog_compiler_pic_CXX='-qpic'
19735 lt_prog_compiler_static_CXX='-qstaticlink'
19736 ;;
19737 *)
19738 case `$CC -V 2>&1 | $SED 5q` in
19739 *Sun\ C*)
19740 # Sun C++ 5.9
19741 lt_prog_compiler_pic_CXX='-KPIC'
19742 lt_prog_compiler_static_CXX='-Bstatic'
19743 lt_prog_compiler_wl_CXX='-Qoption ld '
19744 ;;
19745 esac
19746 ;;
19747 esac
19748 ;;
19749 lynxos*)
19750 ;;
19751 m88k*)
19752 ;;
19753 mvs*)
19754 case $cc_basename in
19755 cxx*)
19756 lt_prog_compiler_pic_CXX='-W c,exportall'
19757 ;;
19758 *)
19759 ;;
19760 esac
19761 ;;
19762 netbsd* | netbsdelf*-gnu)
19763 ;;
19764 *-mlibc)
19765 ;;
19766 *qnx* | *nto*)
19767 # QNX uses GNU C++, but need to define -shared option too, otherwise
19768 # it will coredump.
19769 lt_prog_compiler_pic_CXX='-fPIC -shared'
19770 ;;
19771 osf3* | osf4* | osf5*)
19772 case $cc_basename in
19773 KCC*)
19774 lt_prog_compiler_wl_CXX='--backend -Wl,'
19775 ;;
19776 RCC*)
19777 # Rational C++ 2.4.1
19778 lt_prog_compiler_pic_CXX='-pic'
19779 ;;
19780 cxx*)
19781 # Digital/Compaq C++
19782 lt_prog_compiler_wl_CXX='-Wl,'
19783 # Make sure the PIC flag is empty. It appears that all Alpha
19784 # Linux and Compaq Tru64 Unix objects are PIC.
19785 lt_prog_compiler_pic_CXX=
19786 lt_prog_compiler_static_CXX='-non_shared'
19787 ;;
19788 *)
19789 ;;
19790 esac
19791 ;;
19792 psos*)
19793 ;;
19794 serenity*)
19795 ;;
19796 solaris*)
19797 case $cc_basename in
19798 CC* | sunCC*)
19799 # Sun C++ 4.2, 5.x and Centerline C++
19800 lt_prog_compiler_pic_CXX='-KPIC'
19801 lt_prog_compiler_static_CXX='-Bstatic'
19802 lt_prog_compiler_wl_CXX='-Qoption ld '
19803 ;;
19804 gcx*)
19805 # Green Hills C++ Compiler
19806 lt_prog_compiler_pic_CXX='-PIC'
19807 ;;
19808 *)
19809 ;;
19810 esac
19811 ;;
19812 sunos4*)
19813 case $cc_basename in
19814 CC*)
19815 # Sun C++ 4.x
19816 lt_prog_compiler_pic_CXX='-pic'
19817 lt_prog_compiler_static_CXX='-Bstatic'
19818 ;;
19819 lcc*)
19820 # Lucid
19821 lt_prog_compiler_pic_CXX='-pic'
19822 ;;
19823 *)
19824 ;;
19825 esac
19826 ;;
19827 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19828 case $cc_basename in
19829 CC*)
19830 lt_prog_compiler_wl_CXX='-Wl,'
19831 lt_prog_compiler_pic_CXX='-KPIC'
19832 lt_prog_compiler_static_CXX='-Bstatic'
19833 ;;
19834 esac
19835 ;;
19836 tandem*)
19837 case $cc_basename in
19838 NCC*)
19839 # NonStop-UX NCC 3.20
19840 lt_prog_compiler_pic_CXX='-KPIC'
19841 ;;
19842 *)
19843 ;;
19844 esac
19845 ;;
19846 vxworks*)
19847 ;;
19848 *)
19849 lt_prog_compiler_can_build_shared_CXX=no
19850 ;;
19851 esac
19852 fi
19853
19854 case $host_os in
19855 # For platforms that do not support PIC, -DPIC is meaningless:
19856 *djgpp*)
19857 lt_prog_compiler_pic_CXX=
19858 ;;
19859 *)
19860 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19861 ;;
19862 esac
19863
19864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19865 printf %s "checking for $compiler option to produce PIC... " >&6; }
19866 if test ${lt_cv_prog_compiler_pic_CXX+y}
19867 then :
19868 printf %s "(cached) " >&6
19869 else case e in #(
19870 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19871 esac
19872 fi
19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19874 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19875 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19876
19877 #
19878 # Check to make sure the PIC flag actually works.
19879 #
19880 if test -n "$lt_prog_compiler_pic_CXX"; then
19881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19882 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19883 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19884 then :
19885 printf %s "(cached) " >&6
19886 else case e in #(
19887 e) lt_cv_prog_compiler_pic_works_CXX=no
19888 ac_outfile=conftest.$ac_objext
19889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19890 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19891 # Insert the option either (1) after the last *FLAGS variable, or
19892 # (2) before a word containing "conftest.", or (3) at the end.
19893 # Note that $ac_compile itself does not contain backslashes and begins
19894 # with a dollar sign (not a hyphen), so the echo should work correctly.
19895 # The option is referenced via a variable to avoid confusing sed.
19896 lt_compile=`echo "$ac_compile" | $SED \
19897 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19898 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19899 -e 's:$: $lt_compiler_flag:'`
19900 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19901 (eval "$lt_compile" 2>conftest.err)
19902 ac_status=$?
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 if (exit $ac_status) && test -s "$ac_outfile"; then
19906 # The compiler can only warn and ignore the option if not recognized
19907 # So say no if there are warnings other than the usual output.
19908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19910 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19911 lt_cv_prog_compiler_pic_works_CXX=yes
19912 fi
19913 fi
19914 $RM conftest*
19915 ;;
19916 esac
19917 fi
19918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19919 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19920
19921 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19922 case $lt_prog_compiler_pic_CXX in
19923 "" | " "*) ;;
19924 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19925 esac
19926 else
19927 lt_prog_compiler_pic_CXX=
19928 lt_prog_compiler_can_build_shared_CXX=no
19929 fi
19930
19931 fi
19932
19933
19934
19935
19936
19937 #
19938 # Check to make sure the static flag actually works.
19939 #
19940 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19942 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19943 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19944 then :
19945 printf %s "(cached) " >&6
19946 else case e in #(
19947 e) lt_cv_prog_compiler_static_works_CXX=no
19948 save_LDFLAGS=$LDFLAGS
19949 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19950 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19952 # The linker can only warn and ignore the option if not recognized
19953 # So say no if there are warnings
19954 if test -s conftest.err; then
19955 # Append any errors to the config.log.
19956 cat conftest.err 1>&5
19957 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19959 if diff conftest.exp conftest.er2 >/dev/null; then
19960 lt_cv_prog_compiler_static_works_CXX=yes
19961 fi
19962 else
19963 lt_cv_prog_compiler_static_works_CXX=yes
19964 fi
19965 fi
19966 $RM -r conftest*
19967 LDFLAGS=$save_LDFLAGS
19968 ;;
19969 esac
19970 fi
19971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19972 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19973
19974 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19975 :
19976 else
19977 lt_prog_compiler_static_CXX=
19978 fi
19979
19980
19981
19982 ='-fPIC'
19983 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19984 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'
19985 archive_cmds_need_lc_CXX=no
19986 no_undefined_flag_CXX=
19987 ;;
19988
19989 *)
19990 dynamic_linker=no
19991 ;;
19992 esac
19993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19994 printf "%s\n" "$dynamic_linker" >&6; }
19995 test no = "$dynamic_linker" && can_build_shared=no
19996
19997 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19998 if test yes = "$GCC"; then
19999 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20000 fi
20001
20002 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20003 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20004 fi
20005
20006 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20007 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20008 fi
20009
20010 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20011 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20012
20013 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20014 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20015
20016 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20017 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030
20031
20032
20033
20034
20035
20036
20037
20038
20039
20040
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056
20057
20058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20059 printf %s "checking how to hardcode library paths into programs... " >&6; }
20060 hardcode_action_CXX=
20061 if test -n "$hardcode_libdir_flag_spec_CXX" ||
20062 test -n "$runpath_var_CXX" ||
20063 test yes = "$hardcode_automatic_CXX"; then
20064
20065 # We can hardcode non-existent directories.
20066 if test no != "$hardcode_direct_CXX" &&
20067 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20068 # have to relink, otherwise we might link with an installed library
20069 # when we should be linking with a yet-to-be-installed one
20070 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
20071 test no != "$hardcode_minus_L_CXX"; then
20072 # Linking always hardcodes the temporary library directory.
20073 hardcode_action_CXX=relink
20074 else
20075 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20076 hardcode_action_CXX=immediate
20077 fi
20078 else
20079 # We cannot hardcode anything, or else we can only hardcode existing
20080 # directories.
20081 hardcode_action_CXX=unsupported
20082 fi
20083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20084 printf "%s\n" "$hardcode_action_CXX" >&6; }
20085
20086 if test relink = "$hardcode_action_CXX" ||
20087 test yes = "$inherit_rpath_CXX"; then
20088 # Fast installation is not supported
20089 enable_fast_install=no
20090 elif test yes = "$shlibpath_overrides_runpath" ||
20091 test no = "$enable_shared"; then
20092 # Fast installation is not necessary
20093 enable_fast_install=needless
20094 fi
20095
20096
20097
20098
20099
20100
20101
20102 fi # test -n "$compiler"
20103
20104 CC=$lt_save_CC
20105 CFLAGS=$lt_save_CFLAGS
20106 LDCXX=$LD
20107 LD=$lt_save_LD
20108 GCC=$lt_save_GCC
20109 with_gnu_ld=$lt_save_with_gnu_ld
20110 lt_cv_path_LDCXX=$lt_cv_path_LD
20111 lt_cv_path_LD=$lt_save_path_LD
20112 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20113 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20114 fi # test yes != "$_lt_caught_CXX_error"
20115
20116 ac_ext=cpp
20117 ac_cpp='$CXXCPP $CPPFLAGS'
20118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20121
20122
20123
20124
20125
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135
20136 ac_config_commands="$ac_config_commands libtool"
20137
20138
20139
20140
20141 # Only expand once:
20142
20143
20144
20145
20146 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
20147 ac_ext=cpp
20148 ac_cpp='$CXXCPP $CPPFLAGS'
20149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20152 ac_success=no
20153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
20154 printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
20155 if test ${ax_cv_cxx_compile_cxx11+y}
20156 then :
20157 printf %s "(cached) " >&6
20158 else case e in #(
20159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h. */
20161
20162
20163 // If the compiler admits that it is not ready for C++11, why torture it?
20164 // Hopefully, this will speed up the test.
20165
20166 #ifndef __cplusplus
20167
20168 #error "This is not a C++ compiler"
20169
20170 #elif __cplusplus < 201103L && !(defined _MSC_VER)
20171
20172 #error "This is not a C++11 compiler"
20173
20174 #else
20175
20176 namespace cxx11
20177 {
20178
20179 namespace test_static_assert
20180 {
20181
20182 template <typename T>
20183 struct check
20184 {
20185 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20186 };
20187
20188 }
20189
20190 namespace test_final_override
20191 {
20192
20193 struct Base
20194 {
20195 virtual void f() {}
20196 };
20197
20198 struct Derived : public Base
20199 {
20200 virtual void f() override {}
20201 };
20202
20203 }
20204
20205 namespace test_double_right_angle_brackets
20206 {
20207
20208 template < typename T >
20209 struct check {};
20210
20211 typedef check<void> single_type;
20212 typedef check<check<void>> double_type;
20213 typedef check<check<check<void>>> triple_type;
20214 typedef check<check<check<check<void>>>> quadruple_type;
20215
20216 }
20217
20218 namespace test_decltype
20219 {
20220
20221 int
20222 f()
20223 {
20224 int a = 1;
20225 decltype(a) b = 2;
20226 return a + b;
20227 }
20228
20229 }
20230
20231 namespace test_type_deduction
20232 {
20233
20234 template < typename T1, typename T2 >
20235 struct is_same
20236 {
20237 static const bool value = false;
20238 };
20239
20240 template < typename T >
20241 struct is_same<T, T>
20242 {
20243 static const bool value = true;
20244 };
20245
20246 template < typename T1, typename T2 >
20247 auto
20248 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20249 {
20250 return a1 + a2;
20251 }
20252
20253 int
20254 test(const int c, volatile int v)
20255 {
20256 static_assert(is_same<int, decltype(0)>::value == true, "");
20257 static_assert(is_same<int, decltype(c)>::value == false, "");
20258 static_assert(is_same<int, decltype(v)>::value == false, "");
20259 auto ac = c;
20260 auto av = v;
20261 auto sumi = ac + av + 'x';
20262 auto sumf = ac + av + 1.0;
20263 static_assert(is_same<int, decltype(ac)>::value == true, "");
20264 static_assert(is_same<int, decltype(av)>::value == true, "");
20265 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20266 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20267 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20268 return (sumf > 0.0) ? sumi : add(c, v);
20269 }
20270
20271 }
20272
20273 namespace test_noexcept
20274 {
20275
20276 int f() { return 0; }
20277 int g() noexcept { return 0; }
20278
20279 static_assert(noexcept(f()) == false, "");
20280 static_assert(noexcept(g()) == true, "");
20281
20282 }
20283
20284 namespace test_constexpr
20285 {
20286
20287 template < typename CharT >
20288 unsigned long constexpr
20289 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20290 {
20291 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20292 }
20293
20294 template < typename CharT >
20295 unsigned long constexpr
20296 strlen_c(const CharT *const s) noexcept
20297 {
20298 return strlen_c_r(s, 0UL);
20299 }
20300
20301 static_assert(strlen_c("") == 0UL, "");
20302 static_assert(strlen_c("1") == 1UL, "");
20303 static_assert(strlen_c("example") == 7UL, "");
20304 static_assert(strlen_c("another\0example") == 7UL, "");
20305
20306 }
20307
20308 namespace test_rvalue_references
20309 {
20310
20311 template < int N >
20312 struct answer
20313 {
20314 static constexpr int value = N;
20315 };
20316
20317 answer<1> f(int&) { return answer<1>(); }
20318 answer<2> f(const int&) { return answer<2>(); }
20319 answer<3> f(int&&) { return answer<3>(); }
20320
20321 void
20322 test()
20323 {
20324 int i = 0;
20325 const int c = 0;
20326 static_assert(decltype(f(i))::value == 1, "");
20327 static_assert(decltype(f(c))::value == 2, "");
20328 static_assert(decltype(f(0))::value == 3, "");
20329 }
20330
20331 }
20332
20333 namespace test_uniform_initialization
20334 {
20335
20336 struct test
20337 {
20338 static const int zero {};
20339 static const int one {1};
20340 };
20341
20342 static_assert(test::zero == 0, "");
20343 static_assert(test::one == 1, "");
20344
20345 }
20346
20347 namespace test_lambdas
20348 {
20349
20350 void
20351 test1()
20352 {
20353 auto lambda1 = [](){};
20354 auto lambda2 = lambda1;
20355 lambda1();
20356 lambda2();
20357 }
20358
20359 int
20360 test2()
20361 {
20362 auto a = [](int i, int j){ return i + j; }(1, 2);
20363 auto b = []() -> int { return '0'; }();
20364 auto c = [=](){ return a + b; }();
20365 auto d = [&](){ return c; }();
20366 auto e = [a, &b](int x) mutable {
20367 const auto identity = [](int y){ return y; };
20368 for (auto i = 0; i < a; ++i)
20369 a += b--;
20370 return x + identity(a + b);
20371 }(0);
20372 return a + b + c + d + e;
20373 }
20374
20375 int
20376 test3()
20377 {
20378 const auto nullary = [](){ return 0; };
20379 const auto unary = [](int x){ return x; };
20380 using nullary_t = decltype(nullary);
20381 using unary_t = decltype(unary);
20382 const auto higher1st = [](nullary_t f){ return f(); };
20383 const auto higher2nd = [unary](nullary_t f1){
20384 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20385 };
20386 return higher1st(nullary) + higher2nd(nullary)(unary);
20387 }
20388
20389 }
20390
20391 namespace test_variadic_templates
20392 {
20393
20394 template <int...>
20395 struct sum;
20396
20397 template <int N0, int... N1toN>
20398 struct sum<N0, N1toN...>
20399 {
20400 static constexpr auto value = N0 + sum<N1toN...>::value;
20401 };
20402
20403 template <>
20404 struct sum<>
20405 {
20406 static constexpr auto value = 0;
20407 };
20408
20409 static_assert(sum<>::value == 0, "");
20410 static_assert(sum<1>::value == 1, "");
20411 static_assert(sum<23>::value == 23, "");
20412 static_assert(sum<1, 2>::value == 3, "");
20413 static_assert(sum<5, 5, 11>::value == 21, "");
20414 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20415
20416 }
20417
20418 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20419 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20420 // because of this.
20421 namespace test_template_alias_sfinae
20422 {
20423
20424 struct foo {};
20425
20426 template<typename T>
20427 using member = typename T::member_type;
20428
20429 template<typename T>
20430 void func(...) {}
20431
20432 template<typename T>
20433 void func(member<T>*) {}
20434
20435 void test();
20436
20437 void test() { func<foo>(0); }
20438
20439 }
20440
20441 } // namespace cxx11
20442
20443 #endif // __cplusplus >= 201103L
20444
20445
20446
20447 _ACEOF
20448 if ac_fn_cxx_try_compile "$LINENO"
20449 then :
20450 ax_cv_cxx_compile_cxx11=yes
20451 else case e in #(
20452 e) ax_cv_cxx_compile_cxx11=no ;;
20453 esac
20454 fi
20455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20456 esac
20457 fi
20458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
20459 printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
20460 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
20461 ac_success=yes
20462 fi
20463
20464 if test x$ac_success = xno; then
20465 for alternative in ${ax_cxx_compile_alternatives}; do
20466 switch="-std=gnu++${alternative}"
20467 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
20468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20469 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20470 if eval test \${$cachevar+y}
20471 then :
20472 printf %s "(cached) " >&6
20473 else case e in #(
20474 e) ac_save_CXX="$CXX"
20475 CXX="$CXX $switch"
20476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20477 /* end confdefs.h. */
20478
20479
20480 // If the compiler admits that it is not ready for C++11, why torture it?
20481 // Hopefully, this will speed up the test.
20482
20483 #ifndef __cplusplus
20484
20485 #error "This is not a C++ compiler"
20486
20487 #elif __cplusplus < 201103L && !(defined _MSC_VER)
20488
20489 #error "This is not a C++11 compiler"
20490
20491 #else
20492
20493 namespace cxx11
20494 {
20495
20496 namespace test_static_assert
20497 {
20498
20499 template <typename T>
20500 struct check
20501 {
20502 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20503 };
20504
20505 }
20506
20507 namespace test_final_override
20508 {
20509
20510 struct Base
20511 {
20512 virtual void f() {}
20513 };
20514
20515 struct Derived : public Base
20516 {
20517 virtual void f() override {}
20518 };
20519
20520 }
20521
20522 namespace test_double_right_angle_brackets
20523 {
20524
20525 template < typename T >
20526 struct check {};
20527
20528 typedef check<void> single_type;
20529 typedef check<check<void>> double_type;
20530 typedef check<check<check<void>>> triple_type;
20531 typedef check<check<check<check<void>>>> quadruple_type;
20532
20533 }
20534
20535 namespace test_decltype
20536 {
20537
20538 int
20539 f()
20540 {
20541 int a = 1;
20542 decltype(a) b = 2;
20543 return a + b;
20544 }
20545
20546 }
20547
20548 namespace test_type_deduction
20549 {
20550
20551 template < typename T1, typename T2 >
20552 struct is_same
20553 {
20554 static const bool value = false;
20555 };
20556
20557 template < typename T >
20558 struct is_same<T, T>
20559 {
20560 static const bool value = true;
20561 };
20562
20563 template < typename T1, typename T2 >
20564 auto
20565 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20566 {
20567 return a1 + a2;
20568 }
20569
20570 int
20571 test(const int c, volatile int v)
20572 {
20573 static_assert(is_same<int, decltype(0)>::value == true, "");
20574 static_assert(is_same<int, decltype(c)>::value == false, "");
20575 static_assert(is_same<int, decltype(v)>::value == false, "");
20576 auto ac = c;
20577 auto av = v;
20578 auto sumi = ac + av + 'x';
20579 auto sumf = ac + av + 1.0;
20580 static_assert(is_same<int, decltype(ac)>::value == true, "");
20581 static_assert(is_same<int, decltype(av)>::value == true, "");
20582 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20583 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20584 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20585 return (sumf > 0.0) ? sumi : add(c, v);
20586 }
20587
20588 }
20589
20590 namespace test_noexcept
20591 {
20592
20593 int f() { return 0; }
20594 int g() noexcept { return 0; }
20595
20596 static_assert(noexcept(f()) == false, "");
20597 static_assert(noexcept(g()) == true, "");
20598
20599 }
20600
20601 namespace test_constexpr
20602 {
20603
20604 template < typename CharT >
20605 unsigned long constexpr
20606 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20607 {
20608 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20609 }
20610
20611 template < typename CharT >
20612 unsigned long constexpr
20613 strlen_c(const CharT *const s) noexcept
20614 {
20615 return strlen_c_r(s, 0UL);
20616 }
20617
20618 static_assert(strlen_c("") == 0UL, "");
20619 static_assert(strlen_c("1") == 1UL, "");
20620 static_assert(strlen_c("example") == 7UL, "");
20621 static_assert(strlen_c("another\0example") == 7UL, "");
20622
20623 }
20624
20625 namespace test_rvalue_references
20626 {
20627
20628 template < int N >
20629 struct answer
20630 {
20631 static constexpr int value = N;
20632 };
20633
20634 answer<1> f(int&) { return answer<1>(); }
20635 answer<2> f(const int&) { return answer<2>(); }
20636 answer<3> f(int&&) { return answer<3>(); }
20637
20638 void
20639 test()
20640 {
20641 int i = 0;
20642 const int c = 0;
20643 static_assert(decltype(f(i))::value == 1, "");
20644 static_assert(decltype(f(c))::value == 2, "");
20645 static_assert(decltype(f(0))::value == 3, "");
20646 }
20647
20648 }
20649
20650 namespace test_uniform_initialization
20651 {
20652
20653 struct test
20654 {
20655 static const int zero {};
20656 static const int one {1};
20657 };
20658
20659 static_assert(test::zero == 0, "");
20660 static_assert(test::one == 1, "");
20661
20662 }
20663
20664 namespace test_lambdas
20665 {
20666
20667 void
20668 test1()
20669 {
20670 auto lambda1 = [](){};
20671 auto lambda2 = lambda1;
20672 lambda1();
20673 lambda2();
20674 }
20675
20676 int
20677 test2()
20678 {
20679 auto a = [](int i, int j){ return i + j; }(1, 2);
20680 auto b = []() -> int { return '0'; }();
20681 auto c = [=](){ return a + b; }();
20682 auto d = [&](){ return c; }();
20683 auto e = [a, &b](int x) mutable {
20684 const auto identity = [](int y){ return y; };
20685 for (auto i = 0; i < a; ++i)
20686 a += b--;
20687 return x + identity(a + b);
20688 }(0);
20689 return a + b + c + d + e;
20690 }
20691
20692 int
20693 test3()
20694 {
20695 const auto nullary = [](){ return 0; };
20696 const auto unary = [](int x){ return x; };
20697 using nullary_t = decltype(nullary);
20698 using unary_t = decltype(unary);
20699 const auto higher1st = [](nullary_t f){ return f(); };
20700 const auto higher2nd = [unary](nullary_t f1){
20701 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
20702 };
20703 return higher1st(nullary) + higher2nd(nullary)(unary);
20704 }
20705
20706 }
20707
20708 namespace test_variadic_templates
20709 {
20710
20711 template <int...>
20712 struct sum;
20713
20714 template <int N0, int... N1toN>
20715 struct sum<N0, N1toN...>
20716 {
20717 static constexpr auto value = N0 + sum<N1toN...>::value;
20718 };
20719
20720 template <>
20721 struct sum<>
20722 {
20723 static constexpr auto value = 0;
20724 };
20725
20726 static_assert(sum<>::value == 0, "");
20727 static_assert(sum<1>::value == 1, "");
20728 static_assert(sum<23>::value == 23, "");
20729 static_assert(sum<1, 2>::value == 3, "");
20730 static_assert(sum<5, 5, 11>::value == 21, "");
20731 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
20732
20733 }
20734
20735 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
20736 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
20737 // because of this.
20738 namespace test_template_alias_sfinae
20739 {
20740
20741 struct foo {};
20742
20743 template<typename T>
20744 using member = typename T::member_type;
20745
20746 template<typename T>
20747 void func(...) {}
20748
20749 template<typename T>
20750 void func(member<T>*) {}
20751
20752 void test();
20753
20754 void test() { func<foo>(0); }
20755
20756 }
20757
20758 } // namespace cxx11
20759
20760 #endif // __cplusplus >= 201103L
20761
20762
20763
20764 _ACEOF
20765 if ac_fn_cxx_try_compile "$LINENO"
20766 then :
20767 eval $cachevar=yes
20768 else case e in #(
20769 e) eval $cachevar=no ;;
20770 esac
20771 fi
20772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20773 CXX="$ac_save_CXX" ;;
20774 esac
20775 fi
20776 eval ac_res=\$$cachevar
20777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20778 printf "%s\n" "$ac_res" >&6; }
20779 if eval test x\$$cachevar = xyes; then
20780 CXX="$CXX $switch"
20781 if test -n "$CXXCPP" ; then
20782 CXXCPP="$CXXCPP $switch"
20783 fi
20784 ac_success=yes
20785 break
20786 fi
20787 done
20788 fi
20789
20790 if test x$ac_success = xno; then
20791 for alternative in ${ax_cxx_compile_alternatives}; do
20792 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
20793 cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | sed "$as_sed_sh"`
20794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
20795 printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
20796 if eval test \${$cachevar+y}
20797 then :
20798 printf %s "(cached) " >&6
20799 else case e in #(
20800 e) ac_save_CXX="$CXX"
20801 CXX="$CXX $switch"
20802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20803 /* end confdefs.h. */
20804
20805
20806 // If the compiler admits that it is not ready for C++11, why torture it?
20807 // Hopefully, this will speed up the test.
20808
20809 #ifndef __cplusplus
20810
20811 #error "This is not a C++ compiler"
20812
20813 #elif __cplusplus < 201103L && !(defined _MSC_VER)
20814
20815 #error "This is not a C++11 compiler"
20816
20817 #else
20818
20819 namespace cxx11
20820 {
20821
20822 namespace test_static_assert
20823 {
20824
20825 template <typename T>
20826 struct check
20827 {
20828 static_assert(sizeof(int) <= sizeof(T), "not big enough");
20829 };
20830
20831 }
20832
20833 namespace test_final_override
20834 {
20835
20836 struct Base
20837 {
20838 virtual void f() {}
20839 };
20840
20841 struct Derived : public Base
20842 {
20843 virtual void f() override {}
20844 };
20845
20846 }
20847
20848 namespace test_double_right_angle_brackets
20849 {
20850
20851 template < typename T >
20852 struct check {};
20853
20854 typedef check<void> single_type;
20855 typedef check<check<void>> double_type;
20856 typedef check<check<check<void>>> triple_type;
20857 typedef check<check<check<check<void>>>> quadruple_type;
20858
20859 }
20860
20861 namespace test_decltype
20862 {
20863
20864 int
20865 f()
20866 {
20867 int a = 1;
20868 decltype(a) b = 2;
20869 return a + b;
20870 }
20871
20872 }
20873
20874 namespace test_type_deduction
20875 {
20876
20877 template < typename T1, typename T2 >
20878 struct is_same
20879 {
20880 static const bool value = false;
20881 };
20882
20883 template < typename T >
20884 struct is_same<T, T>
20885 {
20886 static const bool value = true;
20887 };
20888
20889 template < typename T1, typename T2 >
20890 auto
20891 add(T1 a1, T2 a2) -> decltype(a1 + a2)
20892 {
20893 return a1 + a2;
20894 }
20895
20896 int
20897 test(const int c, volatile int v)
20898 {
20899 static_assert(is_same<int, decltype(0)>::value == true, "");
20900 static_assert(is_same<int, decltype(c)>::value == false, "");
20901 static_assert(is_same<int, decltype(v)>::value == false, "");
20902 auto ac = c;
20903 auto av = v;
20904 auto sumi = ac + av + 'x';
20905 auto sumf = ac + av + 1.0;
20906 static_assert(is_same<int, decltype(ac)>::value == true, "");
20907 static_assert(is_same<int, decltype(av)>::value == true, "");
20908 static_assert(is_same<int, decltype(sumi)>::value == true, "");
20909 static_assert(is_same<int, decltype(sumf)>::value == false, "");
20910 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
20911 return (sumf > 0.0) ? sumi : add(c, v);
20912 }
20913
20914 }
20915
20916 namespace test_noexcept
20917 {
20918
20919 int f() { return 0; }
20920 int g() noexcept { return 0; }
20921
20922 static_assert(noexcept(f()) == false, "");
20923 static_assert(noexcept(g()) == true, "");
20924
20925 }
20926
20927 namespace test_constexpr
20928 {
20929
20930 template < typename CharT >
20931 unsigned long constexpr
20932 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
20933 {
20934 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
20935 }
20936
20937 template < typename CharT >
20938 unsigned long constexpr
20939 strlen_c(const CharT *const s) noexcept
20940 {
20941 return strlen_c_r(s, 0UL);
20942 }
20943
20944 static_assert(strlen_c("") == 0UL, "");
20945 static_assert(strlen_c("1") == 1UL, "");
20946 static_assert(strlen_c("example") == 7UL, "");
20947 static_assert(strlen_c("another\0example") == 7UL, "");
20948
20949 }
20950
20951 namespace test_rvalue_references
20952 {
20953
20954 template < int N >
20955 struct answer
20956 {
20957 static constexpr int value = N;
20958 };
20959
20960 answer<1> f(int&) { return answer<1>(); }
20961 answer<2> f(const int&) { return answer<2>(); }
20962 answer<3> f(int&&) { return answer<3>(); }
20963
20964 void
20965 test()
20966 {
20967 int i = 0;
20968 const int c = 0;
20969 static_assert(decltype(f(i))::value == 1, "");
20970 static_assert(decltype(f(c))::value == 2, "");
20971 static_assert(decltype(f(0))::value == 3, "");
20972 }
20973
20974 }
20975
20976 namespace test_uniform_initialization
20977 {
20978
20979 struct test
20980 {
20981 static const int zero {};
20982 static const int one {1};
20983 };
20984
20985 static_assert(test::zero == 0, "");
20986 static_assert(test::one == 1, "");
20987
20988 }
20989
20990 namespace test_lambdas
20991 {
20992
20993 void
20994 test1()
20995 {
20996 auto lambda1 = [](){};
20997 auto lambda2 = lambda1;
20998 lambda1();
20999 lambda2();
21000 }
21001
21002 int
21003 test2()
21004 {
21005 auto a = [](int i, int j){ return i + j; }(1, 2);
21006 auto b = []() -> int { return '0'; }();
21007 auto c = [=](){ return a + b; }();
21008 auto d = [&](){ return c; }();
21009 auto e = [a, &b](int x) mutable {
21010 const auto identity = [](int y){ return y; };
21011 for (auto i = 0; i < a; ++i)
21012 a += b--;
21013 return x + identity(a + b);
21014 }(0);
21015 return a + b + c + d + e;
21016 }
21017
21018 int
21019 test3()
21020 {
21021 const auto nullary = [](){ return 0; };
21022 const auto unary = [](int x){ return x; };
21023 using nullary_t = decltype(nullary);
21024 using unary_t = decltype(unary);
21025 const auto higher1st = [](nullary_t f){ return f(); };
21026 const auto higher2nd = [unary](nullary_t f1){
21027 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
21028 };
21029 return higher1st(nullary) + higher2nd(nullary)(unary);
21030 }
21031
21032 }
21033
21034 namespace test_variadic_templates
21035 {
21036
21037 template <int...>
21038 struct sum;
21039
21040 template <int N0, int... N1toN>
21041 struct sum<N0, N1toN...>
21042 {
21043 static constexpr auto value = N0 + sum<N1toN...>::value;
21044 };
21045
21046 template <>
21047 struct sum<>
21048 {
21049 static constexpr auto value = 0;
21050 };
21051
21052 static_assert(sum<>::value == 0, "");
21053 static_assert(sum<1>::value == 1, "");
21054 static_assert(sum<23>::value == 23, "");
21055 static_assert(sum<1, 2>::value == 3, "");
21056 static_assert(sum<5, 5, 11>::value == 21, "");
21057 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
21058
21059 }
21060
21061 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
21062 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
21063 // because of this.
21064 namespace test_template_alias_sfinae
21065 {
21066
21067 struct foo {};
21068
21069 template<typename T>
21070 using member = typename T::member_type;
21071
21072 template<typename T>
21073 void func(...) {}
21074
21075 template<typename T>
21076 void func(member<T>*) {}
21077
21078 void test();
21079
21080 void test() { func<foo>(0); }
21081
21082 }
21083
21084 } // namespace cxx11
21085
21086 #endif // __cplusplus >= 201103L
21087
21088
21089
21090 _ACEOF
21091 if ac_fn_cxx_try_compile "$LINENO"
21092 then :
21093 eval $cachevar=yes
21094 else case e in #(
21095 e) eval $cachevar=no ;;
21096 esac
21097 fi
21098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21099 CXX="$ac_save_CXX" ;;
21100 esac
21101 fi
21102 eval ac_res=\$$cachevar
21103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21104 printf "%s\n" "$ac_res" >&6; }
21105 if eval test x\$$cachevar = xyes; then
21106 CXX="$CXX $switch"
21107 if test -n "$CXXCPP" ; then
21108 CXXCPP="$CXXCPP $switch"
21109 fi
21110 ac_success=yes
21111 break
21112 fi
21113 done
21114 if test x$ac_success = xyes; then
21115 break
21116 fi
21117 done
21118 fi
21119 ac_ext=cpp
21120 ac_cpp='$CXXCPP $CPPFLAGS'
21121 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21122 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21123 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21124
21125 if test x$ax_cxx_compile_cxx11_required = xtrue; then
21126 if test x$ac_success = xno; then
21127 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
21128 fi
21129 fi
21130 if test x$ac_success = xno; then
21131 HAVE_CXX11=0
21132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
21133 printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
21134 else
21135 HAVE_CXX11=1
21136
21137 printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
21138
21139 fi
21140
21141
21142
21143
21144
21145
21146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((format))" >&5
21147 printf %s "checking for __attribute__((format))... " >&6; }
21148 if test ${ax_cv_have_func_attribute_format+y}
21149 then :
21150 printf %s "(cached) " >&6
21151 else case e in #(
21152 e)
21153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21154 /* end confdefs.h. */
21155
21156
21157 int foo(const char *p, ...) __attribute__((format(printf, 1, 2)));
21158
21159 int
21160 main (void)
21161 {
21162
21163 ;
21164 return 0;
21165 }
21166
21167 _ACEOF
21168 if ac_fn_cxx_try_link "$LINENO"
21169 then :
21170 if test -s conftest.err
21171 then :
21172 ax_cv_have_func_attribute_format=no
21173 else case e in #(
21174 e) ax_cv_have_func_attribute_format=yes ;;
21175 esac
21176 fi
21177 else case e in #(
21178 e) ax_cv_have_func_attribute_format=no ;;
21179 esac
21180 fi
21181 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21182 conftest$ac_exeext conftest.$ac_ext
21183 ;;
21184 esac
21185 fi
21186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_format" >&5
21187 printf "%s\n" "$ax_cv_have_func_attribute_format" >&6; }
21188
21189 if test yes = $ax_cv_have_func_attribute_format
21190 then :
21191
21192 printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_FORMAT 1" >>confdefs.h
21193
21194 fi
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
21207 if test -n "$ac_tool_prefix"; then
21208 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21209 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21211 printf %s "checking for $ac_word... " >&6; }
21212 if test ${ac_cv_path_PKG_CONFIG+y}
21213 then :
21214 printf %s "(cached) " >&6
21215 else case e in #(
21216 e) case $PKG_CONFIG in
21217 [\\/]* | ?:[\\/]*)
21218 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21219 ;;
21220 *)
21221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21222 for as_dir in $PATH
21223 do
21224 IFS=$as_save_IFS
21225 case $as_dir in #(((
21226 '') as_dir=./ ;;
21227 */) ;;
21228 *) as_dir=$as_dir/ ;;
21229 esac
21230 for ac_exec_ext in '' $ac_executable_extensions; do
21231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21232 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21234 break 2
21235 fi
21236 done
21237 done
21238 IFS=$as_save_IFS
21239
21240 ;;
21241 esac ;;
21242 esac
21243 fi
21244 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21245 if test -n "$PKG_CONFIG"; then
21246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21247 printf "%s\n" "$PKG_CONFIG" >&6; }
21248 else
21249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21250 printf "%s\n" "no" >&6; }
21251 fi
21252
21253
21254 fi
21255 if test -z "$ac_cv_path_PKG_CONFIG"; then
21256 ac_pt_PKG_CONFIG=$PKG_CONFIG
21257 # Extract the first word of "pkg-config", so it can be a program name with args.
21258 set dummy pkg-config; ac_word=$2
21259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21260 printf %s "checking for $ac_word... " >&6; }
21261 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
21262 then :
21263 printf %s "(cached) " >&6
21264 else case e in #(
21265 e) case $ac_pt_PKG_CONFIG in
21266 [\\/]* | ?:[\\/]*)
21267 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21268 ;;
21269 *)
21270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21271 for as_dir in $PATH
21272 do
21273 IFS=$as_save_IFS
21274 case $as_dir in #(((
21275 '') as_dir=./ ;;
21276 */) ;;
21277 *) as_dir=$as_dir/ ;;
21278 esac
21279 for ac_exec_ext in '' $ac_executable_extensions; do
21280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21281 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
21282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21283 break 2
21284 fi
21285 done
21286 done
21287 IFS=$as_save_IFS
21288
21289 ;;
21290 esac ;;
21291 esac
21292 fi
21293 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21294 if test -n "$ac_pt_PKG_CONFIG"; then
21295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21296 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
21297 else
21298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21299 printf "%s\n" "no" >&6; }
21300 fi
21301
21302 if test "x$ac_pt_PKG_CONFIG" = x; then
21303 PKG_CONFIG=""
21304 else
21305 case $cross_compiling:$ac_tool_warned in
21306 yes:)
21307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21308 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21309 ac_tool_warned=yes ;;
21310 esac
21311 PKG_CONFIG=$ac_pt_PKG_CONFIG
21312 fi
21313 else
21314 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21315 fi
21316
21317 fi
21318 if test -n "$PKG_CONFIG"; then
21319 _pkg_min_version=0.20
21320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
21321 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
21322 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
21323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21324 printf "%s\n" "yes" >&6; }
21325 else
21326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21327 printf "%s\n" "no" >&6; }
21328 PKG_CONFIG=""
21329 fi
21330 fi
21331
21332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
21333 printf %s "checking for egrep... " >&6; }
21334 if test ${ac_cv_path_EGREP+y}
21335 then :
21336 printf %s "(cached) " >&6
21337 else case e in #(
21338 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
21339 then ac_cv_path_EGREP="$GREP -E"
21340 else
21341 if test -z "$EGREP"; then
21342 ac_path_EGREP_found=false
21343 # Loop through the user's path and test for each of PROGNAME-LIST
21344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
21346 do
21347 IFS=$as_save_IFS
21348 case $as_dir in #(((
21349 '') as_dir=./ ;;
21350 */) ;;
21351 *) as_dir=$as_dir/ ;;
21352 esac
21353 for ac_prog in egrep
21354 do
21355 for ac_exec_ext in '' $ac_executable_extensions; do
21356 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
21357 as_fn_executable_p "$ac_path_EGREP" || continue
21358 # Check for GNU ac_path_EGREP and select it if it is found.
21359 # Check for GNU $ac_path_EGREP
21360 case `"$ac_path_EGREP" --version 2>&1` in #(
21361 *GNU*)
21362 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
21363 #(
21364 *)
21365 ac_count=0
21366 printf %s 0123456789 >"conftest.in"
21367 while :
21368 do
21369 cat "conftest.in" "conftest.in" >"conftest.tmp"
21370 mv "conftest.tmp" "conftest.in"
21371 cp "conftest.in" "conftest.nl"
21372 printf "%s\n" 'EGREP' >> "conftest.nl"
21373 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
21374 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21375 as_fn_arith $ac_count + 1 && ac_count=$as_val
21376 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
21377 # Best one so far, save it but keep looking for a better one
21378 ac_cv_path_EGREP="$ac_path_EGREP"
21379 ac_path_EGREP_max=$ac_count
21380 fi
21381 # 10*(2^10) chars as input seems more than enough
21382 test $ac_count -gt 10 && break
21383 done
21384 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21385 esac
21386
21387 $ac_path_EGREP_found && break 3
21388 done
21389 done
21390 done
21391 IFS=$as_save_IFS
21392 if test -z "$ac_cv_path_EGREP"; then
21393 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
21394 fi
21395 else
21396 ac_cv_path_EGREP=$EGREP
21397 fi
21398
21399 fi ;;
21400 esac
21401 fi
21402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
21403 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
21404 EGREP="$ac_cv_path_EGREP"
21405
21406 EGREP_TRADITIONAL=$EGREP
21407 ac_cv_path_EGREP_TRADITIONAL=$EGREP
21408
21409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
21410 printf %s "checking for a sed that does not truncate output... " >&6; }
21411 if test ${ac_cv_path_SED+y}
21412 then :
21413 printf %s "(cached) " >&6
21414 else case e in #(
21415 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
21416 for ac_i in 1 2 3 4 5 6 7; do
21417 ac_script="$ac_script$as_nl$ac_script"
21418 done
21419 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
21420 { ac_script=; unset ac_script;}
21421 if test -z "$SED"; then
21422 ac_path_SED_found=false
21423 # Loop through the user's path and test for each of PROGNAME-LIST
21424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21425 for as_dir in $PATH
21426 do
21427 IFS=$as_save_IFS
21428 case $as_dir in #(((
21429 '') as_dir=./ ;;
21430 */) ;;
21431 *) as_dir=$as_dir/ ;;
21432 esac
21433 for ac_prog in sed gsed
21434 do
21435 for ac_exec_ext in '' $ac_executable_extensions; do
21436 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
21437 as_fn_executable_p "$ac_path_SED" || continue
21438 # Check for GNU ac_path_SED and select it if it is found.
21439 # Check for GNU $ac_path_SED
21440 case `"$ac_path_SED" --version 2>&1` in #(
21441 *GNU*)
21442 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
21443 #(
21444 *)
21445 ac_count=0
21446 printf %s 0123456789 >"conftest.in"
21447 while :
21448 do
21449 cat "conftest.in" "conftest.in" >"conftest.tmp"
21450 mv "conftest.tmp" "conftest.in"
21451 cp "conftest.in" "conftest.nl"
21452 printf "%s\n" '' >> "conftest.nl"
21453 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
21454 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21455 as_fn_arith $ac_count + 1 && ac_count=$as_val
21456 if test $ac_count -gt ${ac_path_SED_max-0}; then
21457 # Best one so far, save it but keep looking for a better one
21458 ac_cv_path_SED="$ac_path_SED"
21459 ac_path_SED_max=$ac_count
21460 fi
21461 # 10*(2^10) chars as input seems more than enough
21462 test $ac_count -gt 10 && break
21463 done
21464 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21465 esac
21466
21467 $ac_path_SED_found && break 3
21468 done
21469 done
21470 done
21471 IFS=$as_save_IFS
21472 if test -z "$ac_cv_path_SED"; then
21473 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
21474 fi
21475 else
21476 ac_cv_path_SED=$SED
21477 fi
21478 ;;
21479 esac
21480 fi
21481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
21482 printf "%s\n" "$ac_cv_path_SED" >&6; }
21483 SED="$ac_cv_path_SED"
21484 rm -f conftest.sed
21485
21486
21487
21488 GPERF=${GPERF-"${am_missing_run}gperf"}
21489
21490
21491 PERL=${PERL-"${am_missing_run}perl"}
21492
21493
21494 # ===============
21495 # Find librevenge
21496 # ===============
21497
21498 pkg_failed=no
21499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for
21500 librevenge-0.0
21501 " >&5
21502 printf %s "checking for
21503 librevenge-0.0
21504 ... " >&6; }
21505
21506 if test -n "$REVENGE_CFLAGS"; then
21507 pkg_cv_REVENGE_CFLAGS="$REVENGE_CFLAGS"
21508 elif test -n "$PKG_CONFIG"; then
21509 if test -n "$PKG_CONFIG" && \
21510 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
21511 librevenge-0.0
21512 \""; } >&5
21513 ($PKG_CONFIG --exists --print-errors "
21514 librevenge-0.0
21515 ") 2>&5
21516 ac_status=$?
21517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21518 test $ac_status = 0; }; then
21519 pkg_cv_REVENGE_CFLAGS=`$PKG_CONFIG --cflags "
21520 librevenge-0.0
21521 " 2>/dev/null`
21522 test "x$?" != "x0" && pkg_failed=yes
21523 else
21524 pkg_failed=yes
21525 fi
21526 else
21527 pkg_failed=untried
21528 fi
21529 if test -n "$REVENGE_LIBS"; then
21530 pkg_cv_REVENGE_LIBS="$REVENGE_LIBS"
21531 elif test -n "$PKG_CONFIG"; then
21532 if test -n "$PKG_CONFIG" && \
21533 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
21534 librevenge-0.0
21535 \""; } >&5
21536 ($PKG_CONFIG --exists --print-errors "
21537 librevenge-0.0
21538 ") 2>&5
21539 ac_status=$?
21540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21541 test $ac_status = 0; }; then
21542 pkg_cv_REVENGE_LIBS=`$PKG_CONFIG --libs "
21543 librevenge-0.0
21544 " 2>/dev/null`
21545 test "x$?" != "x0" && pkg_failed=yes
21546 else
21547 pkg_failed=yes
21548 fi
21549 else
21550 pkg_failed=untried
21551 fi
21552
21553
21554
21555 if test $pkg_failed = yes; then
21556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557 printf "%s\n" "no" >&6; }
21558
21559 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21560 _pkg_short_errors_supported=yes
21561 else
21562 _pkg_short_errors_supported=no
21563 fi
21564 if test $_pkg_short_errors_supported = yes; then
21565 REVENGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
21566 librevenge-0.0
21567 " 2>&1`
21568 else
21569 REVENGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
21570 librevenge-0.0
21571 " 2>&1`
21572 fi
21573 # Put the nasty error message in config.log where it belongs
21574 echo "$REVENGE_PKG_ERRORS" >&5
21575
21576 as_fn_error $? "Package requirements (
21577 librevenge-0.0
21578 ) were not met:
21579
21580 $REVENGE_PKG_ERRORS
21581
21582 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21583 installed software in a non-standard prefix.
21584
21585 Alternatively, you may set the environment variables REVENGE_CFLAGS
21586 and REVENGE_LIBS to avoid the need to call pkg-config.
21587 See the pkg-config man page for more details." "$LINENO" 5
21588 elif test $pkg_failed = untried; then
21589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21590 printf "%s\n" "no" >&6; }
21591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21592 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21593 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21594 is in your PATH or set the PKG_CONFIG environment variable to the full
21595 path to pkg-config.
21596
21597 Alternatively, you may set the environment variables REVENGE_CFLAGS
21598 and REVENGE_LIBS to avoid the need to call pkg-config.
21599 See the pkg-config man page for more details.
21600
21601 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21602 See 'config.log' for more details" "$LINENO" 5; }
21603 else
21604 REVENGE_CFLAGS=$pkg_cv_REVENGE_CFLAGS
21605 REVENGE_LIBS=$pkg_cv_REVENGE_LIBS
21606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21607 printf "%s\n" "yes" >&6; }
21608
21609 fi
21610
21611
21612
21613
21614 # =====
21615 # Tools
21616 # =====
21617 # Check whether --enable-tools was given.
21618 if test ${enable_tools+y}
21619 then :
21620 enableval=$enable_tools; enable_tools="$enableval"
21621 else case e in #(
21622 e) enable_tools=yes
21623 ;;
21624 esac
21625 fi
21626
21627 if test "x$enable_tools" = "xyes"; then
21628 BUILD_TOOLS_TRUE=
21629 BUILD_TOOLS_FALSE='#'
21630 else
21631 BUILD_TOOLS_TRUE='#'
21632 BUILD_TOOLS_FALSE=
21633 fi
21634
21635
21636 # =======
21637 # Fuzzers
21638 # =======
21639 # Check whether --enable-fuzzers was given.
21640 if test ${enable_fuzzers+y}
21641 then :
21642 enableval=$enable_fuzzers; enable_fuzzers="$enableval"
21643 else case e in #(
21644 e) enable_fuzzers=no
21645 ;;
21646 esac
21647 fi
21648
21649 if test "x$enable_fuzzers" = "xyes"; then
21650 BUILD_FUZZERS_TRUE=
21651 BUILD_FUZZERS_FALSE='#'
21652 else
21653 BUILD_FUZZERS_TRUE='#'
21654 BUILD_FUZZERS_FALSE=
21655 fi
21656
21657
21658 if test "x$enable_tools" = "xyes" -o "x$enable_fuzzers" = "xyes"
21659 then :
21660
21661
21662 pkg_failed=no
21663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for
21664 librevenge-stream-0.0
21665 " >&5
21666 printf %s "checking for
21667 librevenge-stream-0.0
21668 ... " >&6; }
21669
21670 if test -n "$REVENGE_STREAM_CFLAGS"; then
21671 pkg_cv_REVENGE_STREAM_CFLAGS="$REVENGE_STREAM_CFLAGS"
21672 elif test -n "$PKG_CONFIG"; then
21673 if test -n "$PKG_CONFIG" && \
21674 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
21675 librevenge-stream-0.0
21676 \""; } >&5
21677 ($PKG_CONFIG --exists --print-errors "
21678 librevenge-stream-0.0
21679 ") 2>&5
21680 ac_status=$?
21681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21682 test $ac_status = 0; }; then
21683 pkg_cv_REVENGE_STREAM_CFLAGS=`$PKG_CONFIG --cflags "
21684 librevenge-stream-0.0
21685 " 2>/dev/null`
21686 test "x$?" != "x0" && pkg_failed=yes
21687 else
21688 pkg_failed=yes
21689 fi
21690 else
21691 pkg_failed=untried
21692 fi
21693 if test -n "$REVENGE_STREAM_LIBS"; then
21694 pkg_cv_REVENGE_STREAM_LIBS="$REVENGE_STREAM_LIBS"
21695 elif test -n "$PKG_CONFIG"; then
21696 if test -n "$PKG_CONFIG" && \
21697 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
21698 librevenge-stream-0.0
21699 \""; } >&5
21700 ($PKG_CONFIG --exists --print-errors "
21701 librevenge-stream-0.0
21702 ") 2>&5
21703 ac_status=$?
21704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21705 test $ac_status = 0; }; then
21706 pkg_cv_REVENGE_STREAM_LIBS=`$PKG_CONFIG --libs "
21707 librevenge-stream-0.0
21708 " 2>/dev/null`
21709 test "x$?" != "x0" && pkg_failed=yes
21710 else
21711 pkg_failed=yes
21712 fi
21713 else
21714 pkg_failed=untried
21715 fi
21716
21717
21718
21719 if test $pkg_failed = yes; then
21720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21721 printf "%s\n" "no" >&6; }
21722
21723 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21724 _pkg_short_errors_supported=yes
21725 else
21726 _pkg_short_errors_supported=no
21727 fi
21728 if test $_pkg_short_errors_supported = yes; then
21729 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
21730 librevenge-stream-0.0
21731 " 2>&1`
21732 else
21733 REVENGE_STREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
21734 librevenge-stream-0.0
21735 " 2>&1`
21736 fi
21737 # Put the nasty error message in config.log where it belongs
21738 echo "$REVENGE_STREAM_PKG_ERRORS" >&5
21739
21740 as_fn_error $? "Package requirements (
21741 librevenge-stream-0.0
21742 ) were not met:
21743
21744 $REVENGE_STREAM_PKG_ERRORS
21745
21746 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21747 installed software in a non-standard prefix.
21748
21749 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
21750 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
21751 See the pkg-config man page for more details." "$LINENO" 5
21752 elif test $pkg_failed = untried; then
21753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21754 printf "%s\n" "no" >&6; }
21755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21756 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21757 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21758 is in your PATH or set the PKG_CONFIG environment variable to the full
21759 path to pkg-config.
21760
21761 Alternatively, you may set the environment variables REVENGE_STREAM_CFLAGS
21762 and REVENGE_STREAM_LIBS to avoid the need to call pkg-config.
21763 See the pkg-config man page for more details.
21764
21765 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21766 See 'config.log' for more details" "$LINENO" 5; }
21767 else
21768 REVENGE_STREAM_CFLAGS=$pkg_cv_REVENGE_STREAM_CFLAGS
21769 REVENGE_STREAM_LIBS=$pkg_cv_REVENGE_STREAM_LIBS
21770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21771 printf "%s\n" "yes" >&6; }
21772
21773 fi
21774
21775 pkg_failed=no
21776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for
21777 librevenge-generators-0.0
21778 " >&5
21779 printf %s "checking for
21780 librevenge-generators-0.0
21781 ... " >&6; }
21782
21783 if test -n "$REVENGE_GENERATORS_CFLAGS"; then
21784 pkg_cv_REVENGE_GENERATORS_CFLAGS="$REVENGE_GENERATORS_CFLAGS"
21785 elif test -n "$PKG_CONFIG"; then
21786 if test -n "$PKG_CONFIG" && \
21787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
21788 librevenge-generators-0.0
21789 \""; } >&5
21790 ($PKG_CONFIG --exists --print-errors "
21791 librevenge-generators-0.0
21792 ") 2>&5
21793 ac_status=$?
21794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795 test $ac_status = 0; }; then
21796 pkg_cv_REVENGE_GENERATORS_CFLAGS=`$PKG_CONFIG --cflags "
21797 librevenge-generators-0.0
21798 " 2>/dev/null`
21799 test "x$?" != "x0" && pkg_failed=yes
21800 else
21801 pkg_failed=yes
21802 fi
21803 else
21804 pkg_failed=untried
21805 fi
21806 if test -n "$REVENGE_GENERATORS_LIBS"; then
21807 pkg_cv_REVENGE_GENERATORS_LIBS="$REVENGE_GENERATORS_LIBS"
21808 elif test -n "$PKG_CONFIG"; then
21809 if test -n "$PKG_CONFIG" && \
21810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
21811 librevenge-generators-0.0
21812 \""; } >&5
21813 ($PKG_CONFIG --exists --print-errors "
21814 librevenge-generators-0.0
21815 ") 2>&5
21816 ac_status=$?
21817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21818 test $ac_status = 0; }; then
21819 pkg_cv_REVENGE_GENERATORS_LIBS=`$PKG_CONFIG --libs "
21820 librevenge-generators-0.0
21821 " 2>/dev/null`
21822 test "x$?" != "x0" && pkg_failed=yes
21823 else
21824 pkg_failed=yes
21825 fi
21826 else
21827 pkg_failed=untried
21828 fi
21829
21830
21831
21832 if test $pkg_failed = yes; then
21833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 printf "%s\n" "no" >&6; }
21835
21836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21837 _pkg_short_errors_supported=yes
21838 else
21839 _pkg_short_errors_supported=no
21840 fi
21841 if test $_pkg_short_errors_supported = yes; then
21842 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
21843 librevenge-generators-0.0
21844 " 2>&1`
21845 else
21846 REVENGE_GENERATORS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
21847 librevenge-generators-0.0
21848 " 2>&1`
21849 fi
21850 # Put the nasty error message in config.log where it belongs
21851 echo "$REVENGE_GENERATORS_PKG_ERRORS" >&5
21852
21853 as_fn_error $? "Package requirements (
21854 librevenge-generators-0.0
21855 ) were not met:
21856
21857 $REVENGE_GENERATORS_PKG_ERRORS
21858
21859 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21860 installed software in a non-standard prefix.
21861
21862 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
21863 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
21864 See the pkg-config man page for more details." "$LINENO" 5
21865 elif test $pkg_failed = untried; then
21866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21867 printf "%s\n" "no" >&6; }
21868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21869 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21870 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21871 is in your PATH or set the PKG_CONFIG environment variable to the full
21872 path to pkg-config.
21873
21874 Alternatively, you may set the environment variables REVENGE_GENERATORS_CFLAGS
21875 and REVENGE_GENERATORS_LIBS to avoid the need to call pkg-config.
21876 See the pkg-config man page for more details.
21877
21878 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21879 See 'config.log' for more details" "$LINENO" 5; }
21880 else
21881 REVENGE_GENERATORS_CFLAGS=$pkg_cv_REVENGE_GENERATORS_CFLAGS
21882 REVENGE_GENERATORS_LIBS=$pkg_cv_REVENGE_GENERATORS_LIBS
21883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21884 printf "%s\n" "yes" >&6; }
21885
21886 fi
21887
21888 fi
21889
21890
21891
21892
21893
21894 # =========
21895 # Find zlib
21896 # =========
21897
21898 pkg_failed=no
21899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
21900 printf %s "checking for zlib... " >&6; }
21901
21902 if test -n "$ZLIB_CFLAGS"; then
21903 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
21904 elif test -n "$PKG_CONFIG"; then
21905 if test -n "$PKG_CONFIG" && \
21906 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
21907 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
21908 ac_status=$?
21909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21910 test $ac_status = 0; }; then
21911 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
21912 test "x$?" != "x0" && pkg_failed=yes
21913 else
21914 pkg_failed=yes
21915 fi
21916 else
21917 pkg_failed=untried
21918 fi
21919 if test -n "$ZLIB_LIBS"; then
21920 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
21921 elif test -n "$PKG_CONFIG"; then
21922 if test -n "$PKG_CONFIG" && \
21923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
21924 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
21925 ac_status=$?
21926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21927 test $ac_status = 0; }; then
21928 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
21929 test "x$?" != "x0" && pkg_failed=yes
21930 else
21931 pkg_failed=yes
21932 fi
21933 else
21934 pkg_failed=untried
21935 fi
21936
21937
21938
21939 if test $pkg_failed = yes; then
21940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21941 printf "%s\n" "no" >&6; }
21942
21943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21944 _pkg_short_errors_supported=yes
21945 else
21946 _pkg_short_errors_supported=no
21947 fi
21948 if test $_pkg_short_errors_supported = yes; then
21949 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
21950 else
21951 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
21952 fi
21953 # Put the nasty error message in config.log where it belongs
21954 echo "$ZLIB_PKG_ERRORS" >&5
21955
21956 as_fn_error $? "Package requirements (zlib) were not met:
21957
21958 $ZLIB_PKG_ERRORS
21959
21960 Consider adjusting the PKG_CONFIG_PATH environment variable if you
21961 installed software in a non-standard prefix.
21962
21963 Alternatively, you may set the environment variables ZLIB_CFLAGS
21964 and ZLIB_LIBS to avoid the need to call pkg-config.
21965 See the pkg-config man page for more details." "$LINENO" 5
21966 elif test $pkg_failed = untried; then
21967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21968 printf "%s\n" "no" >&6; }
21969 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21970 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21971 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
21972 is in your PATH or set the PKG_CONFIG environment variable to the full
21973 path to pkg-config.
21974
21975 Alternatively, you may set the environment variables ZLIB_CFLAGS
21976 and ZLIB_LIBS to avoid the need to call pkg-config.
21977 See the pkg-config man page for more details.
21978
21979 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
21980 See 'config.log' for more details" "$LINENO" 5; }
21981 else
21982 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
21983 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
21984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21985 printf "%s\n" "yes" >&6; }
21986
21987 fi
21988
21989
21990
21991 # ========
21992 # Find icu
21993 # ========
21994
21995 pkg_failed=no
21996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icu-uc" >&5
21997 printf %s "checking for icu-uc... " >&6; }
21998
21999 if test -n "$ICU_CFLAGS"; then
22000 pkg_cv_ICU_CFLAGS="$ICU_CFLAGS"
22001 elif test -n "$PKG_CONFIG"; then
22002 if test -n "$PKG_CONFIG" && \
22003 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
22004 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
22005 ac_status=$?
22006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22007 test $ac_status = 0; }; then
22008 pkg_cv_ICU_CFLAGS=`$PKG_CONFIG --cflags "icu-uc" 2>/dev/null`
22009 test "x$?" != "x0" && pkg_failed=yes
22010 else
22011 pkg_failed=yes
22012 fi
22013 else
22014 pkg_failed=untried
22015 fi
22016 if test -n "$ICU_LIBS"; then
22017 pkg_cv_ICU_LIBS="$ICU_LIBS"
22018 elif test -n "$PKG_CONFIG"; then
22019 if test -n "$PKG_CONFIG" && \
22020 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-uc\""; } >&5
22021 ($PKG_CONFIG --exists --print-errors "icu-uc") 2>&5
22022 ac_status=$?
22023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22024 test $ac_status = 0; }; then
22025 pkg_cv_ICU_LIBS=`$PKG_CONFIG --libs "icu-uc" 2>/dev/null`
22026 test "x$?" != "x0" && pkg_failed=yes
22027 else
22028 pkg_failed=yes
22029 fi
22030 else
22031 pkg_failed=untried
22032 fi
22033
22034
22035
22036 if test $pkg_failed = yes; then
22037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22038 printf "%s\n" "no" >&6; }
22039
22040 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22041 _pkg_short_errors_supported=yes
22042 else
22043 _pkg_short_errors_supported=no
22044 fi
22045 if test $_pkg_short_errors_supported = yes; then
22046 ICU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-uc" 2>&1`
22047 else
22048 ICU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-uc" 2>&1`
22049 fi
22050 # Put the nasty error message in config.log where it belongs
22051 echo "$ICU_PKG_ERRORS" >&5
22052
22053 as_fn_error $? "Package requirements (icu-uc) were not met:
22054
22055 $ICU_PKG_ERRORS
22056
22057 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22058 installed software in a non-standard prefix.
22059
22060 Alternatively, you may set the environment variables ICU_CFLAGS
22061 and ICU_LIBS to avoid the need to call pkg-config.
22062 See the pkg-config man page for more details." "$LINENO" 5
22063 elif test $pkg_failed = untried; then
22064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065 printf "%s\n" "no" >&6; }
22066 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22067 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22068 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22069 is in your PATH or set the PKG_CONFIG environment variable to the full
22070 path to pkg-config.
22071
22072 Alternatively, you may set the environment variables ICU_CFLAGS
22073 and ICU_LIBS to avoid the need to call pkg-config.
22074 See the pkg-config man page for more details.
22075
22076 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22077 See 'config.log' for more details" "$LINENO" 5; }
22078 else
22079 ICU_CFLAGS=$pkg_cv_ICU_CFLAGS
22080 ICU_LIBS=$pkg_cv_ICU_LIBS
22081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22082 printf "%s\n" "yes" >&6; }
22083
22084 fi
22085
22086
22087 # ==========
22088 # Find lcms2
22089 # ==========
22090
22091 pkg_failed=no
22092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for
22093 lcms2
22094 " >&5
22095 printf %s "checking for
22096 lcms2
22097 ... " >&6; }
22098
22099 if test -n "$LCMS2_CFLAGS"; then
22100 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
22101 elif test -n "$PKG_CONFIG"; then
22102 if test -n "$PKG_CONFIG" && \
22103 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
22104 lcms2
22105 \""; } >&5
22106 ($PKG_CONFIG --exists --print-errors "
22107 lcms2
22108 ") 2>&5
22109 ac_status=$?
22110 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22111 test $ac_status = 0; }; then
22112 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "
22113 lcms2
22114 " 2>/dev/null`
22115 test "x$?" != "x0" && pkg_failed=yes
22116 else
22117 pkg_failed=yes
22118 fi
22119 else
22120 pkg_failed=untried
22121 fi
22122 if test -n "$LCMS2_LIBS"; then
22123 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
22124 elif test -n "$PKG_CONFIG"; then
22125 if test -n "$PKG_CONFIG" && \
22126 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
22127 lcms2
22128 \""; } >&5
22129 ($PKG_CONFIG --exists --print-errors "
22130 lcms2
22131 ") 2>&5
22132 ac_status=$?
22133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22134 test $ac_status = 0; }; then
22135 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "
22136 lcms2
22137 " 2>/dev/null`
22138 test "x$?" != "x0" && pkg_failed=yes
22139 else
22140 pkg_failed=yes
22141 fi
22142 else
22143 pkg_failed=untried
22144 fi
22145
22146
22147
22148 if test $pkg_failed = yes; then
22149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22150 printf "%s\n" "no" >&6; }
22151
22152 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22153 _pkg_short_errors_supported=yes
22154 else
22155 _pkg_short_errors_supported=no
22156 fi
22157 if test $_pkg_short_errors_supported = yes; then
22158 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
22159 lcms2
22160 " 2>&1`
22161 else
22162 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
22163 lcms2
22164 " 2>&1`
22165 fi
22166 # Put the nasty error message in config.log where it belongs
22167 echo "$LCMS2_PKG_ERRORS" >&5
22168
22169 as_fn_error $? "Package requirements (
22170 lcms2
22171 ) were not met:
22172
22173 $LCMS2_PKG_ERRORS
22174
22175 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22176 installed software in a non-standard prefix.
22177
22178 Alternatively, you may set the environment variables LCMS2_CFLAGS
22179 and LCMS2_LIBS to avoid the need to call pkg-config.
22180 See the pkg-config man page for more details." "$LINENO" 5
22181 elif test $pkg_failed = untried; then
22182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22183 printf "%s\n" "no" >&6; }
22184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22185 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22186 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22187 is in your PATH or set the PKG_CONFIG environment variable to the full
22188 path to pkg-config.
22189
22190 Alternatively, you may set the environment variables LCMS2_CFLAGS
22191 and LCMS2_LIBS to avoid the need to call pkg-config.
22192 See the pkg-config man page for more details.
22193
22194 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22195 See 'config.log' for more details" "$LINENO" 5; }
22196 else
22197 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
22198 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
22199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22200 printf "%s\n" "yes" >&6; }
22201
22202 fi
22203
22204
22205
22206 # ==========
22207 # Find boost
22208 # ==========
22209 for ac_header in boost/cstdint.hpp
22210 do :
22211 ac_fn_cxx_check_header_compile "$LINENO" "boost/cstdint.hpp" "ac_cv_header_boost_cstdint_hpp" "
22212
22213 "
22214 if test "x$ac_cv_header_boost_cstdint_hpp" = xyes
22215 then :
22216 printf "%s\n" "#define HAVE_BOOST_CSTDINT_HPP 1" >>confdefs.h
22217
22218 else case e in #(
22219 e) as_fn_error $? "Required boost headers not found." "$LINENO" 5 ;;
22220 esac
22221 fi
22222
22223 done
22224
22225 # =================================
22226 # Libtool/Version Makefile settings
22227 # =================================
22228 FH_MAJOR_VERSION=0
22229
22230 FH_MINOR_VERSION=1
22231
22232 FH_MICRO_VERSION=3
22233
22234 FH_VERSION=0.1.3
22235
22236 # AC_SUBST(LT_RELEASE, [libfreehand_version_major.libfreehand_version_minor])
22237 LT_CURRENT=`expr 100 '*' 0 + 1`
22238 # For 1.0.0 comment the first line and uncomment the second
22239 LT_AGE=0
22240 # LT_AGE=libfreehand_version_minor
22241
22242 LT_REVISION=3
22243
22244
22245
22246 # ==========================
22247 # Platform check for windows
22248 # ==========================
22249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
22250 printf %s "checking for native Win32... " >&6; }
22251 case $host in #(
22252 *-*-mingw*) :
22253
22254 native_win32=yes
22255 LIBFREEHAND_WIN32_RESOURCE=libfreehand-win32res.lo
22256 FH2RAW_WIN32_RESOURCE=fh2raw-win32res.lo
22257 FH2SVG_WIN32_RESOURCE=fh2svg-win32res.lo
22258 FH2TEXT_WIN32_RESOURCE=fh2text-win32res.lo
22259 ;; #(
22260 *) :
22261
22262 native_win32=no
22263 LIBFREEHAND_WIN32_RESOURCE=
22264 FH2RAW_WIN32_RESOURCE=
22265 FH2SVG_WIN32_RESOURCE=
22266 FH2TEXT_WIN32_RESOURCE=
22267
22268 ;;
22269 esac
22270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $native_win32" >&5
22271 printf "%s\n" "$native_win32" >&6; }
22272 if test "x$native_win32" = "xyes"; then
22273 OS_WIN32_TRUE=
22274 OS_WIN32_FALSE='#'
22275 else
22276 OS_WIN32_TRUE='#'
22277 OS_WIN32_FALSE=
22278 fi
22279
22280
22281
22282
22283
22284
22285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Win32 platform in general" >&5
22286 printf %s "checking for Win32 platform in general... " >&6; }
22287 case $host in #(
22288 *-*-mingw*|*-*-cygwin*) :
22289 platform_win32=yes ;; #(
22290 *) :
22291 platform_win32=no
22292 ;;
22293 esac
22294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
22295 printf "%s\n" "$platform_win32" >&6; }
22296 if test "x$platform_win32" = "xyes"; then
22297 PLATFORM_WIN32_TRUE=
22298 PLATFORM_WIN32_FALSE='#'
22299 else
22300 PLATFORM_WIN32_TRUE='#'
22301 PLATFORM_WIN32_FALSE=
22302 fi
22303
22304
22305 if test $platform_win32 = yes
22306 then :
22307
22308 else case e in #(
22309 e)
22310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
22311 printf %s "checking for -fvisibility=hidden compiler flag... " >&6; }
22312 saved_CXXFLAGS="$CXXFLAGS"
22313 CXXFLAGS="$CXXFLAGS -fvisibility=hidden"
22314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22315 /* end confdefs.h. */
22316
22317 int
22318 main (void)
22319 {
22320
22321 ;
22322 return 0;
22323 }
22324 _ACEOF
22325 if ac_fn_cxx_try_compile "$LINENO"
22326 then :
22327
22328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22329 printf "%s\n" "yes" >&6; }
22330 CXXFLAGS="$CXXFLAGS -DLIBFREEHAND_VISIBILITY"
22331
22332 else case e in #(
22333 e)
22334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22335 printf "%s\n" "no" >&6; }
22336 CXXFLAGS="$saved_CXXFLAGS"
22337
22338 ;;
22339 esac
22340 fi
22341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22342
22343 ;;
22344 esac
22345 fi
22346
22347 # ================
22348 # Check for cflags
22349 # ================
22350 # Check whether --enable-werror was given.
22351 if test ${enable_werror+y}
22352 then :
22353 enableval=$enable_werror; enable_werror="$enableval"
22354 else case e in #(
22355 e) enable_werror=no
22356 ;;
22357 esac
22358 fi
22359
22360 if test x"$enable_werror" != "xno"
22361 then :
22362
22363 CFLAGS="$CFLAGS -Werror"
22364 CXXFLAGS="$CXXFLAGS -Werror"
22365
22366 fi
22367 # Check whether --enable-weffc was given.
22368 if test ${enable_weffc+y}
22369 then :
22370 enableval=$enable_weffc; enable_weffc="$enableval"
22371 else case e in #(
22372 e) enable_weffc=yes
22373 ;;
22374 esac
22375 fi
22376
22377 # Check whether --enable-wparanoic was given.
22378 if test ${enable_wparanoic+y}
22379 then :
22380 enableval=$enable_wparanoic; enable_wparanoic="$enableval"
22381 else case e in #(
22382 e) enable_wparanoic=no
22383 ;;
22384 esac
22385 fi
22386
22387 # Courtesy of Glib: Ensure MSVC-compatible struct packing convention
22388 # is used when compiling for Win32 with gcc.
22389 if test "x$native_win32" = "xyes"
22390 then :
22391
22392 if test -n "$ac_tool_prefix"; then
22393 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
22394 set dummy ${ac_tool_prefix}windres; ac_word=$2
22395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22396 printf %s "checking for $ac_word... " >&6; }
22397 if test ${ac_cv_prog_WINDRES+y}
22398 then :
22399 printf %s "(cached) " >&6
22400 else case e in #(
22401 e) if test -n "$WINDRES"; then
22402 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
22403 else
22404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22405 for as_dir in $PATH
22406 do
22407 IFS=$as_save_IFS
22408 case $as_dir in #(((
22409 '') as_dir=./ ;;
22410 */) ;;
22411 *) as_dir=$as_dir/ ;;
22412 esac
22413 for ac_exec_ext in '' $ac_executable_extensions; do
22414 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22415 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
22416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22417 break 2
22418 fi
22419 done
22420 done
22421 IFS=$as_save_IFS
22422
22423 fi ;;
22424 esac
22425 fi
22426 WINDRES=$ac_cv_prog_WINDRES
22427 if test -n "$WINDRES"; then
22428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
22429 printf "%s\n" "$WINDRES" >&6; }
22430 else
22431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22432 printf "%s\n" "no" >&6; }
22433 fi
22434
22435
22436 fi
22437 if test -z "$ac_cv_prog_WINDRES"; then
22438 ac_ct_WINDRES=$WINDRES
22439 # Extract the first word of "windres", so it can be a program name with args.
22440 set dummy windres; ac_word=$2
22441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22442 printf %s "checking for $ac_word... " >&6; }
22443 if test ${ac_cv_prog_ac_ct_WINDRES+y}
22444 then :
22445 printf %s "(cached) " >&6
22446 else case e in #(
22447 e) if test -n "$ac_ct_WINDRES"; then
22448 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
22449 else
22450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22451 for as_dir in $PATH
22452 do
22453 IFS=$as_save_IFS
22454 case $as_dir in #(((
22455 '') as_dir=./ ;;
22456 */) ;;
22457 *) as_dir=$as_dir/ ;;
22458 esac
22459 for ac_exec_ext in '' $ac_executable_extensions; do
22460 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22461 ac_cv_prog_ac_ct_WINDRES="windres"
22462 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22463 break 2
22464 fi
22465 done
22466 done
22467 IFS=$as_save_IFS
22468
22469 fi ;;
22470 esac
22471 fi
22472 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
22473 if test -n "$ac_ct_WINDRES"; then
22474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
22475 printf "%s\n" "$ac_ct_WINDRES" >&6; }
22476 else
22477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22478 printf "%s\n" "no" >&6; }
22479 fi
22480
22481 if test "x$ac_ct_WINDRES" = x; then
22482 WINDRES=""
22483 else
22484 case $cross_compiling:$ac_tool_warned in
22485 yes:)
22486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22487 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22488 ac_tool_warned=yes ;;
22489 esac
22490 WINDRES=$ac_ct_WINDRES
22491 fi
22492 else
22493 WINDRES="$ac_cv_prog_WINDRES"
22494 fi
22495
22496 if test x"$GCC" = xyes
22497 then :
22498
22499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
22500 printf %s "checking how to get MSVC-compatible struct packing... " >&6; }
22501 if test -z "$ac_cv_prog_CC"
22502 then :
22503
22504 our_gcc="$CC"
22505
22506 else case e in #(
22507 e)
22508 our_gcc="$ac_cv_prog_CC"
22509 ;;
22510 esac
22511 fi
22512 if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null
22513 then :
22514
22515 msnative_struct="-mms-bitfields"
22516 CFLAGS="$CFLAGS $msnative_struct"
22517 CXXFLAGS="$CXXFLAGS $msnative_struct"
22518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
22519 printf "%s\n" "${msnative_struct}" >&6; }
22520
22521 else case e in #(
22522 e)
22523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no way" >&5
22524 printf "%s\n" "no way" >&6; }
22525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
22526 printf "%s\n" "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
22527 ;;
22528 esac
22529 fi
22530
22531 fi
22532 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
22533 CXXFLAGS="$CXXFLAGS -Wall -Wextra -pedantic -Wshadow -Wunused-variable"
22534 if test x"$enable_weffc" != "xno"
22535 then :
22536
22537 CXXFLAGS="$CXXFLAGS -Weffc++"
22538
22539 fi
22540 if test x"$enable_wparanoic" != "xno"
22541 then :
22542
22543 CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wchar-subscripts"
22544 CXXFLAGS="$CXXFLAGS -Wcomment -Wconversion -Wdisabled-optimization"
22545 CXXFLAGS="$CXXFLAGS -Wfloat-equal -Wformat -Wformat=2"
22546 CXXFLAGS="$CXXFLAGS -Wformat-nonliteral -Wformat-security"
22547 CXXFLAGS="$CXXFLAGS -Wformat-y2k -Wimport -Winit-self -Winvalid-pch"
22548 CXXFLAGS="$CXXFLAGS -Wmissing-braces -Wmissing-field-initializers"
22549 CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute -Wmissing-include-dirs"
22550 CXXFLAGS="$CXXFLAGS -Wmissing-noreturn -Wpacked -Wparentheses"
22551 CXXFLAGS="$CXXFLAGS -Wpointer-arith -Wredundant-decls -Wreturn-type"
22552 CXXFLAGS="$CXXFLAGS -Wsequence-point -Wsign-compare -Wstrict-aliasing"
22553 CXXFLAGS="$CXXFLAGS -Wstrict-aliasing=2 -Wswitch -Wswitch-default"
22554 CXXFLAGS="$CXXFLAGS -Wswitch-enum -Wtrigraphs -Wunknown-pragmas -Wunused"
22555 CXXFLAGS="$CXXFLAGS -Wunused-function -Wunused-label -Wunused-parameter"
22556 CXXFLAGS="$CXXFLAGS -Wunused-value -Wvariadic-macros"
22557 CXXFLAGS="$CXXFLAGS -Wvolatile-register-var -Wwrite-strings"
22558
22559 fi
22560
22561 else case e in #(
22562 e)
22563 if test x"$GCC" = xyes
22564 then :
22565
22566 # Be tough with warnings and produce less careless code
22567 CFLAGS="$CFLAGS -Wall -Wextra -pedantic"
22568 CXXFLAGS="$CXXFLAGS -Wall -Wextra -Wshadow -pedantic"
22569
22570 fi
22571 ;;
22572 esac
22573 fi
22574
22575 # ============
22576 # Debug switch
22577 # ============
22578 # Check whether --enable-debug was given.
22579 if test ${enable_debug+y}
22580 then :
22581 enableval=$enable_debug; enable_debug="$enableval"
22582 else case e in #(
22583 e) enable_debug=no
22584 ;;
22585 esac
22586 fi
22587
22588 if test "x$enable_debug" = "xyes"
22589 then :
22590
22591 DEBUG_CXXFLAGS="-DDEBUG -g"
22592 CXXFLAGS="$CXXFLAGS -O0"
22593 CFLAGS="$CFLAGS -O0"
22594
22595 else case e in #(
22596 e)
22597 DEBUG_CXXFLAGS="-DNDEBUG"
22598 ;;
22599 esac
22600 fi
22601
22602
22603 # ==========
22604 # Unit tests
22605 # ==========
22606 # Check whether --enable-tests was given.
22607 if test ${enable_tests+y}
22608 then :
22609 enableval=$enable_tests; enable_tests="$enableval"
22610 else case e in #(
22611 e) enable_tests=yes
22612 ;;
22613 esac
22614 fi
22615
22616 if test "x$enable_tests" = "xyes"
22617 then :
22618
22619
22620 pkg_failed=no
22621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cppunit" >&5
22622 printf %s "checking for cppunit... " >&6; }
22623
22624 if test -n "$CPPUNIT_CFLAGS"; then
22625 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
22626 elif test -n "$PKG_CONFIG"; then
22627 if test -n "$PKG_CONFIG" && \
22628 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
22629 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
22630 ac_status=$?
22631 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22632 test $ac_status = 0; }; then
22633 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null`
22634 test "x$?" != "x0" && pkg_failed=yes
22635 else
22636 pkg_failed=yes
22637 fi
22638 else
22639 pkg_failed=untried
22640 fi
22641 if test -n "$CPPUNIT_LIBS"; then
22642 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
22643 elif test -n "$PKG_CONFIG"; then
22644 if test -n "$PKG_CONFIG" && \
22645 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
22646 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
22647 ac_status=$?
22648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22649 test $ac_status = 0; }; then
22650 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null`
22651 test "x$?" != "x0" && pkg_failed=yes
22652 else
22653 pkg_failed=yes
22654 fi
22655 else
22656 pkg_failed=untried
22657 fi
22658
22659
22660
22661 if test $pkg_failed = yes; then
22662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22663 printf "%s\n" "no" >&6; }
22664
22665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22666 _pkg_short_errors_supported=yes
22667 else
22668 _pkg_short_errors_supported=no
22669 fi
22670 if test $_pkg_short_errors_supported = yes; then
22671 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1`
22672 else
22673 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1`
22674 fi
22675 # Put the nasty error message in config.log where it belongs
22676 echo "$CPPUNIT_PKG_ERRORS" >&5
22677
22678 as_fn_error $? "Package requirements (cppunit) were not met:
22679
22680 $CPPUNIT_PKG_ERRORS
22681
22682 Consider adjusting the PKG_CONFIG_PATH environment variable if you
22683 installed software in a non-standard prefix.
22684
22685 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
22686 and CPPUNIT_LIBS to avoid the need to call pkg-config.
22687 See the pkg-config man page for more details." "$LINENO" 5
22688 elif test $pkg_failed = untried; then
22689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22690 printf "%s\n" "no" >&6; }
22691 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22692 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22693 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
22694 is in your PATH or set the PKG_CONFIG environment variable to the full
22695 path to pkg-config.
22696
22697 Alternatively, you may set the environment variables CPPUNIT_CFLAGS
22698 and CPPUNIT_LIBS to avoid the need to call pkg-config.
22699 See the pkg-config man page for more details.
22700
22701 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
22702 See 'config.log' for more details" "$LINENO" 5; }
22703 else
22704 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
22705 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
22706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22707 printf "%s\n" "yes" >&6; }
22708
22709 fi
22710
22711 fi
22712
22713
22714 if test "x$enable_tests" = "xyes"; then
22715 BUILD_TESTS_TRUE=
22716 BUILD_TESTS_FALSE='#'
22717 else
22718 BUILD_TESTS_TRUE='#'
22719 BUILD_TESTS_FALSE=
22720 fi
22721
22722
22723 # =============
22724 # Documentation
22725 # =============
22726
22727 # Check whether --with-docs was given.
22728 if test ${with_docs+y}
22729 then :
22730 withval=$with_docs; with_docs="$withval"
22731 else case e in #(
22732 e) if test "x$native_win32" = "xyes"
22733 then :
22734 with_docs=no
22735 else case e in #(
22736 e) with_docs=yes ;;
22737 esac
22738 fi
22739 ;;
22740 esac
22741 fi
22742
22743 if test "x$with_docs" != "xno"
22744 then :
22745
22746 # Extract the first word of "doxygen", so it can be a program name with args.
22747 set dummy doxygen; ac_word=$2
22748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22749 printf %s "checking for $ac_word... " >&6; }
22750 if test ${ac_cv_path_DOXYGEN+y}
22751 then :
22752 printf %s "(cached) " >&6
22753 else case e in #(
22754 e) case $DOXYGEN in
22755 [\\/]* | ?:[\\/]*)
22756 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
22757 ;;
22758 *)
22759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22760 for as_dir in $PATH
22761 do
22762 IFS=$as_save_IFS
22763 case $as_dir in #(((
22764 '') as_dir=./ ;;
22765 */) ;;
22766 *) as_dir=$as_dir/ ;;
22767 esac
22768 for ac_exec_ext in '' $ac_executable_extensions; do
22769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22770 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
22771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22772 break 2
22773 fi
22774 done
22775 done
22776 IFS=$as_save_IFS
22777
22778 ;;
22779 esac ;;
22780 esac
22781 fi
22782 DOXYGEN=$ac_cv_path_DOXYGEN
22783 if test -n "$DOXYGEN"; then
22784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
22785 printf "%s\n" "$DOXYGEN" >&6; }
22786 else
22787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22788 printf "%s\n" "no" >&6; }
22789 fi
22790
22791
22792 if test -z "$DOXYGEN"
22793 then :
22794
22795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Could not find doxygen in your PATH." >&5
22796 printf "%s\n" "$as_me: WARNING: *** Could not find doxygen in your PATH." >&2;}
22797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** The documentation will not be built." >&5
22798 printf "%s\n" "$as_me: WARNING: *** The documentation will not be built." >&2;}
22799 build_docs=no
22800
22801 else case e in #(
22802 e) build_docs=yes ;;
22803 esac
22804 fi
22805
22806 else case e in #(
22807 e) build_docs=no ;;
22808 esac
22809 fi
22810 if test "x$build_docs" != "xno"; then
22811 WITH_LIBFREEHAND_DOCS_TRUE=
22812 WITH_LIBFREEHAND_DOCS_FALSE='#'
22813 else
22814 WITH_LIBFREEHAND_DOCS_TRUE='#'
22815 WITH_LIBFREEHAND_DOCS_FALSE=
22816 fi
22817
22818
22819 # =====================
22820 # Prepare all .in files
22821 # =====================
22822 ac_config_files="$ac_config_files Makefile src/Makefile src/conv/Makefile src/conv/raw/Makefile src/conv/raw/fh2raw.rc src/conv/svg/Makefile src/conv/svg/fh2svg.rc src/conv/text/Makefile src/conv/text/fh2text.rc src/fuzz/Makefile src/lib/Makefile src/lib/libfreehand.rc src/test/Makefile inc/Makefile inc/libfreehand/Makefile build/Makefile build/win32/Makefile docs/Makefile docs/doxygen/Makefile libfreehand-$FH_MAJOR_VERSION.$FH_MINOR_VERSION.pc:libfreehand.pc.in"
22823
22824 cat >confcache <<\_ACEOF
22825 # This file is a shell script that caches the results of configure
22826 # tests run on this system so they can be shared between configure
22827 # scripts and configure runs, see configure's option --config-cache.
22828 # It is not useful on other systems. If it contains results you don't
22829 # want to keep, you may remove or edit it.
22830 #
22831 # config.status only pays attention to the cache file if you give it
22832 # the --recheck option to rerun configure.
22833 #
22834 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
22835 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
22836 # following values.
22837
22838 _ACEOF
22839
22840 # The following way of writing the cache mishandles newlines in values,
22841 # but we know of no workaround that is simple, portable, and efficient.
22842 # So, we kill variables containing newlines.
22843 # Ultrix sh set writes to stderr and can't be redirected directly,
22844 # and sets the high bit in the cache file unless we assign to the vars.
22845 (
22846 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22847 eval ac_val=\$$ac_var
22848 case $ac_val in #(
22849 *${as_nl}*)
22850 case $ac_var in #(
22851 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22852 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22853 esac
22854 case $ac_var in #(
22855 _ | IFS | as_nl) ;; #(
22856 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22857 *) { eval $ac_var=; unset $ac_var;} ;;
22858 esac ;;
22859 esac
22860 done
22861
22862 (set) 2>&1 |
22863 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22864 *${as_nl}ac_space=\ *)
22865 # 'set' does not quote correctly, so add quotes: double-quote
22866 # substitution turns \\\\ into \\, and sed turns \\ into \.
22867 sed -n \
22868 "s/'/'\\\\''/g;
22869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22870 ;; #(
22871 *)
22872 # 'set' quotes correctly as required by POSIX, so do not add quotes.
22873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22874 ;;
22875 esac |
22876 sort
22877 ) |
22878 sed '
22879 /^ac_cv_env_/b end
22880 t clear
22881 :clear
22882 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22883 t end
22884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22885 :end' >>confcache
22886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22887 if test -w "$cache_file"; then
22888 if test "x$cache_file" != "x/dev/null"; then
22889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22890 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22891 if test ! -f "$cache_file" || test -h "$cache_file"; then
22892 cat confcache >"$cache_file"
22893 else
22894 case $cache_file in #(
22895 */* | ?:*)
22896 mv -f confcache "$cache_file"$$ &&
22897 mv -f "$cache_file"$$ "$cache_file" ;; #(
22898 *)
22899 mv -f confcache "$cache_file" ;;
22900 esac
22901 fi
22902 fi
22903 else
22904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22905 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22906 fi
22907 fi
22908 rm -f confcache
22909
22910 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22911 # Let make expand exec_prefix.
22912 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22913
22914 DEFS=-DHAVE_CONFIG_H
22915
22916 ac_libobjs=
22917 ac_ltlibobjs=
22918 U=
22919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22920 # 1. Remove the extension, and $U if already installed.
22921 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22922 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22923 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22924 # will be set to the directory where LIBOBJS objects are built.
22925 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22926 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22927 done
22928 LIBOBJS=$ac_libobjs
22929
22930 LTLIBOBJS=$ac_ltlibobjs
22931
22932
22933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22934 printf %s "checking that generated files are newer than configure... " >&6; }
22935 if test -n "$am_sleep_pid"; then
22936 # Hide warnings about reused PIDs.
22937 wait $am_sleep_pid 2>/dev/null
22938 fi
22939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22940 printf "%s\n" "done" >&6; }
22941 case $enable_silent_rules in # (((
22942 yes) AM_DEFAULT_VERBOSITY=0;;
22943 no) AM_DEFAULT_VERBOSITY=1;;
22944 esac
22945 if test $am_cv_make_support_nested_variables = yes; then
22946 AM_V='$(V)'
22947 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
22948 else
22949 AM_V=$AM_DEFAULT_VERBOSITY
22950 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
22951 fi
22952
22953 if test -n "$EXEEXT"; then
22954 am__EXEEXT_TRUE=
22955 am__EXEEXT_FALSE='#'
22956 else
22957 am__EXEEXT_TRUE='#'
22958 am__EXEEXT_FALSE=
22959 fi
22960
22961 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22962 as_fn_error $? "conditional \"AMDEP\" was never defined.
22963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22964 fi
22965 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22966 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22968 fi
22969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22970 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22972 fi
22973 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22974 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22976 fi
22977 if test -z "${BUILD_TOOLS_TRUE}" && test -z "${BUILD_TOOLS_FALSE}"; then
22978 as_fn_error $? "conditional \"BUILD_TOOLS\" was never defined.
22979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22980 fi
22981 if test -z "${BUILD_FUZZERS_TRUE}" && test -z "${BUILD_FUZZERS_FALSE}"; then
22982 as_fn_error $? "conditional \"BUILD_FUZZERS\" was never defined.
22983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22984 fi
22985 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
22986 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
22987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22988 fi
22989 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
22990 as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
22991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22992 fi
22993 if test -z "${BUILD_TESTS_TRUE}" && test -z "${BUILD_TESTS_FALSE}"; then
22994 as_fn_error $? "conditional \"BUILD_TESTS\" was never defined.
22995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22996 fi
22997 if test -z "${WITH_LIBFREEHAND_DOCS_TRUE}" && test -z "${WITH_LIBFREEHAND_DOCS_FALSE}"; then
22998 as_fn_error $? "conditional \"WITH_LIBFREEHAND_DOCS\" was never defined.
22999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23000 fi
23001
23002 : "${CONFIG_STATUS=./config.status}"
23003 ac_write_fail=0
23004 ac_clean_files_save=$ac_clean_files
23005 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23007 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23008 as_write_fail=0
23009 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23010 #! $SHELL
23011 # Generated by $as_me.
23012 # Run this file to recreate the current configuration.
23013 # Compiler output produced by configure, useful for debugging
23014 # configure, is in config.log if it exists.
23015
23016 debug=false
23017 ac_cs_recheck=false
23018 ac_cs_silent=false
23019
23020 SHELL=\${CONFIG_SHELL-$SHELL}
23021 export SHELL
23022 _ASEOF
23023 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23024 ## -------------------- ##
23025 ## M4sh Initialization. ##
23026 ## -------------------- ##
23027
23028 # Be more Bourne compatible
23029 DUALCASE=1; export DUALCASE # for MKS sh
23030 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23031 then :
23032 emulate sh
23033 NULLCMD=:
23034 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23035 # is contrary to our usage. Disable this feature.
23036 alias -g '${1+"$@"}'='"$@"'
23037 setopt NO_GLOB_SUBST
23038 else case e in #(
23039 e) case `(set -o) 2>/dev/null` in #(
23040 *posix*) :
23041 set -o posix ;; #(
23042 *) :
23043 ;;
23044 esac ;;
23045 esac
23046 fi
23047
23048
23049
23050 # Reset variables that may have inherited troublesome values from
23051 # the environment.
23052
23053 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23054 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23055 # side effect of setting IFS to empty, thus disabling word splitting.)
23056 # Quoting is to prevent editors from complaining about space-tab.
23057 as_nl='
23058 '
23059 export as_nl
23060 IFS=" "" $as_nl"
23061
23062 PS1='$ '
23063 PS2='> '
23064 PS4='+ '
23065
23066 # Ensure predictable behavior from utilities with locale-dependent output.
23067 LC_ALL=C
23068 export LC_ALL
23069 LANGUAGE=C
23070 export LANGUAGE
23071
23072 # We cannot yet rely on "unset" to work, but we need these variables
23073 # to be unset--not just set to an empty or harmless value--now, to
23074 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23075 # also avoids known problems related to "unset" and subshell syntax
23076 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23077 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23078 do eval test \${$as_var+y} \
23079 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23080 done
23081
23082 # Ensure that fds 0, 1, and 2 are open.
23083 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23084 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23085 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23086
23087 # The user is always right.
23088 if ${PATH_SEPARATOR+false} :; then
23089 PATH_SEPARATOR=:
23090 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23091 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23092 PATH_SEPARATOR=';'
23093 }
23094 fi
23095
23096
23097 # Find who we are. Look in the path if we contain no directory separator.
23098 as_myself=
23099 case $0 in #((
23100 *[\\/]* ) as_myself=$0 ;;
23101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23102 for as_dir in $PATH
23103 do
23104 IFS=$as_save_IFS
23105 case $as_dir in #(((
23106 '') as_dir=./ ;;
23107 */) ;;
23108 *) as_dir=$as_dir/ ;;
23109 esac
23110 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23111 done
23112 IFS=$as_save_IFS
23113
23114 ;;
23115 esac
23116 # We did not find ourselves, most probably we were run as 'sh COMMAND'
23117 # in which case we are not to be found in the path.
23118 if test "x$as_myself" = x; then
23119 as_myself=$0
23120 fi
23121 if test ! -f "$as_myself"; then
23122 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23123 exit 1
23124 fi
23125
23126
23127
23128 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23129 # ----------------------------------------
23130 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23131 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23132 # script with STATUS, using 1 if that was 0.
23133 as_fn_error ()
23134 {
23135 as_status=$1; test $as_status -eq 0 && as_status=1
23136 if test "$4"; then
23137 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23139 fi
23140 printf "%s\n" "$as_me: error: $2" >&2
23141 as_fn_exit $as_status
23142 } # as_fn_error
23143
23144
23145 # as_fn_set_status STATUS
23146 # -----------------------
23147 # Set $? to STATUS, without forking.
23148 as_fn_set_status ()
23149 {
23150 return $1
23151 } # as_fn_set_status
23152
23153 # as_fn_exit STATUS
23154 # -----------------
23155 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23156 as_fn_exit ()
23157 {
23158 set +e
23159 as_fn_set_status $1
23160 exit $1
23161 } # as_fn_exit
23162
23163 # as_fn_unset VAR
23164 # ---------------
23165 # Portably unset VAR.
23166 as_fn_unset ()
23167 {
23168 { eval $1=; unset $1;}
23169 }
23170 as_unset=as_fn_unset
23171
23172 # as_fn_append VAR VALUE
23173 # ----------------------
23174 # Append the text in VALUE to the end of the definition contained in VAR. Take
23175 # advantage of any shell optimizations that allow amortized linear growth over
23176 # repeated appends, instead of the typical quadratic growth present in naive
23177 # implementations.
23178 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23179 then :
23180 eval 'as_fn_append ()
23181 {
23182 eval $1+=\$2
23183 }'
23184 else case e in #(
23185 e) as_fn_append ()
23186 {
23187 eval $1=\$$1\$2
23188 } ;;
23189 esac
23190 fi # as_fn_append
23191
23192 # as_fn_arith ARG...
23193 # ------------------
23194 # Perform arithmetic evaluation on the ARGs, and store the result in the
23195 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23196 # must be portable across $(()) and expr.
23197 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23198 then :
23199 eval 'as_fn_arith ()
23200 {
23201 as_val=$(( $* ))
23202 }'
23203 else case e in #(
23204 e) as_fn_arith ()
23205 {
23206 as_val=`expr "$@" || test $? -eq 1`
23207 } ;;
23208 esac
23209 fi # as_fn_arith
23210
23211
23212 if expr a : '\(a\)' >/dev/null 2>&1 &&
23213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23214 as_expr=expr
23215 else
23216 as_expr=false
23217 fi
23218
23219 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23220 as_basename=basename
23221 else
23222 as_basename=false
23223 fi
23224
23225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23226 as_dirname=dirname
23227 else
23228 as_dirname=false
23229 fi
23230
23231 as_me=`$as_basename -- "$0" ||
23232 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23233 X"$0" : 'X\(//\)$' \| \
23234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23235 printf "%s\n" X/"$0" |
23236 sed '/^.*\/\([^/][^/]*\)\/*$/{
23237 s//\1/
23238 q
23239 }
23240 /^X\/\(\/\/\)$/{
23241 s//\1/
23242 q
23243 }
23244 /^X\/\(\/\).*/{
23245 s//\1/
23246 q
23247 }
23248 s/.*/./; q'`
23249
23250 # Avoid depending upon Character Ranges.
23251 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23252 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23253 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23254 as_cr_digits='0123456789'
23255 as_cr_alnum=$as_cr_Letters$as_cr_digits
23256
23257
23258 # Determine whether it's possible to make 'echo' print without a newline.
23259 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23260 # for compatibility with existing Makefiles.
23261 ECHO_C= ECHO_N= ECHO_T=
23262 case `echo -n x` in #(((((
23263 -n*)
23264 case `echo 'xy\c'` in
23265 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23266 xy) ECHO_C='\c';;
23267 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23268 ECHO_T=' ';;
23269 esac;;
23270 *)
23271 ECHO_N='-n';;
23272 esac
23273
23274 # For backward compatibility with old third-party macros, we provide
23275 # the shell variables $as_echo and $as_echo_n. New code should use
23276 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23277 as_echo='printf %s\n'
23278 as_echo_n='printf %s'
23279
23280 rm -f conf$$ conf$$.exe conf$$.file
23281 if test -d conf$$.dir; then
23282 rm -f conf$$.dir/conf$$.file
23283 else
23284 rm -f conf$$.dir
23285 mkdir conf$$.dir 2>/dev/null
23286 fi
23287 if (echo >conf$$.file) 2>/dev/null; then
23288 if ln -s conf$$.file conf$$ 2>/dev/null; then
23289 as_ln_s='ln -s'
23290 # ... but there are two gotchas:
23291 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
23292 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
23293 # In both cases, we have to default to 'cp -pR'.
23294 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23295 as_ln_s='cp -pR'
23296 elif ln conf$$.file conf$$ 2>/dev/null; then
23297 as_ln_s=ln
23298 else
23299 as_ln_s='cp -pR'
23300 fi
23301 else
23302 as_ln_s='cp -pR'
23303 fi
23304 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23305 rmdir conf$$.dir 2>/dev/null
23306
23307
23308 # as_fn_mkdir_p
23309 # -------------
23310 # Create "$as_dir" as a directory, including parents if necessary.
23311 as_fn_mkdir_p ()
23312 {
23313
23314 case $as_dir in #(
23315 -*) as_dir=./$as_dir;;
23316 esac
23317 test -d "$as_dir" || eval $as_mkdir_p || {
23318 as_dirs=
23319 while :; do
23320 case $as_dir in #(
23321 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23322 *) as_qdir=$as_dir;;
23323 esac
23324 as_dirs="'$as_qdir' $as_dirs"
23325 as_dir=`$as_dirname -- "$as_dir" ||
23326 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23327 X"$as_dir" : 'X\(//\)[^/]' \| \
23328 X"$as_dir" : 'X\(//\)$' \| \
23329 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23330 printf "%s\n" X"$as_dir" |
23331 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23332 s//\1/
23333 q
23334 }
23335 /^X\(\/\/\)[^/].*/{
23336 s//\1/
23337 q
23338 }
23339 /^X\(\/\/\)$/{
23340 s//\1/
23341 q
23342 }
23343 /^X\(\/\).*/{
23344 s//\1/
23345 q
23346 }
23347 s/.*/./; q'`
23348 test -d "$as_dir" && break
23349 done
23350 test -z "$as_dirs" || eval "mkdir $as_dirs"
23351 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23352
23353
23354 } # as_fn_mkdir_p
23355 if mkdir -p . 2>/dev/null; then
23356 as_mkdir_p='mkdir -p "$as_dir"'
23357 else
23358 test -d ./-p && rmdir ./-p
23359 as_mkdir_p=false
23360 fi
23361
23362
23363 # as_fn_executable_p FILE
23364 # -----------------------
23365 # Test if FILE is an executable regular file.
23366 as_fn_executable_p ()
23367 {
23368 test -f "$1" && test -x "$1"
23369 } # as_fn_executable_p
23370 as_test_x='test -x'
23371 as_executable_p=as_fn_executable_p
23372
23373 # Sed expression to map a string onto a valid CPP name.
23374 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23375 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
23376
23377 # Sed expression to map a string onto a valid variable name.
23378 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23379 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
23380
23381
23382 exec 6>&1
23383 ## ----------------------------------- ##
23384 ## Main body of $CONFIG_STATUS script. ##
23385 ## ----------------------------------- ##
23386 _ASEOF
23387 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23388
23389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23390 # Save the log message, to keep $0 and so on meaningful, and to
23391 # report actual input values of CONFIG_FILES etc. instead of their
23392 # values after options handling.
23393 ac_log="
23394 This file was extended by libfreehand $as_me 0.1.3, which was
23395 generated by GNU Autoconf 2.72. Invocation command line was
23396
23397 CONFIG_FILES = $CONFIG_FILES
23398 CONFIG_HEADERS = $CONFIG_HEADERS
23399 CONFIG_LINKS = $CONFIG_LINKS
23400 CONFIG_COMMANDS = $CONFIG_COMMANDS
23401 $ $0 $@
23402
23403 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23404 "
23405
23406 _ACEOF
23407
23408 case $ac_config_files in *"
23409 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23410 esac
23411
23412 case $ac_config_headers in *"
23413 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23414 esac
23415
23416
23417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23418 # Files that config.status was made for.
23419 config_files="$ac_config_files"
23420 config_headers="$ac_config_headers"
23421 config_commands="$ac_config_commands"
23422
23423 _ACEOF
23424
23425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23426 ac_cs_usage="\
23427 '$as_me' instantiates files and other configuration actions
23428 from templates according to the current configuration. Unless the files
23429 and actions are specified as TAGs, all are instantiated by default.
23430
23431 Usage: $0 [OPTION]... [TAG]...
23432
23433 -h, --help print this help, then exit
23434 -V, --version print version number and configuration settings, then exit
23435 --config print configuration, then exit
23436 -q, --quiet, --silent
23437 do not print progress messages
23438 -d, --debug don't remove temporary files
23439 --recheck update $as_me by reconfiguring in the same conditions
23440 --file=FILE[:TEMPLATE]
23441 instantiate the configuration file FILE
23442 --header=FILE[:TEMPLATE]
23443 instantiate the configuration header FILE
23444
23445 Configuration files:
23446 $config_files
23447
23448 Configuration headers:
23449 $config_headers
23450
23451 Configuration commands:
23452 $config_commands
23453
23454 Report bugs to the package provider."
23455
23456 _ACEOF
23457 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23458 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23460 ac_cs_config='$ac_cs_config_escaped'
23461 ac_cs_version="\\
23462 libfreehand config.status 0.1.3
23463 configured by $0, generated by GNU Autoconf 2.72,
23464 with options \\"\$ac_cs_config\\"
23465
23466 Copyright (C) 2023 Free Software Foundation, Inc.
23467 This config.status script is free software; the Free Software Foundation
23468 gives unlimited permission to copy, distribute and modify it."
23469
23470 ac_pwd='$ac_pwd'
23471 srcdir='$srcdir'
23472 INSTALL='$INSTALL'
23473 MKDIR_P='$MKDIR_P'
23474 AWK='$AWK'
23475 test -n "\$AWK" || AWK=awk
23476 _ACEOF
23477
23478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23479 # The default lists apply if the user does not specify any file.
23480 ac_need_defaults=:
23481 while test $# != 0
23482 do
23483 case $1 in
23484 --*=?*)
23485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23487 ac_shift=:
23488 ;;
23489 --*=)
23490 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23491 ac_optarg=
23492 ac_shift=:
23493 ;;
23494 *)
23495 ac_option=$1
23496 ac_optarg=$2
23497 ac_shift=shift
23498 ;;
23499 esac
23500
23501 case $ac_option in
23502 # Handling of the options.
23503 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23504 ac_cs_recheck=: ;;
23505 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23506 printf "%s\n" "$ac_cs_version"; exit ;;
23507 --config | --confi | --conf | --con | --co | --c )
23508 printf "%s\n" "$ac_cs_config"; exit ;;
23509 --debug | --debu | --deb | --de | --d | -d )
23510 debug=: ;;
23511 --file | --fil | --fi | --f )
23512 $ac_shift
23513 case $ac_optarg in
23514 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23515 '') as_fn_error $? "missing file argument" ;;
23516 esac
23517 as_fn_append CONFIG_FILES " '$ac_optarg'"
23518 ac_need_defaults=false;;
23519 --header | --heade | --head | --hea )
23520 $ac_shift
23521 case $ac_optarg in
23522 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23523 esac
23524 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23525 ac_need_defaults=false;;
23526 --he | --h)
23527 # Conflict between --help and --header
23528 as_fn_error $? "ambiguous option: '$1'
23529 Try '$0 --help' for more information.";;
23530 --help | --hel | -h )
23531 printf "%s\n" "$ac_cs_usage"; exit ;;
23532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23534 ac_cs_silent=: ;;
23535
23536 # This is an error.
23537 -*) as_fn_error $? "unrecognized option: '$1'
23538 Try '$0 --help' for more information." ;;
23539
23540 *) as_fn_append ac_config_targets " $1"
23541 ac_need_defaults=false ;;
23542
23543 esac
23544 shift
23545 done
23546
23547 ac_configure_extra_args=
23548
23549 if $ac_cs_silent; then
23550 exec 6>/dev/null
23551 ac_configure_extra_args="$ac_configure_extra_args --silent"
23552 fi
23553
23554 _ACEOF
23555 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23556 if \$ac_cs_recheck; then
23557 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23558 shift
23559 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23560 CONFIG_SHELL='$SHELL'
23561 export CONFIG_SHELL
23562 exec "\$@"
23563 fi
23564
23565 _ACEOF
23566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23567 exec 5>>config.log
23568 {
23569 echo
23570 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23571 ## Running $as_me. ##
23572 _ASBOX
23573 printf "%s\n" "$ac_log"
23574 } >&5
23575
23576 _ACEOF
23577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23578 #
23579 # INIT-COMMANDS
23580 #
23581 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23582
23583
23584 # The HP-UX ksh and POSIX shell print the target directory to stdout
23585 # if CDPATH is set.
23586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23587
23588 sed_quote_subst='$sed_quote_subst'
23589 double_quote_subst='$double_quote_subst'
23590 delay_variable_subst='$delay_variable_subst'
23591 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23592 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23593 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
23594 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23595 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23596 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23597 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23598 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23599 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23600 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23601 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23602 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23603 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23604 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23605 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23606 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23607 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23608 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23609 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23610 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23611 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23612 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23613 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23614 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23615 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23616 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23617 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23618 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23619 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23620 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23621 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23622 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23623 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23624 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23625 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23626 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23627 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23628 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
23629 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23630 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23631 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23632 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23633 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23634 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23635 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
23636 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23637 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23638 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23639 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23640 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23641 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23642 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23643 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23644 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23645 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23646 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23647 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23648 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23649 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23650 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23651 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23652 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"`'
23653 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23654 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23655 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23656 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23657 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23658 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23659 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23660 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23661 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23662 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23663 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23664 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23665 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23666 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23667 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23668 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23669 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23670 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23671 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23672 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23673 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23674 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23675 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23676 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23677 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23678 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23679 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23680 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23681 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23682 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23683 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23684 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23685 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23686 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23687 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23688 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23689 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23690 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23691 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23692 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23693 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23694 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23695 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23696 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23697 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23698 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23699 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23700 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23701 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23702 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23703 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23704 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23705 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23706 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23707 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23708 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23709 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23710 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23711 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23712 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23713 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23714 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23715 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23716 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23717 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23718 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23719 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23720 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23721 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23722 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23723 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23724 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23725 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23726 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23727 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23728 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23729 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23730 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23731 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23732 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23733 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23734 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23735 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23736 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23737 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23738 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23739 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23740 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23741 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23742 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23743 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23744 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23745 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23746 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23747 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23748 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23749 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23750 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23751 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23752 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23753 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23754 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23755 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23756 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23757 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23758 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23759 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23760 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23761 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23762 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23763 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23764 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23765 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23766 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23767 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23768 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23769 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23770 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23771 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23772 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23773 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23774 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23775 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23776 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23777 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23778 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23779 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23780 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23781 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23782 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23783
23784 LTCC='$LTCC'
23785 LTCFLAGS='$LTCFLAGS'
23786 compiler='$compiler_DEFAULT'
23787
23788 # A function that is used when there is no print builtin or printf.
23789 func_fallback_echo ()
23790 {
23791 eval 'cat <<_LTECHO_EOF
23792 \$1
23793 _LTECHO_EOF'
23794 }
23795
23796 # Quote evaled strings.
23797 for var in AS \
23798 DLLTOOL \
23799 OBJDUMP \
23800 SHELL \
23801 ECHO \
23802 PATH_SEPARATOR \
23803 SED \
23804 GREP \
23805 EGREP \
23806 FGREP \
23807 LD \
23808 NM \
23809 LN_S \
23810 lt_SP2NL \
23811 lt_NL2SP \
23812 reload_flag \
23813 FILECMD \
23814 deplibs_check_method \
23815 file_magic_cmd \
23816 file_magic_glob \
23817 want_nocaseglob \
23818 sharedlib_from_linklib_cmd \
23819 AR \
23820 archiver_list_spec \
23821 STRIP \
23822 RANLIB \
23823 CC \
23824 CFLAGS \
23825 compiler \
23826 lt_cv_sys_global_symbol_pipe \
23827 lt_cv_sys_global_symbol_to_cdecl \
23828 lt_cv_sys_global_symbol_to_import \
23829 lt_cv_sys_global_symbol_to_c_name_address \
23830 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23831 lt_cv_nm_interface \
23832 nm_file_list_spec \
23833 lt_cv_truncate_bin \
23834 lt_prog_compiler_no_builtin_flag \
23835 lt_prog_compiler_pic \
23836 lt_prog_compiler_wl \
23837 lt_prog_compiler_static \
23838 lt_cv_prog_compiler_c_o \
23839 need_locks \
23840 MANIFEST_TOOL \
23841 DSYMUTIL \
23842 NMEDIT \
23843 LIPO \
23844 OTOOL \
23845 OTOOL64 \
23846 shrext_cmds \
23847 export_dynamic_flag_spec \
23848 whole_archive_flag_spec \
23849 compiler_needs_object \
23850 with_gnu_ld \
23851 allow_undefined_flag \
23852 no_undefined_flag \
23853 hardcode_libdir_flag_spec \
23854 hardcode_libdir_separator \
23855 exclude_expsyms \
23856 include_expsyms \
23857 file_list_spec \
23858 variables_saved_for_relink \
23859 libname_spec \
23860 library_names_spec \
23861 soname_spec \
23862 install_override_mode \
23863 finish_eval \
23864 old_striplib \
23865 striplib \
23866 compiler_lib_search_dirs \
23867 predep_objects \
23868 postdep_objects \
23869 predeps \
23870 postdeps \
23871 compiler_lib_search_path \
23872 LD_CXX \
23873 reload_flag_CXX \
23874 compiler_CXX \
23875 lt_prog_compiler_no_builtin_flag_CXX \
23876 lt_prog_compiler_pic_CXX \
23877 lt_prog_compiler_wl_CXX \
23878 lt_prog_compiler_static_CXX \
23879 lt_cv_prog_compiler_c_o_CXX \
23880 export_dynamic_flag_spec_CXX \
23881 whole_archive_flag_spec_CXX \
23882 compiler_needs_object_CXX \
23883 with_gnu_ld_CXX \
23884 allow_undefined_flag_CXX \
23885 no_undefined_flag_CXX \
23886 hardcode_libdir_flag_spec_CXX \
23887 hardcode_libdir_separator_CXX \
23888 exclude_expsyms_CXX \
23889 include_expsyms_CXX \
23890 file_list_spec_CXX \
23891 compiler_lib_search_dirs_CXX \
23892 predep_objects_CXX \
23893 postdep_objects_CXX \
23894 predeps_CXX \
23895 postdeps_CXX \
23896 compiler_lib_search_path_CXX; do
23897 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23898 *[\\\\\\\`\\"\\\$]*)
23899 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23900 ;;
23901 *)
23902 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23903 ;;
23904 esac
23905 done
23906
23907 # Double-quote double-evaled strings.
23908 for var in reload_cmds \
23909 old_postinstall_cmds \
23910 old_postuninstall_cmds \
23911 old_archive_cmds \
23912 extract_expsyms_cmds \
23913 old_archive_from_new_cmds \
23914 old_archive_from_expsyms_cmds \
23915 archive_cmds \
23916 archive_expsym_cmds \
23917 module_cmds \
23918 module_expsym_cmds \
23919 export_symbols_cmds \
23920 prelink_cmds \
23921 postlink_cmds \
23922 postinstall_cmds \
23923 postuninstall_cmds \
23924 finish_cmds \
23925 sys_lib_search_path_spec \
23926 configure_time_dlsearch_path \
23927 configure_time_lt_sys_library_path \
23928 reload_cmds_CXX \
23929 old_archive_cmds_CXX \
23930 old_archive_from_new_cmds_CXX \
23931 old_archive_from_expsyms_cmds_CXX \
23932 archive_cmds_CXX \
23933 archive_expsym_cmds_CXX \
23934 module_cmds_CXX \
23935 module_expsym_cmds_CXX \
23936 export_symbols_cmds_CXX \
23937 prelink_cmds_CXX \
23938 postlink_cmds_CXX; do
23939 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23940 *[\\\\\\\`\\"\\\$]*)
23941 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23942 ;;
23943 *)
23944 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23945 ;;
23946 esac
23947 done
23948
23949 ac_aux_dir='$ac_aux_dir'
23950
23951 # See if we are running on zsh, and set the options that allow our
23952 # commands through without removal of \ escapes INIT.
23953 if test -n "\${ZSH_VERSION+set}"; then
23954 setopt NO_GLOB_SUBST
23955 fi
23956
23957
23958 PACKAGE='$PACKAGE'
23959 VERSION='$VERSION'
23960 RM='$RM'
23961 ofile='$ofile'
23962
23963
23964
23965
23966
23967
23968 _ACEOF
23969
23970 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23971
23972 # Handling of arguments.
23973 for ac_config_target in $ac_config_targets
23974 do
23975 case $ac_config_target in
23976 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23977 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23978 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23979 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23980 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23981 "src/conv/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/Makefile" ;;
23982 "src/conv/raw/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/raw/Makefile" ;;
23983 "src/conv/raw/fh2raw.rc") CONFIG_FILES="$CONFIG_FILES src/conv/raw/fh2raw.rc" ;;
23984 "src/conv/svg/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/svg/Makefile" ;;
23985 "src/conv/svg/fh2svg.rc") CONFIG_FILES="$CONFIG_FILES src/conv/svg/fh2svg.rc" ;;
23986 "src/conv/text/Makefile") CONFIG_FILES="$CONFIG_FILES src/conv/text/Makefile" ;;
23987 "src/conv/text/fh2text.rc") CONFIG_FILES="$CONFIG_FILES src/conv/text/fh2text.rc" ;;
23988 "src/fuzz/Makefile") CONFIG_FILES="$CONFIG_FILES src/fuzz/Makefile" ;;
23989 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
23990 "src/lib/libfreehand.rc") CONFIG_FILES="$CONFIG_FILES src/lib/libfreehand.rc" ;;
23991 "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
23992 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
23993 "inc/libfreehand/Makefile") CONFIG_FILES="$CONFIG_FILES inc/libfreehand/Makefile" ;;
23994 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
23995 "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
23996 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
23997 "docs/doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES docs/doxygen/Makefile" ;;
23998 "libfreehand-$FH_MAJOR_VERSION.$FH_MINOR_VERSION.pc") CONFIG_FILES="$CONFIG_FILES libfreehand-$FH_MAJOR_VERSION.$FH_MINOR_VERSION.pc:libfreehand.pc.in" ;;
23999
24000 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
24001 esac
24002 done
24003
24004
24005 # If the user did not use the arguments to specify the items to instantiate,
24006 # then the envvar interface is used. Set only those that are not.
24007 # We use the long form for the default assignment because of an extremely
24008 # bizarre bug on SunOS 4.1.3.
24009 if $ac_need_defaults; then
24010 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24011 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24012 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24013 fi
24014
24015 # Have a temporary directory for convenience. Make it in the build tree
24016 # simply because there is no reason against having it here, and in addition,
24017 # creating and moving files from /tmp can sometimes cause problems.
24018 # Hook for its removal unless debugging.
24019 # Note that there is a small window in which the directory will not be cleaned:
24020 # after its creation but before its name has been assigned to '$tmp'.
24021 $debug ||
24022 {
24023 tmp= ac_tmp=
24024 trap 'exit_status=$?
24025 : "${ac_tmp:=$tmp}"
24026 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24027 ' 0
24028 trap 'as_fn_exit 1' 1 2 13 15
24029 }
24030 # Create a (secure) tmp directory for tmp files.
24031
24032 {
24033 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24034 test -d "$tmp"
24035 } ||
24036 {
24037 tmp=./conf$$-$RANDOM
24038 (umask 077 && mkdir "$tmp")
24039 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24040 ac_tmp=$tmp
24041
24042 # Set up the scripts for CONFIG_FILES section.
24043 # No need to generate them if there are no CONFIG_FILES.
24044 # This happens for instance with './config.status config.h'.
24045 if test -n "$CONFIG_FILES"; then
24046
24047
24048 ac_cr=`echo X | tr X '\015'`
24049 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24050 # But we know of no other shell where ac_cr would be empty at this
24051 # point, so we can use a bashism as a fallback.
24052 if test "x$ac_cr" = x; then
24053 eval ac_cr=\$\'\\r\'
24054 fi
24055 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24056 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24057 ac_cs_awk_cr='\\r'
24058 else
24059 ac_cs_awk_cr=$ac_cr
24060 fi
24061
24062 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24063 _ACEOF
24064
24065
24066 {
24067 echo "cat >conf$$subs.awk <<_ACEOF" &&
24068 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24069 echo "_ACEOF"
24070 } >conf$$subs.sh ||
24071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24072 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24073 ac_delim='%!_!# '
24074 for ac_last_try in false false false false false :; do
24075 . ./conf$$subs.sh ||
24076 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24077
24078 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24079 if test $ac_delim_n = $ac_delim_num; then
24080 break
24081 elif $ac_last_try; then
24082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24083 else
24084 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24085 fi
24086 done
24087 rm -f conf$$subs.sh
24088
24089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24090 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24091 _ACEOF
24092 sed -n '
24093 h
24094 s/^/S["/; s/!.*/"]=/
24095 p
24096 g
24097 s/^[^!]*!//
24098 :repl
24099 t repl
24100 s/'"$ac_delim"'$//
24101 t delim
24102 :nl
24103 h
24104 s/\(.\{148\}\)..*/\1/
24105 t more1
24106 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24107 p
24108 n
24109 b repl
24110 :more1
24111 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24112 p
24113 g
24114 s/.\{148\}//
24115 t nl
24116 :delim
24117 h
24118 s/\(.\{148\}\)..*/\1/
24119 t more2
24120 s/["\\]/\\&/g; s/^/"/; s/$/"/
24121 p
24122 b
24123 :more2
24124 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24125 p
24126 g
24127 s/.\{148\}//
24128 t delim
24129 ' <conf$$subs.awk | sed '
24130 /^[^""]/{
24131 N
24132 s/\n//
24133 }
24134 ' >>$CONFIG_STATUS || ac_write_fail=1
24135 rm -f conf$$subs.awk
24136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24137 _ACAWK
24138 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24139 for (key in S) S_is_set[key] = 1
24140 FS = ""
24141
24142 }
24143 {
24144 line = $ 0
24145 nfields = split(line, field, "@")
24146 substed = 0
24147 len = length(field[1])
24148 for (i = 2; i < nfields; i++) {
24149 key = field[i]
24150 keylen = length(key)
24151 if (S_is_set[key]) {
24152 value = S[key]
24153 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24154 len += length(value) + length(field[++i])
24155 substed = 1
24156 } else
24157 len += 1 + keylen
24158 }
24159
24160 print line
24161 }
24162
24163 _ACAWK
24164 _ACEOF
24165 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24166 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24167 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24168 else
24169 cat
24170 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24171 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24172 _ACEOF
24173
24174 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24175 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24176 # trailing colons and then remove the whole line if VPATH becomes empty
24177 # (actually we leave an empty line to preserve line numbers).
24178 if test "x$srcdir" = x.; then
24179 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24180 h
24181 s///
24182 s/^/:/
24183 s/[ ]*$/:/
24184 s/:\$(srcdir):/:/g
24185 s/:\${srcdir}:/:/g
24186 s/:@srcdir@:/:/g
24187 s/^:*//
24188 s/:*$//
24189 x
24190 s/\(=[ ]*\).*/\1/
24191 G
24192 s/\n//
24193 s/^[^=]*=[ ]*$//
24194 }'
24195 fi
24196
24197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24198 fi # test -n "$CONFIG_FILES"
24199
24200 # Set up the scripts for CONFIG_HEADERS section.
24201 # No need to generate them if there are no CONFIG_HEADERS.
24202 # This happens for instance with './config.status Makefile'.
24203 if test -n "$CONFIG_HEADERS"; then
24204 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24205 BEGIN {
24206 _ACEOF
24207
24208 # Transform confdefs.h into an awk script 'defines.awk', embedded as
24209 # here-document in config.status, that substitutes the proper values into
24210 # config.h.in to produce config.h.
24211
24212 # Create a delimiter string that does not exist in confdefs.h, to ease
24213 # handling of long lines.
24214 ac_delim='%!_!# '
24215 for ac_last_try in false false :; do
24216 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24217 if test -z "$ac_tt"; then
24218 break
24219 elif $ac_last_try; then
24220 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24221 else
24222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24223 fi
24224 done
24225
24226 # For the awk script, D is an array of macro values keyed by name,
24227 # likewise P contains macro parameters if any. Preserve backslash
24228 # newline sequences.
24229
24230 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24231 sed -n '
24232 s/.\{148\}/&'"$ac_delim"'/g
24233 t rset
24234 :rset
24235 s/^[ ]*#[ ]*define[ ][ ]*/ /
24236 t def
24237 d
24238 :def
24239 s/\\$//
24240 t bsnl
24241 s/["\\]/\\&/g
24242 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24243 D["\1"]=" \3"/p
24244 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
24245 d
24246 :bsnl
24247 s/["\\]/\\&/g
24248 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
24249 D["\1"]=" \3\\\\\\n"\\/p
24250 t cont
24251 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24252 t cont
24253 d
24254 :cont
24255 n
24256 s/.\{148\}/&'"$ac_delim"'/g
24257 t clear
24258 :clear
24259 s/\\$//
24260 t bsnlc
24261 s/["\\]/\\&/g; s/^/"/; s/$/"/p
24262 d
24263 :bsnlc
24264 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24265 b cont
24266 ' <confdefs.h | sed '
24267 s/'"$ac_delim"'/"\\\
24268 "/g' >>$CONFIG_STATUS || ac_write_fail=1
24269
24270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24271 for (key in D) D_is_set[key] = 1
24272 FS = ""
24273 }
24274 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24275 line = \$ 0
24276 split(line, arg, " ")
24277 if (arg[1] == "#") {
24278 defundef = arg[2]
24279 mac1 = arg[3]
24280 } else {
24281 defundef = substr(arg[1], 2)
24282 mac1 = arg[2]
24283 }
24284 split(mac1, mac2, "(") #)
24285 macro = mac2[1]
24286 prefix = substr(line, 1, index(line, defundef) - 1)
24287 if (D_is_set[macro]) {
24288 # Preserve the white space surrounding the "#".
24289 print prefix "define", macro P[macro] D[macro]
24290 next
24291 } else {
24292 # Replace #undef with comments. This is necessary, for example,
24293 # in the case of _POSIX_SOURCE, which is predefined and required
24294 # on some systems where configure will not decide to define it.
24295 if (defundef == "undef") {
24296 print "/*", prefix defundef, macro, "*/"
24297 next
24298 }
24299 }
24300 }
24301 { print }
24302 _ACAWK
24303 _ACEOF
24304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24305 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24306 fi # test -n "$CONFIG_HEADERS"
24307
24308
24309 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
24310 shift
24311 for ac_tag
24312 do
24313 case $ac_tag in
24314 :[FHLC]) ac_mode=$ac_tag; continue;;
24315 esac
24316 case $ac_mode$ac_tag in
24317 :[FHL]*:*);;
24318 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
24319 :[FH]-) ac_tag=-:-;;
24320 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24321 esac
24322 ac_save_IFS=$IFS
24323 IFS=:
24324 set x $ac_tag
24325 IFS=$ac_save_IFS
24326 shift
24327 ac_file=$1
24328 shift
24329
24330 case $ac_mode in
24331 :L) ac_source=$1;;
24332 :[FH])
24333 ac_file_inputs=
24334 for ac_f
24335 do
24336 case $ac_f in
24337 -) ac_f="$ac_tmp/stdin";;
24338 *) # Look for the file first in the build tree, then in the source tree
24339 # (if the path is not absolute). The absolute path cannot be DOS-style,
24340 # because $ac_f cannot contain ':'.
24341 test -f "$ac_f" ||
24342 case $ac_f in
24343 [\\/$]*) false;;
24344 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24345 esac ||
24346 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
24347 esac
24348 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24349 as_fn_append ac_file_inputs " '$ac_f'"
24350 done
24351
24352 # Let's still pretend it is 'configure' which instantiates (i.e., don't
24353 # use $as_me), people would be surprised to read:
24354 # /* config.h. Generated by config.status. */
24355 configure_input='Generated from '`
24356 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24357 `' by configure.'
24358 if test x"$ac_file" != x-; then
24359 configure_input="$ac_file. $configure_input"
24360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24361 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24362 fi
24363 # Neutralize special characters interpreted by sed in replacement strings.
24364 case $configure_input in #(
24365 *\&* | *\|* | *\\* )
24366 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24367 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24368 *) ac_sed_conf_input=$configure_input;;
24369 esac
24370
24371 case $ac_tag in
24372 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24374 esac
24375 ;;
24376 esac
24377
24378 ac_dir=`$as_dirname -- "$ac_file" ||
24379 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24380 X"$ac_file" : 'X\(//\)[^/]' \| \
24381 X"$ac_file" : 'X\(//\)$' \| \
24382 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24383 printf "%s\n" X"$ac_file" |
24384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24385 s//\1/
24386 q
24387 }
24388 /^X\(\/\/\)[^/].*/{
24389 s//\1/
24390 q
24391 }
24392 /^X\(\/\/\)$/{
24393 s//\1/
24394 q
24395 }
24396 /^X\(\/\).*/{
24397 s//\1/
24398 q
24399 }
24400 s/.*/./; q'`
24401 as_dir="$ac_dir"; as_fn_mkdir_p
24402 ac_builddir=.
24403
24404 case "$ac_dir" in
24405 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24406 *)
24407 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24408 # A ".." for each directory in $ac_dir_suffix.
24409 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24410 case $ac_top_builddir_sub in
24411 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24412 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24413 esac ;;
24414 esac
24415 ac_abs_top_builddir=$ac_pwd
24416 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24417 # for backward compatibility:
24418 ac_top_builddir=$ac_top_build_prefix
24419
24420 case $srcdir in
24421 .) # We are building in place.
24422 ac_srcdir=.
24423 ac_top_srcdir=$ac_top_builddir_sub
24424 ac_abs_top_srcdir=$ac_pwd ;;
24425 [\\/]* | ?:[\\/]* ) # Absolute name.
24426 ac_srcdir=$srcdir$ac_dir_suffix;
24427 ac_top_srcdir=$srcdir
24428 ac_abs_top_srcdir=$srcdir ;;
24429 *) # Relative name.
24430 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24431 ac_top_srcdir=$ac_top_build_prefix$srcdir
24432 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24433 esac
24434 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24435
24436
24437 case $ac_mode in
24438 :F)
24439 #
24440 # CONFIG_FILE
24441 #
24442
24443 case $INSTALL in
24444 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24445 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24446 esac
24447 ac_MKDIR_P=$MKDIR_P
24448 case $MKDIR_P in
24449 [\\/$]* | ?:[\\/]* ) ;;
24450 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24451 esac
24452 _ACEOF
24453
24454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24455 # If the template does not know about datarootdir, expand it.
24456 # FIXME: This hack should be removed a few years after 2.60.
24457 ac_datarootdir_hack=; ac_datarootdir_seen=
24458 ac_sed_dataroot='
24459 /datarootdir/ {
24460 p
24461 q
24462 }
24463 /@datadir@/p
24464 /@docdir@/p
24465 /@infodir@/p
24466 /@localedir@/p
24467 /@mandir@/p'
24468 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24469 *datarootdir*) ac_datarootdir_seen=yes;;
24470 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24472 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24473 _ACEOF
24474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24475 ac_datarootdir_hack='
24476 s&@datadir@&$datadir&g
24477 s&@docdir@&$docdir&g
24478 s&@infodir@&$infodir&g
24479 s&@localedir@&$localedir&g
24480 s&@mandir@&$mandir&g
24481 s&\\\${datarootdir}&$datarootdir&g' ;;
24482 esac
24483 _ACEOF
24484
24485 # Neutralize VPATH when '$srcdir' = '.'.
24486 # Shell code in configure.ac might set extrasub.
24487 # FIXME: do we really want to maintain this feature?
24488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24489 ac_sed_extra="$ac_vpsub
24490 $extrasub
24491 _ACEOF
24492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24493 :t
24494 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24495 s|@configure_input@|$ac_sed_conf_input|;t t
24496 s&@top_builddir@&$ac_top_builddir_sub&;t t
24497 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24498 s&@srcdir@&$ac_srcdir&;t t
24499 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24500 s&@top_srcdir@&$ac_top_srcdir&;t t
24501 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24502 s&@builddir@&$ac_builddir&;t t
24503 s&@abs_builddir@&$ac_abs_builddir&;t t
24504 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24505 s&@INSTALL@&$ac_INSTALL&;t t
24506 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24507 $ac_datarootdir_hack
24508 "
24509 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24510 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24511
24512 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24513 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24514 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24515 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24517 which seems to be undefined. Please make sure it is defined" >&5
24518 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
24519 which seems to be undefined. Please make sure it is defined" >&2;}
24520
24521 rm -f "$ac_tmp/stdin"
24522 case $ac_file in
24523 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24524 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24525 esac \
24526 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24527 ;;
24528 :H)
24529 #
24530 # CONFIG_HEADER
24531 #
24532 if test x"$ac_file" != x-; then
24533 {
24534 printf "%s\n" "/* $configure_input */" >&1 \
24535 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24536 } >"$ac_tmp/config.h" \
24537 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24538 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24540 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24541 else
24542 rm -f "$ac_file"
24543 mv "$ac_tmp/config.h" "$ac_file" \
24544 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24545 fi
24546 else
24547 printf "%s\n" "/* $configure_input */" >&1 \
24548 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24549 || as_fn_error $? "could not create -" "$LINENO" 5
24550 fi
24551 # Compute "$ac_file"'s index in $config_headers.
24552 _am_arg="$ac_file"
24553 _am_stamp_count=1
24554 for _am_header in $config_headers :; do
24555 case $_am_header in
24556 $_am_arg | $_am_arg:* )
24557 break ;;
24558 * )
24559 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24560 esac
24561 done
24562 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24563 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24564 X"$_am_arg" : 'X\(//\)[^/]' \| \
24565 X"$_am_arg" : 'X\(//\)$' \| \
24566 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24567 printf "%s\n" X"$_am_arg" |
24568 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24569 s//\1/
24570 q
24571 }
24572 /^X\(\/\/\)[^/].*/{
24573 s//\1/
24574 q
24575 }
24576 /^X\(\/\/\)$/{
24577 s//\1/
24578 q
24579 }
24580 /^X\(\/\).*/{
24581 s//\1/
24582 q
24583 }
24584 s/.*/./; q'`/stamp-h$_am_stamp_count
24585 ;;
24586
24587 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24588 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24589 ;;
24590 esac
24591
24592
24593 case $ac_file$ac_mode in
24594 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24595 # Older Autoconf quotes --file arguments for eval, but not when files
24596 # are listed without --file. Let's play safe and only enable the eval
24597 # if we detect the quoting.
24598 # TODO: see whether this extra hack can be removed once we start
24599 # requiring Autoconf 2.70 or later.
24600 case $CONFIG_FILES in #(
24601 *\'*) :
24602 eval set x "$CONFIG_FILES" ;; #(
24603 *) :
24604 set x $CONFIG_FILES ;; #(
24605 *) :
24606 ;;
24607 esac
24608 shift
24609 # Used to flag and report bootstrapping failures.
24610 am_rc=0
24611 for am_mf
24612 do
24613 # Strip MF so we end up with the name of the file.
24614 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24615 # Check whether this is an Automake generated Makefile which includes
24616 # dependency-tracking related rules and includes.
24617 # Grep'ing the whole file directly is not great: AIX grep has a line
24618 # limit of 2048, but all sed's we know have understand at least 4000.
24619 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24620 || continue
24621 am_dirpart=`$as_dirname -- "$am_mf" ||
24622 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24623 X"$am_mf" : 'X\(//\)[^/]' \| \
24624 X"$am_mf" : 'X\(//\)$' \| \
24625 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24626 printf "%s\n" X"$am_mf" |
24627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24628 s//\1/
24629 q
24630 }
24631 /^X\(\/\/\)[^/].*/{
24632 s//\1/
24633 q
24634 }
24635 /^X\(\/\/\)$/{
24636 s//\1/
24637 q
24638 }
24639 /^X\(\/\).*/{
24640 s//\1/
24641 q
24642 }
24643 s/.*/./; q'`
24644 am_filepart=`$as_basename -- "$am_mf" ||
24645 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24646 X"$am_mf" : 'X\(//\)$' \| \
24647 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24648 printf "%s\n" X/"$am_mf" |
24649 sed '/^.*\/\([^/][^/]*\)\/*$/{
24650 s//\1/
24651 q
24652 }
24653 /^X\/\(\/\/\)$/{
24654 s//\1/
24655 q
24656 }
24657 /^X\/\(\/\).*/{
24658 s//\1/
24659 q
24660 }
24661 s/.*/./; q'`
24662 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24663 && sed -e '/# am--include-marker/d' "$am_filepart" \
24664 | $MAKE -f - am--depfiles" >&5
24665 (cd "$am_dirpart" \
24666 && sed -e '/# am--include-marker/d' "$am_filepart" \
24667 | $MAKE -f - am--depfiles) >&5 2>&5
24668 ac_status=$?
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); } || am_rc=$?
24671 done
24672 if test $am_rc -ne 0; then
24673 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
24674 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
24675 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24676 for automatic dependency tracking. If GNU make was not used, consider
24677 re-running the configure script with MAKE=\"gmake\" (or whatever is
24678 necessary). You can also try re-running configure with the
24679 '--disable-dependency-tracking' option to at least be able to build
24680 the package (albeit without support for automatic dependency tracking).
24681 See 'config.log' for more details" "$LINENO" 5; }
24682 fi
24683 { am_dirpart=; unset am_dirpart;}
24684 { am_filepart=; unset am_filepart;}
24685 { am_mf=; unset am_mf;}
24686 { am_rc=; unset am_rc;}
24687 rm -f conftest-deps.mk
24688 }
24689 ;;
24690 "libtool":C)
24691
24692 # See if we are running on zsh, and set the options that allow our
24693 # commands through without removal of \ escapes.
24694 if test -n "${ZSH_VERSION+set}"; then
24695 setopt NO_GLOB_SUBST
24696 fi
24697
24698 cfgfile=${ofile}T
24699 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24700 $RM "$cfgfile"
24701
24702 cat <<_LT_EOF >> "$cfgfile"
24703 #! $SHELL
24704 # Generated automatically by $as_me ($PACKAGE) $VERSION
24705 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24706
24707 # Provide generalized library-building support services.
24708 # Written by Gordon Matzigkeit, 1996
24709
24710 # Copyright (C) 2024 Free Software Foundation, Inc.
24711 # This is free software; see the source for copying conditions. There is NO
24712 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24713
24714 # GNU Libtool is free software; you can redistribute it and/or modify
24715 # it under the terms of the GNU General Public License as published by
24716 # the Free Software Foundation; either version 2 of the License, or
24717 # (at your option) any later version.
24718 #
24719 # As a special exception to the GNU General Public License, if you
24720 # distribute this file as part of a program or library that is built
24721 # using GNU Libtool, you may include this file under the same
24722 # distribution terms that you use for the rest of that program.
24723 #
24724 # GNU Libtool is distributed in the hope that it will be useful, but
24725 # WITHOUT ANY WARRANTY; without even the implied warranty of
24726 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24727 # GNU General Public License for more details.
24728 #
24729 # You should have received a copy of the GNU General Public License
24730 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24731
24732
24733 # The names of the tagged configurations supported by this script.
24734 available_tags='CXX '
24735
24736 # Configured defaults for sys_lib_dlsearch_path munging.
24737 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24738
24739 # ### BEGIN LIBTOOL CONFIG
24740
24741 # Which release of libtool.m4 was used?
24742 macro_version=$macro_version
24743 macro_revision=$macro_revision
24744
24745 # Assembler program.
24746 AS=$lt_AS
24747
24748 # DLL creation program.
24749 DLLTOOL=$lt_DLLTOOL
24750
24751 # Object dumper program.
24752 OBJDUMP=$lt_OBJDUMP
24753
24754 # Whether or not to build static libraries.
24755 build_old_libs=$enable_static
24756
24757 # What type of objects to build.
24758 pic_mode=$pic_mode
24759
24760 # Whether or not to build shared libraries.
24761 build_libtool_libs=$enable_shared
24762
24763 # Whether or not to optimize for fast installation.
24764 fast_install=$enable_fast_install
24765
24766 # Shared archive member basename,for filename based shared library versioning on AIX.
24767 shared_archive_member_spec=$shared_archive_member_spec
24768
24769 # Shell to use when invoking shell scripts.
24770 SHELL=$lt_SHELL
24771
24772 # An echo program that protects backslashes.
24773 ECHO=$lt_ECHO
24774
24775 # The PATH separator for the build system.
24776 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24777
24778 # The host system.
24779 host_alias=$host_alias
24780 host=$host
24781 host_os=$host_os
24782
24783 # The build system.
24784 build_alias=$build_alias
24785 build=$build
24786 build_os=$build_os
24787
24788 # A sed program that does not truncate output.
24789 SED=$lt_SED
24790
24791 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24792 Xsed="\$SED -e 1s/^X//"
24793
24794 # A grep program that handles long lines.
24795 GREP=$lt_GREP
24796
24797 # An ERE matcher.
24798 EGREP=$lt_EGREP
24799
24800 # A literal string matcher.
24801 FGREP=$lt_FGREP
24802
24803 # A BSD- or MS-compatible name lister.
24804 NM=$lt_NM
24805
24806 # Whether we need soft or hard links.
24807 LN_S=$lt_LN_S
24808
24809 # What is the maximum length of a command?
24810 max_cmd_len=$max_cmd_len
24811
24812 # Object file suffix (normally "o").
24813 objext=$ac_objext
24814
24815 # Executable file suffix (normally "").
24816 exeext=$exeext
24817
24818 # whether the shell understands "unset".
24819 lt_unset=$lt_unset
24820
24821 # turn spaces into newlines.
24822 SP2NL=$lt_lt_SP2NL
24823
24824 # turn newlines into spaces.
24825 NL2SP=$lt_lt_NL2SP
24826
24827 # convert \$build file names to \$host format.
24828 to_host_file_cmd=$lt_cv_to_host_file_cmd
24829
24830 # convert \$build files to toolchain format.
24831 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24832
24833 # A file(cmd) program that detects file types.
24834 FILECMD=$lt_FILECMD
24835
24836 # Method to check whether dependent libraries are shared objects.
24837 deplibs_check_method=$lt_deplibs_check_method
24838
24839 # Command to use when deplibs_check_method = "file_magic".
24840 file_magic_cmd=$lt_file_magic_cmd
24841
24842 # How to find potential files when deplibs_check_method = "file_magic".
24843 file_magic_glob=$lt_file_magic_glob
24844
24845 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24846 want_nocaseglob=$lt_want_nocaseglob
24847
24848 # Command to associate shared and link libraries.
24849 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24850
24851 # The archiver.
24852 AR=$lt_AR
24853
24854 # Flags to create an archive (by configure).
24855 lt_ar_flags=$lt_ar_flags
24856
24857 # Flags to create an archive.
24858 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
24859
24860 # How to feed a file listing to the archiver.
24861 archiver_list_spec=$lt_archiver_list_spec
24862
24863 # A symbol stripping program.
24864 STRIP=$lt_STRIP
24865
24866 # Commands used to install an old-style archive.
24867 RANLIB=$lt_RANLIB
24868 old_postinstall_cmds=$lt_old_postinstall_cmds
24869 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24870
24871 # Whether to use a lock for old archive extraction.
24872 lock_old_archive_extraction=$lock_old_archive_extraction
24873
24874 # A C compiler.
24875 LTCC=$lt_CC
24876
24877 # LTCC compiler flags.
24878 LTCFLAGS=$lt_CFLAGS
24879
24880 # Take the output of nm and produce a listing of raw symbols and C names.
24881 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24882
24883 # Transform the output of nm in a proper C declaration.
24884 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24885
24886 # Transform the output of nm into a list of symbols to manually relocate.
24887 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24888
24889 # Transform the output of nm in a C name address pair.
24890 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24891
24892 # Transform the output of nm in a C name address pair when lib prefix is needed.
24893 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24894
24895 # The name lister interface.
24896 nm_interface=$lt_lt_cv_nm_interface
24897
24898 # Specify filename containing input files for \$NM.
24899 nm_file_list_spec=$lt_nm_file_list_spec
24900
24901 # The root where to search for dependent libraries,and where our libraries should be installed.
24902 lt_sysroot=$lt_sysroot
24903
24904 # Command to truncate a binary pipe.
24905 lt_truncate_bin=$lt_lt_cv_truncate_bin
24906
24907 # The name of the directory that contains temporary libtool files.
24908 objdir=$objdir
24909
24910 # Used to examine libraries when file_magic_cmd begins with "file".
24911 MAGIC_CMD=$MAGIC_CMD
24912
24913 # Must we lock files when doing compilation?
24914 need_locks=$lt_need_locks
24915
24916 # Manifest tool.
24917 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24918
24919 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24920 DSYMUTIL=$lt_DSYMUTIL
24921
24922 # Tool to change global to local symbols on Mac OS X.
24923 NMEDIT=$lt_NMEDIT
24924
24925 # Tool to manipulate fat objects and archives on Mac OS X.
24926 LIPO=$lt_LIPO
24927
24928 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24929 OTOOL=$lt_OTOOL
24930
24931 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24932 OTOOL64=$lt_OTOOL64
24933
24934 # Old archive suffix (normally "a").
24935 libext=$libext
24936
24937 # Shared library suffix (normally ".so").
24938 shrext_cmds=$lt_shrext_cmds
24939
24940 # The commands to extract the exported symbol list from a shared archive.
24941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24942
24943 # Variables whose values should be saved in libtool wrapper scripts and
24944 # restored at link time.
24945 variables_saved_for_relink=$lt_variables_saved_for_relink
24946
24947 # Do we need the "lib" prefix for modules?
24948 need_lib_prefix=$need_lib_prefix
24949
24950 # Do we need a version for libraries?
24951 need_version=$need_version
24952
24953 # Library versioning type.
24954 version_type=$version_type
24955
24956 # Shared library runtime path variable.
24957 runpath_var=$runpath_var
24958
24959 # Shared library path variable.
24960 shlibpath_var=$shlibpath_var
24961
24962 # Is shlibpath searched before the hard-coded library search path?
24963 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24964
24965 # Format of library name prefix.
24966 libname_spec=$lt_libname_spec
24967
24968 # List of archive names. First name is the real one, the rest are links.
24969 # The last name is the one that the linker finds with -lNAME
24970 library_names_spec=$lt_library_names_spec
24971
24972 # The coded name of the library, if different from the real name.
24973 soname_spec=$lt_soname_spec
24974
24975 # Permission mode override for installation of shared libraries.
24976 install_override_mode=$lt_install_override_mode
24977
24978 # Command to use after installation of a shared archive.
24979 postinstall_cmds=$lt_postinstall_cmds
24980
24981 # Command to use after uninstallation of a shared archive.
24982 postuninstall_cmds=$lt_postuninstall_cmds
24983
24984 # Commands used to finish a libtool library installation in a directory.
24985 finish_cmds=$lt_finish_cmds
24986
24987 # As "finish_cmds", except a single script fragment to be evaled but
24988 # not shown.
24989 finish_eval=$lt_finish_eval
24990
24991 # Whether we should hardcode library paths into libraries.
24992 hardcode_into_libs=$hardcode_into_libs
24993
24994 # Compile-time system search path for libraries.
24995 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24996
24997 # Detected run-time system search path for libraries.
24998 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24999
25000 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25001 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25002
25003 # Whether dlopen is supported.
25004 dlopen_support=$enable_dlopen
25005
25006 # Whether dlopen of programs is supported.
25007 dlopen_self=$enable_dlopen_self
25008
25009 # Whether dlopen of statically linked programs is supported.
25010 dlopen_self_static=$enable_dlopen_self_static
25011
25012 # Commands to strip libraries.
25013 old_striplib=$lt_old_striplib
25014 striplib=$lt_striplib
25015
25016
25017 # The linker used to build libraries.
25018 LD=$lt_LD
25019
25020 # How to create reloadable object files.
25021 reload_flag=$lt_reload_flag
25022 reload_cmds=$lt_reload_cmds
25023
25024 # Commands used to build an old-style archive.
25025 old_archive_cmds=$lt_old_archive_cmds
25026
25027 # A language specific compiler.
25028 CC=$lt_compiler
25029
25030 # Is the compiler the GNU compiler?
25031 with_gcc=$GCC
25032
25033 # Compiler flag to turn off builtin functions.
25034 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25035
25036 # Additional compiler flags for building library objects.
25037 pic_flag=$lt_lt_prog_compiler_pic
25038
25039 # How to pass a linker flag through the compiler.
25040 wl=$lt_lt_prog_compiler_wl
25041
25042 # Compiler flag to prevent dynamic linking.
25043 link_static_flag=$lt_lt_prog_compiler_static
25044
25045 # Does compiler simultaneously support -c and -o options?
25046 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25047
25048 # Whether or not to add -lc for building shared libraries.
25049 build_libtool_need_lc=$archive_cmds_need_lc
25050
25051 # Whether or not to disallow shared libs when runtime libs are static.
25052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25053
25054 # Compiler flag to allow reflexive dlopens.
25055 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25056
25057 # Compiler flag to generate shared objects directly from archives.
25058 whole_archive_flag_spec=$lt_whole_archive_flag_spec
25059
25060 # Whether the compiler copes with passing no objects directly.
25061 compiler_needs_object=$lt_compiler_needs_object
25062
25063 # Create an old-style archive from a shared archive.
25064 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25065
25066 # Create a temporary old-style archive to link instead of a shared archive.
25067 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25068
25069 # Commands used to build a shared archive.
25070 archive_cmds=$lt_archive_cmds
25071 archive_expsym_cmds=$lt_archive_expsym_cmds
25072
25073 # Commands used to build a loadable module if different from building
25074 # a shared archive.
25075 module_cmds=$lt_module_cmds
25076 module_expsym_cmds=$lt_module_expsym_cmds
25077
25078 # Whether we are building with GNU ld or not.
25079 with_gnu_ld=$lt_with_gnu_ld
25080
25081 # Flag that allows shared libraries with undefined symbols to be built.
25082 allow_undefined_flag=$lt_allow_undefined_flag
25083
25084 # Flag that enforces no undefined symbols.
25085 no_undefined_flag=$lt_no_undefined_flag
25086
25087 # Flag to hardcode \$libdir into a binary during linking.
25088 # This must work even if \$libdir does not exist
25089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25090
25091 # Whether we need a single "-rpath" flag with a separated argument.
25092 hardcode_libdir_separator=$lt_hardcode_libdir_separator
25093
25094 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25095 # DIR into the resulting binary.
25096 hardcode_direct=$hardcode_direct
25097
25098 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25099 # DIR into the resulting binary and the resulting library dependency is
25100 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25101 # library is relocated.
25102 hardcode_direct_absolute=$hardcode_direct_absolute
25103
25104 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25105 # into the resulting binary.
25106 hardcode_minus_L=$hardcode_minus_L
25107
25108 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25109 # into the resulting binary.
25110 hardcode_shlibpath_var=$hardcode_shlibpath_var
25111
25112 # Set to "yes" if building a shared library automatically hardcodes DIR
25113 # into the library and all subsequent libraries and executables linked
25114 # against it.
25115 hardcode_automatic=$hardcode_automatic
25116
25117 # Set to yes if linker adds runtime paths of dependent libraries
25118 # to runtime path list.
25119 inherit_rpath=$inherit_rpath
25120
25121 # Whether libtool must link a program against all its dependency libraries.
25122 link_all_deplibs=$link_all_deplibs
25123
25124 # Set to "yes" if exported symbols are required.
25125 always_export_symbols=$always_export_symbols
25126
25127 # The commands to list exported symbols.
25128 export_symbols_cmds=$lt_export_symbols_cmds
25129
25130 # Symbols that should not be listed in the preloaded symbols.
25131 exclude_expsyms=$lt_exclude_expsyms
25132
25133 # Symbols that must always be exported.
25134 include_expsyms=$lt_include_expsyms
25135
25136 # Commands necessary for linking programs (against libraries) with templates.
25137 prelink_cmds=$lt_prelink_cmds
25138
25139 # Commands necessary for finishing linking programs.
25140 postlink_cmds=$lt_postlink_cmds
25141
25142 # Specify filename containing input files.
25143 file_list_spec=$lt_file_list_spec
25144
25145 # How to hardcode a shared library path into an executable.
25146 hardcode_action=$hardcode_action
25147
25148 # The directories searched by this compiler when creating a shared library.
25149 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25150
25151 # Dependencies to place before and after the objects being linked to
25152 # create a shared library.
25153 predep_objects=$lt_predep_objects
25154 postdep_objects=$lt_postdep_objects
25155 predeps=$lt_predeps
25156 postdeps=$lt_postdeps
25157
25158 # The library search path used internally by the compiler when linking
25159 # a shared library.
25160 compiler_lib_search_path=$lt_compiler_lib_search_path
25161
25162 # ### END LIBTOOL CONFIG
25163
25164 _LT_EOF
25165
25166 cat <<'_LT_EOF' >> "$cfgfile"
25167
25168 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25169
25170 # func_munge_path_list VARIABLE PATH
25171 # -----------------------------------
25172 # VARIABLE is name of variable containing _space_ separated list of
25173 # directories to be munged by the contents of PATH, which is string
25174 # having a format:
25175 # "DIR[:DIR]:"
25176 # string "DIR[ DIR]" will be prepended to VARIABLE
25177 # ":DIR[:DIR]"
25178 # string "DIR[ DIR]" will be appended to VARIABLE
25179 # "DIRP[:DIRP]::[DIRA:]DIRA"
25180 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25181 # "DIRA[ DIRA]" will be appended to VARIABLE
25182 # "DIR[:DIR]"
25183 # VARIABLE will be replaced by "DIR[ DIR]"
25184 func_munge_path_list ()
25185 {
25186 case x$2 in
25187 x)
25188 ;;
25189 *:)
25190 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25191 ;;
25192 x:*)
25193 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25194 ;;
25195 *::*)
25196 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25197 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25198 ;;
25199 *)
25200 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25201 ;;
25202 esac
25203 }
25204
25205
25206 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
25207 func_cc_basename ()
25208 {
25209 for cc_temp in $*""; do
25210 case $cc_temp in
25211 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25212 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25213 \-*) ;;
25214 *) break;;
25215 esac
25216 done
25217 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25218 }
25219
25220
25221 # ### END FUNCTIONS SHARED WITH CONFIGURE
25222
25223 _LT_EOF
25224
25225 case $host_os in
25226 aix3*)
25227 cat <<\_LT_EOF >> "$cfgfile"
25228 # AIX sometimes has problems with the GCC collect2 program. For some
25229 # reason, if we set the COLLECT_NAMES environment variable, the problems
25230 # vanish in a puff of smoke.
25231 if test set != "${COLLECT_NAMES+set}"; then
25232 COLLECT_NAMES=
25233 export COLLECT_NAMES
25234 fi
25235 _LT_EOF
25236 ;;
25237 esac
25238
25239
25240
25241 ltmain=$ac_aux_dir/ltmain.sh
25242
25243
25244 # We use sed instead of cat because bash on DJGPP gets confused if
25245 # if finds mixed CR/LF and LF-only lines. Since sed operates in
25246 # text mode, it properly converts lines to CR/LF. This bash problem
25247 # is reportedly fixed, but why not run on old versions too?
25248 $SED '$q' "$ltmain" >> "$cfgfile" \
25249 || (rm -f "$cfgfile"; exit 1)
25250
25251 mv -f "$cfgfile" "$ofile" ||
25252 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25253 chmod +x "$ofile"
25254
25255
25256 cat <<_LT_EOF >> "$ofile"
25257
25258 # ### BEGIN LIBTOOL TAG CONFIG: CXX
25259
25260 # The linker used to build libraries.
25261 LD=$lt_LD_CXX
25262
25263 # How to create reloadable object files.
25264 reload_flag=$lt_reload_flag_CXX
25265 reload_cmds=$lt_reload_cmds_CXX
25266
25267 # Commands used to build an old-style archive.
25268 old_archive_cmds=$lt_old_archive_cmds_CXX
25269
25270 # A language specific compiler.
25271 CC=$lt_compiler_CXX
25272
25273 # Is the compiler the GNU compiler?
25274 with_gcc=$GCC_CXX
25275
25276 # Compiler flag to turn off builtin functions.
25277 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25278
25279 # Additional compiler flags for building library objects.
25280 pic_flag=$lt_lt_prog_compiler_pic_CXX
25281
25282 # How to pass a linker flag through the compiler.
25283 wl=$lt_lt_prog_compiler_wl_CXX
25284
25285 # Compiler flag to prevent dynamic linking.
25286 link_static_flag=$lt_lt_prog_compiler_static_CXX
25287
25288 # Does compiler simultaneously support -c and -o options?
25289 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25290
25291 # Whether or not to add -lc for building shared libraries.
25292 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25293
25294 # Whether or not to disallow shared libs when runtime libs are static.
25295 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25296
25297 # Compiler flag to allow reflexive dlopens.
25298 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25299
25300 # Compiler flag to generate shared objects directly from archives.
25301 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25302
25303 # Whether the compiler copes with passing no objects directly.
25304 compiler_needs_object=$lt_compiler_needs_object_CXX
25305
25306 # Create an old-style archive from a shared archive.
25307 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25308
25309 # Create a temporary old-style archive to link instead of a shared archive.
25310 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25311
25312 # Commands used to build a shared archive.
25313 archive_cmds=$lt_archive_cmds_CXX
25314 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25315
25316 # Commands used to build a loadable module if different from building
25317 # a shared archive.
25318 module_cmds=$lt_module_cmds_CXX
25319 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25320
25321 # Whether we are building with GNU ld or not.
25322 with_gnu_ld=$lt_with_gnu_ld_CXX
25323
25324 # Flag that allows shared libraries with undefined symbols to be built.
25325 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25326
25327 # Flag that enforces no undefined symbols.
25328 no_undefined_flag=$lt_no_undefined_flag_CXX
25329
25330 # Flag to hardcode \$libdir into a binary during linking.
25331 # This must work even if \$libdir does not exist
25332 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25333
25334 # Whether we need a single "-rpath" flag with a separated argument.
25335 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25336
25337 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25338 # DIR into the resulting binary.
25339 hardcode_direct=$hardcode_direct_CXX
25340
25341 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25342 # DIR into the resulting binary and the resulting library dependency is
25343 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
25344 # library is relocated.
25345 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25346
25347 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25348 # into the resulting binary.
25349 hardcode_minus_L=$hardcode_minus_L_CXX
25350
25351 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25352 # into the resulting binary.
25353 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25354
25355 # Set to "yes" if building a shared library automatically hardcodes DIR
25356 # into the library and all subsequent libraries and executables linked
25357 # against it.
25358 hardcode_automatic=$hardcode_automatic_CXX
25359
25360 # Set to yes if linker adds runtime paths of dependent libraries
25361 # to runtime path list.
25362 inherit_rpath=$inherit_rpath_CXX
25363
25364 # Whether libtool must link a program against all its dependency libraries.
25365 link_all_deplibs=$link_all_deplibs_CXX
25366
25367 # Set to "yes" if exported symbols are required.
25368 always_export_symbols=$always_export_symbols_CXX
25369
25370 # The commands to list exported symbols.
25371 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25372
25373 # Symbols that should not be listed in the preloaded symbols.
25374 exclude_expsyms=$lt_exclude_expsyms_CXX
25375
25376 # Symbols that must always be exported.
25377 include_expsyms=$lt_include_expsyms_CXX
25378
25379 # Commands necessary for linking programs (against libraries) with templates.
25380 prelink_cmds=$lt_prelink_cmds_CXX
25381
25382 # Commands necessary for finishing linking programs.
25383 postlink_cmds=$lt_postlink_cmds_CXX
25384
25385 # Specify filename containing input files.
25386 file_list_spec=$lt_file_list_spec_CXX
25387
25388 # How to hardcode a shared library path into an executable.
25389 hardcode_action=$hardcode_action_CXX
25390
25391 # The directories searched by this compiler when creating a shared library.
25392 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25393
25394 # Dependencies to place before and after the objects being linked to
25395 # create a shared library.
25396 predep_objects=$lt_predep_objects_CXX
25397 postdep_objects=$lt_postdep_objects_CXX
25398 predeps=$lt_predeps_CXX
25399 postdeps=$lt_postdeps_CXX
25400
25401 # The library search path used internally by the compiler when linking
25402 # a shared library.
25403 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25404
25405 # ### END LIBTOOL TAG CONFIG: CXX
25406 _LT_EOF
25407
25408 ;;
25409
25410 esac
25411 done # for ac_tag
25412
25413
25414 as_fn_exit 0
25415 _ACEOF
25416 ac_clean_files=$ac_clean_files_save
25417
25418 test $ac_write_fail = 0 ||
25419 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25420
25421
25422 # configure is writing to config.log, and then calls config.status.
25423 # config.status does its own redirection, appending to config.log.
25424 # Unfortunately, on DOS this fails, as config.log is still kept open
25425 # by configure, so config.status won't be able to write to it; its
25426 # output is simply discarded. So we exec the FD to /dev/null,
25427 # effectively closing config.log, so it can be properly (re)opened and
25428 # appended to by config.status. When coming back to configure, we
25429 # need to make the FD available again.
25430 if test "$no_create" != yes; then
25431 ac_cs_success=:
25432 ac_config_status_args=
25433 test "$silent" = yes &&
25434 ac_config_status_args="$ac_config_status_args --quiet"
25435 exec 5>/dev/null
25436 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25437 exec 5>>config.log
25438 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25439 # would make configure fail if this is the last instruction.
25440 $ac_cs_success || as_fn_exit 1
25441 fi
25442 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25444 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25445 fi
25446
25447
25448 # ==============================================
25449 # Display final informations about configuration
25450 # ==============================================
25451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
25452 ==============================================================================
25453 Build configuration:
25454 debug: ${enable_debug}
25455 docs: ${build_docs}
25456 fuzzers: ${enable_fuzzers}
25457 tests: ${enable_tests}
25458 tools: ${enable_tools}
25459 werror: ${enable_werror}
25460 ==============================================================================
25461 " >&5
25462 printf "%s\n" "$as_me:
25463 ==============================================================================
25464 Build configuration:
25465 debug: ${enable_debug}
25466 docs: ${build_docs}
25467 fuzzers: ${enable_fuzzers}
25468 tests: ${enable_tests}
25469 tools: ${enable_tools}
25470 werror: ${enable_werror}
25471 ==============================================================================
25472 " >&6;}
25473