Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for SoftHSM 2.6.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='SoftHSM'
589 PACKAGE_TARNAME='softhsm'
590 PACKAGE_VERSION='2.6.1'
591 PACKAGE_STRING='SoftHSM 2.6.1'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 CXXCPP
637 LT_SYS_LIBRARY_PATH
638 OTOOL64
639 OTOOL
640 LIPO
641 NMEDIT
642 DSYMUTIL
643 MANIFEST_TOOL
644 RANLIB
645 ac_ct_AR
646 AR
647 DLLTOOL
648 OBJDUMP
649 LN_S
650 NM
651 ac_ct_DUMPBIN
652 DUMPBIN
653 LD
654 FGREP
655 SED
656 host_os
657 host_vendor
658 host_cpu
659 host
660 build_os
661 build_vendor
662 build_cpu
663 build
664 LIBTOOL
665 default_softhsm2_lib
666 default_softhsm2_conf
667 softhsmtokendir
668 CPPUNIT_LIBS
669 CPPUNIT_CFLAGS
670 CPPUNIT_CONFIG
671 WITH_P11KIT_FALSE
672 WITH_P11KIT_TRUE
673 P11KIT_PATH
674 SQLITE3_LIBS
675 SQLITE3_INCLUDES
676 SQLITE3
677 BUILD_OBJECTSTORE_BACKEND_DB_FALSE
678 BUILD_OBJECTSTORE_BACKEND_DB_TRUE
679 BUILD_MIGRATE_FALSE
680 BUILD_MIGRATE_TRUE
681 YIELD_LIB
682 WITH_BOTAN_FALSE
683 WITH_BOTAN_TRUE
684 WITH_OPENSSL_FALSE
685 WITH_OPENSSL_TRUE
686 CRYPTO_LIBS
687 CRYPTO_INCLUDES
688 WITH_EDDSA_FALSE
689 WITH_EDDSA_TRUE
690 WITH_GOST_FALSE
691 WITH_GOST_TRUE
692 WITH_ECC_FALSE
693 WITH_ECC_TRUE
694 BOTAN_VERSION_MINOR
695 BOTAN_VERSION_MAJOR
696 BOTAN_LIBS
697 BOTAN_CFLAGS
698 OPENSSL_LIBS
699 OPENSSL_INCLUDES
700 EGREP
701 GREP
702 CPP
703 HAVE_CXX11
704 PKG_CONFIG_LIBDIR
705 PKG_CONFIG_PATH
706 PKG_CONFIG
707 am__fastdepCXX_FALSE
708 am__fastdepCXX_TRUE
709 CXXDEPMODE
710 ac_ct_CXX
711 CXXFLAGS
712 CXX
713 am__fastdepCC_FALSE
714 am__fastdepCC_TRUE
715 CCDEPMODE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 am__include
721 DEPDIR
722 OBJEXT
723 EXEEXT
724 ac_ct_CC
725 CPPFLAGS
726 LDFLAGS
727 CFLAGS
728 CC
729 VERSION_INFO
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
739 AWK
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 target_alias
758 host_alias
759 build_alias
760 LIBS
761 ECHO_T
762 ECHO_N
763 ECHO_C
764 DEFS
765 mandir
766 localedir
767 libdir
768 psdir
769 pdfdir
770 dvidir
771 htmldir
772 infodir
773 docdir
774 oldincludedir
775 includedir
776 localstatedir
777 sharedstatedir
778 sysconfdir
779 datadir
780 datarootdir
781 libexecdir
782 sbindir
783 bindir
784 program_transform_name
785 prefix
786 exec_prefix
787 PACKAGE_URL
788 PACKAGE_BUGREPORT
789 PACKAGE_STRING
790 PACKAGE_VERSION
791 PACKAGE_TARNAME
792 PACKAGE_NAME
793 PATH_SEPARATOR
794 SHELL
795 am__quote'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 enable_silent_rules
800 enable_dependency_tracking
801 enable_pedantic
802 enable_strict
803 enable_64bit
804 enable_ecc
805 enable_gost
806 enable_eddsa
807 enable_fips
808 with_crypto_backend
809 with_openssl
810 with_botan
811 enable_non_paged_memory
812 with_migrate
813 with_objectstore_backend_db
814 with_sqlite3
815 enable_visibility
816 enable_p11_kit
817 with_p11_kit
818 enable_shared
819 enable_static
820 with_pic
821 enable_fast_install
822 with_aix_soname
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 '
827 ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CC
831 CFLAGS
832 LDFLAGS
833 LIBS
834 CPPFLAGS
835 CXX
836 CXXFLAGS
837 CCC
838 PKG_CONFIG
839 PKG_CONFIG_PATH
840 PKG_CONFIG_LIBDIR
841 CPP
842 BOTAN_CFLAGS
843 BOTAN_LIBS
844 CPPUNIT_CFLAGS
845 CPPUNIT_LIBS
846 LT_SYS_LIBRARY_PATH
847 CXXCPP'
848
849
850 # Initialize some variables set by options.
851 ac_init_help=
852 ac_init_version=false
853 ac_unrecognized_opts=
854 ac_unrecognized_sep=
855 # The variables have the same names as the options, with
856 # dashes changed to underlines.
857 cache_file=/dev/null
858 exec_prefix=NONE
859 no_create=
860 no_recursion=
861 prefix=NONE
862 program_prefix=NONE
863 program_suffix=NONE
864 program_transform_name=s,x,x,
865 silent=
866 site=
867 srcdir=
868 verbose=
869 x_includes=NONE
870 x_libraries=NONE
871
872 # Installation directory options.
873 # These are left unexpanded so users can "make install exec_prefix=/foo"
874 # and all the variables that are supposed to be based on exec_prefix
875 # by default will actually change.
876 # Use braces instead of parens because sh, perl, etc. also accept them.
877 # (The list follows the same order as the GNU Coding Standards.)
878 bindir='${exec_prefix}/bin'
879 sbindir='${exec_prefix}/sbin'
880 libexecdir='${exec_prefix}/libexec'
881 datarootdir='${prefix}/share'
882 datadir='${datarootdir}'
883 sysconfdir='${prefix}/etc'
884 sharedstatedir='${prefix}/com'
885 localstatedir='${prefix}/var'
886 includedir='${prefix}/include'
887 oldincludedir='/usr/include'
888 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
889 infodir='${datarootdir}/info'
890 htmldir='${docdir}'
891 dvidir='${docdir}'
892 pdfdir='${docdir}'
893 psdir='${docdir}'
894 libdir='${exec_prefix}/lib'
895 localedir='${datarootdir}/locale'
896 mandir='${datarootdir}/man'
897
898 ac_prev=
899 ac_dashdash=
900 for ac_option
901 do
902 # If the previous option needs an argument, assign it.
903 if test -n "$ac_prev"; then
904 eval $ac_prev=\$ac_option
905 ac_prev=
906 continue
907 fi
908
909 case $ac_option in
910 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
911 *=) ac_optarg= ;;
912 *) ac_optarg=yes ;;
913 esac
914
915 # Accept the important Cygnus configure options, so we can diagnose typos.
916
917 case $ac_dashdash$ac_option in
918 --)
919 ac_dashdash=yes ;;
920
921 -bindir | --bindir | --bindi | --bind | --bin | --bi)
922 ac_prev=bindir ;;
923 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
924 bindir=$ac_optarg ;;
925
926 -build | --build | --buil | --bui | --bu)
927 ac_prev=build_alias ;;
928 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
929 build_alias=$ac_optarg ;;
930
931 -cache-file | --cache-file | --cache-fil | --cache-fi \
932 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
933 ac_prev=cache_file ;;
934 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
935 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
936 cache_file=$ac_optarg ;;
937
938 --config-cache | -C)
939 cache_file=config.cache ;;
940
941 -datadir | --datadir | --datadi | --datad)
942 ac_prev=datadir ;;
943 -datadir=* | --datadir=* | --datadi=* | --datad=*)
944 datadir=$ac_optarg ;;
945
946 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
947 | --dataroo | --dataro | --datar)
948 ac_prev=datarootdir ;;
949 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
950 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
951 datarootdir=$ac_optarg ;;
952
953 -disable-* | --disable-*)
954 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
955 # Reject names that are not valid shell variable names.
956 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
957 as_fn_error $? "invalid feature name: $ac_useropt"
958 ac_useropt_orig=$ac_useropt
959 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
960 case $ac_user_opts in
961 *"
962 "enable_$ac_useropt"
963 "*) ;;
964 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
965 ac_unrecognized_sep=', ';;
966 esac
967 eval enable_$ac_useropt=no ;;
968
969 -docdir | --docdir | --docdi | --doc | --do)
970 ac_prev=docdir ;;
971 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
972 docdir=$ac_optarg ;;
973
974 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
975 ac_prev=dvidir ;;
976 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
977 dvidir=$ac_optarg ;;
978
979 -enable-* | --enable-*)
980 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
981 # Reject names that are not valid shell variable names.
982 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
983 as_fn_error $? "invalid feature name: $ac_useropt"
984 ac_useropt_orig=$ac_useropt
985 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
986 case $ac_user_opts in
987 *"
988 "enable_$ac_useropt"
989 "*) ;;
990 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
991 ac_unrecognized_sep=', ';;
992 esac
993 eval enable_$ac_useropt=\$ac_optarg ;;
994
995 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
996 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
997 | --exec | --exe | --ex)
998 ac_prev=exec_prefix ;;
999 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1000 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1001 | --exec=* | --exe=* | --ex=*)
1002 exec_prefix=$ac_optarg ;;
1003
1004 -gas | --gas | --ga | --g)
1005 # Obsolete; use --with-gas.
1006 with_gas=yes ;;
1007
1008 -help | --help | --hel | --he | -h)
1009 ac_init_help=long ;;
1010 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1011 ac_init_help=recursive ;;
1012 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1013 ac_init_help=short ;;
1014
1015 -host | --host | --hos | --ho)
1016 ac_prev=host_alias ;;
1017 -host=* | --host=* | --hos=* | --ho=*)
1018 host_alias=$ac_optarg ;;
1019
1020 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1021 ac_prev=htmldir ;;
1022 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1023 | --ht=*)
1024 htmldir=$ac_optarg ;;
1025
1026 -includedir | --includedir | --includedi | --included | --include \
1027 | --includ | --inclu | --incl | --inc)
1028 ac_prev=includedir ;;
1029 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1030 | --includ=* | --inclu=* | --incl=* | --inc=*)
1031 includedir=$ac_optarg ;;
1032
1033 -infodir | --infodir | --infodi | --infod | --info | --inf)
1034 ac_prev=infodir ;;
1035 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1036 infodir=$ac_optarg ;;
1037
1038 -libdir | --libdir | --libdi | --libd)
1039 ac_prev=libdir ;;
1040 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1041 libdir=$ac_optarg ;;
1042
1043 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1044 | --libexe | --libex | --libe)
1045 ac_prev=libexecdir ;;
1046 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1047 | --libexe=* | --libex=* | --libe=*)
1048 libexecdir=$ac_optarg ;;
1049
1050 -localedir | --localedir | --localedi | --localed | --locale)
1051 ac_prev=localedir ;;
1052 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1053 localedir=$ac_optarg ;;
1054
1055 -localstatedir | --localstatedir | --localstatedi | --localstated \
1056 | --localstate | --localstat | --localsta | --localst | --locals)
1057 ac_prev=localstatedir ;;
1058 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1059 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1060 localstatedir=$ac_optarg ;;
1061
1062 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1063 ac_prev=mandir ;;
1064 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1065 mandir=$ac_optarg ;;
1066
1067 -nfp | --nfp | --nf)
1068 # Obsolete; use --without-fp.
1069 with_fp=no ;;
1070
1071 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1072 | --no-cr | --no-c | -n)
1073 no_create=yes ;;
1074
1075 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1076 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1077 no_recursion=yes ;;
1078
1079 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1080 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1081 | --oldin | --oldi | --old | --ol | --o)
1082 ac_prev=oldincludedir ;;
1083 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1084 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1085 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1086 oldincludedir=$ac_optarg ;;
1087
1088 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1089 ac_prev=prefix ;;
1090 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1091 prefix=$ac_optarg ;;
1092
1093 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1094 | --program-pre | --program-pr | --program-p)
1095 ac_prev=program_prefix ;;
1096 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1097 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1098 program_prefix=$ac_optarg ;;
1099
1100 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1101 | --program-suf | --program-su | --program-s)
1102 ac_prev=program_suffix ;;
1103 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1104 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1105 program_suffix=$ac_optarg ;;
1106
1107 -program-transform-name | --program-transform-name \
1108 | --program-transform-nam | --program-transform-na \
1109 | --program-transform-n | --program-transform- \
1110 | --program-transform | --program-transfor \
1111 | --program-transfo | --program-transf \
1112 | --program-trans | --program-tran \
1113 | --progr-tra | --program-tr | --program-t)
1114 ac_prev=program_transform_name ;;
1115 -program-transform-name=* | --program-transform-name=* \
1116 | --program-transform-nam=* | --program-transform-na=* \
1117 | --program-transform-n=* | --program-transform-=* \
1118 | --program-transform=* | --program-transfor=* \
1119 | --program-transfo=* | --program-transf=* \
1120 | --program-trans=* | --program-tran=* \
1121 | --progr-tra=* | --program-tr=* | --program-t=*)
1122 program_transform_name=$ac_optarg ;;
1123
1124 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1125 ac_prev=pdfdir ;;
1126 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1127 pdfdir=$ac_optarg ;;
1128
1129 -psdir | --psdir | --psdi | --psd | --ps)
1130 ac_prev=psdir ;;
1131 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1132 psdir=$ac_optarg ;;
1133
1134 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1135 | -silent | --silent | --silen | --sile | --sil)
1136 silent=yes ;;
1137
1138 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1139 ac_prev=sbindir ;;
1140 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1141 | --sbi=* | --sb=*)
1142 sbindir=$ac_optarg ;;
1143
1144 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1145 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1146 | --sharedst | --shareds | --shared | --share | --shar \
1147 | --sha | --sh)
1148 ac_prev=sharedstatedir ;;
1149 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1150 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1151 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1152 | --sha=* | --sh=*)
1153 sharedstatedir=$ac_optarg ;;
1154
1155 -site | --site | --sit)
1156 ac_prev=site ;;
1157 -site=* | --site=* | --sit=*)
1158 site=$ac_optarg ;;
1159
1160 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1161 ac_prev=srcdir ;;
1162 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1163 srcdir=$ac_optarg ;;
1164
1165 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1166 | --syscon | --sysco | --sysc | --sys | --sy)
1167 ac_prev=sysconfdir ;;
1168 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1169 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1170 sysconfdir=$ac_optarg ;;
1171
1172 -target | --target | --targe | --targ | --tar | --ta | --t)
1173 ac_prev=target_alias ;;
1174 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1175 target_alias=$ac_optarg ;;
1176
1177 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1178 verbose=yes ;;
1179
1180 -version | --version | --versio | --versi | --vers | -V)
1181 ac_init_version=: ;;
1182
1183 -with-* | --with-*)
1184 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1187 as_fn_error $? "invalid package name: $ac_useropt"
1188 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in
1191 *"
1192 "with_$ac_useropt"
1193 "*) ;;
1194 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1195 ac_unrecognized_sep=', ';;
1196 esac
1197 eval with_$ac_useropt=\$ac_optarg ;;
1198
1199 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error $? "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=no ;;
1214
1215 --x)
1216 # Obsolete; use --with-x.
1217 with_x=yes ;;
1218
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1225
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1232
1233 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1234 Try \`$0 --help' for more information"
1235 ;;
1236
1237 *=*)
1238 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239 # Reject names that are not valid shell variable names.
1240 case $ac_envvar in #(
1241 '' | [0-9]* | *[!_$as_cr_alnum]* )
1242 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1243 esac
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1246
1247 *)
1248 # FIXME: should be removed in autoconf 3.0.
1249 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1253 ;;
1254
1255 esac
1256 done
1257
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 as_fn_error $? "missing argument to $ac_option"
1261 fi
1262
1263 if test -n "$ac_unrecognized_opts"; then
1264 case $enable_option_checking in
1265 no) ;;
1266 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1267 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1268 esac
1269 fi
1270
1271 # Check all directory arguments for consistency.
1272 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1273 datadir sysconfdir sharedstatedir localstatedir includedir \
1274 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1275 libdir localedir mandir
1276 do
1277 eval ac_val=\$$ac_var
1278 # Remove trailing slashes.
1279 case $ac_val in
1280 */ )
1281 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1282 eval $ac_var=\$ac_val;;
1283 esac
1284 # Be sure to have absolute directory names.
1285 case $ac_val in
1286 [\\/$]* | ?:[\\/]* ) continue;;
1287 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288 esac
1289 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1290 done
1291
1292 # There might be people who depend on the old broken behavior: `$host'
1293 # used to hold the argument of --host etc.
1294 # FIXME: To remove some day.
1295 build=$build_alias
1296 host=$host_alias
1297 target=$target_alias
1298
1299 # FIXME: To remove some day.
1300 if test "x$host_alias" != x; then
1301 if test "x$build_alias" = x; then
1302 cross_compiling=maybe
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306 fi
1307
1308 ac_tool_prefix=
1309 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311 test "$silent" = yes && exec 6>/dev/null
1312
1313
1314 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315 ac_ls_di=`ls -di .` &&
1316 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error $? "working directory cannot be determined"
1318 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error $? "pwd does not report name of working directory"
1320
1321
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
1349 srcdir=$ac_confdir
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1351 srcdir=..
1352 fi
1353 else
1354 ac_srcdir_defaulted=no
1355 fi
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1359 fi
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1363 pwd)`
1364 # When building in place, set srcdir=.
1365 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367 fi
1368 # Remove unnecessary trailing slashes from srcdir.
1369 # Double slashes in file names in object file debugging info
1370 # mess up M-x gdb in Emacs.
1371 case $srcdir in
1372 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373 esac
1374 for ac_var in $ac_precious_vars; do
1375 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_env_${ac_var}_value=\$${ac_var}
1377 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1379 done
1380
1381 #
1382 # Report the --help message.
1383 #
1384 if test "$ac_init_help" = "long"; then
1385 # Omit some internal or obsolete options to make the list less imposing.
1386 # This message is too long to be a string in the A/UX 3.1 sh.
1387 cat <<_ACEOF
1388 \`configure' configures SoftHSM 2.6.1 to adapt to many kinds of systems.
1389
1390 Usage: $0 [OPTION]... [VAR=VALUE]...
1391
1392 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1393 VAR=VALUE. See below for descriptions of some of the useful variables.
1394
1395 Defaults for the options are specified in brackets.
1396
1397 Configuration:
1398 -h, --help display this help and exit
1399 --help=short display options specific to this package
1400 --help=recursive display the short help of all the included packages
1401 -V, --version display version information and exit
1402 -q, --quiet, --silent do not print \`checking ...' messages
1403 --cache-file=FILE cache test results in FILE [disabled]
1404 -C, --config-cache alias for \`--cache-file=config.cache'
1405 -n, --no-create do not create output files
1406 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1407
1408 Installation directories:
1409 --prefix=PREFIX install architecture-independent files in PREFIX
1410 [$ac_default_prefix]
1411 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 [PREFIX]
1413
1414 By default, \`make install' will install all the files in
1415 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1416 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1417 for instance \`--prefix=\$HOME'.
1418
1419 For better control, use the options below.
1420
1421 Fine tuning of the installation directories:
1422 --bindir=DIR user executables [EPREFIX/bin]
1423 --sbindir=DIR system admin executables [EPREFIX/sbin]
1424 --libexecdir=DIR program executables [EPREFIX/libexec]
1425 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1426 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1427 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1428 --libdir=DIR object code libraries [EPREFIX/lib]
1429 --includedir=DIR C header files [PREFIX/include]
1430 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1431 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1432 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1433 --infodir=DIR info documentation [DATAROOTDIR/info]
1434 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1435 --mandir=DIR man documentation [DATAROOTDIR/man]
1436 --docdir=DIR documentation root [DATAROOTDIR/doc/softhsm]
1437 --htmldir=DIR html documentation [DOCDIR]
1438 --dvidir=DIR dvi documentation [DOCDIR]
1439 --pdfdir=DIR pdf documentation [DOCDIR]
1440 --psdir=DIR ps documentation [DOCDIR]
1441 _ACEOF
1442
1443 cat <<\_ACEOF
1444
1445 Program names:
1446 --program-prefix=PREFIX prepend PREFIX to installed program names
1447 --program-suffix=SUFFIX append SUFFIX to installed program names
1448 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1449
1450 System types:
1451 --build=BUILD configure for building on BUILD [guessed]
1452 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457 case $ac_init_help in
1458 short | recursive ) echo "Configuration of SoftHSM 2.6.1:";;
1459 esac
1460 cat <<\_ACEOF
1461
1462 Optional Features:
1463 --disable-option-checking ignore unrecognized --enable/--with options
1464 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1465 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1466 --enable-silent-rules less verbose build output (undo: "make V=1")
1467 --disable-silent-rules verbose build output (undo: "make V=0")
1468 --enable-dependency-tracking
1469 do not reject slow dependency extractors
1470 --disable-dependency-tracking
1471 speeds up one-time build
1472 --enable-pedantic enable pedantic compile mode [enabled]
1473 --enable-strict enable strict compile mode [enabled]
1474 --enable-64bit enable 64-bit compiling [disabled]
1475 --enable-ecc Enable support for ECC (default detect)
1476 --enable-gost Enable support for GOST (default detect)
1477 --enable-eddsa Enable support for EDDSA (default detect)
1478 --enable-fips Enable support for FIPS 140-2 mode (default
1479 disabled)
1480 --disable-non-paged-memory
1481 Disable non-paged memory for secure storage (default
1482 enabled)
1483 --disable-visibility disable hidden visibilty link mode [enabled]
1484 --enable-p11-kit Enable p11-kit integration (default enabled)
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490
1491 Optional Packages:
1492 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1493 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1494 --with-crypto-backend Select crypto backend (openssl|botan)
1495 --with-openssl=PATH Specify prefix of path of OpenSSL
1496 --with-botan=PATH Specify prefix of path of Botan
1497 --with-migrate Build the migration tool. Requires SQLite3.
1498 --with-objectstore-backend-db
1499 Build with object store backend database (SQLite3).
1500 --with-sqlite3=PATH Specify prefix of path of SQLite3
1501 --with-p11-kit=PATH Specify install path of the p11-kit module, will
1502 override path given by pkg-config
1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1504 both]
1505 --with-aix-soname=aix|svr4|both
1506 shared library versioning (aka "SONAME") variant to
1507 provide on AIX, [default=aix].
1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1510 compiler's sysroot if not specified).
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 CXX C++ compiler command
1521 CXXFLAGS C++ compiler flags
1522 PKG_CONFIG path to pkg-config utility
1523 PKG_CONFIG_PATH
1524 directories to add to pkg-config's search path
1525 PKG_CONFIG_LIBDIR
1526 path overriding pkg-config's built-in search path
1527 CPP C preprocessor
1528 BOTAN_CFLAGS
1529 C compiler flags for BOTAN, overriding pkg-config
1530 BOTAN_LIBS linker flags for BOTAN, overriding pkg-config
1531 CPPUNIT_CFLAGS
1532 C compiler flags for CPPUNIT, overriding pkg-config
1533 CPPUNIT_LIBS
1534 linker flags for CPPUNIT, overriding pkg-config
1535 LT_SYS_LIBRARY_PATH
1536 User-defined run-time library search path.
1537 CXXCPP C++ preprocessor
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to the package provider.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
1549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
1553 ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572 .) # We are building in place.
1573 ac_srcdir=.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1595 else
1596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1599 done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604 cat <<\_ACEOF
1605 SoftHSM configure 2.6.1
1606 generated by GNU Autoconf 2.69
1607
1608 Copyright (C) 2012 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612 exit
1613 fi
1614
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1618
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_compile
1656
1657 # ac_fn_cxx_try_compile LINENO
1658 # ----------------------------
1659 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_cxx_try_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_cxx_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684 else
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688 ac_retval=1
1689 fi
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_cxx_try_compile
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1710 ac_status=$?
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=$ac_status
1730 fi
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_try_link LINENO
1738 # -----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded.
1740 ac_fn_c_try_link ()
1741 {
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 rm -f conftest.$ac_objext conftest$ac_exeext
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>conftest.err
1752 ac_status=$?
1753 if test -s conftest.err; then
1754 grep -v '^ *+' conftest.err >conftest.er1
1755 cat conftest.er1 >&5
1756 mv -f conftest.er1 conftest.err
1757 fi
1758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759 test $ac_status = 0; } && {
1760 test -z "$ac_c_werror_flag" ||
1761 test ! -s conftest.err
1762 } && test -s conftest$ac_exeext && {
1763 test "$cross_compiling" = yes ||
1764 test -x conftest$ac_exeext
1765 }; then :
1766 ac_retval=0
1767 else
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=1
1772 fi
1773 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1774 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1775 # interfere with the next link command; also delete a directory that is
1776 # left behind by Apple's compiler. We do this before executing the actions.
1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1780
1781 } # ac_fn_c_try_link
1782
1783 # ac_fn_c_check_func LINENO FUNC VAR
1784 # ----------------------------------
1785 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1786 ac_fn_c_check_func ()
1787 {
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1790 $as_echo_n "checking for $2... " >&6; }
1791 if eval \${$3+:} false; then :
1792 $as_echo_n "(cached) " >&6
1793 else
1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1795 /* end confdefs.h. */
1796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1798 #define $2 innocuous_$2
1799
1800 /* System header to define __stub macros and hopefully few prototypes,
1801 which can conflict with char $2 (); below.
1802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1803 <limits.h> exists even on freestanding compilers. */
1804
1805 #ifdef __STDC__
1806 # include <limits.h>
1807 #else
1808 # include <assert.h>
1809 #endif
1810
1811 #undef $2
1812
1813 /* Override any GCC internal prototype to avoid an error.
1814 Use char because int might match the return type of a GCC
1815 builtin and then its argument prototype would still apply. */
1816 #ifdef __cplusplus
1817 extern "C"
1818 #endif
1819 char $2 ();
1820 /* The GNU C library defines this for functions which it implements
1821 to always fail with ENOSYS. Some functions are actually named
1822 something starting with __ and the normal name is an alias. */
1823 #if defined __stub_$2 || defined __stub___$2
1824 choke me
1825 #endif
1826
1827 int
1828 main ()
1829 {
1830 return $2 ();
1831 ;
1832 return 0;
1833 }
1834 _ACEOF
1835 if ac_fn_c_try_link "$LINENO"; then :
1836 eval "$3=yes"
1837 else
1838 eval "$3=no"
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext \
1841 conftest$ac_exeext conftest.$ac_ext
1842 fi
1843 eval ac_res=\$$3
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 $as_echo "$ac_res" >&6; }
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847
1848 } # ac_fn_c_check_func
1849
1850 # ac_fn_c_try_cpp LINENO
1851 # ----------------------
1852 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_cpp ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 if { { ac_try="$ac_cpp conftest.$ac_ext"
1857 case "(($ac_try" in
1858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1859 *) ac_try_echo=$ac_try;;
1860 esac
1861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1862 $as_echo "$ac_try_echo"; } >&5
1863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1864 ac_status=$?
1865 if test -s conftest.err; then
1866 grep -v '^ *+' conftest.err >conftest.er1
1867 cat conftest.er1 >&5
1868 mv -f conftest.er1 conftest.err
1869 fi
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } > conftest.i && {
1872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1873 test ! -s conftest.err
1874 }; then :
1875 ac_retval=0
1876 else
1877 $as_echo "$as_me: failed program was:" >&5
1878 sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881 fi
1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883 as_fn_set_status $ac_retval
1884
1885 } # ac_fn_c_try_cpp
1886
1887 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1888 # -------------------------------------------------------
1889 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1890 # the include files in INCLUDES and setting the cache variable VAR
1891 # accordingly.
1892 ac_fn_c_check_header_mongrel ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if eval \${$3+:} false; then :
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897 $as_echo_n "checking for $2... " >&6; }
1898 if eval \${$3+:} false; then :
1899 $as_echo_n "(cached) " >&6
1900 fi
1901 eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 else
1905 # Is the header compilable?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1907 $as_echo_n "checking $2 usability... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h. */
1910 $4
1911 #include <$2>
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914 ac_header_compiler=yes
1915 else
1916 ac_header_compiler=no
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1920 $as_echo "$ac_header_compiler" >&6; }
1921
1922 # Is the header present?
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1924 $as_echo_n "checking $2 presence... " >&6; }
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1927 #include <$2>
1928 _ACEOF
1929 if ac_fn_c_try_cpp "$LINENO"; then :
1930 ac_header_preproc=yes
1931 else
1932 ac_header_preproc=no
1933 fi
1934 rm -f conftest.err conftest.i conftest.$ac_ext
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1936 $as_echo "$ac_header_preproc" >&6; }
1937
1938 # So? What about this header?
1939 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1940 yes:no: )
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1942 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1944 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1945 ;;
1946 no:yes:* )
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1948 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1950 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1952 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1954 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 ;;
1958 esac
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1960 $as_echo_n "checking for $2... " >&6; }
1961 if eval \${$3+:} false; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 eval "$3=\$ac_header_compiler"
1965 fi
1966 eval ac_res=\$$3
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968 $as_echo "$ac_res" >&6; }
1969 fi
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971
1972 } # ac_fn_c_check_header_mongrel
1973
1974 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1975 # -------------------------------------------------------
1976 # Tests whether HEADER exists and can be compiled using the include files in
1977 # INCLUDES, setting the cache variable VAR accordingly.
1978 ac_fn_c_check_header_compile ()
1979 {
1980 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1985 else
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 $4
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 eval "$3=yes"
1993 else
1994 eval "$3=no"
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_header_compile
2004
2005 # ac_fn_cxx_try_link LINENO
2006 # -------------------------
2007 # Try to link conftest.$ac_ext, and return whether this succeeded.
2008 ac_fn_cxx_try_link ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 rm -f conftest.$ac_objext conftest$ac_exeext
2012 if { { ac_try="$ac_link"
2013 case "(($ac_try" in
2014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2015 *) ac_try_echo=$ac_try;;
2016 esac
2017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2018 $as_echo "$ac_try_echo"; } >&5
2019 (eval "$ac_link") 2>conftest.err
2020 ac_status=$?
2021 if test -s conftest.err; then
2022 grep -v '^ *+' conftest.err >conftest.er1
2023 cat conftest.er1 >&5
2024 mv -f conftest.er1 conftest.err
2025 fi
2026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2027 test $ac_status = 0; } && {
2028 test -z "$ac_cxx_werror_flag" ||
2029 test ! -s conftest.err
2030 } && test -s conftest$ac_exeext && {
2031 test "$cross_compiling" = yes ||
2032 test -x conftest$ac_exeext
2033 }; then :
2034 ac_retval=0
2035 else
2036 $as_echo "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2038
2039 ac_retval=1
2040 fi
2041 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2042 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2043 # interfere with the next link command; also delete a directory that is
2044 # left behind by Apple's compiler. We do this before executing the actions.
2045 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2046 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2047 as_fn_set_status $ac_retval
2048
2049 } # ac_fn_cxx_try_link
2050
2051 # ac_fn_cxx_try_run LINENO
2052 # ------------------------
2053 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2054 # that executables *can* be run.
2055 ac_fn_cxx_try_run ()
2056 {
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 if { { ac_try="$ac_link"
2059 case "(($ac_try" in
2060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2061 *) ac_try_echo=$ac_try;;
2062 esac
2063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2064 $as_echo "$ac_try_echo"; } >&5
2065 (eval "$ac_link") 2>&5
2066 ac_status=$?
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2069 { { case "(($ac_try" in
2070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2071 *) ac_try_echo=$ac_try;;
2072 esac
2073 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2074 $as_echo "$ac_try_echo"; } >&5
2075 (eval "$ac_try") 2>&5
2076 ac_status=$?
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078 test $ac_status = 0; }; }; then :
2079 ac_retval=0
2080 else
2081 $as_echo "$as_me: program exited with status $ac_status" >&5
2082 $as_echo "$as_me: failed program was:" >&5
2083 sed 's/^/| /' conftest.$ac_ext >&5
2084
2085 ac_retval=$ac_status
2086 fi
2087 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 as_fn_set_status $ac_retval
2090
2091 } # ac_fn_cxx_try_run
2092
2093 # ac_fn_cxx_try_cpp LINENO
2094 # ------------------------
2095 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2096 ac_fn_cxx_try_cpp ()
2097 {
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 if { { ac_try="$ac_cpp conftest.$ac_ext"
2100 case "(($ac_try" in
2101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2102 *) ac_try_echo=$ac_try;;
2103 esac
2104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2105 $as_echo "$ac_try_echo"; } >&5
2106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2107 ac_status=$?
2108 if test -s conftest.err; then
2109 grep -v '^ *+' conftest.err >conftest.er1
2110 cat conftest.er1 >&5
2111 mv -f conftest.er1 conftest.err
2112 fi
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; } > conftest.i && {
2115 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2116 test ! -s conftest.err
2117 }; then :
2118 ac_retval=0
2119 else
2120 $as_echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2122
2123 ac_retval=1
2124 fi
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 as_fn_set_status $ac_retval
2127
2128 } # ac_fn_cxx_try_cpp
2129 cat >config.log <<_ACEOF
2130 This file contains any messages produced by compilers while
2131 running configure, to aid debugging if configure makes a mistake.
2132
2133 It was created by SoftHSM $as_me 2.6.1, which was
2134 generated by GNU Autoconf 2.69. Invocation command line was
2135
2136 $ $0 $@
2137
2138 _ACEOF
2139 exec 5>>config.log
2140 {
2141 cat <<_ASUNAME
2142 ## --------- ##
2143 ## Platform. ##
2144 ## --------- ##
2145
2146 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2147 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2148 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2149 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2150 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151
2152 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2153 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2154
2155 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2156 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2157 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2158 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2159 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2160 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2161 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2162
2163 _ASUNAME
2164
2165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 for as_dir in $PATH
2167 do
2168 IFS=$as_save_IFS
2169 test -z "$as_dir" && as_dir=.
2170 $as_echo "PATH: $as_dir"
2171 done
2172 IFS=$as_save_IFS
2173
2174 } >&5
2175
2176 cat >&5 <<_ACEOF
2177
2178
2179 ## ----------- ##
2180 ## Core tests. ##
2181 ## ----------- ##
2182
2183 _ACEOF
2184
2185
2186 # Keep a trace of the command line.
2187 # Strip out --no-create and --no-recursion so they do not pile up.
2188 # Strip out --silent because we don't want to record it for future runs.
2189 # Also quote any args containing shell meta-characters.
2190 # Make two passes to allow for proper duplicate-argument suppression.
2191 ac_configure_args=
2192 ac_configure_args0=
2193 ac_configure_args1=
2194 ac_must_keep_next=false
2195 for ac_pass in 1 2
2196 do
2197 for ac_arg
2198 do
2199 case $ac_arg in
2200 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2201 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2202 | -silent | --silent | --silen | --sile | --sil)
2203 continue ;;
2204 *\'*)
2205 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2206 esac
2207 case $ac_pass in
2208 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2209 2)
2210 as_fn_append ac_configure_args1 " '$ac_arg'"
2211 if test $ac_must_keep_next = true; then
2212 ac_must_keep_next=false # Got value, back to normal.
2213 else
2214 case $ac_arg in
2215 *=* | --config-cache | -C | -disable-* | --disable-* \
2216 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2217 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2218 | -with-* | --with-* | -without-* | --without-* | --x)
2219 case "$ac_configure_args0 " in
2220 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2221 esac
2222 ;;
2223 -* ) ac_must_keep_next=true ;;
2224 esac
2225 fi
2226 as_fn_append ac_configure_args " '$ac_arg'"
2227 ;;
2228 esac
2229 done
2230 done
2231 { ac_configure_args0=; unset ac_configure_args0;}
2232 { ac_configure_args1=; unset ac_configure_args1;}
2233
2234 # When interrupted or exit'd, cleanup temporary files, and complete
2235 # config.log. We remove comments because anyway the quotes in there
2236 # would cause problems or look ugly.
2237 # WARNING: Use '\'' to represent an apostrophe within the trap.
2238 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2239 trap 'exit_status=$?
2240 # Save into config.log some information that might help in debugging.
2241 {
2242 echo
2243
2244 $as_echo "## ---------------- ##
2245 ## Cache variables. ##
2246 ## ---------------- ##"
2247 echo
2248 # The following way of writing the cache mishandles newlines in values,
2249 (
2250 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2251 eval ac_val=\$$ac_var
2252 case $ac_val in #(
2253 *${as_nl}*)
2254 case $ac_var in #(
2255 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2256 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2257 esac
2258 case $ac_var in #(
2259 _ | IFS | as_nl) ;; #(
2260 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2261 *) { eval $ac_var=; unset $ac_var;} ;;
2262 esac ;;
2263 esac
2264 done
2265 (set) 2>&1 |
2266 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2267 *${as_nl}ac_space=\ *)
2268 sed -n \
2269 "s/'\''/'\''\\\\'\'''\''/g;
2270 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2271 ;; #(
2272 *)
2273 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2274 ;;
2275 esac |
2276 sort
2277 )
2278 echo
2279
2280 $as_echo "## ----------------- ##
2281 ## Output variables. ##
2282 ## ----------------- ##"
2283 echo
2284 for ac_var in $ac_subst_vars
2285 do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in
2288 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2289 esac
2290 $as_echo "$ac_var='\''$ac_val'\''"
2291 done | sort
2292 echo
2293
2294 if test -n "$ac_subst_files"; then
2295 $as_echo "## ------------------- ##
2296 ## File substitutions. ##
2297 ## ------------------- ##"
2298 echo
2299 for ac_var in $ac_subst_files
2300 do
2301 eval ac_val=\$$ac_var
2302 case $ac_val in
2303 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2304 esac
2305 $as_echo "$ac_var='\''$ac_val'\''"
2306 done | sort
2307 echo
2308 fi
2309
2310 if test -s confdefs.h; then
2311 $as_echo "## ----------- ##
2312 ## confdefs.h. ##
2313 ## ----------- ##"
2314 echo
2315 cat confdefs.h
2316 echo
2317 fi
2318 test "$ac_signal" != 0 &&
2319 $as_echo "$as_me: caught signal $ac_signal"
2320 $as_echo "$as_me: exit $exit_status"
2321 } >&5
2322 rm -f core *.core core.conftest.* &&
2323 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2324 exit $exit_status
2325 ' 0
2326 for ac_signal in 1 2 13 15; do
2327 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2328 done
2329 ac_signal=0
2330
2331 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2332 rm -f -r conftest* confdefs.h
2333
2334 $as_echo "/* confdefs.h */" > confdefs.h
2335
2336 # Predefined preprocessor variables.
2337
2338 cat >>confdefs.h <<_ACEOF
2339 #define PACKAGE_NAME "$PACKAGE_NAME"
2340 _ACEOF
2341
2342 cat >>confdefs.h <<_ACEOF
2343 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2344 _ACEOF
2345
2346 cat >>confdefs.h <<_ACEOF
2347 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2348 _ACEOF
2349
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_STRING "$PACKAGE_STRING"
2352 _ACEOF
2353
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2356 _ACEOF
2357
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_URL "$PACKAGE_URL"
2360 _ACEOF
2361
2362
2363 # Let the site file select an alternate cache file if it wants to.
2364 # Prefer an explicitly selected file to automatically selected ones.
2365 ac_site_file1=NONE
2366 ac_site_file2=NONE
2367 if test -n "$CONFIG_SITE"; then
2368 # We do not want a PATH search for config.site.
2369 case $CONFIG_SITE in #((
2370 -*) ac_site_file1=./$CONFIG_SITE;;
2371 */*) ac_site_file1=$CONFIG_SITE;;
2372 *) ac_site_file1=./$CONFIG_SITE;;
2373 esac
2374 elif test "x$prefix" != xNONE; then
2375 ac_site_file1=$prefix/share/config.site
2376 ac_site_file2=$prefix/etc/config.site
2377 else
2378 ac_site_file1=$ac_default_prefix/share/config.site
2379 ac_site_file2=$ac_default_prefix/etc/config.site
2380 fi
2381 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2382 do
2383 test "x$ac_site_file" = xNONE && continue
2384 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2386 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2387 sed 's/^/| /' "$ac_site_file" >&5
2388 . "$ac_site_file" \
2389 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2391 as_fn_error $? "failed to load site script $ac_site_file
2392 See \`config.log' for more details" "$LINENO" 5; }
2393 fi
2394 done
2395
2396 if test -r "$cache_file"; then
2397 # Some versions of bash will fail to source /dev/null (special files
2398 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2399 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2401 $as_echo "$as_me: loading cache $cache_file" >&6;}
2402 case $cache_file in
2403 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2404 *) . "./$cache_file";;
2405 esac
2406 fi
2407 else
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2409 $as_echo "$as_me: creating cache $cache_file" >&6;}
2410 >$cache_file
2411 fi
2412
2413 # Check that the precious variables saved in the cache have kept the same
2414 # value.
2415 ac_cache_corrupted=false
2416 for ac_var in $ac_precious_vars; do
2417 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2418 eval ac_new_set=\$ac_env_${ac_var}_set
2419 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2420 eval ac_new_val=\$ac_env_${ac_var}_value
2421 case $ac_old_set,$ac_new_set in
2422 set,)
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2424 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2425 ac_cache_corrupted=: ;;
2426 ,set)
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2428 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2429 ac_cache_corrupted=: ;;
2430 ,);;
2431 *)
2432 if test "x$ac_old_val" != "x$ac_new_val"; then
2433 # differences in whitespace do not lead to failure.
2434 ac_old_val_w=`echo x $ac_old_val`
2435 ac_new_val_w=`echo x $ac_new_val`
2436 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2438 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2439 ac_cache_corrupted=:
2440 else
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2442 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2443 eval $ac_var=\$ac_old_val
2444 fi
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2446 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2448 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2449 fi;;
2450 esac
2451 # Pass precious variables to config.status.
2452 if test "$ac_new_set" = set; then
2453 case $ac_new_val in
2454 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2455 *) ac_arg=$ac_var=$ac_new_val ;;
2456 esac
2457 case " $ac_configure_args " in
2458 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2459 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2460 esac
2461 fi
2462 done
2463 if $ac_cache_corrupted; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2467 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2468 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2469 fi
2470 ## -------------------- ##
2471 ## Main body of script. ##
2472 ## -------------------- ##
2473
2474 ac_ext=c
2475 ac_cpp='$CPP $CPPFLAGS'
2476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2479
2480
2481 ac_config_headers="$ac_config_headers config.h"
2482
2483
2484
2485 am__api_version='1.16'
2486
2487 ac_aux_dir=
2488 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2489 if test -f "$ac_dir/install-sh"; then
2490 ac_aux_dir=$ac_dir
2491 ac_install_sh="$ac_aux_dir/install-sh -c"
2492 break
2493 elif test -f "$ac_dir/install.sh"; then
2494 ac_aux_dir=$ac_dir
2495 ac_install_sh="$ac_aux_dir/install.sh -c"
2496 break
2497 elif test -f "$ac_dir/shtool"; then
2498 ac_aux_dir=$ac_dir
2499 ac_install_sh="$ac_aux_dir/shtool install -c"
2500 break
2501 fi
2502 done
2503 if test -z "$ac_aux_dir"; then
2504 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2505 fi
2506
2507 # These three variables are undocumented and unsupported,
2508 # and are intended to be withdrawn in a future Autoconf release.
2509 # They can cause serious problems if a builder's source tree is in a directory
2510 # whose full name contains unusual characters.
2511 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2512 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2513 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2514
2515
2516 # Find a good install program. We prefer a C program (faster),
2517 # so one script is as good as another. But avoid the broken or
2518 # incompatible versions:
2519 # SysV /etc/install, /usr/sbin/install
2520 # SunOS /usr/etc/install
2521 # IRIX /sbin/install
2522 # AIX /bin/install
2523 # AmigaOS /C/install, which installs bootblocks on floppy discs
2524 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2525 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2526 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2527 # OS/2's system install, which has a completely different semantic
2528 # ./install, which can be erroneously created by make from ./install.sh.
2529 # Reject install programs that cannot install multiple files.
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2531 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2532 if test -z "$INSTALL"; then
2533 if ${ac_cv_path_install+:} false; then :
2534 $as_echo_n "(cached) " >&6
2535 else
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537 for as_dir in $PATH
2538 do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 # Account for people who put trailing slashes in PATH elements.
2542 case $as_dir/ in #((
2543 ./ | .// | /[cC]/* | \
2544 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2545 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2546 /usr/ucb/* ) ;;
2547 *)
2548 # OSF1 and SCO ODT 3.0 have their own names for install.
2549 # Don't use installbsd from OSF since it installs stuff as root
2550 # by default.
2551 for ac_prog in ginstall scoinst install; do
2552 for ac_exec_ext in '' $ac_executable_extensions; do
2553 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2554 if test $ac_prog = install &&
2555 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2556 # AIX install. It has an incompatible calling convention.
2557 :
2558 elif test $ac_prog = install &&
2559 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2560 # program-specific install script used by HP pwplus--don't use.
2561 :
2562 else
2563 rm -rf conftest.one conftest.two conftest.dir
2564 echo one > conftest.one
2565 echo two > conftest.two
2566 mkdir conftest.dir
2567 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2568 test -s conftest.one && test -s conftest.two &&
2569 test -s conftest.dir/conftest.one &&
2570 test -s conftest.dir/conftest.two
2571 then
2572 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2573 break 3
2574 fi
2575 fi
2576 fi
2577 done
2578 done
2579 ;;
2580 esac
2581
2582 done
2583 IFS=$as_save_IFS
2584
2585 rm -rf conftest.one conftest.two conftest.dir
2586
2587 fi
2588 if test "${ac_cv_path_install+set}" = set; then
2589 INSTALL=$ac_cv_path_install
2590 else
2591 # As a last resort, use the slow shell script. Don't cache a
2592 # value for INSTALL within a source directory, because that will
2593 # break other packages using the cache if that directory is
2594 # removed, or if the value is a relative name.
2595 INSTALL=$ac_install_sh
2596 fi
2597 fi
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2599 $as_echo "$INSTALL" >&6; }
2600
2601 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2602 # It thinks the first close brace ends the variable substitution.
2603 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2604
2605 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2606
2607 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2608
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2610 $as_echo_n "checking whether build environment is sane... " >&6; }
2611 # Reject unsafe characters in $srcdir or the absolute working directory
2612 # name. Accept space and tab only in the latter.
2613 am_lf='
2614 '
2615 case `pwd` in
2616 *[\\\"\#\$\&\'\`$am_lf]*)
2617 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2618 esac
2619 case $srcdir in
2620 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2621 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2622 esac
2623
2624 # Do 'set' in a subshell so we don't clobber the current shell's
2625 # arguments. Must try -L first in case configure is actually a
2626 # symlink; some systems play weird games with the mod time of symlinks
2627 # (eg FreeBSD returns the mod time of the symlink's containing
2628 # directory).
2629 if (
2630 am_has_slept=no
2631 for am_try in 1 2; do
2632 echo "timestamp, slept: $am_has_slept" > conftest.file
2633 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2634 if test "$*" = "X"; then
2635 # -L didn't work.
2636 set X `ls -t "$srcdir/configure" conftest.file`
2637 fi
2638 if test "$*" != "X $srcdir/configure conftest.file" \
2639 && test "$*" != "X conftest.file $srcdir/configure"; then
2640
2641 # If neither matched, then we have a broken ls. This can happen
2642 # if, for instance, CONFIG_SHELL is bash and it inherits a
2643 # broken ls alias from the environment. This has actually
2644 # happened. Such a system could not be considered "sane".
2645 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2646 alias in your environment" "$LINENO" 5
2647 fi
2648 if test "$2" = conftest.file || test $am_try -eq 2; then
2649 break
2650 fi
2651 # Just in case.
2652 sleep 1
2653 am_has_slept=yes
2654 done
2655 test "$2" = conftest.file
2656 )
2657 then
2658 # Ok.
2659 :
2660 else
2661 as_fn_error $? "newly created file is older than distributed files!
2662 Check your system clock" "$LINENO" 5
2663 fi
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2665 $as_echo "yes" >&6; }
2666 # If we didn't sleep, we still need to ensure time stamps of config.status and
2667 # generated files are strictly newer.
2668 am_sleep_pid=
2669 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2670 ( sleep 1 ) &
2671 am_sleep_pid=$!
2672 fi
2673
2674 rm -f conftest.file
2675
2676 test "$program_prefix" != NONE &&
2677 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2678 # Use a double $ so make ignores it.
2679 test "$program_suffix" != NONE &&
2680 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2681 # Double any \ or $.
2682 # By default was `s,x,x', remove it if useless.
2683 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2684 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2685
2686 # Expand $ac_aux_dir to an absolute path.
2687 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2688
2689 if test x"${MISSING+set}" != xset; then
2690 case $am_aux_dir in
2691 *\ * | *\ *)
2692 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2693 *)
2694 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2695 esac
2696 fi
2697 # Use eval to expand $SHELL
2698 if eval "$MISSING --is-lightweight"; then
2699 am_missing_run="$MISSING "
2700 else
2701 am_missing_run=
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2703 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2704 fi
2705
2706 if test x"${install_sh+set}" != xset; then
2707 case $am_aux_dir in
2708 *\ * | *\ *)
2709 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2710 *)
2711 install_sh="\${SHELL} $am_aux_dir/install-sh"
2712 esac
2713 fi
2714
2715 # Installed binaries are usually stripped using 'strip' when the user
2716 # run "make install-strip". However 'strip' might not be the right
2717 # tool to use in cross-compilation environments, therefore Automake
2718 # will honor the 'STRIP' environment variable to overrule this program.
2719 if test "$cross_compiling" != no; then
2720 if test -n "$ac_tool_prefix"; then
2721 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2722 set dummy ${ac_tool_prefix}strip; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_STRIP+:} false; then :
2726 $as_echo_n "(cached) " >&6
2727 else
2728 if test -n "$STRIP"; then
2729 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2730 else
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 for as_dir in $PATH
2733 do
2734 IFS=$as_save_IFS
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2738 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 break 2
2741 fi
2742 done
2743 done
2744 IFS=$as_save_IFS
2745
2746 fi
2747 fi
2748 STRIP=$ac_cv_prog_STRIP
2749 if test -n "$STRIP"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2751 $as_echo "$STRIP" >&6; }
2752 else
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2755 fi
2756
2757
2758 fi
2759 if test -z "$ac_cv_prog_STRIP"; then
2760 ac_ct_STRIP=$STRIP
2761 # Extract the first word of "strip", so it can be a program name with args.
2762 set dummy strip; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767 else
2768 if test -n "$ac_ct_STRIP"; then
2769 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2770 else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778 ac_cv_prog_ac_ct_STRIP="strip"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 fi
2787 fi
2788 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2789 if test -n "$ac_ct_STRIP"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2791 $as_echo "$ac_ct_STRIP" >&6; }
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797 if test "x$ac_ct_STRIP" = x; then
2798 STRIP=":"
2799 else
2800 case $cross_compiling:$ac_tool_warned in
2801 yes:)
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2804 ac_tool_warned=yes ;;
2805 esac
2806 STRIP=$ac_ct_STRIP
2807 fi
2808 else
2809 STRIP="$ac_cv_prog_STRIP"
2810 fi
2811
2812 fi
2813 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2814
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2816 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2817 if test -z "$MKDIR_P"; then
2818 if ${ac_cv_path_mkdir+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_prog in mkdir gmkdir; do
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2829 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2830 'mkdir (GNU coreutils) '* | \
2831 'mkdir (coreutils) '* | \
2832 'mkdir (fileutils) '4.1*)
2833 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2834 break 3;;
2835 esac
2836 done
2837 done
2838 done
2839 IFS=$as_save_IFS
2840
2841 fi
2842
2843 test -d ./--version && rmdir ./--version
2844 if test "${ac_cv_path_mkdir+set}" = set; then
2845 MKDIR_P="$ac_cv_path_mkdir -p"
2846 else
2847 # As a last resort, use the slow shell script. Don't cache a
2848 # value for MKDIR_P within a source directory, because that will
2849 # break other packages using the cache if that directory is
2850 # removed, or if the value is a relative name.
2851 MKDIR_P="$ac_install_sh -d"
2852 fi
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2855 $as_echo "$MKDIR_P" >&6; }
2856
2857 for ac_prog in gawk mawk nawk awk
2858 do
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 $as_echo_n "checking for $ac_word... " >&6; }
2863 if ${ac_cv_prog_AWK+:} false; then :
2864 $as_echo_n "(cached) " >&6
2865 else
2866 if test -n "$AWK"; then
2867 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2876 ac_cv_prog_AWK="$ac_prog"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 AWK=$ac_cv_prog_AWK
2887 if test -n "$AWK"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2889 $as_echo "$AWK" >&6; }
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892 $as_echo "no" >&6; }
2893 fi
2894
2895
2896 test -n "$AWK" && break
2897 done
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2900 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2901 set x ${MAKE-make}
2902 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2903 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2904 $as_echo_n "(cached) " >&6
2905 else
2906 cat >conftest.make <<\_ACEOF
2907 SHELL = /bin/sh
2908 all:
2909 @echo '@@@%%%=$(MAKE)=@@@%%%'
2910 _ACEOF
2911 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2912 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2913 *@@@%%%=?*=@@@%%%*)
2914 eval ac_cv_prog_make_${ac_make}_set=yes;;
2915 *)
2916 eval ac_cv_prog_make_${ac_make}_set=no;;
2917 esac
2918 rm -f conftest.make
2919 fi
2920 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2922 $as_echo "yes" >&6; }
2923 SET_MAKE=
2924 else
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 SET_MAKE="MAKE=${MAKE-make}"
2928 fi
2929
2930 rm -rf .tst 2>/dev/null
2931 mkdir .tst 2>/dev/null
2932 if test -d .tst; then
2933 am__leading_dot=.
2934 else
2935 am__leading_dot=_
2936 fi
2937 rmdir .tst 2>/dev/null
2938
2939 # Check whether --enable-silent-rules was given.
2940 if test "${enable_silent_rules+set}" = set; then :
2941 enableval=$enable_silent_rules;
2942 fi
2943
2944 case $enable_silent_rules in # (((
2945 yes) AM_DEFAULT_VERBOSITY=0;;
2946 no) AM_DEFAULT_VERBOSITY=1;;
2947 *) AM_DEFAULT_VERBOSITY=1;;
2948 esac
2949 am_make=${MAKE-make}
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2951 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2952 if ${am_cv_make_support_nested_variables+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if $as_echo 'TRUE=$(BAR$(V))
2956 BAR0=false
2957 BAR1=true
2958 V=1
2959 am__doit:
2960 @$(TRUE)
2961 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2962 am_cv_make_support_nested_variables=yes
2963 else
2964 am_cv_make_support_nested_variables=no
2965 fi
2966 fi
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2968 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2969 if test $am_cv_make_support_nested_variables = yes; then
2970 AM_V='$(V)'
2971 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2972 else
2973 AM_V=$AM_DEFAULT_VERBOSITY
2974 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2975 fi
2976 AM_BACKSLASH='\'
2977
2978 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2979 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2980 # is not polluted with repeated "-I."
2981 am__isrc=' -I$(srcdir)'
2982 # test to see if srcdir already configured
2983 if test -f $srcdir/config.status; then
2984 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2985 fi
2986 fi
2987
2988 # test whether we have cygpath
2989 if test -z "$CYGPATH_W"; then
2990 if (cygpath --version) >/dev/null 2>/dev/null; then
2991 CYGPATH_W='cygpath -w'
2992 else
2993 CYGPATH_W=echo
2994 fi
2995 fi
2996
2997
2998 # Define the identity of the package.
2999 PACKAGE='softhsm'
3000 VERSION='2.6.1'
3001
3002
3003 cat >>confdefs.h <<_ACEOF
3004 #define PACKAGE "$PACKAGE"
3005 _ACEOF
3006
3007
3008 cat >>confdefs.h <<_ACEOF
3009 #define VERSION "$VERSION"
3010 _ACEOF
3011
3012 # Some tools Automake needs.
3013
3014 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3015
3016
3017 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3018
3019
3020 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3021
3022
3023 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3024
3025
3026 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3027
3028 # For better backward compatibility. To be removed once Automake 1.9.x
3029 # dies out for good. For more background, see:
3030 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3031 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3032 mkdir_p='$(MKDIR_P)'
3033
3034 # We need awk for the "check" target (and possibly the TAP driver). The
3035 # system "awk" is bad on some platforms.
3036 # Always define AMTAR for backward compatibility. Yes, it's still used
3037 # in the wild :-( We should find a proper way to deprecate it ...
3038 AMTAR='$${TAR-tar}'
3039
3040
3041 # We'll loop over all known methods to create a tar archive until one works.
3042 _am_tools='gnutar pax cpio none'
3043
3044 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3045
3046
3047
3048
3049
3050
3051 # POSIX will say in a future version that running "rm -f" with no argument
3052 # is OK; and we want to be able to make that assumption in our Makefile
3053 # recipes. So use an aggressive probe to check that the usage we want is
3054 # actually supported "in the wild" to an acceptable degree.
3055 # See automake bug#10828.
3056 # To make any issue more visible, cause the running configure to be aborted
3057 # by default if the 'rm' program in use doesn't match our expectations; the
3058 # user can still override this though.
3059 if rm -f && rm -fr && rm -rf; then : OK; else
3060 cat >&2 <<'END'
3061 Oops!
3062
3063 Your 'rm' program seems unable to run without file operands specified
3064 on the command line, even when the '-f' option is present. This is contrary
3065 to the behaviour of most rm programs out there, and not conforming with
3066 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3067
3068 Please tell [email protected] about your system, including the value
3069 of your $PATH and any error possibly output before this message. This
3070 can help us improve future automake versions.
3071
3072 END
3073 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3074 echo 'Configuration will proceed anyway, since you have set the' >&2
3075 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3076 echo >&2
3077 else
3078 cat >&2 <<'END'
3079 Aborting the configuration process, to ensure you take notice of the issue.
3080
3081 You can download and install GNU coreutils to get an 'rm' implementation
3082 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3083
3084 If you want to complete the configuration process using your problematic
3085 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3086 to "yes", and re-run configure.
3087
3088 END
3089 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3090 fi
3091 fi
3092
3093
3094 case "$prefix" in
3095 NONE)
3096 case "$sysconfdir" in
3097 '${prefix}/etc')
3098 sysconfdir=/etc
3099 ac_configure_args="$ac_configure_args --sysconfdir=$sysconfdir"
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: sysconfdir set to $sysconfdir" >&5
3101 $as_echo "$as_me: sysconfdir set to $sysconfdir" >&6;}
3102 ;;
3103 esac
3104 case "$localstatedir" in
3105 '${prefix}/var')
3106 localstatedir=/var
3107 ac_configure_args="$ac_configure_args --localstatedir=$localstatedir"
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: localstate set to $localstatedir" >&5
3109 $as_echo "$as_me: localstate set to $localstatedir" >&6;}
3110 ;;
3111 esac
3112 ;;
3113 esac
3114
3115
3116 # Version info for the library
3117 VERSION_INFO="2:5:1"
3118
3119
3120 # Checks for compilers
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 if test -n "$ac_tool_prefix"; then
3127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3128 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3130 $as_echo_n "checking for $ac_word... " >&6; }
3131 if ${ac_cv_prog_CC+:} false; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test -n "$CC"; then
3135 ac_cv_prog_CC="$CC" # Let the user override the test.
3136 else
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 break 2
3147 fi
3148 done
3149 done
3150 IFS=$as_save_IFS
3151
3152 fi
3153 fi
3154 CC=$ac_cv_prog_CC
3155 if test -n "$CC"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3157 $as_echo "$CC" >&6; }
3158 else
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3160 $as_echo "no" >&6; }
3161 fi
3162
3163
3164 fi
3165 if test -z "$ac_cv_prog_CC"; then
3166 ac_ct_CC=$CC
3167 # Extract the first word of "gcc", so it can be a program name with args.
3168 set dummy gcc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3172 $as_echo_n "(cached) " >&6
3173 else
3174 if test -n "$ac_ct_CC"; then
3175 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184 ac_cv_prog_ac_ct_CC="gcc"
3185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 break 2
3187 fi
3188 done
3189 done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3195 if test -n "$ac_ct_CC"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3197 $as_echo "$ac_ct_CC" >&6; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203 if test "x$ac_ct_CC" = x; then
3204 CC=""
3205 else
3206 case $cross_compiling:$ac_tool_warned in
3207 yes:)
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3210 ac_tool_warned=yes ;;
3211 esac
3212 CC=$ac_ct_CC
3213 fi
3214 else
3215 CC="$ac_cv_prog_CC"
3216 fi
3217
3218 if test -z "$CC"; then
3219 if test -n "$ac_tool_prefix"; then
3220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3221 set dummy ${ac_tool_prefix}cc; ac_word=$2
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 $as_echo_n "checking for $ac_word... " >&6; }
3224 if ${ac_cv_prog_CC+:} false; then :
3225 $as_echo_n "(cached) " >&6
3226 else
3227 if test -n "$CC"; then
3228 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_prog_CC="${ac_tool_prefix}cc"
3238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 break 2
3240 fi
3241 done
3242 done
3243 IFS=$as_save_IFS
3244
3245 fi
3246 fi
3247 CC=$ac_cv_prog_CC
3248 if test -n "$CC"; then
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3250 $as_echo "$CC" >&6; }
3251 else
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 $as_echo "no" >&6; }
3254 fi
3255
3256
3257 fi
3258 fi
3259 if test -z "$CC"; then
3260 # Extract the first word of "cc", so it can be a program name with args.
3261 set dummy cc; ac_word=$2
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3263 $as_echo_n "checking for $ac_word... " >&6; }
3264 if ${ac_cv_prog_CC+:} false; then :
3265 $as_echo_n "(cached) " >&6
3266 else
3267 if test -n "$CC"; then
3268 ac_cv_prog_CC="$CC" # Let the user override the test.
3269 else
3270 ac_prog_rejected=no
3271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 for as_dir in $PATH
3273 do
3274 IFS=$as_save_IFS
3275 test -z "$as_dir" && as_dir=.
3276 for ac_exec_ext in '' $ac_executable_extensions; do
3277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3279 ac_prog_rejected=yes
3280 continue
3281 fi
3282 ac_cv_prog_CC="cc"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 if test $ac_prog_rejected = yes; then
3291 # We found a bogon in the path, so make sure we never use it.
3292 set dummy $ac_cv_prog_CC
3293 shift
3294 if test $# != 0; then
3295 # We chose a different compiler from the bogus one.
3296 # However, it has the same basename, so the bogon will be chosen
3297 # first if we set CC to just the basename; use the full file name.
3298 shift
3299 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3300 fi
3301 fi
3302 fi
3303 fi
3304 CC=$ac_cv_prog_CC
3305 if test -n "$CC"; then
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3307 $as_echo "$CC" >&6; }
3308 else
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 fi
3312
3313
3314 fi
3315 if test -z "$CC"; then
3316 if test -n "$ac_tool_prefix"; then
3317 for ac_prog in cl.exe
3318 do
3319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3322 $as_echo_n "checking for $ac_word... " >&6; }
3323 if ${ac_cv_prog_CC+:} false; then :
3324 $as_echo_n "(cached) " >&6
3325 else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 for as_dir in $PATH
3331 do
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 fi
3345 fi
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3353 fi
3354
3355
3356 test -n "$CC" && break
3357 done
3358 fi
3359 if test -z "$CC"; then
3360 ac_ct_CC=$CC
3361 for ac_prog in cl.exe
3362 do
3363 # Extract the first word of "$ac_prog", so it can be a program name with args.
3364 set dummy $ac_prog; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$ac_ct_CC"; then
3371 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_ac_ct_CC="$ac_prog"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3391 if test -n "$ac_ct_CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3393 $as_echo "$ac_ct_CC" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399
3400 test -n "$ac_ct_CC" && break
3401 done
3402
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3413 fi
3414 fi
3415
3416 fi
3417
3418
3419 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3421 as_fn_error $? "no acceptable C compiler found in \$PATH
3422 See \`config.log' for more details" "$LINENO" 5; }
3423
3424 # Provide some information about the compiler.
3425 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3426 set X $ac_compile
3427 ac_compiler=$2
3428 for ac_option in --version -v -V -qversion; do
3429 { { ac_try="$ac_compiler $ac_option >&5"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3437 ac_status=$?
3438 if test -s conftest.err; then
3439 sed '10a\
3440 ... rest of stderr output deleted ...
3441 10q' conftest.err >conftest.er1
3442 cat conftest.er1 >&5
3443 fi
3444 rm -f conftest.er1 conftest.err
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }
3447 done
3448
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451
3452 int
3453 main ()
3454 {
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 ac_clean_files_save=$ac_clean_files
3461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3462 # Try to create an executable without -o first, disregard a.out.
3463 # It will help us diagnose broken compilers, and finding out an intuition
3464 # of exeext.
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3466 $as_echo_n "checking whether the C compiler works... " >&6; }
3467 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3468
3469 # The possible output files:
3470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3471
3472 ac_rmfiles=
3473 for ac_file in $ac_files
3474 do
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3478 esac
3479 done
3480 rm -f $ac_rmfiles
3481
3482 if { { ac_try="$ac_link_default"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488 $as_echo "$ac_try_echo"; } >&5
3489 (eval "$ac_link_default") 2>&5
3490 ac_status=$?
3491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3492 test $ac_status = 0; }; then :
3493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3495 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3496 # so that the user can short-circuit this test for compilers unknown to
3497 # Autoconf.
3498 for ac_file in $ac_files ''
3499 do
3500 test -f "$ac_file" || continue
3501 case $ac_file in
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3503 ;;
3504 [ab].out )
3505 # We found the default executable, but exeext='' is most
3506 # certainly right.
3507 break;;
3508 *.* )
3509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3510 then :; else
3511 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3512 fi
3513 # We set ac_cv_exeext here because the later test for it is not
3514 # safe: cross compilers may not add the suffix if given an `-o'
3515 # argument, so we may need to know it at that point already.
3516 # Even if this section looks crufty: it has the advantage of
3517 # actually working.
3518 break;;
3519 * )
3520 break;;
3521 esac
3522 done
3523 test "$ac_cv_exeext" = no && ac_cv_exeext=
3524
3525 else
3526 ac_file=''
3527 fi
3528 if test -z "$ac_file"; then :
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3530 $as_echo "no" >&6; }
3531 $as_echo "$as_me: failed program was:" >&5
3532 sed 's/^/| /' conftest.$ac_ext >&5
3533
3534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3536 as_fn_error 77 "C compiler cannot create executables
3537 See \`config.log' for more details" "$LINENO" 5; }
3538 else
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3540 $as_echo "yes" >&6; }
3541 fi
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3543 $as_echo_n "checking for C compiler default output file name... " >&6; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3545 $as_echo "$ac_file" >&6; }
3546 ac_exeext=$ac_cv_exeext
3547
3548 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3549 ac_clean_files=$ac_clean_files_save
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3551 $as_echo_n "checking for suffix of executables... " >&6; }
3552 if { { ac_try="$ac_link"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_link") 2>&5
3560 ac_status=$?
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }; then :
3563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3565 # work properly (i.e., refer to `conftest.exe'), while it won't with
3566 # `rm'.
3567 for ac_file in conftest.exe conftest conftest.*; do
3568 test -f "$ac_file" || continue
3569 case $ac_file in
3570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572 break;;
3573 * ) break;;
3574 esac
3575 done
3576 else
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3580 See \`config.log' for more details" "$LINENO" 5; }
3581 fi
3582 rm -f conftest conftest$ac_cv_exeext
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3584 $as_echo "$ac_cv_exeext" >&6; }
3585
3586 rm -f conftest.$ac_ext
3587 EXEEXT=$ac_cv_exeext
3588 ac_exeext=$EXEEXT
3589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h. */
3591 #include <stdio.h>
3592 int
3593 main ()
3594 {
3595 FILE *f = fopen ("conftest.out", "w");
3596 return ferror (f) || fclose (f) != 0;
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 ac_clean_files="$ac_clean_files conftest.out"
3603 # Check that the compiler produces executables we can run. If not, either
3604 # the compiler is broken, or we cross compile.
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3606 $as_echo_n "checking whether we are cross compiling... " >&6; }
3607 if test "$cross_compiling" != yes; then
3608 { { ac_try="$ac_link"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_link") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }
3619 if { ac_try='./conftest$ac_cv_exeext'
3620 { { case "(($ac_try" in
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3623 esac
3624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3625 $as_echo "$ac_try_echo"; } >&5
3626 (eval "$ac_try") 2>&5
3627 ac_status=$?
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }; }; then
3630 cross_compiling=no
3631 else
3632 if test "$cross_compiling" = maybe; then
3633 cross_compiling=yes
3634 else
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot run C compiled programs.
3638 If you meant to cross compile, use \`--host'.
3639 See \`config.log' for more details" "$LINENO" 5; }
3640 fi
3641 fi
3642 fi
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3644 $as_echo "$cross_compiling" >&6; }
3645
3646 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3647 ac_clean_files=$ac_clean_files_save
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3649 $as_echo_n "checking for suffix of object files... " >&6; }
3650 if ${ac_cv_objext+:} false; then :
3651 $as_echo_n "(cached) " >&6
3652 else
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655
3656 int
3657 main ()
3658 {
3659
3660 ;
3661 return 0;
3662 }
3663 _ACEOF
3664 rm -f conftest.o conftest.obj
3665 if { { ac_try="$ac_compile"
3666 case "(($ac_try" in
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3669 esac
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compile") 2>&5
3673 ac_status=$?
3674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3675 test $ac_status = 0; }; then :
3676 for ac_file in conftest.o conftest.obj conftest.*; do
3677 test -f "$ac_file" || continue;
3678 case $ac_file in
3679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3681 break;;
3682 esac
3683 done
3684 else
3685 $as_echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error $? "cannot compute suffix of object files: cannot compile
3691 See \`config.log' for more details" "$LINENO" 5; }
3692 fi
3693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3696 $as_echo "$ac_cv_objext" >&6; }
3697 OBJEXT=$ac_cv_objext
3698 ac_objext=$OBJEXT
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3701 if ${ac_cv_c_compiler_gnu+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706
3707 int
3708 main ()
3709 {
3710 #ifndef __GNUC__
3711 choke me
3712 #endif
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719 ac_compiler_gnu=yes
3720 else
3721 ac_compiler_gnu=no
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3725
3726 fi
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3728 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3729 if test $ac_compiler_gnu = yes; then
3730 GCC=yes
3731 else
3732 GCC=
3733 fi
3734 ac_test_CFLAGS=${CFLAGS+set}
3735 ac_save_CFLAGS=$CFLAGS
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3737 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3738 if ${ac_cv_prog_cc_g+:} false; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 ac_save_c_werror_flag=$ac_c_werror_flag
3742 ac_c_werror_flag=yes
3743 ac_cv_prog_cc_g=no
3744 CFLAGS="-g"
3745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747
3748 int
3749 main ()
3750 {
3751
3752 ;
3753 return 0;
3754 }
3755 _ACEOF
3756 if ac_fn_c_try_compile "$LINENO"; then :
3757 ac_cv_prog_cc_g=yes
3758 else
3759 CFLAGS=""
3760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3761 /* end confdefs.h. */
3762
3763 int
3764 main ()
3765 {
3766
3767 ;
3768 return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772
3773 else
3774 ac_c_werror_flag=$ac_save_c_werror_flag
3775 CFLAGS="-g"
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778
3779 int
3780 main ()
3781 {
3782
3783 ;
3784 return 0;
3785 }
3786 _ACEOF
3787 if ac_fn_c_try_compile "$LINENO"; then :
3788 ac_cv_prog_cc_g=yes
3789 fi
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 fi
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 fi
3794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795 ac_c_werror_flag=$ac_save_c_werror_flag
3796 fi
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3798 $as_echo "$ac_cv_prog_cc_g" >&6; }
3799 if test "$ac_test_CFLAGS" = set; then
3800 CFLAGS=$ac_save_CFLAGS
3801 elif test $ac_cv_prog_cc_g = yes; then
3802 if test "$GCC" = yes; then
3803 CFLAGS="-g -O2"
3804 else
3805 CFLAGS="-g"
3806 fi
3807 else
3808 if test "$GCC" = yes; then
3809 CFLAGS="-O2"
3810 else
3811 CFLAGS=
3812 fi
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3815 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3816 if ${ac_cv_prog_cc_c89+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818 else
3819 ac_cv_prog_cc_c89=no
3820 ac_save_CC=$CC
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <stdarg.h>
3824 #include <stdio.h>
3825 struct stat;
3826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3827 struct buf { int x; };
3828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3829 static char *e (p, i)
3830 char **p;
3831 int i;
3832 {
3833 return p[i];
3834 }
3835 static char *f (char * (*g) (char **, int), char **p, ...)
3836 {
3837 char *s;
3838 va_list v;
3839 va_start (v,p);
3840 s = g (p, va_arg (v,int));
3841 va_end (v);
3842 return s;
3843 }
3844
3845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3846 function prototypes and stuff, but not '\xHH' hex character constants.
3847 These don't provoke an error unfortunately, instead are silently treated
3848 as 'x'. The following induces an error, until -std is added to get
3849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3850 array size at least. It's necessary to write '\x00'==0 to get something
3851 that's true only with -std. */
3852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3853
3854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3855 inside strings and character constants. */
3856 #define FOO(x) 'x'
3857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3858
3859 int test (int i, double x);
3860 struct s1 {int (*f) (int a);};
3861 struct s2 {int (*f) (double a);};
3862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3863 int argc;
3864 char **argv;
3865 int
3866 main ()
3867 {
3868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3869 ;
3870 return 0;
3871 }
3872 _ACEOF
3873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3875 do
3876 CC="$ac_save_CC $ac_arg"
3877 if ac_fn_c_try_compile "$LINENO"; then :
3878 ac_cv_prog_cc_c89=$ac_arg
3879 fi
3880 rm -f core conftest.err conftest.$ac_objext
3881 test "x$ac_cv_prog_cc_c89" != "xno" && break
3882 done
3883 rm -f conftest.$ac_ext
3884 CC=$ac_save_CC
3885
3886 fi
3887 # AC_CACHE_VAL
3888 case "x$ac_cv_prog_cc_c89" in
3889 x)
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3891 $as_echo "none needed" >&6; } ;;
3892 xno)
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3894 $as_echo "unsupported" >&6; } ;;
3895 *)
3896 CC="$CC $ac_cv_prog_cc_c89"
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3899 esac
3900 if test "x$ac_cv_prog_cc_c89" != xno; then :
3901
3902 fi
3903
3904 ac_ext=c
3905 ac_cpp='$CPP $CPPFLAGS'
3906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3916 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3917 if ${am_cv_prog_cc_c_o+:} false; then :
3918 $as_echo_n "(cached) " >&6
3919 else
3920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921 /* end confdefs.h. */
3922
3923 int
3924 main ()
3925 {
3926
3927 ;
3928 return 0;
3929 }
3930 _ACEOF
3931 # Make sure it works both with $CC and with simple cc.
3932 # Following AC_PROG_CC_C_O, we do the test twice because some
3933 # compilers refuse to overwrite an existing .o file with -o,
3934 # though they will create one.
3935 am_cv_prog_cc_c_o=yes
3936 for am_i in 1 2; do
3937 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3938 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3939 ac_status=$?
3940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3941 (exit $ac_status); } \
3942 && test -f conftest2.$ac_objext; then
3943 : OK
3944 else
3945 am_cv_prog_cc_c_o=no
3946 break
3947 fi
3948 done
3949 rm -f core conftest*
3950 unset am_i
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3953 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3954 if test "$am_cv_prog_cc_c_o" != yes; then
3955 # Losing compiler, so override with the script.
3956 # FIXME: It is wrong to rewrite CC.
3957 # But if we don't then we get into trouble of one sort or another.
3958 # A longer-term fix would be to have automake use am__CC in this case,
3959 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3960 CC="$am_aux_dir/compile $CC"
3961 fi
3962 ac_ext=c
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3965 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3967
3968 DEPDIR="${am__leading_dot}deps"
3969
3970 ac_config_commands="$ac_config_commands depfiles"
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3973 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3974 cat > confinc.mk << 'END'
3975 am__doit:
3976 @echo this is the am__doit target >confinc.out
3977 .PHONY: am__doit
3978 END
3979 am__include="#"
3980 am__quote=
3981 # BSD make does it like this.
3982 echo '.include "confinc.mk" # ignored' > confmf.BSD
3983 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3984 echo 'include confinc.mk # ignored' > confmf.GNU
3985 _am_result=no
3986 for s in GNU BSD; do
3987 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3988 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }
3992 case $?:`cat confinc.out 2>/dev/null` in #(
3993 '0:this is the am__doit target') :
3994 case $s in #(
3995 BSD) :
3996 am__include='.include' am__quote='"' ;; #(
3997 *) :
3998 am__include='include' am__quote='' ;;
3999 esac ;; #(
4000 *) :
4001 ;;
4002 esac
4003 if test "$am__include" != "#"; then
4004 _am_result="yes ($s style)"
4005 break
4006 fi
4007 done
4008 rm -f confinc.* confmf.*
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4010 $as_echo "${_am_result}" >&6; }
4011
4012 # Check whether --enable-dependency-tracking was given.
4013 if test "${enable_dependency_tracking+set}" = set; then :
4014 enableval=$enable_dependency_tracking;
4015 fi
4016
4017 if test "x$enable_dependency_tracking" != xno; then
4018 am_depcomp="$ac_aux_dir/depcomp"
4019 AMDEPBACKSLASH='\'
4020 am__nodep='_no'
4021 fi
4022 if test "x$enable_dependency_tracking" != xno; then
4023 AMDEP_TRUE=
4024 AMDEP_FALSE='#'
4025 else
4026 AMDEP_TRUE='#'
4027 AMDEP_FALSE=
4028 fi
4029
4030
4031
4032 depcc="$CC" am_compiler_list=
4033
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4035 $as_echo_n "checking dependency style of $depcc... " >&6; }
4036 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4037 $as_echo_n "(cached) " >&6
4038 else
4039 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4040 # We make a subdir and do the tests there. Otherwise we can end up
4041 # making bogus files that we don't know about and never remove. For
4042 # instance it was reported that on HP-UX the gcc test will end up
4043 # making a dummy file named 'D' -- because '-MD' means "put the output
4044 # in D".
4045 rm -rf conftest.dir
4046 mkdir conftest.dir
4047 # Copy depcomp to subdir because otherwise we won't find it if we're
4048 # using a relative directory.
4049 cp "$am_depcomp" conftest.dir
4050 cd conftest.dir
4051 # We will build objects and dependencies in a subdirectory because
4052 # it helps to detect inapplicable dependency modes. For instance
4053 # both Tru64's cc and ICC support -MD to output dependencies as a
4054 # side effect of compilation, but ICC will put the dependencies in
4055 # the current directory while Tru64 will put them in the object
4056 # directory.
4057 mkdir sub
4058
4059 am_cv_CC_dependencies_compiler_type=none
4060 if test "$am_compiler_list" = ""; then
4061 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4062 fi
4063 am__universal=false
4064 case " $depcc " in #(
4065 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4066 esac
4067
4068 for depmode in $am_compiler_list; do
4069 # Setup a source with many dependencies, because some compilers
4070 # like to wrap large dependency lists on column 80 (with \), and
4071 # we should not choose a depcomp mode which is confused by this.
4072 #
4073 # We need to recreate these files for each test, as the compiler may
4074 # overwrite some of them when testing with obscure command lines.
4075 # This happens at least with the AIX C compiler.
4076 : > sub/conftest.c
4077 for i in 1 2 3 4 5 6; do
4078 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4079 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4080 # Solaris 10 /bin/sh.
4081 echo '/* dummy */' > sub/conftst$i.h
4082 done
4083 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4084
4085 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4086 # mode. It turns out that the SunPro C++ compiler does not properly
4087 # handle '-M -o', and we need to detect this. Also, some Intel
4088 # versions had trouble with output in subdirs.
4089 am__obj=sub/conftest.${OBJEXT-o}
4090 am__minus_obj="-o $am__obj"
4091 case $depmode in
4092 gcc)
4093 # This depmode causes a compiler race in universal mode.
4094 test "$am__universal" = false || continue
4095 ;;
4096 nosideeffect)
4097 # After this tag, mechanisms are not by side-effect, so they'll
4098 # only be used when explicitly requested.
4099 if test "x$enable_dependency_tracking" = xyes; then
4100 continue
4101 else
4102 break
4103 fi
4104 ;;
4105 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4106 # This compiler won't grok '-c -o', but also, the minuso test has
4107 # not run yet. These depmodes are late enough in the game, and
4108 # so weak that their functioning should not be impacted.
4109 am__obj=conftest.${OBJEXT-o}
4110 am__minus_obj=
4111 ;;
4112 none) break ;;
4113 esac
4114 if depmode=$depmode \
4115 source=sub/conftest.c object=$am__obj \
4116 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4117 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4118 >/dev/null 2>conftest.err &&
4119 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4120 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4121 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4122 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4123 # icc doesn't choke on unknown options, it will just issue warnings
4124 # or remarks (even with -Werror). So we grep stderr for any message
4125 # that says an option was ignored or not supported.
4126 # When given -MP, icc 7.0 and 7.1 complain thusly:
4127 # icc: Command line warning: ignoring option '-M'; no argument required
4128 # The diagnosis changed in icc 8.0:
4129 # icc: Command line remark: option '-MP' not supported
4130 if (grep 'ignoring option' conftest.err ||
4131 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4132 am_cv_CC_dependencies_compiler_type=$depmode
4133 break
4134 fi
4135 fi
4136 done
4137
4138 cd ..
4139 rm -rf conftest.dir
4140 else
4141 am_cv_CC_dependencies_compiler_type=none
4142 fi
4143
4144 fi
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4146 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4147 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4148
4149 if
4150 test "x$enable_dependency_tracking" != xno \
4151 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4152 am__fastdepCC_TRUE=
4153 am__fastdepCC_FALSE='#'
4154 else
4155 am__fastdepCC_TRUE='#'
4156 am__fastdepCC_FALSE=
4157 fi
4158
4159
4160 ac_ext=cpp
4161 ac_cpp='$CXXCPP $CPPFLAGS'
4162 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4165 if test -z "$CXX"; then
4166 if test -n "$CCC"; then
4167 CXX=$CCC
4168 else
4169 if test -n "$ac_tool_prefix"; then
4170 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4171 do
4172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_prog_CXX+:} false; then :
4177 $as_echo_n "(cached) " >&6
4178 else
4179 if test -n "$CXX"; then
4180 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4181 else
4182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183 for as_dir in $PATH
4184 do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
4187 for ac_exec_ext in '' $ac_executable_extensions; do
4188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4189 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 break 2
4192 fi
4193 done
4194 done
4195 IFS=$as_save_IFS
4196
4197 fi
4198 fi
4199 CXX=$ac_cv_prog_CXX
4200 if test -n "$CXX"; then
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4202 $as_echo "$CXX" >&6; }
4203 else
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205 $as_echo "no" >&6; }
4206 fi
4207
4208
4209 test -n "$CXX" && break
4210 done
4211 fi
4212 if test -z "$CXX"; then
4213 ac_ct_CXX=$CXX
4214 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4215 do
4216 # Extract the first word of "$ac_prog", so it can be a program name with args.
4217 set dummy $ac_prog; ac_word=$2
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4219 $as_echo_n "checking for $ac_word... " >&6; }
4220 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 if test -n "$ac_ct_CXX"; then
4224 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4225 else
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227 for as_dir in $PATH
4228 do
4229 IFS=$as_save_IFS
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_prog_ac_ct_CXX="$ac_prog"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 break 2
4236 fi
4237 done
4238 done
4239 IFS=$as_save_IFS
4240
4241 fi
4242 fi
4243 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4244 if test -n "$ac_ct_CXX"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4246 $as_echo "$ac_ct_CXX" >&6; }
4247 else
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4250 fi
4251
4252
4253 test -n "$ac_ct_CXX" && break
4254 done
4255
4256 if test "x$ac_ct_CXX" = x; then
4257 CXX="g++"
4258 else
4259 case $cross_compiling:$ac_tool_warned in
4260 yes:)
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4263 ac_tool_warned=yes ;;
4264 esac
4265 CXX=$ac_ct_CXX
4266 fi
4267 fi
4268
4269 fi
4270 fi
4271 # Provide some information about the compiler.
4272 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4273 set X $ac_compile
4274 ac_compiler=$2
4275 for ac_option in --version -v -V -qversion; do
4276 { { ac_try="$ac_compiler $ac_option >&5"
4277 case "(($ac_try" in
4278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4279 *) ac_try_echo=$ac_try;;
4280 esac
4281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4282 $as_echo "$ac_try_echo"; } >&5
4283 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4284 ac_status=$?
4285 if test -s conftest.err; then
4286 sed '10a\
4287 ... rest of stderr output deleted ...
4288 10q' conftest.err >conftest.er1
4289 cat conftest.er1 >&5
4290 fi
4291 rm -f conftest.er1 conftest.err
4292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4293 test $ac_status = 0; }
4294 done
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4297 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4298 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4302 /* end confdefs.h. */
4303
4304 int
4305 main ()
4306 {
4307 #ifndef __GNUC__
4308 choke me
4309 #endif
4310
4311 ;
4312 return 0;
4313 }
4314 _ACEOF
4315 if ac_fn_cxx_try_compile "$LINENO"; then :
4316 ac_compiler_gnu=yes
4317 else
4318 ac_compiler_gnu=no
4319 fi
4320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4321 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4322
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4325 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4326 if test $ac_compiler_gnu = yes; then
4327 GXX=yes
4328 else
4329 GXX=
4330 fi
4331 ac_test_CXXFLAGS=${CXXFLAGS+set}
4332 ac_save_CXXFLAGS=$CXXFLAGS
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4334 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4335 if ${ac_cv_prog_cxx_g+:} false; then :
4336 $as_echo_n "(cached) " >&6
4337 else
4338 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4339 ac_cxx_werror_flag=yes
4340 ac_cv_prog_cxx_g=no
4341 CXXFLAGS="-g"
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344
4345 int
4346 main ()
4347 {
4348
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 if ac_fn_cxx_try_compile "$LINENO"; then :
4354 ac_cv_prog_cxx_g=yes
4355 else
4356 CXXFLAGS=""
4357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4358 /* end confdefs.h. */
4359
4360 int
4361 main ()
4362 {
4363
4364 ;
4365 return 0;
4366 }
4367 _ACEOF
4368 if ac_fn_cxx_try_compile "$LINENO"; then :
4369
4370 else
4371 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4372 CXXFLAGS="-g"
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375
4376 int
4377 main ()
4378 {
4379
4380 ;
4381 return 0;
4382 }
4383 _ACEOF
4384 if ac_fn_cxx_try_compile "$LINENO"; then :
4385 ac_cv_prog_cxx_g=yes
4386 fi
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 fi
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4393 fi
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4395 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4396 if test "$ac_test_CXXFLAGS" = set; then
4397 CXXFLAGS=$ac_save_CXXFLAGS
4398 elif test $ac_cv_prog_cxx_g = yes; then
4399 if test "$GXX" = yes; then
4400 CXXFLAGS="-g -O2"
4401 else
4402 CXXFLAGS="-g"
4403 fi
4404 else
4405 if test "$GXX" = yes; then
4406 CXXFLAGS="-O2"
4407 else
4408 CXXFLAGS=
4409 fi
4410 fi
4411 ac_ext=c
4412 ac_cpp='$CPP $CPPFLAGS'
4413 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4414 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4415 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4416
4417 depcc="$CXX" am_compiler_list=
4418
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4420 $as_echo_n "checking dependency style of $depcc... " >&6; }
4421 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4422 $as_echo_n "(cached) " >&6
4423 else
4424 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4425 # We make a subdir and do the tests there. Otherwise we can end up
4426 # making bogus files that we don't know about and never remove. For
4427 # instance it was reported that on HP-UX the gcc test will end up
4428 # making a dummy file named 'D' -- because '-MD' means "put the output
4429 # in D".
4430 rm -rf conftest.dir
4431 mkdir conftest.dir
4432 # Copy depcomp to subdir because otherwise we won't find it if we're
4433 # using a relative directory.
4434 cp "$am_depcomp" conftest.dir
4435 cd conftest.dir
4436 # We will build objects and dependencies in a subdirectory because
4437 # it helps to detect inapplicable dependency modes. For instance
4438 # both Tru64's cc and ICC support -MD to output dependencies as a
4439 # side effect of compilation, but ICC will put the dependencies in
4440 # the current directory while Tru64 will put them in the object
4441 # directory.
4442 mkdir sub
4443
4444 am_cv_CXX_dependencies_compiler_type=none
4445 if test "$am_compiler_list" = ""; then
4446 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4447 fi
4448 am__universal=false
4449 case " $depcc " in #(
4450 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4451 esac
4452
4453 for depmode in $am_compiler_list; do
4454 # Setup a source with many dependencies, because some compilers
4455 # like to wrap large dependency lists on column 80 (with \), and
4456 # we should not choose a depcomp mode which is confused by this.
4457 #
4458 # We need to recreate these files for each test, as the compiler may
4459 # overwrite some of them when testing with obscure command lines.
4460 # This happens at least with the AIX C compiler.
4461 : > sub/conftest.c
4462 for i in 1 2 3 4 5 6; do
4463 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4464 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4465 # Solaris 10 /bin/sh.
4466 echo '/* dummy */' > sub/conftst$i.h
4467 done
4468 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4469
4470 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4471 # mode. It turns out that the SunPro C++ compiler does not properly
4472 # handle '-M -o', and we need to detect this. Also, some Intel
4473 # versions had trouble with output in subdirs.
4474 am__obj=sub/conftest.${OBJEXT-o}
4475 am__minus_obj="-o $am__obj"
4476 case $depmode in
4477 gcc)
4478 # This depmode causes a compiler race in universal mode.
4479 test "$am__universal" = false || continue
4480 ;;
4481 nosideeffect)
4482 # After this tag, mechanisms are not by side-effect, so they'll
4483 # only be used when explicitly requested.
4484 if test "x$enable_dependency_tracking" = xyes; then
4485 continue
4486 else
4487 break
4488 fi
4489 ;;
4490 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4491 # This compiler won't grok '-c -o', but also, the minuso test has
4492 # not run yet. These depmodes are late enough in the game, and
4493 # so weak that their functioning should not be impacted.
4494 am__obj=conftest.${OBJEXT-o}
4495 am__minus_obj=
4496 ;;
4497 none) break ;;
4498 esac
4499 if depmode=$depmode \
4500 source=sub/conftest.c object=$am__obj \
4501 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4502 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4503 >/dev/null 2>conftest.err &&
4504 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4505 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4506 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4507 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4508 # icc doesn't choke on unknown options, it will just issue warnings
4509 # or remarks (even with -Werror). So we grep stderr for any message
4510 # that says an option was ignored or not supported.
4511 # When given -MP, icc 7.0 and 7.1 complain thusly:
4512 # icc: Command line warning: ignoring option '-M'; no argument required
4513 # The diagnosis changed in icc 8.0:
4514 # icc: Command line remark: option '-MP' not supported
4515 if (grep 'ignoring option' conftest.err ||
4516 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4517 am_cv_CXX_dependencies_compiler_type=$depmode
4518 break
4519 fi
4520 fi
4521 done
4522
4523 cd ..
4524 rm -rf conftest.dir
4525 else
4526 am_cv_CXX_dependencies_compiler_type=none
4527 fi
4528
4529 fi
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4531 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4532 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4533
4534 if
4535 test "x$enable_dependency_tracking" != xno \
4536 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4537 am__fastdepCXX_TRUE=
4538 am__fastdepCXX_FALSE='#'
4539 else
4540 am__fastdepCXX_TRUE='#'
4541 am__fastdepCXX_FALSE=
4542 fi
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4553 if test -n "$ac_tool_prefix"; then
4554 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4555 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 case $PKG_CONFIG in
4562 [\\/]* | ?:[\\/]*)
4563 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4564 ;;
4565 *)
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4568 do
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4576 fi
4577 done
4578 done
4579 IFS=$as_save_IFS
4580
4581 ;;
4582 esac
4583 fi
4584 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4585 if test -n "$PKG_CONFIG"; then
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4587 $as_echo "$PKG_CONFIG" >&6; }
4588 else
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4591 fi
4592
4593
4594 fi
4595 if test -z "$ac_cv_path_PKG_CONFIG"; then
4596 ac_pt_PKG_CONFIG=$PKG_CONFIG
4597 # Extract the first word of "pkg-config", so it can be a program name with args.
4598 set dummy pkg-config; ac_word=$2
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 $as_echo_n "checking for $ac_word... " >&6; }
4601 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 case $ac_pt_PKG_CONFIG in
4605 [\\/]* | ?:[\\/]*)
4606 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4607 ;;
4608 *)
4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612 IFS=$as_save_IFS
4613 test -z "$as_dir" && as_dir=.
4614 for ac_exec_ext in '' $ac_executable_extensions; do
4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4616 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4618 break 2
4619 fi
4620 done
4621 done
4622 IFS=$as_save_IFS
4623
4624 ;;
4625 esac
4626 fi
4627 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4628 if test -n "$ac_pt_PKG_CONFIG"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4630 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4634 fi
4635
4636 if test "x$ac_pt_PKG_CONFIG" = x; then
4637 PKG_CONFIG=""
4638 else
4639 case $cross_compiling:$ac_tool_warned in
4640 yes:)
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4643 ac_tool_warned=yes ;;
4644 esac
4645 PKG_CONFIG=$ac_pt_PKG_CONFIG
4646 fi
4647 else
4648 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4649 fi
4650
4651 fi
4652 if test -n "$PKG_CONFIG"; then
4653 _pkg_min_version=0.9.0
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4655 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4656 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4658 $as_echo "yes" >&6; }
4659 else
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 $as_echo "no" >&6; }
4662 PKG_CONFIG=""
4663 fi
4664 fi
4665
4666 # Compiler flags
4667
4668 # Check whether --enable-pedantic was given.
4669 if test "${enable_pedantic+set}" = set; then :
4670 enableval=$enable_pedantic;
4671 else
4672 enable_pedantic="yes"
4673
4674 fi
4675
4676 if test "${enable_pedantic}" = "yes"; then
4677 enable_strict="yes";
4678 CFLAGS="${CFLAGS} -pedantic"
4679 fi
4680
4681
4682 # Check whether --enable-strict was given.
4683 if test "${enable_strict+set}" = set; then :
4684 enableval=$enable_strict;
4685 else
4686 enable_strict="yes"
4687
4688 fi
4689
4690 if test "${enable_strict}" = "yes"; then
4691 CFLAGS="${CFLAGS} -Wall -Wextra"
4692 CXXFLAGS="${CXXFLAGS} -Wall -Wextra"
4693 fi
4694
4695
4696
4697 # Check whether --enable-64bit was given.
4698 if test "${enable_64bit+set}" = set; then :
4699 enableval=$enable_64bit; enable_64bit="${enableval}"
4700 else
4701 enable_64bit="no"
4702 fi
4703
4704
4705 if test "x$enable_64bit" = "xyes"
4706 then
4707 tmp_CFLAGS=$CFLAGS
4708 CFLAGS="-m64"
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile in 64-bit mode" >&5
4710 $as_echo_n "checking if we can compile in 64-bit mode... " >&6; }
4711 if ${acx_cv_prog_cc_64bit+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714
4715 acx_cv_prog_cc_64bit=no
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718
4719
4720 int
4721 main ()
4722 {
4723 return sizeof(void*) == 8 ? 0 : 1;
4724 ;
4725 return 0;
4726 }
4727
4728 _ACEOF
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730
4731 acx_cv_prog_cc_64bit=yes
4732
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735
4736 fi
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_prog_cc_64bit" >&5
4738 $as_echo "$acx_cv_prog_cc_64bit" >&6; }
4739
4740 if test "x$acx_cv_prog_cc_64bit" = xyes; then
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can run 64-bit programs" >&5
4742 $as_echo_n "checking if we can run 64-bit programs... " >&6; }
4743 if ${acx_cv_sys_64bit+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746
4747 acx_cv_sys_64bit=no
4748 if test "$cross_compiling" = yes; then :
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot test, assuming 64-bit" >&5
4751 $as_echo "$as_me: WARNING: Cannot test, assuming 64-bit" >&2;}
4752 acx_cv_sys_64bit=yes
4753
4754 else
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757
4758
4759 int
4760 main ()
4761 {
4762 return sizeof(void*) == 8 ? 0 : 1;
4763 ;
4764 return 0;
4765 }
4766
4767 _ACEOF
4768 if ac_fn_c_try_run "$LINENO"; then :
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4771 $as_echo "yes" >&6; }
4772 acx_cv_sys_64bit=yes
4773
4774 else
4775
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4778 as_fn_error $? "Don't know how to compile in 64-bit mode." "$LINENO" 5
4779 CFLAGS=$tmp_CFLAGS
4780
4781 fi
4782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4783 conftest.$ac_objext conftest.beam conftest.$ac_ext
4784 fi
4785
4786
4787 fi
4788
4789
4790 CXXFLAGS="-m64 $CXXFLAGS"
4791 LDFLAGS="-m64 $LDFLAGS"
4792 CFLAGS="-m64 $tmp_CFLAGS"
4793 else
4794 CFLAGS=$tmp_CFLAGS
4795 fi
4796 fi
4797
4798
4799
4800 ax_cxx_compile_cxx11_required=false
4801 ac_ext=cpp
4802 ac_cpp='$CXXCPP $CPPFLAGS'
4803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4806 ac_success=no
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
4808 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
4809 if ${ax_cv_cxx_compile_cxx11+:} false; then :
4810 $as_echo_n "(cached) " >&6
4811 else
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814
4815 #include <memory>
4816
4817 template <typename T>
4818 struct check
4819 {
4820 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4821 };
4822
4823 struct Base {
4824 virtual void f() {}
4825 };
4826 struct Child : public Base {
4827 virtual void f() override {}
4828 };
4829
4830 std::unique_ptr<Base> ptr_to_base;
4831
4832 typedef check<check<bool>> right_angle_brackets;
4833
4834 int a;
4835 decltype(a) b;
4836
4837 typedef check<int> check_type;
4838 check_type c;
4839 check_type&& cr = static_cast<check_type&&>(c);
4840
4841 auto d = a;
4842 auto l = [](){};
4843
4844 _ACEOF
4845 if ac_fn_cxx_try_compile "$LINENO"; then :
4846 ax_cv_cxx_compile_cxx11=yes
4847 else
4848 ax_cv_cxx_compile_cxx11=no
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
4853 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
4854 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
4855 ac_success=yes
4856 fi
4857
4858
4859
4860 if test x$ac_success = xno; then
4861 for switch in -std=c++11 -std=c++0x; do
4862 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
4864 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
4865 if eval \${$cachevar+:} false; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 ac_save_CXXFLAGS="$CXXFLAGS"
4869 CXXFLAGS="$CXXFLAGS $switch"
4870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4871 /* end confdefs.h. */
4872
4873 #include <memory>
4874
4875 template <typename T>
4876 struct check
4877 {
4878 static_assert(sizeof(int) <= sizeof(T), "not big enough");
4879 };
4880
4881 struct Base {
4882 virtual void f() {}
4883 };
4884 struct Child : public Base {
4885 virtual void f() override {}
4886 };
4887
4888 std::unique_ptr<Base> ptr_to_base;
4889
4890 typedef check<check<bool>> right_angle_brackets;
4891
4892 int a;
4893 decltype(a) b;
4894
4895 typedef check<int> check_type;
4896 check_type c;
4897 check_type&& cr = static_cast<check_type&&>(c);
4898
4899 auto d = a;
4900 auto l = [](){};
4901
4902 _ACEOF
4903 if ac_fn_cxx_try_compile "$LINENO"; then :
4904 eval $cachevar=yes
4905 else
4906 eval $cachevar=no
4907 fi
4908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4909 CXXFLAGS="$ac_save_CXXFLAGS"
4910 fi
4911 eval ac_res=\$$cachevar
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4913 $as_echo "$ac_res" >&6; }
4914 if eval test x\$$cachevar = xyes; then
4915 CXXFLAGS="$CXXFLAGS $switch"
4916 ac_success=yes
4917 break
4918 fi
4919 done
4920 fi
4921 ac_ext=c
4922 ac_cpp='$CPP $CPPFLAGS'
4923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4926
4927 if test x$ax_cxx_compile_cxx11_required = xtrue; then
4928 if test x$ac_success = xno; then
4929 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
4930 fi
4931 else
4932 if test x$ac_success = xno; then
4933 HAVE_CXX11=0
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
4935 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
4936 else
4937 HAVE_CXX11=1
4938
4939 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
4940
4941 fi
4942
4943
4944 fi
4945
4946
4947 # Check for libraries (-ldl can be required by OpenSSL too)
4948
4949 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
4950 if test "x$ac_cv_func_dlopen" = xyes; then :
4951
4952 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
4953
4954 else
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4957 $as_echo_n "checking for dlopen in -ldl... " >&6; }
4958 if ${ac_cv_lib_dl_dlopen+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 ac_check_lib_save_LIBS=$LIBS
4962 LIBS="-ldl $LIBS"
4963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4964 /* end confdefs.h. */
4965
4966 /* Override any GCC internal prototype to avoid an error.
4967 Use char because int might match the return type of a GCC
4968 builtin and then its argument prototype would still apply. */
4969 #ifdef __cplusplus
4970 extern "C"
4971 #endif
4972 char dlopen ();
4973 int
4974 main ()
4975 {
4976 return dlopen ();
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_c_try_link "$LINENO"; then :
4982 ac_cv_lib_dl_dlopen=yes
4983 else
4984 ac_cv_lib_dl_dlopen=no
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext \
4987 conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4991 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
4992 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
4993
4994 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
4995
4996 LIBS="$LIBS -ldl"
4997 else
4998 ac_fn_c_check_func "$LINENO" "LoadLibrary" "ac_cv_func_LoadLibrary"
4999 if test "x$ac_cv_func_LoadLibrary" = xyes; then :
5000 if test $ac_cv_func_LoadLibrary = yes; then
5001
5002 $as_echo "#define HAVE_LOADLIBRARY 1" >>confdefs.h
5003
5004 fi
5005
5006 else
5007 as_fn_error $? "No dynamic library loading support" "$LINENO" 5
5008
5009 fi
5010
5011
5012 fi
5013
5014
5015 fi
5016
5017
5018
5019 # Check for headers
5020 ac_ext=c
5021 ac_cpp='$CPP $CPPFLAGS'
5022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5026 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5027 # On Suns, sometimes $CPP names a directory.
5028 if test -n "$CPP" && test -d "$CPP"; then
5029 CPP=
5030 fi
5031 if test -z "$CPP"; then
5032 if ${ac_cv_prog_CPP+:} false; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 # Double quotes because CPP needs to be expanded
5036 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5037 do
5038 ac_preproc_ok=false
5039 for ac_c_preproc_warn_flag in '' yes
5040 do
5041 # Use a header file that comes with gcc, so configuring glibc
5042 # with a fresh cross-compiler works.
5043 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5044 # <limits.h> exists even on freestanding compilers.
5045 # On the NeXT, cc -E runs the code through the compiler's parser,
5046 # not just through cpp. "Syntax error" is here to catch this case.
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5048 /* end confdefs.h. */
5049 #ifdef __STDC__
5050 # include <limits.h>
5051 #else
5052 # include <assert.h>
5053 #endif
5054 Syntax error
5055 _ACEOF
5056 if ac_fn_c_try_cpp "$LINENO"; then :
5057
5058 else
5059 # Broken: fails on valid input.
5060 continue
5061 fi
5062 rm -f conftest.err conftest.i conftest.$ac_ext
5063
5064 # OK, works on sane cases. Now check whether nonexistent headers
5065 # can be detected and how.
5066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5067 /* end confdefs.h. */
5068 #include <ac_nonexistent.h>
5069 _ACEOF
5070 if ac_fn_c_try_cpp "$LINENO"; then :
5071 # Broken: success on invalid input.
5072 continue
5073 else
5074 # Passes both tests.
5075 ac_preproc_ok=:
5076 break
5077 fi
5078 rm -f conftest.err conftest.i conftest.$ac_ext
5079
5080 done
5081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5082 rm -f conftest.i conftest.err conftest.$ac_ext
5083 if $ac_preproc_ok; then :
5084 break
5085 fi
5086
5087 done
5088 ac_cv_prog_CPP=$CPP
5089
5090 fi
5091 CPP=$ac_cv_prog_CPP
5092 else
5093 ac_cv_prog_CPP=$CPP
5094 fi
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5096 $as_echo "$CPP" >&6; }
5097 ac_preproc_ok=false
5098 for ac_c_preproc_warn_flag in '' yes
5099 do
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5107 /* end confdefs.h. */
5108 #ifdef __STDC__
5109 # include <limits.h>
5110 #else
5111 # include <assert.h>
5112 #endif
5113 Syntax error
5114 _ACEOF
5115 if ac_fn_c_try_cpp "$LINENO"; then :
5116
5117 else
5118 # Broken: fails on valid input.
5119 continue
5120 fi
5121 rm -f conftest.err conftest.i conftest.$ac_ext
5122
5123 # OK, works on sane cases. Now check whether nonexistent headers
5124 # can be detected and how.
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 #include <ac_nonexistent.h>
5128 _ACEOF
5129 if ac_fn_c_try_cpp "$LINENO"; then :
5130 # Broken: success on invalid input.
5131 continue
5132 else
5133 # Passes both tests.
5134 ac_preproc_ok=:
5135 break
5136 fi
5137 rm -f conftest.err conftest.i conftest.$ac_ext
5138
5139 done
5140 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5141 rm -f conftest.i conftest.err conftest.$ac_ext
5142 if $ac_preproc_ok; then :
5143
5144 else
5145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5147 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5148 See \`config.log' for more details" "$LINENO" 5; }
5149 fi
5150
5151 ac_ext=c
5152 ac_cpp='$CPP $CPPFLAGS'
5153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5156
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5159 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5160 if ${ac_cv_path_GREP+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 if test -z "$GREP"; then
5164 ac_path_GREP_found=false
5165 # Loop through the user's path and test for each of PROGNAME-LIST
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5167 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5168 do
5169 IFS=$as_save_IFS
5170 test -z "$as_dir" && as_dir=.
5171 for ac_prog in grep ggrep; do
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5174 as_fn_executable_p "$ac_path_GREP" || continue
5175 # Check for GNU ac_path_GREP and select it if it is found.
5176 # Check for GNU $ac_path_GREP
5177 case `"$ac_path_GREP" --version 2>&1` in
5178 *GNU*)
5179 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5180 *)
5181 ac_count=0
5182 $as_echo_n 0123456789 >"conftest.in"
5183 while :
5184 do
5185 cat "conftest.in" "conftest.in" >"conftest.tmp"
5186 mv "conftest.tmp" "conftest.in"
5187 cp "conftest.in" "conftest.nl"
5188 $as_echo 'GREP' >> "conftest.nl"
5189 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5190 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5191 as_fn_arith $ac_count + 1 && ac_count=$as_val
5192 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5193 # Best one so far, save it but keep looking for a better one
5194 ac_cv_path_GREP="$ac_path_GREP"
5195 ac_path_GREP_max=$ac_count
5196 fi
5197 # 10*(2^10) chars as input seems more than enough
5198 test $ac_count -gt 10 && break
5199 done
5200 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5201 esac
5202
5203 $ac_path_GREP_found && break 3
5204 done
5205 done
5206 done
5207 IFS=$as_save_IFS
5208 if test -z "$ac_cv_path_GREP"; then
5209 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5210 fi
5211 else
5212 ac_cv_path_GREP=$GREP
5213 fi
5214
5215 fi
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5217 $as_echo "$ac_cv_path_GREP" >&6; }
5218 GREP="$ac_cv_path_GREP"
5219
5220
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5222 $as_echo_n "checking for egrep... " >&6; }
5223 if ${ac_cv_path_EGREP+:} false; then :
5224 $as_echo_n "(cached) " >&6
5225 else
5226 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5227 then ac_cv_path_EGREP="$GREP -E"
5228 else
5229 if test -z "$EGREP"; then
5230 ac_path_EGREP_found=false
5231 # Loop through the user's path and test for each of PROGNAME-LIST
5232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5234 do
5235 IFS=$as_save_IFS
5236 test -z "$as_dir" && as_dir=.
5237 for ac_prog in egrep; do
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5240 as_fn_executable_p "$ac_path_EGREP" || continue
5241 # Check for GNU ac_path_EGREP and select it if it is found.
5242 # Check for GNU $ac_path_EGREP
5243 case `"$ac_path_EGREP" --version 2>&1` in
5244 *GNU*)
5245 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5246 *)
5247 ac_count=0
5248 $as_echo_n 0123456789 >"conftest.in"
5249 while :
5250 do
5251 cat "conftest.in" "conftest.in" >"conftest.tmp"
5252 mv "conftest.tmp" "conftest.in"
5253 cp "conftest.in" "conftest.nl"
5254 $as_echo 'EGREP' >> "conftest.nl"
5255 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5256 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5257 as_fn_arith $ac_count + 1 && ac_count=$as_val
5258 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5259 # Best one so far, save it but keep looking for a better one
5260 ac_cv_path_EGREP="$ac_path_EGREP"
5261 ac_path_EGREP_max=$ac_count
5262 fi
5263 # 10*(2^10) chars as input seems more than enough
5264 test $ac_count -gt 10 && break
5265 done
5266 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5267 esac
5268
5269 $ac_path_EGREP_found && break 3
5270 done
5271 done
5272 done
5273 IFS=$as_save_IFS
5274 if test -z "$ac_cv_path_EGREP"; then
5275 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5276 fi
5277 else
5278 ac_cv_path_EGREP=$EGREP
5279 fi
5280
5281 fi
5282 fi
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5284 $as_echo "$ac_cv_path_EGREP" >&6; }
5285 EGREP="$ac_cv_path_EGREP"
5286
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5289 $as_echo_n "checking for ANSI C header files... " >&6; }
5290 if ${ac_cv_header_stdc+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 #include <stdlib.h>
5296 #include <stdarg.h>
5297 #include <string.h>
5298 #include <float.h>
5299
5300 int
5301 main ()
5302 {
5303
5304 ;
5305 return 0;
5306 }
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"; then :
5309 ac_cv_header_stdc=yes
5310 else
5311 ac_cv_header_stdc=no
5312 fi
5313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5314
5315 if test $ac_cv_header_stdc = yes; then
5316 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318 /* end confdefs.h. */
5319 #include <string.h>
5320
5321 _ACEOF
5322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5323 $EGREP "memchr" >/dev/null 2>&1; then :
5324
5325 else
5326 ac_cv_header_stdc=no
5327 fi
5328 rm -f conftest*
5329
5330 fi
5331
5332 if test $ac_cv_header_stdc = yes; then
5333 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #include <stdlib.h>
5337
5338 _ACEOF
5339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5340 $EGREP "free" >/dev/null 2>&1; then :
5341
5342 else
5343 ac_cv_header_stdc=no
5344 fi
5345 rm -f conftest*
5346
5347 fi
5348
5349 if test $ac_cv_header_stdc = yes; then
5350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5351 if test "$cross_compiling" = yes; then :
5352 :
5353 else
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356 #include <ctype.h>
5357 #include <stdlib.h>
5358 #if ((' ' & 0x0FF) == 0x020)
5359 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5360 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5361 #else
5362 # define ISLOWER(c) \
5363 (('a' <= (c) && (c) <= 'i') \
5364 || ('j' <= (c) && (c) <= 'r') \
5365 || ('s' <= (c) && (c) <= 'z'))
5366 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5367 #endif
5368
5369 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5370 int
5371 main ()
5372 {
5373 int i;
5374 for (i = 0; i < 256; i++)
5375 if (XOR (islower (i), ISLOWER (i))
5376 || toupper (i) != TOUPPER (i))
5377 return 2;
5378 return 0;
5379 }
5380 _ACEOF
5381 if ac_fn_c_try_run "$LINENO"; then :
5382
5383 else
5384 ac_cv_header_stdc=no
5385 fi
5386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5387 conftest.$ac_objext conftest.beam conftest.$ac_ext
5388 fi
5389
5390 fi
5391 fi
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5393 $as_echo "$ac_cv_header_stdc" >&6; }
5394 if test $ac_cv_header_stdc = yes; then
5395
5396 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5397
5398 fi
5399
5400 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5401 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5402 inttypes.h stdint.h unistd.h
5403 do :
5404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5405 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5406 "
5407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5408 cat >>confdefs.h <<_ACEOF
5409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5410 _ACEOF
5411
5412 fi
5413
5414 done
5415
5416
5417 for ac_header in pthread.h
5418 do :
5419 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5420 if test "x$ac_cv_header_pthread_h" = xyes; then :
5421 cat >>confdefs.h <<_ACEOF
5422 #define HAVE_PTHREAD_H 1
5423 _ACEOF
5424
5425 fi
5426
5427 done
5428
5429
5430 # What crypto backend to use and if we want to have support GOST
5431
5432
5433 # First check if we want to support ECC and GOST
5434
5435 # Check whether --enable-ecc was given.
5436 if test "${enable_ecc+set}" = set; then :
5437 enableval=$enable_ecc; enable_ecc="${enableval}"
5438 else
5439 enable_ecc="detect"
5440
5441 fi
5442
5443
5444 # Check whether --enable-gost was given.
5445 if test "${enable_gost+set}" = set; then :
5446 enableval=$enable_gost; enable_gost="${enableval}"
5447 else
5448 enable_gost="detect"
5449
5450 fi
5451
5452
5453 # Add Eddsa check
5454
5455 # Check whether --enable-eddsa was given.
5456 if test "${enable_eddsa+set}" = set; then :
5457 enableval=$enable_eddsa; enable_eddsa="${enableval}"
5458 else
5459 enable_eddsa="detect"
5460
5461 fi
5462
5463
5464 # Second check for the FIPS 140-2 mode
5465
5466 # Check whether --enable-fips was given.
5467 if test "${enable_fips+set}" = set; then :
5468 enableval=$enable_fips; enable_fips="${enableval}"
5469 else
5470 enable_fips="no"
5471
5472 fi
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIPS 140-2 mode" >&5
5475 $as_echo_n "checking for FIPS 140-2 mode... " >&6; }
5476 if test "x${enable_fips}" = "xyes"; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5478 $as_echo "yes" >&6; }
5479
5480 cat >>confdefs.h <<_ACEOF
5481 #define WITH_FIPS /**/
5482 _ACEOF
5483
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489 # Then check what crypto library we want to use
5490
5491
5492 # Check whether --with-crypto-backend was given.
5493 if test "${with_crypto_backend+set}" = set; then :
5494 withval=$with_crypto_backend; crypto_backend="${withval}"
5495 else
5496 crypto_backend="openssl"
5497
5498 fi
5499
5500
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypto backend" >&5
5502 $as_echo_n "checking for crypto backend... " >&6; }
5503
5504 if test "x${crypto_backend}" = "xopenssl"; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
5506 $as_echo "OpenSSL" >&6; }
5507
5508 if test "x${enable_fips}" = "xyes"; then
5509
5510
5511 # Check whether --with-openssl was given.
5512 if test "${with_openssl+set}" = set; then :
5513 withval=$with_openssl;
5514 OPENSSL_INCLUDES="-I$withval/include"
5515 OPENSSL_LIBDIRS="-L$withval/lib"
5516
5517 else
5518
5519 OPENSSL_INCLUDES=""
5520 OPENSSL_LIBDIRS=""
5521
5522 fi
5523
5524
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what are the OpenSSL includes" >&5
5526 $as_echo_n "checking what are the OpenSSL includes... " >&6; }
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_INCLUDES" >&5
5528 $as_echo "$OPENSSL_INCLUDES" >&6; }
5529
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what are the OpenSSL libs" >&5
5531 $as_echo_n "checking what are the OpenSSL libs... " >&6; }
5532 OPENSSL_LIBS="$OPENSSL_LIBDIRS -lcrypto"
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5
5534 $as_echo "$OPENSSL_LIBS" >&6; }
5535
5536 tmp_CPPFLAGS=$CPPFLAGS
5537 tmp_LIBS=$LIBS
5538
5539 CPPFLAGS="$CPPFLAGS $OPENSSL_INCLUDES"
5540 LIBS="$OPENSSL_LIBS $LIBS"
5541
5542 for ac_header in openssl/ssl.h
5543 do :
5544 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
5545 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5546 cat >>confdefs.h <<_ACEOF
5547 #define HAVE_OPENSSL_SSL_H 1
5548 _ACEOF
5549
5550 else
5551 as_fn_error $? "Can't find OpenSSL headers" "$LINENO" 5
5552 fi
5553
5554 done
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_new in -lcrypto" >&5
5557 $as_echo_n "checking for BN_new in -lcrypto... " >&6; }
5558 if ${ac_cv_lib_crypto_BN_new+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 ac_check_lib_save_LIBS=$LIBS
5562 LIBS="-lcrypto $LIBS"
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565
5566 /* Override any GCC internal prototype to avoid an error.
5567 Use char because int might match the return type of a GCC
5568 builtin and then its argument prototype would still apply. */
5569 #ifdef __cplusplus
5570 extern "C"
5571 #endif
5572 char BN_new ();
5573 int
5574 main ()
5575 {
5576 return BN_new ();
5577 ;
5578 return 0;
5579 }
5580 _ACEOF
5581 if ac_fn_c_try_link "$LINENO"; then :
5582 ac_cv_lib_crypto_BN_new=yes
5583 else
5584 ac_cv_lib_crypto_BN_new=no
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext \
5587 conftest$ac_exeext conftest.$ac_ext
5588 LIBS=$ac_check_lib_save_LIBS
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_new" >&5
5591 $as_echo "$ac_cv_lib_crypto_BN_new" >&6; }
5592 if test "x$ac_cv_lib_crypto_BN_new" = xyes; then :
5593 cat >>confdefs.h <<_ACEOF
5594 #define HAVE_LIBCRYPTO 1
5595 _ACEOF
5596
5597 LIBS="-lcrypto $LIBS"
5598
5599 else
5600 as_fn_error $? "Can't find OpenSSL library" "$LINENO" 5
5601 fi
5602
5603
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
5605 $as_echo_n "checking for OpenSSL version... " >&6; }
5606 CHECK_OPENSSL_VERSION=0x010001000L
5607 ac_ext=c
5608 ac_cpp='$CPP $CPPFLAGS'
5609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5612
5613 if ${acx_cv_lib_openssl_sufficient+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616
5617 acx_cv_lib_openssl_sufficient=no
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5619 /* end confdefs.h. */
5620
5621
5622 #include <openssl/ssl.h>
5623 #include <openssl/opensslv.h>
5624 int main()
5625 {
5626 #ifndef OPENSSL_VERSION_NUMBER
5627 #error "OpenSSL version undefined"
5628 #endif
5629 #if OPENSSL_VERSION_NUMBER >= $CHECK_OPENSSL_VERSION
5630 return 0;
5631 #else
5632 #error "OpenSSL too old"
5633 #endif
5634 }
5635
5636
5637 _ACEOF
5638 if ac_fn_c_try_compile "$LINENO"; then :
5639
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 1.0.1" >&5
5641 $as_echo ">= 1.0.1" >&6; }
5642 acx_cv_lib_openssl_sufficient=yes
5643
5644 else
5645
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 1.0.1" >&5
5647 $as_echo "< 1.0.1" >&6; }
5648 as_fn_error $? "OpenSSL library too old (1.0.1 or later required)" "$LINENO" 5
5649
5650 fi
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652
5653 fi
5654
5655 ac_ext=c
5656 ac_cpp='$CPP $CPPFLAGS'
5657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5660
5661
5662 CPPFLAGS=$tmp_CPPFLAGS
5663 LIBS=$tmp_LIBS
5664
5665
5666
5667
5668 else
5669
5670
5671 # Check whether --with-openssl was given.
5672 if test "${with_openssl+set}" = set; then :
5673 withval=$with_openssl;
5674 OPENSSL_INCLUDES="-I$withval/include"
5675 OPENSSL_LIBDIRS="-L$withval/lib"
5676
5677 else
5678
5679 OPENSSL_INCLUDES=""
5680 OPENSSL_LIBDIRS=""
5681
5682 fi
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what are the OpenSSL includes" >&5
5686 $as_echo_n "checking what are the OpenSSL includes... " >&6; }
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_INCLUDES" >&5
5688 $as_echo "$OPENSSL_INCLUDES" >&6; }
5689
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what are the OpenSSL libs" >&5
5691 $as_echo_n "checking what are the OpenSSL libs... " >&6; }
5692 OPENSSL_LIBS="$OPENSSL_LIBDIRS -lcrypto"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5
5694 $as_echo "$OPENSSL_LIBS" >&6; }
5695
5696 tmp_CPPFLAGS=$CPPFLAGS
5697 tmp_LIBS=$LIBS
5698
5699 CPPFLAGS="$CPPFLAGS $OPENSSL_INCLUDES"
5700 LIBS="$OPENSSL_LIBS $LIBS"
5701
5702 for ac_header in openssl/ssl.h
5703 do :
5704 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
5705 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
5706 cat >>confdefs.h <<_ACEOF
5707 #define HAVE_OPENSSL_SSL_H 1
5708 _ACEOF
5709
5710 else
5711 as_fn_error $? "Can't find OpenSSL headers" "$LINENO" 5
5712 fi
5713
5714 done
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BN_new in -lcrypto" >&5
5717 $as_echo_n "checking for BN_new in -lcrypto... " >&6; }
5718 if ${ac_cv_lib_crypto_BN_new+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 ac_check_lib_save_LIBS=$LIBS
5722 LIBS="-lcrypto $LIBS"
5723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724 /* end confdefs.h. */
5725
5726 /* Override any GCC internal prototype to avoid an error.
5727 Use char because int might match the return type of a GCC
5728 builtin and then its argument prototype would still apply. */
5729 #ifdef __cplusplus
5730 extern "C"
5731 #endif
5732 char BN_new ();
5733 int
5734 main ()
5735 {
5736 return BN_new ();
5737 ;
5738 return 0;
5739 }
5740 _ACEOF
5741 if ac_fn_c_try_link "$LINENO"; then :
5742 ac_cv_lib_crypto_BN_new=yes
5743 else
5744 ac_cv_lib_crypto_BN_new=no
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext \
5747 conftest$ac_exeext conftest.$ac_ext
5748 LIBS=$ac_check_lib_save_LIBS
5749 fi
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BN_new" >&5
5751 $as_echo "$ac_cv_lib_crypto_BN_new" >&6; }
5752 if test "x$ac_cv_lib_crypto_BN_new" = xyes; then :
5753 cat >>confdefs.h <<_ACEOF
5754 #define HAVE_LIBCRYPTO 1
5755 _ACEOF
5756
5757 LIBS="-lcrypto $LIBS"
5758
5759 else
5760 as_fn_error $? "Can't find OpenSSL library" "$LINENO" 5
5761 fi
5762
5763
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL version" >&5
5765 $as_echo_n "checking for OpenSSL version... " >&6; }
5766 CHECK_OPENSSL_VERSION=0x010000000L
5767 ac_ext=c
5768 ac_cpp='$CPP $CPPFLAGS'
5769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772
5773 if ${acx_cv_lib_openssl_sufficient+:} false; then :
5774 $as_echo_n "(cached) " >&6
5775 else
5776
5777 acx_cv_lib_openssl_sufficient=no
5778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5779 /* end confdefs.h. */
5780
5781
5782 #include <openssl/ssl.h>
5783 #include <openssl/opensslv.h>
5784 int main()
5785 {
5786 #ifndef OPENSSL_VERSION_NUMBER
5787 #error "OpenSSL version undefined"
5788 #endif
5789 #if OPENSSL_VERSION_NUMBER >= $CHECK_OPENSSL_VERSION
5790 return 0;
5791 #else
5792 #error "OpenSSL too old"
5793 #endif
5794 }
5795
5796
5797 _ACEOF
5798 if ac_fn_c_try_compile "$LINENO"; then :
5799
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: >= 1.0.0" >&5
5801 $as_echo ">= 1.0.0" >&6; }
5802 acx_cv_lib_openssl_sufficient=yes
5803
5804 else
5805
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: < 1.0.0" >&5
5807 $as_echo "< 1.0.0" >&6; }
5808 as_fn_error $? "OpenSSL library too old (1.0.0 or later required)" "$LINENO" 5
5809
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812
5813 fi
5814
5815 ac_ext=c
5816 ac_cpp='$CPP $CPPFLAGS'
5817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5820
5821
5822 CPPFLAGS=$tmp_CPPFLAGS
5823 LIBS=$tmp_LIBS
5824
5825
5826
5827
5828 fi
5829
5830 CRYPTO_INCLUDES=$OPENSSL_INCLUDES
5831 CRYPTO_LIBS=$OPENSSL_LIBS
5832
5833 case "${enable_ecc}" in
5834 yes|detect)
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL ECC support" >&5
5836 $as_echo_n "checking for OpenSSL ECC support... " >&6; }
5837
5838 tmp_CPPFLAGS=$CPPFLAGS
5839 tmp_LIBS=$LIBS
5840
5841 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
5842 LIBS="$CRYPTO_LIBS $LIBS"
5843
5844 ac_ext=c
5845 ac_cpp='$CPP $CPPFLAGS'
5846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5849
5850 if ${acx_cv_lib_openssl_ecc_support+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853
5854 acx_cv_lib_openssl_ecc_support=no
5855 if test "$cross_compiling" = yes; then :
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot test, assuming P256, P384, and P521" >&5
5858 $as_echo "$as_me: WARNING: Cannot test, assuming P256, P384, and P521" >&2;}
5859 acx_cv_lib_openssl_ecc_support=yes
5860
5861 else
5862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863 /* end confdefs.h. */
5864
5865
5866 #include <openssl/ecdsa.h>
5867 #include <openssl/objects.h>
5868 int main()
5869 {
5870 EC_KEY *ec256, *ec384, *ec521;
5871
5872 ec256 = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
5873 ec384 = EC_KEY_new_by_curve_name(NID_secp384r1);
5874 ec521 = EC_KEY_new_by_curve_name(NID_secp521r1);
5875 if (ec256 == NULL || ec384 == NULL || ec521 == NULL)
5876 return 1;
5877 return 0;
5878 }
5879
5880
5881 _ACEOF
5882 if ac_fn_c_try_run "$LINENO"; then :
5883
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found P256, P384, and P521" >&5
5885 $as_echo "Found P256, P384, and P521" >&6; }
5886 acx_cv_lib_openssl_ecc_support=yes
5887
5888 else
5889
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find P256, P384, or P521" >&5
5891 $as_echo "Cannot find P256, P384, or P521" >&6; }
5892 acx_cv_lib_openssl_ecc_support=no
5893
5894 fi
5895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5896 conftest.$ac_objext conftest.beam conftest.$ac_ext
5897 fi
5898
5899
5900 fi
5901
5902 ac_ext=c
5903 ac_cpp='$CPP $CPPFLAGS'
5904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5907
5908
5909 CPPFLAGS=$tmp_CPPFLAGS
5910 LIBS=$tmp_LIBS
5911 have_lib_openssl_ecc_support="${acx_cv_lib_openssl_ecc_support}"
5912 ;;
5913 esac
5914 case "${enable_ecc}-${have_lib_openssl_ecc_support}" in
5915 yes-no) as_fn_error $? "OpenSSL library has no ECC support" "$LINENO" 5;;
5916 detect-*) enable_ecc="${have_lib_openssl_ecc_support}";;
5917 esac
5918
5919 case "${enable_eddsa}" in
5920 yes|detect)
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL EDDSA ED25519 support" >&5
5922 $as_echo_n "checking for OpenSSL EDDSA ED25519 support... " >&6; }
5923
5924 tmp_CPPFLAGS=$CPPFLAGS
5925 tmp_LIBS=$LIBS
5926
5927 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
5928 LIBS="$CRYPTO_LIBS $LIBS"
5929
5930 ac_ext=c
5931 ac_cpp='$CPP $CPPFLAGS'
5932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5935
5936 if ${acx_cv_lib_openssl_ed25519_support+:} false; then :
5937 $as_echo_n "(cached) " >&6
5938 else
5939
5940 acx_cv_lib_openssl_ed25519_support=no
5941 if test "$cross_compiling" = yes; then :
5942
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot test, ED25519" >&5
5944 $as_echo "$as_me: WARNING: Cannot test, ED25519" >&2;}
5945 acx_cv_lib_openssl_ed25519_support=yes
5946
5947 else
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950
5951
5952 #include <openssl/evp.h>
5953 #include <openssl/objects.h>
5954 int main()
5955 {
5956 EVP_PKEY_CTX *ctx;
5957
5958 ctx = EVP_PKEY_CTX_new_id(NID_ED25519, NULL);
5959 if (ctx == NULL)
5960 return 1;
5961 return 0;
5962 }
5963
5964
5965 _ACEOF
5966 if ac_fn_c_try_run "$LINENO"; then :
5967
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found ED25519" >&5
5969 $as_echo "Found ED25519" >&6; }
5970 acx_cv_lib_openssl_ed25519_support=yes
5971
5972 else
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find ED25519" >&5
5975 $as_echo "Cannot find ED25519" >&6; }
5976 acx_cv_lib_openssl_ed25519_support=no
5977
5978 fi
5979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5980 conftest.$ac_objext conftest.beam conftest.$ac_ext
5981 fi
5982
5983
5984 fi
5985
5986
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL EDDSA ED448 support" >&5
5988 $as_echo_n "checking for OpenSSL EDDSA ED448 support... " >&6; }
5989 if ${acx_cv_lib_openssl_ed448_support+:} false; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992
5993 acx_cv_lib_openssl_ed448_support=no
5994 if test "$cross_compiling" = yes; then :
5995
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot test, ED448" >&5
5997 $as_echo "$as_me: WARNING: Cannot test, ED448" >&2;}
5998 acx_cv_lib_openssl_ed448_support=yes
5999
6000 else
6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6002 /* end confdefs.h. */
6003
6004
6005 #include <openssl/evp.h>
6006 #include <openssl/objects.h>
6007 int main()
6008 {
6009 EVP_PKEY_CTX *ctx;
6010
6011 ctx = EVP_PKEY_CTX_new_id(NID_ED448, NULL);
6012 if (ctx == NULL)
6013 return 1;
6014 return 0;
6015 }
6016
6017
6018 _ACEOF
6019 if ac_fn_c_try_run "$LINENO"; then :
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found ED448" >&5
6022 $as_echo "Found ED448" >&6; }
6023 acx_cv_lib_openssl_ed448_support=yes
6024
6025 else
6026
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find ED448" >&5
6028 $as_echo "Cannot find ED448" >&6; }
6029 acx_cv_lib_openssl_ed448_support=no
6030
6031 fi
6032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6033 conftest.$ac_objext conftest.beam conftest.$ac_ext
6034 fi
6035
6036
6037 fi
6038
6039 ac_ext=c
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044
6045
6046 CPPFLAGS=$tmp_CPPFLAGS
6047 LIBS=$tmp_LIBS
6048 have_lib_openssl_ed25519_support="${acx_cv_lib_openssl_ed25519_support}"
6049 have_lib_openssl_ed448_support="${acx_cv_lib_openssl_ed448_support}"
6050 ;;
6051 esac
6052 case "${enable_eddsa}-${have_lib_openssl_ed25519_support}-${have_lib_openssl_ed448_support}" in
6053 yes*-no*) as_fn_error $? "OpenSSL library has no EDDSA support" "$LINENO" 5;;
6054 detect-yes-yes) enable_eddsa="yes";;
6055 detect*-no*) enable_eddsa="no";;
6056 esac
6057
6058 case "${enable_gost}-${enable_fips}" in
6059 yes-yes) as_fn_error $? "GOST is not FIPS approved" "$LINENO" 5;;
6060 yes-no|detect-no)
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL GOST support" >&5
6062 $as_echo_n "checking for OpenSSL GOST support... " >&6; }
6063
6064 tmp_CPPFLAGS=$CPPFLAGS
6065 tmp_LIBS=$LIBS
6066
6067 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
6068 LIBS="$CRYPTO_LIBS $LIBS"
6069
6070 ac_ext=c
6071 ac_cpp='$CPP $CPPFLAGS'
6072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6075
6076 if ${acx_cv_lib_openssl_gost_support+:} false; then :
6077 $as_echo_n "(cached) " >&6
6078 else
6079
6080 acx_cv_lib_openssl_gost_support=no
6081 if test "$cross_compiling" = yes; then :
6082
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot test, assuming GOST engine" >&5
6084 $as_echo "$as_me: WARNING: Cannot test, assuming GOST engine" >&2;}
6085 acx_cv_lib_openssl_gost_support=yes
6086
6087 else
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089 /* end confdefs.h. */
6090
6091
6092 #include <openssl/engine.h>
6093 #include <openssl/crypto.h>
6094 #include <openssl/opensslv.h>
6095 int main()
6096 {
6097 ENGINE* eg;
6098 const EVP_MD* EVP_GOST_34_11;
6099
6100 /* Initialise OpenSSL */
6101 OpenSSL_add_all_algorithms();
6102
6103 /* Load engines */
6104 #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
6105 ENGINE_load_builtin_engines();
6106 #else
6107 OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN | OPENSSL_INIT_LOAD_CONFIG, NULL);
6108 #endif
6109
6110 /* Initialise the GOST engine */
6111 eg = ENGINE_by_id("gost");
6112 if (eg == NULL)
6113 return 1;
6114 if (ENGINE_init(eg) <= 0)
6115 return 1;
6116
6117 /* better than digest_gost */
6118 EVP_GOST_34_11 = ENGINE_get_digest(eg, NID_id_GostR3411_94);
6119 if (EVP_GOST_34_11 == NULL)
6120 return 1;
6121
6122 /* from the openssl.cnf */
6123 if (ENGINE_register_pkey_asn1_meths(eg) <= 0)
6124 return 1;
6125 if (ENGINE_ctrl_cmd_string(eg,
6126 "CRYPT_PARAMS",
6127 "id-Gost28147-89-CryptoPro-A-ParamSet",
6128 0) <= 0)
6129 return 1;
6130
6131 return 0;
6132 }
6133
6134
6135 _ACEOF
6136 if ac_fn_c_try_run "$LINENO"; then :
6137
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found GOST engine" >&5
6139 $as_echo "Found GOST engine" >&6; }
6140 acx_cv_lib_openssl_gost_support=yes
6141
6142 else
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find GOST engine" >&5
6145 $as_echo "Cannot find GOST engine" >&6; }
6146 acx_cv_lib_openssl_gost_support=no
6147
6148 fi
6149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6150 conftest.$ac_objext conftest.beam conftest.$ac_ext
6151 fi
6152
6153
6154 fi
6155
6156 ac_ext=c
6157 ac_cpp='$CPP $CPPFLAGS'
6158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6161
6162
6163 CPPFLAGS=$tmp_CPPFLAGS
6164 LIBS=$tmp_LIBS
6165 have_lib_openssl_gost_support="${acx_cv_lib_openssl_gost_support}"
6166 ;;
6167 esac
6168 case "${enable_gost}-${have_lib_openssl_gost_support}" in
6169 yes-no) as_fn_error $? "OpenSSL library has no GOST support" "$LINENO" 5;;
6170 detect-*) enable_gost="${have_lib_openssl_gost_support}";;
6171 esac
6172
6173 if test "x${enable_fips}" = "xyes"; then
6174
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL FIPS capable library" >&5
6176 $as_echo_n "checking for OpenSSL FIPS capable library... " >&6; }
6177
6178 tmp_CPPFLAGS=$CPPFLAGS
6179 tmp_LIBS=$LIBS
6180
6181 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
6182 LIBS="$CRYPTO_LIBS $LIBS"
6183
6184 # check whether we can build an application which can
6185 # "reference the OpenSSL FIPS object module"
6186
6187 ac_ext=c
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6192
6193 if ${acx_cv_lib_openssl_fips+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196
6197 acx_cv_lib_openssl_fips=no
6198 if test "$cross_compiling" = yes; then :
6199
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot test, assuming FIPS" >&5
6201 $as_echo "$as_me: WARNING: Cannot test, assuming FIPS" >&2;}
6202 acx_cv_lib_openssl_fips=yes
6203
6204 else
6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6206 /* end confdefs.h. */
6207
6208
6209 #include <openssl/crypto.h>
6210 int main()
6211 {
6212 return !FIPS_mode_set(1);
6213 }
6214
6215
6216 _ACEOF
6217 if ac_fn_c_try_run "$LINENO"; then :
6218
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found working FIPS_mode_set()" >&5
6220 $as_echo "Found working FIPS_mode_set()" >&6; }
6221 acx_cv_lib_openssl_fips=yes
6222
6223 else
6224
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: FIPS_mode_set(1) failed" >&5
6226 $as_echo "FIPS_mode_set(1) failed" >&6; }
6227 as_fn_error $? "OpenSSL library is not FIPS capable" "$LINENO" 5
6228
6229 fi
6230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6231 conftest.$ac_objext conftest.beam conftest.$ac_ext
6232 fi
6233
6234
6235 fi
6236
6237 ac_ext=c
6238 ac_cpp='$CPP $CPPFLAGS'
6239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6242
6243
6244 # build missing fips_premain_dso tool
6245
6246 if test "x${FIPSLD_CC}" != "x"; then
6247 THERE="`echo $CC | sed -e 's|[^/]*$||'`"..
6248 if test "x${FIPSLIBDIR}" != "x"; then
6249 PREMAIN_C="${FIPSLIBDIR}/fips_premain.c"
6250 elif test -f "${THERE}/fips/fips_premain.c"; then
6251 PREMAIN_C="${THERE}/fips/fips_premain.c"
6252 elif test -f "${THERE}/lib/fips_premain.c"; then
6253 PREMAIN_C="${THERE}/lib/fips_premain.c"
6254 else
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find fips_premain.c" >&5
6256 $as_echo "$as_me: WARNING: can't find fips_premain.c" >&2;}
6257 fi
6258
6259 $FIPSLD_CC $CPPFLAGS -DFINGERPRINT_PREMAIN_DSO_LOAD \
6260 -o src/lib/fips_premain_dso $PREMAIN_C $LIBS
6261 fi
6262
6263 CPPFLAGS=$tmp_CPPFLAGS
6264 LIBS=$tmp_LIBS
6265
6266 else
6267
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL EVP interface for AES key wrapping" >&5
6269 $as_echo_n "checking OpenSSL EVP interface for AES key wrapping... " >&6; }
6270
6271 tmp_CPPFLAGS=$CPPFLAGS
6272 tmp_LIBS=$LIBS
6273
6274 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
6275 LIBS="$CRYPTO_LIBS $LIBS"
6276
6277 ac_ext=c
6278 ac_cpp='$CPP $CPPFLAGS'
6279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6282
6283
6284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6285 /* end confdefs.h. */
6286
6287
6288 #include <openssl/evp.h>
6289 int main()
6290 {
6291 EVP_aes_128_wrap();
6292 return 1;
6293 }
6294
6295
6296 _ACEOF
6297 if ac_fn_c_try_link "$LINENO"; then :
6298
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RFC 3394 is supported" >&5
6300 $as_echo "RFC 3394 is supported" >&6; }
6301
6302 $as_echo "#define HAVE_AES_KEY_WRAP 1" >>confdefs.h
6303
6304
6305 else
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RFC 3394 is not supported" >&5
6308 $as_echo "RFC 3394 is not supported" >&6; }
6309
6310 fi
6311 rm -f core conftest.err conftest.$ac_objext \
6312 conftest$ac_exeext conftest.$ac_ext
6313
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL EVP interface for AES key wrapping with pad" >&5
6315 $as_echo_n "checking OpenSSL EVP interface for AES key wrapping with pad... " >&6; }
6316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317 /* end confdefs.h. */
6318
6319
6320 #include <openssl/evp.h>
6321 int main()
6322 {
6323 EVP_aes_128_wrap_pad();
6324 return 1;
6325 }
6326
6327
6328 _ACEOF
6329 if ac_fn_c_try_link "$LINENO"; then :
6330
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RFC 5649 is supported" >&5
6332 $as_echo "RFC 5649 is supported" >&6; }
6333
6334 $as_echo "#define HAVE_AES_KEY_WRAP_PAD 1" >>confdefs.h
6335
6336
6337 else
6338
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: RFC 5649 is not supported" >&5
6340 $as_echo "RFC 5649 is not supported" >&6; }
6341
6342 fi
6343 rm -f core conftest.err conftest.$ac_objext \
6344 conftest$ac_exeext conftest.$ac_ext
6345
6346 ac_ext=c
6347 ac_cpp='$CPP $CPPFLAGS'
6348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351
6352
6353 CPPFLAGS=$tmp_CPPFLAGS
6354 LIBS=$tmp_LIBS
6355
6356 fi
6357
6358
6359 cat >>confdefs.h <<_ACEOF
6360 #define WITH_RAW_PSS 1
6361 _ACEOF
6362
6363
6364 cat >>confdefs.h <<_ACEOF
6365 #define WITH_OPENSSL /**/
6366 _ACEOF
6367
6368
6369 elif test "x${crypto_backend}" = "xbotan"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Botan" >&5
6371 $as_echo "Botan" >&6; }
6372
6373
6374 WITH_BOTAN=
6375
6376 # Check whether --with-botan was given.
6377 if test "${with_botan+set}" = set; then :
6378 withval=$with_botan;
6379 BOTAN_PATH="$withval"
6380 WITH_BOTAN=1
6381
6382 else
6383
6384 BOTAN_PATH="/usr/local"
6385
6386 fi
6387
6388
6389 if test -n "${PKG_CONFIG}" && test -z "${WITH_BOTAN}"; then
6390
6391 pkg_failed=no
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for botan-2 >= 2.0.0" >&5
6393 $as_echo_n "checking for botan-2 >= 2.0.0... " >&6; }
6394
6395 if test -n "$BOTAN_CFLAGS"; then
6396 pkg_cv_BOTAN_CFLAGS="$BOTAN_CFLAGS"
6397 elif test -n "$PKG_CONFIG"; then
6398 if test -n "$PKG_CONFIG" && \
6399 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"botan-2 >= 2.0.0\""; } >&5
6400 ($PKG_CONFIG --exists --print-errors "botan-2 >= 2.0.0") 2>&5
6401 ac_status=$?
6402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403 test $ac_status = 0; }; then
6404 pkg_cv_BOTAN_CFLAGS=`$PKG_CONFIG --cflags "botan-2 >= 2.0.0" 2>/dev/null`
6405 test "x$?" != "x0" && pkg_failed=yes
6406 else
6407 pkg_failed=yes
6408 fi
6409 else
6410 pkg_failed=untried
6411 fi
6412 if test -n "$BOTAN_LIBS"; then
6413 pkg_cv_BOTAN_LIBS="$BOTAN_LIBS"
6414 elif test -n "$PKG_CONFIG"; then
6415 if test -n "$PKG_CONFIG" && \
6416 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"botan-2 >= 2.0.0\""; } >&5
6417 ($PKG_CONFIG --exists --print-errors "botan-2 >= 2.0.0") 2>&5
6418 ac_status=$?
6419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6420 test $ac_status = 0; }; then
6421 pkg_cv_BOTAN_LIBS=`$PKG_CONFIG --libs "botan-2 >= 2.0.0" 2>/dev/null`
6422 test "x$?" != "x0" && pkg_failed=yes
6423 else
6424 pkg_failed=yes
6425 fi
6426 else
6427 pkg_failed=untried
6428 fi
6429
6430
6431
6432 if test $pkg_failed = yes; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6435
6436 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6437 _pkg_short_errors_supported=yes
6438 else
6439 _pkg_short_errors_supported=no
6440 fi
6441 if test $_pkg_short_errors_supported = yes; then
6442 BOTAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "botan-2 >= 2.0.0" 2>&1`
6443 else
6444 BOTAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "botan-2 >= 2.0.0" 2>&1`
6445 fi
6446 # Put the nasty error message in config.log where it belongs
6447 echo "$BOTAN_PKG_ERRORS" >&5
6448
6449
6450 as_fn_error $? "Cannot find Botan" "$LINENO" 5
6451
6452 elif test $pkg_failed = untried; then
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455
6456 as_fn_error $? "Cannot find Botan" "$LINENO" 5
6457
6458 else
6459 BOTAN_CFLAGS=$pkg_cv_BOTAN_CFLAGS
6460 BOTAN_LIBS=$pkg_cv_BOTAN_LIBS
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6462 $as_echo "yes" >&6; }
6463
6464 BOTAN_VERSION_MAJOR=2
6465 BOTAN_VERSION_MINOR=0
6466
6467 fi
6468 else
6469 BOTAN_VERSION_MAJOR=2
6470 BOTAN_VERSION_MINOR=0
6471 if test -f "$BOTAN_PATH/include/botan-2/botan/version.h"; then
6472 BOTAN_VERSION_MAJOR=2
6473 BOTAN_VERSION_MINOR=0
6474 else
6475 as_fn_error $? "Cannot find Botan includes" "$LINENO" 5
6476 fi
6477
6478 if test "x${BOTAN_VERSION_MAJOR}" = "x2"; then
6479 BOTAN_CFLAGS="-I$BOTAN_PATH/include/botan-2"
6480 BOTAN_LIBS="-L$BOTAN_PATH/lib -lbotan-2"
6481 else
6482 BOTAN_CFLAGS="-I$BOTAN_PATH/include/botan-1.$BOTAN_VERSION_MINOR"
6483 BOTAN_LIBS="-L$BOTAN_PATH/lib -lbotan-1.$BOTAN_VERSION_MINOR"
6484 fi
6485
6486
6487
6488 fi
6489
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what are the Botan includes" >&5
6491 $as_echo_n "checking what are the Botan includes... " >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOTAN_CFLAGS" >&5
6493 $as_echo "$BOTAN_CFLAGS" >&6; }
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what are the Botan libs" >&5
6496 $as_echo_n "checking what are the Botan libs... " >&6; }
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOTAN_LIBS" >&5
6498 $as_echo "$BOTAN_LIBS" >&6; }
6499
6500 if test "x${BOTAN_VERSION_MAJOR}" != "x1" -o "x${BOTAN_VERSION_MINOR}" != "x10"; then
6501 ax_cxx_compile_cxx11_required=true
6502 ac_ext=cpp
6503 ac_cpp='$CXXCPP $CPPFLAGS'
6504 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6505 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6506 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6507 ac_success=no
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6509 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6510 if ${ax_cv_cxx_compile_cxx11+:} false; then :
6511 $as_echo_n "(cached) " >&6
6512 else
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6515
6516 #include <memory>
6517
6518 template <typename T>
6519 struct check
6520 {
6521 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6522 };
6523
6524 struct Base {
6525 virtual void f() {}
6526 };
6527 struct Child : public Base {
6528 virtual void f() override {}
6529 };
6530
6531 std::unique_ptr<Base> ptr_to_base;
6532
6533 typedef check<check<bool>> right_angle_brackets;
6534
6535 int a;
6536 decltype(a) b;
6537
6538 typedef check<int> check_type;
6539 check_type c;
6540 check_type&& cr = static_cast<check_type&&>(c);
6541
6542 auto d = a;
6543 auto l = [](){};
6544
6545 _ACEOF
6546 if ac_fn_cxx_try_compile "$LINENO"; then :
6547 ax_cv_cxx_compile_cxx11=yes
6548 else
6549 ax_cv_cxx_compile_cxx11=no
6550 fi
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6552 fi
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6554 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6555 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6556 ac_success=yes
6557 fi
6558
6559
6560
6561 if test x$ac_success = xno; then
6562 for switch in -std=c++11 -std=c++0x; do
6563 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6565 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6566 if eval \${$cachevar+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568 else
6569 ac_save_CXXFLAGS="$CXXFLAGS"
6570 CXXFLAGS="$CXXFLAGS $switch"
6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572 /* end confdefs.h. */
6573
6574 #include <memory>
6575
6576 template <typename T>
6577 struct check
6578 {
6579 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6580 };
6581
6582 struct Base {
6583 virtual void f() {}
6584 };
6585 struct Child : public Base {
6586 virtual void f() override {}
6587 };
6588
6589 std::unique_ptr<Base> ptr_to_base;
6590
6591 typedef check<check<bool>> right_angle_brackets;
6592
6593 int a;
6594 decltype(a) b;
6595
6596 typedef check<int> check_type;
6597 check_type c;
6598 check_type&& cr = static_cast<check_type&&>(c);
6599
6600 auto d = a;
6601 auto l = [](){};
6602
6603 _ACEOF
6604 if ac_fn_cxx_try_compile "$LINENO"; then :
6605 eval $cachevar=yes
6606 else
6607 eval $cachevar=no
6608 fi
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 CXXFLAGS="$ac_save_CXXFLAGS"
6611 fi
6612 eval ac_res=\$$cachevar
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6614 $as_echo "$ac_res" >&6; }
6615 if eval test x\$$cachevar = xyes; then
6616 CXXFLAGS="$CXXFLAGS $switch"
6617 ac_success=yes
6618 break
6619 fi
6620 done
6621 fi
6622 ac_ext=c
6623 ac_cpp='$CPP $CPPFLAGS'
6624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6627
6628 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6629 if test x$ac_success = xno; then
6630 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6631 fi
6632 else
6633 if test x$ac_success = xno; then
6634 HAVE_CXX11=0
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6636 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6637 else
6638 HAVE_CXX11=1
6639
6640 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6641
6642 fi
6643
6644
6645 fi
6646
6647 fi
6648
6649 tmp_CPPFLAGS=$CPPFLAGS
6650 tmp_LIBS=$LIBS
6651
6652 CPPFLAGS="$CPPFLAGS $BOTAN_CFLAGS"
6653 LIBS="$LIBS $BOTAN_LIBS"
6654
6655 ac_ext=cpp
6656 ac_cpp='$CXXCPP $CPPFLAGS'
6657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6660
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 #include <botan/version.h>
6664 int
6665 main ()
6666 {
6667 #if BOTAN_VERSION_CODE < BOTAN_VERSION_CODE_FOR(2,0,0)
6668 #error "Botan version too old";
6669 #endif
6670 ;
6671 return 0;
6672 }
6673 _ACEOF
6674 if ac_fn_cxx_try_link "$LINENO"; then :
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for Botan >= v2.0.0 ... yes" >&5
6676 $as_echo "checking for Botan >= v2.0.0 ... yes" >&6; }
6677 else
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: checking for Botan >= v2.0.0 ... no" >&5
6679 $as_echo "checking for Botan >= v2.0.0 ... no" >&6; }
6680 as_fn_error $? "Missing the correct version of the Botan library" "$LINENO" 5
6681
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext \
6684 conftest$ac_exeext conftest.$ac_ext
6685 ac_ext=c
6686 ac_cpp='$CPP $CPPFLAGS'
6687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6690
6691
6692 CPPFLAGS=$tmp_CPPFLAGS
6693 LIBS=$tmp_LIBS
6694
6695
6696
6697
6698
6699 CRYPTO_INCLUDES=$BOTAN_CFLAGS
6700 CRYPTO_LIBS=$BOTAN_LIBS
6701
6702 case "${enable_ecc}" in
6703 yes|detect)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Botan ECC support" >&5
6705 $as_echo_n "checking for Botan ECC support... " >&6; }
6706
6707 tmp_CPPFLAGS=$CPPFLAGS
6708 tmp_LIBS=$LIBS
6709
6710 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
6711 LIBS="$CRYPTO_LIBS $LIBS"
6712
6713 ac_ext=cpp
6714 ac_cpp='$CXXCPP $CPPFLAGS'
6715 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6716 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6717 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6718
6719 if ${acx_cv_lib_botan_ecc_support+:} false; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722
6723 acx_cv_lib_botan_ecc_support=no
6724 if test "$cross_compiling" = yes; then :
6725
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot test, assuming P256" >&5
6727 $as_echo "$as_me: WARNING: Cannot test, assuming P256" >&2;}
6728 acx_cv_lib_botan_ecc_support=yes
6729
6730 else
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6733
6734
6735 #include <botan/ec_group.h>
6736 #include <botan/oids.h>
6737 #include <botan/version.h>
6738 int main()
6739 {
6740 const std::string name("secp256r1");
6741 const Botan::OID oid(Botan::OIDS::lookup(name));
6742 const Botan::EC_Group ecg(oid);
6743 try {
6744 const std::vector<Botan::byte> der =
6745 ecg.DER_encode(Botan::EC_DOMPAR_ENC_OID);
6746 } catch(...) {
6747 return 1;
6748 }
6749 return 0;
6750 }
6751
6752
6753 _ACEOF
6754 if ac_fn_cxx_try_run "$LINENO"; then :
6755
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found P256" >&5
6757 $as_echo "Found P256" >&6; }
6758 acx_cv_lib_botan_ecc_support=yes
6759
6760 else
6761
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find P256" >&5
6763 $as_echo "Cannot find P256" >&6; }
6764 acx_cv_lib_botan_ecc_support=no
6765
6766 fi
6767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6768 conftest.$ac_objext conftest.beam conftest.$ac_ext
6769 fi
6770
6771
6772 fi
6773
6774 ac_ext=c
6775 ac_cpp='$CPP $CPPFLAGS'
6776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6779
6780
6781 CPPFLAGS=$tmp_CPPFLAGS
6782 LIBS=$tmp_LIBS
6783 have_lib_botan_ecc_support="${acx_cv_lib_botan_ecc_support}"
6784 ;;
6785 esac
6786 case "${enable_ecc}-${have_lib_botan_ecc_support}" in
6787 yes-no) as_fn_error $? "Botan library has no ECC support" "$LINENO" 5;;
6788 detect-*) enable_ecc="${have_lib_botan_ecc_support}";;
6789 esac
6790
6791 case "${enable_eddsa}" in
6792 yes|detect)
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Botan EDDSA support" >&5
6794 $as_echo_n "checking for Botan EDDSA support... " >&6; }
6795
6796 tmp_CPPFLAGS=$CPPFLAGS
6797 tmp_LIBS=$LIBS
6798
6799 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
6800 LIBS="$CRYPTO_LIBS $LIBS"
6801
6802 ac_ext=cpp
6803 ac_cpp='$CXXCPP $CPPFLAGS'
6804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6807
6808 if ${acx_cv_lib_botan_eddsa_support+:} false; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811
6812 acx_cv_lib_botan_eddsa_support=no
6813 if test "$cross_compiling" = yes; then :
6814
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot test, assuming EDDSA" >&5
6816 $as_echo "$as_me: WARNING: Cannot test, assuming EDDSA" >&2;}
6817 acx_cv_lib_botan_eddsa_support=yes
6818
6819 else
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822
6823
6824 #include <botan/ed25519.h>
6825 #include <botan/version.h>
6826 int main()
6827 {
6828 Botan::secure_vector<uint8_t> k(32);
6829 try {
6830 Botan::Ed25519_PrivateKey* key =
6831 new Botan::Ed25519_PrivateKey(k);
6832 } catch(...) {
6833 return 1;
6834 }
6835 return 0;
6836 }
6837
6838
6839 _ACEOF
6840 if ac_fn_cxx_try_run "$LINENO"; then :
6841
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found Ed25519" >&5
6843 $as_echo "Found Ed25519" >&6; }
6844 acx_cv_lib_botan_eddsa_support=yes
6845
6846 else
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find Ed25519" >&5
6849 $as_echo "Cannot find Ed25519" >&6; }
6850 acx_cv_lib_botan_eddsa_support=no
6851
6852 fi
6853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6854 conftest.$ac_objext conftest.beam conftest.$ac_ext
6855 fi
6856
6857
6858 fi
6859
6860 ac_ext=c
6861 ac_cpp='$CPP $CPPFLAGS'
6862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6865
6866
6867 CPPFLAGS=$tmp_CPPFLAGS
6868 LIBS=$tmp_LIBS
6869 have_lib_botan_eddsa_support="${acx_cv_lib_botan_eddsa_support}"
6870 ;;
6871 esac
6872 case "${enable_eddsa}-${have_lib_botan_eddsa_support}" in
6873 yes-no) as_fn_error $? "Botan library has no EDDSA support" "$LINENO" 5;;
6874 detect-*) enable_eddsa="${have_lib_botan_eddsa_support}";;
6875 esac
6876
6877 case "${enable_gost}" in
6878 yes|detect)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Botan GOST support" >&5
6880 $as_echo_n "checking for Botan GOST support... " >&6; }
6881
6882 tmp_CPPFLAGS=$CPPFLAGS
6883 tmp_LIBS=$LIBS
6884
6885 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
6886 LIBS="$CRYPTO_LIBS $LIBS"
6887
6888 ac_ext=cpp
6889 ac_cpp='$CXXCPP $CPPFLAGS'
6890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6893
6894 if ${acx_cv_lib_botan_gost_support+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897
6898 acx_cv_lib_botan_gost_support=no
6899 if test "$cross_compiling" = yes; then :
6900
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot test, assuming GOST" >&5
6902 $as_echo "$as_me: WARNING: Cannot test, assuming GOST" >&2;}
6903 acx_cv_lib_botan_gost_support=yes
6904
6905 else
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h. */
6908
6909
6910 #include <botan/gost_3410.h>
6911 #include <botan/oids.h>
6912 #include <botan/version.h>
6913 int main()
6914 {
6915 const std::string name("gost_256A");
6916 const Botan::OID oid(Botan::OIDS::lookup(name));
6917 const Botan::EC_Group ecg(oid);
6918 try {
6919 const std::vector<Botan::byte> der =
6920 ecg.DER_encode(Botan::EC_DOMPAR_ENC_OID);
6921 } catch(...) {
6922 return 1;
6923 }
6924
6925 return 0;
6926 }
6927
6928
6929 _ACEOF
6930 if ac_fn_cxx_try_run "$LINENO"; then :
6931
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found GOST" >&5
6933 $as_echo "Found GOST" >&6; }
6934 acx_cv_lib_botan_gost_support=yes
6935
6936 else
6937
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find GOST" >&5
6939 $as_echo "Cannot find GOST" >&6; }
6940 acx_cv_lib_botan_gost_support=no
6941
6942 fi
6943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6944 conftest.$ac_objext conftest.beam conftest.$ac_ext
6945 fi
6946
6947
6948 fi
6949
6950 ac_ext=c
6951 ac_cpp='$CPP $CPPFLAGS'
6952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6955
6956
6957 CPPFLAGS=$tmp_CPPFLAGS
6958 LIBS=$tmp_LIBS
6959 have_lib_botan_gost_support="${acx_cv_lib_botan_gost_support}"
6960 ;;
6961 esac
6962 case "${enable_gost}-${have_lib_botan_gost_support}" in
6963 yes-no) as_fn_error $? "Botan library has no GOST support" "$LINENO" 5;;
6964 detect-*) enable_gost="${have_lib_botan_gost_support}";;
6965 esac
6966
6967 if test "x${enable_fips}" = "xyes"; then
6968 as_fn_error $? "Botan does not support FIPS 140-2 mode" "$LINENO" 5
6969 fi
6970
6971
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Botan RFC5649 support" >&5
6973 $as_echo_n "checking for Botan RFC5649 support... " >&6; }
6974
6975 tmp_CPPFLAGS=$CPPFLAGS
6976 tmp_LIBS=$LIBS
6977
6978 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
6979 LIBS="$CRYPTO_LIBS $LIBS"
6980
6981
6982 $as_echo "#define HAVE_AES_KEY_WRAP 1" >>confdefs.h
6983
6984 ac_ext=cpp
6985 ac_cpp='$CXXCPP $CPPFLAGS'
6986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6989
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6992
6993
6994 #include <botan/nist_keywrap.h>
6995 #include <botan/block_cipher.h>
6996 #include <botan/version.h>
6997 int main()
6998 {
6999 using namespace Botan;
7000 std::unique_ptr<BlockCipher> aes = BlockCipher::create_or_throw("AES-128");
7001 aes->set_key(std::vector<uint8_t>(16));
7002 uint8_t input[4] = { 1,2,3,4 };
7003 std::vector<uint8_t> wrapped = nist_key_wrap_padded(input, sizeof(input), *aes);
7004 return 1;
7005 }
7006
7007
7008 _ACEOF
7009 if ac_fn_cxx_try_link "$LINENO"; then :
7010
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found AES key wrap with pad" >&5
7012 $as_echo "Found AES key wrap with pad" >&6; }
7013
7014 $as_echo "#define HAVE_AES_KEY_WRAP_PAD 1" >>confdefs.h
7015
7016
7017 else
7018
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find AES key wrap with pad" >&5
7020 $as_echo "Cannot find AES key wrap with pad" >&6; }
7021
7022
7023 fi
7024 rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
7026 ac_ext=c
7027 ac_cpp='$CPP $CPPFLAGS'
7028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7031
7032
7033 CPPFLAGS=$tmp_CPPFLAGS
7034 LIBS=$tmp_LIBS
7035
7036
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Botan raw PSS support" >&5
7038 $as_echo_n "checking for Botan raw PSS support... " >&6; }
7039
7040 tmp_CPPFLAGS=$CPPFLAGS
7041 tmp_LIBS=$LIBS
7042
7043 CPPFLAGS="$CPPFLAGS $CRYPTO_INCLUDES"
7044 LIBS="$CRYPTO_LIBS $LIBS"
7045
7046 ac_ext=cpp
7047 ac_cpp='$CXXCPP $CPPFLAGS'
7048 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7049 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7050 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7051
7052 if ${acx_cv_lib_botan_raw_pss_support+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055
7056 acx_cv_lib_botan_raw_pss_support=no
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059
7060
7061 #include <botan/version.h>
7062 int main()
7063 {
7064 using namespace Botan;
7065
7066 #if BOTAN_VERSION_CODE >= BOTAN_VERSION_CODE_FOR(2,3,0)
7067 return 0;
7068 #else
7069 #error "Botan too old"
7070 #endif
7071 }
7072
7073
7074 _ACEOF
7075 if ac_fn_cxx_try_compile "$LINENO"; then :
7076
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Found raw PSS" >&5
7078 $as_echo "Found raw PSS" >&6; }
7079 acx_cv_lib_botan_raw_pss_support=yes
7080
7081 else
7082
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Cannot find raw PSS support, upgrade to Botan >= v2.3.0" >&5
7084 $as_echo "Cannot find raw PSS support, upgrade to Botan >= v2.3.0" >&6; }
7085
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088
7089 fi
7090
7091 ac_ext=c
7092 ac_cpp='$CPP $CPPFLAGS'
7093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7096
7097 if test "x$acx_cv_lib_botan_raw_pss_support" = xyes; then
7098
7099 $as_echo "#define WITH_RAW_PSS 1" >>confdefs.h
7100
7101 fi
7102
7103 CPPFLAGS=$tmp_CPPFLAGS
7104 LIBS=$tmp_LIBS
7105
7106
7107
7108 cat >>confdefs.h <<_ACEOF
7109 #define WITH_BOTAN /**/
7110 _ACEOF
7111
7112
7113 else
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Unknown" >&5
7115 $as_echo "Unknown" >&6; }
7116 as_fn_error $? "Crypto backend ${crypto_backend} not supported. Use openssl or botan." "$LINENO" 5
7117 fi
7118
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECC support" >&5
7120 $as_echo_n "checking for ECC support... " >&6; }
7121 if test "x${enable_ecc}" = "xyes"; then
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7123 $as_echo "yes" >&6; }
7124
7125 cat >>confdefs.h <<_ACEOF
7126 #define WITH_ECC /**/
7127 _ACEOF
7128
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133 if test "x${enable_ecc}" = "xyes"; then
7134 WITH_ECC_TRUE=
7135 WITH_ECC_FALSE='#'
7136 else
7137 WITH_ECC_TRUE='#'
7138 WITH_ECC_FALSE=
7139 fi
7140
7141
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOST support" >&5
7143 $as_echo_n "checking for GOST support... " >&6; }
7144 if test "x${enable_gost}" = "xyes"; then
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7146 $as_echo "yes" >&6; }
7147
7148 cat >>confdefs.h <<_ACEOF
7149 #define WITH_GOST /**/
7150 _ACEOF
7151
7152 else
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156 if test "x${enable_gost}" = "xyes"; then
7157 WITH_GOST_TRUE=
7158 WITH_GOST_FALSE='#'
7159 else
7160 WITH_GOST_TRUE='#'
7161 WITH_GOST_FALSE=
7162 fi
7163
7164
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EDDSA support" >&5
7166 $as_echo_n "checking for EDDSA support... " >&6; }
7167 if test "x${enable_eddsa}" = "xyes"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7169 $as_echo "yes" >&6; }
7170
7171 cat >>confdefs.h <<_ACEOF
7172 #define WITH_EDDSA /**/
7173 _ACEOF
7174
7175 else
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7179 if test "x${enable_eddsa}" = "xyes"; then
7180 WITH_EDDSA_TRUE=
7181 WITH_EDDSA_FALSE='#'
7182 else
7183 WITH_EDDSA_TRUE='#'
7184 WITH_EDDSA_FALSE=
7185 fi
7186
7187
7188
7189
7190
7191 if test "x${crypto_backend}" = "xopenssl"; then
7192 WITH_OPENSSL_TRUE=
7193 WITH_OPENSSL_FALSE='#'
7194 else
7195 WITH_OPENSSL_TRUE='#'
7196 WITH_OPENSSL_FALSE=
7197 fi
7198
7199 if test "x${crypto_backend}" = "xbotan"; then
7200 WITH_BOTAN_TRUE=
7201 WITH_BOTAN_FALSE='#'
7202 else
7203 WITH_BOTAN_TRUE='#'
7204 WITH_BOTAN_FALSE=
7205 fi
7206
7207
7208
7209
7210 # Non-paged memory for secure storage
7211
7212
7213 # Check whether --enable-non-paged-memory was given.
7214 if test "${enable_non_paged_memory+set}" = set; then :
7215 enableval=$enable_non_paged_memory; enable_non_paged_memory="${enableval}"
7216 else
7217 enable_non_paged_memory="yes"
7218
7219 fi
7220
7221
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-paged memory for secure storage" >&5
7223 $as_echo_n "checking for non-paged memory for secure storage... " >&6; }
7224
7225 if test "x${enable_non_paged_memory}" = "xyes"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabled" >&5
7227 $as_echo "enabled" >&6; }
7228
7229 cat >>confdefs.h <<_ACEOF
7230 #define SENSITIVE_NON_PAGE /**/
7231 _ACEOF
7232
7233 for ac_header in sys/mman.h
7234 do :
7235 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
7236 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
7237 cat >>confdefs.h <<_ACEOF
7238 #define HAVE_SYS_MMAN_H 1
7239 _ACEOF
7240
7241 fi
7242
7243 done
7244
7245
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum size that may be locked into memory" >&5
7247 $as_echo_n "checking the maximum size that may be locked into memory... " >&6; }
7248 MLOCK_SIZE="`ulimit -l`"
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MLOCK_SIZE" >&5
7250 $as_echo "$MLOCK_SIZE" >&6; }
7251
7252 if test "x${MLOCK_SIZE}" != "xunlimited"; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
7254 ======================================================================
7255 SoftHSM has been configured to store sensitive data in non-page RAM
7256 (i.e. memory that is not swapped out to disk). This is the default and
7257 most secure configuration. Your system, however, is not configured to
7258 support this model in non-privileged accounts (i.e. user accounts).
7259
7260 You can check the setting on your system by running the following
7261 command in a shell:
7262
7263 ulimit -l
7264
7265 If this does not return \"unlimited\" and you plan to run SoftHSM from
7266 non-privileged accounts then you should edit the configuration file
7267 /etc/security/limits.conf (on most systems).
7268
7269 You will need to add the following lines to this file:
7270
7271 #<domain> <type> <item> <value>
7272 * - memlock unlimited
7273
7274 Alternatively, you can elect to disable this feature of SoftHSM by
7275 re-running configure with the option \"--disable-non-paged-memory\".
7276 Please be advised that this may seriously degrade the security of
7277 SoftHSM.
7278 ======================================================================" >&5
7279 $as_echo "$as_me: WARNING:
7280 ======================================================================
7281 SoftHSM has been configured to store sensitive data in non-page RAM
7282 (i.e. memory that is not swapped out to disk). This is the default and
7283 most secure configuration. Your system, however, is not configured to
7284 support this model in non-privileged accounts (i.e. user accounts).
7285
7286 You can check the setting on your system by running the following
7287 command in a shell:
7288
7289 ulimit -l
7290
7291 If this does not return \"unlimited\" and you plan to run SoftHSM from
7292 non-privileged accounts then you should edit the configuration file
7293 /etc/security/limits.conf (on most systems).
7294
7295 You will need to add the following lines to this file:
7296
7297 #<domain> <type> <item> <value>
7298 * - memlock unlimited
7299
7300 Alternatively, you can elect to disable this feature of SoftHSM by
7301 re-running configure with the option \"--disable-non-paged-memory\".
7302 Please be advised that this may seriously degrade the security of
7303 SoftHSM.
7304 ======================================================================" >&2;}
7305 fi
7306 else
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
7308 $as_echo "disabled" >&6; }
7309 fi
7310
7311
7312 # If the user want to have the migration tool
7313 # Requires SQLite3
7314
7315 # Check whether --with-migrate was given.
7316 if test "${with_migrate+set}" = set; then :
7317 withval=$with_migrate; build_migrate="${withval}"
7318 else
7319 build_migrate="no"
7320
7321 fi
7322
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with softhsm2-migrate" >&5
7324 $as_echo_n "checking if building with softhsm2-migrate... " >&6; }
7325 if test "x${build_migrate}" = "xyes"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327 $as_echo "yes" >&6; }
7328
7329 YIELD_LIB=
7330 # Solaris has sched_yield in librt, not in libpthread or libc.
7331 # Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt.
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
7333 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
7334 if ${ac_cv_lib_rt_sched_yield+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 ac_check_lib_save_LIBS=$LIBS
7338 LIBS="-lrt $LIBS"
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7341
7342 /* Override any GCC internal prototype to avoid an error.
7343 Use char because int might match the return type of a GCC
7344 builtin and then its argument prototype would still apply. */
7345 #ifdef __cplusplus
7346 extern "C"
7347 #endif
7348 char sched_yield ();
7349 int
7350 main ()
7351 {
7352 return sched_yield ();
7353 ;
7354 return 0;
7355 }
7356 _ACEOF
7357 if ac_fn_c_try_link "$LINENO"; then :
7358 ac_cv_lib_rt_sched_yield=yes
7359 else
7360 ac_cv_lib_rt_sched_yield=no
7361 fi
7362 rm -f core conftest.err conftest.$ac_objext \
7363 conftest$ac_exeext conftest.$ac_ext
7364 LIBS=$ac_check_lib_save_LIBS
7365 fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
7367 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
7368 if test "x$ac_cv_lib_rt_sched_yield" = xyes; then :
7369 YIELD_LIB=-lrt
7370 else
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
7372 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
7373 if ${ac_cv_lib_posix4_sched_yield+:} false; then :
7374 $as_echo_n "(cached) " >&6
7375 else
7376 ac_check_lib_save_LIBS=$LIBS
7377 LIBS="-lposix4 $LIBS"
7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380
7381 /* Override any GCC internal prototype to avoid an error.
7382 Use char because int might match the return type of a GCC
7383 builtin and then its argument prototype would still apply. */
7384 #ifdef __cplusplus
7385 extern "C"
7386 #endif
7387 char sched_yield ();
7388 int
7389 main ()
7390 {
7391 return sched_yield ();
7392 ;
7393 return 0;
7394 }
7395 _ACEOF
7396 if ac_fn_c_try_link "$LINENO"; then :
7397 ac_cv_lib_posix4_sched_yield=yes
7398 else
7399 ac_cv_lib_posix4_sched_yield=no
7400 fi
7401 rm -f core conftest.err conftest.$ac_objext \
7402 conftest$ac_exeext conftest.$ac_ext
7403 LIBS=$ac_check_lib_save_LIBS
7404 fi
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
7406 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
7407 if test "x$ac_cv_lib_posix4_sched_yield" = xyes; then :
7408 YIELD_LIB=-lposix4
7409 fi
7410
7411 fi
7412
7413
7414
7415 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
7416 if test "x$ac_cv_header_sched_h" = xyes; then :
7417
7418 fi
7419
7420
7421
7422 else
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425 fi
7426 if test "x${build_migrate}" = "xyes"; then
7427 BUILD_MIGRATE_TRUE=
7428 BUILD_MIGRATE_FALSE='#'
7429 else
7430 BUILD_MIGRATE_TRUE='#'
7431 BUILD_MIGRATE_FALSE=
7432 fi
7433
7434
7435 # If the user wants to have the database storage backend
7436
7437 # Check whether --with-objectstore-backend-db was given.
7438 if test "${with_objectstore_backend_db+set}" = set; then :
7439 withval=$with_objectstore_backend_db; build_objectstore_backend_db="${withval}"
7440 else
7441 build_objectstore_backend_db="no"
7442
7443 fi
7444
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building database object store backend" >&5
7446 $as_echo_n "checking if building database object store backend... " >&6; }
7447 if test "x${build_objectstore_backend_db}" = "xyes"; then
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7449 $as_echo "yes" >&6; }
7450
7451 cat >>confdefs.h <<_ACEOF
7452 #define HAVE_OBJECTSTORE_BACKEND_DB 1
7453 _ACEOF
7454
7455 else
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7457 $as_echo "no" >&6; }
7458 fi
7459 if test "x${build_objectstore_backend_db}" = "xyes"; then
7460 BUILD_OBJECTSTORE_BACKEND_DB_TRUE=
7461 BUILD_OBJECTSTORE_BACKEND_DB_FALSE='#'
7462 else
7463 BUILD_OBJECTSTORE_BACKEND_DB_TRUE='#'
7464 BUILD_OBJECTSTORE_BACKEND_DB_FALSE=
7465 fi
7466
7467
7468 # Require SQLite3 if either building --with-migrate or --with-objectstore-backend-db
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if SQLite3 required" >&5
7470 $as_echo_n "checking if SQLite3 required... " >&6; }
7471 if test "x${build_migrate}" = "xyes" -o "x${build_objectstore_backend_db}" = "xyes"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7473 $as_echo "yes" >&6; }
7474
7475
7476 # Check whether --with-sqlite3 was given.
7477 if test "${with_sqlite3+set}" = set; then :
7478 withval=$with_sqlite3;
7479 SQLITE3_INCLUDES="-I$withval/include"
7480 SQLITE3_LIBDIRS="-L$withval/lib"
7481 for ac_prog in sqlite3
7482 do
7483 # Extract the first word of "$ac_prog", so it can be a program name with args.
7484 set dummy $ac_prog; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_path_SQLITE3+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489 else
7490 case $SQLITE3 in
7491 [\\/]* | ?:[\\/]*)
7492 ac_cv_path_SQLITE3="$SQLITE3" # Let the user override the test with a path.
7493 ;;
7494 *)
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $withval/bin
7497 do
7498 IFS=$as_save_IFS
7499 test -z "$as_dir" && as_dir=.
7500 for ac_exec_ext in '' $ac_executable_extensions; do
7501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502 ac_cv_path_SQLITE3="$as_dir/$ac_word$ac_exec_ext"
7503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504 break 2
7505 fi
7506 done
7507 done
7508 IFS=$as_save_IFS
7509
7510 ;;
7511 esac
7512 fi
7513 SQLITE3=$ac_cv_path_SQLITE3
7514 if test -n "$SQLITE3"; then
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3" >&5
7516 $as_echo "$SQLITE3" >&6; }
7517 else
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }
7520 fi
7521
7522
7523 test -n "$SQLITE3" && break
7524 done
7525 test -n "$SQLITE3" || SQLITE3="sqlite3"
7526
7527
7528
7529 else
7530
7531 SQLITE3_INCLUDES=""
7532 SQLITE3_LIBDIRS=""
7533 for ac_prog in sqlite3
7534 do
7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy $ac_prog; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_path_SQLITE3+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 case $SQLITE3 in
7543 [\\/]* | ?:[\\/]*)
7544 ac_cv_path_SQLITE3="$SQLITE3" # Let the user override the test with a path.
7545 ;;
7546 *)
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554 ac_cv_path_SQLITE3="$as_dir/$ac_word$ac_exec_ext"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7557 fi
7558 done
7559 done
7560 IFS=$as_save_IFS
7561
7562 ;;
7563 esac
7564 fi
7565 SQLITE3=$ac_cv_path_SQLITE3
7566 if test -n "$SQLITE3"; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3" >&5
7568 $as_echo "$SQLITE3" >&6; }
7569 else
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7571 $as_echo "no" >&6; }
7572 fi
7573
7574
7575 test -n "$SQLITE3" && break
7576 done
7577 test -n "$SQLITE3" || SQLITE3="sqlite3"
7578
7579
7580 fi
7581
7582
7583
7584 if ! test -x "$SQLITE3"; then
7585 as_fn_error $? "sqlite3 command not found" "$LINENO" 5
7586 fi
7587
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what are the SQLite3 includes" >&5
7589 $as_echo_n "checking what are the SQLite3 includes... " >&6; }
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3_INCLUDES" >&5
7591 $as_echo "$SQLITE3_INCLUDES" >&6; }
7592
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what are the SQLite3 libs" >&5
7594 $as_echo_n "checking what are the SQLite3 libs... " >&6; }
7595 SQLITE3_LIBS="$SQLITE3_LIBDIRS -lsqlite3"
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SQLITE3_LIBS" >&5
7597 $as_echo "$SQLITE3_LIBS" >&6; }
7598
7599 tmp_CPPFLAGS=$CPPFLAGS
7600 tmp_LIBS=$LIBS
7601
7602 CPPFLAGS="$CPPFLAGS $SQLITE3_INCLUDES"
7603 LIBS="$LIBS $SQLITE3_LIBS"
7604
7605 for ac_header in sqlite3.h
7606 do :
7607 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
7608 if test "x$ac_cv_header_sqlite3_h" = xyes; then :
7609 cat >>confdefs.h <<_ACEOF
7610 #define HAVE_SQLITE3_H 1
7611 _ACEOF
7612
7613 else
7614 as_fn_error $? "Can't find SQLite3 headers" "$LINENO" 5
7615 fi
7616
7617 done
7618
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_prepare_v2 in -lsqlite3" >&5
7620 $as_echo_n "checking for sqlite3_prepare_v2 in -lsqlite3... " >&6; }
7621 if ${ac_cv_lib_sqlite3_sqlite3_prepare_v2+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 ac_check_lib_save_LIBS=$LIBS
7625 LIBS="-lsqlite3 $LIBS"
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628
7629 /* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7632 #ifdef __cplusplus
7633 extern "C"
7634 #endif
7635 char sqlite3_prepare_v2 ();
7636 int
7637 main ()
7638 {
7639 return sqlite3_prepare_v2 ();
7640 ;
7641 return 0;
7642 }
7643 _ACEOF
7644 if ac_fn_c_try_link "$LINENO"; then :
7645 ac_cv_lib_sqlite3_sqlite3_prepare_v2=yes
7646 else
7647 ac_cv_lib_sqlite3_sqlite3_prepare_v2=no
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651 LIBS=$ac_check_lib_save_LIBS
7652 fi
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&5
7654 $as_echo "$ac_cv_lib_sqlite3_sqlite3_prepare_v2" >&6; }
7655 if test "x$ac_cv_lib_sqlite3_sqlite3_prepare_v2" = xyes; then :
7656 cat >>confdefs.h <<_ACEOF
7657 #define HAVE_LIBSQLITE3 1
7658 _ACEOF
7659
7660 LIBS="-lsqlite3 $LIBS"
7661
7662 else
7663 as_fn_error $? "Missing SQLite3 library v3.4.2 or greater" "$LINENO" 5
7664 fi
7665
7666
7667 CPPFLAGS=$tmp_CPPFLAGS
7668 LIBS=$tmp_LIBS
7669
7670
7671
7672
7673 else
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675 $as_echo "no" >&6; }
7676 fi
7677
7678 # Set visibility flags so only PKCS#11 entry points are exported
7679
7680 # Check whether --enable-visibility was given.
7681 if test "${enable_visibility+set}" = set; then :
7682 enableval=$enable_visibility; enable_visibility="${enableval}"
7683 else
7684 enable_visibility="yes"
7685
7686 fi
7687
7688 if test "${enable_visibility}" = "yes"; then
7689 CFLAGS="${CFLAGS} -fvisibility=hidden"
7690 CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
7691
7692 $as_echo "#define CRYPTOKI_VISIBILITY 1" >>confdefs.h
7693
7694 fi
7695
7696
7697 # If we should install the p11-kit module
7698
7699 # Check whether --enable-p11-kit was given.
7700 if test "${enable_p11_kit+set}" = set; then :
7701 enableval=$enable_p11_kit; enable_p11kit="${enableval}"
7702 else
7703 enable_p11kit="yes"
7704
7705 fi
7706
7707
7708
7709 # Check whether --with-p11-kit was given.
7710 if test "${with_p11_kit+set}" = set; then :
7711 withval=$with_p11_kit; P11KIT_PATH="$withval"
7712 else
7713 P11KIT_PATH=""
7714
7715 fi
7716
7717
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for p11-kit integration" >&5
7719 $as_echo_n "checking for p11-kit integration... " >&6; }
7720 if test "x${enable_p11kit}" = "xyes"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7722 $as_echo "yes" >&6; }
7723 if test "x${P11KIT_PATH}" = "x"; then
7724 if test "x${PKG_CONFIG}" != "x" && ${PKG_CONFIG} --exists p11-kit-1; then
7725 P11KIT_PATH=`${PKG_CONFIG} --variable=p11_module_configs p11-kit-1`
7726 fi
7727 fi
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install the p11-kit module" >&5
7729 $as_echo_n "checking where to install the p11-kit module... " >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P11KIT_PATH" >&5
7731 $as_echo "$P11KIT_PATH" >&6; }
7732 if test "x${P11KIT_PATH}" = "x"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Missing install path for the p11-kit module, skipping module" >&5
7734 $as_echo "$as_me: WARNING: Missing install path for the p11-kit module, skipping module" >&2;}
7735 fi
7736 else
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7739 fi
7740
7741
7742 if test "x${enable_p11kit}" = "xyes" -a "x${P11KIT_PATH}" != "x"; then
7743 WITH_P11KIT_TRUE=
7744 WITH_P11KIT_FALSE='#'
7745 else
7746 WITH_P11KIT_TRUE='#'
7747 WITH_P11KIT_FALSE=
7748 fi
7749
7750
7751
7752 # cppunit settings
7753
7754 # Extract the first word of "cppunit-config", so it can be a program name with args.
7755 set dummy cppunit-config; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if ${ac_cv_path_CPPUNIT_CONFIG+:} false; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 case $CPPUNIT_CONFIG in
7762 [\\/]* | ?:[\\/]*)
7763 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
7764 ;;
7765 *)
7766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7767 for as_dir in $PATH
7768 do
7769 IFS=$as_save_IFS
7770 test -z "$as_dir" && as_dir=.
7771 for ac_exec_ext in '' $ac_executable_extensions; do
7772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7773 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 break 2
7776 fi
7777 done
7778 done
7779 IFS=$as_save_IFS
7780
7781 ;;
7782 esac
7783 fi
7784 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
7785 if test -n "$CPPUNIT_CONFIG"; then
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPUNIT_CONFIG" >&5
7787 $as_echo "$CPPUNIT_CONFIG" >&6; }
7788 else
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7790 $as_echo "no" >&6; }
7791 fi
7792
7793
7794 if test -n "${PKG_CONFIG}"; then
7795
7796 pkg_failed=no
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cppunit" >&5
7798 $as_echo_n "checking for cppunit... " >&6; }
7799
7800 if test -n "$CPPUNIT_CFLAGS"; then
7801 pkg_cv_CPPUNIT_CFLAGS="$CPPUNIT_CFLAGS"
7802 elif test -n "$PKG_CONFIG"; then
7803 if test -n "$PKG_CONFIG" && \
7804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
7805 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
7806 ac_status=$?
7807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7808 test $ac_status = 0; }; then
7809 pkg_cv_CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit" 2>/dev/null`
7810 test "x$?" != "x0" && pkg_failed=yes
7811 else
7812 pkg_failed=yes
7813 fi
7814 else
7815 pkg_failed=untried
7816 fi
7817 if test -n "$CPPUNIT_LIBS"; then
7818 pkg_cv_CPPUNIT_LIBS="$CPPUNIT_LIBS"
7819 elif test -n "$PKG_CONFIG"; then
7820 if test -n "$PKG_CONFIG" && \
7821 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cppunit\""; } >&5
7822 ($PKG_CONFIG --exists --print-errors "cppunit") 2>&5
7823 ac_status=$?
7824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7825 test $ac_status = 0; }; then
7826 pkg_cv_CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit" 2>/dev/null`
7827 test "x$?" != "x0" && pkg_failed=yes
7828 else
7829 pkg_failed=yes
7830 fi
7831 else
7832 pkg_failed=untried
7833 fi
7834
7835
7836
7837 if test $pkg_failed = yes; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840
7841 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7842 _pkg_short_errors_supported=yes
7843 else
7844 _pkg_short_errors_supported=no
7845 fi
7846 if test $_pkg_short_errors_supported = yes; then
7847 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cppunit" 2>&1`
7848 else
7849 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cppunit" 2>&1`
7850 fi
7851 # Put the nasty error message in config.log where it belongs
7852 echo "$CPPUNIT_PKG_ERRORS" >&5
7853
7854 :
7855 elif test $pkg_failed = untried; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857 $as_echo "no" >&6; }
7858 :
7859 else
7860 CPPUNIT_CFLAGS=$pkg_cv_CPPUNIT_CFLAGS
7861 CPPUNIT_LIBS=$pkg_cv_CPPUNIT_LIBS
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7863 $as_echo "yes" >&6; }
7864
7865 fi
7866 elif test -n "${CPPUNIT_CONFIG}"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cppunit cflags" >&5
7868 $as_echo_n "checking cppunit cflags... " >&6; }
7869 CPPUNIT_CFLAGS=`${CPPUNIT_CONFIG} --cflags`
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CPPUNIT_CFLAGS}" >&5
7871 $as_echo "${CPPUNIT_CFLAGS}" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cppunit libs" >&5
7873 $as_echo_n "checking cppunit libs... " >&6; }
7874 CPPUNIT_LIBS=`${CPPUNIT_CONFIG} --libs`
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${CPPUNIT_LIBS}" >&5
7876 $as_echo "${CPPUNIT_LIBS}" >&6; }
7877
7878
7879 fi
7880
7881
7882 # Set full directory paths
7883 full_sysconfdir=`eval eval eval eval eval echo "${sysconfdir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
7884 full_localstatedir=`eval eval eval eval eval echo "${localstatedir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
7885 full_libdir=`eval eval eval eval eval echo "${libdir}" | sed "s#NONE#${prefix}#" | sed "s#NONE#${ac_default_prefix}#"`
7886 default_softhsm2_conf="`eval echo ${full_sysconfdir} | sed s,NONE,$ac_default_prefix,g`/softhsm2.conf"
7887 softhsmtokendir=${full_localstatedir}/lib/softhsm/tokens/
7888
7889 # Install the library in a sub-directory
7890 full_libdir="$full_libdir/softhsm"
7891 libdir=$full_libdir
7892 default_softhsm2_lib="$full_libdir/libsofthsm2.so"
7893
7894 # For getConfigPath()
7895 for ac_func in getpwuid_r
7896 do :
7897 ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
7898 if test "x$ac_cv_func_getpwuid_r" = xyes; then :
7899 cat >>confdefs.h <<_ACEOF
7900 #define HAVE_GETPWUID_R 1
7901 _ACEOF
7902
7903 fi
7904 done
7905
7906
7907 # Define some variables for the code
7908
7909 cat >>confdefs.h <<_ACEOF
7910 #define VERSION_MAJOR 2
7911 _ACEOF
7912
7913
7914 cat >>confdefs.h <<_ACEOF
7915 #define VERSION_MINOR 6
7916 _ACEOF
7917
7918
7919 cat >>confdefs.h <<_ACEOF
7920 #define MAX_PIN_LEN 255
7921 _ACEOF
7922
7923
7924 cat >>confdefs.h <<_ACEOF
7925 #define MIN_PIN_LEN 4
7926 _ACEOF
7927
7928
7929 cat >>confdefs.h <<_ACEOF
7930 #define DEFAULT_SOFTHSM2_CONF "$default_softhsm2_conf"
7931 _ACEOF
7932
7933
7934 cat >>confdefs.h <<_ACEOF
7935 #define DEFAULT_TOKENDIR "$softhsmtokendir"
7936 _ACEOF
7937
7938
7939 cat >>confdefs.h <<_ACEOF
7940 #define DEFAULT_OBJECTSTORE_BACKEND "file"
7941 _ACEOF
7942
7943
7944 cat >>confdefs.h <<_ACEOF
7945 #define DEFAULT_LOG_LEVEL "INFO"
7946 _ACEOF
7947
7948
7949 cat >>confdefs.h <<_ACEOF
7950 #define DEFAULT_PKCS11_LIB "$default_softhsm2_lib"
7951 _ACEOF
7952
7953
7954
7955
7956
7957
7958 # Generate the libtool script and install script
7959
7960 case `pwd` in
7961 *\ * | *\ *)
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7963 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7964 esac
7965
7966
7967
7968 macro_version='2.4.6'
7969 macro_revision='2.4.6'
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983 ltmain=$ac_aux_dir/ltmain.sh
7984
7985 # Make sure we can run config.sub.
7986 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
7987 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
7988
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7990 $as_echo_n "checking build system type... " >&6; }
7991 if ${ac_cv_build+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 ac_build_alias=$build_alias
7995 test "x$ac_build_alias" = x &&
7996 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
7997 test "x$ac_build_alias" = x &&
7998 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7999 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
8000 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
8001
8002 fi
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
8004 $as_echo "$ac_cv_build" >&6; }
8005 case $ac_cv_build in
8006 *-*-*) ;;
8007 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
8008 esac
8009 build=$ac_cv_build
8010 ac_save_IFS=$IFS; IFS='-'
8011 set x $ac_cv_build
8012 shift
8013 build_cpu=$1
8014 build_vendor=$2
8015 shift; shift
8016 # Remember, the first character of IFS is used to create $*,
8017 # except with old shells:
8018 build_os=$*
8019 IFS=$ac_save_IFS
8020 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
8021
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
8024 $as_echo_n "checking host system type... " >&6; }
8025 if ${ac_cv_host+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 if test "x$host_alias" = x; then
8029 ac_cv_host=$ac_cv_build
8030 else
8031 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
8032 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
8033 fi
8034
8035 fi
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
8037 $as_echo "$ac_cv_host" >&6; }
8038 case $ac_cv_host in
8039 *-*-*) ;;
8040 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
8041 esac
8042 host=$ac_cv_host
8043 ac_save_IFS=$IFS; IFS='-'
8044 set x $ac_cv_host
8045 shift
8046 host_cpu=$1
8047 host_vendor=$2
8048 shift; shift
8049 # Remember, the first character of IFS is used to create $*,
8050 # except with old shells:
8051 host_os=$*
8052 IFS=$ac_save_IFS
8053 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8054
8055
8056 # Backslashify metacharacters that are still active within
8057 # double-quoted strings.
8058 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8059
8060 # Same as above, but do not quote variable references.
8061 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8062
8063 # Sed substitution to delay expansion of an escaped shell variable in a
8064 # double_quote_subst'ed string.
8065 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8066
8067 # Sed substitution to delay expansion of an escaped single quote.
8068 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8069
8070 # Sed substitution to avoid accidental globbing in evaled expressions
8071 no_glob_subst='s/\*/\\\*/g'
8072
8073 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8075 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8076
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8078 $as_echo_n "checking how to print strings... " >&6; }
8079 # Test print first, because it will be a builtin if present.
8080 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8081 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8082 ECHO='print -r --'
8083 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8084 ECHO='printf %s\n'
8085 else
8086 # Use this function as a fallback that always works.
8087 func_fallback_echo ()
8088 {
8089 eval 'cat <<_LTECHO_EOF
8090 $1
8091 _LTECHO_EOF'
8092 }
8093 ECHO='func_fallback_echo'
8094 fi
8095
8096 # func_echo_all arg...
8097 # Invoke $ECHO with all args, space-separated.
8098 func_echo_all ()
8099 {
8100 $ECHO ""
8101 }
8102
8103 case $ECHO in
8104 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8105 $as_echo "printf" >&6; } ;;
8106 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8107 $as_echo "print -r" >&6; } ;;
8108 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8109 $as_echo "cat" >&6; } ;;
8110 esac
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8126 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8127 if ${ac_cv_path_SED+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8131 for ac_i in 1 2 3 4 5 6 7; do
8132 ac_script="$ac_script$as_nl$ac_script"
8133 done
8134 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8135 { ac_script=; unset ac_script;}
8136 if test -z "$SED"; then
8137 ac_path_SED_found=false
8138 # Loop through the user's path and test for each of PROGNAME-LIST
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8141 do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_prog in sed gsed; do
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8147 as_fn_executable_p "$ac_path_SED" || continue
8148 # Check for GNU ac_path_SED and select it if it is found.
8149 # Check for GNU $ac_path_SED
8150 case `"$ac_path_SED" --version 2>&1` in
8151 *GNU*)
8152 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8153 *)
8154 ac_count=0
8155 $as_echo_n 0123456789 >"conftest.in"
8156 while :
8157 do
8158 cat "conftest.in" "conftest.in" >"conftest.tmp"
8159 mv "conftest.tmp" "conftest.in"
8160 cp "conftest.in" "conftest.nl"
8161 $as_echo '' >> "conftest.nl"
8162 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8164 as_fn_arith $ac_count + 1 && ac_count=$as_val
8165 if test $ac_count -gt ${ac_path_SED_max-0}; then
8166 # Best one so far, save it but keep looking for a better one
8167 ac_cv_path_SED="$ac_path_SED"
8168 ac_path_SED_max=$ac_count
8169 fi
8170 # 10*(2^10) chars as input seems more than enough
8171 test $ac_count -gt 10 && break
8172 done
8173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8174 esac
8175
8176 $ac_path_SED_found && break 3
8177 done
8178 done
8179 done
8180 IFS=$as_save_IFS
8181 if test -z "$ac_cv_path_SED"; then
8182 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8183 fi
8184 else
8185 ac_cv_path_SED=$SED
8186 fi
8187
8188 fi
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8190 $as_echo "$ac_cv_path_SED" >&6; }
8191 SED="$ac_cv_path_SED"
8192 rm -f conftest.sed
8193
8194 test -z "$SED" && SED=sed
8195 Xsed="$SED -e 1s/^X//"
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8208 $as_echo_n "checking for fgrep... " >&6; }
8209 if ${ac_cv_path_FGREP+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211 else
8212 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8213 then ac_cv_path_FGREP="$GREP -F"
8214 else
8215 if test -z "$FGREP"; then
8216 ac_path_FGREP_found=false
8217 # Loop through the user's path and test for each of PROGNAME-LIST
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8220 do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_prog in fgrep; do
8224 for ac_exec_ext in '' $ac_executable_extensions; do
8225 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8226 as_fn_executable_p "$ac_path_FGREP" || continue
8227 # Check for GNU ac_path_FGREP and select it if it is found.
8228 # Check for GNU $ac_path_FGREP
8229 case `"$ac_path_FGREP" --version 2>&1` in
8230 *GNU*)
8231 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8232 *)
8233 ac_count=0
8234 $as_echo_n 0123456789 >"conftest.in"
8235 while :
8236 do
8237 cat "conftest.in" "conftest.in" >"conftest.tmp"
8238 mv "conftest.tmp" "conftest.in"
8239 cp "conftest.in" "conftest.nl"
8240 $as_echo 'FGREP' >> "conftest.nl"
8241 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8242 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8243 as_fn_arith $ac_count + 1 && ac_count=$as_val
8244 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8245 # Best one so far, save it but keep looking for a better one
8246 ac_cv_path_FGREP="$ac_path_FGREP"
8247 ac_path_FGREP_max=$ac_count
8248 fi
8249 # 10*(2^10) chars as input seems more than enough
8250 test $ac_count -gt 10 && break
8251 done
8252 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8253 esac
8254
8255 $ac_path_FGREP_found && break 3
8256 done
8257 done
8258 done
8259 IFS=$as_save_IFS
8260 if test -z "$ac_cv_path_FGREP"; then
8261 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8262 fi
8263 else
8264 ac_cv_path_FGREP=$FGREP
8265 fi
8266
8267 fi
8268 fi
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8270 $as_echo "$ac_cv_path_FGREP" >&6; }
8271 FGREP="$ac_cv_path_FGREP"
8272
8273
8274 test -z "$GREP" && GREP=grep
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294 # Check whether --with-gnu-ld was given.
8295 if test "${with_gnu_ld+set}" = set; then :
8296 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8297 else
8298 with_gnu_ld=no
8299 fi
8300
8301 ac_prog=ld
8302 if test yes = "$GCC"; then
8303 # Check if gcc -print-prog-name=ld gives a path.
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8305 $as_echo_n "checking for ld used by $CC... " >&6; }
8306 case $host in
8307 *-*-mingw*)
8308 # gcc leaves a trailing carriage return, which upsets mingw
8309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8310 *)
8311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8312 esac
8313 case $ac_prog in
8314 # Accept absolute paths.
8315 [\\/]* | ?:[\\/]*)
8316 re_direlt='/[^/][^/]*/\.\./'
8317 # Canonicalize the pathname of ld
8318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8321 done
8322 test -z "$LD" && LD=$ac_prog
8323 ;;
8324 "")
8325 # If it fails, then pretend we aren't using GCC.
8326 ac_prog=ld
8327 ;;
8328 *)
8329 # If it is relative, then search for the first ld in PATH.
8330 with_gnu_ld=unknown
8331 ;;
8332 esac
8333 elif test yes = "$with_gnu_ld"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8335 $as_echo_n "checking for GNU ld... " >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8338 $as_echo_n "checking for non-GNU ld... " >&6; }
8339 fi
8340 if ${lt_cv_path_LD+:} false; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -z "$LD"; then
8344 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8345 for ac_dir in $PATH; do
8346 IFS=$lt_save_ifs
8347 test -z "$ac_dir" && ac_dir=.
8348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8349 lt_cv_path_LD=$ac_dir/$ac_prog
8350 # Check to see if the program is GNU ld. I'd rather use --version,
8351 # but apparently some variants of GNU ld only accept -v.
8352 # Break only if it was the GNU/non-GNU ld that we prefer.
8353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8354 *GNU* | *'with BFD'*)
8355 test no != "$with_gnu_ld" && break
8356 ;;
8357 *)
8358 test yes != "$with_gnu_ld" && break
8359 ;;
8360 esac
8361 fi
8362 done
8363 IFS=$lt_save_ifs
8364 else
8365 lt_cv_path_LD=$LD # Let the user override the test with a path.
8366 fi
8367 fi
8368
8369 LD=$lt_cv_path_LD
8370 if test -n "$LD"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8372 $as_echo "$LD" >&6; }
8373 else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8376 fi
8377 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8380 if ${lt_cv_prog_gnu_ld+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8384 case `$LD -v 2>&1 </dev/null` in
8385 *GNU* | *'with BFD'*)
8386 lt_cv_prog_gnu_ld=yes
8387 ;;
8388 *)
8389 lt_cv_prog_gnu_ld=no
8390 ;;
8391 esac
8392 fi
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8394 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8395 with_gnu_ld=$lt_cv_prog_gnu_ld
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8406 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8407 if ${lt_cv_path_NM+:} false; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 if test -n "$NM"; then
8411 # Let the user override the test.
8412 lt_cv_path_NM=$NM
8413 else
8414 lt_nm_to_check=${ac_tool_prefix}nm
8415 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8416 lt_nm_to_check="$lt_nm_to_check nm"
8417 fi
8418 for lt_tmp_nm in $lt_nm_to_check; do
8419 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8420 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8421 IFS=$lt_save_ifs
8422 test -z "$ac_dir" && ac_dir=.
8423 tmp_nm=$ac_dir/$lt_tmp_nm
8424 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8425 # Check to see if the nm accepts a BSD-compat flag.
8426 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8427 # nm: unknown option "B" ignored
8428 # Tru64's nm complains that /dev/null is an invalid object file
8429 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8430 case $build_os in
8431 mingw*) lt_bad_file=conftest.nm/nofile ;;
8432 *) lt_bad_file=/dev/null ;;
8433 esac
8434 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8435 *$lt_bad_file* | *'Invalid file or object type'*)
8436 lt_cv_path_NM="$tmp_nm -B"
8437 break 2
8438 ;;
8439 *)
8440 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8441 */dev/null*)
8442 lt_cv_path_NM="$tmp_nm -p"
8443 break 2
8444 ;;
8445 *)
8446 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8447 continue # so that we can try to find one that supports BSD flags
8448 ;;
8449 esac
8450 ;;
8451 esac
8452 fi
8453 done
8454 IFS=$lt_save_ifs
8455 done
8456 : ${lt_cv_path_NM=no}
8457 fi
8458 fi
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8460 $as_echo "$lt_cv_path_NM" >&6; }
8461 if test no != "$lt_cv_path_NM"; then
8462 NM=$lt_cv_path_NM
8463 else
8464 # Didn't find any BSD compatible name lister, look for dumpbin.
8465 if test -n "$DUMPBIN"; then :
8466 # Let the user override the test.
8467 else
8468 if test -n "$ac_tool_prefix"; then
8469 for ac_prog in dumpbin "link -dump"
8470 do
8471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_prog_DUMPBIN+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 if test -n "$DUMPBIN"; then
8479 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8480 else
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492 done
8493 done
8494 IFS=$as_save_IFS
8495
8496 fi
8497 fi
8498 DUMPBIN=$ac_cv_prog_DUMPBIN
8499 if test -n "$DUMPBIN"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8501 $as_echo "$DUMPBIN" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507
8508 test -n "$DUMPBIN" && break
8509 done
8510 fi
8511 if test -z "$DUMPBIN"; then
8512 ac_ct_DUMPBIN=$DUMPBIN
8513 for ac_prog in dumpbin "link -dump"
8514 do
8515 # Extract the first word of "$ac_prog", so it can be a program name with args.
8516 set dummy $ac_prog; ac_word=$2
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8518 $as_echo_n "checking for $ac_word... " >&6; }
8519 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 if test -n "$ac_ct_DUMPBIN"; then
8523 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8524 else
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528 IFS=$as_save_IFS
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540 fi
8541 fi
8542 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8543 if test -n "$ac_ct_DUMPBIN"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8545 $as_echo "$ac_ct_DUMPBIN" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8549 fi
8550
8551
8552 test -n "$ac_ct_DUMPBIN" && break
8553 done
8554
8555 if test "x$ac_ct_DUMPBIN" = x; then
8556 DUMPBIN=":"
8557 else
8558 case $cross_compiling:$ac_tool_warned in
8559 yes:)
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8562 ac_tool_warned=yes ;;
8563 esac
8564 DUMPBIN=$ac_ct_DUMPBIN
8565 fi
8566 fi
8567
8568 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8569 *COFF*)
8570 DUMPBIN="$DUMPBIN -symbols -headers"
8571 ;;
8572 *)
8573 DUMPBIN=:
8574 ;;
8575 esac
8576 fi
8577
8578 if test : != "$DUMPBIN"; then
8579 NM=$DUMPBIN
8580 fi
8581 fi
8582 test -z "$NM" && NM=nm
8583
8584
8585
8586
8587
8588
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8590 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8591 if ${lt_cv_nm_interface+:} false; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 lt_cv_nm_interface="BSD nm"
8595 echo "int some_variable = 0;" > conftest.$ac_ext
8596 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8597 (eval "$ac_compile" 2>conftest.err)
8598 cat conftest.err >&5
8599 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8600 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8601 cat conftest.err >&5
8602 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8603 cat conftest.out >&5
8604 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8605 lt_cv_nm_interface="MS dumpbin"
8606 fi
8607 rm -f conftest*
8608 fi
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8610 $as_echo "$lt_cv_nm_interface" >&6; }
8611
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8613 $as_echo_n "checking whether ln -s works... " >&6; }
8614 LN_S=$as_ln_s
8615 if test "$LN_S" = "ln -s"; then
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8617 $as_echo "yes" >&6; }
8618 else
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8620 $as_echo "no, using $LN_S" >&6; }
8621 fi
8622
8623 # find the maximum length of command line arguments
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8625 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8626 if ${lt_cv_sys_max_cmd_len+:} false; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 i=0
8630 teststring=ABCD
8631
8632 case $build_os in
8633 msdosdjgpp*)
8634 # On DJGPP, this test can blow up pretty badly due to problems in libc
8635 # (any single argument exceeding 2000 bytes causes a buffer overrun
8636 # during glob expansion). Even if it were fixed, the result of this
8637 # check would be larger than it should be.
8638 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8639 ;;
8640
8641 gnu*)
8642 # Under GNU Hurd, this test is not required because there is
8643 # no limit to the length of command line arguments.
8644 # Libtool will interpret -1 as no limit whatsoever
8645 lt_cv_sys_max_cmd_len=-1;
8646 ;;
8647
8648 cygwin* | mingw* | cegcc*)
8649 # On Win9x/ME, this test blows up -- it succeeds, but takes
8650 # about 5 minutes as the teststring grows exponentially.
8651 # Worse, since 9x/ME are not pre-emptively multitasking,
8652 # you end up with a "frozen" computer, even though with patience
8653 # the test eventually succeeds (with a max line length of 256k).
8654 # Instead, let's just punt: use the minimum linelength reported by
8655 # all of the supported platforms: 8192 (on NT/2K/XP).
8656 lt_cv_sys_max_cmd_len=8192;
8657 ;;
8658
8659 mint*)
8660 # On MiNT this can take a long time and run out of memory.
8661 lt_cv_sys_max_cmd_len=8192;
8662 ;;
8663
8664 amigaos*)
8665 # On AmigaOS with pdksh, this test takes hours, literally.
8666 # So we just punt and use a minimum line length of 8192.
8667 lt_cv_sys_max_cmd_len=8192;
8668 ;;
8669
8670 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8671 # This has been around since 386BSD, at least. Likely further.
8672 if test -x /sbin/sysctl; then
8673 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8674 elif test -x /usr/sbin/sysctl; then
8675 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8676 else
8677 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8678 fi
8679 # And add a safety zone
8680 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8681 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8682 ;;
8683
8684 interix*)
8685 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8686 lt_cv_sys_max_cmd_len=196608
8687 ;;
8688
8689 os2*)
8690 # The test takes a long time on OS/2.
8691 lt_cv_sys_max_cmd_len=8192
8692 ;;
8693
8694 osf*)
8695 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8696 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8697 # nice to cause kernel panics so lets avoid the loop below.
8698 # First set a reasonable default.
8699 lt_cv_sys_max_cmd_len=16384
8700 #
8701 if test -x /sbin/sysconfig; then
8702 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8703 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8704 esac
8705 fi
8706 ;;
8707 sco3.2v5*)
8708 lt_cv_sys_max_cmd_len=102400
8709 ;;
8710 sysv5* | sco5v6* | sysv4.2uw2*)
8711 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8712 if test -n "$kargmax"; then
8713 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8714 else
8715 lt_cv_sys_max_cmd_len=32768
8716 fi
8717 ;;
8718 *)
8719 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8720 if test -n "$lt_cv_sys_max_cmd_len" && \
8721 test undefined != "$lt_cv_sys_max_cmd_len"; then
8722 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8724 else
8725 # Make teststring a little bigger before we do anything with it.
8726 # a 1K string should be a reasonable start.
8727 for i in 1 2 3 4 5 6 7 8; do
8728 teststring=$teststring$teststring
8729 done
8730 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8731 # If test is not a shell built-in, we'll probably end up computing a
8732 # maximum length that is only half of the actual maximum length, but
8733 # we can't tell.
8734 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8735 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8736 test 17 != "$i" # 1/2 MB should be enough
8737 do
8738 i=`expr $i + 1`
8739 teststring=$teststring$teststring
8740 done
8741 # Only check the string length outside the loop.
8742 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8743 teststring=
8744 # Add a significant safety factor because C++ compilers can tack on
8745 # massive amounts of additional arguments before passing them to the
8746 # linker. It appears as though 1/2 is a usable value.
8747 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8748 fi
8749 ;;
8750 esac
8751
8752 fi
8753
8754 if test -n "$lt_cv_sys_max_cmd_len"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8756 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8757 else
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8759 $as_echo "none" >&6; }
8760 fi
8761 max_cmd_len=$lt_cv_sys_max_cmd_len
8762
8763
8764
8765
8766
8767
8768 : ${CP="cp -f"}
8769 : ${MV="mv -f"}
8770 : ${RM="rm -f"}
8771
8772 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8773 lt_unset=unset
8774 else
8775 lt_unset=false
8776 fi
8777
8778
8779
8780
8781
8782 # test EBCDIC or ASCII
8783 case `echo X|tr X '\101'` in
8784 A) # ASCII based system
8785 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8786 lt_SP2NL='tr \040 \012'
8787 lt_NL2SP='tr \015\012 \040\040'
8788 ;;
8789 *) # EBCDIC based system
8790 lt_SP2NL='tr \100 \n'
8791 lt_NL2SP='tr \r\n \100\100'
8792 ;;
8793 esac
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8804 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8805 if ${lt_cv_to_host_file_cmd+:} false; then :
8806 $as_echo_n "(cached) " >&6
8807 else
8808 case $host in
8809 *-*-mingw* )
8810 case $build in
8811 *-*-mingw* ) # actually msys
8812 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8813 ;;
8814 *-*-cygwin* )
8815 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8816 ;;
8817 * ) # otherwise, assume *nix
8818 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8819 ;;
8820 esac
8821 ;;
8822 *-*-cygwin* )
8823 case $build in
8824 *-*-mingw* ) # actually msys
8825 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8826 ;;
8827 *-*-cygwin* )
8828 lt_cv_to_host_file_cmd=func_convert_file_noop
8829 ;;
8830 * ) # otherwise, assume *nix
8831 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8832 ;;
8833 esac
8834 ;;
8835 * ) # unhandled hosts (and "normal" native builds)
8836 lt_cv_to_host_file_cmd=func_convert_file_noop
8837 ;;
8838 esac
8839
8840 fi
8841
8842 to_host_file_cmd=$lt_cv_to_host_file_cmd
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8844 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8845
8846
8847
8848
8849
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8851 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8852 if ${lt_cv_to_tool_file_cmd+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 #assume ordinary cross tools, or native build.
8856 lt_cv_to_tool_file_cmd=func_convert_file_noop
8857 case $host in
8858 *-*-mingw* )
8859 case $build in
8860 *-*-mingw* ) # actually msys
8861 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8862 ;;
8863 esac
8864 ;;
8865 esac
8866
8867 fi
8868
8869 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8871 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8872
8873
8874
8875
8876
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8878 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8879 if ${lt_cv_ld_reload_flag+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 lt_cv_ld_reload_flag='-r'
8883 fi
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8885 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8886 reload_flag=$lt_cv_ld_reload_flag
8887 case $reload_flag in
8888 "" | " "*) ;;
8889 *) reload_flag=" $reload_flag" ;;
8890 esac
8891 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8892 case $host_os in
8893 cygwin* | mingw* | pw32* | cegcc*)
8894 if test yes != "$GCC"; then
8895 reload_cmds=false
8896 fi
8897 ;;
8898 darwin*)
8899 if test yes = "$GCC"; then
8900 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8901 else
8902 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8903 fi
8904 ;;
8905 esac
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915 if test -n "$ac_tool_prefix"; then
8916 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8917 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919 $as_echo_n "checking for $ac_word... " >&6; }
8920 if ${ac_cv_prog_OBJDUMP+:} false; then :
8921 $as_echo_n "(cached) " >&6
8922 else
8923 if test -n "$OBJDUMP"; then
8924 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8925 else
8926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927 for as_dir in $PATH
8928 do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8933 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8935 break 2
8936 fi
8937 done
8938 done
8939 IFS=$as_save_IFS
8940
8941 fi
8942 fi
8943 OBJDUMP=$ac_cv_prog_OBJDUMP
8944 if test -n "$OBJDUMP"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8946 $as_echo "$OBJDUMP" >&6; }
8947 else
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949 $as_echo "no" >&6; }
8950 fi
8951
8952
8953 fi
8954 if test -z "$ac_cv_prog_OBJDUMP"; then
8955 ac_ct_OBJDUMP=$OBJDUMP
8956 # Extract the first word of "objdump", so it can be a program name with args.
8957 set dummy objdump; ac_word=$2
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8959 $as_echo_n "checking for $ac_word... " >&6; }
8960 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 if test -n "$ac_ct_OBJDUMP"; then
8964 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8965 else
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 for as_dir in $PATH
8968 do
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8973 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8975 break 2
8976 fi
8977 done
8978 done
8979 IFS=$as_save_IFS
8980
8981 fi
8982 fi
8983 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8984 if test -n "$ac_ct_OBJDUMP"; then
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8986 $as_echo "$ac_ct_OBJDUMP" >&6; }
8987 else
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989 $as_echo "no" >&6; }
8990 fi
8991
8992 if test "x$ac_ct_OBJDUMP" = x; then
8993 OBJDUMP="false"
8994 else
8995 case $cross_compiling:$ac_tool_warned in
8996 yes:)
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8999 ac_tool_warned=yes ;;
9000 esac
9001 OBJDUMP=$ac_ct_OBJDUMP
9002 fi
9003 else
9004 OBJDUMP="$ac_cv_prog_OBJDUMP"
9005 fi
9006
9007 test -z "$OBJDUMP" && OBJDUMP=objdump
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9018 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9019 if ${lt_cv_deplibs_check_method+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 lt_cv_file_magic_cmd='$MAGIC_CMD'
9023 lt_cv_file_magic_test_file=
9024 lt_cv_deplibs_check_method='unknown'
9025 # Need to set the preceding variable on all platforms that support
9026 # interlibrary dependencies.
9027 # 'none' -- dependencies not supported.
9028 # 'unknown' -- same as none, but documents that we really don't know.
9029 # 'pass_all' -- all dependencies passed with no checks.
9030 # 'test_compile' -- check by making test program.
9031 # 'file_magic [[regex]]' -- check by looking for files in library path
9032 # that responds to the $file_magic_cmd with a given extended regex.
9033 # If you have 'file' or equivalent on your system and you're not sure
9034 # whether 'pass_all' will *always* work, you probably want this one.
9035
9036 case $host_os in
9037 aix[4-9]*)
9038 lt_cv_deplibs_check_method=pass_all
9039 ;;
9040
9041 beos*)
9042 lt_cv_deplibs_check_method=pass_all
9043 ;;
9044
9045 bsdi[45]*)
9046 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9047 lt_cv_file_magic_cmd='/usr/bin/file -L'
9048 lt_cv_file_magic_test_file=/shlib/libc.so
9049 ;;
9050
9051 cygwin*)
9052 # func_win32_libid is a shell function defined in ltmain.sh
9053 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9054 lt_cv_file_magic_cmd='func_win32_libid'
9055 ;;
9056
9057 mingw* | pw32*)
9058 # Base MSYS/MinGW do not provide the 'file' command needed by
9059 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9060 # unless we find 'file', for example because we are cross-compiling.
9061 if ( file / ) >/dev/null 2>&1; then
9062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9063 lt_cv_file_magic_cmd='func_win32_libid'
9064 else
9065 # Keep this pattern in sync with the one in func_win32_libid.
9066 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9067 lt_cv_file_magic_cmd='$OBJDUMP -f'
9068 fi
9069 ;;
9070
9071 cegcc*)
9072 # use the weaker test based on 'objdump'. See mingw*.
9073 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9074 lt_cv_file_magic_cmd='$OBJDUMP -f'
9075 ;;
9076
9077 darwin* | rhapsody*)
9078 lt_cv_deplibs_check_method=pass_all
9079 ;;
9080
9081 freebsd* | dragonfly*)
9082 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9083 case $host_cpu in
9084 i*86 )
9085 # Not sure whether the presence of OpenBSD here was a mistake.
9086 # Let's accept both of them until this is cleared up.
9087 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9088 lt_cv_file_magic_cmd=/usr/bin/file
9089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9090 ;;
9091 esac
9092 else
9093 lt_cv_deplibs_check_method=pass_all
9094 fi
9095 ;;
9096
9097 haiku*)
9098 lt_cv_deplibs_check_method=pass_all
9099 ;;
9100
9101 hpux10.20* | hpux11*)
9102 lt_cv_file_magic_cmd=/usr/bin/file
9103 case $host_cpu in
9104 ia64*)
9105 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9106 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9107 ;;
9108 hppa*64*)
9109 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]'
9110 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9111 ;;
9112 *)
9113 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9114 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9115 ;;
9116 esac
9117 ;;
9118
9119 interix[3-9]*)
9120 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9122 ;;
9123
9124 irix5* | irix6* | nonstopux*)
9125 case $LD in
9126 *-32|*"-32 ") libmagic=32-bit;;
9127 *-n32|*"-n32 ") libmagic=N32;;
9128 *-64|*"-64 ") libmagic=64-bit;;
9129 *) libmagic=never-match;;
9130 esac
9131 lt_cv_deplibs_check_method=pass_all
9132 ;;
9133
9134 # This must be glibc/ELF.
9135 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9136 lt_cv_deplibs_check_method=pass_all
9137 ;;
9138
9139 netbsd*)
9140 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9142 else
9143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9144 fi
9145 ;;
9146
9147 newos6*)
9148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9149 lt_cv_file_magic_cmd=/usr/bin/file
9150 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9151 ;;
9152
9153 *nto* | *qnx*)
9154 lt_cv_deplibs_check_method=pass_all
9155 ;;
9156
9157 openbsd* | bitrig*)
9158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9159 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9160 else
9161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9162 fi
9163 ;;
9164
9165 osf3* | osf4* | osf5*)
9166 lt_cv_deplibs_check_method=pass_all
9167 ;;
9168
9169 rdos*)
9170 lt_cv_deplibs_check_method=pass_all
9171 ;;
9172
9173 solaris*)
9174 lt_cv_deplibs_check_method=pass_all
9175 ;;
9176
9177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9178 lt_cv_deplibs_check_method=pass_all
9179 ;;
9180
9181 sysv4 | sysv4.3*)
9182 case $host_vendor in
9183 motorola)
9184 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]'
9185 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9186 ;;
9187 ncr)
9188 lt_cv_deplibs_check_method=pass_all
9189 ;;
9190 sequent)
9191 lt_cv_file_magic_cmd='/bin/file'
9192 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9193 ;;
9194 sni)
9195 lt_cv_file_magic_cmd='/bin/file'
9196 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9197 lt_cv_file_magic_test_file=/lib/libc.so
9198 ;;
9199 siemens)
9200 lt_cv_deplibs_check_method=pass_all
9201 ;;
9202 pc)
9203 lt_cv_deplibs_check_method=pass_all
9204 ;;
9205 esac
9206 ;;
9207
9208 tpf*)
9209 lt_cv_deplibs_check_method=pass_all
9210 ;;
9211 os2*)
9212 lt_cv_deplibs_check_method=pass_all
9213 ;;
9214 esac
9215
9216 fi
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9218 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9219
9220 file_magic_glob=
9221 want_nocaseglob=no
9222 if test "$build" = "$host"; then
9223 case $host_os in
9224 mingw* | pw32*)
9225 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9226 want_nocaseglob=yes
9227 else
9228 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9229 fi
9230 ;;
9231 esac
9232 fi
9233
9234 file_magic_cmd=$lt_cv_file_magic_cmd
9235 deplibs_check_method=$lt_cv_deplibs_check_method
9236 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259 if test -n "$ac_tool_prefix"; then
9260 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9261 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9263 $as_echo_n "checking for $ac_word... " >&6; }
9264 if ${ac_cv_prog_DLLTOOL+:} false; then :
9265 $as_echo_n "(cached) " >&6
9266 else
9267 if test -n "$DLLTOOL"; then
9268 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9269 else
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9272 do
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9280 fi
9281 done
9282 done
9283 IFS=$as_save_IFS
9284
9285 fi
9286 fi
9287 DLLTOOL=$ac_cv_prog_DLLTOOL
9288 if test -n "$DLLTOOL"; then
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9290 $as_echo "$DLLTOOL" >&6; }
9291 else
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9293 $as_echo "no" >&6; }
9294 fi
9295
9296
9297 fi
9298 if test -z "$ac_cv_prog_DLLTOOL"; then
9299 ac_ct_DLLTOOL=$DLLTOOL
9300 # Extract the first word of "dlltool", so it can be a program name with args.
9301 set dummy dlltool; ac_word=$2
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303 $as_echo_n "checking for $ac_word... " >&6; }
9304 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 if test -n "$ac_ct_DLLTOOL"; then
9308 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9309 else
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311 for as_dir in $PATH
9312 do
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9317 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 break 2
9320 fi
9321 done
9322 done
9323 IFS=$as_save_IFS
9324
9325 fi
9326 fi
9327 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9328 if test -n "$ac_ct_DLLTOOL"; then
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9330 $as_echo "$ac_ct_DLLTOOL" >&6; }
9331 else
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 $as_echo "no" >&6; }
9334 fi
9335
9336 if test "x$ac_ct_DLLTOOL" = x; then
9337 DLLTOOL="false"
9338 else
9339 case $cross_compiling:$ac_tool_warned in
9340 yes:)
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9343 ac_tool_warned=yes ;;
9344 esac
9345 DLLTOOL=$ac_ct_DLLTOOL
9346 fi
9347 else
9348 DLLTOOL="$ac_cv_prog_DLLTOOL"
9349 fi
9350
9351 test -z "$DLLTOOL" && DLLTOOL=dlltool
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9363 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9364 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 lt_cv_sharedlib_from_linklib_cmd='unknown'
9368
9369 case $host_os in
9370 cygwin* | mingw* | pw32* | cegcc*)
9371 # two different shell functions defined in ltmain.sh;
9372 # decide which one to use based on capabilities of $DLLTOOL
9373 case `$DLLTOOL --help 2>&1` in
9374 *--identify-strict*)
9375 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9376 ;;
9377 *)
9378 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9379 ;;
9380 esac
9381 ;;
9382 *)
9383 # fallback: assume linklib IS sharedlib
9384 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9385 ;;
9386 esac
9387
9388 fi
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9390 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9391 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9392 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9393
9394
9395
9396
9397
9398
9399
9400 if test -n "$ac_tool_prefix"; then
9401 for ac_prog in ar
9402 do
9403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_prog_AR+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 if test -n "$AR"; then
9411 ac_cv_prog_AR="$AR" # Let the user override the test.
9412 else
9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9414 for as_dir in $PATH
9415 do
9416 IFS=$as_save_IFS
9417 test -z "$as_dir" && as_dir=.
9418 for ac_exec_ext in '' $ac_executable_extensions; do
9419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9422 break 2
9423 fi
9424 done
9425 done
9426 IFS=$as_save_IFS
9427
9428 fi
9429 fi
9430 AR=$ac_cv_prog_AR
9431 if test -n "$AR"; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9433 $as_echo "$AR" >&6; }
9434 else
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9437 fi
9438
9439
9440 test -n "$AR" && break
9441 done
9442 fi
9443 if test -z "$AR"; then
9444 ac_ct_AR=$AR
9445 for ac_prog in ar
9446 do
9447 # Extract the first word of "$ac_prog", so it can be a program name with args.
9448 set dummy $ac_prog; ac_word=$2
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9450 $as_echo_n "checking for $ac_word... " >&6; }
9451 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9452 $as_echo_n "(cached) " >&6
9453 else
9454 if test -n "$ac_ct_AR"; then
9455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9456 else
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9459 do
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9464 ac_cv_prog_ac_ct_AR="$ac_prog"
9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9467 fi
9468 done
9469 done
9470 IFS=$as_save_IFS
9471
9472 fi
9473 fi
9474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9475 if test -n "$ac_ct_AR"; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9477 $as_echo "$ac_ct_AR" >&6; }
9478 else
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9480 $as_echo "no" >&6; }
9481 fi
9482
9483
9484 test -n "$ac_ct_AR" && break
9485 done
9486
9487 if test "x$ac_ct_AR" = x; then
9488 AR="false"
9489 else
9490 case $cross_compiling:$ac_tool_warned in
9491 yes:)
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9494 ac_tool_warned=yes ;;
9495 esac
9496 AR=$ac_ct_AR
9497 fi
9498 fi
9499
9500 : ${AR=ar}
9501 : ${AR_FLAGS=cru}
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9514 $as_echo_n "checking for archiver @FILE support... " >&6; }
9515 if ${lt_cv_ar_at_file+:} false; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 lt_cv_ar_at_file=no
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521
9522 int
9523 main ()
9524 {
9525
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 if ac_fn_c_try_compile "$LINENO"; then :
9531 echo conftest.$ac_objext > conftest.lst
9532 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9534 (eval $lt_ar_try) 2>&5
9535 ac_status=$?
9536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9537 test $ac_status = 0; }
9538 if test 0 -eq "$ac_status"; then
9539 # Ensure the archiver fails upon bogus file names.
9540 rm -f conftest.$ac_objext libconftest.a
9541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9542 (eval $lt_ar_try) 2>&5
9543 ac_status=$?
9544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9545 test $ac_status = 0; }
9546 if test 0 -ne "$ac_status"; then
9547 lt_cv_ar_at_file=@
9548 fi
9549 fi
9550 rm -f conftest.* libconftest.a
9551
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9554
9555 fi
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9557 $as_echo "$lt_cv_ar_at_file" >&6; }
9558
9559 if test no = "$lt_cv_ar_at_file"; then
9560 archiver_list_spec=
9561 else
9562 archiver_list_spec=$lt_cv_ar_at_file
9563 fi
9564
9565
9566
9567
9568
9569
9570
9571 if test -n "$ac_tool_prefix"; then
9572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9573 set dummy ${ac_tool_prefix}strip; ac_word=$2
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575 $as_echo_n "checking for $ac_word... " >&6; }
9576 if ${ac_cv_prog_STRIP+:} false; then :
9577 $as_echo_n "(cached) " >&6
9578 else
9579 if test -n "$STRIP"; then
9580 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9581 else
9582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9584 do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9589 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591 break 2
9592 fi
9593 done
9594 done
9595 IFS=$as_save_IFS
9596
9597 fi
9598 fi
9599 STRIP=$ac_cv_prog_STRIP
9600 if test -n "$STRIP"; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9602 $as_echo "$STRIP" >&6; }
9603 else
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605 $as_echo "no" >&6; }
9606 fi
9607
9608
9609 fi
9610 if test -z "$ac_cv_prog_STRIP"; then
9611 ac_ct_STRIP=$STRIP
9612 # Extract the first word of "strip", so it can be a program name with args.
9613 set dummy strip; ac_word=$2
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9615 $as_echo_n "checking for $ac_word... " >&6; }
9616 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9617 $as_echo_n "(cached) " >&6
9618 else
9619 if test -n "$ac_ct_STRIP"; then
9620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9621 else
9622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623 for as_dir in $PATH
9624 do
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
9627 for ac_exec_ext in '' $ac_executable_extensions; do
9628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9629 ac_cv_prog_ac_ct_STRIP="strip"
9630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9631 break 2
9632 fi
9633 done
9634 done
9635 IFS=$as_save_IFS
9636
9637 fi
9638 fi
9639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9640 if test -n "$ac_ct_STRIP"; then
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9642 $as_echo "$ac_ct_STRIP" >&6; }
9643 else
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645 $as_echo "no" >&6; }
9646 fi
9647
9648 if test "x$ac_ct_STRIP" = x; then
9649 STRIP=":"
9650 else
9651 case $cross_compiling:$ac_tool_warned in
9652 yes:)
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9655 ac_tool_warned=yes ;;
9656 esac
9657 STRIP=$ac_ct_STRIP
9658 fi
9659 else
9660 STRIP="$ac_cv_prog_STRIP"
9661 fi
9662
9663 test -z "$STRIP" && STRIP=:
9664
9665
9666
9667
9668
9669
9670 if test -n "$ac_tool_prefix"; then
9671 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9672 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if ${ac_cv_prog_RANLIB+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 if test -n "$RANLIB"; then
9679 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9680 else
9681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682 for as_dir in $PATH
9683 do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9688 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9690 break 2
9691 fi
9692 done
9693 done
9694 IFS=$as_save_IFS
9695
9696 fi
9697 fi
9698 RANLIB=$ac_cv_prog_RANLIB
9699 if test -n "$RANLIB"; then
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9701 $as_echo "$RANLIB" >&6; }
9702 else
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704 $as_echo "no" >&6; }
9705 fi
9706
9707
9708 fi
9709 if test -z "$ac_cv_prog_RANLIB"; then
9710 ac_ct_RANLIB=$RANLIB
9711 # Extract the first word of "ranlib", so it can be a program name with args.
9712 set dummy ranlib; ac_word=$2
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9714 $as_echo_n "checking for $ac_word... " >&6; }
9715 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9716 $as_echo_n "(cached) " >&6
9717 else
9718 if test -n "$ac_ct_RANLIB"; then
9719 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9720 else
9721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $PATH
9723 do
9724 IFS=$as_save_IFS
9725 test -z "$as_dir" && as_dir=.
9726 for ac_exec_ext in '' $ac_executable_extensions; do
9727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728 ac_cv_prog_ac_ct_RANLIB="ranlib"
9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 break 2
9731 fi
9732 done
9733 done
9734 IFS=$as_save_IFS
9735
9736 fi
9737 fi
9738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9739 if test -n "$ac_ct_RANLIB"; then
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9741 $as_echo "$ac_ct_RANLIB" >&6; }
9742 else
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9744 $as_echo "no" >&6; }
9745 fi
9746
9747 if test "x$ac_ct_RANLIB" = x; then
9748 RANLIB=":"
9749 else
9750 case $cross_compiling:$ac_tool_warned in
9751 yes:)
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9754 ac_tool_warned=yes ;;
9755 esac
9756 RANLIB=$ac_ct_RANLIB
9757 fi
9758 else
9759 RANLIB="$ac_cv_prog_RANLIB"
9760 fi
9761
9762 test -z "$RANLIB" && RANLIB=:
9763
9764
9765
9766
9767
9768
9769 # Determine commands to create old-style static archives.
9770 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9771 old_postinstall_cmds='chmod 644 $oldlib'
9772 old_postuninstall_cmds=
9773
9774 if test -n "$RANLIB"; then
9775 case $host_os in
9776 bitrig* | openbsd*)
9777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9778 ;;
9779 *)
9780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9781 ;;
9782 esac
9783 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9784 fi
9785
9786 case $host_os in
9787 darwin*)
9788 lock_old_archive_extraction=yes ;;
9789 *)
9790 lock_old_archive_extraction=no ;;
9791 esac
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831 # If no C compiler was specified, use CC.
9832 LTCC=${LTCC-"$CC"}
9833
9834 # If no C compiler flags were specified, use CFLAGS.
9835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9836
9837 # Allow CC to be a program name with arguments.
9838 compiler=$CC
9839
9840
9841 # Check for command to grab the raw symbol name followed by C symbol from nm.
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9843 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9844 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847
9848 # These are sane defaults that work on at least a few old systems.
9849 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9850
9851 # Character class describing NM global symbol codes.
9852 symcode='[BCDEGRST]'
9853
9854 # Regexp to match symbols that can be accessed directly from C.
9855 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9856
9857 # Define system-specific variables.
9858 case $host_os in
9859 aix*)
9860 symcode='[BCDT]'
9861 ;;
9862 cygwin* | mingw* | pw32* | cegcc*)
9863 symcode='[ABCDGISTW]'
9864 ;;
9865 hpux*)
9866 if test ia64 = "$host_cpu"; then
9867 symcode='[ABCDEGRST]'
9868 fi
9869 ;;
9870 irix* | nonstopux*)
9871 symcode='[BCDEGRST]'
9872 ;;
9873 osf*)
9874 symcode='[BCDEGQRST]'
9875 ;;
9876 solaris*)
9877 symcode='[BDRT]'
9878 ;;
9879 sco3.2v5*)
9880 symcode='[DT]'
9881 ;;
9882 sysv4.2uw2*)
9883 symcode='[DT]'
9884 ;;
9885 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9886 symcode='[ABDT]'
9887 ;;
9888 sysv4)
9889 symcode='[DFNSTU]'
9890 ;;
9891 esac
9892
9893 # If we're using GNU nm, then use its standard symbol codes.
9894 case `$NM -V 2>&1` in
9895 *GNU* | *'with BFD'*)
9896 symcode='[ABCDGIRSTW]' ;;
9897 esac
9898
9899 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9900 # Gets list of data symbols to import.
9901 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9902 # Adjust the below global symbol transforms to fixup imported variables.
9903 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9904 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9905 lt_c_name_lib_hook="\
9906 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9907 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9908 else
9909 # Disable hooks by default.
9910 lt_cv_sys_global_symbol_to_import=
9911 lt_cdecl_hook=
9912 lt_c_name_hook=
9913 lt_c_name_lib_hook=
9914 fi
9915
9916 # Transform an extracted symbol line into a proper C declaration.
9917 # Some systems (esp. on ia64) link data and code symbols differently,
9918 # so use this general approach.
9919 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9920 $lt_cdecl_hook\
9921 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9922 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9923
9924 # Transform an extracted symbol line into symbol name and symbol address
9925 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9926 $lt_c_name_hook\
9927 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9928 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9929
9930 # Transform an extracted symbol line into symbol name with lib prefix and
9931 # symbol address.
9932 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9933 $lt_c_name_lib_hook\
9934 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9935 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9936 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9937
9938 # Handle CRLF in mingw tool chain
9939 opt_cr=
9940 case $build_os in
9941 mingw*)
9942 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9943 ;;
9944 esac
9945
9946 # Try without a prefix underscore, then with it.
9947 for ac_symprfx in "" "_"; do
9948
9949 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9950 symxfrm="\\1 $ac_symprfx\\2 \\2"
9951
9952 # Write the raw and C identifiers.
9953 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9954 # Fake it for dumpbin and say T for any non-static function,
9955 # D for any global variable and I for any imported variable.
9956 # Also find C++ and __fastcall symbols from MSVC++,
9957 # which start with @ or ?.
9958 lt_cv_sys_global_symbol_pipe="$AWK '"\
9959 " {last_section=section; section=\$ 3};"\
9960 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9961 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9962 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9963 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9964 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9965 " \$ 0!~/External *\|/{next};"\
9966 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9967 " {if(hide[section]) next};"\
9968 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9969 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9970 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9971 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9972 " ' prfx=^$ac_symprfx"
9973 else
9974 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9975 fi
9976 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9977
9978 # Check to see that the pipe works correctly.
9979 pipe_works=no
9980
9981 rm -f conftest*
9982 cat > conftest.$ac_ext <<_LT_EOF
9983 #ifdef __cplusplus
9984 extern "C" {
9985 #endif
9986 char nm_test_var;
9987 void nm_test_func(void);
9988 void nm_test_func(void){}
9989 #ifdef __cplusplus
9990 }
9991 #endif
9992 int main(){nm_test_var='a';nm_test_func();return(0);}
9993 _LT_EOF
9994
9995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9996 (eval $ac_compile) 2>&5
9997 ac_status=$?
9998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9999 test $ac_status = 0; }; then
10000 # Now try to grab the symbols.
10001 nlist=conftest.nm
10002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10003 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10004 ac_status=$?
10005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10006 test $ac_status = 0; } && test -s "$nlist"; then
10007 # Try sorting and uniquifying the output.
10008 if sort "$nlist" | uniq > "$nlist"T; then
10009 mv -f "$nlist"T "$nlist"
10010 else
10011 rm -f "$nlist"T
10012 fi
10013
10014 # Make sure that we snagged all the symbols we need.
10015 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10016 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10017 cat <<_LT_EOF > conftest.$ac_ext
10018 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10019 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10020 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10021 relocations are performed -- see ld's documentation on pseudo-relocs. */
10022 # define LT_DLSYM_CONST
10023 #elif defined __osf__
10024 /* This system does not cope well with relocations in const data. */
10025 # define LT_DLSYM_CONST
10026 #else
10027 # define LT_DLSYM_CONST const
10028 #endif
10029
10030 #ifdef __cplusplus
10031 extern "C" {
10032 #endif
10033
10034 _LT_EOF
10035 # Now generate the symbol file.
10036 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10037
10038 cat <<_LT_EOF >> conftest.$ac_ext
10039
10040 /* The mapping between symbol names and symbols. */
10041 LT_DLSYM_CONST struct {
10042 const char *name;
10043 void *address;
10044 }
10045 lt__PROGRAM__LTX_preloaded_symbols[] =
10046 {
10047 { "@PROGRAM@", (void *) 0 },
10048 _LT_EOF
10049 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10050 cat <<\_LT_EOF >> conftest.$ac_ext
10051 {0, (void *) 0}
10052 };
10053
10054 /* This works around a problem in FreeBSD linker */
10055 #ifdef FREEBSD_WORKAROUND
10056 static const void *lt_preloaded_setup() {
10057 return lt__PROGRAM__LTX_preloaded_symbols;
10058 }
10059 #endif
10060
10061 #ifdef __cplusplus
10062 }
10063 #endif
10064 _LT_EOF
10065 # Now try linking the two files.
10066 mv conftest.$ac_objext conftstm.$ac_objext
10067 lt_globsym_save_LIBS=$LIBS
10068 lt_globsym_save_CFLAGS=$CFLAGS
10069 LIBS=conftstm.$ac_objext
10070 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10072 (eval $ac_link) 2>&5
10073 ac_status=$?
10074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10075 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10076 pipe_works=yes
10077 fi
10078 LIBS=$lt_globsym_save_LIBS
10079 CFLAGS=$lt_globsym_save_CFLAGS
10080 else
10081 echo "cannot find nm_test_func in $nlist" >&5
10082 fi
10083 else
10084 echo "cannot find nm_test_var in $nlist" >&5
10085 fi
10086 else
10087 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10088 fi
10089 else
10090 echo "$progname: failed program was:" >&5
10091 cat conftest.$ac_ext >&5
10092 fi
10093 rm -rf conftest* conftst*
10094
10095 # Do not use the global_symbol_pipe unless it works.
10096 if test yes = "$pipe_works"; then
10097 break
10098 else
10099 lt_cv_sys_global_symbol_pipe=
10100 fi
10101 done
10102
10103 fi
10104
10105 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10106 lt_cv_sys_global_symbol_to_cdecl=
10107 fi
10108 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10110 $as_echo "failed" >&6; }
10111 else
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10113 $as_echo "ok" >&6; }
10114 fi
10115
10116 # Response file support.
10117 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10118 nm_file_list_spec='@'
10119 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10120 nm_file_list_spec='@'
10121 fi
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10160 $as_echo_n "checking for sysroot... " >&6; }
10161
10162 # Check whether --with-sysroot was given.
10163 if test "${with_sysroot+set}" = set; then :
10164 withval=$with_sysroot;
10165 else
10166 with_sysroot=no
10167 fi
10168
10169
10170 lt_sysroot=
10171 case $with_sysroot in #(
10172 yes)
10173 if test yes = "$GCC"; then
10174 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10175 fi
10176 ;; #(
10177 /*)
10178 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10179 ;; #(
10180 no|'')
10181 ;; #(
10182 *)
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10184 $as_echo "$with_sysroot" >&6; }
10185 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10186 ;;
10187 esac
10188
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10190 $as_echo "${lt_sysroot:-no}" >&6; }
10191
10192
10193
10194
10195
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10197 $as_echo_n "checking for a working dd... " >&6; }
10198 if ${ac_cv_path_lt_DD+:} false; then :
10199 $as_echo_n "(cached) " >&6
10200 else
10201 printf 0123456789abcdef0123456789abcdef >conftest.i
10202 cat conftest.i conftest.i >conftest2.i
10203 : ${lt_DD:=$DD}
10204 if test -z "$lt_DD"; then
10205 ac_path_lt_DD_found=false
10206 # Loop through the user's path and test for each of PROGNAME-LIST
10207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208 for as_dir in $PATH
10209 do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
10212 for ac_prog in dd; do
10213 for ac_exec_ext in '' $ac_executable_extensions; do
10214 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
10215 as_fn_executable_p "$ac_path_lt_DD" || continue
10216 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10217 cmp -s conftest.i conftest.out \
10218 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10219 fi
10220 $ac_path_lt_DD_found && break 3
10221 done
10222 done
10223 done
10224 IFS=$as_save_IFS
10225 if test -z "$ac_cv_path_lt_DD"; then
10226 :
10227 fi
10228 else
10229 ac_cv_path_lt_DD=$lt_DD
10230 fi
10231
10232 rm -f conftest.i conftest2.i conftest.out
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10235 $as_echo "$ac_cv_path_lt_DD" >&6; }
10236
10237
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10239 $as_echo_n "checking how to truncate binary pipes... " >&6; }
10240 if ${lt_cv_truncate_bin+:} false; then :
10241 $as_echo_n "(cached) " >&6
10242 else
10243 printf 0123456789abcdef0123456789abcdef >conftest.i
10244 cat conftest.i conftest.i >conftest2.i
10245 lt_cv_truncate_bin=
10246 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10247 cmp -s conftest.i conftest.out \
10248 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10249 fi
10250 rm -f conftest.i conftest2.i conftest.out
10251 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10252 fi
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10254 $as_echo "$lt_cv_truncate_bin" >&6; }
10255
10256
10257
10258
10259
10260
10261
10262 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10263 func_cc_basename ()
10264 {
10265 for cc_temp in $*""; do
10266 case $cc_temp in
10267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10269 \-*) ;;
10270 *) break;;
10271 esac
10272 done
10273 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10274 }
10275
10276 # Check whether --enable-libtool-lock was given.
10277 if test "${enable_libtool_lock+set}" = set; then :
10278 enableval=$enable_libtool_lock;
10279 fi
10280
10281 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10282
10283 # Some flags need to be propagated to the compiler or linker for good
10284 # libtool support.
10285 case $host in
10286 ia64-*-hpux*)
10287 # Find out what ABI is being produced by ac_compile, and set mode
10288 # options accordingly.
10289 echo 'int i;' > conftest.$ac_ext
10290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10291 (eval $ac_compile) 2>&5
10292 ac_status=$?
10293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10294 test $ac_status = 0; }; then
10295 case `/usr/bin/file conftest.$ac_objext` in
10296 *ELF-32*)
10297 HPUX_IA64_MODE=32
10298 ;;
10299 *ELF-64*)
10300 HPUX_IA64_MODE=64
10301 ;;
10302 esac
10303 fi
10304 rm -rf conftest*
10305 ;;
10306 *-*-irix6*)
10307 # Find out what ABI is being produced by ac_compile, and set linker
10308 # options accordingly.
10309 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10311 (eval $ac_compile) 2>&5
10312 ac_status=$?
10313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314 test $ac_status = 0; }; then
10315 if test yes = "$lt_cv_prog_gnu_ld"; then
10316 case `/usr/bin/file conftest.$ac_objext` in
10317 *32-bit*)
10318 LD="${LD-ld} -melf32bsmip"
10319 ;;
10320 *N32*)
10321 LD="${LD-ld} -melf32bmipn32"
10322 ;;
10323 *64-bit*)
10324 LD="${LD-ld} -melf64bmip"
10325 ;;
10326 esac
10327 else
10328 case `/usr/bin/file conftest.$ac_objext` in
10329 *32-bit*)
10330 LD="${LD-ld} -32"
10331 ;;
10332 *N32*)
10333 LD="${LD-ld} -n32"
10334 ;;
10335 *64-bit*)
10336 LD="${LD-ld} -64"
10337 ;;
10338 esac
10339 fi
10340 fi
10341 rm -rf conftest*
10342 ;;
10343
10344 mips64*-*linux*)
10345 # Find out what ABI is being produced by ac_compile, and set linker
10346 # options accordingly.
10347 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10349 (eval $ac_compile) 2>&5
10350 ac_status=$?
10351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10352 test $ac_status = 0; }; then
10353 emul=elf
10354 case `/usr/bin/file conftest.$ac_objext` in
10355 *32-bit*)
10356 emul="${emul}32"
10357 ;;
10358 *64-bit*)
10359 emul="${emul}64"
10360 ;;
10361 esac
10362 case `/usr/bin/file conftest.$ac_objext` in
10363 *MSB*)
10364 emul="${emul}btsmip"
10365 ;;
10366 *LSB*)
10367 emul="${emul}ltsmip"
10368 ;;
10369 esac
10370 case `/usr/bin/file conftest.$ac_objext` in
10371 *N32*)
10372 emul="${emul}n32"
10373 ;;
10374 esac
10375 LD="${LD-ld} -m $emul"
10376 fi
10377 rm -rf conftest*
10378 ;;
10379
10380 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10381 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10382 # Find out what ABI is being produced by ac_compile, and set linker
10383 # options accordingly. Note that the listed cases only cover the
10384 # situations where additional linker options are needed (such as when
10385 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10386 # vice versa); the common cases where no linker options are needed do
10387 # not appear in the list.
10388 echo 'int i;' > conftest.$ac_ext
10389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10390 (eval $ac_compile) 2>&5
10391 ac_status=$?
10392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10393 test $ac_status = 0; }; then
10394 case `/usr/bin/file conftest.o` in
10395 *32-bit*)
10396 case $host in
10397 x86_64-*kfreebsd*-gnu)
10398 LD="${LD-ld} -m elf_i386_fbsd"
10399 ;;
10400 x86_64-*linux*)
10401 case `/usr/bin/file conftest.o` in
10402 *x86-64*)
10403 LD="${LD-ld} -m elf32_x86_64"
10404 ;;
10405 *)
10406 LD="${LD-ld} -m elf_i386"
10407 ;;
10408 esac
10409 ;;
10410 powerpc64le-*linux*)
10411 LD="${LD-ld} -m elf32lppclinux"
10412 ;;
10413 powerpc64-*linux*)
10414 LD="${LD-ld} -m elf32ppclinux"
10415 ;;
10416 s390x-*linux*)
10417 LD="${LD-ld} -m elf_s390"
10418 ;;
10419 sparc64-*linux*)
10420 LD="${LD-ld} -m elf32_sparc"
10421 ;;
10422 esac
10423 ;;
10424 *64-bit*)
10425 case $host in
10426 x86_64-*kfreebsd*-gnu)
10427 LD="${LD-ld} -m elf_x86_64_fbsd"
10428 ;;
10429 x86_64-*linux*)
10430 LD="${LD-ld} -m elf_x86_64"
10431 ;;
10432 powerpcle-*linux*)
10433 LD="${LD-ld} -m elf64lppc"
10434 ;;
10435 powerpc-*linux*)
10436 LD="${LD-ld} -m elf64ppc"
10437 ;;
10438 s390*-*linux*|s390*-*tpf*)
10439 LD="${LD-ld} -m elf64_s390"
10440 ;;
10441 sparc*-*linux*)
10442 LD="${LD-ld} -m elf64_sparc"
10443 ;;
10444 esac
10445 ;;
10446 esac
10447 fi
10448 rm -rf conftest*
10449 ;;
10450
10451 *-*-sco3.2v5*)
10452 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10453 SAVE_CFLAGS=$CFLAGS
10454 CFLAGS="$CFLAGS -belf"
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10456 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10457 if ${lt_cv_cc_needs_belf+:} false; then :
10458 $as_echo_n "(cached) " >&6
10459 else
10460 ac_ext=c
10461 ac_cpp='$CPP $CPPFLAGS'
10462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10465
10466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10467 /* end confdefs.h. */
10468
10469 int
10470 main ()
10471 {
10472
10473 ;
10474 return 0;
10475 }
10476 _ACEOF
10477 if ac_fn_c_try_link "$LINENO"; then :
10478 lt_cv_cc_needs_belf=yes
10479 else
10480 lt_cv_cc_needs_belf=no
10481 fi
10482 rm -f core conftest.err conftest.$ac_objext \
10483 conftest$ac_exeext conftest.$ac_ext
10484 ac_ext=c
10485 ac_cpp='$CPP $CPPFLAGS'
10486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10489
10490 fi
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10492 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10493 if test yes != "$lt_cv_cc_needs_belf"; then
10494 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10495 CFLAGS=$SAVE_CFLAGS
10496 fi
10497 ;;
10498 *-*solaris*)
10499 # Find out what ABI is being produced by ac_compile, and set linker
10500 # options accordingly.
10501 echo 'int i;' > conftest.$ac_ext
10502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10503 (eval $ac_compile) 2>&5
10504 ac_status=$?
10505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10506 test $ac_status = 0; }; then
10507 case `/usr/bin/file conftest.o` in
10508 *64-bit*)
10509 case $lt_cv_prog_gnu_ld in
10510 yes*)
10511 case $host in
10512 i?86-*-solaris*|x86_64-*-solaris*)
10513 LD="${LD-ld} -m elf_x86_64"
10514 ;;
10515 sparc*-*-solaris*)
10516 LD="${LD-ld} -m elf64_sparc"
10517 ;;
10518 esac
10519 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10520 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10521 LD=${LD-ld}_sol2
10522 fi
10523 ;;
10524 *)
10525 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10526 LD="${LD-ld} -64"
10527 fi
10528 ;;
10529 esac
10530 ;;
10531 esac
10532 fi
10533 rm -rf conftest*
10534 ;;
10535 esac
10536
10537 need_locks=$enable_libtool_lock
10538
10539 if test -n "$ac_tool_prefix"; then
10540 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10541 set dummy ${ac_tool_prefix}mt; ac_word=$2
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10543 $as_echo_n "checking for $ac_word... " >&6; }
10544 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10545 $as_echo_n "(cached) " >&6
10546 else
10547 if test -n "$MANIFEST_TOOL"; then
10548 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10549 else
10550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10551 for as_dir in $PATH
10552 do
10553 IFS=$as_save_IFS
10554 test -z "$as_dir" && as_dir=.
10555 for ac_exec_ext in '' $ac_executable_extensions; do
10556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10557 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10559 break 2
10560 fi
10561 done
10562 done
10563 IFS=$as_save_IFS
10564
10565 fi
10566 fi
10567 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10568 if test -n "$MANIFEST_TOOL"; then
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10570 $as_echo "$MANIFEST_TOOL" >&6; }
10571 else
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10573 $as_echo "no" >&6; }
10574 fi
10575
10576
10577 fi
10578 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10579 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10580 # Extract the first word of "mt", so it can be a program name with args.
10581 set dummy mt; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583 $as_echo_n "checking for $ac_word... " >&6; }
10584 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10585 $as_echo_n "(cached) " >&6
10586 else
10587 if test -n "$ac_ct_MANIFEST_TOOL"; then
10588 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10589 else
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10592 do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601 done
10602 done
10603 IFS=$as_save_IFS
10604
10605 fi
10606 fi
10607 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10608 if test -n "$ac_ct_MANIFEST_TOOL"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10610 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10611 else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613 $as_echo "no" >&6; }
10614 fi
10615
10616 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10617 MANIFEST_TOOL=":"
10618 else
10619 case $cross_compiling:$ac_tool_warned in
10620 yes:)
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10623 ac_tool_warned=yes ;;
10624 esac
10625 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10626 fi
10627 else
10628 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10629 fi
10630
10631 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10633 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10634 if ${lt_cv_path_mainfest_tool+:} false; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 lt_cv_path_mainfest_tool=no
10638 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10639 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10640 cat conftest.err >&5
10641 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10642 lt_cv_path_mainfest_tool=yes
10643 fi
10644 rm -f conftest*
10645 fi
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10647 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10648 if test yes != "$lt_cv_path_mainfest_tool"; then
10649 MANIFEST_TOOL=:
10650 fi
10651
10652
10653
10654
10655
10656
10657 case $host_os in
10658 rhapsody* | darwin*)
10659 if test -n "$ac_tool_prefix"; then
10660 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10661 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10663 $as_echo_n "checking for $ac_word... " >&6; }
10664 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10665 $as_echo_n "(cached) " >&6
10666 else
10667 if test -n "$DSYMUTIL"; then
10668 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10669 else
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10672 do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10680 fi
10681 done
10682 done
10683 IFS=$as_save_IFS
10684
10685 fi
10686 fi
10687 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10688 if test -n "$DSYMUTIL"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10690 $as_echo "$DSYMUTIL" >&6; }
10691 else
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10694 fi
10695
10696
10697 fi
10698 if test -z "$ac_cv_prog_DSYMUTIL"; then
10699 ac_ct_DSYMUTIL=$DSYMUTIL
10700 # Extract the first word of "dsymutil", so it can be a program name with args.
10701 set dummy dsymutil; ac_word=$2
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10703 $as_echo_n "checking for $ac_word... " >&6; }
10704 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 if test -n "$ac_ct_DSYMUTIL"; then
10708 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10709 else
10710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10711 for as_dir in $PATH
10712 do
10713 IFS=$as_save_IFS
10714 test -z "$as_dir" && as_dir=.
10715 for ac_exec_ext in '' $ac_executable_extensions; do
10716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10717 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10719 break 2
10720 fi
10721 done
10722 done
10723 IFS=$as_save_IFS
10724
10725 fi
10726 fi
10727 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10728 if test -n "$ac_ct_DSYMUTIL"; then
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10730 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10731 else
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733 $as_echo "no" >&6; }
10734 fi
10735
10736 if test "x$ac_ct_DSYMUTIL" = x; then
10737 DSYMUTIL=":"
10738 else
10739 case $cross_compiling:$ac_tool_warned in
10740 yes:)
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10743 ac_tool_warned=yes ;;
10744 esac
10745 DSYMUTIL=$ac_ct_DSYMUTIL
10746 fi
10747 else
10748 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10749 fi
10750
10751 if test -n "$ac_tool_prefix"; then
10752 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10753 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755 $as_echo_n "checking for $ac_word... " >&6; }
10756 if ${ac_cv_prog_NMEDIT+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 if test -n "$NMEDIT"; then
10760 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10761 else
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763 for as_dir in $PATH
10764 do
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10769 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 break 2
10772 fi
10773 done
10774 done
10775 IFS=$as_save_IFS
10776
10777 fi
10778 fi
10779 NMEDIT=$ac_cv_prog_NMEDIT
10780 if test -n "$NMEDIT"; then
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10782 $as_echo "$NMEDIT" >&6; }
10783 else
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10785 $as_echo "no" >&6; }
10786 fi
10787
10788
10789 fi
10790 if test -z "$ac_cv_prog_NMEDIT"; then
10791 ac_ct_NMEDIT=$NMEDIT
10792 # Extract the first word of "nmedit", so it can be a program name with args.
10793 set dummy nmedit; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 if test -n "$ac_ct_NMEDIT"; then
10800 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10801 else
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10804 do
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10812 fi
10813 done
10814 done
10815 IFS=$as_save_IFS
10816
10817 fi
10818 fi
10819 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10820 if test -n "$ac_ct_NMEDIT"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10822 $as_echo "$ac_ct_NMEDIT" >&6; }
10823 else
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10825 $as_echo "no" >&6; }
10826 fi
10827
10828 if test "x$ac_ct_NMEDIT" = x; then
10829 NMEDIT=":"
10830 else
10831 case $cross_compiling:$ac_tool_warned in
10832 yes:)
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10835 ac_tool_warned=yes ;;
10836 esac
10837 NMEDIT=$ac_ct_NMEDIT
10838 fi
10839 else
10840 NMEDIT="$ac_cv_prog_NMEDIT"
10841 fi
10842
10843 if test -n "$ac_tool_prefix"; then
10844 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10845 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10847 $as_echo_n "checking for $ac_word... " >&6; }
10848 if ${ac_cv_prog_LIPO+:} false; then :
10849 $as_echo_n "(cached) " >&6
10850 else
10851 if test -n "$LIPO"; then
10852 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10853 else
10854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10855 for as_dir in $PATH
10856 do
10857 IFS=$as_save_IFS
10858 test -z "$as_dir" && as_dir=.
10859 for ac_exec_ext in '' $ac_executable_extensions; do
10860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10861 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10863 break 2
10864 fi
10865 done
10866 done
10867 IFS=$as_save_IFS
10868
10869 fi
10870 fi
10871 LIPO=$ac_cv_prog_LIPO
10872 if test -n "$LIPO"; then
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10874 $as_echo "$LIPO" >&6; }
10875 else
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10877 $as_echo "no" >&6; }
10878 fi
10879
10880
10881 fi
10882 if test -z "$ac_cv_prog_LIPO"; then
10883 ac_ct_LIPO=$LIPO
10884 # Extract the first word of "lipo", so it can be a program name with args.
10885 set dummy lipo; ac_word=$2
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887 $as_echo_n "checking for $ac_word... " >&6; }
10888 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10889 $as_echo_n "(cached) " >&6
10890 else
10891 if test -n "$ac_ct_LIPO"; then
10892 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10893 else
10894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10896 do
10897 IFS=$as_save_IFS
10898 test -z "$as_dir" && as_dir=.
10899 for ac_exec_ext in '' $ac_executable_extensions; do
10900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901 ac_cv_prog_ac_ct_LIPO="lipo"
10902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903 break 2
10904 fi
10905 done
10906 done
10907 IFS=$as_save_IFS
10908
10909 fi
10910 fi
10911 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10912 if test -n "$ac_ct_LIPO"; then
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10914 $as_echo "$ac_ct_LIPO" >&6; }
10915 else
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10918 fi
10919
10920 if test "x$ac_ct_LIPO" = x; then
10921 LIPO=":"
10922 else
10923 case $cross_compiling:$ac_tool_warned in
10924 yes:)
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10927 ac_tool_warned=yes ;;
10928 esac
10929 LIPO=$ac_ct_LIPO
10930 fi
10931 else
10932 LIPO="$ac_cv_prog_LIPO"
10933 fi
10934
10935 if test -n "$ac_tool_prefix"; then
10936 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10937 set dummy ${ac_tool_prefix}otool; ac_word=$2
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10939 $as_echo_n "checking for $ac_word... " >&6; }
10940 if ${ac_cv_prog_OTOOL+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 if test -n "$OTOOL"; then
10944 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10945 else
10946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10948 do
10949 IFS=$as_save_IFS
10950 test -z "$as_dir" && as_dir=.
10951 for ac_exec_ext in '' $ac_executable_extensions; do
10952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 break 2
10956 fi
10957 done
10958 done
10959 IFS=$as_save_IFS
10960
10961 fi
10962 fi
10963 OTOOL=$ac_cv_prog_OTOOL
10964 if test -n "$OTOOL"; then
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10966 $as_echo "$OTOOL" >&6; }
10967 else
10968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969 $as_echo "no" >&6; }
10970 fi
10971
10972
10973 fi
10974 if test -z "$ac_cv_prog_OTOOL"; then
10975 ac_ct_OTOOL=$OTOOL
10976 # Extract the first word of "otool", so it can be a program name with args.
10977 set dummy otool; ac_word=$2
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10979 $as_echo_n "checking for $ac_word... " >&6; }
10980 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 if test -n "$ac_ct_OTOOL"; then
10984 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10985 else
10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10987 for as_dir in $PATH
10988 do
10989 IFS=$as_save_IFS
10990 test -z "$as_dir" && as_dir=.
10991 for ac_exec_ext in '' $ac_executable_extensions; do
10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10993 ac_cv_prog_ac_ct_OTOOL="otool"
10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 break 2
10996 fi
10997 done
10998 done
10999 IFS=$as_save_IFS
11000
11001 fi
11002 fi
11003 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11004 if test -n "$ac_ct_OTOOL"; then
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11006 $as_echo "$ac_ct_OTOOL" >&6; }
11007 else
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11010 fi
11011
11012 if test "x$ac_ct_OTOOL" = x; then
11013 OTOOL=":"
11014 else
11015 case $cross_compiling:$ac_tool_warned in
11016 yes:)
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11019 ac_tool_warned=yes ;;
11020 esac
11021 OTOOL=$ac_ct_OTOOL
11022 fi
11023 else
11024 OTOOL="$ac_cv_prog_OTOOL"
11025 fi
11026
11027 if test -n "$ac_tool_prefix"; then
11028 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11029 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11031 $as_echo_n "checking for $ac_word... " >&6; }
11032 if ${ac_cv_prog_OTOOL64+:} false; then :
11033 $as_echo_n "(cached) " >&6
11034 else
11035 if test -n "$OTOOL64"; then
11036 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11037 else
11038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11039 for as_dir in $PATH
11040 do
11041 IFS=$as_save_IFS
11042 test -z "$as_dir" && as_dir=.
11043 for ac_exec_ext in '' $ac_executable_extensions; do
11044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11045 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11047 break 2
11048 fi
11049 done
11050 done
11051 IFS=$as_save_IFS
11052
11053 fi
11054 fi
11055 OTOOL64=$ac_cv_prog_OTOOL64
11056 if test -n "$OTOOL64"; then
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11058 $as_echo "$OTOOL64" >&6; }
11059 else
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11062 fi
11063
11064
11065 fi
11066 if test -z "$ac_cv_prog_OTOOL64"; then
11067 ac_ct_OTOOL64=$OTOOL64
11068 # Extract the first word of "otool64", so it can be a program name with args.
11069 set dummy otool64; ac_word=$2
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071 $as_echo_n "checking for $ac_word... " >&6; }
11072 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11073 $as_echo_n "(cached) " >&6
11074 else
11075 if test -n "$ac_ct_OTOOL64"; then
11076 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11077 else
11078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079 for as_dir in $PATH
11080 do
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11085 ac_cv_prog_ac_ct_OTOOL64="otool64"
11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11087 break 2
11088 fi
11089 done
11090 done
11091 IFS=$as_save_IFS
11092
11093 fi
11094 fi
11095 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11096 if test -n "$ac_ct_OTOOL64"; then
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11098 $as_echo "$ac_ct_OTOOL64" >&6; }
11099 else
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101 $as_echo "no" >&6; }
11102 fi
11103
11104 if test "x$ac_ct_OTOOL64" = x; then
11105 OTOOL64=":"
11106 else
11107 case $cross_compiling:$ac_tool_warned in
11108 yes:)
11109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11111 ac_tool_warned=yes ;;
11112 esac
11113 OTOOL64=$ac_ct_OTOOL64
11114 fi
11115 else
11116 OTOOL64="$ac_cv_prog_OTOOL64"
11117 fi
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11146 $as_echo_n "checking for -single_module linker flag... " >&6; }
11147 if ${lt_cv_apple_cc_single_mod+:} false; then :
11148 $as_echo_n "(cached) " >&6
11149 else
11150 lt_cv_apple_cc_single_mod=no
11151 if test -z "$LT_MULTI_MODULE"; then
11152 # By default we will add the -single_module flag. You can override
11153 # by either setting the environment variable LT_MULTI_MODULE
11154 # non-empty at configure time, or by adding -multi_module to the
11155 # link flags.
11156 rm -rf libconftest.dylib*
11157 echo "int foo(void){return 1;}" > conftest.c
11158 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11159 -dynamiclib -Wl,-single_module conftest.c" >&5
11160 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11161 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11162 _lt_result=$?
11163 # If there is a non-empty error log, and "single_module"
11164 # appears in it, assume the flag caused a linker warning
11165 if test -s conftest.err && $GREP single_module conftest.err; then
11166 cat conftest.err >&5
11167 # Otherwise, if the output was created with a 0 exit code from
11168 # the compiler, it worked.
11169 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11170 lt_cv_apple_cc_single_mod=yes
11171 else
11172 cat conftest.err >&5
11173 fi
11174 rm -rf libconftest.dylib*
11175 rm -f conftest.*
11176 fi
11177 fi
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11179 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11180
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11182 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11183 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11184 $as_echo_n "(cached) " >&6
11185 else
11186 lt_cv_ld_exported_symbols_list=no
11187 save_LDFLAGS=$LDFLAGS
11188 echo "_main" > conftest.sym
11189 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11191 /* end confdefs.h. */
11192
11193 int
11194 main ()
11195 {
11196
11197 ;
11198 return 0;
11199 }
11200 _ACEOF
11201 if ac_fn_c_try_link "$LINENO"; then :
11202 lt_cv_ld_exported_symbols_list=yes
11203 else
11204 lt_cv_ld_exported_symbols_list=no
11205 fi
11206 rm -f core conftest.err conftest.$ac_objext \
11207 conftest$ac_exeext conftest.$ac_ext
11208 LDFLAGS=$save_LDFLAGS
11209
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11212 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11213
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11215 $as_echo_n "checking for -force_load linker flag... " >&6; }
11216 if ${lt_cv_ld_force_load+:} false; then :
11217 $as_echo_n "(cached) " >&6
11218 else
11219 lt_cv_ld_force_load=no
11220 cat > conftest.c << _LT_EOF
11221 int forced_loaded() { return 2;}
11222 _LT_EOF
11223 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11224 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11225 echo "$AR cru libconftest.a conftest.o" >&5
11226 $AR cru libconftest.a conftest.o 2>&5
11227 echo "$RANLIB libconftest.a" >&5
11228 $RANLIB libconftest.a 2>&5
11229 cat > conftest.c << _LT_EOF
11230 int main() { return 0;}
11231 _LT_EOF
11232 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11233 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11234 _lt_result=$?
11235 if test -s conftest.err && $GREP force_load conftest.err; then
11236 cat conftest.err >&5
11237 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11238 lt_cv_ld_force_load=yes
11239 else
11240 cat conftest.err >&5
11241 fi
11242 rm -f conftest.err libconftest.a conftest conftest.c
11243 rm -rf conftest.dSYM
11244
11245 fi
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11247 $as_echo "$lt_cv_ld_force_load" >&6; }
11248 case $host_os in
11249 rhapsody* | darwin1.[012])
11250 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11251 darwin1.*)
11252 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11253 darwin*) # darwin 5.x on
11254 # if running on 10.5 or later, the deployment target defaults
11255 # to the OS version, if on x86, and 10.4, the deployment
11256 # target defaults to 10.4. Don't you love it?
11257 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11258 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11259 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11260 10.[012][,.]*)
11261 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11262 10.*)
11263 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11264 esac
11265 ;;
11266 esac
11267 if test yes = "$lt_cv_apple_cc_single_mod"; then
11268 _lt_dar_single_mod='$single_module'
11269 fi
11270 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11271 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11272 else
11273 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11274 fi
11275 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11276 _lt_dsymutil='~$DSYMUTIL $lib || :'
11277 else
11278 _lt_dsymutil=
11279 fi
11280 ;;
11281 esac
11282
11283 # func_munge_path_list VARIABLE PATH
11284 # -----------------------------------
11285 # VARIABLE is name of variable containing _space_ separated list of
11286 # directories to be munged by the contents of PATH, which is string
11287 # having a format:
11288 # "DIR[:DIR]:"
11289 # string "DIR[ DIR]" will be prepended to VARIABLE
11290 # ":DIR[:DIR]"
11291 # string "DIR[ DIR]" will be appended to VARIABLE
11292 # "DIRP[:DIRP]::[DIRA:]DIRA"
11293 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11294 # "DIRA[ DIRA]" will be appended to VARIABLE
11295 # "DIR[:DIR]"
11296 # VARIABLE will be replaced by "DIR[ DIR]"
11297 func_munge_path_list ()
11298 {
11299 case x$2 in
11300 x)
11301 ;;
11302 *:)
11303 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11304 ;;
11305 x:*)
11306 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11307 ;;
11308 *::*)
11309 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11310 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11311 ;;
11312 *)
11313 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11314 ;;
11315 esac
11316 }
11317
11318 for ac_header in dlfcn.h
11319 do :
11320 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11321 "
11322 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11323 cat >>confdefs.h <<_ACEOF
11324 #define HAVE_DLFCN_H 1
11325 _ACEOF
11326
11327 fi
11328
11329 done
11330
11331
11332
11333 func_stripname_cnf ()
11334 {
11335 case $2 in
11336 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11337 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11338 esac
11339 } # func_stripname_cnf
11340
11341
11342
11343
11344
11345 # Set options
11346
11347
11348
11349 enable_dlopen=no
11350
11351
11352 enable_win32_dll=no
11353
11354
11355 # Check whether --enable-shared was given.
11356 if test "${enable_shared+set}" = set; then :
11357 enableval=$enable_shared; p=${PACKAGE-default}
11358 case $enableval in
11359 yes) enable_shared=yes ;;
11360 no) enable_shared=no ;;
11361 *)
11362 enable_shared=no
11363 # Look at the argument we got. We use all the common list separators.
11364 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11365 for pkg in $enableval; do
11366 IFS=$lt_save_ifs
11367 if test "X$pkg" = "X$p"; then
11368 enable_shared=yes
11369 fi
11370 done
11371 IFS=$lt_save_ifs
11372 ;;
11373 esac
11374 else
11375 enable_shared=yes
11376 fi
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386 # Check whether --enable-static was given.
11387 if test "${enable_static+set}" = set; then :
11388 enableval=$enable_static; p=${PACKAGE-default}
11389 case $enableval in
11390 yes) enable_static=yes ;;
11391 no) enable_static=no ;;
11392 *)
11393 enable_static=no
11394 # Look at the argument we got. We use all the common list separators.
11395 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11396 for pkg in $enableval; do
11397 IFS=$lt_save_ifs
11398 if test "X$pkg" = "X$p"; then
11399 enable_static=yes
11400 fi
11401 done
11402 IFS=$lt_save_ifs
11403 ;;
11404 esac
11405 else
11406 enable_static=yes
11407 fi
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418 # Check whether --with-pic was given.
11419 if test "${with_pic+set}" = set; then :
11420 withval=$with_pic; lt_p=${PACKAGE-default}
11421 case $withval in
11422 yes|no) pic_mode=$withval ;;
11423 *)
11424 pic_mode=default
11425 # Look at the argument we got. We use all the common list separators.
11426 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11427 for lt_pkg in $withval; do
11428 IFS=$lt_save_ifs
11429 if test "X$lt_pkg" = "X$lt_p"; then
11430 pic_mode=yes
11431 fi
11432 done
11433 IFS=$lt_save_ifs
11434 ;;
11435 esac
11436 else
11437 pic_mode=default
11438 fi
11439
11440
11441
11442
11443
11444
11445
11446
11447 # Check whether --enable-fast-install was given.
11448 if test "${enable_fast_install+set}" = set; then :
11449 enableval=$enable_fast_install; p=${PACKAGE-default}
11450 case $enableval in
11451 yes) enable_fast_install=yes ;;
11452 no) enable_fast_install=no ;;
11453 *)
11454 enable_fast_install=no
11455 # Look at the argument we got. We use all the common list separators.
11456 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11457 for pkg in $enableval; do
11458 IFS=$lt_save_ifs
11459 if test "X$pkg" = "X$p"; then
11460 enable_fast_install=yes
11461 fi
11462 done
11463 IFS=$lt_save_ifs
11464 ;;
11465 esac
11466 else
11467 enable_fast_install=yes
11468 fi
11469
11470
11471
11472
11473
11474
11475
11476
11477 shared_archive_member_spec=
11478 case $host,$enable_shared in
11479 power*-*-aix[5-9]*,yes)
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11481 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11482
11483 # Check whether --with-aix-soname was given.
11484 if test "${with_aix_soname+set}" = set; then :
11485 withval=$with_aix_soname; case $withval in
11486 aix|svr4|both)
11487 ;;
11488 *)
11489 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11490 ;;
11491 esac
11492 lt_cv_with_aix_soname=$with_aix_soname
11493 else
11494 if ${lt_cv_with_aix_soname+:} false; then :
11495 $as_echo_n "(cached) " >&6
11496 else
11497 lt_cv_with_aix_soname=aix
11498 fi
11499
11500 with_aix_soname=$lt_cv_with_aix_soname
11501 fi
11502
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11504 $as_echo "$with_aix_soname" >&6; }
11505 if test aix != "$with_aix_soname"; then
11506 # For the AIX way of multilib, we name the shared archive member
11507 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11508 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11509 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11510 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11511 if test 64 = "${OBJECT_MODE-32}"; then
11512 shared_archive_member_spec=shr_64
11513 else
11514 shared_archive_member_spec=shr
11515 fi
11516 fi
11517 ;;
11518 *)
11519 with_aix_soname=aix
11520 ;;
11521 esac
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532 # This can be used to rebuild libtool when needed
11533 LIBTOOL_DEPS=$ltmain
11534
11535 # Always use our own libtool.
11536 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567 test -z "$LN_S" && LN_S="ln -s"
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582 if test -n "${ZSH_VERSION+set}"; then
11583 setopt NO_GLOB_SUBST
11584 fi
11585
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11587 $as_echo_n "checking for objdir... " >&6; }
11588 if ${lt_cv_objdir+:} false; then :
11589 $as_echo_n "(cached) " >&6
11590 else
11591 rm -f .libs 2>/dev/null
11592 mkdir .libs 2>/dev/null
11593 if test -d .libs; then
11594 lt_cv_objdir=.libs
11595 else
11596 # MS-DOS does not allow filenames that begin with a dot.
11597 lt_cv_objdir=_libs
11598 fi
11599 rmdir .libs 2>/dev/null
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11602 $as_echo "$lt_cv_objdir" >&6; }
11603 objdir=$lt_cv_objdir
11604
11605
11606
11607
11608
11609 cat >>confdefs.h <<_ACEOF
11610 #define LT_OBJDIR "$lt_cv_objdir/"
11611 _ACEOF
11612
11613
11614
11615
11616 case $host_os in
11617 aix3*)
11618 # AIX sometimes has problems with the GCC collect2 program. For some
11619 # reason, if we set the COLLECT_NAMES environment variable, the problems
11620 # vanish in a puff of smoke.
11621 if test set != "${COLLECT_NAMES+set}"; then
11622 COLLECT_NAMES=
11623 export COLLECT_NAMES
11624 fi
11625 ;;
11626 esac
11627
11628 # Global variables:
11629 ofile=libtool
11630 can_build_shared=yes
11631
11632 # All known linkers require a '.a' archive for static linking (except MSVC,
11633 # which needs '.lib').
11634 libext=a
11635
11636 with_gnu_ld=$lt_cv_prog_gnu_ld
11637
11638 old_CC=$CC
11639 old_CFLAGS=$CFLAGS
11640
11641 # Set sane defaults for various variables
11642 test -z "$CC" && CC=cc
11643 test -z "$LTCC" && LTCC=$CC
11644 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11645 test -z "$LD" && LD=ld
11646 test -z "$ac_objext" && ac_objext=o
11647
11648 func_cc_basename $compiler
11649 cc_basename=$func_cc_basename_result
11650
11651
11652 # Only perform the check for file, if the check method requires it
11653 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11654 case $deplibs_check_method in
11655 file_magic*)
11656 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11658 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11659 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662 case $MAGIC_CMD in
11663 [\\/*] | ?:[\\/]*)
11664 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11665 ;;
11666 *)
11667 lt_save_MAGIC_CMD=$MAGIC_CMD
11668 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11669 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11670 for ac_dir in $ac_dummy; do
11671 IFS=$lt_save_ifs
11672 test -z "$ac_dir" && ac_dir=.
11673 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11674 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11675 if test -n "$file_magic_test_file"; then
11676 case $deplibs_check_method in
11677 "file_magic "*)
11678 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11679 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11680 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11681 $EGREP "$file_magic_regex" > /dev/null; then
11682 :
11683 else
11684 cat <<_LT_EOF 1>&2
11685
11686 *** Warning: the command libtool uses to detect shared libraries,
11687 *** $file_magic_cmd, produces output that libtool cannot recognize.
11688 *** The result is that libtool may fail to recognize shared libraries
11689 *** as such. This will affect the creation of libtool libraries that
11690 *** depend on shared libraries, but programs linked with such libtool
11691 *** libraries will work regardless of this problem. Nevertheless, you
11692 *** may want to report the problem to your system manager and/or to
11693 *** [email protected]
11694
11695 _LT_EOF
11696 fi ;;
11697 esac
11698 fi
11699 break
11700 fi
11701 done
11702 IFS=$lt_save_ifs
11703 MAGIC_CMD=$lt_save_MAGIC_CMD
11704 ;;
11705 esac
11706 fi
11707
11708 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11709 if test -n "$MAGIC_CMD"; then
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11711 $as_echo "$MAGIC_CMD" >&6; }
11712 else
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11715 fi
11716
11717
11718
11719
11720
11721 if test -z "$lt_cv_path_MAGIC_CMD"; then
11722 if test -n "$ac_tool_prefix"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11724 $as_echo_n "checking for file... " >&6; }
11725 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11726 $as_echo_n "(cached) " >&6
11727 else
11728 case $MAGIC_CMD in
11729 [\\/*] | ?:[\\/]*)
11730 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11731 ;;
11732 *)
11733 lt_save_MAGIC_CMD=$MAGIC_CMD
11734 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11735 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11736 for ac_dir in $ac_dummy; do
11737 IFS=$lt_save_ifs
11738 test -z "$ac_dir" && ac_dir=.
11739 if test -f "$ac_dir/file"; then
11740 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11741 if test -n "$file_magic_test_file"; then
11742 case $deplibs_check_method in
11743 "file_magic "*)
11744 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11745 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11746 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11747 $EGREP "$file_magic_regex" > /dev/null; then
11748 :
11749 else
11750 cat <<_LT_EOF 1>&2
11751
11752 *** Warning: the command libtool uses to detect shared libraries,
11753 *** $file_magic_cmd, produces output that libtool cannot recognize.
11754 *** The result is that libtool may fail to recognize shared libraries
11755 *** as such. This will affect the creation of libtool libraries that
11756 *** depend on shared libraries, but programs linked with such libtool
11757 *** libraries will work regardless of this problem. Nevertheless, you
11758 *** may want to report the problem to your system manager and/or to
11759 *** [email protected]
11760
11761 _LT_EOF
11762 fi ;;
11763 esac
11764 fi
11765 break
11766 fi
11767 done
11768 IFS=$lt_save_ifs
11769 MAGIC_CMD=$lt_save_MAGIC_CMD
11770 ;;
11771 esac
11772 fi
11773
11774 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11775 if test -n "$MAGIC_CMD"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11777 $as_echo "$MAGIC_CMD" >&6; }
11778 else
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780 $as_echo "no" >&6; }
11781 fi
11782
11783
11784 else
11785 MAGIC_CMD=:
11786 fi
11787 fi
11788
11789 fi
11790 ;;
11791 esac
11792
11793 # Use C for the default configuration in the libtool script
11794
11795 lt_save_CC=$CC
11796 ac_ext=c
11797 ac_cpp='$CPP $CPPFLAGS'
11798 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11799 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11800 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11801
11802
11803 # Source file extension for C test sources.
11804 ac_ext=c
11805
11806 # Object file extension for compiled C test sources.
11807 objext=o
11808 objext=$objext
11809
11810 # Code to be used in simple compile tests
11811 lt_simple_compile_test_code="int some_variable = 0;"
11812
11813 # Code to be used in simple link tests
11814 lt_simple_link_test_code='int main(){return(0);}'
11815
11816
11817
11818
11819
11820
11821
11822 # If no C compiler was specified, use CC.
11823 LTCC=${LTCC-"$CC"}
11824
11825 # If no C compiler flags were specified, use CFLAGS.
11826 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11827
11828 # Allow CC to be a program name with arguments.
11829 compiler=$CC
11830
11831 # Save the default compiler, since it gets overwritten when the other
11832 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11833 compiler_DEFAULT=$CC
11834
11835 # save warnings/boilerplate of simple test code
11836 ac_outfile=conftest.$ac_objext
11837 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11838 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11839 _lt_compiler_boilerplate=`cat conftest.err`
11840 $RM conftest*
11841
11842 ac_outfile=conftest.$ac_objext
11843 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11844 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11845 _lt_linker_boilerplate=`cat conftest.err`
11846 $RM -r conftest*
11847
11848
11849 ## CAVEAT EMPTOR:
11850 ## There is no encapsulation within the following macros, do not change
11851 ## the running order or otherwise move them around unless you know exactly
11852 ## what you are doing...
11853 if test -n "$compiler"; then
11854
11855 lt_prog_compiler_no_builtin_flag=
11856
11857 if test yes = "$GCC"; then
11858 case $cc_basename in
11859 nvcc*)
11860 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11861 *)
11862 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11863 esac
11864
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11866 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11867 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11868 $as_echo_n "(cached) " >&6
11869 else
11870 lt_cv_prog_compiler_rtti_exceptions=no
11871 ac_outfile=conftest.$ac_objext
11872 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11873 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11874 # Insert the option either (1) after the last *FLAGS variable, or
11875 # (2) before a word containing "conftest.", or (3) at the end.
11876 # Note that $ac_compile itself does not contain backslashes and begins
11877 # with a dollar sign (not a hyphen), so the echo should work correctly.
11878 # The option is referenced via a variable to avoid confusing sed.
11879 lt_compile=`echo "$ac_compile" | $SED \
11880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11882 -e 's:$: $lt_compiler_flag:'`
11883 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11884 (eval "$lt_compile" 2>conftest.err)
11885 ac_status=$?
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 if (exit $ac_status) && test -s "$ac_outfile"; then
11889 # The compiler can only warn and ignore the option if not recognized
11890 # So say no if there are warnings other than the usual output.
11891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11893 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11894 lt_cv_prog_compiler_rtti_exceptions=yes
11895 fi
11896 fi
11897 $RM conftest*
11898
11899 fi
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11901 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11902
11903 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11904 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11905 else
11906 :
11907 fi
11908
11909 fi
11910
11911
11912
11913
11914
11915
11916 lt_prog_compiler_wl=
11917 lt_prog_compiler_pic=
11918 lt_prog_compiler_static=
11919
11920
11921 if test yes = "$GCC"; then
11922 lt_prog_compiler_wl='-Wl,'
11923 lt_prog_compiler_static='-static'
11924
11925 case $host_os in
11926 aix*)
11927 # All AIX code is PIC.
11928 if test ia64 = "$host_cpu"; then
11929 # AIX 5 now supports IA64 processor
11930 lt_prog_compiler_static='-Bstatic'
11931 fi
11932 lt_prog_compiler_pic='-fPIC'
11933 ;;
11934
11935 amigaos*)
11936 case $host_cpu in
11937 powerpc)
11938 # see comment about AmigaOS4 .so support
11939 lt_prog_compiler_pic='-fPIC'
11940 ;;
11941 m68k)
11942 # FIXME: we need at least 68020 code to build shared libraries, but
11943 # adding the '-m68020' flag to GCC prevents building anything better,
11944 # like '-m68040'.
11945 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11946 ;;
11947 esac
11948 ;;
11949
11950 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11951 # PIC is the default for these OSes.
11952 ;;
11953
11954 mingw* | cygwin* | pw32* | os2* | cegcc*)
11955 # This hack is so that the source file can tell whether it is being
11956 # built for inclusion in a dll (and should export symbols for example).
11957 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11958 # (--disable-auto-import) libraries
11959 lt_prog_compiler_pic='-DDLL_EXPORT'
11960 case $host_os in
11961 os2*)
11962 lt_prog_compiler_static='$wl-static'
11963 ;;
11964 esac
11965 ;;
11966
11967 darwin* | rhapsody*)
11968 # PIC is the default on this platform
11969 # Common symbols not allowed in MH_DYLIB files
11970 lt_prog_compiler_pic='-fno-common'
11971 ;;
11972
11973 haiku*)
11974 # PIC is the default for Haiku.
11975 # The "-static" flag exists, but is broken.
11976 lt_prog_compiler_static=
11977 ;;
11978
11979 hpux*)
11980 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11981 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11982 # sets the default TLS model and affects inlining.
11983 case $host_cpu in
11984 hppa*64*)
11985 # +Z the default
11986 ;;
11987 *)
11988 lt_prog_compiler_pic='-fPIC'
11989 ;;
11990 esac
11991 ;;
11992
11993 interix[3-9]*)
11994 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11995 # Instead, we relocate shared libraries at runtime.
11996 ;;
11997
11998 msdosdjgpp*)
11999 # Just because we use GCC doesn't mean we suddenly get shared libraries
12000 # on systems that don't support them.
12001 lt_prog_compiler_can_build_shared=no
12002 enable_shared=no
12003 ;;
12004
12005 *nto* | *qnx*)
12006 # QNX uses GNU C++, but need to define -shared option too, otherwise
12007 # it will coredump.
12008 lt_prog_compiler_pic='-fPIC -shared'
12009 ;;
12010
12011 sysv4*MP*)
12012 if test -d /usr/nec; then
12013 lt_prog_compiler_pic=-Kconform_pic
12014 fi
12015 ;;
12016
12017 *)
12018 lt_prog_compiler_pic='-fPIC'
12019 ;;
12020 esac
12021
12022 case $cc_basename in
12023 nvcc*) # Cuda Compiler Driver 2.2
12024 lt_prog_compiler_wl='-Xlinker '
12025 if test -n "$lt_prog_compiler_pic"; then
12026 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12027 fi
12028 ;;
12029 esac
12030 else
12031 # PORTME Check for flag to pass linker flags through the system compiler.
12032 case $host_os in
12033 aix*)
12034 lt_prog_compiler_wl='-Wl,'
12035 if test ia64 = "$host_cpu"; then
12036 # AIX 5 now supports IA64 processor
12037 lt_prog_compiler_static='-Bstatic'
12038 else
12039 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12040 fi
12041 ;;
12042
12043 darwin* | rhapsody*)
12044 # PIC is the default on this platform
12045 # Common symbols not allowed in MH_DYLIB files
12046 lt_prog_compiler_pic='-fno-common'
12047 case $cc_basename in
12048 nagfor*)
12049 # NAG Fortran compiler
12050 lt_prog_compiler_wl='-Wl,-Wl,,'
12051 lt_prog_compiler_pic='-PIC'
12052 lt_prog_compiler_static='-Bstatic'
12053 ;;
12054 esac
12055 ;;
12056
12057 mingw* | cygwin* | pw32* | os2* | cegcc*)
12058 # This hack is so that the source file can tell whether it is being
12059 # built for inclusion in a dll (and should export symbols for example).
12060 lt_prog_compiler_pic='-DDLL_EXPORT'
12061 case $host_os in
12062 os2*)
12063 lt_prog_compiler_static='$wl-static'
12064 ;;
12065 esac
12066 ;;
12067
12068 hpux9* | hpux10* | hpux11*)
12069 lt_prog_compiler_wl='-Wl,'
12070 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12071 # not for PA HP-UX.
12072 case $host_cpu in
12073 hppa*64*|ia64*)
12074 # +Z the default
12075 ;;
12076 *)
12077 lt_prog_compiler_pic='+Z'
12078 ;;
12079 esac
12080 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12081 lt_prog_compiler_static='$wl-a ${wl}archive'
12082 ;;
12083
12084 irix5* | irix6* | nonstopux*)
12085 lt_prog_compiler_wl='-Wl,'
12086 # PIC (with -KPIC) is the default.
12087 lt_prog_compiler_static='-non_shared'
12088 ;;
12089
12090 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12091 case $cc_basename in
12092 # old Intel for x86_64, which still supported -KPIC.
12093 ecc*)
12094 lt_prog_compiler_wl='-Wl,'
12095 lt_prog_compiler_pic='-KPIC'
12096 lt_prog_compiler_static='-static'
12097 ;;
12098 # icc used to be incompatible with GCC.
12099 # ICC 10 doesn't accept -KPIC any more.
12100 icc* | ifort*)
12101 lt_prog_compiler_wl='-Wl,'
12102 lt_prog_compiler_pic='-fPIC'
12103 lt_prog_compiler_static='-static'
12104 ;;
12105 # Lahey Fortran 8.1.
12106 lf95*)
12107 lt_prog_compiler_wl='-Wl,'
12108 lt_prog_compiler_pic='--shared'
12109 lt_prog_compiler_static='--static'
12110 ;;
12111 nagfor*)
12112 # NAG Fortran compiler
12113 lt_prog_compiler_wl='-Wl,-Wl,,'
12114 lt_prog_compiler_pic='-PIC'
12115 lt_prog_compiler_static='-Bstatic'
12116 ;;
12117 tcc*)
12118 # Fabrice Bellard et al's Tiny C Compiler
12119 lt_prog_compiler_wl='-Wl,'
12120 lt_prog_compiler_pic='-fPIC'
12121 lt_prog_compiler_static='-static'
12122 ;;
12123 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12124 # Portland Group compilers (*not* the Pentium gcc compiler,
12125 # which looks to be a dead project)
12126 lt_prog_compiler_wl='-Wl,'
12127 lt_prog_compiler_pic='-fpic'
12128 lt_prog_compiler_static='-Bstatic'
12129 ;;
12130 ccc*)
12131 lt_prog_compiler_wl='-Wl,'
12132 # All Alpha code is PIC.
12133 lt_prog_compiler_static='-non_shared'
12134 ;;
12135 xl* | bgxl* | bgf* | mpixl*)
12136 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12137 lt_prog_compiler_wl='-Wl,'
12138 lt_prog_compiler_pic='-qpic'
12139 lt_prog_compiler_static='-qstaticlink'
12140 ;;
12141 *)
12142 case `$CC -V 2>&1 | sed 5q` in
12143 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12144 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12145 lt_prog_compiler_pic='-KPIC'
12146 lt_prog_compiler_static='-Bstatic'
12147 lt_prog_compiler_wl=''
12148 ;;
12149 *Sun\ F* | *Sun*Fortran*)
12150 lt_prog_compiler_pic='-KPIC'
12151 lt_prog_compiler_static='-Bstatic'
12152 lt_prog_compiler_wl='-Qoption ld '
12153 ;;
12154 *Sun\ C*)
12155 # Sun C 5.9
12156 lt_prog_compiler_pic='-KPIC'
12157 lt_prog_compiler_static='-Bstatic'
12158 lt_prog_compiler_wl='-Wl,'
12159 ;;
12160 *Intel*\ [CF]*Compiler*)
12161 lt_prog_compiler_wl='-Wl,'
12162 lt_prog_compiler_pic='-fPIC'
12163 lt_prog_compiler_static='-static'
12164 ;;
12165 *Portland\ Group*)
12166 lt_prog_compiler_wl='-Wl,'
12167 lt_prog_compiler_pic='-fpic'
12168 lt_prog_compiler_static='-Bstatic'
12169 ;;
12170 esac
12171 ;;
12172 esac
12173 ;;
12174
12175 newsos6)
12176 lt_prog_compiler_pic='-KPIC'
12177 lt_prog_compiler_static='-Bstatic'
12178 ;;
12179
12180 *nto* | *qnx*)
12181 # QNX uses GNU C++, but need to define -shared option too, otherwise
12182 # it will coredump.
12183 lt_prog_compiler_pic='-fPIC -shared'
12184 ;;
12185
12186 osf3* | osf4* | osf5*)
12187 lt_prog_compiler_wl='-Wl,'
12188 # All OSF/1 code is PIC.
12189 lt_prog_compiler_static='-non_shared'
12190 ;;
12191
12192 rdos*)
12193 lt_prog_compiler_static='-non_shared'
12194 ;;
12195
12196 solaris*)
12197 lt_prog_compiler_pic='-KPIC'
12198 lt_prog_compiler_static='-Bstatic'
12199 case $cc_basename in
12200 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12201 lt_prog_compiler_wl='-Qoption ld ';;
12202 *)
12203 lt_prog_compiler_wl='-Wl,';;
12204 esac
12205 ;;
12206
12207 sunos4*)
12208 lt_prog_compiler_wl='-Qoption ld '
12209 lt_prog_compiler_pic='-PIC'
12210 lt_prog_compiler_static='-Bstatic'
12211 ;;
12212
12213 sysv4 | sysv4.2uw2* | sysv4.3*)
12214 lt_prog_compiler_wl='-Wl,'
12215 lt_prog_compiler_pic='-KPIC'
12216 lt_prog_compiler_static='-Bstatic'
12217 ;;
12218
12219 sysv4*MP*)
12220 if test -d /usr/nec; then
12221 lt_prog_compiler_pic='-Kconform_pic'
12222 lt_prog_compiler_static='-Bstatic'
12223 fi
12224 ;;
12225
12226 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12227 lt_prog_compiler_wl='-Wl,'
12228 lt_prog_compiler_pic='-KPIC'
12229 lt_prog_compiler_static='-Bstatic'
12230 ;;
12231
12232 unicos*)
12233 lt_prog_compiler_wl='-Wl,'
12234 lt_prog_compiler_can_build_shared=no
12235 ;;
12236
12237 uts4*)
12238 lt_prog_compiler_pic='-pic'
12239 lt_prog_compiler_static='-Bstatic'
12240 ;;
12241
12242 *)
12243 lt_prog_compiler_can_build_shared=no
12244 ;;
12245 esac
12246 fi
12247
12248 case $host_os in
12249 # For platforms that do not support PIC, -DPIC is meaningless:
12250 *djgpp*)
12251 lt_prog_compiler_pic=
12252 ;;
12253 *)
12254 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12255 ;;
12256 esac
12257
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12259 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12260 if ${lt_cv_prog_compiler_pic+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12264 fi
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12266 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12267 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12268
12269 #
12270 # Check to make sure the PIC flag actually works.
12271 #
12272 if test -n "$lt_prog_compiler_pic"; then
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12274 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12275 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12276 $as_echo_n "(cached) " >&6
12277 else
12278 lt_cv_prog_compiler_pic_works=no
12279 ac_outfile=conftest.$ac_objext
12280 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12281 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12282 # Insert the option either (1) after the last *FLAGS variable, or
12283 # (2) before a word containing "conftest.", or (3) at the end.
12284 # Note that $ac_compile itself does not contain backslashes and begins
12285 # with a dollar sign (not a hyphen), so the echo should work correctly.
12286 # The option is referenced via a variable to avoid confusing sed.
12287 lt_compile=`echo "$ac_compile" | $SED \
12288 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12289 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12290 -e 's:$: $lt_compiler_flag:'`
12291 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12292 (eval "$lt_compile" 2>conftest.err)
12293 ac_status=$?
12294 cat conftest.err >&5
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 if (exit $ac_status) && test -s "$ac_outfile"; then
12297 # The compiler can only warn and ignore the option if not recognized
12298 # So say no if there are warnings other than the usual output.
12299 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12300 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12301 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12302 lt_cv_prog_compiler_pic_works=yes
12303 fi
12304 fi
12305 $RM conftest*
12306
12307 fi
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12309 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12310
12311 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12312 case $lt_prog_compiler_pic in
12313 "" | " "*) ;;
12314 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12315 esac
12316 else
12317 lt_prog_compiler_pic=
12318 lt_prog_compiler_can_build_shared=no
12319 fi
12320
12321 fi
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333 #
12334 # Check to make sure the static flag actually works.
12335 #
12336 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12339 if ${lt_cv_prog_compiler_static_works+:} false; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 lt_cv_prog_compiler_static_works=no
12343 save_LDFLAGS=$LDFLAGS
12344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12347 # The linker can only warn and ignore the option if not recognized
12348 # So say no if there are warnings
12349 if test -s conftest.err; then
12350 # Append any errors to the config.log.
12351 cat conftest.err 1>&5
12352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12354 if diff conftest.exp conftest.er2 >/dev/null; then
12355 lt_cv_prog_compiler_static_works=yes
12356 fi
12357 else
12358 lt_cv_prog_compiler_static_works=yes
12359 fi
12360 fi
12361 $RM -r conftest*
12362 LDFLAGS=$save_LDFLAGS
12363
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12366 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12367
12368 if test yes = "$lt_cv_prog_compiler_static_works"; then
12369 :
12370 else
12371 lt_prog_compiler_static=
12372 fi
12373
12374
12375
12376
12377
12378
12379
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12381 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12382 if ${lt_cv_prog_compiler_c_o+:} false; then :
12383 $as_echo_n "(cached) " >&6
12384 else
12385 lt_cv_prog_compiler_c_o=no
12386 $RM -r conftest 2>/dev/null
12387 mkdir conftest
12388 cd conftest
12389 mkdir out
12390 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12391
12392 lt_compiler_flag="-o out/conftest2.$ac_objext"
12393 # Insert the option either (1) after the last *FLAGS variable, or
12394 # (2) before a word containing "conftest.", or (3) at the end.
12395 # Note that $ac_compile itself does not contain backslashes and begins
12396 # with a dollar sign (not a hyphen), so the echo should work correctly.
12397 lt_compile=`echo "$ac_compile" | $SED \
12398 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12399 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12400 -e 's:$: $lt_compiler_flag:'`
12401 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12402 (eval "$lt_compile" 2>out/conftest.err)
12403 ac_status=$?
12404 cat out/conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12407 then
12408 # The compiler can only warn and ignore the option if not recognized
12409 # So say no if there are warnings
12410 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12411 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12412 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12413 lt_cv_prog_compiler_c_o=yes
12414 fi
12415 fi
12416 chmod u+w . 2>&5
12417 $RM conftest*
12418 # SGI C++ compiler will create directory out/ii_files/ for
12419 # template instantiation
12420 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12421 $RM out/* && rmdir out
12422 cd ..
12423 $RM -r conftest
12424 $RM conftest*
12425
12426 fi
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12428 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12429
12430
12431
12432
12433
12434
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12436 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12437 if ${lt_cv_prog_compiler_c_o+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 lt_cv_prog_compiler_c_o=no
12441 $RM -r conftest 2>/dev/null
12442 mkdir conftest
12443 cd conftest
12444 mkdir out
12445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12446
12447 lt_compiler_flag="-o out/conftest2.$ac_objext"
12448 # Insert the option either (1) after the last *FLAGS variable, or
12449 # (2) before a word containing "conftest.", or (3) at the end.
12450 # Note that $ac_compile itself does not contain backslashes and begins
12451 # with a dollar sign (not a hyphen), so the echo should work correctly.
12452 lt_compile=`echo "$ac_compile" | $SED \
12453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12455 -e 's:$: $lt_compiler_flag:'`
12456 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12457 (eval "$lt_compile" 2>out/conftest.err)
12458 ac_status=$?
12459 cat out/conftest.err >&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12462 then
12463 # The compiler can only warn and ignore the option if not recognized
12464 # So say no if there are warnings
12465 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12466 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12467 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12468 lt_cv_prog_compiler_c_o=yes
12469 fi
12470 fi
12471 chmod u+w . 2>&5
12472 $RM conftest*
12473 # SGI C++ compiler will create directory out/ii_files/ for
12474 # template instantiation
12475 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12476 $RM out/* && rmdir out
12477 cd ..
12478 $RM -r conftest
12479 $RM conftest*
12480
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12483 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12484
12485
12486
12487
12488 hard_links=nottested
12489 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12490 # do not overwrite the value of need_locks provided by the user
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12492 $as_echo_n "checking if we can lock with hard links... " >&6; }
12493 hard_links=yes
12494 $RM conftest*
12495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12496 touch conftest.a
12497 ln conftest.a conftest.b 2>&5 || hard_links=no
12498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12500 $as_echo "$hard_links" >&6; }
12501 if test no = "$hard_links"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12503 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12504 need_locks=warn
12505 fi
12506 else
12507 need_locks=no
12508 fi
12509
12510
12511
12512
12513
12514
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12516 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12517
12518 runpath_var=
12519 allow_undefined_flag=
12520 always_export_symbols=no
12521 archive_cmds=
12522 archive_expsym_cmds=
12523 compiler_needs_object=no
12524 enable_shared_with_static_runtimes=no
12525 export_dynamic_flag_spec=
12526 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12527 hardcode_automatic=no
12528 hardcode_direct=no
12529 hardcode_direct_absolute=no
12530 hardcode_libdir_flag_spec=
12531 hardcode_libdir_separator=
12532 hardcode_minus_L=no
12533 hardcode_shlibpath_var=unsupported
12534 inherit_rpath=no
12535 link_all_deplibs=unknown
12536 module_cmds=
12537 module_expsym_cmds=
12538 old_archive_from_new_cmds=
12539 old_archive_from_expsyms_cmds=
12540 thread_safe_flag_spec=
12541 whole_archive_flag_spec=
12542 # include_expsyms should be a list of space-separated symbols to be *always*
12543 # included in the symbol list
12544 include_expsyms=
12545 # exclude_expsyms can be an extended regexp of symbols to exclude
12546 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12547 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12548 # as well as any symbol that contains 'd'.
12549 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12550 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12551 # platforms (ab)use it in PIC code, but their linkers get confused if
12552 # the symbol is explicitly referenced. Since portable code cannot
12553 # rely on this symbol name, it's probably fine to never include it in
12554 # preloaded symbol tables.
12555 # Exclude shared library initialization/finalization symbols.
12556 extract_expsyms_cmds=
12557
12558 case $host_os in
12559 cygwin* | mingw* | pw32* | cegcc*)
12560 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12561 # When not using gcc, we currently assume that we are using
12562 # Microsoft Visual C++.
12563 if test yes != "$GCC"; then
12564 with_gnu_ld=no
12565 fi
12566 ;;
12567 interix*)
12568 # we just hope/assume this is gcc and not c89 (= MSVC++)
12569 with_gnu_ld=yes
12570 ;;
12571 openbsd* | bitrig*)
12572 with_gnu_ld=no
12573 ;;
12574 esac
12575
12576 ld_shlibs=yes
12577
12578 # On some targets, GNU ld is compatible enough with the native linker
12579 # that we're better off using the native interface for both.
12580 lt_use_gnu_ld_interface=no
12581 if test yes = "$with_gnu_ld"; then
12582 case $host_os in
12583 aix*)
12584 # The AIX port of GNU ld has always aspired to compatibility
12585 # with the native linker. However, as the warning in the GNU ld
12586 # block says, versions before 2.19.5* couldn't really create working
12587 # shared libraries, regardless of the interface used.
12588 case `$LD -v 2>&1` in
12589 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12590 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12591 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12592 *)
12593 lt_use_gnu_ld_interface=yes
12594 ;;
12595 esac
12596 ;;
12597 *)
12598 lt_use_gnu_ld_interface=yes
12599 ;;
12600 esac
12601 fi
12602
12603 if test yes = "$lt_use_gnu_ld_interface"; then
12604 # If archive_cmds runs LD, not CC, wlarc should be empty
12605 wlarc='$wl'
12606
12607 # Set some defaults for GNU ld with shared library support. These
12608 # are reset later if shared libraries are not supported. Putting them
12609 # here allows them to be overridden if necessary.
12610 runpath_var=LD_RUN_PATH
12611 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12612 export_dynamic_flag_spec='$wl--export-dynamic'
12613 # ancient GNU ld didn't support --whole-archive et. al.
12614 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12615 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12616 else
12617 whole_archive_flag_spec=
12618 fi
12619 supports_anon_versioning=no
12620 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12621 *GNU\ gold*) supports_anon_versioning=yes ;;
12622 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12623 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12624 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12625 *\ 2.11.*) ;; # other 2.11 versions
12626 *) supports_anon_versioning=yes ;;
12627 esac
12628
12629 # See if GNU ld supports shared libraries.
12630 case $host_os in
12631 aix[3-9]*)
12632 # On AIX/PPC, the GNU linker is very broken
12633 if test ia64 != "$host_cpu"; then
12634 ld_shlibs=no
12635 cat <<_LT_EOF 1>&2
12636
12637 *** Warning: the GNU linker, at least up to release 2.19, is reported
12638 *** to be unable to reliably create shared libraries on AIX.
12639 *** Therefore, libtool is disabling shared libraries support. If you
12640 *** really care for shared libraries, you may want to install binutils
12641 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12642 *** You will then need to restart the configuration process.
12643
12644 _LT_EOF
12645 fi
12646 ;;
12647
12648 amigaos*)
12649 case $host_cpu in
12650 powerpc)
12651 # see comment about AmigaOS4 .so support
12652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12653 archive_expsym_cmds=''
12654 ;;
12655 m68k)
12656 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)'
12657 hardcode_libdir_flag_spec='-L$libdir'
12658 hardcode_minus_L=yes
12659 ;;
12660 esac
12661 ;;
12662
12663 beos*)
12664 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12665 allow_undefined_flag=unsupported
12666 # Joseph Beckenbach <[email protected]> says some releases of gcc
12667 # support --undefined. This deserves some investigation. FIXME
12668 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12669 else
12670 ld_shlibs=no
12671 fi
12672 ;;
12673
12674 cygwin* | mingw* | pw32* | cegcc*)
12675 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12676 # as there is no search path for DLLs.
12677 hardcode_libdir_flag_spec='-L$libdir'
12678 export_dynamic_flag_spec='$wl--export-all-symbols'
12679 allow_undefined_flag=unsupported
12680 always_export_symbols=no
12681 enable_shared_with_static_runtimes=yes
12682 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'
12683 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12684
12685 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12687 # If the export-symbols file already is a .def file, use it as
12688 # is; otherwise, prepend EXPORTS...
12689 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12690 cp $export_symbols $output_objdir/$soname.def;
12691 else
12692 echo EXPORTS > $output_objdir/$soname.def;
12693 cat $export_symbols >> $output_objdir/$soname.def;
12694 fi~
12695 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12696 else
12697 ld_shlibs=no
12698 fi
12699 ;;
12700
12701 haiku*)
12702 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12703 link_all_deplibs=yes
12704 ;;
12705
12706 os2*)
12707 hardcode_libdir_flag_spec='-L$libdir'
12708 hardcode_minus_L=yes
12709 allow_undefined_flag=unsupported
12710 shrext_cmds=.dll
12711 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12712 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12713 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12714 $ECHO EXPORTS >> $output_objdir/$libname.def~
12715 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12716 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12717 emximp -o $lib $output_objdir/$libname.def'
12718 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12719 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12720 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12721 $ECHO EXPORTS >> $output_objdir/$libname.def~
12722 prefix_cmds="$SED"~
12723 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12724 prefix_cmds="$prefix_cmds -e 1d";
12725 fi~
12726 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12727 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12728 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12729 emximp -o $lib $output_objdir/$libname.def'
12730 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12731 enable_shared_with_static_runtimes=yes
12732 ;;
12733
12734 interix[3-9]*)
12735 hardcode_direct=no
12736 hardcode_shlibpath_var=no
12737 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12738 export_dynamic_flag_spec='$wl-E'
12739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12740 # Instead, shared libraries are loaded at an image base (0x10000000 by
12741 # default) and relocated if they conflict, which is a slow very memory
12742 # consuming and fragmenting process. To avoid this, we pick a random,
12743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12745 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12746 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'
12747 ;;
12748
12749 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12750 tmp_diet=no
12751 if test linux-dietlibc = "$host_os"; then
12752 case $cc_basename in
12753 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12754 esac
12755 fi
12756 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12757 && test no = "$tmp_diet"
12758 then
12759 tmp_addflag=' $pic_flag'
12760 tmp_sharedflag='-shared'
12761 case $cc_basename,$host_cpu in
12762 pgcc*) # Portland Group C compiler
12763 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'
12764 tmp_addflag=' $pic_flag'
12765 ;;
12766 pgf77* | pgf90* | pgf95* | pgfortran*)
12767 # Portland Group f77 and f90 compilers
12768 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'
12769 tmp_addflag=' $pic_flag -Mnomain' ;;
12770 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12771 tmp_addflag=' -i_dynamic' ;;
12772 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12773 tmp_addflag=' -i_dynamic -nofor_main' ;;
12774 ifc* | ifort*) # Intel Fortran compiler
12775 tmp_addflag=' -nofor_main' ;;
12776 lf95*) # Lahey Fortran 8.1
12777 whole_archive_flag_spec=
12778 tmp_sharedflag='--shared' ;;
12779 nagfor*) # NAGFOR 5.3
12780 tmp_sharedflag='-Wl,-shared' ;;
12781 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12782 tmp_sharedflag='-qmkshrobj'
12783 tmp_addflag= ;;
12784 nvcc*) # Cuda Compiler Driver 2.2
12785 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'
12786 compiler_needs_object=yes
12787 ;;
12788 esac
12789 case `$CC -V 2>&1 | sed 5q` in
12790 *Sun\ C*) # Sun C 5.9
12791 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'
12792 compiler_needs_object=yes
12793 tmp_sharedflag='-G' ;;
12794 *Sun\ F*) # Sun Fortran 8.3
12795 tmp_sharedflag='-G' ;;
12796 esac
12797 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12798
12799 if test yes = "$supports_anon_versioning"; then
12800 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12801 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12802 echo "local: *; };" >> $output_objdir/$libname.ver~
12803 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12804 fi
12805
12806 case $cc_basename in
12807 tcc*)
12808 export_dynamic_flag_spec='-rdynamic'
12809 ;;
12810 xlf* | bgf* | bgxlf* | mpixlf*)
12811 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12812 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12813 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12814 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12815 if test yes = "$supports_anon_versioning"; then
12816 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12817 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12818 echo "local: *; };" >> $output_objdir/$libname.ver~
12819 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12820 fi
12821 ;;
12822 esac
12823 else
12824 ld_shlibs=no
12825 fi
12826 ;;
12827
12828 netbsd*)
12829 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12830 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12831 wlarc=
12832 else
12833 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12834 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12835 fi
12836 ;;
12837
12838 solaris*)
12839 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12840 ld_shlibs=no
12841 cat <<_LT_EOF 1>&2
12842
12843 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12844 *** create shared libraries on Solaris systems. Therefore, libtool
12845 *** is disabling shared libraries support. We urge you to upgrade GNU
12846 *** binutils to release 2.9.1 or newer. Another option is to modify
12847 *** your PATH or compiler configuration so that the native linker is
12848 *** used, and then restart.
12849
12850 _LT_EOF
12851 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12852 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12853 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12854 else
12855 ld_shlibs=no
12856 fi
12857 ;;
12858
12859 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12860 case `$LD -v 2>&1` in
12861 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12862 ld_shlibs=no
12863 cat <<_LT_EOF 1>&2
12864
12865 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12866 *** reliably create shared libraries on SCO systems. Therefore, libtool
12867 *** is disabling shared libraries support. We urge you to upgrade GNU
12868 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12869 *** your PATH or compiler configuration so that the native linker is
12870 *** used, and then restart.
12871
12872 _LT_EOF
12873 ;;
12874 *)
12875 # For security reasons, it is highly recommended that you always
12876 # use absolute paths for naming shared libraries, and exclude the
12877 # DT_RUNPATH tag from executables and libraries. But doing so
12878 # requires that you compile everything twice, which is a pain.
12879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12880 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12882 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12883 else
12884 ld_shlibs=no
12885 fi
12886 ;;
12887 esac
12888 ;;
12889
12890 sunos4*)
12891 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12892 wlarc=
12893 hardcode_direct=yes
12894 hardcode_shlibpath_var=no
12895 ;;
12896
12897 *)
12898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12899 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12900 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12901 else
12902 ld_shlibs=no
12903 fi
12904 ;;
12905 esac
12906
12907 if test no = "$ld_shlibs"; then
12908 runpath_var=
12909 hardcode_libdir_flag_spec=
12910 export_dynamic_flag_spec=
12911 whole_archive_flag_spec=
12912 fi
12913 else
12914 # PORTME fill in a description of your system's linker (not GNU ld)
12915 case $host_os in
12916 aix3*)
12917 allow_undefined_flag=unsupported
12918 always_export_symbols=yes
12919 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'
12920 # Note: this linker hardcodes the directories in LIBPATH if there
12921 # are no directories specified by -L.
12922 hardcode_minus_L=yes
12923 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12924 # Neither direct hardcoding nor static linking is supported with a
12925 # broken collect2.
12926 hardcode_direct=unsupported
12927 fi
12928 ;;
12929
12930 aix[4-9]*)
12931 if test ia64 = "$host_cpu"; then
12932 # On IA64, the linker does run time linking by default, so we don't
12933 # have to do anything special.
12934 aix_use_runtimelinking=no
12935 exp_sym_flag='-Bexport'
12936 no_entry_flag=
12937 else
12938 # If we're using GNU nm, then we don't want the "-C" option.
12939 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12940 # Without the "-l" option, or with the "-B" option, AIX nm treats
12941 # weak defined symbols like other global defined symbols, whereas
12942 # GNU nm marks them as "W".
12943 # While the 'weak' keyword is ignored in the Export File, we need
12944 # it in the Import File for the 'aix-soname' feature, so we have
12945 # to replace the "-B" option with "-P" for AIX nm.
12946 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12947 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'
12948 else
12949 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 == "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'
12950 fi
12951 aix_use_runtimelinking=no
12952
12953 # Test if we are trying to use run time linking or normal
12954 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12955 # have runtime linking enabled, and use it for executables.
12956 # For shared libraries, we enable/disable runtime linking
12957 # depending on the kind of the shared library created -
12958 # when "with_aix_soname,aix_use_runtimelinking" is:
12959 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12960 # "aix,yes" lib.so shared, rtl:yes, for executables
12961 # lib.a static archive
12962 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12963 # lib.a(lib.so.V) shared, rtl:no, for executables
12964 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12965 # lib.a(lib.so.V) shared, rtl:no
12966 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12967 # lib.a static archive
12968 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12969 for ld_flag in $LDFLAGS; do
12970 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12971 aix_use_runtimelinking=yes
12972 break
12973 fi
12974 done
12975 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12976 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12977 # so we don't have lib.a shared libs to link our executables.
12978 # We have to force runtime linking in this case.
12979 aix_use_runtimelinking=yes
12980 LDFLAGS="$LDFLAGS -Wl,-brtl"
12981 fi
12982 ;;
12983 esac
12984
12985 exp_sym_flag='-bexport'
12986 no_entry_flag='-bnoentry'
12987 fi
12988
12989 # When large executables or shared objects are built, AIX ld can
12990 # have problems creating the table of contents. If linking a library
12991 # or program results in "error TOC overflow" add -mminimal-toc to
12992 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12993 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12994
12995 archive_cmds=''
12996 hardcode_direct=yes
12997 hardcode_direct_absolute=yes
12998 hardcode_libdir_separator=':'
12999 link_all_deplibs=yes
13000 file_list_spec='$wl-f,'
13001 case $with_aix_soname,$aix_use_runtimelinking in
13002 aix,*) ;; # traditional, no import file
13003 svr4,* | *,yes) # use import file
13004 # The Import File defines what to hardcode.
13005 hardcode_direct=no
13006 hardcode_direct_absolute=no
13007 ;;
13008 esac
13009
13010 if test yes = "$GCC"; then
13011 case $host_os in aix4.[012]|aix4.[012].*)
13012 # We only want to do this on AIX 4.2 and lower, the check
13013 # below for broken collect2 doesn't work under 4.3+
13014 collect2name=`$CC -print-prog-name=collect2`
13015 if test -f "$collect2name" &&
13016 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13017 then
13018 # We have reworked collect2
13019 :
13020 else
13021 # We have old collect2
13022 hardcode_direct=unsupported
13023 # It fails to find uninstalled libraries when the uninstalled
13024 # path is not listed in the libpath. Setting hardcode_minus_L
13025 # to unsupported forces relinking
13026 hardcode_minus_L=yes
13027 hardcode_libdir_flag_spec='-L$libdir'
13028 hardcode_libdir_separator=
13029 fi
13030 ;;
13031 esac
13032 shared_flag='-shared'
13033 if test yes = "$aix_use_runtimelinking"; then
13034 shared_flag="$shared_flag "'$wl-G'
13035 fi
13036 # Need to ensure runtime linking is disabled for the traditional
13037 # shared library, or the linker may eventually find shared libraries
13038 # /with/ Import File - we do not want to mix them.
13039 shared_flag_aix='-shared'
13040 shared_flag_svr4='-shared $wl-G'
13041 else
13042 # not using gcc
13043 if test ia64 = "$host_cpu"; then
13044 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13045 # chokes on -Wl,-G. The following line is correct:
13046 shared_flag='-G'
13047 else
13048 if test yes = "$aix_use_runtimelinking"; then
13049 shared_flag='$wl-G'
13050 else
13051 shared_flag='$wl-bM:SRE'
13052 fi
13053 shared_flag_aix='$wl-bM:SRE'
13054 shared_flag_svr4='$wl-G'
13055 fi
13056 fi
13057
13058 export_dynamic_flag_spec='$wl-bexpall'
13059 # It seems that -bexpall does not export symbols beginning with
13060 # underscore (_), so it is better to generate a list of symbols to export.
13061 always_export_symbols=yes
13062 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13063 # Warning - without using the other runtime loading flags (-brtl),
13064 # -berok will link without error, but may produce a broken library.
13065 allow_undefined_flag='-berok'
13066 # Determine the default libpath from the value encoded in an
13067 # empty executable.
13068 if test set = "${lt_cv_aix_libpath+set}"; then
13069 aix_libpath=$lt_cv_aix_libpath
13070 else
13071 if ${lt_cv_aix_libpath_+:} false; then :
13072 $as_echo_n "(cached) " >&6
13073 else
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076
13077 int
13078 main ()
13079 {
13080
13081 ;
13082 return 0;
13083 }
13084 _ACEOF
13085 if ac_fn_c_try_link "$LINENO"; then :
13086
13087 lt_aix_libpath_sed='
13088 /Import File Strings/,/^$/ {
13089 /^0/ {
13090 s/^0 *\([^ ]*\) *$/\1/
13091 p
13092 }
13093 }'
13094 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13095 # Check for a 64-bit object if we didn't find anything.
13096 if test -z "$lt_cv_aix_libpath_"; then
13097 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13098 fi
13099 fi
13100 rm -f core conftest.err conftest.$ac_objext \
13101 conftest$ac_exeext conftest.$ac_ext
13102 if test -z "$lt_cv_aix_libpath_"; then
13103 lt_cv_aix_libpath_=/usr/lib:/lib
13104 fi
13105
13106 fi
13107
13108 aix_libpath=$lt_cv_aix_libpath_
13109 fi
13110
13111 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13112 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
13113 else
13114 if test ia64 = "$host_cpu"; then
13115 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13116 allow_undefined_flag="-z nodefs"
13117 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"
13118 else
13119 # Determine the default libpath from the value encoded in an
13120 # empty executable.
13121 if test set = "${lt_cv_aix_libpath+set}"; then
13122 aix_libpath=$lt_cv_aix_libpath
13123 else
13124 if ${lt_cv_aix_libpath_+:} false; then :
13125 $as_echo_n "(cached) " >&6
13126 else
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13128 /* end confdefs.h. */
13129
13130 int
13131 main ()
13132 {
13133
13134 ;
13135 return 0;
13136 }
13137 _ACEOF
13138 if ac_fn_c_try_link "$LINENO"; then :
13139
13140 lt_aix_libpath_sed='
13141 /Import File Strings/,/^$/ {
13142 /^0/ {
13143 s/^0 *\([^ ]*\) *$/\1/
13144 p
13145 }
13146 }'
13147 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13148 # Check for a 64-bit object if we didn't find anything.
13149 if test -z "$lt_cv_aix_libpath_"; then
13150 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13151 fi
13152 fi
13153 rm -f core conftest.err conftest.$ac_objext \
13154 conftest$ac_exeext conftest.$ac_ext
13155 if test -z "$lt_cv_aix_libpath_"; then
13156 lt_cv_aix_libpath_=/usr/lib:/lib
13157 fi
13158
13159 fi
13160
13161 aix_libpath=$lt_cv_aix_libpath_
13162 fi
13163
13164 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13165 # Warning - without using the other run time loading flags,
13166 # -berok will link without error, but may produce a broken library.
13167 no_undefined_flag=' $wl-bernotok'
13168 allow_undefined_flag=' $wl-berok'
13169 if test yes = "$with_gnu_ld"; then
13170 # We only use this code for GNU lds that support --whole-archive.
13171 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13172 else
13173 # Exported symbols can be pulled into shared objects from archives
13174 whole_archive_flag_spec='$convenience'
13175 fi
13176 archive_cmds_need_lc=yes
13177 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13178 # -brtl affects multiple linker settings, -berok does not and is overridden later
13179 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13180 if test svr4 != "$with_aix_soname"; then
13181 # This is similar to how AIX traditionally builds its shared libraries.
13182 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'
13183 fi
13184 if test aix != "$with_aix_soname"; then
13185 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'
13186 else
13187 # used by -dlpreopen to get the symbols
13188 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13189 fi
13190 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13191 fi
13192 fi
13193 ;;
13194
13195 amigaos*)
13196 case $host_cpu in
13197 powerpc)
13198 # see comment about AmigaOS4 .so support
13199 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13200 archive_expsym_cmds=''
13201 ;;
13202 m68k)
13203 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)'
13204 hardcode_libdir_flag_spec='-L$libdir'
13205 hardcode_minus_L=yes
13206 ;;
13207 esac
13208 ;;
13209
13210 bsdi[45]*)
13211 export_dynamic_flag_spec=-rdynamic
13212 ;;
13213
13214 cygwin* | mingw* | pw32* | cegcc*)
13215 # When not using gcc, we currently assume that we are using
13216 # Microsoft Visual C++.
13217 # hardcode_libdir_flag_spec is actually meaningless, as there is
13218 # no search path for DLLs.
13219 case $cc_basename in
13220 cl*)
13221 # Native MSVC
13222 hardcode_libdir_flag_spec=' '
13223 allow_undefined_flag=unsupported
13224 always_export_symbols=yes
13225 file_list_spec='@'
13226 # Tell ltmain to make .lib files, not .a files.
13227 libext=lib
13228 # Tell ltmain to make .dll files, not .so files.
13229 shrext_cmds=.dll
13230 # FIXME: Setting linknames here is a bad hack.
13231 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13232 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13233 cp "$export_symbols" "$output_objdir/$soname.def";
13234 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13235 else
13236 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13237 fi~
13238 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13239 linknames='
13240 # The linker will not automatically build a static lib if we build a DLL.
13241 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13242 enable_shared_with_static_runtimes=yes
13243 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13245 # Don't use ranlib
13246 old_postinstall_cmds='chmod 644 $oldlib'
13247 postlink_cmds='lt_outputfile="@OUTPUT@"~
13248 lt_tool_outputfile="@TOOL_OUTPUT@"~
13249 case $lt_outputfile in
13250 *.exe|*.EXE) ;;
13251 *)
13252 lt_outputfile=$lt_outputfile.exe
13253 lt_tool_outputfile=$lt_tool_outputfile.exe
13254 ;;
13255 esac~
13256 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13257 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13258 $RM "$lt_outputfile.manifest";
13259 fi'
13260 ;;
13261 *)
13262 # Assume MSVC wrapper
13263 hardcode_libdir_flag_spec=' '
13264 allow_undefined_flag=unsupported
13265 # Tell ltmain to make .lib files, not .a files.
13266 libext=lib
13267 # Tell ltmain to make .dll files, not .so files.
13268 shrext_cmds=.dll
13269 # FIXME: Setting linknames here is a bad hack.
13270 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13271 # The linker will automatically build a .lib file if we build a DLL.
13272 old_archive_from_new_cmds='true'
13273 # FIXME: Should let the user specify the lib program.
13274 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13275 enable_shared_with_static_runtimes=yes
13276 ;;
13277 esac
13278 ;;
13279
13280 darwin* | rhapsody*)
13281
13282
13283 archive_cmds_need_lc=no
13284 hardcode_direct=no
13285 hardcode_automatic=yes
13286 hardcode_shlibpath_var=unsupported
13287 if test yes = "$lt_cv_ld_force_load"; then
13288 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\"`'
13289
13290 else
13291 whole_archive_flag_spec=''
13292 fi
13293 link_all_deplibs=yes
13294 allow_undefined_flag=$_lt_dar_allow_undefined
13295 case $cc_basename in
13296 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13297 *) _lt_dar_can_shared=$GCC ;;
13298 esac
13299 if test yes = "$_lt_dar_can_shared"; then
13300 output_verbose_link_cmd=func_echo_all
13301 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13302 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13303 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"
13304 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"
13305
13306 else
13307 ld_shlibs=no
13308 fi
13309
13310 ;;
13311
13312 dgux*)
13313 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13314 hardcode_libdir_flag_spec='-L$libdir'
13315 hardcode_shlibpath_var=no
13316 ;;
13317
13318 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13319 # support. Future versions do this automatically, but an explicit c++rt0.o
13320 # does not break anything, and helps significantly (at the cost of a little
13321 # extra space).
13322 freebsd2.2*)
13323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13324 hardcode_libdir_flag_spec='-R$libdir'
13325 hardcode_direct=yes
13326 hardcode_shlibpath_var=no
13327 ;;
13328
13329 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13330 freebsd2.*)
13331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13332 hardcode_direct=yes
13333 hardcode_minus_L=yes
13334 hardcode_shlibpath_var=no
13335 ;;
13336
13337 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13338 freebsd* | dragonfly*)
13339 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13340 hardcode_libdir_flag_spec='-R$libdir'
13341 hardcode_direct=yes
13342 hardcode_shlibpath_var=no
13343 ;;
13344
13345 hpux9*)
13346 if test yes = "$GCC"; then
13347 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'
13348 else
13349 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'
13350 fi
13351 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13352 hardcode_libdir_separator=:
13353 hardcode_direct=yes
13354
13355 # hardcode_minus_L: Not really in the search PATH,
13356 # but as the default location of the library.
13357 hardcode_minus_L=yes
13358 export_dynamic_flag_spec='$wl-E'
13359 ;;
13360
13361 hpux10*)
13362 if test yes,no = "$GCC,$with_gnu_ld"; then
13363 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13364 else
13365 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13366 fi
13367 if test no = "$with_gnu_ld"; then
13368 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13369 hardcode_libdir_separator=:
13370 hardcode_direct=yes
13371 hardcode_direct_absolute=yes
13372 export_dynamic_flag_spec='$wl-E'
13373 # hardcode_minus_L: Not really in the search PATH,
13374 # but as the default location of the library.
13375 hardcode_minus_L=yes
13376 fi
13377 ;;
13378
13379 hpux11*)
13380 if test yes,no = "$GCC,$with_gnu_ld"; then
13381 case $host_cpu in
13382 hppa*64*)
13383 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13384 ;;
13385 ia64*)
13386 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13387 ;;
13388 *)
13389 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13390 ;;
13391 esac
13392 else
13393 case $host_cpu in
13394 hppa*64*)
13395 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13396 ;;
13397 ia64*)
13398 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13399 ;;
13400 *)
13401
13402 # Older versions of the 11.00 compiler do not understand -b yet
13403 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13405 $as_echo_n "checking if $CC understands -b... " >&6; }
13406 if ${lt_cv_prog_compiler__b+:} false; then :
13407 $as_echo_n "(cached) " >&6
13408 else
13409 lt_cv_prog_compiler__b=no
13410 save_LDFLAGS=$LDFLAGS
13411 LDFLAGS="$LDFLAGS -b"
13412 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13413 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13414 # The linker can only warn and ignore the option if not recognized
13415 # So say no if there are warnings
13416 if test -s conftest.err; then
13417 # Append any errors to the config.log.
13418 cat conftest.err 1>&5
13419 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13420 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13421 if diff conftest.exp conftest.er2 >/dev/null; then
13422 lt_cv_prog_compiler__b=yes
13423 fi
13424 else
13425 lt_cv_prog_compiler__b=yes
13426 fi
13427 fi
13428 $RM -r conftest*
13429 LDFLAGS=$save_LDFLAGS
13430
13431 fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13433 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13434
13435 if test yes = "$lt_cv_prog_compiler__b"; then
13436 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13437 else
13438 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13439 fi
13440
13441 ;;
13442 esac
13443 fi
13444 if test no = "$with_gnu_ld"; then
13445 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13446 hardcode_libdir_separator=:
13447
13448 case $host_cpu in
13449 hppa*64*|ia64*)
13450 hardcode_direct=no
13451 hardcode_shlibpath_var=no
13452 ;;
13453 *)
13454 hardcode_direct=yes
13455 hardcode_direct_absolute=yes
13456 export_dynamic_flag_spec='$wl-E'
13457
13458 # hardcode_minus_L: Not really in the search PATH,
13459 # but as the default location of the library.
13460 hardcode_minus_L=yes
13461 ;;
13462 esac
13463 fi
13464 ;;
13465
13466 irix5* | irix6* | nonstopux*)
13467 if test yes = "$GCC"; then
13468 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'
13469 # Try to use the -exported_symbol ld option, if it does not
13470 # work, assume that -exports_file does not work either and
13471 # implicitly export all symbols.
13472 # This should be the same for all languages, so no per-tag cache variable.
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13474 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13475 if ${lt_cv_irix_exported_symbol+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 save_LDFLAGS=$LDFLAGS
13479 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13481 /* end confdefs.h. */
13482 int foo (void) { return 0; }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"; then :
13485 lt_cv_irix_exported_symbol=yes
13486 else
13487 lt_cv_irix_exported_symbol=no
13488 fi
13489 rm -f core conftest.err conftest.$ac_objext \
13490 conftest$ac_exeext conftest.$ac_ext
13491 LDFLAGS=$save_LDFLAGS
13492 fi
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13494 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13495 if test yes = "$lt_cv_irix_exported_symbol"; then
13496 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'
13497 fi
13498 else
13499 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'
13500 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'
13501 fi
13502 archive_cmds_need_lc='no'
13503 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13504 hardcode_libdir_separator=:
13505 inherit_rpath=yes
13506 link_all_deplibs=yes
13507 ;;
13508
13509 linux*)
13510 case $cc_basename in
13511 tcc*)
13512 # Fabrice Bellard et al's Tiny C Compiler
13513 ld_shlibs=yes
13514 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13515 ;;
13516 esac
13517 ;;
13518
13519 netbsd*)
13520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13521 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13522 else
13523 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13524 fi
13525 hardcode_libdir_flag_spec='-R$libdir'
13526 hardcode_direct=yes
13527 hardcode_shlibpath_var=no
13528 ;;
13529
13530 newsos6)
13531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13532 hardcode_direct=yes
13533 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13534 hardcode_libdir_separator=:
13535 hardcode_shlibpath_var=no
13536 ;;
13537
13538 *nto* | *qnx*)
13539 ;;
13540
13541 openbsd* | bitrig*)
13542 if test -f /usr/libexec/ld.so; then
13543 hardcode_direct=yes
13544 hardcode_shlibpath_var=no
13545 hardcode_direct_absolute=yes
13546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13547 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13548 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13549 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13550 export_dynamic_flag_spec='$wl-E'
13551 else
13552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13553 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13554 fi
13555 else
13556 ld_shlibs=no
13557 fi
13558 ;;
13559
13560 os2*)
13561 hardcode_libdir_flag_spec='-L$libdir'
13562 hardcode_minus_L=yes
13563 allow_undefined_flag=unsupported
13564 shrext_cmds=.dll
13565 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13566 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13567 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13568 $ECHO EXPORTS >> $output_objdir/$libname.def~
13569 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13570 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13571 emximp -o $lib $output_objdir/$libname.def'
13572 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13573 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13574 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13575 $ECHO EXPORTS >> $output_objdir/$libname.def~
13576 prefix_cmds="$SED"~
13577 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13578 prefix_cmds="$prefix_cmds -e 1d";
13579 fi~
13580 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13581 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13582 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13583 emximp -o $lib $output_objdir/$libname.def'
13584 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13585 enable_shared_with_static_runtimes=yes
13586 ;;
13587
13588 osf3*)
13589 if test yes = "$GCC"; then
13590 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13591 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'
13592 else
13593 allow_undefined_flag=' -expect_unresolved \*'
13594 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'
13595 fi
13596 archive_cmds_need_lc='no'
13597 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13598 hardcode_libdir_separator=:
13599 ;;
13600
13601 osf4* | osf5*) # as osf3* with the addition of -msym flag
13602 if test yes = "$GCC"; then
13603 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13604 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'
13605 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13606 else
13607 allow_undefined_flag=' -expect_unresolved \*'
13608 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'
13609 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~
13610 $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'
13611
13612 # Both c and cxx compiler support -rpath directly
13613 hardcode_libdir_flag_spec='-rpath $libdir'
13614 fi
13615 archive_cmds_need_lc='no'
13616 hardcode_libdir_separator=:
13617 ;;
13618
13619 solaris*)
13620 no_undefined_flag=' -z defs'
13621 if test yes = "$GCC"; then
13622 wlarc='$wl'
13623 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13624 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13625 $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'
13626 else
13627 case `$CC -V 2>&1` in
13628 *"Compilers 5.0"*)
13629 wlarc=''
13630 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13631 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13632 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13633 ;;
13634 *)
13635 wlarc='$wl'
13636 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13637 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13638 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13639 ;;
13640 esac
13641 fi
13642 hardcode_libdir_flag_spec='-R$libdir'
13643 hardcode_shlibpath_var=no
13644 case $host_os in
13645 solaris2.[0-5] | solaris2.[0-5].*) ;;
13646 *)
13647 # The compiler driver will combine and reorder linker options,
13648 # but understands '-z linker_flag'. GCC discards it without '$wl',
13649 # but is careful enough not to reorder.
13650 # Supported since Solaris 2.6 (maybe 2.5.1?)
13651 if test yes = "$GCC"; then
13652 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13653 else
13654 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13655 fi
13656 ;;
13657 esac
13658 link_all_deplibs=yes
13659 ;;
13660
13661 sunos4*)
13662 if test sequent = "$host_vendor"; then
13663 # Use $CC to link under sequent, because it throws in some extra .o
13664 # files that make .init and .fini sections work.
13665 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13666 else
13667 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13668 fi
13669 hardcode_libdir_flag_spec='-L$libdir'
13670 hardcode_direct=yes
13671 hardcode_minus_L=yes
13672 hardcode_shlibpath_var=no
13673 ;;
13674
13675 sysv4)
13676 case $host_vendor in
13677 sni)
13678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13679 hardcode_direct=yes # is this really true???
13680 ;;
13681 siemens)
13682 ## LD is ld it makes a PLAMLIB
13683 ## CC just makes a GrossModule.
13684 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13685 reload_cmds='$CC -r -o $output$reload_objs'
13686 hardcode_direct=no
13687 ;;
13688 motorola)
13689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13690 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13691 ;;
13692 esac
13693 runpath_var='LD_RUN_PATH'
13694 hardcode_shlibpath_var=no
13695 ;;
13696
13697 sysv4.3*)
13698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13699 hardcode_shlibpath_var=no
13700 export_dynamic_flag_spec='-Bexport'
13701 ;;
13702
13703 sysv4*MP*)
13704 if test -d /usr/nec; then
13705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13706 hardcode_shlibpath_var=no
13707 runpath_var=LD_RUN_PATH
13708 hardcode_runpath_var=yes
13709 ld_shlibs=yes
13710 fi
13711 ;;
13712
13713 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13714 no_undefined_flag='$wl-z,text'
13715 archive_cmds_need_lc=no
13716 hardcode_shlibpath_var=no
13717 runpath_var='LD_RUN_PATH'
13718
13719 if test yes = "$GCC"; then
13720 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13721 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13722 else
13723 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13724 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13725 fi
13726 ;;
13727
13728 sysv5* | sco3.2v5* | sco5v6*)
13729 # Note: We CANNOT use -z defs as we might desire, because we do not
13730 # link with -lc, and that would cause any symbols used from libc to
13731 # always be unresolved, which means just about no library would
13732 # ever link correctly. If we're not using GNU ld we use -z text
13733 # though, which does catch some bad symbols but isn't as heavy-handed
13734 # as -z defs.
13735 no_undefined_flag='$wl-z,text'
13736 allow_undefined_flag='$wl-z,nodefs'
13737 archive_cmds_need_lc=no
13738 hardcode_shlibpath_var=no
13739 hardcode_libdir_flag_spec='$wl-R,$libdir'
13740 hardcode_libdir_separator=':'
13741 link_all_deplibs=yes
13742 export_dynamic_flag_spec='$wl-Bexport'
13743 runpath_var='LD_RUN_PATH'
13744
13745 if test yes = "$GCC"; then
13746 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13748 else
13749 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13750 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13751 fi
13752 ;;
13753
13754 uts4*)
13755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13756 hardcode_libdir_flag_spec='-L$libdir'
13757 hardcode_shlibpath_var=no
13758 ;;
13759
13760 *)
13761 ld_shlibs=no
13762 ;;
13763 esac
13764
13765 if test sni = "$host_vendor"; then
13766 case $host in
13767 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13768 export_dynamic_flag_spec='$wl-Blargedynsym'
13769 ;;
13770 esac
13771 fi
13772 fi
13773
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13775 $as_echo "$ld_shlibs" >&6; }
13776 test no = "$ld_shlibs" && can_build_shared=no
13777
13778 with_gnu_ld=$with_gnu_ld
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793
13794 #
13795 # Do we need to explicitly link libc?
13796 #
13797 case "x$archive_cmds_need_lc" in
13798 x|xyes)
13799 # Assume -lc should be added
13800 archive_cmds_need_lc=yes
13801
13802 if test yes,yes = "$GCC,$enable_shared"; then
13803 case $archive_cmds in
13804 *'~'*)
13805 # FIXME: we may have to deal with multi-command sequences.
13806 ;;
13807 '$CC '*)
13808 # Test whether the compiler implicitly links with -lc since on some
13809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13810 # to ld, don't add -lc before -lgcc.
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13812 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13813 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13814 $as_echo_n "(cached) " >&6
13815 else
13816 $RM conftest*
13817 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13818
13819 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13820 (eval $ac_compile) 2>&5
13821 ac_status=$?
13822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13823 test $ac_status = 0; } 2>conftest.err; then
13824 soname=conftest
13825 lib=conftest
13826 libobjs=conftest.$ac_objext
13827 deplibs=
13828 wl=$lt_prog_compiler_wl
13829 pic_flag=$lt_prog_compiler_pic
13830 compiler_flags=-v
13831 linker_flags=-v
13832 verstring=
13833 output_objdir=.
13834 libname=conftest
13835 lt_save_allow_undefined_flag=$allow_undefined_flag
13836 allow_undefined_flag=
13837 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13838 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13839 ac_status=$?
13840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13841 test $ac_status = 0; }
13842 then
13843 lt_cv_archive_cmds_need_lc=no
13844 else
13845 lt_cv_archive_cmds_need_lc=yes
13846 fi
13847 allow_undefined_flag=$lt_save_allow_undefined_flag
13848 else
13849 cat conftest.err 1>&5
13850 fi
13851 $RM conftest*
13852
13853 fi
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13855 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13856 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13857 ;;
13858 esac
13859 fi
13860 ;;
13861 esac
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
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14015 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14016
14017 if test yes = "$GCC"; then
14018 case $host_os in
14019 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14020 *) lt_awk_arg='/^libraries:/' ;;
14021 esac
14022 case $host_os in
14023 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14024 *) lt_sed_strip_eq='s|=/|/|g' ;;
14025 esac
14026 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14027 case $lt_search_path_spec in
14028 *\;*)
14029 # if the path contains ";" then we assume it to be the separator
14030 # otherwise default to the standard path separator (i.e. ":") - it is
14031 # assumed that no part of a normal pathname contains ";" but that should
14032 # okay in the real world where ";" in dirpaths is itself problematic.
14033 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14034 ;;
14035 *)
14036 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14037 ;;
14038 esac
14039 # Ok, now we have the path, separated by spaces, we can step through it
14040 # and add multilib dir if necessary...
14041 lt_tmp_lt_search_path_spec=
14042 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14043 # ...but if some path component already ends with the multilib dir we assume
14044 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14045 case "$lt_multi_os_dir; $lt_search_path_spec " in
14046 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14047 lt_multi_os_dir=
14048 ;;
14049 esac
14050 for lt_sys_path in $lt_search_path_spec; do
14051 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14052 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14053 elif test -n "$lt_multi_os_dir"; then
14054 test -d "$lt_sys_path" && \
14055 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14056 fi
14057 done
14058 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14059 BEGIN {RS = " "; FS = "/|\n";} {
14060 lt_foo = "";
14061 lt_count = 0;
14062 for (lt_i = NF; lt_i > 0; lt_i--) {
14063 if ($lt_i != "" && $lt_i != ".") {
14064 if ($lt_i == "..") {
14065 lt_count++;
14066 } else {
14067 if (lt_count == 0) {
14068 lt_foo = "/" $lt_i lt_foo;
14069 } else {
14070 lt_count--;
14071 }
14072 }
14073 }
14074 }
14075 if (lt_foo != "") { lt_freq[lt_foo]++; }
14076 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14077 }'`
14078 # AWK program above erroneously prepends '/' to C:/dos/paths
14079 # for these hosts.
14080 case $host_os in
14081 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14082 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14083 esac
14084 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14085 else
14086 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14087 fi
14088 library_names_spec=
14089 libname_spec='lib$name'
14090 soname_spec=
14091 shrext_cmds=.so
14092 postinstall_cmds=
14093 postuninstall_cmds=
14094 finish_cmds=
14095 finish_eval=
14096 shlibpath_var=
14097 shlibpath_overrides_runpath=unknown
14098 version_type=none
14099 dynamic_linker="$host_os ld.so"
14100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14101 need_lib_prefix=unknown
14102 hardcode_into_libs=no
14103
14104 # when you set need_version to no, make sure it does not cause -set_version
14105 # flags to be left without arguments
14106 need_version=unknown
14107
14108
14109
14110 case $host_os in
14111 aix3*)
14112 version_type=linux # correct to gnu/linux during the next big refactor
14113 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14114 shlibpath_var=LIBPATH
14115
14116 # AIX 3 has no versioning support, so we append a major version to the name.
14117 soname_spec='$libname$release$shared_ext$major'
14118 ;;
14119
14120 aix[4-9]*)
14121 version_type=linux # correct to gnu/linux during the next big refactor
14122 need_lib_prefix=no
14123 need_version=no
14124 hardcode_into_libs=yes
14125 if test ia64 = "$host_cpu"; then
14126 # AIX 5 supports IA64
14127 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14128 shlibpath_var=LD_LIBRARY_PATH
14129 else
14130 # With GCC up to 2.95.x, collect2 would create an import file
14131 # for dependence libraries. The import file would start with
14132 # the line '#! .'. This would cause the generated library to
14133 # depend on '.', always an invalid library. This was fixed in
14134 # development snapshots of GCC prior to 3.0.
14135 case $host_os in
14136 aix4 | aix4.[01] | aix4.[01].*)
14137 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14138 echo ' yes '
14139 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14140 :
14141 else
14142 can_build_shared=no
14143 fi
14144 ;;
14145 esac
14146 # Using Import Files as archive members, it is possible to support
14147 # filename-based versioning of shared library archives on AIX. While
14148 # this would work for both with and without runtime linking, it will
14149 # prevent static linking of such archives. So we do filename-based
14150 # shared library versioning with .so extension only, which is used
14151 # when both runtime linking and shared linking is enabled.
14152 # Unfortunately, runtime linking may impact performance, so we do
14153 # not want this to be the default eventually. Also, we use the
14154 # versioned .so libs for executables only if there is the -brtl
14155 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14156 # To allow for filename-based versioning support, we need to create
14157 # libNAME.so.V as an archive file, containing:
14158 # *) an Import File, referring to the versioned filename of the
14159 # archive as well as the shared archive member, telling the
14160 # bitwidth (32 or 64) of that shared object, and providing the
14161 # list of exported symbols of that shared object, eventually
14162 # decorated with the 'weak' keyword
14163 # *) the shared object with the F_LOADONLY flag set, to really avoid
14164 # it being seen by the linker.
14165 # At run time we better use the real file rather than another symlink,
14166 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14167
14168 case $with_aix_soname,$aix_use_runtimelinking in
14169 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14170 # soname into executable. Probably we can add versioning support to
14171 # collect2, so additional links can be useful in future.
14172 aix,yes) # traditional libtool
14173 dynamic_linker='AIX unversionable lib.so'
14174 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14175 # instead of lib<name>.a to let people know that these are not
14176 # typical AIX shared libraries.
14177 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14178 ;;
14179 aix,no) # traditional AIX only
14180 dynamic_linker='AIX lib.a(lib.so.V)'
14181 # We preserve .a as extension for shared libraries through AIX4.2
14182 # and later when we are not doing run time linking.
14183 library_names_spec='$libname$release.a $libname.a'
14184 soname_spec='$libname$release$shared_ext$major'
14185 ;;
14186 svr4,*) # full svr4 only
14187 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14188 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14189 # We do not specify a path in Import Files, so LIBPATH fires.
14190 shlibpath_overrides_runpath=yes
14191 ;;
14192 *,yes) # both, prefer svr4
14193 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14194 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14195 # unpreferred sharedlib libNAME.a needs extra handling
14196 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"'
14197 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"'
14198 # We do not specify a path in Import Files, so LIBPATH fires.
14199 shlibpath_overrides_runpath=yes
14200 ;;
14201 *,no) # both, prefer aix
14202 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14203 library_names_spec='$libname$release.a $libname.a'
14204 soname_spec='$libname$release$shared_ext$major'
14205 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14206 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)'
14207 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"'
14208 ;;
14209 esac
14210 shlibpath_var=LIBPATH
14211 fi
14212 ;;
14213
14214 amigaos*)
14215 case $host_cpu in
14216 powerpc)
14217 # Since July 2007 AmigaOS4 officially supports .so libraries.
14218 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14220 ;;
14221 m68k)
14222 library_names_spec='$libname.ixlibrary $libname.a'
14223 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14224 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'
14225 ;;
14226 esac
14227 ;;
14228
14229 beos*)
14230 library_names_spec='$libname$shared_ext'
14231 dynamic_linker="$host_os ld.so"
14232 shlibpath_var=LIBRARY_PATH
14233 ;;
14234
14235 bsdi[45]*)
14236 version_type=linux # correct to gnu/linux during the next big refactor
14237 need_version=no
14238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14239 soname_spec='$libname$release$shared_ext$major'
14240 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14241 shlibpath_var=LD_LIBRARY_PATH
14242 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14243 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14244 # the default ld.so.conf also contains /usr/contrib/lib and
14245 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14246 # libtool to hard-code these into programs
14247 ;;
14248
14249 cygwin* | mingw* | pw32* | cegcc*)
14250 version_type=windows
14251 shrext_cmds=.dll
14252 need_version=no
14253 need_lib_prefix=no
14254
14255 case $GCC,$cc_basename in
14256 yes,*)
14257 # gcc
14258 library_names_spec='$libname.dll.a'
14259 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14260 postinstall_cmds='base_file=`basename \$file`~
14261 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14262 dldir=$destdir/`dirname \$dlpath`~
14263 test -d \$dldir || mkdir -p \$dldir~
14264 $install_prog $dir/$dlname \$dldir/$dlname~
14265 chmod a+x \$dldir/$dlname~
14266 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14267 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14268 fi'
14269 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14270 dlpath=$dir/\$dldll~
14271 $RM \$dlpath'
14272 shlibpath_overrides_runpath=yes
14273
14274 case $host_os in
14275 cygwin*)
14276 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14277 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14278
14279 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14280 ;;
14281 mingw* | cegcc*)
14282 # MinGW DLLs use traditional 'lib' prefix
14283 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14284 ;;
14285 pw32*)
14286 # pw32 DLLs use 'pw' prefix rather than 'lib'
14287 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14288 ;;
14289 esac
14290 dynamic_linker='Win32 ld.exe'
14291 ;;
14292
14293 *,cl*)
14294 # Native MSVC
14295 libname_spec='$name'
14296 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14297 library_names_spec='$libname.dll.lib'
14298
14299 case $build_os in
14300 mingw*)
14301 sys_lib_search_path_spec=
14302 lt_save_ifs=$IFS
14303 IFS=';'
14304 for lt_path in $LIB
14305 do
14306 IFS=$lt_save_ifs
14307 # Let DOS variable expansion print the short 8.3 style file name.
14308 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14309 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14310 done
14311 IFS=$lt_save_ifs
14312 # Convert to MSYS style.
14313 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14314 ;;
14315 cygwin*)
14316 # Convert to unix form, then to dos form, then back to unix form
14317 # but this time dos style (no spaces!) so that the unix form looks
14318 # like /cygdrive/c/PROGRA~1:/cygdr...
14319 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14320 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14321 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14322 ;;
14323 *)
14324 sys_lib_search_path_spec=$LIB
14325 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14326 # It is most probably a Windows format PATH.
14327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14328 else
14329 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14330 fi
14331 # FIXME: find the short name or the path components, as spaces are
14332 # common. (e.g. "Program Files" -> "PROGRA~1")
14333 ;;
14334 esac
14335
14336 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14337 postinstall_cmds='base_file=`basename \$file`~
14338 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14339 dldir=$destdir/`dirname \$dlpath`~
14340 test -d \$dldir || mkdir -p \$dldir~
14341 $install_prog $dir/$dlname \$dldir/$dlname'
14342 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14343 dlpath=$dir/\$dldll~
14344 $RM \$dlpath'
14345 shlibpath_overrides_runpath=yes
14346 dynamic_linker='Win32 link.exe'
14347 ;;
14348
14349 *)
14350 # Assume MSVC wrapper
14351 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14352 dynamic_linker='Win32 ld.exe'
14353 ;;
14354 esac
14355 # FIXME: first we should search . and the directory the executable is in
14356 shlibpath_var=PATH
14357 ;;
14358
14359 darwin* | rhapsody*)
14360 dynamic_linker="$host_os dyld"
14361 version_type=darwin
14362 need_lib_prefix=no
14363 need_version=no
14364 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14365 soname_spec='$libname$release$major$shared_ext'
14366 shlibpath_overrides_runpath=yes
14367 shlibpath_var=DYLD_LIBRARY_PATH
14368 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14369
14370 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14371 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14372 ;;
14373
14374 dgux*)
14375 version_type=linux # correct to gnu/linux during the next big refactor
14376 need_lib_prefix=no
14377 need_version=no
14378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14379 soname_spec='$libname$release$shared_ext$major'
14380 shlibpath_var=LD_LIBRARY_PATH
14381 ;;
14382
14383 freebsd* | dragonfly*)
14384 # DragonFly does not have aout. When/if they implement a new
14385 # versioning mechanism, adjust this.
14386 if test -x /usr/bin/objformat; then
14387 objformat=`/usr/bin/objformat`
14388 else
14389 case $host_os in
14390 freebsd[23].*) objformat=aout ;;
14391 *) objformat=elf ;;
14392 esac
14393 fi
14394 version_type=freebsd-$objformat
14395 case $version_type in
14396 freebsd-elf*)
14397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14398 soname_spec='$libname$release$shared_ext$major'
14399 need_version=no
14400 need_lib_prefix=no
14401 ;;
14402 freebsd-*)
14403 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14404 need_version=yes
14405 ;;
14406 esac
14407 shlibpath_var=LD_LIBRARY_PATH
14408 case $host_os in
14409 freebsd2.*)
14410 shlibpath_overrides_runpath=yes
14411 ;;
14412 freebsd3.[01]* | freebsdelf3.[01]*)
14413 shlibpath_overrides_runpath=yes
14414 hardcode_into_libs=yes
14415 ;;
14416 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14417 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14418 shlibpath_overrides_runpath=no
14419 hardcode_into_libs=yes
14420 ;;
14421 *) # from 4.6 on, and DragonFly
14422 shlibpath_overrides_runpath=yes
14423 hardcode_into_libs=yes
14424 ;;
14425 esac
14426 ;;
14427
14428 haiku*)
14429 version_type=linux # correct to gnu/linux during the next big refactor
14430 need_lib_prefix=no
14431 need_version=no
14432 dynamic_linker="$host_os runtime_loader"
14433 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14434 soname_spec='$libname$release$shared_ext$major'
14435 shlibpath_var=LIBRARY_PATH
14436 shlibpath_overrides_runpath=no
14437 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14438 hardcode_into_libs=yes
14439 ;;
14440
14441 hpux9* | hpux10* | hpux11*)
14442 # Give a soname corresponding to the major version so that dld.sl refuses to
14443 # link against other versions.
14444 version_type=sunos
14445 need_lib_prefix=no
14446 need_version=no
14447 case $host_cpu in
14448 ia64*)
14449 shrext_cmds='.so'
14450 hardcode_into_libs=yes
14451 dynamic_linker="$host_os dld.so"
14452 shlibpath_var=LD_LIBRARY_PATH
14453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14454 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14455 soname_spec='$libname$release$shared_ext$major'
14456 if test 32 = "$HPUX_IA64_MODE"; then
14457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14458 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14459 else
14460 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14461 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14462 fi
14463 ;;
14464 hppa*64*)
14465 shrext_cmds='.sl'
14466 hardcode_into_libs=yes
14467 dynamic_linker="$host_os dld.sl"
14468 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14469 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14471 soname_spec='$libname$release$shared_ext$major'
14472 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14474 ;;
14475 *)
14476 shrext_cmds='.sl'
14477 dynamic_linker="$host_os dld.sl"
14478 shlibpath_var=SHLIB_PATH
14479 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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 ;;
14483 esac
14484 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14485 postinstall_cmds='chmod 555 $lib'
14486 # or fails outright, so override atomically:
14487 install_override_mode=555
14488 ;;
14489
14490 interix[3-9]*)
14491 version_type=linux # correct to gnu/linux during the next big refactor
14492 need_lib_prefix=no
14493 need_version=no
14494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14495 soname_spec='$libname$release$shared_ext$major'
14496 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14497 shlibpath_var=LD_LIBRARY_PATH
14498 shlibpath_overrides_runpath=no
14499 hardcode_into_libs=yes
14500 ;;
14501
14502 irix5* | irix6* | nonstopux*)
14503 case $host_os in
14504 nonstopux*) version_type=nonstopux ;;
14505 *)
14506 if test yes = "$lt_cv_prog_gnu_ld"; then
14507 version_type=linux # correct to gnu/linux during the next big refactor
14508 else
14509 version_type=irix
14510 fi ;;
14511 esac
14512 need_lib_prefix=no
14513 need_version=no
14514 soname_spec='$libname$release$shared_ext$major'
14515 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14516 case $host_os in
14517 irix5* | nonstopux*)
14518 libsuff= shlibsuff=
14519 ;;
14520 *)
14521 case $LD in # libtool.m4 will add one of these switches to LD
14522 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14523 libsuff= shlibsuff= libmagic=32-bit;;
14524 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14525 libsuff=32 shlibsuff=N32 libmagic=N32;;
14526 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14527 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14528 *) libsuff= shlibsuff= libmagic=never-match;;
14529 esac
14530 ;;
14531 esac
14532 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14533 shlibpath_overrides_runpath=no
14534 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14535 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14536 hardcode_into_libs=yes
14537 ;;
14538
14539 # No shared lib support for Linux oldld, aout, or coff.
14540 linux*oldld* | linux*aout* | linux*coff*)
14541 dynamic_linker=no
14542 ;;
14543
14544 linux*android*)
14545 version_type=none # Android doesn't support versioned libraries.
14546 need_lib_prefix=no
14547 need_version=no
14548 library_names_spec='$libname$release$shared_ext'
14549 soname_spec='$libname$release$shared_ext'
14550 finish_cmds=
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes
14553
14554 # This implies no fast_install, which is unacceptable.
14555 # Some rework will be needed to allow for fast_install
14556 # before this can be enabled.
14557 hardcode_into_libs=yes
14558
14559 dynamic_linker='Android linker'
14560 # Don't embed -rpath directories since the linker doesn't support them.
14561 hardcode_libdir_flag_spec='-L$libdir'
14562 ;;
14563
14564 # This must be glibc/ELF.
14565 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14566 version_type=linux # correct to gnu/linux during the next big refactor
14567 need_lib_prefix=no
14568 need_version=no
14569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14570 soname_spec='$libname$release$shared_ext$major'
14571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14572 shlibpath_var=LD_LIBRARY_PATH
14573 shlibpath_overrides_runpath=no
14574
14575 # Some binutils ld are patched to set DT_RUNPATH
14576 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 lt_cv_shlibpath_overrides_runpath=no
14580 save_LDFLAGS=$LDFLAGS
14581 save_libdir=$libdir
14582 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14583 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14586
14587 int
14588 main ()
14589 {
14590
14591 ;
14592 return 0;
14593 }
14594 _ACEOF
14595 if ac_fn_c_try_link "$LINENO"; then :
14596 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14597 lt_cv_shlibpath_overrides_runpath=yes
14598 fi
14599 fi
14600 rm -f core conftest.err conftest.$ac_objext \
14601 conftest$ac_exeext conftest.$ac_ext
14602 LDFLAGS=$save_LDFLAGS
14603 libdir=$save_libdir
14604
14605 fi
14606
14607 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14608
14609 # This implies no fast_install, which is unacceptable.
14610 # Some rework will be needed to allow for fast_install
14611 # before this can be enabled.
14612 hardcode_into_libs=yes
14613
14614 # Ideally, we could use ldconfig to report *all* directores which are
14615 # searched for libraries, however this is still not possible. Aside from not
14616 # being certain /sbin/ldconfig is available, command
14617 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14618 # even though it is searched at run-time. Try to do the best guess by
14619 # appending ld.so.conf contents (and includes) to the search path.
14620 if test -f /etc/ld.so.conf; then
14621 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' ' '`
14622 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14623 fi
14624
14625 # We used to test for /lib/ld.so.1 and disable shared libraries on
14626 # powerpc, because MkLinux only supported shared libraries with the
14627 # GNU dynamic linker. Since this was broken with cross compilers,
14628 # most powerpc-linux boxes support dynamic linking these days and
14629 # people can always --disable-shared, the test was removed, and we
14630 # assume the GNU/Linux dynamic linker is in use.
14631 dynamic_linker='GNU/Linux ld.so'
14632 ;;
14633
14634 netbsd*)
14635 version_type=sunos
14636 need_lib_prefix=no
14637 need_version=no
14638 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14639 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14641 dynamic_linker='NetBSD (a.out) ld.so'
14642 else
14643 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14644 soname_spec='$libname$release$shared_ext$major'
14645 dynamic_linker='NetBSD ld.elf_so'
14646 fi
14647 shlibpath_var=LD_LIBRARY_PATH
14648 shlibpath_overrides_runpath=yes
14649 hardcode_into_libs=yes
14650 ;;
14651
14652 newsos6)
14653 version_type=linux # correct to gnu/linux during the next big refactor
14654 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14655 shlibpath_var=LD_LIBRARY_PATH
14656 shlibpath_overrides_runpath=yes
14657 ;;
14658
14659 *nto* | *qnx*)
14660 version_type=qnx
14661 need_lib_prefix=no
14662 need_version=no
14663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14664 soname_spec='$libname$release$shared_ext$major'
14665 shlibpath_var=LD_LIBRARY_PATH
14666 shlibpath_overrides_runpath=no
14667 hardcode_into_libs=yes
14668 dynamic_linker='ldqnx.so'
14669 ;;
14670
14671 openbsd* | bitrig*)
14672 version_type=sunos
14673 sys_lib_dlsearch_path_spec=/usr/lib
14674 need_lib_prefix=no
14675 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14676 need_version=no
14677 else
14678 need_version=yes
14679 fi
14680 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14682 shlibpath_var=LD_LIBRARY_PATH
14683 shlibpath_overrides_runpath=yes
14684 ;;
14685
14686 os2*)
14687 libname_spec='$name'
14688 version_type=windows
14689 shrext_cmds=.dll
14690 need_version=no
14691 need_lib_prefix=no
14692 # OS/2 can only load a DLL with a base name of 8 characters or less.
14693 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14694 v=$($ECHO $release$versuffix | tr -d .-);
14695 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14696 $ECHO $n$v`$shared_ext'
14697 library_names_spec='${libname}_dll.$libext'
14698 dynamic_linker='OS/2 ld.exe'
14699 shlibpath_var=BEGINLIBPATH
14700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14702 postinstall_cmds='base_file=`basename \$file`~
14703 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14704 dldir=$destdir/`dirname \$dlpath`~
14705 test -d \$dldir || mkdir -p \$dldir~
14706 $install_prog $dir/$dlname \$dldir/$dlname~
14707 chmod a+x \$dldir/$dlname~
14708 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14709 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14710 fi'
14711 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14712 dlpath=$dir/\$dldll~
14713 $RM \$dlpath'
14714 ;;
14715
14716 osf3* | osf4* | osf5*)
14717 version_type=osf
14718 need_lib_prefix=no
14719 need_version=no
14720 soname_spec='$libname$release$shared_ext$major'
14721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14722 shlibpath_var=LD_LIBRARY_PATH
14723 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14724 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14725 ;;
14726
14727 rdos*)
14728 dynamic_linker=no
14729 ;;
14730
14731 solaris*)
14732 version_type=linux # correct to gnu/linux during the next big refactor
14733 need_lib_prefix=no
14734 need_version=no
14735 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14736 soname_spec='$libname$release$shared_ext$major'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 shlibpath_overrides_runpath=yes
14739 hardcode_into_libs=yes
14740 # ldd complains unless libraries are executable
14741 postinstall_cmds='chmod +x $lib'
14742 ;;
14743
14744 sunos4*)
14745 version_type=sunos
14746 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14747 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14748 shlibpath_var=LD_LIBRARY_PATH
14749 shlibpath_overrides_runpath=yes
14750 if test yes = "$with_gnu_ld"; then
14751 need_lib_prefix=no
14752 fi
14753 need_version=yes
14754 ;;
14755
14756 sysv4 | sysv4.3*)
14757 version_type=linux # correct to gnu/linux during the next big refactor
14758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14759 soname_spec='$libname$release$shared_ext$major'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 case $host_vendor in
14762 sni)
14763 shlibpath_overrides_runpath=no
14764 need_lib_prefix=no
14765 runpath_var=LD_RUN_PATH
14766 ;;
14767 siemens)
14768 need_lib_prefix=no
14769 ;;
14770 motorola)
14771 need_lib_prefix=no
14772 need_version=no
14773 shlibpath_overrides_runpath=no
14774 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14775 ;;
14776 esac
14777 ;;
14778
14779 sysv4*MP*)
14780 if test -d /usr/nec; then
14781 version_type=linux # correct to gnu/linux during the next big refactor
14782 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14783 soname_spec='$libname$shared_ext.$major'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 fi
14786 ;;
14787
14788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14789 version_type=sco
14790 need_lib_prefix=no
14791 need_version=no
14792 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14793 soname_spec='$libname$release$shared_ext$major'
14794 shlibpath_var=LD_LIBRARY_PATH
14795 shlibpath_overrides_runpath=yes
14796 hardcode_into_libs=yes
14797 if test yes = "$with_gnu_ld"; then
14798 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14799 else
14800 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14801 case $host_os in
14802 sco3.2v5*)
14803 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14804 ;;
14805 esac
14806 fi
14807 sys_lib_dlsearch_path_spec='/usr/lib'
14808 ;;
14809
14810 tpf*)
14811 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14812 version_type=linux # correct to gnu/linux during the next big refactor
14813 need_lib_prefix=no
14814 need_version=no
14815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 shlibpath_overrides_runpath=no
14818 hardcode_into_libs=yes
14819 ;;
14820
14821 uts4*)
14822 version_type=linux # correct to gnu/linux during the next big refactor
14823 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14824 soname_spec='$libname$release$shared_ext$major'
14825 shlibpath_var=LD_LIBRARY_PATH
14826 ;;
14827
14828 *)
14829 dynamic_linker=no
14830 ;;
14831 esac
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14833 $as_echo "$dynamic_linker" >&6; }
14834 test no = "$dynamic_linker" && can_build_shared=no
14835
14836 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14837 if test yes = "$GCC"; then
14838 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14839 fi
14840
14841 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14842 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14843 fi
14844
14845 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14846 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14847 fi
14848
14849 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14850 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14851
14852 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14853 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14854
14855 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14856 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14955 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14956 hardcode_action=
14957 if test -n "$hardcode_libdir_flag_spec" ||
14958 test -n "$runpath_var" ||
14959 test yes = "$hardcode_automatic"; then
14960
14961 # We can hardcode non-existent directories.
14962 if test no != "$hardcode_direct" &&
14963 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14964 # have to relink, otherwise we might link with an installed library
14965 # when we should be linking with a yet-to-be-installed one
14966 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14967 test no != "$hardcode_minus_L"; then
14968 # Linking always hardcodes the temporary library directory.
14969 hardcode_action=relink
14970 else
14971 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14972 hardcode_action=immediate
14973 fi
14974 else
14975 # We cannot hardcode anything, or else we can only hardcode existing
14976 # directories.
14977 hardcode_action=unsupported
14978 fi
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14980 $as_echo "$hardcode_action" >&6; }
14981
14982 if test relink = "$hardcode_action" ||
14983 test yes = "$inherit_rpath"; then
14984 # Fast installation is not supported
14985 enable_fast_install=no
14986 elif test yes = "$shlibpath_overrides_runpath" ||
14987 test no = "$enable_shared"; then
14988 # Fast installation is not necessary
14989 enable_fast_install=needless
14990 fi
14991
14992
14993
14994
14995
14996
14997 if test yes != "$enable_dlopen"; then
14998 enable_dlopen=unknown
14999 enable_dlopen_self=unknown
15000 enable_dlopen_self_static=unknown
15001 else
15002 lt_cv_dlopen=no
15003 lt_cv_dlopen_libs=
15004
15005 case $host_os in
15006 beos*)
15007 lt_cv_dlopen=load_add_on
15008 lt_cv_dlopen_libs=
15009 lt_cv_dlopen_self=yes
15010 ;;
15011
15012 mingw* | pw32* | cegcc*)
15013 lt_cv_dlopen=LoadLibrary
15014 lt_cv_dlopen_libs=
15015 ;;
15016
15017 cygwin*)
15018 lt_cv_dlopen=dlopen
15019 lt_cv_dlopen_libs=
15020 ;;
15021
15022 darwin*)
15023 # if libdl is installed we need to link against it
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15025 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15026 if ${ac_cv_lib_dl_dlopen+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 ac_check_lib_save_LIBS=$LIBS
15030 LIBS="-ldl $LIBS"
15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15032 /* end confdefs.h. */
15033
15034 /* Override any GCC internal prototype to avoid an error.
15035 Use char because int might match the return type of a GCC
15036 builtin and then its argument prototype would still apply. */
15037 #ifdef __cplusplus
15038 extern "C"
15039 #endif
15040 char dlopen ();
15041 int
15042 main ()
15043 {
15044 return dlopen ();
15045 ;
15046 return 0;
15047 }
15048 _ACEOF
15049 if ac_fn_c_try_link "$LINENO"; then :
15050 ac_cv_lib_dl_dlopen=yes
15051 else
15052 ac_cv_lib_dl_dlopen=no
15053 fi
15054 rm -f core conftest.err conftest.$ac_objext \
15055 conftest$ac_exeext conftest.$ac_ext
15056 LIBS=$ac_check_lib_save_LIBS
15057 fi
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15059 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15060 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15061 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15062 else
15063
15064 lt_cv_dlopen=dyld
15065 lt_cv_dlopen_libs=
15066 lt_cv_dlopen_self=yes
15067
15068 fi
15069
15070 ;;
15071
15072 tpf*)
15073 # Don't try to run any link tests for TPF. We know it's impossible
15074 # because TPF is a cross-compiler, and we know how we open DSOs.
15075 lt_cv_dlopen=dlopen
15076 lt_cv_dlopen_libs=
15077 lt_cv_dlopen_self=no
15078 ;;
15079
15080 *)
15081 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15082 if test "x$ac_cv_func_shl_load" = xyes; then :
15083 lt_cv_dlopen=shl_load
15084 else
15085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15086 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15087 if ${ac_cv_lib_dld_shl_load+:} false; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-ldld $LIBS"
15092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15093 /* end confdefs.h. */
15094
15095 /* Override any GCC internal prototype to avoid an error.
15096 Use char because int might match the return type of a GCC
15097 builtin and then its argument prototype would still apply. */
15098 #ifdef __cplusplus
15099 extern "C"
15100 #endif
15101 char shl_load ();
15102 int
15103 main ()
15104 {
15105 return shl_load ();
15106 ;
15107 return 0;
15108 }
15109 _ACEOF
15110 if ac_fn_c_try_link "$LINENO"; then :
15111 ac_cv_lib_dld_shl_load=yes
15112 else
15113 ac_cv_lib_dld_shl_load=no
15114 fi
15115 rm -f core conftest.err conftest.$ac_objext \
15116 conftest$ac_exeext conftest.$ac_ext
15117 LIBS=$ac_check_lib_save_LIBS
15118 fi
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15120 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15121 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15122 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15123 else
15124 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15125 if test "x$ac_cv_func_dlopen" = xyes; then :
15126 lt_cv_dlopen=dlopen
15127 else
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15129 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15130 if ${ac_cv_lib_dl_dlopen+:} false; then :
15131 $as_echo_n "(cached) " >&6
15132 else
15133 ac_check_lib_save_LIBS=$LIBS
15134 LIBS="-ldl $LIBS"
15135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15136 /* end confdefs.h. */
15137
15138 /* Override any GCC internal prototype to avoid an error.
15139 Use char because int might match the return type of a GCC
15140 builtin and then its argument prototype would still apply. */
15141 #ifdef __cplusplus
15142 extern "C"
15143 #endif
15144 char dlopen ();
15145 int
15146 main ()
15147 {
15148 return dlopen ();
15149 ;
15150 return 0;
15151 }
15152 _ACEOF
15153 if ac_fn_c_try_link "$LINENO"; then :
15154 ac_cv_lib_dl_dlopen=yes
15155 else
15156 ac_cv_lib_dl_dlopen=no
15157 fi
15158 rm -f core conftest.err conftest.$ac_objext \
15159 conftest$ac_exeext conftest.$ac_ext
15160 LIBS=$ac_check_lib_save_LIBS
15161 fi
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15163 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15164 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15165 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15166 else
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15168 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15169 if ${ac_cv_lib_svld_dlopen+:} false; then :
15170 $as_echo_n "(cached) " >&6
15171 else
15172 ac_check_lib_save_LIBS=$LIBS
15173 LIBS="-lsvld $LIBS"
15174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15175 /* end confdefs.h. */
15176
15177 /* Override any GCC internal prototype to avoid an error.
15178 Use char because int might match the return type of a GCC
15179 builtin and then its argument prototype would still apply. */
15180 #ifdef __cplusplus
15181 extern "C"
15182 #endif
15183 char dlopen ();
15184 int
15185 main ()
15186 {
15187 return dlopen ();
15188 ;
15189 return 0;
15190 }
15191 _ACEOF
15192 if ac_fn_c_try_link "$LINENO"; then :
15193 ac_cv_lib_svld_dlopen=yes
15194 else
15195 ac_cv_lib_svld_dlopen=no
15196 fi
15197 rm -f core conftest.err conftest.$ac_objext \
15198 conftest$ac_exeext conftest.$ac_ext
15199 LIBS=$ac_check_lib_save_LIBS
15200 fi
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15202 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15203 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15204 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15205 else
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15207 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15208 if ${ac_cv_lib_dld_dld_link+:} false; then :
15209 $as_echo_n "(cached) " >&6
15210 else
15211 ac_check_lib_save_LIBS=$LIBS
15212 LIBS="-ldld $LIBS"
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215
15216 /* Override any GCC internal prototype to avoid an error.
15217 Use char because int might match the return type of a GCC
15218 builtin and then its argument prototype would still apply. */
15219 #ifdef __cplusplus
15220 extern "C"
15221 #endif
15222 char dld_link ();
15223 int
15224 main ()
15225 {
15226 return dld_link ();
15227 ;
15228 return 0;
15229 }
15230 _ACEOF
15231 if ac_fn_c_try_link "$LINENO"; then :
15232 ac_cv_lib_dld_dld_link=yes
15233 else
15234 ac_cv_lib_dld_dld_link=no
15235 fi
15236 rm -f core conftest.err conftest.$ac_objext \
15237 conftest$ac_exeext conftest.$ac_ext
15238 LIBS=$ac_check_lib_save_LIBS
15239 fi
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15241 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15242 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15243 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15244 fi
15245
15246
15247 fi
15248
15249
15250 fi
15251
15252
15253 fi
15254
15255
15256 fi
15257
15258
15259 fi
15260
15261 ;;
15262 esac
15263
15264 if test no = "$lt_cv_dlopen"; then
15265 enable_dlopen=no
15266 else
15267 enable_dlopen=yes
15268 fi
15269
15270 case $lt_cv_dlopen in
15271 dlopen)
15272 save_CPPFLAGS=$CPPFLAGS
15273 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15274
15275 save_LDFLAGS=$LDFLAGS
15276 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15277
15278 save_LIBS=$LIBS
15279 LIBS="$lt_cv_dlopen_libs $LIBS"
15280
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15282 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15283 if ${lt_cv_dlopen_self+:} false; then :
15284 $as_echo_n "(cached) " >&6
15285 else
15286 if test yes = "$cross_compiling"; then :
15287 lt_cv_dlopen_self=cross
15288 else
15289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15290 lt_status=$lt_dlunknown
15291 cat > conftest.$ac_ext <<_LT_EOF
15292 #line $LINENO "configure"
15293 #include "confdefs.h"
15294
15295 #if HAVE_DLFCN_H
15296 #include <dlfcn.h>
15297 #endif
15298
15299 #include <stdio.h>
15300
15301 #ifdef RTLD_GLOBAL
15302 # define LT_DLGLOBAL RTLD_GLOBAL
15303 #else
15304 # ifdef DL_GLOBAL
15305 # define LT_DLGLOBAL DL_GLOBAL
15306 # else
15307 # define LT_DLGLOBAL 0
15308 # endif
15309 #endif
15310
15311 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15312 find out it does not work in some platform. */
15313 #ifndef LT_DLLAZY_OR_NOW
15314 # ifdef RTLD_LAZY
15315 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15316 # else
15317 # ifdef DL_LAZY
15318 # define LT_DLLAZY_OR_NOW DL_LAZY
15319 # else
15320 # ifdef RTLD_NOW
15321 # define LT_DLLAZY_OR_NOW RTLD_NOW
15322 # else
15323 # ifdef DL_NOW
15324 # define LT_DLLAZY_OR_NOW DL_NOW
15325 # else
15326 # define LT_DLLAZY_OR_NOW 0
15327 # endif
15328 # endif
15329 # endif
15330 # endif
15331 #endif
15332
15333 /* When -fvisibility=hidden is used, assume the code has been annotated
15334 correspondingly for the symbols needed. */
15335 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15336 int fnord () __attribute__((visibility("default")));
15337 #endif
15338
15339 int fnord () { return 42; }
15340 int main ()
15341 {
15342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15343 int status = $lt_dlunknown;
15344
15345 if (self)
15346 {
15347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15348 else
15349 {
15350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15351 else puts (dlerror ());
15352 }
15353 /* dlclose (self); */
15354 }
15355 else
15356 puts (dlerror ());
15357
15358 return status;
15359 }
15360 _LT_EOF
15361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15362 (eval $ac_link) 2>&5
15363 ac_status=$?
15364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15365 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15366 (./conftest; exit; ) >&5 2>/dev/null
15367 lt_status=$?
15368 case x$lt_status in
15369 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15370 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15371 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15372 esac
15373 else :
15374 # compilation failed
15375 lt_cv_dlopen_self=no
15376 fi
15377 fi
15378 rm -fr conftest*
15379
15380
15381 fi
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15383 $as_echo "$lt_cv_dlopen_self" >&6; }
15384
15385 if test yes = "$lt_cv_dlopen_self"; then
15386 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15388 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15389 if ${lt_cv_dlopen_self_static+:} false; then :
15390 $as_echo_n "(cached) " >&6
15391 else
15392 if test yes = "$cross_compiling"; then :
15393 lt_cv_dlopen_self_static=cross
15394 else
15395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15396 lt_status=$lt_dlunknown
15397 cat > conftest.$ac_ext <<_LT_EOF
15398 #line $LINENO "configure"
15399 #include "confdefs.h"
15400
15401 #if HAVE_DLFCN_H
15402 #include <dlfcn.h>
15403 #endif
15404
15405 #include <stdio.h>
15406
15407 #ifdef RTLD_GLOBAL
15408 # define LT_DLGLOBAL RTLD_GLOBAL
15409 #else
15410 # ifdef DL_GLOBAL
15411 # define LT_DLGLOBAL DL_GLOBAL
15412 # else
15413 # define LT_DLGLOBAL 0
15414 # endif
15415 #endif
15416
15417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15418 find out it does not work in some platform. */
15419 #ifndef LT_DLLAZY_OR_NOW
15420 # ifdef RTLD_LAZY
15421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15422 # else
15423 # ifdef DL_LAZY
15424 # define LT_DLLAZY_OR_NOW DL_LAZY
15425 # else
15426 # ifdef RTLD_NOW
15427 # define LT_DLLAZY_OR_NOW RTLD_NOW
15428 # else
15429 # ifdef DL_NOW
15430 # define LT_DLLAZY_OR_NOW DL_NOW
15431 # else
15432 # define LT_DLLAZY_OR_NOW 0
15433 # endif
15434 # endif
15435 # endif
15436 # endif
15437 #endif
15438
15439 /* When -fvisibility=hidden is used, assume the code has been annotated
15440 correspondingly for the symbols needed. */
15441 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15442 int fnord () __attribute__((visibility("default")));
15443 #endif
15444
15445 int fnord () { return 42; }
15446 int main ()
15447 {
15448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15449 int status = $lt_dlunknown;
15450
15451 if (self)
15452 {
15453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15454 else
15455 {
15456 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15457 else puts (dlerror ());
15458 }
15459 /* dlclose (self); */
15460 }
15461 else
15462 puts (dlerror ());
15463
15464 return status;
15465 }
15466 _LT_EOF
15467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15468 (eval $ac_link) 2>&5
15469 ac_status=$?
15470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15471 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15472 (./conftest; exit; ) >&5 2>/dev/null
15473 lt_status=$?
15474 case x$lt_status in
15475 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15476 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15477 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15478 esac
15479 else :
15480 # compilation failed
15481 lt_cv_dlopen_self_static=no
15482 fi
15483 fi
15484 rm -fr conftest*
15485
15486
15487 fi
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15489 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15490 fi
15491
15492 CPPFLAGS=$save_CPPFLAGS
15493 LDFLAGS=$save_LDFLAGS
15494 LIBS=$save_LIBS
15495 ;;
15496 esac
15497
15498 case $lt_cv_dlopen_self in
15499 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15500 *) enable_dlopen_self=unknown ;;
15501 esac
15502
15503 case $lt_cv_dlopen_self_static in
15504 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15505 *) enable_dlopen_self_static=unknown ;;
15506 esac
15507 fi
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525 striplib=
15526 old_striplib=
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15528 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15529 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15530 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15531 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15533 $as_echo "yes" >&6; }
15534 else
15535 # FIXME - insert some real tests, host_os isn't really good enough
15536 case $host_os in
15537 darwin*)
15538 if test -n "$STRIP"; then
15539 striplib="$STRIP -x"
15540 old_striplib="$STRIP -S"
15541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15542 $as_echo "yes" >&6; }
15543 else
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15545 $as_echo "no" >&6; }
15546 fi
15547 ;;
15548 *)
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15550 $as_echo "no" >&6; }
15551 ;;
15552 esac
15553 fi
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566 # Report what library types will actually be built
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15568 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15570 $as_echo "$can_build_shared" >&6; }
15571
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15573 $as_echo_n "checking whether to build shared libraries... " >&6; }
15574 test no = "$can_build_shared" && enable_shared=no
15575
15576 # On AIX, shared libraries and static libraries use the same namespace, and
15577 # are all built from PIC.
15578 case $host_os in
15579 aix3*)
15580 test yes = "$enable_shared" && enable_static=no
15581 if test -n "$RANLIB"; then
15582 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15583 postinstall_cmds='$RANLIB $lib'
15584 fi
15585 ;;
15586
15587 aix[4-9]*)
15588 if test ia64 != "$host_cpu"; then
15589 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15590 yes,aix,yes) ;; # shared object as lib.so file only
15591 yes,svr4,*) ;; # shared object as lib.so archive member only
15592 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15593 esac
15594 fi
15595 ;;
15596 esac
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15598 $as_echo "$enable_shared" >&6; }
15599
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15601 $as_echo_n "checking whether to build static libraries... " >&6; }
15602 # Make sure either enable_shared or enable_static is yes.
15603 test yes = "$enable_shared" || enable_static=yes
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15605 $as_echo "$enable_static" >&6; }
15606
15607
15608
15609
15610 fi
15611 ac_ext=c
15612 ac_cpp='$CPP $CPPFLAGS'
15613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15616
15617 CC=$lt_save_CC
15618
15619 if test -n "$CXX" && ( test no != "$CXX" &&
15620 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15621 (test g++ != "$CXX"))); then
15622 ac_ext=cpp
15623 ac_cpp='$CXXCPP $CPPFLAGS'
15624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15628 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15629 if test -z "$CXXCPP"; then
15630 if ${ac_cv_prog_CXXCPP+:} false; then :
15631 $as_echo_n "(cached) " >&6
15632 else
15633 # Double quotes because CXXCPP needs to be expanded
15634 for CXXCPP in "$CXX -E" "/lib/cpp"
15635 do
15636 ac_preproc_ok=false
15637 for ac_cxx_preproc_warn_flag in '' yes
15638 do
15639 # Use a header file that comes with gcc, so configuring glibc
15640 # with a fresh cross-compiler works.
15641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15642 # <limits.h> exists even on freestanding compilers.
15643 # On the NeXT, cc -E runs the code through the compiler's parser,
15644 # not just through cpp. "Syntax error" is here to catch this case.
15645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15646 /* end confdefs.h. */
15647 #ifdef __STDC__
15648 # include <limits.h>
15649 #else
15650 # include <assert.h>
15651 #endif
15652 Syntax error
15653 _ACEOF
15654 if ac_fn_cxx_try_cpp "$LINENO"; then :
15655
15656 else
15657 # Broken: fails on valid input.
15658 continue
15659 fi
15660 rm -f conftest.err conftest.i conftest.$ac_ext
15661
15662 # OK, works on sane cases. Now check whether nonexistent headers
15663 # can be detected and how.
15664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15665 /* end confdefs.h. */
15666 #include <ac_nonexistent.h>
15667 _ACEOF
15668 if ac_fn_cxx_try_cpp "$LINENO"; then :
15669 # Broken: success on invalid input.
15670 continue
15671 else
15672 # Passes both tests.
15673 ac_preproc_ok=:
15674 break
15675 fi
15676 rm -f conftest.err conftest.i conftest.$ac_ext
15677
15678 done
15679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15680 rm -f conftest.i conftest.err conftest.$ac_ext
15681 if $ac_preproc_ok; then :
15682 break
15683 fi
15684
15685 done
15686 ac_cv_prog_CXXCPP=$CXXCPP
15687
15688 fi
15689 CXXCPP=$ac_cv_prog_CXXCPP
15690 else
15691 ac_cv_prog_CXXCPP=$CXXCPP
15692 fi
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15694 $as_echo "$CXXCPP" >&6; }
15695 ac_preproc_ok=false
15696 for ac_cxx_preproc_warn_flag in '' yes
15697 do
15698 # Use a header file that comes with gcc, so configuring glibc
15699 # with a fresh cross-compiler works.
15700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15701 # <limits.h> exists even on freestanding compilers.
15702 # On the NeXT, cc -E runs the code through the compiler's parser,
15703 # not just through cpp. "Syntax error" is here to catch this case.
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15706 #ifdef __STDC__
15707 # include <limits.h>
15708 #else
15709 # include <assert.h>
15710 #endif
15711 Syntax error
15712 _ACEOF
15713 if ac_fn_cxx_try_cpp "$LINENO"; then :
15714
15715 else
15716 # Broken: fails on valid input.
15717 continue
15718 fi
15719 rm -f conftest.err conftest.i conftest.$ac_ext
15720
15721 # OK, works on sane cases. Now check whether nonexistent headers
15722 # can be detected and how.
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725 #include <ac_nonexistent.h>
15726 _ACEOF
15727 if ac_fn_cxx_try_cpp "$LINENO"; then :
15728 # Broken: success on invalid input.
15729 continue
15730 else
15731 # Passes both tests.
15732 ac_preproc_ok=:
15733 break
15734 fi
15735 rm -f conftest.err conftest.i conftest.$ac_ext
15736
15737 done
15738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15739 rm -f conftest.i conftest.err conftest.$ac_ext
15740 if $ac_preproc_ok; then :
15741
15742 else
15743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15745 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15746 See \`config.log' for more details" "$LINENO" 5; }
15747 fi
15748
15749 ac_ext=c
15750 ac_cpp='$CPP $CPPFLAGS'
15751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15754
15755 else
15756 _lt_caught_CXX_error=yes
15757 fi
15758
15759 ac_ext=cpp
15760 ac_cpp='$CXXCPP $CPPFLAGS'
15761 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15762 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15763 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15764
15765 archive_cmds_need_lc_CXX=no
15766 allow_undefined_flag_CXX=
15767 always_export_symbols_CXX=no
15768 archive_expsym_cmds_CXX=
15769 compiler_needs_object_CXX=no
15770 export_dynamic_flag_spec_CXX=
15771 hardcode_direct_CXX=no
15772 hardcode_direct_absolute_CXX=no
15773 hardcode_libdir_flag_spec_CXX=
15774 hardcode_libdir_separator_CXX=
15775 hardcode_minus_L_CXX=no
15776 hardcode_shlibpath_var_CXX=unsupported
15777 hardcode_automatic_CXX=no
15778 inherit_rpath_CXX=no
15779 module_cmds_CXX=
15780 module_expsym_cmds_CXX=
15781 link_all_deplibs_CXX=unknown
15782 old_archive_cmds_CXX=$old_archive_cmds
15783 reload_flag_CXX=$reload_flag
15784 reload_cmds_CXX=$reload_cmds
15785 no_undefined_flag_CXX=
15786 whole_archive_flag_spec_CXX=
15787 enable_shared_with_static_runtimes_CXX=no
15788
15789 # Source file extension for C++ test sources.
15790 ac_ext=cpp
15791
15792 # Object file extension for compiled C++ test sources.
15793 objext=o
15794 objext_CXX=$objext
15795
15796 # No sense in running all these tests if we already determined that
15797 # the CXX compiler isn't working. Some variables (like enable_shared)
15798 # are currently assumed to apply to all compilers on this platform,
15799 # and will be corrupted by setting them based on a non-working compiler.
15800 if test yes != "$_lt_caught_CXX_error"; then
15801 # Code to be used in simple compile tests
15802 lt_simple_compile_test_code="int some_variable = 0;"
15803
15804 # Code to be used in simple link tests
15805 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15806
15807 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15808
15809
15810
15811
15812
15813
15814 # If no C compiler was specified, use CC.
15815 LTCC=${LTCC-"$CC"}
15816
15817 # If no C compiler flags were specified, use CFLAGS.
15818 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15819
15820 # Allow CC to be a program name with arguments.
15821 compiler=$CC
15822
15823
15824 # save warnings/boilerplate of simple test code
15825 ac_outfile=conftest.$ac_objext
15826 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15827 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15828 _lt_compiler_boilerplate=`cat conftest.err`
15829 $RM conftest*
15830
15831 ac_outfile=conftest.$ac_objext
15832 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15833 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15834 _lt_linker_boilerplate=`cat conftest.err`
15835 $RM -r conftest*
15836
15837
15838 # Allow CC to be a program name with arguments.
15839 lt_save_CC=$CC
15840 lt_save_CFLAGS=$CFLAGS
15841 lt_save_LD=$LD
15842 lt_save_GCC=$GCC
15843 GCC=$GXX
15844 lt_save_with_gnu_ld=$with_gnu_ld
15845 lt_save_path_LD=$lt_cv_path_LD
15846 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15847 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15848 else
15849 $as_unset lt_cv_prog_gnu_ld
15850 fi
15851 if test -n "${lt_cv_path_LDCXX+set}"; then
15852 lt_cv_path_LD=$lt_cv_path_LDCXX
15853 else
15854 $as_unset lt_cv_path_LD
15855 fi
15856 test -z "${LDCXX+set}" || LD=$LDCXX
15857 CC=${CXX-"c++"}
15858 CFLAGS=$CXXFLAGS
15859 compiler=$CC
15860 compiler_CXX=$CC
15861 func_cc_basename $compiler
15862 cc_basename=$func_cc_basename_result
15863
15864
15865 if test -n "$compiler"; then
15866 # We don't want -fno-exception when compiling C++ code, so set the
15867 # no_builtin_flag separately
15868 if test yes = "$GXX"; then
15869 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15870 else
15871 lt_prog_compiler_no_builtin_flag_CXX=
15872 fi
15873
15874 if test yes = "$GXX"; then
15875 # Set up default GNU C++ configuration
15876
15877
15878
15879 # Check whether --with-gnu-ld was given.
15880 if test "${with_gnu_ld+set}" = set; then :
15881 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15882 else
15883 with_gnu_ld=no
15884 fi
15885
15886 ac_prog=ld
15887 if test yes = "$GCC"; then
15888 # Check if gcc -print-prog-name=ld gives a path.
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15890 $as_echo_n "checking for ld used by $CC... " >&6; }
15891 case $host in
15892 *-*-mingw*)
15893 # gcc leaves a trailing carriage return, which upsets mingw
15894 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15895 *)
15896 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15897 esac
15898 case $ac_prog in
15899 # Accept absolute paths.
15900 [\\/]* | ?:[\\/]*)
15901 re_direlt='/[^/][^/]*/\.\./'
15902 # Canonicalize the pathname of ld
15903 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15904 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15905 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15906 done
15907 test -z "$LD" && LD=$ac_prog
15908 ;;
15909 "")
15910 # If it fails, then pretend we aren't using GCC.
15911 ac_prog=ld
15912 ;;
15913 *)
15914 # If it is relative, then search for the first ld in PATH.
15915 with_gnu_ld=unknown
15916 ;;
15917 esac
15918 elif test yes = "$with_gnu_ld"; then
15919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15920 $as_echo_n "checking for GNU ld... " >&6; }
15921 else
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15923 $as_echo_n "checking for non-GNU ld... " >&6; }
15924 fi
15925 if ${lt_cv_path_LD+:} false; then :
15926 $as_echo_n "(cached) " >&6
15927 else
15928 if test -z "$LD"; then
15929 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15930 for ac_dir in $PATH; do
15931 IFS=$lt_save_ifs
15932 test -z "$ac_dir" && ac_dir=.
15933 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15934 lt_cv_path_LD=$ac_dir/$ac_prog
15935 # Check to see if the program is GNU ld. I'd rather use --version,
15936 # but apparently some variants of GNU ld only accept -v.
15937 # Break only if it was the GNU/non-GNU ld that we prefer.
15938 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15939 *GNU* | *'with BFD'*)
15940 test no != "$with_gnu_ld" && break
15941 ;;
15942 *)
15943 test yes != "$with_gnu_ld" && break
15944 ;;
15945 esac
15946 fi
15947 done
15948 IFS=$lt_save_ifs
15949 else
15950 lt_cv_path_LD=$LD # Let the user override the test with a path.
15951 fi
15952 fi
15953
15954 LD=$lt_cv_path_LD
15955 if test -n "$LD"; then
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15957 $as_echo "$LD" >&6; }
15958 else
15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15960 $as_echo "no" >&6; }
15961 fi
15962 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15964 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15965 if ${lt_cv_prog_gnu_ld+:} false; then :
15966 $as_echo_n "(cached) " >&6
15967 else
15968 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15969 case `$LD -v 2>&1 </dev/null` in
15970 *GNU* | *'with BFD'*)
15971 lt_cv_prog_gnu_ld=yes
15972 ;;
15973 *)
15974 lt_cv_prog_gnu_ld=no
15975 ;;
15976 esac
15977 fi
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15979 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15980 with_gnu_ld=$lt_cv_prog_gnu_ld
15981
15982
15983
15984
15985
15986
15987
15988 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15989 # archiving commands below assume that GNU ld is being used.
15990 if test yes = "$with_gnu_ld"; then
15991 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15992 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'
15993
15994 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15995 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15996
15997 # If archive_cmds runs LD, not CC, wlarc should be empty
15998 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15999 # investigate it a little bit more. (MM)
16000 wlarc='$wl'
16001
16002 # ancient GNU ld didn't support --whole-archive et. al.
16003 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16004 $GREP 'no-whole-archive' > /dev/null; then
16005 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16006 else
16007 whole_archive_flag_spec_CXX=
16008 fi
16009 else
16010 with_gnu_ld=no
16011 wlarc=
16012
16013 # A generic and very simple default shared library creation
16014 # command for GNU C++ for the case where it uses the native
16015 # linker, instead of GNU ld. If possible, this setting should
16016 # overridden to take advantage of the native linker features on
16017 # the platform it is being used on.
16018 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16019 fi
16020
16021 # Commands to make compiler produce verbose output that lists
16022 # what "hidden" libraries, object files and flags are used when
16023 # linking a shared library.
16024 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16025
16026 else
16027 GXX=no
16028 with_gnu_ld=no
16029 wlarc=
16030 fi
16031
16032 # PORTME: fill in a description of your system's C++ link characteristics
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16034 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16035 ld_shlibs_CXX=yes
16036 case $host_os in
16037 aix3*)
16038 # FIXME: insert proper C++ library support
16039 ld_shlibs_CXX=no
16040 ;;
16041 aix[4-9]*)
16042 if test ia64 = "$host_cpu"; then
16043 # On IA64, the linker does run time linking by default, so we don't
16044 # have to do anything special.
16045 aix_use_runtimelinking=no
16046 exp_sym_flag='-Bexport'
16047 no_entry_flag=
16048 else
16049 aix_use_runtimelinking=no
16050
16051 # Test if we are trying to use run time linking or normal
16052 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16053 # have runtime linking enabled, and use it for executables.
16054 # For shared libraries, we enable/disable runtime linking
16055 # depending on the kind of the shared library created -
16056 # when "with_aix_soname,aix_use_runtimelinking" is:
16057 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16058 # "aix,yes" lib.so shared, rtl:yes, for executables
16059 # lib.a static archive
16060 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16061 # lib.a(lib.so.V) shared, rtl:no, for executables
16062 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16063 # lib.a(lib.so.V) shared, rtl:no
16064 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16065 # lib.a static archive
16066 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16067 for ld_flag in $LDFLAGS; do
16068 case $ld_flag in
16069 *-brtl*)
16070 aix_use_runtimelinking=yes
16071 break
16072 ;;
16073 esac
16074 done
16075 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16076 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16077 # so we don't have lib.a shared libs to link our executables.
16078 # We have to force runtime linking in this case.
16079 aix_use_runtimelinking=yes
16080 LDFLAGS="$LDFLAGS -Wl,-brtl"
16081 fi
16082 ;;
16083 esac
16084
16085 exp_sym_flag='-bexport'
16086 no_entry_flag='-bnoentry'
16087 fi
16088
16089 # When large executables or shared objects are built, AIX ld can
16090 # have problems creating the table of contents. If linking a library
16091 # or program results in "error TOC overflow" add -mminimal-toc to
16092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16094
16095 archive_cmds_CXX=''
16096 hardcode_direct_CXX=yes
16097 hardcode_direct_absolute_CXX=yes
16098 hardcode_libdir_separator_CXX=':'
16099 link_all_deplibs_CXX=yes
16100 file_list_spec_CXX='$wl-f,'
16101 case $with_aix_soname,$aix_use_runtimelinking in
16102 aix,*) ;; # no import file
16103 svr4,* | *,yes) # use import file
16104 # The Import File defines what to hardcode.
16105 hardcode_direct_CXX=no
16106 hardcode_direct_absolute_CXX=no
16107 ;;
16108 esac
16109
16110 if test yes = "$GXX"; then
16111 case $host_os in aix4.[012]|aix4.[012].*)
16112 # We only want to do this on AIX 4.2 and lower, the check
16113 # below for broken collect2 doesn't work under 4.3+
16114 collect2name=`$CC -print-prog-name=collect2`
16115 if test -f "$collect2name" &&
16116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16117 then
16118 # We have reworked collect2
16119 :
16120 else
16121 # We have old collect2
16122 hardcode_direct_CXX=unsupported
16123 # It fails to find uninstalled libraries when the uninstalled
16124 # path is not listed in the libpath. Setting hardcode_minus_L
16125 # to unsupported forces relinking
16126 hardcode_minus_L_CXX=yes
16127 hardcode_libdir_flag_spec_CXX='-L$libdir'
16128 hardcode_libdir_separator_CXX=
16129 fi
16130 esac
16131 shared_flag='-shared'
16132 if test yes = "$aix_use_runtimelinking"; then
16133 shared_flag=$shared_flag' $wl-G'
16134 fi
16135 # Need to ensure runtime linking is disabled for the traditional
16136 # shared library, or the linker may eventually find shared libraries
16137 # /with/ Import File - we do not want to mix them.
16138 shared_flag_aix='-shared'
16139 shared_flag_svr4='-shared $wl-G'
16140 else
16141 # not using gcc
16142 if test ia64 = "$host_cpu"; then
16143 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16144 # chokes on -Wl,-G. The following line is correct:
16145 shared_flag='-G'
16146 else
16147 if test yes = "$aix_use_runtimelinking"; then
16148 shared_flag='$wl-G'
16149 else
16150 shared_flag='$wl-bM:SRE'
16151 fi
16152 shared_flag_aix='$wl-bM:SRE'
16153 shared_flag_svr4='$wl-G'
16154 fi
16155 fi
16156
16157 export_dynamic_flag_spec_CXX='$wl-bexpall'
16158 # It seems that -bexpall does not export symbols beginning with
16159 # underscore (_), so it is better to generate a list of symbols to
16160 # export.
16161 always_export_symbols_CXX=yes
16162 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16163 # Warning - without using the other runtime loading flags (-brtl),
16164 # -berok will link without error, but may produce a broken library.
16165 # The "-G" linker flag allows undefined symbols.
16166 no_undefined_flag_CXX='-bernotok'
16167 # Determine the default libpath from the value encoded in an empty
16168 # executable.
16169 if test set = "${lt_cv_aix_libpath+set}"; then
16170 aix_libpath=$lt_cv_aix_libpath
16171 else
16172 if ${lt_cv_aix_libpath__CXX+:} false; then :
16173 $as_echo_n "(cached) " >&6
16174 else
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16177
16178 int
16179 main ()
16180 {
16181
16182 ;
16183 return 0;
16184 }
16185 _ACEOF
16186 if ac_fn_cxx_try_link "$LINENO"; then :
16187
16188 lt_aix_libpath_sed='
16189 /Import File Strings/,/^$/ {
16190 /^0/ {
16191 s/^0 *\([^ ]*\) *$/\1/
16192 p
16193 }
16194 }'
16195 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16196 # Check for a 64-bit object if we didn't find anything.
16197 if test -z "$lt_cv_aix_libpath__CXX"; then
16198 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16199 fi
16200 fi
16201 rm -f core conftest.err conftest.$ac_objext \
16202 conftest$ac_exeext conftest.$ac_ext
16203 if test -z "$lt_cv_aix_libpath__CXX"; then
16204 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16205 fi
16206
16207 fi
16208
16209 aix_libpath=$lt_cv_aix_libpath__CXX
16210 fi
16211
16212 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16213
16214 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
16215 else
16216 if test ia64 = "$host_cpu"; then
16217 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16218 allow_undefined_flag_CXX="-z nodefs"
16219 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"
16220 else
16221 # Determine the default libpath from the value encoded in an
16222 # empty executable.
16223 if test set = "${lt_cv_aix_libpath+set}"; then
16224 aix_libpath=$lt_cv_aix_libpath
16225 else
16226 if ${lt_cv_aix_libpath__CXX+:} false; then :
16227 $as_echo_n "(cached) " >&6
16228 else
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16231
16232 int
16233 main ()
16234 {
16235
16236 ;
16237 return 0;
16238 }
16239 _ACEOF
16240 if ac_fn_cxx_try_link "$LINENO"; then :
16241
16242 lt_aix_libpath_sed='
16243 /Import File Strings/,/^$/ {
16244 /^0/ {
16245 s/^0 *\([^ ]*\) *$/\1/
16246 p
16247 }
16248 }'
16249 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16250 # Check for a 64-bit object if we didn't find anything.
16251 if test -z "$lt_cv_aix_libpath__CXX"; then
16252 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16253 fi
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16257 if test -z "$lt_cv_aix_libpath__CXX"; then
16258 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16259 fi
16260
16261 fi
16262
16263 aix_libpath=$lt_cv_aix_libpath__CXX
16264 fi
16265
16266 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16267 # Warning - without using the other run time loading flags,
16268 # -berok will link without error, but may produce a broken library.
16269 no_undefined_flag_CXX=' $wl-bernotok'
16270 allow_undefined_flag_CXX=' $wl-berok'
16271 if test yes = "$with_gnu_ld"; then
16272 # We only use this code for GNU lds that support --whole-archive.
16273 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16274 else
16275 # Exported symbols can be pulled into shared objects from archives
16276 whole_archive_flag_spec_CXX='$convenience'
16277 fi
16278 archive_cmds_need_lc_CXX=yes
16279 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16280 # -brtl affects multiple linker settings, -berok does not and is overridden later
16281 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16282 if test svr4 != "$with_aix_soname"; then
16283 # This is similar to how AIX traditionally builds its shared
16284 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16285 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'
16286 fi
16287 if test aix != "$with_aix_soname"; then
16288 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'
16289 else
16290 # used by -dlpreopen to get the symbols
16291 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16292 fi
16293 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16294 fi
16295 fi
16296 ;;
16297
16298 beos*)
16299 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16300 allow_undefined_flag_CXX=unsupported
16301 # Joseph Beckenbach <[email protected]> says some releases of gcc
16302 # support --undefined. This deserves some investigation. FIXME
16303 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16304 else
16305 ld_shlibs_CXX=no
16306 fi
16307 ;;
16308
16309 chorus*)
16310 case $cc_basename in
16311 *)
16312 # FIXME: insert proper C++ library support
16313 ld_shlibs_CXX=no
16314 ;;
16315 esac
16316 ;;
16317
16318 cygwin* | mingw* | pw32* | cegcc*)
16319 case $GXX,$cc_basename in
16320 ,cl* | no,cl*)
16321 # Native MSVC
16322 # hardcode_libdir_flag_spec is actually meaningless, as there is
16323 # no search path for DLLs.
16324 hardcode_libdir_flag_spec_CXX=' '
16325 allow_undefined_flag_CXX=unsupported
16326 always_export_symbols_CXX=yes
16327 file_list_spec_CXX='@'
16328 # Tell ltmain to make .lib files, not .a files.
16329 libext=lib
16330 # Tell ltmain to make .dll files, not .so files.
16331 shrext_cmds=.dll
16332 # FIXME: Setting linknames here is a bad hack.
16333 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16334 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16335 cp "$export_symbols" "$output_objdir/$soname.def";
16336 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16337 else
16338 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16339 fi~
16340 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16341 linknames='
16342 # The linker will not automatically build a static lib if we build a DLL.
16343 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16344 enable_shared_with_static_runtimes_CXX=yes
16345 # Don't use ranlib
16346 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16347 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16348 lt_tool_outputfile="@TOOL_OUTPUT@"~
16349 case $lt_outputfile in
16350 *.exe|*.EXE) ;;
16351 *)
16352 lt_outputfile=$lt_outputfile.exe
16353 lt_tool_outputfile=$lt_tool_outputfile.exe
16354 ;;
16355 esac~
16356 func_to_tool_file "$lt_outputfile"~
16357 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16358 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16359 $RM "$lt_outputfile.manifest";
16360 fi'
16361 ;;
16362 *)
16363 # g++
16364 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16365 # as there is no search path for DLLs.
16366 hardcode_libdir_flag_spec_CXX='-L$libdir'
16367 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16368 allow_undefined_flag_CXX=unsupported
16369 always_export_symbols_CXX=no
16370 enable_shared_with_static_runtimes_CXX=yes
16371
16372 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16373 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'
16374 # If the export-symbols file already is a .def file, use it as
16375 # is; otherwise, prepend EXPORTS...
16376 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16377 cp $export_symbols $output_objdir/$soname.def;
16378 else
16379 echo EXPORTS > $output_objdir/$soname.def;
16380 cat $export_symbols >> $output_objdir/$soname.def;
16381 fi~
16382 $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'
16383 else
16384 ld_shlibs_CXX=no
16385 fi
16386 ;;
16387 esac
16388 ;;
16389 darwin* | rhapsody*)
16390
16391
16392 archive_cmds_need_lc_CXX=no
16393 hardcode_direct_CXX=no
16394 hardcode_automatic_CXX=yes
16395 hardcode_shlibpath_var_CXX=unsupported
16396 if test yes = "$lt_cv_ld_force_load"; then
16397 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\"`'
16398
16399 else
16400 whole_archive_flag_spec_CXX=''
16401 fi
16402 link_all_deplibs_CXX=yes
16403 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16404 case $cc_basename in
16405 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16406 *) _lt_dar_can_shared=$GCC ;;
16407 esac
16408 if test yes = "$_lt_dar_can_shared"; then
16409 output_verbose_link_cmd=func_echo_all
16410 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"
16411 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16412 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"
16413 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"
16414 if test yes != "$lt_cv_apple_cc_single_mod"; then
16415 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"
16416 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"
16417 fi
16418
16419 else
16420 ld_shlibs_CXX=no
16421 fi
16422
16423 ;;
16424
16425 os2*)
16426 hardcode_libdir_flag_spec_CXX='-L$libdir'
16427 hardcode_minus_L_CXX=yes
16428 allow_undefined_flag_CXX=unsupported
16429 shrext_cmds=.dll
16430 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16431 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16432 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16433 $ECHO EXPORTS >> $output_objdir/$libname.def~
16434 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16435 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16436 emximp -o $lib $output_objdir/$libname.def'
16437 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16438 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16439 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16440 $ECHO EXPORTS >> $output_objdir/$libname.def~
16441 prefix_cmds="$SED"~
16442 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16443 prefix_cmds="$prefix_cmds -e 1d";
16444 fi~
16445 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16446 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16447 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16448 emximp -o $lib $output_objdir/$libname.def'
16449 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16450 enable_shared_with_static_runtimes_CXX=yes
16451 ;;
16452
16453 dgux*)
16454 case $cc_basename in
16455 ec++*)
16456 # FIXME: insert proper C++ library support
16457 ld_shlibs_CXX=no
16458 ;;
16459 ghcx*)
16460 # Green Hills C++ Compiler
16461 # FIXME: insert proper C++ library support
16462 ld_shlibs_CXX=no
16463 ;;
16464 *)
16465 # FIXME: insert proper C++ library support
16466 ld_shlibs_CXX=no
16467 ;;
16468 esac
16469 ;;
16470
16471 freebsd2.*)
16472 # C++ shared libraries reported to be fairly broken before
16473 # switch to ELF
16474 ld_shlibs_CXX=no
16475 ;;
16476
16477 freebsd-elf*)
16478 archive_cmds_need_lc_CXX=no
16479 ;;
16480
16481 freebsd* | dragonfly*)
16482 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16483 # conventions
16484 ld_shlibs_CXX=yes
16485 ;;
16486
16487 haiku*)
16488 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16489 link_all_deplibs_CXX=yes
16490 ;;
16491
16492 hpux9*)
16493 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16494 hardcode_libdir_separator_CXX=:
16495 export_dynamic_flag_spec_CXX='$wl-E'
16496 hardcode_direct_CXX=yes
16497 hardcode_minus_L_CXX=yes # Not in the search PATH,
16498 # but as the default
16499 # location of the library.
16500
16501 case $cc_basename in
16502 CC*)
16503 # FIXME: insert proper C++ library support
16504 ld_shlibs_CXX=no
16505 ;;
16506 aCC*)
16507 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'
16508 # Commands to make compiler produce verbose output that lists
16509 # what "hidden" libraries, object files and flags are used when
16510 # linking a shared library.
16511 #
16512 # There doesn't appear to be a way to prevent this compiler from
16513 # explicitly linking system object files so we need to strip them
16514 # from the output so that they don't get included in the library
16515 # dependencies.
16516 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"'
16517 ;;
16518 *)
16519 if test yes = "$GXX"; then
16520 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'
16521 else
16522 # FIXME: insert proper C++ library support
16523 ld_shlibs_CXX=no
16524 fi
16525 ;;
16526 esac
16527 ;;
16528
16529 hpux10*|hpux11*)
16530 if test no = "$with_gnu_ld"; then
16531 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16532 hardcode_libdir_separator_CXX=:
16533
16534 case $host_cpu in
16535 hppa*64*|ia64*)
16536 ;;
16537 *)
16538 export_dynamic_flag_spec_CXX='$wl-E'
16539 ;;
16540 esac
16541 fi
16542 case $host_cpu in
16543 hppa*64*|ia64*)
16544 hardcode_direct_CXX=no
16545 hardcode_shlibpath_var_CXX=no
16546 ;;
16547 *)
16548 hardcode_direct_CXX=yes
16549 hardcode_direct_absolute_CXX=yes
16550 hardcode_minus_L_CXX=yes # Not in the search PATH,
16551 # but as the default
16552 # location of the library.
16553 ;;
16554 esac
16555
16556 case $cc_basename in
16557 CC*)
16558 # FIXME: insert proper C++ library support
16559 ld_shlibs_CXX=no
16560 ;;
16561 aCC*)
16562 case $host_cpu in
16563 hppa*64*)
16564 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16565 ;;
16566 ia64*)
16567 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16568 ;;
16569 *)
16570 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16571 ;;
16572 esac
16573 # Commands to make compiler produce verbose output that lists
16574 # what "hidden" libraries, object files and flags are used when
16575 # linking a shared library.
16576 #
16577 # There doesn't appear to be a way to prevent this compiler from
16578 # explicitly linking system object files so we need to strip them
16579 # from the output so that they don't get included in the library
16580 # dependencies.
16581 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"'
16582 ;;
16583 *)
16584 if test yes = "$GXX"; then
16585 if test no = "$with_gnu_ld"; then
16586 case $host_cpu in
16587 hppa*64*)
16588 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16589 ;;
16590 ia64*)
16591 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16592 ;;
16593 *)
16594 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'
16595 ;;
16596 esac
16597 fi
16598 else
16599 # FIXME: insert proper C++ library support
16600 ld_shlibs_CXX=no
16601 fi
16602 ;;
16603 esac
16604 ;;
16605
16606 interix[3-9]*)
16607 hardcode_direct_CXX=no
16608 hardcode_shlibpath_var_CXX=no
16609 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16610 export_dynamic_flag_spec_CXX='$wl-E'
16611 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16612 # Instead, shared libraries are loaded at an image base (0x10000000 by
16613 # default) and relocated if they conflict, which is a slow very memory
16614 # consuming and fragmenting process. To avoid this, we pick a random,
16615 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16616 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16617 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'
16618 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'
16619 ;;
16620 irix5* | irix6*)
16621 case $cc_basename in
16622 CC*)
16623 # SGI C++
16624 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'
16625
16626 # Archives containing C++ object files must be created using
16627 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16628 # necessary to make sure instantiated templates are included
16629 # in the archive.
16630 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16631 ;;
16632 *)
16633 if test yes = "$GXX"; then
16634 if test no = "$with_gnu_ld"; then
16635 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'
16636 else
16637 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'
16638 fi
16639 fi
16640 link_all_deplibs_CXX=yes
16641 ;;
16642 esac
16643 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16644 hardcode_libdir_separator_CXX=:
16645 inherit_rpath_CXX=yes
16646 ;;
16647
16648 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16649 case $cc_basename in
16650 KCC*)
16651 # Kuck and Associates, Inc. (KAI) C++ Compiler
16652
16653 # KCC will only create a shared library if the output file
16654 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16655 # to its proper name (with version) after linking.
16656 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'
16657 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'
16658 # Commands to make compiler produce verbose output that lists
16659 # what "hidden" libraries, object files and flags are used when
16660 # linking a shared library.
16661 #
16662 # There doesn't appear to be a way to prevent this compiler from
16663 # explicitly linking system object files so we need to strip them
16664 # from the output so that they don't get included in the library
16665 # dependencies.
16666 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"'
16667
16668 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16669 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16670
16671 # Archives containing C++ object files must be created using
16672 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16673 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16674 ;;
16675 icpc* | ecpc* )
16676 # Intel C++
16677 with_gnu_ld=yes
16678 # version 8.0 and above of icpc choke on multiply defined symbols
16679 # if we add $predep_objects and $postdep_objects, however 7.1 and
16680 # earlier do not add the objects themselves.
16681 case `$CC -V 2>&1` in
16682 *"Version 7."*)
16683 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16684 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'
16685 ;;
16686 *) # Version 8.0 or newer
16687 tmp_idyn=
16688 case $host_cpu in
16689 ia64*) tmp_idyn=' -i_dynamic';;
16690 esac
16691 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16692 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'
16693 ;;
16694 esac
16695 archive_cmds_need_lc_CXX=no
16696 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16697 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16698 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16699 ;;
16700 pgCC* | pgcpp*)
16701 # Portland Group C++ compiler
16702 case `$CC -V` in
16703 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16704 prelink_cmds_CXX='tpldir=Template.dir~
16705 rm -rf $tpldir~
16706 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16707 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16708 old_archive_cmds_CXX='tpldir=Template.dir~
16709 rm -rf $tpldir~
16710 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16711 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16712 $RANLIB $oldlib'
16713 archive_cmds_CXX='tpldir=Template.dir~
16714 rm -rf $tpldir~
16715 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16716 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16717 archive_expsym_cmds_CXX='tpldir=Template.dir~
16718 rm -rf $tpldir~
16719 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16720 $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'
16721 ;;
16722 *) # Version 6 and above use weak symbols
16723 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16724 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'
16725 ;;
16726 esac
16727
16728 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16729 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16730 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'
16731 ;;
16732 cxx*)
16733 # Compaq C++
16734 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16735 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'
16736
16737 runpath_var=LD_RUN_PATH
16738 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16739 hardcode_libdir_separator_CXX=:
16740
16741 # Commands to make compiler produce verbose output that lists
16742 # what "hidden" libraries, object files and flags are used when
16743 # linking a shared library.
16744 #
16745 # There doesn't appear to be a way to prevent this compiler from
16746 # explicitly linking system object files so we need to strip them
16747 # from the output so that they don't get included in the library
16748 # dependencies.
16749 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'
16750 ;;
16751 xl* | mpixl* | bgxl*)
16752 # IBM XL 8.0 on PPC, with GNU ld
16753 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16754 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16755 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16756 if test yes = "$supports_anon_versioning"; then
16757 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16758 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16759 echo "local: *; };" >> $output_objdir/$libname.ver~
16760 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16761 fi
16762 ;;
16763 *)
16764 case `$CC -V 2>&1 | sed 5q` in
16765 *Sun\ C*)
16766 # Sun C++ 5.9
16767 no_undefined_flag_CXX=' -zdefs'
16768 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16769 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'
16770 hardcode_libdir_flag_spec_CXX='-R$libdir'
16771 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'
16772 compiler_needs_object_CXX=yes
16773
16774 # Not sure whether something based on
16775 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16776 # would be better.
16777 output_verbose_link_cmd='func_echo_all'
16778
16779 # Archives containing C++ object files must be created using
16780 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16781 # necessary to make sure instantiated templates are included
16782 # in the archive.
16783 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16784 ;;
16785 esac
16786 ;;
16787 esac
16788 ;;
16789
16790 lynxos*)
16791 # FIXME: insert proper C++ library support
16792 ld_shlibs_CXX=no
16793 ;;
16794
16795 m88k*)
16796 # FIXME: insert proper C++ library support
16797 ld_shlibs_CXX=no
16798 ;;
16799
16800 mvs*)
16801 case $cc_basename in
16802 cxx*)
16803 # FIXME: insert proper C++ library support
16804 ld_shlibs_CXX=no
16805 ;;
16806 *)
16807 # FIXME: insert proper C++ library support
16808 ld_shlibs_CXX=no
16809 ;;
16810 esac
16811 ;;
16812
16813 netbsd*)
16814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16815 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16816 wlarc=
16817 hardcode_libdir_flag_spec_CXX='-R$libdir'
16818 hardcode_direct_CXX=yes
16819 hardcode_shlibpath_var_CXX=no
16820 fi
16821 # Workaround some broken pre-1.5 toolchains
16822 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16823 ;;
16824
16825 *nto* | *qnx*)
16826 ld_shlibs_CXX=yes
16827 ;;
16828
16829 openbsd* | bitrig*)
16830 if test -f /usr/libexec/ld.so; then
16831 hardcode_direct_CXX=yes
16832 hardcode_shlibpath_var_CXX=no
16833 hardcode_direct_absolute_CXX=yes
16834 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16835 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16837 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16838 export_dynamic_flag_spec_CXX='$wl-E'
16839 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16840 fi
16841 output_verbose_link_cmd=func_echo_all
16842 else
16843 ld_shlibs_CXX=no
16844 fi
16845 ;;
16846
16847 osf3* | osf4* | osf5*)
16848 case $cc_basename in
16849 KCC*)
16850 # Kuck and Associates, Inc. (KAI) C++ Compiler
16851
16852 # KCC will only create a shared library if the output file
16853 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16854 # to its proper name (with version) after linking.
16855 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'
16856
16857 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16858 hardcode_libdir_separator_CXX=:
16859
16860 # Archives containing C++ object files must be created using
16861 # the KAI C++ compiler.
16862 case $host in
16863 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16864 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16865 esac
16866 ;;
16867 RCC*)
16868 # Rational C++ 2.4.1
16869 # FIXME: insert proper C++ library support
16870 ld_shlibs_CXX=no
16871 ;;
16872 cxx*)
16873 case $host in
16874 osf3*)
16875 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16876 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'
16877 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16878 ;;
16879 *)
16880 allow_undefined_flag_CXX=' -expect_unresolved \*'
16881 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'
16882 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16883 echo "-hidden">> $lib.exp~
16884 $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~
16885 $RM $lib.exp'
16886 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16887 ;;
16888 esac
16889
16890 hardcode_libdir_separator_CXX=:
16891
16892 # Commands to make compiler produce verbose output that lists
16893 # what "hidden" libraries, object files and flags are used when
16894 # linking a shared library.
16895 #
16896 # There doesn't appear to be a way to prevent this compiler from
16897 # explicitly linking system object files so we need to strip them
16898 # from the output so that they don't get included in the library
16899 # dependencies.
16900 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"'
16901 ;;
16902 *)
16903 if test yes,no = "$GXX,$with_gnu_ld"; then
16904 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16905 case $host in
16906 osf3*)
16907 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'
16908 ;;
16909 *)
16910 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'
16911 ;;
16912 esac
16913
16914 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16915 hardcode_libdir_separator_CXX=:
16916
16917 # Commands to make compiler produce verbose output that lists
16918 # what "hidden" libraries, object files and flags are used when
16919 # linking a shared library.
16920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16921
16922 else
16923 # FIXME: insert proper C++ library support
16924 ld_shlibs_CXX=no
16925 fi
16926 ;;
16927 esac
16928 ;;
16929
16930 psos*)
16931 # FIXME: insert proper C++ library support
16932 ld_shlibs_CXX=no
16933 ;;
16934
16935 sunos4*)
16936 case $cc_basename in
16937 CC*)
16938 # Sun C++ 4.x
16939 # FIXME: insert proper C++ library support
16940 ld_shlibs_CXX=no
16941 ;;
16942 lcc*)
16943 # Lucid
16944 # FIXME: insert proper C++ library support
16945 ld_shlibs_CXX=no
16946 ;;
16947 *)
16948 # FIXME: insert proper C++ library support
16949 ld_shlibs_CXX=no
16950 ;;
16951 esac
16952 ;;
16953
16954 solaris*)
16955 case $cc_basename in
16956 CC* | sunCC*)
16957 # Sun C++ 4.2, 5.x and Centerline C++
16958 archive_cmds_need_lc_CXX=yes
16959 no_undefined_flag_CXX=' -zdefs'
16960 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16961 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16962 $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'
16963
16964 hardcode_libdir_flag_spec_CXX='-R$libdir'
16965 hardcode_shlibpath_var_CXX=no
16966 case $host_os in
16967 solaris2.[0-5] | solaris2.[0-5].*) ;;
16968 *)
16969 # The compiler driver will combine and reorder linker options,
16970 # but understands '-z linker_flag'.
16971 # Supported since Solaris 2.6 (maybe 2.5.1?)
16972 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16973 ;;
16974 esac
16975 link_all_deplibs_CXX=yes
16976
16977 output_verbose_link_cmd='func_echo_all'
16978
16979 # Archives containing C++ object files must be created using
16980 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16981 # necessary to make sure instantiated templates are included
16982 # in the archive.
16983 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16984 ;;
16985 gcx*)
16986 # Green Hills C++ Compiler
16987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16988
16989 # The C++ compiler must be used to create the archive.
16990 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16991 ;;
16992 *)
16993 # GNU C++ compiler with Solaris linker
16994 if test yes,no = "$GXX,$with_gnu_ld"; then
16995 no_undefined_flag_CXX=' $wl-z ${wl}defs'
16996 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16997 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16998 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16999 $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'
17000
17001 # Commands to make compiler produce verbose output that lists
17002 # what "hidden" libraries, object files and flags are used when
17003 # linking a shared library.
17004 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17005 else
17006 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17007 # platform.
17008 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17009 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17010 $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'
17011
17012 # Commands to make compiler produce verbose output that lists
17013 # what "hidden" libraries, object files and flags are used when
17014 # linking a shared library.
17015 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17016 fi
17017
17018 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17019 case $host_os in
17020 solaris2.[0-5] | solaris2.[0-5].*) ;;
17021 *)
17022 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17023 ;;
17024 esac
17025 fi
17026 ;;
17027 esac
17028 ;;
17029
17030 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17031 no_undefined_flag_CXX='$wl-z,text'
17032 archive_cmds_need_lc_CXX=no
17033 hardcode_shlibpath_var_CXX=no
17034 runpath_var='LD_RUN_PATH'
17035
17036 case $cc_basename in
17037 CC*)
17038 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17039 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17040 ;;
17041 *)
17042 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17043 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17044 ;;
17045 esac
17046 ;;
17047
17048 sysv5* | sco3.2v5* | sco5v6*)
17049 # Note: We CANNOT use -z defs as we might desire, because we do not
17050 # link with -lc, and that would cause any symbols used from libc to
17051 # always be unresolved, which means just about no library would
17052 # ever link correctly. If we're not using GNU ld we use -z text
17053 # though, which does catch some bad symbols but isn't as heavy-handed
17054 # as -z defs.
17055 no_undefined_flag_CXX='$wl-z,text'
17056 allow_undefined_flag_CXX='$wl-z,nodefs'
17057 archive_cmds_need_lc_CXX=no
17058 hardcode_shlibpath_var_CXX=no
17059 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17060 hardcode_libdir_separator_CXX=':'
17061 link_all_deplibs_CXX=yes
17062 export_dynamic_flag_spec_CXX='$wl-Bexport'
17063 runpath_var='LD_RUN_PATH'
17064
17065 case $cc_basename in
17066 CC*)
17067 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17068 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17069 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17070 '"$old_archive_cmds_CXX"
17071 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17072 '"$reload_cmds_CXX"
17073 ;;
17074 *)
17075 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17076 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17077 ;;
17078 esac
17079 ;;
17080
17081 tandem*)
17082 case $cc_basename in
17083 NCC*)
17084 # NonStop-UX NCC 3.20
17085 # FIXME: insert proper C++ library support
17086 ld_shlibs_CXX=no
17087 ;;
17088 *)
17089 # FIXME: insert proper C++ library support
17090 ld_shlibs_CXX=no
17091 ;;
17092 esac
17093 ;;
17094
17095 vxworks*)
17096 # FIXME: insert proper C++ library support
17097 ld_shlibs_CXX=no
17098 ;;
17099
17100 *)
17101 # FIXME: insert proper C++ library support
17102 ld_shlibs_CXX=no
17103 ;;
17104 esac
17105
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17107 $as_echo "$ld_shlibs_CXX" >&6; }
17108 test no = "$ld_shlibs_CXX" && can_build_shared=no
17109
17110 GCC_CXX=$GXX
17111 LD_CXX=$LD
17112
17113 ## CAVEAT EMPTOR:
17114 ## There is no encapsulation within the following macros, do not change
17115 ## the running order or otherwise move them around unless you know exactly
17116 ## what you are doing...
17117 # Dependencies to place before and after the object being linked:
17118 predep_objects_CXX=
17119 postdep_objects_CXX=
17120 predeps_CXX=
17121 postdeps_CXX=
17122 compiler_lib_search_path_CXX=
17123
17124 cat > conftest.$ac_ext <<_LT_EOF
17125 class Foo
17126 {
17127 public:
17128 Foo (void) { a = 0; }
17129 private:
17130 int a;
17131 };
17132 _LT_EOF
17133
17134
17135 _lt_libdeps_save_CFLAGS=$CFLAGS
17136 case "$CC $CFLAGS " in #(
17137 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17138 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17139 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17140 esac
17141
17142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17143 (eval $ac_compile) 2>&5
17144 ac_status=$?
17145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17146 test $ac_status = 0; }; then
17147 # Parse the compiler output and extract the necessary
17148 # objects, libraries and library flags.
17149
17150 # Sentinel used to keep track of whether or not we are before
17151 # the conftest object file.
17152 pre_test_object_deps_done=no
17153
17154 for p in `eval "$output_verbose_link_cmd"`; do
17155 case $prev$p in
17156
17157 -L* | -R* | -l*)
17158 # Some compilers place space between "-{L,R}" and the path.
17159 # Remove the space.
17160 if test x-L = "$p" ||
17161 test x-R = "$p"; then
17162 prev=$p
17163 continue
17164 fi
17165
17166 # Expand the sysroot to ease extracting the directories later.
17167 if test -z "$prev"; then
17168 case $p in
17169 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17170 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17171 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17172 esac
17173 fi
17174 case $p in
17175 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17176 esac
17177 if test no = "$pre_test_object_deps_done"; then
17178 case $prev in
17179 -L | -R)
17180 # Internal compiler library paths should come after those
17181 # provided the user. The postdeps already come after the
17182 # user supplied libs so there is no need to process them.
17183 if test -z "$compiler_lib_search_path_CXX"; then
17184 compiler_lib_search_path_CXX=$prev$p
17185 else
17186 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17187 fi
17188 ;;
17189 # The "-l" case would never come before the object being
17190 # linked, so don't bother handling this case.
17191 esac
17192 else
17193 if test -z "$postdeps_CXX"; then
17194 postdeps_CXX=$prev$p
17195 else
17196 postdeps_CXX="${postdeps_CXX} $prev$p"
17197 fi
17198 fi
17199 prev=
17200 ;;
17201
17202 *.lto.$objext) ;; # Ignore GCC LTO objects
17203 *.$objext)
17204 # This assumes that the test object file only shows up
17205 # once in the compiler output.
17206 if test "$p" = "conftest.$objext"; then
17207 pre_test_object_deps_done=yes
17208 continue
17209 fi
17210
17211 if test no = "$pre_test_object_deps_done"; then
17212 if test -z "$predep_objects_CXX"; then
17213 predep_objects_CXX=$p
17214 else
17215 predep_objects_CXX="$predep_objects_CXX $p"
17216 fi
17217 else
17218 if test -z "$postdep_objects_CXX"; then
17219 postdep_objects_CXX=$p
17220 else
17221 postdep_objects_CXX="$postdep_objects_CXX $p"
17222 fi
17223 fi
17224 ;;
17225
17226 *) ;; # Ignore the rest.
17227
17228 esac
17229 done
17230
17231 # Clean up.
17232 rm -f a.out a.exe
17233 else
17234 echo "libtool.m4: error: problem compiling CXX test program"
17235 fi
17236
17237 $RM -f confest.$objext
17238 CFLAGS=$_lt_libdeps_save_CFLAGS
17239
17240 # PORTME: override above test on systems where it is broken
17241 case $host_os in
17242 interix[3-9]*)
17243 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17244 # hack all around it, let's just trust "g++" to DTRT.
17245 predep_objects_CXX=
17246 postdep_objects_CXX=
17247 postdeps_CXX=
17248 ;;
17249 esac
17250
17251
17252 case " $postdeps_CXX " in
17253 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17254 esac
17255 compiler_lib_search_dirs_CXX=
17256 if test -n "${compiler_lib_search_path_CXX}"; then
17257 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17258 fi
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290 lt_prog_compiler_wl_CXX=
17291 lt_prog_compiler_pic_CXX=
17292 lt_prog_compiler_static_CXX=
17293
17294
17295 # C++ specific cases for pic, static, wl, etc.
17296 if test yes = "$GXX"; then
17297 lt_prog_compiler_wl_CXX='-Wl,'
17298 lt_prog_compiler_static_CXX='-static'
17299
17300 case $host_os in
17301 aix*)
17302 # All AIX code is PIC.
17303 if test ia64 = "$host_cpu"; then
17304 # AIX 5 now supports IA64 processor
17305 lt_prog_compiler_static_CXX='-Bstatic'
17306 fi
17307 lt_prog_compiler_pic_CXX='-fPIC'
17308 ;;
17309
17310 amigaos*)
17311 case $host_cpu in
17312 powerpc)
17313 # see comment about AmigaOS4 .so support
17314 lt_prog_compiler_pic_CXX='-fPIC'
17315 ;;
17316 m68k)
17317 # FIXME: we need at least 68020 code to build shared libraries, but
17318 # adding the '-m68020' flag to GCC prevents building anything better,
17319 # like '-m68040'.
17320 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17321 ;;
17322 esac
17323 ;;
17324
17325 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17326 # PIC is the default for these OSes.
17327 ;;
17328 mingw* | cygwin* | os2* | pw32* | cegcc*)
17329 # This hack is so that the source file can tell whether it is being
17330 # built for inclusion in a dll (and should export symbols for example).
17331 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17332 # (--disable-auto-import) libraries
17333 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17334 case $host_os in
17335 os2*)
17336 lt_prog_compiler_static_CXX='$wl-static'
17337 ;;
17338 esac
17339 ;;
17340 darwin* | rhapsody*)
17341 # PIC is the default on this platform
17342 # Common symbols not allowed in MH_DYLIB files
17343 lt_prog_compiler_pic_CXX='-fno-common'
17344 ;;
17345 *djgpp*)
17346 # DJGPP does not support shared libraries at all
17347 lt_prog_compiler_pic_CXX=
17348 ;;
17349 haiku*)
17350 # PIC is the default for Haiku.
17351 # The "-static" flag exists, but is broken.
17352 lt_prog_compiler_static_CXX=
17353 ;;
17354 interix[3-9]*)
17355 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17356 # Instead, we relocate shared libraries at runtime.
17357 ;;
17358 sysv4*MP*)
17359 if test -d /usr/nec; then
17360 lt_prog_compiler_pic_CXX=-Kconform_pic
17361 fi
17362 ;;
17363 hpux*)
17364 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17365 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17366 # sets the default TLS model and affects inlining.
17367 case $host_cpu in
17368 hppa*64*)
17369 ;;
17370 *)
17371 lt_prog_compiler_pic_CXX='-fPIC'
17372 ;;
17373 esac
17374 ;;
17375 *qnx* | *nto*)
17376 # QNX uses GNU C++, but need to define -shared option too, otherwise
17377 # it will coredump.
17378 lt_prog_compiler_pic_CXX='-fPIC -shared'
17379 ;;
17380 *)
17381 lt_prog_compiler_pic_CXX='-fPIC'
17382 ;;
17383 esac
17384 else
17385 case $host_os in
17386 aix[4-9]*)
17387 # All AIX code is PIC.
17388 if test ia64 = "$host_cpu"; then
17389 # AIX 5 now supports IA64 processor
17390 lt_prog_compiler_static_CXX='-Bstatic'
17391 else
17392 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17393 fi
17394 ;;
17395 chorus*)
17396 case $cc_basename in
17397 cxch68*)
17398 # Green Hills C++ Compiler
17399 # _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"
17400 ;;
17401 esac
17402 ;;
17403 mingw* | cygwin* | os2* | pw32* | cegcc*)
17404 # This hack is so that the source file can tell whether it is being
17405 # built for inclusion in a dll (and should export symbols for example).
17406 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17407 ;;
17408 dgux*)
17409 case $cc_basename in
17410 ec++*)
17411 lt_prog_compiler_pic_CXX='-KPIC'
17412 ;;
17413 ghcx*)
17414 # Green Hills C++ Compiler
17415 lt_prog_compiler_pic_CXX='-pic'
17416 ;;
17417 *)
17418 ;;
17419 esac
17420 ;;
17421 freebsd* | dragonfly*)
17422 # FreeBSD uses GNU C++
17423 ;;
17424 hpux9* | hpux10* | hpux11*)
17425 case $cc_basename in
17426 CC*)
17427 lt_prog_compiler_wl_CXX='-Wl,'
17428 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17429 if test ia64 != "$host_cpu"; then
17430 lt_prog_compiler_pic_CXX='+Z'
17431 fi
17432 ;;
17433 aCC*)
17434 lt_prog_compiler_wl_CXX='-Wl,'
17435 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17436 case $host_cpu in
17437 hppa*64*|ia64*)
17438 # +Z the default
17439 ;;
17440 *)
17441 lt_prog_compiler_pic_CXX='+Z'
17442 ;;
17443 esac
17444 ;;
17445 *)
17446 ;;
17447 esac
17448 ;;
17449 interix*)
17450 # This is c89, which is MS Visual C++ (no shared libs)
17451 # Anyone wants to do a port?
17452 ;;
17453 irix5* | irix6* | nonstopux*)
17454 case $cc_basename in
17455 CC*)
17456 lt_prog_compiler_wl_CXX='-Wl,'
17457 lt_prog_compiler_static_CXX='-non_shared'
17458 # CC pic flag -KPIC is the default.
17459 ;;
17460 *)
17461 ;;
17462 esac
17463 ;;
17464 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17465 case $cc_basename in
17466 KCC*)
17467 # KAI C++ Compiler
17468 lt_prog_compiler_wl_CXX='--backend -Wl,'
17469 lt_prog_compiler_pic_CXX='-fPIC'
17470 ;;
17471 ecpc* )
17472 # old Intel C++ for x86_64, which still supported -KPIC.
17473 lt_prog_compiler_wl_CXX='-Wl,'
17474 lt_prog_compiler_pic_CXX='-KPIC'
17475 lt_prog_compiler_static_CXX='-static'
17476 ;;
17477 icpc* )
17478 # Intel C++, used to be incompatible with GCC.
17479 # ICC 10 doesn't accept -KPIC any more.
17480 lt_prog_compiler_wl_CXX='-Wl,'
17481 lt_prog_compiler_pic_CXX='-fPIC'
17482 lt_prog_compiler_static_CXX='-static'
17483 ;;
17484 pgCC* | pgcpp*)
17485 # Portland Group C++ compiler
17486 lt_prog_compiler_wl_CXX='-Wl,'
17487 lt_prog_compiler_pic_CXX='-fpic'
17488 lt_prog_compiler_static_CXX='-Bstatic'
17489 ;;
17490 cxx*)
17491 # Compaq C++
17492 # Make sure the PIC flag is empty. It appears that all Alpha
17493 # Linux and Compaq Tru64 Unix objects are PIC.
17494 lt_prog_compiler_pic_CXX=
17495 lt_prog_compiler_static_CXX='-non_shared'
17496 ;;
17497 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17498 # IBM XL 8.0, 9.0 on PPC and BlueGene
17499 lt_prog_compiler_wl_CXX='-Wl,'
17500 lt_prog_compiler_pic_CXX='-qpic'
17501 lt_prog_compiler_static_CXX='-qstaticlink'
17502 ;;
17503 *)
17504 case `$CC -V 2>&1 | sed 5q` in
17505 *Sun\ C*)
17506 # Sun C++ 5.9
17507 lt_prog_compiler_pic_CXX='-KPIC'
17508 lt_prog_compiler_static_CXX='-Bstatic'
17509 lt_prog_compiler_wl_CXX='-Qoption ld '
17510 ;;
17511 esac
17512 ;;
17513 esac
17514 ;;
17515 lynxos*)
17516 ;;
17517 m88k*)
17518 ;;
17519 mvs*)
17520 case $cc_basename in
17521 cxx*)
17522 lt_prog_compiler_pic_CXX='-W c,exportall'
17523 ;;
17524 *)
17525 ;;
17526 esac
17527 ;;
17528 netbsd*)
17529 ;;
17530 *qnx* | *nto*)
17531 # QNX uses GNU C++, but need to define -shared option too, otherwise
17532 # it will coredump.
17533 lt_prog_compiler_pic_CXX='-fPIC -shared'
17534 ;;
17535 osf3* | osf4* | osf5*)
17536 case $cc_basename in
17537 KCC*)
17538 lt_prog_compiler_wl_CXX='--backend -Wl,'
17539 ;;
17540 RCC*)
17541 # Rational C++ 2.4.1
17542 lt_prog_compiler_pic_CXX='-pic'
17543 ;;
17544 cxx*)
17545 # Digital/Compaq C++
17546 lt_prog_compiler_wl_CXX='-Wl,'
17547 # Make sure the PIC flag is empty. It appears that all Alpha
17548 # Linux and Compaq Tru64 Unix objects are PIC.
17549 lt_prog_compiler_pic_CXX=
17550 lt_prog_compiler_static_CXX='-non_shared'
17551 ;;
17552 *)
17553 ;;
17554 esac
17555 ;;
17556 psos*)
17557 ;;
17558 solaris*)
17559 case $cc_basename in
17560 CC* | sunCC*)
17561 # Sun C++ 4.2, 5.x and Centerline C++
17562 lt_prog_compiler_pic_CXX='-KPIC'
17563 lt_prog_compiler_static_CXX='-Bstatic'
17564 lt_prog_compiler_wl_CXX='-Qoption ld '
17565 ;;
17566 gcx*)
17567 # Green Hills C++ Compiler
17568 lt_prog_compiler_pic_CXX='-PIC'
17569 ;;
17570 *)
17571 ;;
17572 esac
17573 ;;
17574 sunos4*)
17575 case $cc_basename in
17576 CC*)
17577 # Sun C++ 4.x
17578 lt_prog_compiler_pic_CXX='-pic'
17579 lt_prog_compiler_static_CXX='-Bstatic'
17580 ;;
17581 lcc*)
17582 # Lucid
17583 lt_prog_compiler_pic_CXX='-pic'
17584 ;;
17585 *)
17586 ;;
17587 esac
17588 ;;
17589 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17590 case $cc_basename in
17591 CC*)
17592 lt_prog_compiler_wl_CXX='-Wl,'
17593 lt_prog_compiler_pic_CXX='-KPIC'
17594 lt_prog_compiler_static_CXX='-Bstatic'
17595 ;;
17596 esac
17597 ;;
17598 tandem*)
17599 case $cc_basename in
17600 NCC*)
17601 # NonStop-UX NCC 3.20
17602 lt_prog_compiler_pic_CXX='-KPIC'
17603 ;;
17604 *)
17605 ;;
17606 esac
17607 ;;
17608 vxworks*)
17609 ;;
17610 *)
17611 lt_prog_compiler_can_build_shared_CXX=no
17612 ;;
17613 esac
17614 fi
17615
17616 case $host_os in
17617 # For platforms that do not support PIC, -DPIC is meaningless:
17618 *djgpp*)
17619 lt_prog_compiler_pic_CXX=
17620 ;;
17621 *)
17622 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17623 ;;
17624 esac
17625
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17627 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17628 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17629 $as_echo_n "(cached) " >&6
17630 else
17631 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17632 fi
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17634 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17635 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17636
17637 #
17638 # Check to make sure the PIC flag actually works.
17639 #
17640 if test -n "$lt_prog_compiler_pic_CXX"; then
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17642 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17643 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17644 $as_echo_n "(cached) " >&6
17645 else
17646 lt_cv_prog_compiler_pic_works_CXX=no
17647 ac_outfile=conftest.$ac_objext
17648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17649 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17650 # Insert the option either (1) after the last *FLAGS variable, or
17651 # (2) before a word containing "conftest.", or (3) at the end.
17652 # Note that $ac_compile itself does not contain backslashes and begins
17653 # with a dollar sign (not a hyphen), so the echo should work correctly.
17654 # The option is referenced via a variable to avoid confusing sed.
17655 lt_compile=`echo "$ac_compile" | $SED \
17656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17658 -e 's:$: $lt_compiler_flag:'`
17659 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17660 (eval "$lt_compile" 2>conftest.err)
17661 ac_status=$?
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 if (exit $ac_status) && test -s "$ac_outfile"; then
17665 # The compiler can only warn and ignore the option if not recognized
17666 # So say no if there are warnings other than the usual output.
17667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17670 lt_cv_prog_compiler_pic_works_CXX=yes
17671 fi
17672 fi
17673 $RM conftest*
17674
17675 fi
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17677 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17678
17679 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17680 case $lt_prog_compiler_pic_CXX in
17681 "" | " "*) ;;
17682 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17683 esac
17684 else
17685 lt_prog_compiler_pic_CXX=
17686 lt_prog_compiler_can_build_shared_CXX=no
17687 fi
17688
17689 fi
17690
17691
17692
17693
17694
17695 #
17696 # Check to make sure the static flag actually works.
17697 #
17698 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17700 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17701 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17702 $as_echo_n "(cached) " >&6
17703 else
17704 lt_cv_prog_compiler_static_works_CXX=no
17705 save_LDFLAGS=$LDFLAGS
17706 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17707 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17708 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17709 # The linker can only warn and ignore the option if not recognized
17710 # So say no if there are warnings
17711 if test -s conftest.err; then
17712 # Append any errors to the config.log.
17713 cat conftest.err 1>&5
17714 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17716 if diff conftest.exp conftest.er2 >/dev/null; then
17717 lt_cv_prog_compiler_static_works_CXX=yes
17718 fi
17719 else
17720 lt_cv_prog_compiler_static_works_CXX=yes
17721 fi
17722 fi
17723 $RM -r conftest*
17724 LDFLAGS=$save_LDFLAGS
17725
17726 fi
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17728 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17729
17730 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17731 :
17732 else
17733 lt_prog_compiler_static_CXX=
17734 fi
17735
17736
17737
17738
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17740 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17741 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17742 $as_echo_n "(cached) " >&6
17743 else
17744 lt_cv_prog_compiler_c_o_CXX=no
17745 $RM -r conftest 2>/dev/null
17746 mkdir conftest
17747 cd conftest
17748 mkdir out
17749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17750
17751 lt_compiler_flag="-o out/conftest2.$ac_objext"
17752 # Insert the option either (1) after the last *FLAGS variable, or
17753 # (2) before a word containing "conftest.", or (3) at the end.
17754 # Note that $ac_compile itself does not contain backslashes and begins
17755 # with a dollar sign (not a hyphen), so the echo should work correctly.
17756 lt_compile=`echo "$ac_compile" | $SED \
17757 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17759 -e 's:$: $lt_compiler_flag:'`
17760 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17761 (eval "$lt_compile" 2>out/conftest.err)
17762 ac_status=$?
17763 cat out/conftest.err >&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17766 then
17767 # The compiler can only warn and ignore the option if not recognized
17768 # So say no if there are warnings
17769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17770 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17771 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17772 lt_cv_prog_compiler_c_o_CXX=yes
17773 fi
17774 fi
17775 chmod u+w . 2>&5
17776 $RM conftest*
17777 # SGI C++ compiler will create directory out/ii_files/ for
17778 # template instantiation
17779 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17780 $RM out/* && rmdir out
17781 cd ..
17782 $RM -r conftest
17783 $RM conftest*
17784
17785 fi
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17787 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17788
17789
17790
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17792 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17793 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17794 $as_echo_n "(cached) " >&6
17795 else
17796 lt_cv_prog_compiler_c_o_CXX=no
17797 $RM -r conftest 2>/dev/null
17798 mkdir conftest
17799 cd conftest
17800 mkdir out
17801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17802
17803 lt_compiler_flag="-o out/conftest2.$ac_objext"
17804 # Insert the option either (1) after the last *FLAGS variable, or
17805 # (2) before a word containing "conftest.", or (3) at the end.
17806 # Note that $ac_compile itself does not contain backslashes and begins
17807 # with a dollar sign (not a hyphen), so the echo should work correctly.
17808 lt_compile=`echo "$ac_compile" | $SED \
17809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17811 -e 's:$: $lt_compiler_flag:'`
17812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17813 (eval "$lt_compile" 2>out/conftest.err)
17814 ac_status=$?
17815 cat out/conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17818 then
17819 # The compiler can only warn and ignore the option if not recognized
17820 # So say no if there are warnings
17821 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17824 lt_cv_prog_compiler_c_o_CXX=yes
17825 fi
17826 fi
17827 chmod u+w . 2>&5
17828 $RM conftest*
17829 # SGI C++ compiler will create directory out/ii_files/ for
17830 # template instantiation
17831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17832 $RM out/* && rmdir out
17833 cd ..
17834 $RM -r conftest
17835 $RM conftest*
17836
17837 fi
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17839 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17840
17841
17842
17843
17844 hard_links=nottested
17845 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17846 # do not overwrite the value of need_locks provided by the user
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17848 $as_echo_n "checking if we can lock with hard links... " >&6; }
17849 hard_links=yes
17850 $RM conftest*
17851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17852 touch conftest.a
17853 ln conftest.a conftest.b 2>&5 || hard_links=no
17854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17856 $as_echo "$hard_links" >&6; }
17857 if test no = "$hard_links"; then
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17859 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17860 need_locks=warn
17861 fi
17862 else
17863 need_locks=no
17864 fi
17865
17866
17867
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17869 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17870
17871 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17872 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17873 case $host_os in
17874 aix[4-9]*)
17875 # If we're using GNU nm, then we don't want the "-C" option.
17876 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17877 # Without the "-l" option, or with the "-B" option, AIX nm treats
17878 # weak defined symbols like other global defined symbols, whereas
17879 # GNU nm marks them as "W".
17880 # While the 'weak' keyword is ignored in the Export File, we need
17881 # it in the Import File for the 'aix-soname' feature, so we have
17882 # to replace the "-B" option with "-P" for AIX nm.
17883 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17884 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'
17885 else
17886 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 == "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'
17887 fi
17888 ;;
17889 pw32*)
17890 export_symbols_cmds_CXX=$ltdll_cmds
17891 ;;
17892 cygwin* | mingw* | cegcc*)
17893 case $cc_basename in
17894 cl*)
17895 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17896 ;;
17897 *)
17898 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'
17899 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17900 ;;
17901 esac
17902 ;;
17903 *)
17904 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17905 ;;
17906 esac
17907
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17909 $as_echo "$ld_shlibs_CXX" >&6; }
17910 test no = "$ld_shlibs_CXX" && can_build_shared=no
17911
17912 with_gnu_ld_CXX=$with_gnu_ld
17913
17914
17915
17916
17917
17918
17919 #
17920 # Do we need to explicitly link libc?
17921 #
17922 case "x$archive_cmds_need_lc_CXX" in
17923 x|xyes)
17924 # Assume -lc should be added
17925 archive_cmds_need_lc_CXX=yes
17926
17927 if test yes,yes = "$GCC,$enable_shared"; then
17928 case $archive_cmds_CXX in
17929 *'~'*)
17930 # FIXME: we may have to deal with multi-command sequences.
17931 ;;
17932 '$CC '*)
17933 # Test whether the compiler implicitly links with -lc since on some
17934 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17935 # to ld, don't add -lc before -lgcc.
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17937 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17938 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17939 $as_echo_n "(cached) " >&6
17940 else
17941 $RM conftest*
17942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17943
17944 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17945 (eval $ac_compile) 2>&5
17946 ac_status=$?
17947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17948 test $ac_status = 0; } 2>conftest.err; then
17949 soname=conftest
17950 lib=conftest
17951 libobjs=conftest.$ac_objext
17952 deplibs=
17953 wl=$lt_prog_compiler_wl_CXX
17954 pic_flag=$lt_prog_compiler_pic_CXX
17955 compiler_flags=-v
17956 linker_flags=-v
17957 verstring=
17958 output_objdir=.
17959 libname=conftest
17960 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17961 allow_undefined_flag_CXX=
17962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17963 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17964 ac_status=$?
17965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17966 test $ac_status = 0; }
17967 then
17968 lt_cv_archive_cmds_need_lc_CXX=no
17969 else
17970 lt_cv_archive_cmds_need_lc_CXX=yes
17971 fi
17972 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17973 else
17974 cat conftest.err 1>&5
17975 fi
17976 $RM conftest*
17977
17978 fi
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17980 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17981 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17982 ;;
17983 esac
17984 fi
17985 ;;
17986 esac
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18050 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18051
18052 library_names_spec=
18053 libname_spec='lib$name'
18054 soname_spec=
18055 shrext_cmds=.so
18056 postinstall_cmds=
18057 postuninstall_cmds=
18058 finish_cmds=
18059 finish_eval=
18060 shlibpath_var=
18061 shlibpath_overrides_runpath=unknown
18062 version_type=none
18063 dynamic_linker="$host_os ld.so"
18064 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18065 need_lib_prefix=unknown
18066 hardcode_into_libs=no
18067
18068 # when you set need_version to no, make sure it does not cause -set_version
18069 # flags to be left without arguments
18070 need_version=unknown
18071
18072
18073
18074 case $host_os in
18075 aix3*)
18076 version_type=linux # correct to gnu/linux during the next big refactor
18077 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18078 shlibpath_var=LIBPATH
18079
18080 # AIX 3 has no versioning support, so we append a major version to the name.
18081 soname_spec='$libname$release$shared_ext$major'
18082 ;;
18083
18084 aix[4-9]*)
18085 version_type=linux # correct to gnu/linux during the next big refactor
18086 need_lib_prefix=no
18087 need_version=no
18088 hardcode_into_libs=yes
18089 if test ia64 = "$host_cpu"; then
18090 # AIX 5 supports IA64
18091 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18092 shlibpath_var=LD_LIBRARY_PATH
18093 else
18094 # With GCC up to 2.95.x, collect2 would create an import file
18095 # for dependence libraries. The import file would start with
18096 # the line '#! .'. This would cause the generated library to
18097 # depend on '.', always an invalid library. This was fixed in
18098 # development snapshots of GCC prior to 3.0.
18099 case $host_os in
18100 aix4 | aix4.[01] | aix4.[01].*)
18101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18102 echo ' yes '
18103 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18104 :
18105 else
18106 can_build_shared=no
18107 fi
18108 ;;
18109 esac
18110 # Using Import Files as archive members, it is possible to support
18111 # filename-based versioning of shared library archives on AIX. While
18112 # this would work for both with and without runtime linking, it will
18113 # prevent static linking of such archives. So we do filename-based
18114 # shared library versioning with .so extension only, which is used
18115 # when both runtime linking and shared linking is enabled.
18116 # Unfortunately, runtime linking may impact performance, so we do
18117 # not want this to be the default eventually. Also, we use the
18118 # versioned .so libs for executables only if there is the -brtl
18119 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18120 # To allow for filename-based versioning support, we need to create
18121 # libNAME.so.V as an archive file, containing:
18122 # *) an Import File, referring to the versioned filename of the
18123 # archive as well as the shared archive member, telling the
18124 # bitwidth (32 or 64) of that shared object, and providing the
18125 # list of exported symbols of that shared object, eventually
18126 # decorated with the 'weak' keyword
18127 # *) the shared object with the F_LOADONLY flag set, to really avoid
18128 # it being seen by the linker.
18129 # At run time we better use the real file rather than another symlink,
18130 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18131
18132 case $with_aix_soname,$aix_use_runtimelinking in
18133 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18134 # soname into executable. Probably we can add versioning support to
18135 # collect2, so additional links can be useful in future.
18136 aix,yes) # traditional libtool
18137 dynamic_linker='AIX unversionable lib.so'
18138 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18139 # instead of lib<name>.a to let people know that these are not
18140 # typical AIX shared libraries.
18141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18142 ;;
18143 aix,no) # traditional AIX only
18144 dynamic_linker='AIX lib.a(lib.so.V)'
18145 # We preserve .a as extension for shared libraries through AIX4.2
18146 # and later when we are not doing run time linking.
18147 library_names_spec='$libname$release.a $libname.a'
18148 soname_spec='$libname$release$shared_ext$major'
18149 ;;
18150 svr4,*) # full svr4 only
18151 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18152 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18153 # We do not specify a path in Import Files, so LIBPATH fires.
18154 shlibpath_overrides_runpath=yes
18155 ;;
18156 *,yes) # both, prefer svr4
18157 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18158 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18159 # unpreferred sharedlib libNAME.a needs extra handling
18160 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"'
18161 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"'
18162 # We do not specify a path in Import Files, so LIBPATH fires.
18163 shlibpath_overrides_runpath=yes
18164 ;;
18165 *,no) # both, prefer aix
18166 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18167 library_names_spec='$libname$release.a $libname.a'
18168 soname_spec='$libname$release$shared_ext$major'
18169 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18170 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)'
18171 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"'
18172 ;;
18173 esac
18174 shlibpath_var=LIBPATH
18175 fi
18176 ;;
18177
18178 amigaos*)
18179 case $host_cpu in
18180 powerpc)
18181 # Since July 2007 AmigaOS4 officially supports .so libraries.
18182 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18184 ;;
18185 m68k)
18186 library_names_spec='$libname.ixlibrary $libname.a'
18187 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18188 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'
18189 ;;
18190 esac
18191 ;;
18192
18193 beos*)
18194 library_names_spec='$libname$shared_ext'
18195 dynamic_linker="$host_os ld.so"
18196 shlibpath_var=LIBRARY_PATH
18197 ;;
18198
18199 bsdi[45]*)
18200 version_type=linux # correct to gnu/linux during the next big refactor
18201 need_version=no
18202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18203 soname_spec='$libname$release$shared_ext$major'
18204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18205 shlibpath_var=LD_LIBRARY_PATH
18206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18208 # the default ld.so.conf also contains /usr/contrib/lib and
18209 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18210 # libtool to hard-code these into programs
18211 ;;
18212
18213 cygwin* | mingw* | pw32* | cegcc*)
18214 version_type=windows
18215 shrext_cmds=.dll
18216 need_version=no
18217 need_lib_prefix=no
18218
18219 case $GCC,$cc_basename in
18220 yes,*)
18221 # gcc
18222 library_names_spec='$libname.dll.a'
18223 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18224 postinstall_cmds='base_file=`basename \$file`~
18225 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18226 dldir=$destdir/`dirname \$dlpath`~
18227 test -d \$dldir || mkdir -p \$dldir~
18228 $install_prog $dir/$dlname \$dldir/$dlname~
18229 chmod a+x \$dldir/$dlname~
18230 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18231 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18232 fi'
18233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18234 dlpath=$dir/\$dldll~
18235 $RM \$dlpath'
18236 shlibpath_overrides_runpath=yes
18237
18238 case $host_os in
18239 cygwin*)
18240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18241 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18242
18243 ;;
18244 mingw* | cegcc*)
18245 # MinGW DLLs use traditional 'lib' prefix
18246 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18247 ;;
18248 pw32*)
18249 # pw32 DLLs use 'pw' prefix rather than 'lib'
18250 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18251 ;;
18252 esac
18253 dynamic_linker='Win32 ld.exe'
18254 ;;
18255
18256 *,cl*)
18257 # Native MSVC
18258 libname_spec='$name'
18259 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18260 library_names_spec='$libname.dll.lib'
18261
18262 case $build_os in
18263 mingw*)
18264 sys_lib_search_path_spec=
18265 lt_save_ifs=$IFS
18266 IFS=';'
18267 for lt_path in $LIB
18268 do
18269 IFS=$lt_save_ifs
18270 # Let DOS variable expansion print the short 8.3 style file name.
18271 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18272 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18273 done
18274 IFS=$lt_save_ifs
18275 # Convert to MSYS style.
18276 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18277 ;;
18278 cygwin*)
18279 # Convert to unix form, then to dos form, then back to unix form
18280 # but this time dos style (no spaces!) so that the unix form looks
18281 # like /cygdrive/c/PROGRA~1:/cygdr...
18282 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18283 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18284 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18285 ;;
18286 *)
18287 sys_lib_search_path_spec=$LIB
18288 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18289 # It is most probably a Windows format PATH.
18290 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18291 else
18292 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18293 fi
18294 # FIXME: find the short name or the path components, as spaces are
18295 # common. (e.g. "Program Files" -> "PROGRA~1")
18296 ;;
18297 esac
18298
18299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18300 postinstall_cmds='base_file=`basename \$file`~
18301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18302 dldir=$destdir/`dirname \$dlpath`~
18303 test -d \$dldir || mkdir -p \$dldir~
18304 $install_prog $dir/$dlname \$dldir/$dlname'
18305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18306 dlpath=$dir/\$dldll~
18307 $RM \$dlpath'
18308 shlibpath_overrides_runpath=yes
18309 dynamic_linker='Win32 link.exe'
18310 ;;
18311
18312 *)
18313 # Assume MSVC wrapper
18314 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18315 dynamic_linker='Win32 ld.exe'
18316 ;;
18317 esac
18318 # FIXME: first we should search . and the directory the executable is in
18319 shlibpath_var=PATH
18320 ;;
18321
18322 darwin* | rhapsody*)
18323 dynamic_linker="$host_os dyld"
18324 version_type=darwin
18325 need_lib_prefix=no
18326 need_version=no
18327 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18328 soname_spec='$libname$release$major$shared_ext'
18329 shlibpath_overrides_runpath=yes
18330 shlibpath_var=DYLD_LIBRARY_PATH
18331 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18332
18333 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18334 ;;
18335
18336 dgux*)
18337 version_type=linux # correct to gnu/linux during the next big refactor
18338 need_lib_prefix=no
18339 need_version=no
18340 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18341 soname_spec='$libname$release$shared_ext$major'
18342 shlibpath_var=LD_LIBRARY_PATH
18343 ;;
18344
18345 freebsd* | dragonfly*)
18346 # DragonFly does not have aout. When/if they implement a new
18347 # versioning mechanism, adjust this.
18348 if test -x /usr/bin/objformat; then
18349 objformat=`/usr/bin/objformat`
18350 else
18351 case $host_os in
18352 freebsd[23].*) objformat=aout ;;
18353 *) objformat=elf ;;
18354 esac
18355 fi
18356 version_type=freebsd-$objformat
18357 case $version_type in
18358 freebsd-elf*)
18359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18360 soname_spec='$libname$release$shared_ext$major'
18361 need_version=no
18362 need_lib_prefix=no
18363 ;;
18364 freebsd-*)
18365 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18366 need_version=yes
18367 ;;
18368 esac
18369 shlibpath_var=LD_LIBRARY_PATH
18370 case $host_os in
18371 freebsd2.*)
18372 shlibpath_overrides_runpath=yes
18373 ;;
18374 freebsd3.[01]* | freebsdelf3.[01]*)
18375 shlibpath_overrides_runpath=yes
18376 hardcode_into_libs=yes
18377 ;;
18378 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18379 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18380 shlibpath_overrides_runpath=no
18381 hardcode_into_libs=yes
18382 ;;
18383 *) # from 4.6 on, and DragonFly
18384 shlibpath_overrides_runpath=yes
18385 hardcode_into_libs=yes
18386 ;;
18387 esac
18388 ;;
18389
18390 haiku*)
18391 version_type=linux # correct to gnu/linux during the next big refactor
18392 need_lib_prefix=no
18393 need_version=no
18394 dynamic_linker="$host_os runtime_loader"
18395 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18396 soname_spec='$libname$release$shared_ext$major'
18397 shlibpath_var=LIBRARY_PATH
18398 shlibpath_overrides_runpath=no
18399 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18400 hardcode_into_libs=yes
18401 ;;
18402
18403 hpux9* | hpux10* | hpux11*)
18404 # Give a soname corresponding to the major version so that dld.sl refuses to
18405 # link against other versions.
18406 version_type=sunos
18407 need_lib_prefix=no
18408 need_version=no
18409 case $host_cpu in
18410 ia64*)
18411 shrext_cmds='.so'
18412 hardcode_into_libs=yes
18413 dynamic_linker="$host_os dld.so"
18414 shlibpath_var=LD_LIBRARY_PATH
18415 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18417 soname_spec='$libname$release$shared_ext$major'
18418 if test 32 = "$HPUX_IA64_MODE"; then
18419 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18420 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18421 else
18422 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18423 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18424 fi
18425 ;;
18426 hppa*64*)
18427 shrext_cmds='.sl'
18428 hardcode_into_libs=yes
18429 dynamic_linker="$host_os dld.sl"
18430 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18433 soname_spec='$libname$release$shared_ext$major'
18434 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18436 ;;
18437 *)
18438 shrext_cmds='.sl'
18439 dynamic_linker="$host_os dld.sl"
18440 shlibpath_var=SHLIB_PATH
18441 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18442 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18443 soname_spec='$libname$release$shared_ext$major'
18444 ;;
18445 esac
18446 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18447 postinstall_cmds='chmod 555 $lib'
18448 # or fails outright, so override atomically:
18449 install_override_mode=555
18450 ;;
18451
18452 interix[3-9]*)
18453 version_type=linux # correct to gnu/linux during the next big refactor
18454 need_lib_prefix=no
18455 need_version=no
18456 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18457 soname_spec='$libname$release$shared_ext$major'
18458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18459 shlibpath_var=LD_LIBRARY_PATH
18460 shlibpath_overrides_runpath=no
18461 hardcode_into_libs=yes
18462 ;;
18463
18464 irix5* | irix6* | nonstopux*)
18465 case $host_os in
18466 nonstopux*) version_type=nonstopux ;;
18467 *)
18468 if test yes = "$lt_cv_prog_gnu_ld"; then
18469 version_type=linux # correct to gnu/linux during the next big refactor
18470 else
18471 version_type=irix
18472 fi ;;
18473 esac
18474 need_lib_prefix=no
18475 need_version=no
18476 soname_spec='$libname$release$shared_ext$major'
18477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18478 case $host_os in
18479 irix5* | nonstopux*)
18480 libsuff= shlibsuff=
18481 ;;
18482 *)
18483 case $LD in # libtool.m4 will add one of these switches to LD
18484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18485 libsuff= shlibsuff= libmagic=32-bit;;
18486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18487 libsuff=32 shlibsuff=N32 libmagic=N32;;
18488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18490 *) libsuff= shlibsuff= libmagic=never-match;;
18491 esac
18492 ;;
18493 esac
18494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18495 shlibpath_overrides_runpath=no
18496 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18497 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18498 hardcode_into_libs=yes
18499 ;;
18500
18501 # No shared lib support for Linux oldld, aout, or coff.
18502 linux*oldld* | linux*aout* | linux*coff*)
18503 dynamic_linker=no
18504 ;;
18505
18506 linux*android*)
18507 version_type=none # Android doesn't support versioned libraries.
18508 need_lib_prefix=no
18509 need_version=no
18510 library_names_spec='$libname$release$shared_ext'
18511 soname_spec='$libname$release$shared_ext'
18512 finish_cmds=
18513 shlibpath_var=LD_LIBRARY_PATH
18514 shlibpath_overrides_runpath=yes
18515
18516 # This implies no fast_install, which is unacceptable.
18517 # Some rework will be needed to allow for fast_install
18518 # before this can be enabled.
18519 hardcode_into_libs=yes
18520
18521 dynamic_linker='Android linker'
18522 # Don't embed -rpath directories since the linker doesn't support them.
18523 hardcode_libdir_flag_spec_CXX='-L$libdir'
18524 ;;
18525
18526 # This must be glibc/ELF.
18527 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18528 version_type=linux # correct to gnu/linux during the next big refactor
18529 need_lib_prefix=no
18530 need_version=no
18531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18532 soname_spec='$libname$release$shared_ext$major'
18533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18534 shlibpath_var=LD_LIBRARY_PATH
18535 shlibpath_overrides_runpath=no
18536
18537 # Some binutils ld are patched to set DT_RUNPATH
18538 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18539 $as_echo_n "(cached) " >&6
18540 else
18541 lt_cv_shlibpath_overrides_runpath=no
18542 save_LDFLAGS=$LDFLAGS
18543 save_libdir=$libdir
18544 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18545 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18548
18549 int
18550 main ()
18551 {
18552
18553 ;
18554 return 0;
18555 }
18556 _ACEOF
18557 if ac_fn_cxx_try_link "$LINENO"; then :
18558 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18559 lt_cv_shlibpath_overrides_runpath=yes
18560 fi
18561 fi
18562 rm -f core conftest.err conftest.$ac_objext \
18563 conftest$ac_exeext conftest.$ac_ext
18564 LDFLAGS=$save_LDFLAGS
18565 libdir=$save_libdir
18566
18567 fi
18568
18569 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18570
18571 # This implies no fast_install, which is unacceptable.
18572 # Some rework will be needed to allow for fast_install
18573 # before this can be enabled.
18574 hardcode_into_libs=yes
18575
18576 # Ideally, we could use ldconfig to report *all* directores which are
18577 # searched for libraries, however this is still not possible. Aside from not
18578 # being certain /sbin/ldconfig is available, command
18579 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18580 # even though it is searched at run-time. Try to do the best guess by
18581 # appending ld.so.conf contents (and includes) to the search path.
18582 if test -f /etc/ld.so.conf; then
18583 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' ' '`
18584 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18585 fi
18586
18587 # We used to test for /lib/ld.so.1 and disable shared libraries on
18588 # powerpc, because MkLinux only supported shared libraries with the
18589 # GNU dynamic linker. Since this was broken with cross compilers,
18590 # most powerpc-linux boxes support dynamic linking these days and
18591 # people can always --disable-shared, the test was removed, and we
18592 # assume the GNU/Linux dynamic linker is in use.
18593 dynamic_linker='GNU/Linux ld.so'
18594 ;;
18595
18596 netbsd*)
18597 version_type=sunos
18598 need_lib_prefix=no
18599 need_version=no
18600 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18601 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18603 dynamic_linker='NetBSD (a.out) ld.so'
18604 else
18605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18606 soname_spec='$libname$release$shared_ext$major'
18607 dynamic_linker='NetBSD ld.elf_so'
18608 fi
18609 shlibpath_var=LD_LIBRARY_PATH
18610 shlibpath_overrides_runpath=yes
18611 hardcode_into_libs=yes
18612 ;;
18613
18614 newsos6)
18615 version_type=linux # correct to gnu/linux during the next big refactor
18616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18617 shlibpath_var=LD_LIBRARY_PATH
18618 shlibpath_overrides_runpath=yes
18619 ;;
18620
18621 *nto* | *qnx*)
18622 version_type=qnx
18623 need_lib_prefix=no
18624 need_version=no
18625 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18626 soname_spec='$libname$release$shared_ext$major'
18627 shlibpath_var=LD_LIBRARY_PATH
18628 shlibpath_overrides_runpath=no
18629 hardcode_into_libs=yes
18630 dynamic_linker='ldqnx.so'
18631 ;;
18632
18633 openbsd* | bitrig*)
18634 version_type=sunos
18635 sys_lib_dlsearch_path_spec=/usr/lib
18636 need_lib_prefix=no
18637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18638 need_version=no
18639 else
18640 need_version=yes
18641 fi
18642 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18643 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18644 shlibpath_var=LD_LIBRARY_PATH
18645 shlibpath_overrides_runpath=yes
18646 ;;
18647
18648 os2*)
18649 libname_spec='$name'
18650 version_type=windows
18651 shrext_cmds=.dll
18652 need_version=no
18653 need_lib_prefix=no
18654 # OS/2 can only load a DLL with a base name of 8 characters or less.
18655 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18656 v=$($ECHO $release$versuffix | tr -d .-);
18657 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18658 $ECHO $n$v`$shared_ext'
18659 library_names_spec='${libname}_dll.$libext'
18660 dynamic_linker='OS/2 ld.exe'
18661 shlibpath_var=BEGINLIBPATH
18662 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18664 postinstall_cmds='base_file=`basename \$file`~
18665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18666 dldir=$destdir/`dirname \$dlpath`~
18667 test -d \$dldir || mkdir -p \$dldir~
18668 $install_prog $dir/$dlname \$dldir/$dlname~
18669 chmod a+x \$dldir/$dlname~
18670 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18671 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18672 fi'
18673 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18674 dlpath=$dir/\$dldll~
18675 $RM \$dlpath'
18676 ;;
18677
18678 osf3* | osf4* | osf5*)
18679 version_type=osf
18680 need_lib_prefix=no
18681 need_version=no
18682 soname_spec='$libname$release$shared_ext$major'
18683 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18684 shlibpath_var=LD_LIBRARY_PATH
18685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18687 ;;
18688
18689 rdos*)
18690 dynamic_linker=no
18691 ;;
18692
18693 solaris*)
18694 version_type=linux # correct to gnu/linux during the next big refactor
18695 need_lib_prefix=no
18696 need_version=no
18697 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18698 soname_spec='$libname$release$shared_ext$major'
18699 shlibpath_var=LD_LIBRARY_PATH
18700 shlibpath_overrides_runpath=yes
18701 hardcode_into_libs=yes
18702 # ldd complains unless libraries are executable
18703 postinstall_cmds='chmod +x $lib'
18704 ;;
18705
18706 sunos4*)
18707 version_type=sunos
18708 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18709 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18710 shlibpath_var=LD_LIBRARY_PATH
18711 shlibpath_overrides_runpath=yes
18712 if test yes = "$with_gnu_ld"; then
18713 need_lib_prefix=no
18714 fi
18715 need_version=yes
18716 ;;
18717
18718 sysv4 | sysv4.3*)
18719 version_type=linux # correct to gnu/linux during the next big refactor
18720 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18721 soname_spec='$libname$release$shared_ext$major'
18722 shlibpath_var=LD_LIBRARY_PATH
18723 case $host_vendor in
18724 sni)
18725 shlibpath_overrides_runpath=no
18726 need_lib_prefix=no
18727 runpath_var=LD_RUN_PATH
18728 ;;
18729 siemens)
18730 need_lib_prefix=no
18731 ;;
18732 motorola)
18733 need_lib_prefix=no
18734 need_version=no
18735 shlibpath_overrides_runpath=no
18736 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18737 ;;
18738 esac
18739 ;;
18740
18741 sysv4*MP*)
18742 if test -d /usr/nec; then
18743 version_type=linux # correct to gnu/linux during the next big refactor
18744 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18745 soname_spec='$libname$shared_ext.$major'
18746 shlibpath_var=LD_LIBRARY_PATH
18747 fi
18748 ;;
18749
18750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18751 version_type=sco
18752 need_lib_prefix=no
18753 need_version=no
18754 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18755 soname_spec='$libname$release$shared_ext$major'
18756 shlibpath_var=LD_LIBRARY_PATH
18757 shlibpath_overrides_runpath=yes
18758 hardcode_into_libs=yes
18759 if test yes = "$with_gnu_ld"; then
18760 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18761 else
18762 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18763 case $host_os in
18764 sco3.2v5*)
18765 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18766 ;;
18767 esac
18768 fi
18769 sys_lib_dlsearch_path_spec='/usr/lib'
18770 ;;
18771
18772 tpf*)
18773 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18774 version_type=linux # correct to gnu/linux during the next big refactor
18775 need_lib_prefix=no
18776 need_version=no
18777 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18778 shlibpath_var=LD_LIBRARY_PATH
18779 shlibpath_overrides_runpath=no
18780 hardcode_into_libs=yes
18781 ;;
18782
18783 uts4*)
18784 version_type=linux # correct to gnu/linux during the next big refactor
18785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18786 soname_spec='$libname$release$shared_ext$major'
18787 shlibpath_var=LD_LIBRARY_PATH
18788 ;;
18789
18790 *)
18791 dynamic_linker=no
18792 ;;
18793 esac
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18795 $as_echo "$dynamic_linker" >&6; }
18796 test no = "$dynamic_linker" && can_build_shared=no
18797
18798 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18799 if test yes = "$GCC"; then
18800 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18801 fi
18802
18803 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18804 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18805 fi
18806
18807 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18808 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18809 fi
18810
18811 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18812 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18813
18814 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18815 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18816
18817 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18818 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833
18834
18835
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847
18848
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18860 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18861 hardcode_action_CXX=
18862 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18863 test -n "$runpath_var_CXX" ||
18864 test yes = "$hardcode_automatic_CXX"; then
18865
18866 # We can hardcode non-existent directories.
18867 if test no != "$hardcode_direct_CXX" &&
18868 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18869 # have to relink, otherwise we might link with an installed library
18870 # when we should be linking with a yet-to-be-installed one
18871 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18872 test no != "$hardcode_minus_L_CXX"; then
18873 # Linking always hardcodes the temporary library directory.
18874 hardcode_action_CXX=relink
18875 else
18876 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18877 hardcode_action_CXX=immediate
18878 fi
18879 else
18880 # We cannot hardcode anything, or else we can only hardcode existing
18881 # directories.
18882 hardcode_action_CXX=unsupported
18883 fi
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18885 $as_echo "$hardcode_action_CXX" >&6; }
18886
18887 if test relink = "$hardcode_action_CXX" ||
18888 test yes = "$inherit_rpath_CXX"; then
18889 # Fast installation is not supported
18890 enable_fast_install=no
18891 elif test yes = "$shlibpath_overrides_runpath" ||
18892 test no = "$enable_shared"; then
18893 # Fast installation is not necessary
18894 enable_fast_install=needless
18895 fi
18896
18897
18898
18899
18900
18901
18902
18903 fi # test -n "$compiler"
18904
18905 CC=$lt_save_CC
18906 CFLAGS=$lt_save_CFLAGS
18907 LDCXX=$LD
18908 LD=$lt_save_LD
18909 GCC=$lt_save_GCC
18910 with_gnu_ld=$lt_save_with_gnu_ld
18911 lt_cv_path_LDCXX=$lt_cv_path_LD
18912 lt_cv_path_LD=$lt_save_path_LD
18913 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18914 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18915 fi # test yes != "$_lt_caught_CXX_error"
18916
18917 ac_ext=c
18918 ac_cpp='$CPP $CPPFLAGS'
18919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18922
18923
18924
18925
18926
18927
18928
18929
18930
18931
18932
18933
18934
18935
18936
18937 ac_config_commands="$ac_config_commands libtool"
18938
18939
18940
18941
18942 # Only expand once:
18943
18944
18945
18946 # Generate the makefiles
18947 ac_config_files="$ac_config_files Makefile softhsm2.module src/Makefile src/lib/Makefile src/lib/common/Makefile src/lib/common/softhsm2.conf src/lib/common/softhsm2.conf.5 src/lib/crypto/Makefile src/lib/crypto/test/Makefile src/lib/data_mgr/Makefile src/lib/data_mgr/test/Makefile src/lib/object_store/Makefile src/lib/object_store/test/Makefile src/lib/session_mgr/Makefile src/lib/session_mgr/test/Makefile src/lib/slot_mgr/Makefile src/lib/slot_mgr/test/Makefile src/lib/handle_mgr/Makefile src/lib/handle_mgr/test/Makefile src/lib/test/Makefile src/lib/test/softhsm2.conf src/lib/test/softhsm2-alt.conf src/lib/test/softhsm2-reset-on-fork.conf src/lib/test/softhsm2-mech.conf src/lib/test/tokens/dummy src/bin/Makefile src/bin/common/Makefile src/bin/dump/Makefile src/bin/keyconv/Makefile src/bin/migrate/Makefile src/bin/util/Makefile"
18948
18949
18950 cat >confcache <<\_ACEOF
18951 # This file is a shell script that caches the results of configure
18952 # tests run on this system so they can be shared between configure
18953 # scripts and configure runs, see configure's option --config-cache.
18954 # It is not useful on other systems. If it contains results you don't
18955 # want to keep, you may remove or edit it.
18956 #
18957 # config.status only pays attention to the cache file if you give it
18958 # the --recheck option to rerun configure.
18959 #
18960 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18961 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18962 # following values.
18963
18964 _ACEOF
18965
18966 # The following way of writing the cache mishandles newlines in values,
18967 # but we know of no workaround that is simple, portable, and efficient.
18968 # So, we kill variables containing newlines.
18969 # Ultrix sh set writes to stderr and can't be redirected directly,
18970 # and sets the high bit in the cache file unless we assign to the vars.
18971 (
18972 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18973 eval ac_val=\$$ac_var
18974 case $ac_val in #(
18975 *${as_nl}*)
18976 case $ac_var in #(
18977 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18978 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18979 esac
18980 case $ac_var in #(
18981 _ | IFS | as_nl) ;; #(
18982 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18983 *) { eval $ac_var=; unset $ac_var;} ;;
18984 esac ;;
18985 esac
18986 done
18987
18988 (set) 2>&1 |
18989 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18990 *${as_nl}ac_space=\ *)
18991 # `set' does not quote correctly, so add quotes: double-quote
18992 # substitution turns \\\\ into \\, and sed turns \\ into \.
18993 sed -n \
18994 "s/'/'\\\\''/g;
18995 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18996 ;; #(
18997 *)
18998 # `set' quotes correctly as required by POSIX, so do not add quotes.
18999 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19000 ;;
19001 esac |
19002 sort
19003 ) |
19004 sed '
19005 /^ac_cv_env_/b end
19006 t clear
19007 :clear
19008 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19009 t end
19010 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19011 :end' >>confcache
19012 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19013 if test -w "$cache_file"; then
19014 if test "x$cache_file" != "x/dev/null"; then
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19016 $as_echo "$as_me: updating cache $cache_file" >&6;}
19017 if test ! -f "$cache_file" || test -h "$cache_file"; then
19018 cat confcache >"$cache_file"
19019 else
19020 case $cache_file in #(
19021 */* | ?:*)
19022 mv -f confcache "$cache_file"$$ &&
19023 mv -f "$cache_file"$$ "$cache_file" ;; #(
19024 *)
19025 mv -f confcache "$cache_file" ;;
19026 esac
19027 fi
19028 fi
19029 else
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19031 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19032 fi
19033 fi
19034 rm -f confcache
19035
19036 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19037 # Let make expand exec_prefix.
19038 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19039
19040 DEFS=-DHAVE_CONFIG_H
19041
19042 ac_libobjs=
19043 ac_ltlibobjs=
19044 U=
19045 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19046 # 1. Remove the extension, and $U if already installed.
19047 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19048 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19049 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19050 # will be set to the directory where LIBOBJS objects are built.
19051 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19052 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19053 done
19054 LIBOBJS=$ac_libobjs
19055
19056 LTLIBOBJS=$ac_ltlibobjs
19057
19058
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19060 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19061 if test -n "$am_sleep_pid"; then
19062 # Hide warnings about reused PIDs.
19063 wait $am_sleep_pid 2>/dev/null
19064 fi
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19066 $as_echo "done" >&6; }
19067 if test -n "$EXEEXT"; then
19068 am__EXEEXT_TRUE=
19069 am__EXEEXT_FALSE='#'
19070 else
19071 am__EXEEXT_TRUE='#'
19072 am__EXEEXT_FALSE=
19073 fi
19074
19075 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19076 as_fn_error $? "conditional \"AMDEP\" was never defined.
19077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19078 fi
19079 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19080 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19082 fi
19083 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19084 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19086 fi
19087 if test -z "${WITH_ECC_TRUE}" && test -z "${WITH_ECC_FALSE}"; then
19088 as_fn_error $? "conditional \"WITH_ECC\" was never defined.
19089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19090 fi
19091 if test -z "${WITH_GOST_TRUE}" && test -z "${WITH_GOST_FALSE}"; then
19092 as_fn_error $? "conditional \"WITH_GOST\" was never defined.
19093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19094 fi
19095 if test -z "${WITH_EDDSA_TRUE}" && test -z "${WITH_EDDSA_FALSE}"; then
19096 as_fn_error $? "conditional \"WITH_EDDSA\" was never defined.
19097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19098 fi
19099 if test -z "${WITH_OPENSSL_TRUE}" && test -z "${WITH_OPENSSL_FALSE}"; then
19100 as_fn_error $? "conditional \"WITH_OPENSSL\" was never defined.
19101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19102 fi
19103 if test -z "${WITH_BOTAN_TRUE}" && test -z "${WITH_BOTAN_FALSE}"; then
19104 as_fn_error $? "conditional \"WITH_BOTAN\" was never defined.
19105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19106 fi
19107 if test -z "${BUILD_MIGRATE_TRUE}" && test -z "${BUILD_MIGRATE_FALSE}"; then
19108 as_fn_error $? "conditional \"BUILD_MIGRATE\" was never defined.
19109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19110 fi
19111 if test -z "${BUILD_OBJECTSTORE_BACKEND_DB_TRUE}" && test -z "${BUILD_OBJECTSTORE_BACKEND_DB_FALSE}"; then
19112 as_fn_error $? "conditional \"BUILD_OBJECTSTORE_BACKEND_DB\" was never defined.
19113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19114 fi
19115 if test -z "${WITH_P11KIT_TRUE}" && test -z "${WITH_P11KIT_FALSE}"; then
19116 as_fn_error $? "conditional \"WITH_P11KIT\" was never defined.
19117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19118 fi
19119
19120 : "${CONFIG_STATUS=./config.status}"
19121 ac_write_fail=0
19122 ac_clean_files_save=$ac_clean_files
19123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19125 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19126 as_write_fail=0
19127 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19128 #! $SHELL
19129 # Generated by $as_me.
19130 # Run this file to recreate the current configuration.
19131 # Compiler output produced by configure, useful for debugging
19132 # configure, is in config.log if it exists.
19133
19134 debug=false
19135 ac_cs_recheck=false
19136 ac_cs_silent=false
19137
19138 SHELL=\${CONFIG_SHELL-$SHELL}
19139 export SHELL
19140 _ASEOF
19141 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19142 ## -------------------- ##
19143 ## M4sh Initialization. ##
19144 ## -------------------- ##
19145
19146 # Be more Bourne compatible
19147 DUALCASE=1; export DUALCASE # for MKS sh
19148 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19149 emulate sh
19150 NULLCMD=:
19151 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19152 # is contrary to our usage. Disable this feature.
19153 alias -g '${1+"$@"}'='"$@"'
19154 setopt NO_GLOB_SUBST
19155 else
19156 case `(set -o) 2>/dev/null` in #(
19157 *posix*) :
19158 set -o posix ;; #(
19159 *) :
19160 ;;
19161 esac
19162 fi
19163
19164
19165 as_nl='
19166 '
19167 export as_nl
19168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19169 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19172 # Prefer a ksh shell builtin over an external printf program on Solaris,
19173 # but without wasting forks for bash or zsh.
19174 if test -z "$BASH_VERSION$ZSH_VERSION" \
19175 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19176 as_echo='print -r --'
19177 as_echo_n='print -rn --'
19178 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19179 as_echo='printf %s\n'
19180 as_echo_n='printf %s'
19181 else
19182 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19183 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19184 as_echo_n='/usr/ucb/echo -n'
19185 else
19186 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19187 as_echo_n_body='eval
19188 arg=$1;
19189 case $arg in #(
19190 *"$as_nl"*)
19191 expr "X$arg" : "X\\(.*\\)$as_nl";
19192 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19193 esac;
19194 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19195 '
19196 export as_echo_n_body
19197 as_echo_n='sh -c $as_echo_n_body as_echo'
19198 fi
19199 export as_echo_body
19200 as_echo='sh -c $as_echo_body as_echo'
19201 fi
19202
19203 # The user is always right.
19204 if test "${PATH_SEPARATOR+set}" != set; then
19205 PATH_SEPARATOR=:
19206 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19207 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19208 PATH_SEPARATOR=';'
19209 }
19210 fi
19211
19212
19213 # IFS
19214 # We need space, tab and new line, in precisely that order. Quoting is
19215 # there to prevent editors from complaining about space-tab.
19216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19217 # splitting by setting IFS to empty value.)
19218 IFS=" "" $as_nl"
19219
19220 # Find who we are. Look in the path if we contain no directory separator.
19221 as_myself=
19222 case $0 in #((
19223 *[\\/]* ) as_myself=$0 ;;
19224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19225 for as_dir in $PATH
19226 do
19227 IFS=$as_save_IFS
19228 test -z "$as_dir" && as_dir=.
19229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19230 done
19231 IFS=$as_save_IFS
19232
19233 ;;
19234 esac
19235 # We did not find ourselves, most probably we were run as `sh COMMAND'
19236 # in which case we are not to be found in the path.
19237 if test "x$as_myself" = x; then
19238 as_myself=$0
19239 fi
19240 if test ! -f "$as_myself"; then
19241 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19242 exit 1
19243 fi
19244
19245 # Unset variables that we do not need and which cause bugs (e.g. in
19246 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19247 # suppresses any "Segmentation fault" message there. '((' could
19248 # trigger a bug in pdksh 5.2.14.
19249 for as_var in BASH_ENV ENV MAIL MAILPATH
19250 do eval test x\${$as_var+set} = xset \
19251 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19252 done
19253 PS1='$ '
19254 PS2='> '
19255 PS4='+ '
19256
19257 # NLS nuisances.
19258 LC_ALL=C
19259 export LC_ALL
19260 LANGUAGE=C
19261 export LANGUAGE
19262
19263 # CDPATH.
19264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19265
19266
19267 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19268 # ----------------------------------------
19269 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19270 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19271 # script with STATUS, using 1 if that was 0.
19272 as_fn_error ()
19273 {
19274 as_status=$1; test $as_status -eq 0 && as_status=1
19275 if test "$4"; then
19276 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19277 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19278 fi
19279 $as_echo "$as_me: error: $2" >&2
19280 as_fn_exit $as_status
19281 } # as_fn_error
19282
19283
19284 # as_fn_set_status STATUS
19285 # -----------------------
19286 # Set $? to STATUS, without forking.
19287 as_fn_set_status ()
19288 {
19289 return $1
19290 } # as_fn_set_status
19291
19292 # as_fn_exit STATUS
19293 # -----------------
19294 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19295 as_fn_exit ()
19296 {
19297 set +e
19298 as_fn_set_status $1
19299 exit $1
19300 } # as_fn_exit
19301
19302 # as_fn_unset VAR
19303 # ---------------
19304 # Portably unset VAR.
19305 as_fn_unset ()
19306 {
19307 { eval $1=; unset $1;}
19308 }
19309 as_unset=as_fn_unset
19310 # as_fn_append VAR VALUE
19311 # ----------------------
19312 # Append the text in VALUE to the end of the definition contained in VAR. Take
19313 # advantage of any shell optimizations that allow amortized linear growth over
19314 # repeated appends, instead of the typical quadratic growth present in naive
19315 # implementations.
19316 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19317 eval 'as_fn_append ()
19318 {
19319 eval $1+=\$2
19320 }'
19321 else
19322 as_fn_append ()
19323 {
19324 eval $1=\$$1\$2
19325 }
19326 fi # as_fn_append
19327
19328 # as_fn_arith ARG...
19329 # ------------------
19330 # Perform arithmetic evaluation on the ARGs, and store the result in the
19331 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19332 # must be portable across $(()) and expr.
19333 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19334 eval 'as_fn_arith ()
19335 {
19336 as_val=$(( $* ))
19337 }'
19338 else
19339 as_fn_arith ()
19340 {
19341 as_val=`expr "$@" || test $? -eq 1`
19342 }
19343 fi # as_fn_arith
19344
19345
19346 if expr a : '\(a\)' >/dev/null 2>&1 &&
19347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19348 as_expr=expr
19349 else
19350 as_expr=false
19351 fi
19352
19353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19354 as_basename=basename
19355 else
19356 as_basename=false
19357 fi
19358
19359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19360 as_dirname=dirname
19361 else
19362 as_dirname=false
19363 fi
19364
19365 as_me=`$as_basename -- "$0" ||
19366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19367 X"$0" : 'X\(//\)$' \| \
19368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19369 $as_echo X/"$0" |
19370 sed '/^.*\/\([^/][^/]*\)\/*$/{
19371 s//\1/
19372 q
19373 }
19374 /^X\/\(\/\/\)$/{
19375 s//\1/
19376 q
19377 }
19378 /^X\/\(\/\).*/{
19379 s//\1/
19380 q
19381 }
19382 s/.*/./; q'`
19383
19384 # Avoid depending upon Character Ranges.
19385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19388 as_cr_digits='0123456789'
19389 as_cr_alnum=$as_cr_Letters$as_cr_digits
19390
19391 ECHO_C= ECHO_N= ECHO_T=
19392 case `echo -n x` in #(((((
19393 -n*)
19394 case `echo 'xy\c'` in
19395 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19396 xy) ECHO_C='\c';;
19397 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19398 ECHO_T=' ';;
19399 esac;;
19400 *)
19401 ECHO_N='-n';;
19402 esac
19403
19404 rm -f conf$$ conf$$.exe conf$$.file
19405 if test -d conf$$.dir; then
19406 rm -f conf$$.dir/conf$$.file
19407 else
19408 rm -f conf$$.dir
19409 mkdir conf$$.dir 2>/dev/null
19410 fi
19411 if (echo >conf$$.file) 2>/dev/null; then
19412 if ln -s conf$$.file conf$$ 2>/dev/null; then
19413 as_ln_s='ln -s'
19414 # ... but there are two gotchas:
19415 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19416 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19417 # In both cases, we have to default to `cp -pR'.
19418 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19419 as_ln_s='cp -pR'
19420 elif ln conf$$.file conf$$ 2>/dev/null; then
19421 as_ln_s=ln
19422 else
19423 as_ln_s='cp -pR'
19424 fi
19425 else
19426 as_ln_s='cp -pR'
19427 fi
19428 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19429 rmdir conf$$.dir 2>/dev/null
19430
19431
19432 # as_fn_mkdir_p
19433 # -------------
19434 # Create "$as_dir" as a directory, including parents if necessary.
19435 as_fn_mkdir_p ()
19436 {
19437
19438 case $as_dir in #(
19439 -*) as_dir=./$as_dir;;
19440 esac
19441 test -d "$as_dir" || eval $as_mkdir_p || {
19442 as_dirs=
19443 while :; do
19444 case $as_dir in #(
19445 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19446 *) as_qdir=$as_dir;;
19447 esac
19448 as_dirs="'$as_qdir' $as_dirs"
19449 as_dir=`$as_dirname -- "$as_dir" ||
19450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19451 X"$as_dir" : 'X\(//\)[^/]' \| \
19452 X"$as_dir" : 'X\(//\)$' \| \
19453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19454 $as_echo X"$as_dir" |
19455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19456 s//\1/
19457 q
19458 }
19459 /^X\(\/\/\)[^/].*/{
19460 s//\1/
19461 q
19462 }
19463 /^X\(\/\/\)$/{
19464 s//\1/
19465 q
19466 }
19467 /^X\(\/\).*/{
19468 s//\1/
19469 q
19470 }
19471 s/.*/./; q'`
19472 test -d "$as_dir" && break
19473 done
19474 test -z "$as_dirs" || eval "mkdir $as_dirs"
19475 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19476
19477
19478 } # as_fn_mkdir_p
19479 if mkdir -p . 2>/dev/null; then
19480 as_mkdir_p='mkdir -p "$as_dir"'
19481 else
19482 test -d ./-p && rmdir ./-p
19483 as_mkdir_p=false
19484 fi
19485
19486
19487 # as_fn_executable_p FILE
19488 # -----------------------
19489 # Test if FILE is an executable regular file.
19490 as_fn_executable_p ()
19491 {
19492 test -f "$1" && test -x "$1"
19493 } # as_fn_executable_p
19494 as_test_x='test -x'
19495 as_executable_p=as_fn_executable_p
19496
19497 # Sed expression to map a string onto a valid CPP name.
19498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19499
19500 # Sed expression to map a string onto a valid variable name.
19501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19502
19503
19504 exec 6>&1
19505 ## ----------------------------------- ##
19506 ## Main body of $CONFIG_STATUS script. ##
19507 ## ----------------------------------- ##
19508 _ASEOF
19509 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19510
19511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19512 # Save the log message, to keep $0 and so on meaningful, and to
19513 # report actual input values of CONFIG_FILES etc. instead of their
19514 # values after options handling.
19515 ac_log="
19516 This file was extended by SoftHSM $as_me 2.6.1, which was
19517 generated by GNU Autoconf 2.69. Invocation command line was
19518
19519 CONFIG_FILES = $CONFIG_FILES
19520 CONFIG_HEADERS = $CONFIG_HEADERS
19521 CONFIG_LINKS = $CONFIG_LINKS
19522 CONFIG_COMMANDS = $CONFIG_COMMANDS
19523 $ $0 $@
19524
19525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19526 "
19527
19528 _ACEOF
19529
19530 case $ac_config_files in *"
19531 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19532 esac
19533
19534 case $ac_config_headers in *"
19535 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19536 esac
19537
19538
19539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19540 # Files that config.status was made for.
19541 config_files="$ac_config_files"
19542 config_headers="$ac_config_headers"
19543 config_commands="$ac_config_commands"
19544
19545 _ACEOF
19546
19547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19548 ac_cs_usage="\
19549 \`$as_me' instantiates files and other configuration actions
19550 from templates according to the current configuration. Unless the files
19551 and actions are specified as TAGs, all are instantiated by default.
19552
19553 Usage: $0 [OPTION]... [TAG]...
19554
19555 -h, --help print this help, then exit
19556 -V, --version print version number and configuration settings, then exit
19557 --config print configuration, then exit
19558 -q, --quiet, --silent
19559 do not print progress messages
19560 -d, --debug don't remove temporary files
19561 --recheck update $as_me by reconfiguring in the same conditions
19562 --file=FILE[:TEMPLATE]
19563 instantiate the configuration file FILE
19564 --header=FILE[:TEMPLATE]
19565 instantiate the configuration header FILE
19566
19567 Configuration files:
19568 $config_files
19569
19570 Configuration headers:
19571 $config_headers
19572
19573 Configuration commands:
19574 $config_commands
19575
19576 Report bugs to the package provider."
19577
19578 _ACEOF
19579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19580 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19581 ac_cs_version="\\
19582 SoftHSM config.status 2.6.1
19583 configured by $0, generated by GNU Autoconf 2.69,
19584 with options \\"\$ac_cs_config\\"
19585
19586 Copyright (C) 2012 Free Software Foundation, Inc.
19587 This config.status script is free software; the Free Software Foundation
19588 gives unlimited permission to copy, distribute and modify it."
19589
19590 ac_pwd='$ac_pwd'
19591 srcdir='$srcdir'
19592 INSTALL='$INSTALL'
19593 MKDIR_P='$MKDIR_P'
19594 AWK='$AWK'
19595 test -n "\$AWK" || AWK=awk
19596 _ACEOF
19597
19598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19599 # The default lists apply if the user does not specify any file.
19600 ac_need_defaults=:
19601 while test $# != 0
19602 do
19603 case $1 in
19604 --*=?*)
19605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19607 ac_shift=:
19608 ;;
19609 --*=)
19610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19611 ac_optarg=
19612 ac_shift=:
19613 ;;
19614 *)
19615 ac_option=$1
19616 ac_optarg=$2
19617 ac_shift=shift
19618 ;;
19619 esac
19620
19621 case $ac_option in
19622 # Handling of the options.
19623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19624 ac_cs_recheck=: ;;
19625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19626 $as_echo "$ac_cs_version"; exit ;;
19627 --config | --confi | --conf | --con | --co | --c )
19628 $as_echo "$ac_cs_config"; exit ;;
19629 --debug | --debu | --deb | --de | --d | -d )
19630 debug=: ;;
19631 --file | --fil | --fi | --f )
19632 $ac_shift
19633 case $ac_optarg in
19634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19635 '') as_fn_error $? "missing file argument" ;;
19636 esac
19637 as_fn_append CONFIG_FILES " '$ac_optarg'"
19638 ac_need_defaults=false;;
19639 --header | --heade | --head | --hea )
19640 $ac_shift
19641 case $ac_optarg in
19642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19643 esac
19644 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19645 ac_need_defaults=false;;
19646 --he | --h)
19647 # Conflict between --help and --header
19648 as_fn_error $? "ambiguous option: \`$1'
19649 Try \`$0 --help' for more information.";;
19650 --help | --hel | -h )
19651 $as_echo "$ac_cs_usage"; exit ;;
19652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19654 ac_cs_silent=: ;;
19655
19656 # This is an error.
19657 -*) as_fn_error $? "unrecognized option: \`$1'
19658 Try \`$0 --help' for more information." ;;
19659
19660 *) as_fn_append ac_config_targets " $1"
19661 ac_need_defaults=false ;;
19662
19663 esac
19664 shift
19665 done
19666
19667 ac_configure_extra_args=
19668
19669 if $ac_cs_silent; then
19670 exec 6>/dev/null
19671 ac_configure_extra_args="$ac_configure_extra_args --silent"
19672 fi
19673
19674 _ACEOF
19675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19676 if \$ac_cs_recheck; then
19677 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19678 shift
19679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19680 CONFIG_SHELL='$SHELL'
19681 export CONFIG_SHELL
19682 exec "\$@"
19683 fi
19684
19685 _ACEOF
19686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19687 exec 5>>config.log
19688 {
19689 echo
19690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19691 ## Running $as_me. ##
19692 _ASBOX
19693 $as_echo "$ac_log"
19694 } >&5
19695
19696 _ACEOF
19697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19698 #
19699 # INIT-COMMANDS
19700 #
19701 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19702
19703
19704 # The HP-UX ksh and POSIX shell print the target directory to stdout
19705 # if CDPATH is set.
19706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19707
19708 sed_quote_subst='$sed_quote_subst'
19709 double_quote_subst='$double_quote_subst'
19710 delay_variable_subst='$delay_variable_subst'
19711 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19712 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19713 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19714 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19715 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19716 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19717 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19718 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19719 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19720 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19721 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19722 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19723 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19724 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19725 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19726 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19727 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19728 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19729 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19730 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19731 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19732 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19733 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19734 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19735 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19736 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19737 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19738 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19739 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19740 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19741 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19742 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19743 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19744 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19745 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19746 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19747 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19748 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19749 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19750 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19751 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19752 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19753 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19754 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19755 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19756 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19757 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19758 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19759 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19760 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19761 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19762 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19763 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19764 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19765 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19766 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19767 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19768 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19769 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"`'
19770 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19771 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19772 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19773 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19774 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19775 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19776 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19777 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19778 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19779 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
19780 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
19781 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
19782 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
19783 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
19784 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
19785 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
19786 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
19787 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
19788 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
19789 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
19790 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19791 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
19792 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
19793 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
19794 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
19795 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
19796 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
19797 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
19798 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
19799 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19800 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
19801 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
19802 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
19803 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
19804 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
19805 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
19806 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
19807 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
19808 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
19809 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
19810 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
19811 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
19812 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
19813 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
19814 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
19815 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
19816 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
19817 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
19818 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
19819 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
19820 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
19821 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
19822 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
19823 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
19824 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
19825 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
19826 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
19827 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
19828 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
19829 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
19830 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
19831 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
19832 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19833 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19834 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
19835 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
19836 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
19837 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
19838 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
19839 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
19840 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
19841 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
19842 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
19843 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
19844 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
19845 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
19846 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
19847 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
19848 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
19849 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
19850 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
19851 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
19852 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
19853 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
19854 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19855 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19856 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
19857 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
19858 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
19859 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
19860 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
19861 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
19862 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
19863 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
19864 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
19865 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19866 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19867 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
19868 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19869 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19870 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19871 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19872 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19873 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19874 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
19875 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19876 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
19877 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
19878 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
19879 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
19880 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
19881 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
19882 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
19883 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
19884 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
19885 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
19886 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
19887 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19888 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19889 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
19890 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19891 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
19892 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
19893 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
19894 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
19895 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19896 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
19897 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
19898 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
19899 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
19900
19901 LTCC='$LTCC'
19902 LTCFLAGS='$LTCFLAGS'
19903 compiler='$compiler_DEFAULT'
19904
19905 # A function that is used when there is no print builtin or printf.
19906 func_fallback_echo ()
19907 {
19908 eval 'cat <<_LTECHO_EOF
19909 \$1
19910 _LTECHO_EOF'
19911 }
19912
19913 # Quote evaled strings.
19914 for var in SHELL \
19915 ECHO \
19916 PATH_SEPARATOR \
19917 SED \
19918 GREP \
19919 EGREP \
19920 FGREP \
19921 LD \
19922 NM \
19923 LN_S \
19924 lt_SP2NL \
19925 lt_NL2SP \
19926 reload_flag \
19927 OBJDUMP \
19928 deplibs_check_method \
19929 file_magic_cmd \
19930 file_magic_glob \
19931 want_nocaseglob \
19932 DLLTOOL \
19933 sharedlib_from_linklib_cmd \
19934 AR \
19935 AR_FLAGS \
19936 archiver_list_spec \
19937 STRIP \
19938 RANLIB \
19939 CC \
19940 CFLAGS \
19941 compiler \
19942 lt_cv_sys_global_symbol_pipe \
19943 lt_cv_sys_global_symbol_to_cdecl \
19944 lt_cv_sys_global_symbol_to_import \
19945 lt_cv_sys_global_symbol_to_c_name_address \
19946 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19947 lt_cv_nm_interface \
19948 nm_file_list_spec \
19949 lt_cv_truncate_bin \
19950 lt_prog_compiler_no_builtin_flag \
19951 lt_prog_compiler_pic \
19952 lt_prog_compiler_wl \
19953 lt_prog_compiler_static \
19954 lt_cv_prog_compiler_c_o \
19955 need_locks \
19956 MANIFEST_TOOL \
19957 DSYMUTIL \
19958 NMEDIT \
19959 LIPO \
19960 OTOOL \
19961 OTOOL64 \
19962 shrext_cmds \
19963 export_dynamic_flag_spec \
19964 whole_archive_flag_spec \
19965 compiler_needs_object \
19966 with_gnu_ld \
19967 allow_undefined_flag \
19968 no_undefined_flag \
19969 hardcode_libdir_flag_spec \
19970 hardcode_libdir_separator \
19971 exclude_expsyms \
19972 include_expsyms \
19973 file_list_spec \
19974 variables_saved_for_relink \
19975 libname_spec \
19976 library_names_spec \
19977 soname_spec \
19978 install_override_mode \
19979 finish_eval \
19980 old_striplib \
19981 striplib \
19982 compiler_lib_search_dirs \
19983 predep_objects \
19984 postdep_objects \
19985 predeps \
19986 postdeps \
19987 compiler_lib_search_path \
19988 LD_CXX \
19989 reload_flag_CXX \
19990 compiler_CXX \
19991 lt_prog_compiler_no_builtin_flag_CXX \
19992 lt_prog_compiler_pic_CXX \
19993 lt_prog_compiler_wl_CXX \
19994 lt_prog_compiler_static_CXX \
19995 lt_cv_prog_compiler_c_o_CXX \
19996 export_dynamic_flag_spec_CXX \
19997 whole_archive_flag_spec_CXX \
19998 compiler_needs_object_CXX \
19999 with_gnu_ld_CXX \
20000 allow_undefined_flag_CXX \
20001 no_undefined_flag_CXX \
20002 hardcode_libdir_flag_spec_CXX \
20003 hardcode_libdir_separator_CXX \
20004 exclude_expsyms_CXX \
20005 include_expsyms_CXX \
20006 file_list_spec_CXX \
20007 compiler_lib_search_dirs_CXX \
20008 predep_objects_CXX \
20009 postdep_objects_CXX \
20010 predeps_CXX \
20011 postdeps_CXX \
20012 compiler_lib_search_path_CXX; do
20013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20014 *[\\\\\\\`\\"\\\$]*)
20015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20016 ;;
20017 *)
20018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20019 ;;
20020 esac
20021 done
20022
20023 # Double-quote double-evaled strings.
20024 for var in reload_cmds \
20025 old_postinstall_cmds \
20026 old_postuninstall_cmds \
20027 old_archive_cmds \
20028 extract_expsyms_cmds \
20029 old_archive_from_new_cmds \
20030 old_archive_from_expsyms_cmds \
20031 archive_cmds \
20032 archive_expsym_cmds \
20033 module_cmds \
20034 module_expsym_cmds \
20035 export_symbols_cmds \
20036 prelink_cmds \
20037 postlink_cmds \
20038 postinstall_cmds \
20039 postuninstall_cmds \
20040 finish_cmds \
20041 sys_lib_search_path_spec \
20042 configure_time_dlsearch_path \
20043 configure_time_lt_sys_library_path \
20044 reload_cmds_CXX \
20045 old_archive_cmds_CXX \
20046 old_archive_from_new_cmds_CXX \
20047 old_archive_from_expsyms_cmds_CXX \
20048 archive_cmds_CXX \
20049 archive_expsym_cmds_CXX \
20050 module_cmds_CXX \
20051 module_expsym_cmds_CXX \
20052 export_symbols_cmds_CXX \
20053 prelink_cmds_CXX \
20054 postlink_cmds_CXX; do
20055 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20056 *[\\\\\\\`\\"\\\$]*)
20057 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20058 ;;
20059 *)
20060 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20061 ;;
20062 esac
20063 done
20064
20065 ac_aux_dir='$ac_aux_dir'
20066
20067 # See if we are running on zsh, and set the options that allow our
20068 # commands through without removal of \ escapes INIT.
20069 if test -n "\${ZSH_VERSION+set}"; then
20070 setopt NO_GLOB_SUBST
20071 fi
20072
20073
20074 PACKAGE='$PACKAGE'
20075 VERSION='$VERSION'
20076 RM='$RM'
20077 ofile='$ofile'
20078
20079
20080
20081
20082
20083
20084 _ACEOF
20085
20086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20087
20088 # Handling of arguments.
20089 for ac_config_target in $ac_config_targets
20090 do
20091 case $ac_config_target in
20092 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20093 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20094 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20095 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20096 "softhsm2.module") CONFIG_FILES="$CONFIG_FILES softhsm2.module" ;;
20097 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20098 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
20099 "src/lib/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/common/Makefile" ;;
20100 "src/lib/common/softhsm2.conf") CONFIG_FILES="$CONFIG_FILES src/lib/common/softhsm2.conf" ;;
20101 "src/lib/common/softhsm2.conf.5") CONFIG_FILES="$CONFIG_FILES src/lib/common/softhsm2.conf.5" ;;
20102 "src/lib/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/crypto/Makefile" ;;
20103 "src/lib/crypto/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/crypto/test/Makefile" ;;
20104 "src/lib/data_mgr/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/data_mgr/Makefile" ;;
20105 "src/lib/data_mgr/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/data_mgr/test/Makefile" ;;
20106 "src/lib/object_store/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/object_store/Makefile" ;;
20107 "src/lib/object_store/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/object_store/test/Makefile" ;;
20108 "src/lib/session_mgr/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/session_mgr/Makefile" ;;
20109 "src/lib/session_mgr/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/session_mgr/test/Makefile" ;;
20110 "src/lib/slot_mgr/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/slot_mgr/Makefile" ;;
20111 "src/lib/slot_mgr/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/slot_mgr/test/Makefile" ;;
20112 "src/lib/handle_mgr/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/handle_mgr/Makefile" ;;
20113 "src/lib/handle_mgr/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/handle_mgr/test/Makefile" ;;
20114 "src/lib/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/test/Makefile" ;;
20115 "src/lib/test/softhsm2.conf") CONFIG_FILES="$CONFIG_FILES src/lib/test/softhsm2.conf" ;;
20116 "src/lib/test/softhsm2-alt.conf") CONFIG_FILES="$CONFIG_FILES src/lib/test/softhsm2-alt.conf" ;;
20117 "src/lib/test/softhsm2-reset-on-fork.conf") CONFIG_FILES="$CONFIG_FILES src/lib/test/softhsm2-reset-on-fork.conf" ;;
20118 "src/lib/test/softhsm2-mech.conf") CONFIG_FILES="$CONFIG_FILES src/lib/test/softhsm2-mech.conf" ;;
20119 "src/lib/test/tokens/dummy") CONFIG_FILES="$CONFIG_FILES src/lib/test/tokens/dummy" ;;
20120 "src/bin/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/Makefile" ;;
20121 "src/bin/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/common/Makefile" ;;
20122 "src/bin/dump/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/dump/Makefile" ;;
20123 "src/bin/keyconv/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/keyconv/Makefile" ;;
20124 "src/bin/migrate/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/migrate/Makefile" ;;
20125 "src/bin/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/bin/util/Makefile" ;;
20126
20127 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20128 esac
20129 done
20130
20131
20132 # If the user did not use the arguments to specify the items to instantiate,
20133 # then the envvar interface is used. Set only those that are not.
20134 # We use the long form for the default assignment because of an extremely
20135 # bizarre bug on SunOS 4.1.3.
20136 if $ac_need_defaults; then
20137 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20138 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20139 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20140 fi
20141
20142 # Have a temporary directory for convenience. Make it in the build tree
20143 # simply because there is no reason against having it here, and in addition,
20144 # creating and moving files from /tmp can sometimes cause problems.
20145 # Hook for its removal unless debugging.
20146 # Note that there is a small window in which the directory will not be cleaned:
20147 # after its creation but before its name has been assigned to `$tmp'.
20148 $debug ||
20149 {
20150 tmp= ac_tmp=
20151 trap 'exit_status=$?
20152 : "${ac_tmp:=$tmp}"
20153 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20154 ' 0
20155 trap 'as_fn_exit 1' 1 2 13 15
20156 }
20157 # Create a (secure) tmp directory for tmp files.
20158
20159 {
20160 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20161 test -d "$tmp"
20162 } ||
20163 {
20164 tmp=./conf$$-$RANDOM
20165 (umask 077 && mkdir "$tmp")
20166 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20167 ac_tmp=$tmp
20168
20169 # Set up the scripts for CONFIG_FILES section.
20170 # No need to generate them if there are no CONFIG_FILES.
20171 # This happens for instance with `./config.status config.h'.
20172 if test -n "$CONFIG_FILES"; then
20173
20174
20175 ac_cr=`echo X | tr X '\015'`
20176 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20177 # But we know of no other shell where ac_cr would be empty at this
20178 # point, so we can use a bashism as a fallback.
20179 if test "x$ac_cr" = x; then
20180 eval ac_cr=\$\'\\r\'
20181 fi
20182 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20183 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20184 ac_cs_awk_cr='\\r'
20185 else
20186 ac_cs_awk_cr=$ac_cr
20187 fi
20188
20189 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20190 _ACEOF
20191
20192
20193 {
20194 echo "cat >conf$$subs.awk <<_ACEOF" &&
20195 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20196 echo "_ACEOF"
20197 } >conf$$subs.sh ||
20198 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20199 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20200 ac_delim='%!_!# '
20201 for ac_last_try in false false false false false :; do
20202 . ./conf$$subs.sh ||
20203 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20204
20205 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20206 if test $ac_delim_n = $ac_delim_num; then
20207 break
20208 elif $ac_last_try; then
20209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20210 else
20211 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20212 fi
20213 done
20214 rm -f conf$$subs.sh
20215
20216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20217 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20218 _ACEOF
20219 sed -n '
20220 h
20221 s/^/S["/; s/!.*/"]=/
20222 p
20223 g
20224 s/^[^!]*!//
20225 :repl
20226 t repl
20227 s/'"$ac_delim"'$//
20228 t delim
20229 :nl
20230 h
20231 s/\(.\{148\}\)..*/\1/
20232 t more1
20233 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20234 p
20235 n
20236 b repl
20237 :more1
20238 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20239 p
20240 g
20241 s/.\{148\}//
20242 t nl
20243 :delim
20244 h
20245 s/\(.\{148\}\)..*/\1/
20246 t more2
20247 s/["\\]/\\&/g; s/^/"/; s/$/"/
20248 p
20249 b
20250 :more2
20251 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20252 p
20253 g
20254 s/.\{148\}//
20255 t delim
20256 ' <conf$$subs.awk | sed '
20257 /^[^""]/{
20258 N
20259 s/\n//
20260 }
20261 ' >>$CONFIG_STATUS || ac_write_fail=1
20262 rm -f conf$$subs.awk
20263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20264 _ACAWK
20265 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20266 for (key in S) S_is_set[key] = 1
20267 FS = ""
20268
20269 }
20270 {
20271 line = $ 0
20272 nfields = split(line, field, "@")
20273 substed = 0
20274 len = length(field[1])
20275 for (i = 2; i < nfields; i++) {
20276 key = field[i]
20277 keylen = length(key)
20278 if (S_is_set[key]) {
20279 value = S[key]
20280 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20281 len += length(value) + length(field[++i])
20282 substed = 1
20283 } else
20284 len += 1 + keylen
20285 }
20286
20287 print line
20288 }
20289
20290 _ACAWK
20291 _ACEOF
20292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20293 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20294 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20295 else
20296 cat
20297 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20298 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20299 _ACEOF
20300
20301 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20302 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20303 # trailing colons and then remove the whole line if VPATH becomes empty
20304 # (actually we leave an empty line to preserve line numbers).
20305 if test "x$srcdir" = x.; then
20306 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20307 h
20308 s///
20309 s/^/:/
20310 s/[ ]*$/:/
20311 s/:\$(srcdir):/:/g
20312 s/:\${srcdir}:/:/g
20313 s/:@srcdir@:/:/g
20314 s/^:*//
20315 s/:*$//
20316 x
20317 s/\(=[ ]*\).*/\1/
20318 G
20319 s/\n//
20320 s/^[^=]*=[ ]*$//
20321 }'
20322 fi
20323
20324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20325 fi # test -n "$CONFIG_FILES"
20326
20327 # Set up the scripts for CONFIG_HEADERS section.
20328 # No need to generate them if there are no CONFIG_HEADERS.
20329 # This happens for instance with `./config.status Makefile'.
20330 if test -n "$CONFIG_HEADERS"; then
20331 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20332 BEGIN {
20333 _ACEOF
20334
20335 # Transform confdefs.h into an awk script `defines.awk', embedded as
20336 # here-document in config.status, that substitutes the proper values into
20337 # config.h.in to produce config.h.
20338
20339 # Create a delimiter string that does not exist in confdefs.h, to ease
20340 # handling of long lines.
20341 ac_delim='%!_!# '
20342 for ac_last_try in false false :; do
20343 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20344 if test -z "$ac_tt"; then
20345 break
20346 elif $ac_last_try; then
20347 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20348 else
20349 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20350 fi
20351 done
20352
20353 # For the awk script, D is an array of macro values keyed by name,
20354 # likewise P contains macro parameters if any. Preserve backslash
20355 # newline sequences.
20356
20357 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20358 sed -n '
20359 s/.\{148\}/&'"$ac_delim"'/g
20360 t rset
20361 :rset
20362 s/^[ ]*#[ ]*define[ ][ ]*/ /
20363 t def
20364 d
20365 :def
20366 s/\\$//
20367 t bsnl
20368 s/["\\]/\\&/g
20369 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20370 D["\1"]=" \3"/p
20371 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20372 d
20373 :bsnl
20374 s/["\\]/\\&/g
20375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20376 D["\1"]=" \3\\\\\\n"\\/p
20377 t cont
20378 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20379 t cont
20380 d
20381 :cont
20382 n
20383 s/.\{148\}/&'"$ac_delim"'/g
20384 t clear
20385 :clear
20386 s/\\$//
20387 t bsnlc
20388 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20389 d
20390 :bsnlc
20391 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20392 b cont
20393 ' <confdefs.h | sed '
20394 s/'"$ac_delim"'/"\\\
20395 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20396
20397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20398 for (key in D) D_is_set[key] = 1
20399 FS = ""
20400 }
20401 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20402 line = \$ 0
20403 split(line, arg, " ")
20404 if (arg[1] == "#") {
20405 defundef = arg[2]
20406 mac1 = arg[3]
20407 } else {
20408 defundef = substr(arg[1], 2)
20409 mac1 = arg[2]
20410 }
20411 split(mac1, mac2, "(") #)
20412 macro = mac2[1]
20413 prefix = substr(line, 1, index(line, defundef) - 1)
20414 if (D_is_set[macro]) {
20415 # Preserve the white space surrounding the "#".
20416 print prefix "define", macro P[macro] D[macro]
20417 next
20418 } else {
20419 # Replace #undef with comments. This is necessary, for example,
20420 # in the case of _POSIX_SOURCE, which is predefined and required
20421 # on some systems where configure will not decide to define it.
20422 if (defundef == "undef") {
20423 print "/*", prefix defundef, macro, "*/"
20424 next
20425 }
20426 }
20427 }
20428 { print }
20429 _ACAWK
20430 _ACEOF
20431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20432 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20433 fi # test -n "$CONFIG_HEADERS"
20434
20435
20436 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20437 shift
20438 for ac_tag
20439 do
20440 case $ac_tag in
20441 :[FHLC]) ac_mode=$ac_tag; continue;;
20442 esac
20443 case $ac_mode$ac_tag in
20444 :[FHL]*:*);;
20445 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20446 :[FH]-) ac_tag=-:-;;
20447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20448 esac
20449 ac_save_IFS=$IFS
20450 IFS=:
20451 set x $ac_tag
20452 IFS=$ac_save_IFS
20453 shift
20454 ac_file=$1
20455 shift
20456
20457 case $ac_mode in
20458 :L) ac_source=$1;;
20459 :[FH])
20460 ac_file_inputs=
20461 for ac_f
20462 do
20463 case $ac_f in
20464 -) ac_f="$ac_tmp/stdin";;
20465 *) # Look for the file first in the build tree, then in the source tree
20466 # (if the path is not absolute). The absolute path cannot be DOS-style,
20467 # because $ac_f cannot contain `:'.
20468 test -f "$ac_f" ||
20469 case $ac_f in
20470 [\\/$]*) false;;
20471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20472 esac ||
20473 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20474 esac
20475 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20476 as_fn_append ac_file_inputs " '$ac_f'"
20477 done
20478
20479 # Let's still pretend it is `configure' which instantiates (i.e., don't
20480 # use $as_me), people would be surprised to read:
20481 # /* config.h. Generated by config.status. */
20482 configure_input='Generated from '`
20483 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20484 `' by configure.'
20485 if test x"$ac_file" != x-; then
20486 configure_input="$ac_file. $configure_input"
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20488 $as_echo "$as_me: creating $ac_file" >&6;}
20489 fi
20490 # Neutralize special characters interpreted by sed in replacement strings.
20491 case $configure_input in #(
20492 *\&* | *\|* | *\\* )
20493 ac_sed_conf_input=`$as_echo "$configure_input" |
20494 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20495 *) ac_sed_conf_input=$configure_input;;
20496 esac
20497
20498 case $ac_tag in
20499 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20501 esac
20502 ;;
20503 esac
20504
20505 ac_dir=`$as_dirname -- "$ac_file" ||
20506 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20507 X"$ac_file" : 'X\(//\)[^/]' \| \
20508 X"$ac_file" : 'X\(//\)$' \| \
20509 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20510 $as_echo X"$ac_file" |
20511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20512 s//\1/
20513 q
20514 }
20515 /^X\(\/\/\)[^/].*/{
20516 s//\1/
20517 q
20518 }
20519 /^X\(\/\/\)$/{
20520 s//\1/
20521 q
20522 }
20523 /^X\(\/\).*/{
20524 s//\1/
20525 q
20526 }
20527 s/.*/./; q'`
20528 as_dir="$ac_dir"; as_fn_mkdir_p
20529 ac_builddir=.
20530
20531 case "$ac_dir" in
20532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20533 *)
20534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20535 # A ".." for each directory in $ac_dir_suffix.
20536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20537 case $ac_top_builddir_sub in
20538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20540 esac ;;
20541 esac
20542 ac_abs_top_builddir=$ac_pwd
20543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20544 # for backward compatibility:
20545 ac_top_builddir=$ac_top_build_prefix
20546
20547 case $srcdir in
20548 .) # We are building in place.
20549 ac_srcdir=.
20550 ac_top_srcdir=$ac_top_builddir_sub
20551 ac_abs_top_srcdir=$ac_pwd ;;
20552 [\\/]* | ?:[\\/]* ) # Absolute name.
20553 ac_srcdir=$srcdir$ac_dir_suffix;
20554 ac_top_srcdir=$srcdir
20555 ac_abs_top_srcdir=$srcdir ;;
20556 *) # Relative name.
20557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20558 ac_top_srcdir=$ac_top_build_prefix$srcdir
20559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20560 esac
20561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20562
20563
20564 case $ac_mode in
20565 :F)
20566 #
20567 # CONFIG_FILE
20568 #
20569
20570 case $INSTALL in
20571 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20572 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20573 esac
20574 ac_MKDIR_P=$MKDIR_P
20575 case $MKDIR_P in
20576 [\\/$]* | ?:[\\/]* ) ;;
20577 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20578 esac
20579 _ACEOF
20580
20581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20582 # If the template does not know about datarootdir, expand it.
20583 # FIXME: This hack should be removed a few years after 2.60.
20584 ac_datarootdir_hack=; ac_datarootdir_seen=
20585 ac_sed_dataroot='
20586 /datarootdir/ {
20587 p
20588 q
20589 }
20590 /@datadir@/p
20591 /@docdir@/p
20592 /@infodir@/p
20593 /@localedir@/p
20594 /@mandir@/p'
20595 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20596 *datarootdir*) ac_datarootdir_seen=yes;;
20597 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20599 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20600 _ACEOF
20601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20602 ac_datarootdir_hack='
20603 s&@datadir@&$datadir&g
20604 s&@docdir@&$docdir&g
20605 s&@infodir@&$infodir&g
20606 s&@localedir@&$localedir&g
20607 s&@mandir@&$mandir&g
20608 s&\\\${datarootdir}&$datarootdir&g' ;;
20609 esac
20610 _ACEOF
20611
20612 # Neutralize VPATH when `$srcdir' = `.'.
20613 # Shell code in configure.ac might set extrasub.
20614 # FIXME: do we really want to maintain this feature?
20615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20616 ac_sed_extra="$ac_vpsub
20617 $extrasub
20618 _ACEOF
20619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20620 :t
20621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20622 s|@configure_input@|$ac_sed_conf_input|;t t
20623 s&@top_builddir@&$ac_top_builddir_sub&;t t
20624 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20625 s&@srcdir@&$ac_srcdir&;t t
20626 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20627 s&@top_srcdir@&$ac_top_srcdir&;t t
20628 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20629 s&@builddir@&$ac_builddir&;t t
20630 s&@abs_builddir@&$ac_abs_builddir&;t t
20631 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20632 s&@INSTALL@&$ac_INSTALL&;t t
20633 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20634 $ac_datarootdir_hack
20635 "
20636 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20637 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20638
20639 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20640 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20641 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20642 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20644 which seems to be undefined. Please make sure it is defined" >&5
20645 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20646 which seems to be undefined. Please make sure it is defined" >&2;}
20647
20648 rm -f "$ac_tmp/stdin"
20649 case $ac_file in
20650 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20651 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20652 esac \
20653 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20654 ;;
20655 :H)
20656 #
20657 # CONFIG_HEADER
20658 #
20659 if test x"$ac_file" != x-; then
20660 {
20661 $as_echo "/* $configure_input */" \
20662 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20663 } >"$ac_tmp/config.h" \
20664 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20665 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20667 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20668 else
20669 rm -f "$ac_file"
20670 mv "$ac_tmp/config.h" "$ac_file" \
20671 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20672 fi
20673 else
20674 $as_echo "/* $configure_input */" \
20675 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20676 || as_fn_error $? "could not create -" "$LINENO" 5
20677 fi
20678 # Compute "$ac_file"'s index in $config_headers.
20679 _am_arg="$ac_file"
20680 _am_stamp_count=1
20681 for _am_header in $config_headers :; do
20682 case $_am_header in
20683 $_am_arg | $_am_arg:* )
20684 break ;;
20685 * )
20686 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20687 esac
20688 done
20689 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20690 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20691 X"$_am_arg" : 'X\(//\)[^/]' \| \
20692 X"$_am_arg" : 'X\(//\)$' \| \
20693 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20694 $as_echo X"$_am_arg" |
20695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20696 s//\1/
20697 q
20698 }
20699 /^X\(\/\/\)[^/].*/{
20700 s//\1/
20701 q
20702 }
20703 /^X\(\/\/\)$/{
20704 s//\1/
20705 q
20706 }
20707 /^X\(\/\).*/{
20708 s//\1/
20709 q
20710 }
20711 s/.*/./; q'`/stamp-h$_am_stamp_count
20712 ;;
20713
20714 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20715 $as_echo "$as_me: executing $ac_file commands" >&6;}
20716 ;;
20717 esac
20718
20719
20720 case $ac_file$ac_mode in
20721 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20722 # Older Autoconf quotes --file arguments for eval, but not when files
20723 # are listed without --file. Let's play safe and only enable the eval
20724 # if we detect the quoting.
20725 # TODO: see whether this extra hack can be removed once we start
20726 # requiring Autoconf 2.70 or later.
20727 case $CONFIG_FILES in #(
20728 *\'*) :
20729 eval set x "$CONFIG_FILES" ;; #(
20730 *) :
20731 set x $CONFIG_FILES ;; #(
20732 *) :
20733 ;;
20734 esac
20735 shift
20736 # Used to flag and report bootstrapping failures.
20737 am_rc=0
20738 for am_mf
20739 do
20740 # Strip MF so we end up with the name of the file.
20741 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
20742 # Check whether this is an Automake generated Makefile which includes
20743 # dependency-tracking related rules and includes.
20744 # Grep'ing the whole file directly is not great: AIX grep has a line
20745 # limit of 2048, but all sed's we know have understand at least 4000.
20746 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20747 || continue
20748 am_dirpart=`$as_dirname -- "$am_mf" ||
20749 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20750 X"$am_mf" : 'X\(//\)[^/]' \| \
20751 X"$am_mf" : 'X\(//\)$' \| \
20752 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20753 $as_echo X"$am_mf" |
20754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20755 s//\1/
20756 q
20757 }
20758 /^X\(\/\/\)[^/].*/{
20759 s//\1/
20760 q
20761 }
20762 /^X\(\/\/\)$/{
20763 s//\1/
20764 q
20765 }
20766 /^X\(\/\).*/{
20767 s//\1/
20768 q
20769 }
20770 s/.*/./; q'`
20771 am_filepart=`$as_basename -- "$am_mf" ||
20772 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20773 X"$am_mf" : 'X\(//\)$' \| \
20774 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20775 $as_echo X/"$am_mf" |
20776 sed '/^.*\/\([^/][^/]*\)\/*$/{
20777 s//\1/
20778 q
20779 }
20780 /^X\/\(\/\/\)$/{
20781 s//\1/
20782 q
20783 }
20784 /^X\/\(\/\).*/{
20785 s//\1/
20786 q
20787 }
20788 s/.*/./; q'`
20789 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20790 && sed -e '/# am--include-marker/d' "$am_filepart" \
20791 | $MAKE -f - am--depfiles" >&5
20792 (cd "$am_dirpart" \
20793 && sed -e '/# am--include-marker/d' "$am_filepart" \
20794 | $MAKE -f - am--depfiles) >&5 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } || am_rc=$?
20798 done
20799 if test $am_rc -ne 0; then
20800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20802 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20803 for automatic dependency tracking. If GNU make was not used, consider
20804 re-running the configure script with MAKE=\"gmake\" (or whatever is
20805 necessary). You can also try re-running configure with the
20806 '--disable-dependency-tracking' option to at least be able to build
20807 the package (albeit without support for automatic dependency tracking).
20808 See \`config.log' for more details" "$LINENO" 5; }
20809 fi
20810 { am_dirpart=; unset am_dirpart;}
20811 { am_filepart=; unset am_filepart;}
20812 { am_mf=; unset am_mf;}
20813 { am_rc=; unset am_rc;}
20814 rm -f conftest-deps.mk
20815 }
20816 ;;
20817 "libtool":C)
20818
20819 # See if we are running on zsh, and set the options that allow our
20820 # commands through without removal of \ escapes.
20821 if test -n "${ZSH_VERSION+set}"; then
20822 setopt NO_GLOB_SUBST
20823 fi
20824
20825 cfgfile=${ofile}T
20826 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20827 $RM "$cfgfile"
20828
20829 cat <<_LT_EOF >> "$cfgfile"
20830 #! $SHELL
20831 # Generated automatically by $as_me ($PACKAGE) $VERSION
20832 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20833 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20834
20835 # Provide generalized library-building support services.
20836 # Written by Gordon Matzigkeit, 1996
20837
20838 # Copyright (C) 2014 Free Software Foundation, Inc.
20839 # This is free software; see the source for copying conditions. There is NO
20840 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20841
20842 # GNU Libtool is free software; you can redistribute it and/or modify
20843 # it under the terms of the GNU General Public License as published by
20844 # the Free Software Foundation; either version 2 of of the License, or
20845 # (at your option) any later version.
20846 #
20847 # As a special exception to the GNU General Public License, if you
20848 # distribute this file as part of a program or library that is built
20849 # using GNU Libtool, you may include this file under the same
20850 # distribution terms that you use for the rest of that program.
20851 #
20852 # GNU Libtool is distributed in the hope that it will be useful, but
20853 # WITHOUT ANY WARRANTY; without even the implied warranty of
20854 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20855 # GNU General Public License for more details.
20856 #
20857 # You should have received a copy of the GNU General Public License
20858 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20859
20860
20861 # The names of the tagged configurations supported by this script.
20862 available_tags='CXX '
20863
20864 # Configured defaults for sys_lib_dlsearch_path munging.
20865 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
20866
20867 # ### BEGIN LIBTOOL CONFIG
20868
20869 # Which release of libtool.m4 was used?
20870 macro_version=$macro_version
20871 macro_revision=$macro_revision
20872
20873 # Whether or not to build shared libraries.
20874 build_libtool_libs=$enable_shared
20875
20876 # Whether or not to build static libraries.
20877 build_old_libs=$enable_static
20878
20879 # What type of objects to build.
20880 pic_mode=$pic_mode
20881
20882 # Whether or not to optimize for fast installation.
20883 fast_install=$enable_fast_install
20884
20885 # Shared archive member basename,for filename based shared library versioning on AIX.
20886 shared_archive_member_spec=$shared_archive_member_spec
20887
20888 # Shell to use when invoking shell scripts.
20889 SHELL=$lt_SHELL
20890
20891 # An echo program that protects backslashes.
20892 ECHO=$lt_ECHO
20893
20894 # The PATH separator for the build system.
20895 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20896
20897 # The host system.
20898 host_alias=$host_alias
20899 host=$host
20900 host_os=$host_os
20901
20902 # The build system.
20903 build_alias=$build_alias
20904 build=$build
20905 build_os=$build_os
20906
20907 # A sed program that does not truncate output.
20908 SED=$lt_SED
20909
20910 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20911 Xsed="\$SED -e 1s/^X//"
20912
20913 # A grep program that handles long lines.
20914 GREP=$lt_GREP
20915
20916 # An ERE matcher.
20917 EGREP=$lt_EGREP
20918
20919 # A literal string matcher.
20920 FGREP=$lt_FGREP
20921
20922 # A BSD- or MS-compatible name lister.
20923 NM=$lt_NM
20924
20925 # Whether we need soft or hard links.
20926 LN_S=$lt_LN_S
20927
20928 # What is the maximum length of a command?
20929 max_cmd_len=$max_cmd_len
20930
20931 # Object file suffix (normally "o").
20932 objext=$ac_objext
20933
20934 # Executable file suffix (normally "").
20935 exeext=$exeext
20936
20937 # whether the shell understands "unset".
20938 lt_unset=$lt_unset
20939
20940 # turn spaces into newlines.
20941 SP2NL=$lt_lt_SP2NL
20942
20943 # turn newlines into spaces.
20944 NL2SP=$lt_lt_NL2SP
20945
20946 # convert \$build file names to \$host format.
20947 to_host_file_cmd=$lt_cv_to_host_file_cmd
20948
20949 # convert \$build files to toolchain format.
20950 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20951
20952 # An object symbol dumper.
20953 OBJDUMP=$lt_OBJDUMP
20954
20955 # Method to check whether dependent libraries are shared objects.
20956 deplibs_check_method=$lt_deplibs_check_method
20957
20958 # Command to use when deplibs_check_method = "file_magic".
20959 file_magic_cmd=$lt_file_magic_cmd
20960
20961 # How to find potential files when deplibs_check_method = "file_magic".
20962 file_magic_glob=$lt_file_magic_glob
20963
20964 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20965 want_nocaseglob=$lt_want_nocaseglob
20966
20967 # DLL creation program.
20968 DLLTOOL=$lt_DLLTOOL
20969
20970 # Command to associate shared and link libraries.
20971 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20972
20973 # The archiver.
20974 AR=$lt_AR
20975
20976 # Flags to create an archive.
20977 AR_FLAGS=$lt_AR_FLAGS
20978
20979 # How to feed a file listing to the archiver.
20980 archiver_list_spec=$lt_archiver_list_spec
20981
20982 # A symbol stripping program.
20983 STRIP=$lt_STRIP
20984
20985 # Commands used to install an old-style archive.
20986 RANLIB=$lt_RANLIB
20987 old_postinstall_cmds=$lt_old_postinstall_cmds
20988 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20989
20990 # Whether to use a lock for old archive extraction.
20991 lock_old_archive_extraction=$lock_old_archive_extraction
20992
20993 # A C compiler.
20994 LTCC=$lt_CC
20995
20996 # LTCC compiler flags.
20997 LTCFLAGS=$lt_CFLAGS
20998
20999 # Take the output of nm and produce a listing of raw symbols and C names.
21000 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21001
21002 # Transform the output of nm in a proper C declaration.
21003 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21004
21005 # Transform the output of nm into a list of symbols to manually relocate.
21006 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21007
21008 # Transform the output of nm in a C name address pair.
21009 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21010
21011 # Transform the output of nm in a C name address pair when lib prefix is needed.
21012 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21013
21014 # The name lister interface.
21015 nm_interface=$lt_lt_cv_nm_interface
21016
21017 # Specify filename containing input files for \$NM.
21018 nm_file_list_spec=$lt_nm_file_list_spec
21019
21020 # The root where to search for dependent libraries,and where our libraries should be installed.
21021 lt_sysroot=$lt_sysroot
21022
21023 # Command to truncate a binary pipe.
21024 lt_truncate_bin=$lt_lt_cv_truncate_bin
21025
21026 # The name of the directory that contains temporary libtool files.
21027 objdir=$objdir
21028
21029 # Used to examine libraries when file_magic_cmd begins with "file".
21030 MAGIC_CMD=$MAGIC_CMD
21031
21032 # Must we lock files when doing compilation?
21033 need_locks=$lt_need_locks
21034
21035 # Manifest tool.
21036 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21037
21038 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21039 DSYMUTIL=$lt_DSYMUTIL
21040
21041 # Tool to change global to local symbols on Mac OS X.
21042 NMEDIT=$lt_NMEDIT
21043
21044 # Tool to manipulate fat objects and archives on Mac OS X.
21045 LIPO=$lt_LIPO
21046
21047 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21048 OTOOL=$lt_OTOOL
21049
21050 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21051 OTOOL64=$lt_OTOOL64
21052
21053 # Old archive suffix (normally "a").
21054 libext=$libext
21055
21056 # Shared library suffix (normally ".so").
21057 shrext_cmds=$lt_shrext_cmds
21058
21059 # The commands to extract the exported symbol list from a shared archive.
21060 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21061
21062 # Variables whose values should be saved in libtool wrapper scripts and
21063 # restored at link time.
21064 variables_saved_for_relink=$lt_variables_saved_for_relink
21065
21066 # Do we need the "lib" prefix for modules?
21067 need_lib_prefix=$need_lib_prefix
21068
21069 # Do we need a version for libraries?
21070 need_version=$need_version
21071
21072 # Library versioning type.
21073 version_type=$version_type
21074
21075 # Shared library runtime path variable.
21076 runpath_var=$runpath_var
21077
21078 # Shared library path variable.
21079 shlibpath_var=$shlibpath_var
21080
21081 # Is shlibpath searched before the hard-coded library search path?
21082 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21083
21084 # Format of library name prefix.
21085 libname_spec=$lt_libname_spec
21086
21087 # List of archive names. First name is the real one, the rest are links.
21088 # The last name is the one that the linker finds with -lNAME
21089 library_names_spec=$lt_library_names_spec
21090
21091 # The coded name of the library, if different from the real name.
21092 soname_spec=$lt_soname_spec
21093
21094 # Permission mode override for installation of shared libraries.
21095 install_override_mode=$lt_install_override_mode
21096
21097 # Command to use after installation of a shared archive.
21098 postinstall_cmds=$lt_postinstall_cmds
21099
21100 # Command to use after uninstallation of a shared archive.
21101 postuninstall_cmds=$lt_postuninstall_cmds
21102
21103 # Commands used to finish a libtool library installation in a directory.
21104 finish_cmds=$lt_finish_cmds
21105
21106 # As "finish_cmds", except a single script fragment to be evaled but
21107 # not shown.
21108 finish_eval=$lt_finish_eval
21109
21110 # Whether we should hardcode library paths into libraries.
21111 hardcode_into_libs=$hardcode_into_libs
21112
21113 # Compile-time system search path for libraries.
21114 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21115
21116 # Detected run-time system search path for libraries.
21117 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21118
21119 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21120 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21121
21122 # Whether dlopen is supported.
21123 dlopen_support=$enable_dlopen
21124
21125 # Whether dlopen of programs is supported.
21126 dlopen_self=$enable_dlopen_self
21127
21128 # Whether dlopen of statically linked programs is supported.
21129 dlopen_self_static=$enable_dlopen_self_static
21130
21131 # Commands to strip libraries.
21132 old_striplib=$lt_old_striplib
21133 striplib=$lt_striplib
21134
21135
21136 # The linker used to build libraries.
21137 LD=$lt_LD
21138
21139 # How to create reloadable object files.
21140 reload_flag=$lt_reload_flag
21141 reload_cmds=$lt_reload_cmds
21142
21143 # Commands used to build an old-style archive.
21144 old_archive_cmds=$lt_old_archive_cmds
21145
21146 # A language specific compiler.
21147 CC=$lt_compiler
21148
21149 # Is the compiler the GNU compiler?
21150 with_gcc=$GCC
21151
21152 # Compiler flag to turn off builtin functions.
21153 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21154
21155 # Additional compiler flags for building library objects.
21156 pic_flag=$lt_lt_prog_compiler_pic
21157
21158 # How to pass a linker flag through the compiler.
21159 wl=$lt_lt_prog_compiler_wl
21160
21161 # Compiler flag to prevent dynamic linking.
21162 link_static_flag=$lt_lt_prog_compiler_static
21163
21164 # Does compiler simultaneously support -c and -o options?
21165 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21166
21167 # Whether or not to add -lc for building shared libraries.
21168 build_libtool_need_lc=$archive_cmds_need_lc
21169
21170 # Whether or not to disallow shared libs when runtime libs are static.
21171 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21172
21173 # Compiler flag to allow reflexive dlopens.
21174 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21175
21176 # Compiler flag to generate shared objects directly from archives.
21177 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21178
21179 # Whether the compiler copes with passing no objects directly.
21180 compiler_needs_object=$lt_compiler_needs_object
21181
21182 # Create an old-style archive from a shared archive.
21183 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21184
21185 # Create a temporary old-style archive to link instead of a shared archive.
21186 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21187
21188 # Commands used to build a shared archive.
21189 archive_cmds=$lt_archive_cmds
21190 archive_expsym_cmds=$lt_archive_expsym_cmds
21191
21192 # Commands used to build a loadable module if different from building
21193 # a shared archive.
21194 module_cmds=$lt_module_cmds
21195 module_expsym_cmds=$lt_module_expsym_cmds
21196
21197 # Whether we are building with GNU ld or not.
21198 with_gnu_ld=$lt_with_gnu_ld
21199
21200 # Flag that allows shared libraries with undefined symbols to be built.
21201 allow_undefined_flag=$lt_allow_undefined_flag
21202
21203 # Flag that enforces no undefined symbols.
21204 no_undefined_flag=$lt_no_undefined_flag
21205
21206 # Flag to hardcode \$libdir into a binary during linking.
21207 # This must work even if \$libdir does not exist
21208 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21209
21210 # Whether we need a single "-rpath" flag with a separated argument.
21211 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21212
21213 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21214 # DIR into the resulting binary.
21215 hardcode_direct=$hardcode_direct
21216
21217 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21218 # DIR into the resulting binary and the resulting library dependency is
21219 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21220 # library is relocated.
21221 hardcode_direct_absolute=$hardcode_direct_absolute
21222
21223 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21224 # into the resulting binary.
21225 hardcode_minus_L=$hardcode_minus_L
21226
21227 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21228 # into the resulting binary.
21229 hardcode_shlibpath_var=$hardcode_shlibpath_var
21230
21231 # Set to "yes" if building a shared library automatically hardcodes DIR
21232 # into the library and all subsequent libraries and executables linked
21233 # against it.
21234 hardcode_automatic=$hardcode_automatic
21235
21236 # Set to yes if linker adds runtime paths of dependent libraries
21237 # to runtime path list.
21238 inherit_rpath=$inherit_rpath
21239
21240 # Whether libtool must link a program against all its dependency libraries.
21241 link_all_deplibs=$link_all_deplibs
21242
21243 # Set to "yes" if exported symbols are required.
21244 always_export_symbols=$always_export_symbols
21245
21246 # The commands to list exported symbols.
21247 export_symbols_cmds=$lt_export_symbols_cmds
21248
21249 # Symbols that should not be listed in the preloaded symbols.
21250 exclude_expsyms=$lt_exclude_expsyms
21251
21252 # Symbols that must always be exported.
21253 include_expsyms=$lt_include_expsyms
21254
21255 # Commands necessary for linking programs (against libraries) with templates.
21256 prelink_cmds=$lt_prelink_cmds
21257
21258 # Commands necessary for finishing linking programs.
21259 postlink_cmds=$lt_postlink_cmds
21260
21261 # Specify filename containing input files.
21262 file_list_spec=$lt_file_list_spec
21263
21264 # How to hardcode a shared library path into an executable.
21265 hardcode_action=$hardcode_action
21266
21267 # The directories searched by this compiler when creating a shared library.
21268 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21269
21270 # Dependencies to place before and after the objects being linked to
21271 # create a shared library.
21272 predep_objects=$lt_predep_objects
21273 postdep_objects=$lt_postdep_objects
21274 predeps=$lt_predeps
21275 postdeps=$lt_postdeps
21276
21277 # The library search path used internally by the compiler when linking
21278 # a shared library.
21279 compiler_lib_search_path=$lt_compiler_lib_search_path
21280
21281 # ### END LIBTOOL CONFIG
21282
21283 _LT_EOF
21284
21285 cat <<'_LT_EOF' >> "$cfgfile"
21286
21287 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21288
21289 # func_munge_path_list VARIABLE PATH
21290 # -----------------------------------
21291 # VARIABLE is name of variable containing _space_ separated list of
21292 # directories to be munged by the contents of PATH, which is string
21293 # having a format:
21294 # "DIR[:DIR]:"
21295 # string "DIR[ DIR]" will be prepended to VARIABLE
21296 # ":DIR[:DIR]"
21297 # string "DIR[ DIR]" will be appended to VARIABLE
21298 # "DIRP[:DIRP]::[DIRA:]DIRA"
21299 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21300 # "DIRA[ DIRA]" will be appended to VARIABLE
21301 # "DIR[:DIR]"
21302 # VARIABLE will be replaced by "DIR[ DIR]"
21303 func_munge_path_list ()
21304 {
21305 case x$2 in
21306 x)
21307 ;;
21308 *:)
21309 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21310 ;;
21311 x:*)
21312 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21313 ;;
21314 *::*)
21315 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21316 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21317 ;;
21318 *)
21319 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21320 ;;
21321 esac
21322 }
21323
21324
21325 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21326 func_cc_basename ()
21327 {
21328 for cc_temp in $*""; do
21329 case $cc_temp in
21330 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21331 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21332 \-*) ;;
21333 *) break;;
21334 esac
21335 done
21336 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21337 }
21338
21339
21340 # ### END FUNCTIONS SHARED WITH CONFIGURE
21341
21342 _LT_EOF
21343
21344 case $host_os in
21345 aix3*)
21346 cat <<\_LT_EOF >> "$cfgfile"
21347 # AIX sometimes has problems with the GCC collect2 program. For some
21348 # reason, if we set the COLLECT_NAMES environment variable, the problems
21349 # vanish in a puff of smoke.
21350 if test set != "${COLLECT_NAMES+set}"; then
21351 COLLECT_NAMES=
21352 export COLLECT_NAMES
21353 fi
21354 _LT_EOF
21355 ;;
21356 esac
21357
21358
21359 ltmain=$ac_aux_dir/ltmain.sh
21360
21361
21362 # We use sed instead of cat because bash on DJGPP gets confused if
21363 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21364 # text mode, it properly converts lines to CR/LF. This bash problem
21365 # is reportedly fixed, but why not run on old versions too?
21366 sed '$q' "$ltmain" >> "$cfgfile" \
21367 || (rm -f "$cfgfile"; exit 1)
21368
21369 mv -f "$cfgfile" "$ofile" ||
21370 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21371 chmod +x "$ofile"
21372
21373
21374 cat <<_LT_EOF >> "$ofile"
21375
21376 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21377
21378 # The linker used to build libraries.
21379 LD=$lt_LD_CXX
21380
21381 # How to create reloadable object files.
21382 reload_flag=$lt_reload_flag_CXX
21383 reload_cmds=$lt_reload_cmds_CXX
21384
21385 # Commands used to build an old-style archive.
21386 old_archive_cmds=$lt_old_archive_cmds_CXX
21387
21388 # A language specific compiler.
21389 CC=$lt_compiler_CXX
21390
21391 # Is the compiler the GNU compiler?
21392 with_gcc=$GCC_CXX
21393
21394 # Compiler flag to turn off builtin functions.
21395 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21396
21397 # Additional compiler flags for building library objects.
21398 pic_flag=$lt_lt_prog_compiler_pic_CXX
21399
21400 # How to pass a linker flag through the compiler.
21401 wl=$lt_lt_prog_compiler_wl_CXX
21402
21403 # Compiler flag to prevent dynamic linking.
21404 link_static_flag=$lt_lt_prog_compiler_static_CXX
21405
21406 # Does compiler simultaneously support -c and -o options?
21407 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21408
21409 # Whether or not to add -lc for building shared libraries.
21410 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21411
21412 # Whether or not to disallow shared libs when runtime libs are static.
21413 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21414
21415 # Compiler flag to allow reflexive dlopens.
21416 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21417
21418 # Compiler flag to generate shared objects directly from archives.
21419 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21420
21421 # Whether the compiler copes with passing no objects directly.
21422 compiler_needs_object=$lt_compiler_needs_object_CXX
21423
21424 # Create an old-style archive from a shared archive.
21425 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21426
21427 # Create a temporary old-style archive to link instead of a shared archive.
21428 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21429
21430 # Commands used to build a shared archive.
21431 archive_cmds=$lt_archive_cmds_CXX
21432 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21433
21434 # Commands used to build a loadable module if different from building
21435 # a shared archive.
21436 module_cmds=$lt_module_cmds_CXX
21437 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21438
21439 # Whether we are building with GNU ld or not.
21440 with_gnu_ld=$lt_with_gnu_ld_CXX
21441
21442 # Flag that allows shared libraries with undefined symbols to be built.
21443 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21444
21445 # Flag that enforces no undefined symbols.
21446 no_undefined_flag=$lt_no_undefined_flag_CXX
21447
21448 # Flag to hardcode \$libdir into a binary during linking.
21449 # This must work even if \$libdir does not exist
21450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21451
21452 # Whether we need a single "-rpath" flag with a separated argument.
21453 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21454
21455 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21456 # DIR into the resulting binary.
21457 hardcode_direct=$hardcode_direct_CXX
21458
21459 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21460 # DIR into the resulting binary and the resulting library dependency is
21461 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21462 # library is relocated.
21463 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21464
21465 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21466 # into the resulting binary.
21467 hardcode_minus_L=$hardcode_minus_L_CXX
21468
21469 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21470 # into the resulting binary.
21471 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21472
21473 # Set to "yes" if building a shared library automatically hardcodes DIR
21474 # into the library and all subsequent libraries and executables linked
21475 # against it.
21476 hardcode_automatic=$hardcode_automatic_CXX
21477
21478 # Set to yes if linker adds runtime paths of dependent libraries
21479 # to runtime path list.
21480 inherit_rpath=$inherit_rpath_CXX
21481
21482 # Whether libtool must link a program against all its dependency libraries.
21483 link_all_deplibs=$link_all_deplibs_CXX
21484
21485 # Set to "yes" if exported symbols are required.
21486 always_export_symbols=$always_export_symbols_CXX
21487
21488 # The commands to list exported symbols.
21489 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21490
21491 # Symbols that should not be listed in the preloaded symbols.
21492 exclude_expsyms=$lt_exclude_expsyms_CXX
21493
21494 # Symbols that must always be exported.
21495 include_expsyms=$lt_include_expsyms_CXX
21496
21497 # Commands necessary for linking programs (against libraries) with templates.
21498 prelink_cmds=$lt_prelink_cmds_CXX
21499
21500 # Commands necessary for finishing linking programs.
21501 postlink_cmds=$lt_postlink_cmds_CXX
21502
21503 # Specify filename containing input files.
21504 file_list_spec=$lt_file_list_spec_CXX
21505
21506 # How to hardcode a shared library path into an executable.
21507 hardcode_action=$hardcode_action_CXX
21508
21509 # The directories searched by this compiler when creating a shared library.
21510 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21511
21512 # Dependencies to place before and after the objects being linked to
21513 # create a shared library.
21514 predep_objects=$lt_predep_objects_CXX
21515 postdep_objects=$lt_postdep_objects_CXX
21516 predeps=$lt_predeps_CXX
21517 postdeps=$lt_postdeps_CXX
21518
21519 # The library search path used internally by the compiler when linking
21520 # a shared library.
21521 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21522
21523 # ### END LIBTOOL TAG CONFIG: CXX
21524 _LT_EOF
21525
21526 ;;
21527
21528 esac
21529 done # for ac_tag
21530
21531
21532 as_fn_exit 0
21533 _ACEOF
21534 ac_clean_files=$ac_clean_files_save
21535
21536 test $ac_write_fail = 0 ||
21537 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21538
21539
21540 # configure is writing to config.log, and then calls config.status.
21541 # config.status does its own redirection, appending to config.log.
21542 # Unfortunately, on DOS this fails, as config.log is still kept open
21543 # by configure, so config.status won't be able to write to it; its
21544 # output is simply discarded. So we exec the FD to /dev/null,
21545 # effectively closing config.log, so it can be properly (re)opened and
21546 # appended to by config.status. When coming back to configure, we
21547 # need to make the FD available again.
21548 if test "$no_create" != yes; then
21549 ac_cs_success=:
21550 ac_config_status_args=
21551 test "$silent" = yes &&
21552 ac_config_status_args="$ac_config_status_args --quiet"
21553 exec 5>/dev/null
21554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21555 exec 5>>config.log
21556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21557 # would make configure fail if this is the last instruction.
21558 $ac_cs_success || as_fn_exit 1
21559 fi
21560 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21562 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21563 fi
21564