configure revision 1.1.1.10 1 #! /bin/sh
2 # From configure.ac Id: 9e53b7243116521c824456d5fb2d4d3c358c0d76 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ldapcpplib .
5 #
6 # Report bugs to <http://www.openldap.org/its/ >.
7 #
8 # Copyright 2000-2021 The OpenLDAP Foundation. All rights reserved.
9 # Restrictions apply, see COPYRIGHT and LICENSE files.
10 #
11 #
12 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
13 #
14 #
15 # This configure script is free software; the Free Software Foundation
16 # gives unlimited permission to copy, distribute and modify it.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
20
21 # Be more Bourne compatible
22 DUALCASE=1; export DUALCASE # for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 emulate sh
25 NULLCMD=:
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
29 setopt NO_GLOB_SUBST
30 else
31 case `(set -o) 2>/dev/null` in #(
32 *posix*) :
33 set -o posix ;; #(
34 *) :
35 ;;
36 esac
37 fi
38
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='print -r --'
52 as_echo_n='print -rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
54 as_echo='printf %s\n'
55 as_echo_n='printf %s'
56 else
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59 as_echo_n='/usr/ucb/echo -n'
60 else
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 as_echo_n_body='eval
63 arg=$1;
64 case $arg in #(
65 *"$as_nl"*)
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 esac;
69 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 '
71 export as_echo_n_body
72 as_echo_n='sh -c $as_echo_n_body as_echo'
73 fi
74 export as_echo_body
75 as_echo='sh -c $as_echo_body as_echo'
76 fi
77
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
80 PATH_SEPARATOR=:
81 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 PATH_SEPARATOR=';'
84 }
85 fi
86
87
88 # IFS
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
93 IFS=" "" $as_nl"
94
95 # Find who we are. Look in the path if we contain no directory separator.
96 as_myself=
97 case $0 in #((
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108 ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 exit 1
118 fi
119
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there. '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
127 done
128 PS1='$ '
129 PS2='> '
130 PS4='+ '
131
132 # NLS nuisances.
133 LC_ALL=C
134 export LC_ALL
135 LANGUAGE=C
136 export LANGUAGE
137
138 # CDPATH.
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140
141 # Use a proper internal environment variable to ensure we don't fall
142 # into an infinite loop, continuously re-executing ourselves.
143 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
144 _as_can_reexec=no; export _as_can_reexec;
145 # We cannot yet assume a decent shell, so we have to provide a
146 # neutralization value for shells without unset; and this also
147 # works around shells that cannot unset nonexistent variables.
148 # Preserve -v and -x to the replacement shell.
149 BASH_ENV=/dev/null
150 ENV=/dev/null
151 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
152 case $- in # ((((
153 *v*x* | *x*v* ) as_opts=-vx ;;
154 *v* ) as_opts=-v ;;
155 *x* ) as_opts=-x ;;
156 * ) as_opts= ;;
157 esac
158 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
159 # Admittedly, this is quite paranoid, since all the known shells bail
160 # out after a failed `exec'.
161 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
162 as_fn_exit 255
163 fi
164 # We don't want this to propagate to other subprocesses.
165 { _as_can_reexec=; unset _as_can_reexec;}
166 if test "x$CONFIG_SHELL" = x; then
167 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
168 emulate sh
169 NULLCMD=:
170 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
171 # is contrary to our usage. Disable this feature.
172 alias -g '\${1+\"\$@\"}'='\"\$@\"'
173 setopt NO_GLOB_SUBST
174 else
175 case \`(set -o) 2>/dev/null\` in #(
176 *posix*) :
177 set -o posix ;; #(
178 *) :
179 ;;
180 esac
181 fi
182 "
183 as_required="as_fn_return () { (exit \$1); }
184 as_fn_success () { as_fn_return 0; }
185 as_fn_failure () { as_fn_return 1; }
186 as_fn_ret_success () { return 0; }
187 as_fn_ret_failure () { return 1; }
188
189 exitcode=0
190 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
191 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
192 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
193 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
194 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
195
196 else
197 exitcode=1; echo positional parameters were not saved.
198 fi
199 test x\$exitcode = x0 || exit 1
200 test -x / || exit 1"
201 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
202 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
203 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
204 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
205
206 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
207 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
208 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
209 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
210 PATH=/empty FPATH=/empty; export PATH FPATH
211 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
212 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
213 test \$(( 1 + 1 )) = 2 || exit 1"
214 if (eval "$as_required") 2>/dev/null; then :
215 as_have_required=yes
216 else
217 as_have_required=no
218 fi
219 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
220
221 else
222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 as_found=false
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 do
226 IFS=$as_save_IFS
227 test -z "$as_dir" && as_dir=.
228 as_found=:
229 case $as_dir in #(
230 /*)
231 for as_base in sh bash ksh sh5; do
232 # Try only shells that exist, to save several forks.
233 as_shell=$as_dir/$as_base
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 CONFIG_SHELL=$as_shell as_have_required=yes
237 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
238 break 2
239 fi
240 fi
241 done;;
242 esac
243 as_found=false
244 done
245 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
246 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
247 CONFIG_SHELL=$SHELL as_have_required=yes
248 fi; }
249 IFS=$as_save_IFS
250
251
252 if test "x$CONFIG_SHELL" != x; then :
253 export CONFIG_SHELL
254 # We cannot yet assume a decent shell, so we have to provide a
255 # neutralization value for shells without unset; and this also
256 # works around shells that cannot unset nonexistent variables.
257 # Preserve -v and -x to the replacement shell.
258 BASH_ENV=/dev/null
259 ENV=/dev/null
260 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
261 case $- in # ((((
262 *v*x* | *x*v* ) as_opts=-vx ;;
263 *v* ) as_opts=-v ;;
264 *x* ) as_opts=-x ;;
265 * ) as_opts= ;;
266 esac
267 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
268 # Admittedly, this is quite paranoid, since all the known shells bail
269 # out after a failed `exec'.
270 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
271 exit 255
272 fi
273
274 if test x$as_have_required = xno; then :
275 $as_echo "$0: This script requires a shell more modern than all"
276 $as_echo "$0: the shells that I found on your system."
277 if test x${ZSH_VERSION+set} = xset ; then
278 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
279 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
280 else
281 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
282 $0: http://www.openldap.org/its/ about your system,
283 $0: including any error possibly output before this
284 $0: message. Then install a modern shell, or manually run
285 $0: the script under such a shell if you do have one."
286 fi
287 exit 1
288 fi
289 fi
290 fi
291 SHELL=${CONFIG_SHELL-/bin/sh}
292 export SHELL
293 # Unset more variables known to interfere with behavior of common tools.
294 CLICOLOR_FORCE= GREP_OPTIONS=
295 unset CLICOLOR_FORCE GREP_OPTIONS
296
297 ## --------------------- ##
298 ## M4sh Shell Functions. ##
299 ## --------------------- ##
300 # as_fn_unset VAR
301 # ---------------
302 # Portably unset VAR.
303 as_fn_unset ()
304 {
305 { eval $1=; unset $1;}
306 }
307 as_unset=as_fn_unset
308
309 # as_fn_set_status STATUS
310 # -----------------------
311 # Set $? to STATUS, without forking.
312 as_fn_set_status ()
313 {
314 return $1
315 } # as_fn_set_status
316
317 # as_fn_exit STATUS
318 # -----------------
319 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 as_fn_exit ()
321 {
322 set +e
323 as_fn_set_status $1
324 exit $1
325 } # as_fn_exit
326
327 # as_fn_mkdir_p
328 # -------------
329 # Create "$as_dir" as a directory, including parents if necessary.
330 as_fn_mkdir_p ()
331 {
332
333 case $as_dir in #(
334 -*) as_dir=./$as_dir;;
335 esac
336 test -d "$as_dir" || eval $as_mkdir_p || {
337 as_dirs=
338 while :; do
339 case $as_dir in #(
340 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 *) as_qdir=$as_dir;;
342 esac
343 as_dirs="'$as_qdir' $as_dirs"
344 as_dir=`$as_dirname -- "$as_dir" ||
345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
346 X"$as_dir" : 'X\(//\)[^/]' \| \
347 X"$as_dir" : 'X\(//\)$' \| \
348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
349 $as_echo X"$as_dir" |
350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)[^/].*/{
355 s//\1/
356 q
357 }
358 /^X\(\/\/\)$/{
359 s//\1/
360 q
361 }
362 /^X\(\/\).*/{
363 s//\1/
364 q
365 }
366 s/.*/./; q'`
367 test -d "$as_dir" && break
368 done
369 test -z "$as_dirs" || eval "mkdir $as_dirs"
370 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371
372
373 } # as_fn_mkdir_p
374
375 # as_fn_executable_p FILE
376 # -----------------------
377 # Test if FILE is an executable regular file.
378 as_fn_executable_p ()
379 {
380 test -f "$1" && test -x "$1"
381 } # as_fn_executable_p
382 # as_fn_append VAR VALUE
383 # ----------------------
384 # Append the text in VALUE to the end of the definition contained in VAR. Take
385 # advantage of any shell optimizations that allow amortized linear growth over
386 # repeated appends, instead of the typical quadratic growth present in naive
387 # implementations.
388 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417
418 # as_fn_error STATUS ERROR [LINENO LOG_FD]
419 # ----------------------------------------
420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
422 # script with STATUS, using 1 if that was 0.
423 as_fn_error ()
424 {
425 as_status=$1; test $as_status -eq 0 && as_status=1
426 if test "$4"; then
427 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
428 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
429 fi
430 $as_echo "$as_me: error: $2" >&2
431 as_fn_exit $as_status
432 } # as_fn_error
433
434 if expr a : '\(a\)' >/dev/null 2>&1 &&
435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
436 as_expr=expr
437 else
438 as_expr=false
439 fi
440
441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
442 as_basename=basename
443 else
444 as_basename=false
445 fi
446
447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
448 as_dirname=dirname
449 else
450 as_dirname=false
451 fi
452
453 as_me=`$as_basename -- "$0" ||
454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
455 X"$0" : 'X\(//\)$' \| \
456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
457 $as_echo X/"$0" |
458 sed '/^.*\/\([^/][^/]*\)\/*$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\/\)$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\).*/{
467 s//\1/
468 q
469 }
470 s/.*/./; q'`
471
472 # Avoid depending upon Character Ranges.
473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
476 as_cr_digits='0123456789'
477 as_cr_alnum=$as_cr_Letters$as_cr_digits
478
479
480 as_lineno_1=$LINENO as_lineno_1a=$LINENO
481 as_lineno_2=$LINENO as_lineno_2a=$LINENO
482 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
483 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
484 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 sed -n '
486 p
487 /[$]LINENO/=
488 ' <$as_myself |
489 sed '
490 s/[$]LINENO.*/&-/
491 t lineno
492 b
493 :lineno
494 N
495 :loop
496 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497 t loop
498 s/-\n.*//
499 ' >$as_me.lineno &&
500 chmod +x "$as_me.lineno" ||
501 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
502
503 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
504 # already done that, so ensure we don't try to do so again and fall
505 # in an infinite loop. This has already happened in practice.
506 _as_can_reexec=no; export _as_can_reexec
507 # Don't try to exec as it changes $[0], causing all sort of problems
508 # (the dirname of $[0] is not the place where we might find the
509 # original and so on. Autoconf is especially sensitive to this).
510 . "./$as_me.lineno"
511 # Exit status is that of the last command.
512 exit
513 }
514
515 ECHO_C= ECHO_N= ECHO_T=
516 case `echo -n x` in #(((((
517 -n*)
518 case `echo 'xy\c'` in
519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
520 xy) ECHO_C='\c';;
521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
522 ECHO_T=' ';;
523 esac;;
524 *)
525 ECHO_N='-n';;
526 esac
527
528 rm -f conf$$ conf$$.exe conf$$.file
529 if test -d conf$$.dir; then
530 rm -f conf$$.dir/conf$$.file
531 else
532 rm -f conf$$.dir
533 mkdir conf$$.dir 2>/dev/null
534 fi
535 if (echo >conf$$.file) 2>/dev/null; then
536 if ln -s conf$$.file conf$$ 2>/dev/null; then
537 as_ln_s='ln -s'
538 # ... but there are two gotchas:
539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
541 # In both cases, we have to default to `cp -pR'.
542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
543 as_ln_s='cp -pR'
544 elif ln conf$$.file conf$$ 2>/dev/null; then
545 as_ln_s=ln
546 else
547 as_ln_s='cp -pR'
548 fi
549 else
550 as_ln_s='cp -pR'
551 fi
552 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
553 rmdir conf$$.dir 2>/dev/null
554
555 if mkdir -p . 2>/dev/null; then
556 as_mkdir_p='mkdir -p "$as_dir"'
557 else
558 test -d ./-p && rmdir ./-p
559 as_mkdir_p=false
560 fi
561
562 as_test_x='test -x'
563 as_executable_p=as_fn_executable_p
564
565 # Sed expression to map a string onto a valid CPP name.
566 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
567
568 # Sed expression to map a string onto a valid variable name.
569 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
570
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573
574 test -n "$DJDIR" || exec 7<&0 </dev/null
575 exec 6>&1
576
577 # Name of the host.
578 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
579 # so uname gets run too.
580 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582 #
583 # Initializations.
584 #
585 ac_default_prefix=/usr/local
586 ac_clean_files=
587 ac_config_libobj_dir=.
588 LIBOBJS=
589 cross_compiling=no
590 subdirs=
591 MFLAGS=
592 MAKEFLAGS=
593
594 # Identity of this package.
595 PACKAGE_NAME='ldapcpplib'
596 PACKAGE_TARNAME='ldapcpplib'
597 PACKAGE_VERSION=' '
598 PACKAGE_STRING='ldapcpplib '
599 PACKAGE_BUGREPORT='http://www.openldap.org/its/ '
600 PACKAGE_URL=''
601
602 ac_unique_file="src/LDAPConnection.h"
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 # include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 ac_subst_vars='am__EXEEXT_FALSE
640 am__EXEEXT_TRUE
641 LTLIBOBJS
642 LIBOBJS
643 CXXCPP
644 CPP
645 LT_SYS_LIBRARY_PATH
646 OTOOL64
647 OTOOL
648 LIPO
649 NMEDIT
650 DSYMUTIL
651 MANIFEST_TOOL
652 RANLIB
653 ac_ct_AR
654 AR
655 DLLTOOL
656 OBJDUMP
657 LN_S
658 NM
659 ac_ct_DUMPBIN
660 DUMPBIN
661 LD
662 FGREP
663 EGREP
664 GREP
665 SED
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 ac_ct_CC
670 CFLAGS
671 CC
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 LIBTOOL
681 am__fastdepCXX_FALSE
682 am__fastdepCXX_TRUE
683 CXXDEPMODE
684 am__nodep
685 AMDEPBACKSLASH
686 AMDEP_FALSE
687 AMDEP_TRUE
688 am__quote
689 am__include
690 DEPDIR
691 OBJEXT
692 EXEEXT
693 ac_ct_CXX
694 CPPFLAGS
695 LDFLAGS
696 CXXFLAGS
697 CXX
698 OPENLDAP_CPP_API_VERSION
699 AM_BACKSLASH
700 AM_DEFAULT_VERBOSITY
701 AM_DEFAULT_V
702 AM_V
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 target_alias
727 host_alias
728 build_alias
729 LIBS
730 ECHO_T
731 ECHO_N
732 ECHO_C
733 DEFS
734 mandir
735 localedir
736 libdir
737 psdir
738 pdfdir
739 dvidir
740 htmldir
741 infodir
742 docdir
743 oldincludedir
744 includedir
745 runstatedir
746 localstatedir
747 sharedstatedir
748 sysconfdir
749 datadir
750 datarootdir
751 libexecdir
752 sbindir
753 bindir
754 program_transform_name
755 prefix
756 exec_prefix
757 PACKAGE_URL
758 PACKAGE_BUGREPORT
759 PACKAGE_STRING
760 PACKAGE_VERSION
761 PACKAGE_TARNAME
762 PACKAGE_NAME
763 PATH_SEPARATOR
764 SHELL'
765 ac_subst_files=''
766 ac_user_opts='
767 enable_option_checking
768 enable_silent_rules
769 enable_dependency_tracking
770 enable_shared
771 enable_static
772 with_pic
773 enable_fast_install
774 with_aix_soname
775 with_gnu_ld
776 with_sysroot
777 enable_libtool_lock
778 enable_debug
779 with_libldap
780 with_ldap_includes
781 '
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CXX
786 CXXFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 CCC
791 CC
792 CFLAGS
793 LT_SYS_LIBRARY_PATH
794 CPP
795 CXXCPP'
796
797
798 # Initialize some variables set by options.
799 ac_init_help=
800 ac_init_version=false
801 ac_unrecognized_opts=
802 ac_unrecognized_sep=
803 # The variables have the same names as the options, with
804 # dashes changed to underlines.
805 cache_file=/dev/null
806 exec_prefix=NONE
807 no_create=
808 no_recursion=
809 prefix=NONE
810 program_prefix=NONE
811 program_suffix=NONE
812 program_transform_name=s,x,x,
813 silent=
814 site=
815 srcdir=
816 verbose=
817 x_includes=NONE
818 x_libraries=NONE
819
820 # Installation directory options.
821 # These are left unexpanded so users can "make install exec_prefix=/foo"
822 # and all the variables that are supposed to be based on exec_prefix
823 # by default will actually change.
824 # Use braces instead of parens because sh, perl, etc. also accept them.
825 # (The list follows the same order as the GNU Coding Standards.)
826 bindir='${exec_prefix}/bin'
827 sbindir='${exec_prefix}/sbin'
828 libexecdir='${exec_prefix}/libexec'
829 datarootdir='${prefix}/share'
830 datadir='${datarootdir}'
831 sysconfdir='${prefix}/etc'
832 sharedstatedir='${prefix}/com'
833 localstatedir='${prefix}/var'
834 runstatedir='${localstatedir}/run'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838 infodir='${datarootdir}/info'
839 htmldir='${docdir}'
840 dvidir='${docdir}'
841 pdfdir='${docdir}'
842 psdir='${docdir}'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
846
847 ac_prev=
848 ac_dashdash=
849 for ac_option
850 do
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
854 ac_prev=
855 continue
856 fi
857
858 case $ac_option in
859 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *=) ac_optarg= ;;
861 *) ac_optarg=yes ;;
862 esac
863
864 # Accept the important Cygnus configure options, so we can diagnose typos.
865
866 case $ac_dashdash$ac_option in
867 --)
868 ac_dashdash=yes ;;
869
870 -bindir | --bindir | --bindi | --bind | --bin | --bi)
871 ac_prev=bindir ;;
872 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
873 bindir=$ac_optarg ;;
874
875 -build | --build | --buil | --bui | --bu)
876 ac_prev=build_alias ;;
877 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
878 build_alias=$ac_optarg ;;
879
880 -cache-file | --cache-file | --cache-fil | --cache-fi \
881 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882 ac_prev=cache_file ;;
883 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885 cache_file=$ac_optarg ;;
886
887 --config-cache | -C)
888 cache_file=config.cache ;;
889
890 -datadir | --datadir | --datadi | --datad)
891 ac_prev=datadir ;;
892 -datadir=* | --datadir=* | --datadi=* | --datad=*)
893 datadir=$ac_optarg ;;
894
895 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896 | --dataroo | --dataro | --datar)
897 ac_prev=datarootdir ;;
898 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900 datarootdir=$ac_optarg ;;
901
902 -disable-* | --disable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911 "enable_$ac_useropt"
912 "*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=no ;;
917
918 -docdir | --docdir | --docdi | --doc | --do)
919 ac_prev=docdir ;;
920 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
921 docdir=$ac_optarg ;;
922
923 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
924 ac_prev=dvidir ;;
925 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
926 dvidir=$ac_optarg ;;
927
928 -enable-* | --enable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=\$ac_optarg ;;
943
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
952
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
955 with_gas=yes ;;
956
957 -help | --help | --hel | --he | -h)
958 ac_init_help=long ;;
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
963
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
968
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
970 ac_prev=htmldir ;;
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
972 | --ht=*)
973 htmldir=$ac_optarg ;;
974
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
981
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
983 ac_prev=infodir ;;
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
986
987 -libdir | --libdir | --libdi | --libd)
988 ac_prev=libdir ;;
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 libdir=$ac_optarg ;;
991
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
998
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1003
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1010
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1012 ac_prev=mandir ;;
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1015
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1018 with_fp=no ;;
1019
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1022 no_create=yes ;;
1023
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 no_recursion=yes ;;
1027
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1036
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1038 ac_prev=prefix ;;
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1041
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1048
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1055
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1072
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1074 ac_prev=pdfdir ;;
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1077
1078 -psdir | --psdir | --psdi | --psd | --ps)
1079 ac_prev=psdir ;;
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 psdir=$ac_optarg ;;
1082
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1085 silent=yes ;;
1086
1087 -runstatedir | --runstatedir | --runstatedi | --runstated \
1088 | --runstate | --runstat | --runsta | --runst | --runs \
1089 | --run | --ru | --r)
1090 ac_prev=runstatedir ;;
1091 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1092 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1093 | --run=* | --ru=* | --r=*)
1094 runstatedir=$ac_optarg ;;
1095
1096 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097 ac_prev=sbindir ;;
1098 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099 | --sbi=* | --sb=*)
1100 sbindir=$ac_optarg ;;
1101
1102 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104 | --sharedst | --shareds | --shared | --share | --shar \
1105 | --sha | --sh)
1106 ac_prev=sharedstatedir ;;
1107 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110 | --sha=* | --sh=*)
1111 sharedstatedir=$ac_optarg ;;
1112
1113 -site | --site | --sit)
1114 ac_prev=site ;;
1115 -site=* | --site=* | --sit=*)
1116 site=$ac_optarg ;;
1117
1118 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119 ac_prev=srcdir ;;
1120 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121 srcdir=$ac_optarg ;;
1122
1123 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124 | --syscon | --sysco | --sysc | --sys | --sy)
1125 ac_prev=sysconfdir ;;
1126 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128 sysconfdir=$ac_optarg ;;
1129
1130 -target | --target | --targe | --targ | --tar | --ta | --t)
1131 ac_prev=target_alias ;;
1132 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133 target_alias=$ac_optarg ;;
1134
1135 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 verbose=yes ;;
1137
1138 -version | --version | --versio | --versi | --vers | -V)
1139 ac_init_version=: ;;
1140
1141 -with-* | --with-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=\$ac_optarg ;;
1156
1157 -without-* | --without-*)
1158 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161 as_fn_error $? "invalid package name: $ac_useropt"
1162 ac_useropt_orig=$ac_useropt
1163 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164 case $ac_user_opts in
1165 *"
1166 "with_$ac_useropt"
1167 "*) ;;
1168 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169 ac_unrecognized_sep=', ';;
1170 esac
1171 eval with_$ac_useropt=no ;;
1172
1173 --x)
1174 # Obsolete; use --with-x.
1175 with_x=yes ;;
1176
1177 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178 | --x-incl | --x-inc | --x-in | --x-i)
1179 ac_prev=x_includes ;;
1180 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182 x_includes=$ac_optarg ;;
1183
1184 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186 ac_prev=x_libraries ;;
1187 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189 x_libraries=$ac_optarg ;;
1190
1191 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192 Try \`$0 --help' for more information"
1193 ;;
1194
1195 *=*)
1196 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197 # Reject names that are not valid shell variable names.
1198 case $ac_envvar in #(
1199 '' | [0-9]* | *[!_$as_cr_alnum]* )
1200 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201 esac
1202 eval $ac_envvar=\$ac_optarg
1203 export $ac_envvar ;;
1204
1205 *)
1206 # FIXME: should be removed in autoconf 3.0.
1207 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211 ;;
1212
1213 esac
1214 done
1215
1216 if test -n "$ac_prev"; then
1217 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218 as_fn_error $? "missing argument to $ac_option"
1219 fi
1220
1221 if test -n "$ac_unrecognized_opts"; then
1222 case $enable_option_checking in
1223 no) ;;
1224 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 esac
1227 fi
1228
1229 # Check all directory arguments for consistency.
1230 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231 datadir sysconfdir sharedstatedir localstatedir includedir \
1232 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233 libdir localedir mandir runstatedir
1234 do
1235 eval ac_val=\$$ac_var
1236 # Remove trailing slashes.
1237 case $ac_val in
1238 */ )
1239 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240 eval $ac_var=\$ac_val;;
1241 esac
1242 # Be sure to have absolute directory names.
1243 case $ac_val in
1244 [\\/$]* | ?:[\\/]* ) continue;;
1245 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246 esac
1247 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248 done
1249
1250 # There might be people who depend on the old broken behavior: `$host'
1251 # used to hold the argument of --host etc.
1252 # FIXME: To remove some day.
1253 build=$build_alias
1254 host=$host_alias
1255 target=$target_alias
1256
1257 # FIXME: To remove some day.
1258 if test "x$host_alias" != x; then
1259 if test "x$build_alias" = x; then
1260 cross_compiling=maybe
1261 elif test "x$build_alias" != "x$host_alias"; then
1262 cross_compiling=yes
1263 fi
1264 fi
1265
1266 ac_tool_prefix=
1267 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269 test "$silent" = yes && exec 6>/dev/null
1270
1271
1272 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273 ac_ls_di=`ls -di .` &&
1274 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275 as_fn_error $? "working directory cannot be determined"
1276 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277 as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$as_myself" ||
1285 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$as_myself" : 'X\(//\)[^/]' \| \
1287 X"$as_myself" : 'X\(//\)$' \| \
1288 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289 $as_echo X"$as_myself" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\).*/{
1303 s//\1/
1304 q
1305 }
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1310 fi
1311 else
1312 ac_srcdir_defaulted=no
1313 fi
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 fi
1318 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319 ac_abs_confdir=`(
1320 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321 pwd)`
1322 # When building in place, set srcdir=.
1323 if test "$ac_abs_confdir" = "$ac_pwd"; then
1324 srcdir=.
1325 fi
1326 # Remove unnecessary trailing slashes from srcdir.
1327 # Double slashes in file names in object file debugging info
1328 # mess up M-x gdb in Emacs.
1329 case $srcdir in
1330 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331 esac
1332 for ac_var in $ac_precious_vars; do
1333 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_env_${ac_var}_value=\$${ac_var}
1335 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 done
1338
1339 #
1340 # Report the --help message.
1341 #
1342 if test "$ac_init_help" = "long"; then
1343 # Omit some internal or obsolete options to make the list less imposing.
1344 # This message is too long to be a string in the A/UX 3.1 sh.
1345 cat <<_ACEOF
1346 \`configure' configures ldapcpplib to adapt to many kinds of systems.
1347
1348 Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351 VAR=VALUE. See below for descriptions of some of the useful variables.
1352
1353 Defaults for the options are specified in brackets.
1354
1355 Configuration:
1356 -h, --help display this help and exit
1357 --help=short display options specific to this package
1358 --help=recursive display the short help of all the included packages
1359 -V, --version display version information and exit
1360 -q, --quiet, --silent do not print \`checking ...' messages
1361 --cache-file=FILE cache test results in FILE [disabled]
1362 -C, --config-cache alias for \`--cache-file=config.cache'
1363 -n, --no-create do not create output files
1364 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365
1366 Installation directories:
1367 --prefix=PREFIX install architecture-independent files in PREFIX
1368 [$ac_default_prefix]
1369 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1370 [PREFIX]
1371
1372 By default, \`make install' will install all the files in
1373 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1374 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375 for instance \`--prefix=\$HOME'.
1376
1377 For better control, use the options below.
1378
1379 Fine tuning of the installation directories:
1380 --bindir=DIR user executables [EPREFIX/bin]
1381 --sbindir=DIR system admin executables [EPREFIX/sbin]
1382 --libexecdir=DIR program executables [EPREFIX/libexec]
1383 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1384 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1385 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1386 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/ldapcpplib]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1401
1402 cat <<\_ACEOF
1403
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1408
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 _ACEOF
1413 fi
1414
1415 if test -n "$ac_init_help"; then
1416 case $ac_init_help in
1417 short | recursive ) echo "Configuration of ldapcpplib :";;
1418 esac
1419 cat <<\_ACEOF
1420
1421 Optional Features:
1422 --disable-option-checking ignore unrecognized --enable/--with options
1423 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1424 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1425 --enable-silent-rules less verbose build output (undo: "make V=1")
1426 --disable-silent-rules verbose build output (undo: "make V=0")
1427 --enable-dependency-tracking
1428 do not reject slow dependency extractors
1429 --disable-dependency-tracking
1430 speeds up one-time build
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-static[=PKGS] build static libraries [default=yes]
1433 --enable-fast-install[=PKGS]
1434 optimize for fast installation [default=yes]
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1436 --enable-debug
1437
1438 Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1442 both]
1443 --with-aix-soname=aix|svr4|both
1444 shared library versioning (aka "SONAME") variant to
1445 provide on AIX, [default=aix].
1446 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1447 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1448 compiler's sysroot if not specified).
1449 --with-libldap=DIR Path to the libldap library /usr/local/lib
1450 --with-ldap-includes=DIR Path to the libldap include files /usr/local/include
1451
1452 Some influential environment variables:
1453 CXX C++ compiler command
1454 CXXFLAGS C++ compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 LIBS libraries to pass to the linker, e.g. -l<library>
1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459 you have headers in a nonstandard directory <include dir>
1460 CC C compiler command
1461 CFLAGS C compiler flags
1462 LT_SYS_LIBRARY_PATH
1463 User-defined run-time library search path.
1464 CPP C preprocessor
1465 CXXCPP C++ preprocessor
1466
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1469
1470 Report bugs to <http://www.openldap.org/its/ >.
1471 _ACEOF
1472 ac_status=$?
1473 fi
1474
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" ||
1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480 continue
1481 ac_builddir=.
1482
1483 case "$ac_dir" in
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485 *)
1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493 esac
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1498
1499 case $srcdir in
1500 .) # We are building in place.
1501 ac_srcdir=.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512 esac
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1523 else
1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1527 done
1528 fi
1529
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1532 cat <<\_ACEOF
1533 ldapcpplib configure
1534 generated by GNU Autoconf 2.69
1535
1536 Copyright (C) 2012 Free Software Foundation, Inc.
1537 This configure script is free software; the Free Software Foundation
1538 gives unlimited permission to copy, distribute and modify it.
1539
1540 Copyright 2000-2021 The OpenLDAP Foundation. All rights reserved.
1541 Restrictions apply, see COPYRIGHT and LICENSE files.
1542 _ACEOF
1543 exit
1544 fi
1545
1546 ## ------------------------ ##
1547 ## Autoconf initialization. ##
1548 ## ------------------------ ##
1549
1550 # ac_fn_cxx_try_compile LINENO
1551 # ----------------------------
1552 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1553 ac_fn_cxx_try_compile ()
1554 {
1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556 rm -f conftest.$ac_objext
1557 if { { ac_try="$ac_compile"
1558 case "(($ac_try" in
1559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1560 *) ac_try_echo=$ac_try;;
1561 esac
1562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1563 $as_echo "$ac_try_echo"; } >&5
1564 (eval "$ac_compile") 2>conftest.err
1565 ac_status=$?
1566 if test -s conftest.err; then
1567 grep -v '^ *+' conftest.err >conftest.er1
1568 cat conftest.er1 >&5
1569 mv -f conftest.er1 conftest.err
1570 fi
1571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1572 test $ac_status = 0; } && {
1573 test -z "$ac_cxx_werror_flag" ||
1574 test ! -s conftest.err
1575 } && test -s conftest.$ac_objext; then :
1576 ac_retval=0
1577 else
1578 $as_echo "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582 fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_cxx_try_compile
1587
1588 # ac_fn_c_try_compile LINENO
1589 # --------------------------
1590 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1591 ac_fn_c_try_compile ()
1592 {
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1596 case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599 esac
1600 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601 $as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1614 ac_retval=0
1615 else
1616 $as_echo "$as_me: failed program was:" >&5
1617 sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620 fi
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624 } # ac_fn_c_try_compile
1625
1626 # ac_fn_c_try_link LINENO
1627 # -----------------------
1628 # Try to link conftest.$ac_ext, and return whether this succeeded.
1629 ac_fn_c_try_link ()
1630 {
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext conftest$ac_exeext
1633 if { { ac_try="$ac_link"
1634 case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637 esac
1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639 $as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_link") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest$ac_exeext && {
1652 test "$cross_compiling" = yes ||
1653 test -x conftest$ac_exeext
1654 }; then :
1655 ac_retval=0
1656 else
1657 $as_echo "$as_me: failed program was:" >&5
1658 sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661 fi
1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664 # interfere with the next link command; also delete a directory that is
1665 # left behind by Apple's compiler. We do this before executing the actions.
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 as_fn_set_status $ac_retval
1669
1670 } # ac_fn_c_try_link
1671
1672 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1673 # -------------------------------------------------------
1674 # Tests whether HEADER exists and can be compiled using the include files in
1675 # INCLUDES, setting the cache variable VAR accordingly.
1676 ac_fn_c_check_header_compile ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \${$3+:} false; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1685 /* end confdefs.h. */
1686 $4
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_compile "$LINENO"; then :
1690 eval "$3=yes"
1691 else
1692 eval "$3=no"
1693 fi
1694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1695 fi
1696 eval ac_res=\$$3
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1698 $as_echo "$ac_res" >&6; }
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700
1701 } # ac_fn_c_check_header_compile
1702
1703 # ac_fn_c_try_cpp LINENO
1704 # ----------------------
1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_cpp ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } > conftest.i && {
1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_cpp
1739
1740 # ac_fn_c_try_run LINENO
1741 # ----------------------
1742 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1743 # that executables *can* be run.
1744 ac_fn_c_try_run ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_link"
1748 case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 $as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_link") 2>&5
1755 ac_status=$?
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1758 { { case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761 esac
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_try") 2>&5
1765 ac_status=$?
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; }; }; then :
1768 ac_retval=0
1769 else
1770 $as_echo "$as_me: program exited with status $ac_status" >&5
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1773
1774 ac_retval=$ac_status
1775 fi
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_run
1781
1782 # ac_fn_c_check_func LINENO FUNC VAR
1783 # ----------------------------------
1784 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1785 ac_fn_c_check_func ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792 else
1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1794 /* end confdefs.h. */
1795 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1797 #define $2 innocuous_$2
1798
1799 /* System header to define __stub macros and hopefully few prototypes,
1800 which can conflict with char $2 (); below.
1801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1802 <limits.h> exists even on freestanding compilers. */
1803
1804 #ifdef __STDC__
1805 # include <limits.h>
1806 #else
1807 # include <assert.h>
1808 #endif
1809
1810 #undef $2
1811
1812 /* Override any GCC internal prototype to avoid an error.
1813 Use char because int might match the return type of a GCC
1814 builtin and then its argument prototype would still apply. */
1815 #ifdef __cplusplus
1816 extern "C"
1817 #endif
1818 char $2 ();
1819 /* The GNU C library defines this for functions which it implements
1820 to always fail with ENOSYS. Some functions are actually named
1821 something starting with __ and the normal name is an alias. */
1822 #if defined __stub_$2 || defined __stub___$2
1823 choke me
1824 #endif
1825
1826 int
1827 main ()
1828 {
1829 return $2 ();
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_link "$LINENO"; then :
1835 eval "$3=yes"
1836 else
1837 eval "$3=no"
1838 fi
1839 rm -f core conftest.err conftest.$ac_objext \
1840 conftest$ac_exeext conftest.$ac_ext
1841 fi
1842 eval ac_res=\$$3
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1844 $as_echo "$ac_res" >&6; }
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846
1847 } # ac_fn_c_check_func
1848
1849 # ac_fn_cxx_try_cpp LINENO
1850 # ------------------------
1851 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1852 ac_fn_cxx_try_cpp ()
1853 {
1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1855 if { { ac_try="$ac_cpp conftest.$ac_ext"
1856 case "(($ac_try" in
1857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858 *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1863 ac_status=$?
1864 if test -s conftest.err; then
1865 grep -v '^ *+' conftest.err >conftest.er1
1866 cat conftest.er1 >&5
1867 mv -f conftest.er1 conftest.err
1868 fi
1869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870 test $ac_status = 0; } > conftest.i && {
1871 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1872 test ! -s conftest.err
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=1
1880 fi
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884 } # ac_fn_cxx_try_cpp
1885
1886 # ac_fn_cxx_try_link LINENO
1887 # -------------------------
1888 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_link ()
1890 {
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 rm -f conftest.$ac_objext conftest$ac_exeext
1893 if { { ac_try="$ac_link"
1894 case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>conftest.err
1901 ac_status=$?
1902 if test -s conftest.err; then
1903 grep -v '^ *+' conftest.err >conftest.er1
1904 cat conftest.er1 >&5
1905 mv -f conftest.er1 conftest.err
1906 fi
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; } && {
1909 test -z "$ac_cxx_werror_flag" ||
1910 test ! -s conftest.err
1911 } && test -s conftest$ac_exeext && {
1912 test "$cross_compiling" = yes ||
1913 test -x conftest$ac_exeext
1914 }; then :
1915 ac_retval=0
1916 else
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=1
1921 fi
1922 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1923 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1924 # interfere with the next link command; also delete a directory that is
1925 # left behind by Apple's compiler. We do this before executing the actions.
1926 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1927 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 as_fn_set_status $ac_retval
1929
1930 } # ac_fn_cxx_try_link
1931
1932 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1933 # -------------------------------------------------------
1934 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1935 # the include files in INCLUDES and setting the cache variable VAR
1936 # accordingly.
1937 ac_fn_c_check_header_mongrel ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if eval \${$3+:} false; then :
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942 $as_echo_n "checking for $2... " >&6; }
1943 if eval \${$3+:} false; then :
1944 $as_echo_n "(cached) " >&6
1945 fi
1946 eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948 $as_echo "$ac_res" >&6; }
1949 else
1950 # Is the header compilable?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1952 $as_echo_n "checking $2 usability... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1955 $4
1956 #include <$2>
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 ac_header_compiler=yes
1960 else
1961 ac_header_compiler=no
1962 fi
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1965 $as_echo "$ac_header_compiler" >&6; }
1966
1967 # Is the header present?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1969 $as_echo_n "checking $2 presence... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 #include <$2>
1973 _ACEOF
1974 if ac_fn_c_try_cpp "$LINENO"; then :
1975 ac_header_preproc=yes
1976 else
1977 ac_header_preproc=no
1978 fi
1979 rm -f conftest.err conftest.i conftest.$ac_ext
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1981 $as_echo "$ac_header_preproc" >&6; }
1982
1983 # So? What about this header?
1984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1985 yes:no: )
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1987 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1989 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 ;;
1991 no:yes:* )
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1993 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1995 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1997 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1999 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2001 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 ( $as_echo "## -------------------------------------------- ##
2003 ## Report this to http://www.openldap.org/its/ ##
2004 ## -------------------------------------------- ##"
2005 ) | sed "s/^/$as_me: WARNING: /" >&2
2006 ;;
2007 esac
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011 $as_echo_n "(cached) " >&6
2012 else
2013 eval "$3=\$ac_header_compiler"
2014 fi
2015 eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017 $as_echo "$ac_res" >&6; }
2018 fi
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_header_mongrel
2022 cat >config.log <<_ACEOF
2023 This file contains any messages produced by compilers while
2024 running configure, to aid debugging if configure makes a mistake.
2025
2026 It was created by ldapcpplib $as_me , which was
2027 generated by GNU Autoconf 2.69. Invocation command line was
2028
2029 $ $0 $@
2030
2031 _ACEOF
2032 exec 5>>config.log
2033 {
2034 cat <<_ASUNAME
2035 ## --------- ##
2036 ## Platform. ##
2037 ## --------- ##
2038
2039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2044
2045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2047
2048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2051 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2055
2056 _ASUNAME
2057
2058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2059 for as_dir in $PATH
2060 do
2061 IFS=$as_save_IFS
2062 test -z "$as_dir" && as_dir=.
2063 $as_echo "PATH: $as_dir"
2064 done
2065 IFS=$as_save_IFS
2066
2067 } >&5
2068
2069 cat >&5 <<_ACEOF
2070
2071
2072 ## ----------- ##
2073 ## Core tests. ##
2074 ## ----------- ##
2075
2076 _ACEOF
2077
2078
2079 # Keep a trace of the command line.
2080 # Strip out --no-create and --no-recursion so they do not pile up.
2081 # Strip out --silent because we don't want to record it for future runs.
2082 # Also quote any args containing shell meta-characters.
2083 # Make two passes to allow for proper duplicate-argument suppression.
2084 ac_configure_args=
2085 ac_configure_args0=
2086 ac_configure_args1=
2087 ac_must_keep_next=false
2088 for ac_pass in 1 2
2089 do
2090 for ac_arg
2091 do
2092 case $ac_arg in
2093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2095 | -silent | --silent | --silen | --sile | --sil)
2096 continue ;;
2097 *\'*)
2098 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2099 esac
2100 case $ac_pass in
2101 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2102 2)
2103 as_fn_append ac_configure_args1 " '$ac_arg'"
2104 if test $ac_must_keep_next = true; then
2105 ac_must_keep_next=false # Got value, back to normal.
2106 else
2107 case $ac_arg in
2108 *=* | --config-cache | -C | -disable-* | --disable-* \
2109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2111 | -with-* | --with-* | -without-* | --without-* | --x)
2112 case "$ac_configure_args0 " in
2113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2114 esac
2115 ;;
2116 -* ) ac_must_keep_next=true ;;
2117 esac
2118 fi
2119 as_fn_append ac_configure_args " '$ac_arg'"
2120 ;;
2121 esac
2122 done
2123 done
2124 { ac_configure_args0=; unset ac_configure_args0;}
2125 { ac_configure_args1=; unset ac_configure_args1;}
2126
2127 # When interrupted or exit'd, cleanup temporary files, and complete
2128 # config.log. We remove comments because anyway the quotes in there
2129 # would cause problems or look ugly.
2130 # WARNING: Use '\'' to represent an apostrophe within the trap.
2131 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2132 trap 'exit_status=$?
2133 # Save into config.log some information that might help in debugging.
2134 {
2135 echo
2136
2137 $as_echo "## ---------------- ##
2138 ## Cache variables. ##
2139 ## ---------------- ##"
2140 echo
2141 # The following way of writing the cache mishandles newlines in values,
2142 (
2143 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2144 eval ac_val=\$$ac_var
2145 case $ac_val in #(
2146 *${as_nl}*)
2147 case $ac_var in #(
2148 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2149 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2150 esac
2151 case $ac_var in #(
2152 _ | IFS | as_nl) ;; #(
2153 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2154 *) { eval $ac_var=; unset $ac_var;} ;;
2155 esac ;;
2156 esac
2157 done
2158 (set) 2>&1 |
2159 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2160 *${as_nl}ac_space=\ *)
2161 sed -n \
2162 "s/'\''/'\''\\\\'\'''\''/g;
2163 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2164 ;; #(
2165 *)
2166 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167 ;;
2168 esac |
2169 sort
2170 )
2171 echo
2172
2173 $as_echo "## ----------------- ##
2174 ## Output variables. ##
2175 ## ----------------- ##"
2176 echo
2177 for ac_var in $ac_subst_vars
2178 do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 $as_echo "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2186
2187 if test -n "$ac_subst_files"; then
2188 $as_echo "## ------------------- ##
2189 ## File substitutions. ##
2190 ## ------------------- ##"
2191 echo
2192 for ac_var in $ac_subst_files
2193 do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in
2196 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2197 esac
2198 $as_echo "$ac_var='\''$ac_val'\''"
2199 done | sort
2200 echo
2201 fi
2202
2203 if test -s confdefs.h; then
2204 $as_echo "## ----------- ##
2205 ## confdefs.h. ##
2206 ## ----------- ##"
2207 echo
2208 cat confdefs.h
2209 echo
2210 fi
2211 test "$ac_signal" != 0 &&
2212 $as_echo "$as_me: caught signal $ac_signal"
2213 $as_echo "$as_me: exit $exit_status"
2214 } >&5
2215 rm -f core *.core core.conftest.* &&
2216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2217 exit $exit_status
2218 ' 0
2219 for ac_signal in 1 2 13 15; do
2220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2221 done
2222 ac_signal=0
2223
2224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2225 rm -f -r conftest* confdefs.h
2226
2227 $as_echo "/* confdefs.h */" > confdefs.h
2228
2229 # Predefined preprocessor variables.
2230
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_NAME "$PACKAGE_NAME"
2233 _ACEOF
2234
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2237 _ACEOF
2238
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2241 _ACEOF
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_STRING "$PACKAGE_STRING"
2245 _ACEOF
2246
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2249 _ACEOF
2250
2251 cat >>confdefs.h <<_ACEOF
2252 #define PACKAGE_URL "$PACKAGE_URL"
2253 _ACEOF
2254
2255
2256 # Let the site file select an alternate cache file if it wants to.
2257 # Prefer an explicitly selected file to automatically selected ones.
2258 ac_site_file1=NONE
2259 ac_site_file2=NONE
2260 if test -n "$CONFIG_SITE"; then
2261 # We do not want a PATH search for config.site.
2262 case $CONFIG_SITE in #((
2263 -*) ac_site_file1=./$CONFIG_SITE;;
2264 */*) ac_site_file1=$CONFIG_SITE;;
2265 *) ac_site_file1=./$CONFIG_SITE;;
2266 esac
2267 elif test "x$prefix" != xNONE; then
2268 ac_site_file1=$prefix/share/config.site
2269 ac_site_file2=$prefix/etc/config.site
2270 else
2271 ac_site_file1=$ac_default_prefix/share/config.site
2272 ac_site_file2=$ac_default_prefix/etc/config.site
2273 fi
2274 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2275 do
2276 test "x$ac_site_file" = xNONE && continue
2277 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2279 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2280 sed 's/^/| /' "$ac_site_file" >&5
2281 . "$ac_site_file" \
2282 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2284 as_fn_error $? "failed to load site script $ac_site_file
2285 See \`config.log' for more details" "$LINENO" 5; }
2286 fi
2287 done
2288
2289 if test -r "$cache_file"; then
2290 # Some versions of bash will fail to source /dev/null (special files
2291 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2294 $as_echo "$as_me: loading cache $cache_file" >&6;}
2295 case $cache_file in
2296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297 *) . "./$cache_file";;
2298 esac
2299 fi
2300 else
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2302 $as_echo "$as_me: creating cache $cache_file" >&6;}
2303 >$cache_file
2304 fi
2305
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311 eval ac_new_set=\$ac_env_${ac_var}_set
2312 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313 eval ac_new_val=\$ac_env_${ac_var}_value
2314 case $ac_old_set,$ac_new_set in
2315 set,)
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318 ac_cache_corrupted=: ;;
2319 ,set)
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2321 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322 ac_cache_corrupted=: ;;
2323 ,);;
2324 *)
2325 if test "x$ac_old_val" != "x$ac_new_val"; then
2326 # differences in whitespace do not lead to failure.
2327 ac_old_val_w=`echo x $ac_old_val`
2328 ac_new_val_w=`echo x $ac_new_val`
2329 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2331 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2332 ac_cache_corrupted=:
2333 else
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2335 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2336 eval $ac_var=\$ac_old_val
2337 fi
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2339 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2341 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2342 fi;;
2343 esac
2344 # Pass precious variables to config.status.
2345 if test "$ac_new_set" = set; then
2346 case $ac_new_val in
2347 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 *) ac_arg=$ac_var=$ac_new_val ;;
2349 esac
2350 case " $ac_configure_args " in
2351 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2352 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2353 esac
2354 fi
2355 done
2356 if $ac_cache_corrupted; then
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2360 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2361 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2362 fi
2363 ## -------------------- ##
2364 ## Main body of script. ##
2365 ## -------------------- ##
2366
2367 ac_ext=c
2368 ac_cpp='$CPP $CPPFLAGS'
2369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2372
2373
2374
2375 am__api_version='1.15'
2376
2377 ac_aux_dir=
2378 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2379 if test -f "$ac_dir/install-sh"; then
2380 ac_aux_dir=$ac_dir
2381 ac_install_sh="$ac_aux_dir/install-sh -c"
2382 break
2383 elif test -f "$ac_dir/install.sh"; then
2384 ac_aux_dir=$ac_dir
2385 ac_install_sh="$ac_aux_dir/install.sh -c"
2386 break
2387 elif test -f "$ac_dir/shtool"; then
2388 ac_aux_dir=$ac_dir
2389 ac_install_sh="$ac_aux_dir/shtool install -c"
2390 break
2391 fi
2392 done
2393 if test -z "$ac_aux_dir"; then
2394 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2395 fi
2396
2397 # These three variables are undocumented and unsupported,
2398 # and are intended to be withdrawn in a future Autoconf release.
2399 # They can cause serious problems if a builder's source tree is in a directory
2400 # whose full name contains unusual characters.
2401 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2402 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2403 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2404
2405
2406 # Find a good install program. We prefer a C program (faster),
2407 # so one script is as good as another. But avoid the broken or
2408 # incompatible versions:
2409 # SysV /etc/install, /usr/sbin/install
2410 # SunOS /usr/etc/install
2411 # IRIX /sbin/install
2412 # AIX /bin/install
2413 # AmigaOS /C/install, which installs bootblocks on floppy discs
2414 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2415 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2416 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2417 # OS/2's system install, which has a completely different semantic
2418 # ./install, which can be erroneously created by make from ./install.sh.
2419 # Reject install programs that cannot install multiple files.
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2421 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2422 if test -z "$INSTALL"; then
2423 if ${ac_cv_path_install+:} false; then :
2424 $as_echo_n "(cached) " >&6
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 # Account for people who put trailing slashes in PATH elements.
2432 case $as_dir/ in #((
2433 ./ | .// | /[cC]/* | \
2434 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2435 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2436 /usr/ucb/* ) ;;
2437 *)
2438 # OSF1 and SCO ODT 3.0 have their own names for install.
2439 # Don't use installbsd from OSF since it installs stuff as root
2440 # by default.
2441 for ac_prog in ginstall scoinst install; do
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2444 if test $ac_prog = install &&
2445 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2446 # AIX install. It has an incompatible calling convention.
2447 :
2448 elif test $ac_prog = install &&
2449 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2450 # program-specific install script used by HP pwplus--don't use.
2451 :
2452 else
2453 rm -rf conftest.one conftest.two conftest.dir
2454 echo one > conftest.one
2455 echo two > conftest.two
2456 mkdir conftest.dir
2457 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2458 test -s conftest.one && test -s conftest.two &&
2459 test -s conftest.dir/conftest.one &&
2460 test -s conftest.dir/conftest.two
2461 then
2462 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2463 break 3
2464 fi
2465 fi
2466 fi
2467 done
2468 done
2469 ;;
2470 esac
2471
2472 done
2473 IFS=$as_save_IFS
2474
2475 rm -rf conftest.one conftest.two conftest.dir
2476
2477 fi
2478 if test "${ac_cv_path_install+set}" = set; then
2479 INSTALL=$ac_cv_path_install
2480 else
2481 # As a last resort, use the slow shell script. Don't cache a
2482 # value for INSTALL within a source directory, because that will
2483 # break other packages using the cache if that directory is
2484 # removed, or if the value is a relative name.
2485 INSTALL=$ac_install_sh
2486 fi
2487 fi
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2489 $as_echo "$INSTALL" >&6; }
2490
2491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2492 # It thinks the first close brace ends the variable substitution.
2493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2494
2495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2496
2497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2500 $as_echo_n "checking whether build environment is sane... " >&6; }
2501 # Reject unsafe characters in $srcdir or the absolute working directory
2502 # name. Accept space and tab only in the latter.
2503 am_lf='
2504 '
2505 case `pwd` in
2506 *[\\\"\#\$\&\'\`$am_lf]*)
2507 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2508 esac
2509 case $srcdir in
2510 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2511 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2512 esac
2513
2514 # Do 'set' in a subshell so we don't clobber the current shell's
2515 # arguments. Must try -L first in case configure is actually a
2516 # symlink; some systems play weird games with the mod time of symlinks
2517 # (eg FreeBSD returns the mod time of the symlink's containing
2518 # directory).
2519 if (
2520 am_has_slept=no
2521 for am_try in 1 2; do
2522 echo "timestamp, slept: $am_has_slept" > conftest.file
2523 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2524 if test "$*" = "X"; then
2525 # -L didn't work.
2526 set X `ls -t "$srcdir/configure" conftest.file`
2527 fi
2528 if test "$*" != "X $srcdir/configure conftest.file" \
2529 && test "$*" != "X conftest.file $srcdir/configure"; then
2530
2531 # If neither matched, then we have a broken ls. This can happen
2532 # if, for instance, CONFIG_SHELL is bash and it inherits a
2533 # broken ls alias from the environment. This has actually
2534 # happened. Such a system could not be considered "sane".
2535 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2536 alias in your environment" "$LINENO" 5
2537 fi
2538 if test "$2" = conftest.file || test $am_try -eq 2; then
2539 break
2540 fi
2541 # Just in case.
2542 sleep 1
2543 am_has_slept=yes
2544 done
2545 test "$2" = conftest.file
2546 )
2547 then
2548 # Ok.
2549 :
2550 else
2551 as_fn_error $? "newly created file is older than distributed files!
2552 Check your system clock" "$LINENO" 5
2553 fi
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2555 $as_echo "yes" >&6; }
2556 # If we didn't sleep, we still need to ensure time stamps of config.status and
2557 # generated files are strictly newer.
2558 am_sleep_pid=
2559 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2560 ( sleep 1 ) &
2561 am_sleep_pid=$!
2562 fi
2563
2564 rm -f conftest.file
2565
2566 test "$program_prefix" != NONE &&
2567 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2568 # Use a double $ so make ignores it.
2569 test "$program_suffix" != NONE &&
2570 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2571 # Double any \ or $.
2572 # By default was `s,x,x', remove it if useless.
2573 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2574 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2575
2576 # Expand $ac_aux_dir to an absolute path.
2577 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2578
2579 if test x"${MISSING+set}" != xset; then
2580 case $am_aux_dir in
2581 *\ * | *\ *)
2582 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2583 *)
2584 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2585 esac
2586 fi
2587 # Use eval to expand $SHELL
2588 if eval "$MISSING --is-lightweight"; then
2589 am_missing_run="$MISSING "
2590 else
2591 am_missing_run=
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2593 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2594 fi
2595
2596 if test x"${install_sh+set}" != xset; then
2597 case $am_aux_dir in
2598 *\ * | *\ *)
2599 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2600 *)
2601 install_sh="\${SHELL} $am_aux_dir/install-sh"
2602 esac
2603 fi
2604
2605 # Installed binaries are usually stripped using 'strip' when the user
2606 # run "make install-strip". However 'strip' might not be the right
2607 # tool to use in cross-compilation environments, therefore Automake
2608 # will honor the 'STRIP' environment variable to overrule this program.
2609 if test "$cross_compiling" != no; then
2610 if test -n "$ac_tool_prefix"; then
2611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2612 set dummy ${ac_tool_prefix}strip; ac_word=$2
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2614 $as_echo_n "checking for $ac_word... " >&6; }
2615 if ${ac_cv_prog_STRIP+:} false; then :
2616 $as_echo_n "(cached) " >&6
2617 else
2618 if test -n "$STRIP"; then
2619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2620 else
2621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 for as_dir in $PATH
2623 do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
2626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 break 2
2631 fi
2632 done
2633 done
2634 IFS=$as_save_IFS
2635
2636 fi
2637 fi
2638 STRIP=$ac_cv_prog_STRIP
2639 if test -n "$STRIP"; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2641 $as_echo "$STRIP" >&6; }
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2644 $as_echo "no" >&6; }
2645 fi
2646
2647
2648 fi
2649 if test -z "$ac_cv_prog_STRIP"; then
2650 ac_ct_STRIP=$STRIP
2651 # Extract the first word of "strip", so it can be a program name with args.
2652 set dummy strip; ac_word=$2
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2654 $as_echo_n "checking for $ac_word... " >&6; }
2655 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 if test -n "$ac_ct_STRIP"; then
2659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2660 else
2661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662 for as_dir in $PATH
2663 do
2664 IFS=$as_save_IFS
2665 test -z "$as_dir" && as_dir=.
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2668 ac_cv_prog_ac_ct_STRIP="strip"
2669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2670 break 2
2671 fi
2672 done
2673 done
2674 IFS=$as_save_IFS
2675
2676 fi
2677 fi
2678 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2679 if test -n "$ac_ct_STRIP"; then
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2681 $as_echo "$ac_ct_STRIP" >&6; }
2682 else
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2684 $as_echo "no" >&6; }
2685 fi
2686
2687 if test "x$ac_ct_STRIP" = x; then
2688 STRIP=":"
2689 else
2690 case $cross_compiling:$ac_tool_warned in
2691 yes:)
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2694 ac_tool_warned=yes ;;
2695 esac
2696 STRIP=$ac_ct_STRIP
2697 fi
2698 else
2699 STRIP="$ac_cv_prog_STRIP"
2700 fi
2701
2702 fi
2703 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2704
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2706 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2707 if test -z "$MKDIR_P"; then
2708 if ${ac_cv_path_mkdir+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2713 do
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_prog in mkdir gmkdir; do
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2719 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2720 'mkdir (GNU coreutils) '* | \
2721 'mkdir (coreutils) '* | \
2722 'mkdir (fileutils) '4.1*)
2723 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2724 break 3;;
2725 esac
2726 done
2727 done
2728 done
2729 IFS=$as_save_IFS
2730
2731 fi
2732
2733 test -d ./--version && rmdir ./--version
2734 if test "${ac_cv_path_mkdir+set}" = set; then
2735 MKDIR_P="$ac_cv_path_mkdir -p"
2736 else
2737 # As a last resort, use the slow shell script. Don't cache a
2738 # value for MKDIR_P within a source directory, because that will
2739 # break other packages using the cache if that directory is
2740 # removed, or if the value is a relative name.
2741 MKDIR_P="$ac_install_sh -d"
2742 fi
2743 fi
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2745 $as_echo "$MKDIR_P" >&6; }
2746
2747 for ac_prog in gawk mawk nawk awk
2748 do
2749 # Extract the first word of "$ac_prog", so it can be a program name with args.
2750 set dummy $ac_prog; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if ${ac_cv_prog_AWK+:} false; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test -n "$AWK"; then
2757 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2766 ac_cv_prog_AWK="$ac_prog"
2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 AWK=$ac_cv_prog_AWK
2777 if test -n "$AWK"; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2779 $as_echo "$AWK" >&6; }
2780 else
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782 $as_echo "no" >&6; }
2783 fi
2784
2785
2786 test -n "$AWK" && break
2787 done
2788
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2790 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2791 set x ${MAKE-make}
2792 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2793 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2794 $as_echo_n "(cached) " >&6
2795 else
2796 cat >conftest.make <<\_ACEOF
2797 SHELL = /bin/sh
2798 all:
2799 @echo '@@@%%%=$(MAKE)=@@@%%%'
2800 _ACEOF
2801 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2802 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2803 *@@@%%%=?*=@@@%%%*)
2804 eval ac_cv_prog_make_${ac_make}_set=yes;;
2805 *)
2806 eval ac_cv_prog_make_${ac_make}_set=no;;
2807 esac
2808 rm -f conftest.make
2809 fi
2810 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2812 $as_echo "yes" >&6; }
2813 SET_MAKE=
2814 else
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 $as_echo "no" >&6; }
2817 SET_MAKE="MAKE=${MAKE-make}"
2818 fi
2819
2820 rm -rf .tst 2>/dev/null
2821 mkdir .tst 2>/dev/null
2822 if test -d .tst; then
2823 am__leading_dot=.
2824 else
2825 am__leading_dot=_
2826 fi
2827 rmdir .tst 2>/dev/null
2828
2829 # Check whether --enable-silent-rules was given.
2830 if test "${enable_silent_rules+set}" = set; then :
2831 enableval=$enable_silent_rules;
2832 fi
2833
2834 case $enable_silent_rules in # (((
2835 yes) AM_DEFAULT_VERBOSITY=0;;
2836 no) AM_DEFAULT_VERBOSITY=1;;
2837 *) AM_DEFAULT_VERBOSITY=1;;
2838 esac
2839 am_make=${MAKE-make}
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2841 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2842 if ${am_cv_make_support_nested_variables+:} false; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if $as_echo 'TRUE=$(BAR$(V))
2846 BAR0=false
2847 BAR1=true
2848 V=1
2849 am__doit:
2850 @$(TRUE)
2851 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2852 am_cv_make_support_nested_variables=yes
2853 else
2854 am_cv_make_support_nested_variables=no
2855 fi
2856 fi
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2858 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2859 if test $am_cv_make_support_nested_variables = yes; then
2860 AM_V='$(V)'
2861 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2862 else
2863 AM_V=$AM_DEFAULT_VERBOSITY
2864 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2865 fi
2866 AM_BACKSLASH='\'
2867
2868 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2869 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2870 # is not polluted with repeated "-I."
2871 am__isrc=' -I$(srcdir)'
2872 # test to see if srcdir already configured
2873 if test -f $srcdir/config.status; then
2874 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2875 fi
2876 fi
2877
2878 # test whether we have cygpath
2879 if test -z "$CYGPATH_W"; then
2880 if (cygpath --version) >/dev/null 2>/dev/null; then
2881 CYGPATH_W='cygpath -w'
2882 else
2883 CYGPATH_W=echo
2884 fi
2885 fi
2886
2887
2888 # Define the identity of the package.
2889 PACKAGE='ldapcpplib'
2890 VERSION=' '
2891
2892
2893 cat >>confdefs.h <<_ACEOF
2894 #define PACKAGE "$PACKAGE"
2895 _ACEOF
2896
2897
2898 cat >>confdefs.h <<_ACEOF
2899 #define VERSION "$VERSION"
2900 _ACEOF
2901
2902 # Some tools Automake needs.
2903
2904 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2905
2906
2907 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2908
2909
2910 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2911
2912
2913 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2914
2915
2916 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2917
2918 # For better backward compatibility. To be removed once Automake 1.9.x
2919 # dies out for good. For more background, see:
2920 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2921 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2922 mkdir_p='$(MKDIR_P)'
2923
2924 # We need awk for the "check" target (and possibly the TAP driver). The
2925 # system "awk" is bad on some platforms.
2926 # Always define AMTAR for backward compatibility. Yes, it's still used
2927 # in the wild :-( We should find a proper way to deprecate it ...
2928 AMTAR='$${TAR-tar}'
2929
2930
2931 # We'll loop over all known methods to create a tar archive until one works.
2932 _am_tools='gnutar pax cpio none'
2933
2934 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2935
2936
2937
2938
2939
2940
2941 # POSIX will say in a future version that running "rm -f" with no argument
2942 # is OK; and we want to be able to make that assumption in our Makefile
2943 # recipes. So use an aggressive probe to check that the usage we want is
2944 # actually supported "in the wild" to an acceptable degree.
2945 # See automake bug#10828.
2946 # To make any issue more visible, cause the running configure to be aborted
2947 # by default if the 'rm' program in use doesn't match our expectations; the
2948 # user can still override this though.
2949 if rm -f && rm -fr && rm -rf; then : OK; else
2950 cat >&2 <<'END'
2951 Oops!
2952
2953 Your 'rm' program seems unable to run without file operands specified
2954 on the command line, even when the '-f' option is present. This is contrary
2955 to the behaviour of most rm programs out there, and not conforming with
2956 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2957
2958 Please tell bug-automake@gnu.org about your system, including the value
2959 of your $PATH and any error possibly output before this message. This
2960 can help us improve future automake versions.
2961
2962 END
2963 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2964 echo 'Configuration will proceed anyway, since you have set the' >&2
2965 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2966 echo >&2
2967 else
2968 cat >&2 <<'END'
2969 Aborting the configuration process, to ensure you take notice of the issue.
2970
2971 You can download and install GNU coreutils to get an 'rm' implementation
2972 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2973
2974 If you want to complete the configuration process using your problematic
2975 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2976 to "yes", and re-run configure.
2977
2978 END
2979 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2980 fi
2981 fi
2982
2983 ac_config_headers="$ac_config_headers src/config.h"
2984
2985
2986 eval `$ac_aux_dir/version.sh`
2987 if test -z "$OL_CPP_API_RELEASE"; then
2988 as_fn_error $? "could not determine version" "$LINENO" 5
2989 fi
2990
2991 VERSION=$OL_CPP_API_RELEASE
2992 OPENLDAP_CPP_API_VERSION=$OL_CPP_API_VERSION
2993
2994
2995
2996 ac_ext=cpp
2997 ac_cpp='$CXXCPP $CPPFLAGS'
2998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3001 if test -z "$CXX"; then
3002 if test -n "$CCC"; then
3003 CXX=$CCC
3004 else
3005 if test -n "$ac_tool_prefix"; then
3006 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3007 do
3008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_CXX+:} false; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CXX"; then
3016 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 CXX=$ac_cv_prog_CXX
3036 if test -n "$CXX"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3038 $as_echo "$CXX" >&6; }
3039 else
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 test -n "$CXX" && break
3046 done
3047 fi
3048 if test -z "$CXX"; then
3049 ac_ct_CXX=$CXX
3050 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3051 do
3052 # Extract the first word of "$ac_prog", so it can be a program name with args.
3053 set dummy $ac_prog; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3057 $as_echo_n "(cached) " >&6
3058 else
3059 if test -n "$ac_ct_CXX"; then
3060 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065 IFS=$as_save_IFS
3066 test -z "$as_dir" && as_dir=.
3067 for ac_exec_ext in '' $ac_executable_extensions; do
3068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069 ac_cv_prog_ac_ct_CXX="$ac_prog"
3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 break 2
3072 fi
3073 done
3074 done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3080 if test -n "$ac_ct_CXX"; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3082 $as_echo "$ac_ct_CXX" >&6; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088
3089 test -n "$ac_ct_CXX" && break
3090 done
3091
3092 if test "x$ac_ct_CXX" = x; then
3093 CXX="g++"
3094 else
3095 case $cross_compiling:$ac_tool_warned in
3096 yes:)
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3099 ac_tool_warned=yes ;;
3100 esac
3101 CXX=$ac_ct_CXX
3102 fi
3103 fi
3104
3105 fi
3106 fi
3107 # Provide some information about the compiler.
3108 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3109 set X $ac_compile
3110 ac_compiler=$2
3111 for ac_option in --version -v -V -qversion; do
3112 { { ac_try="$ac_compiler $ac_option >&5"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3120 ac_status=$?
3121 if test -s conftest.err; then
3122 sed '10a\
3123 ... rest of stderr output deleted ...
3124 10q' conftest.err >conftest.er1
3125 cat conftest.er1 >&5
3126 fi
3127 rm -f conftest.er1 conftest.err
3128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }
3130 done
3131
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3134
3135 int
3136 main ()
3137 {
3138
3139 ;
3140 return 0;
3141 }
3142 _ACEOF
3143 ac_clean_files_save=$ac_clean_files
3144 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3145 # Try to create an executable without -o first, disregard a.out.
3146 # It will help us diagnose broken compilers, and finding out an intuition
3147 # of exeext.
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3149 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3150 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3151
3152 # The possible output files:
3153 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3154
3155 ac_rmfiles=
3156 for ac_file in $ac_files
3157 do
3158 case $ac_file in
3159 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3160 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3161 esac
3162 done
3163 rm -f $ac_rmfiles
3164
3165 if { { ac_try="$ac_link_default"
3166 case "(($ac_try" in
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3169 esac
3170 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3171 $as_echo "$ac_try_echo"; } >&5
3172 (eval "$ac_link_default") 2>&5
3173 ac_status=$?
3174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3175 test $ac_status = 0; }; then :
3176 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3177 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3178 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3179 # so that the user can short-circuit this test for compilers unknown to
3180 # Autoconf.
3181 for ac_file in $ac_files ''
3182 do
3183 test -f "$ac_file" || continue
3184 case $ac_file in
3185 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3186 ;;
3187 [ab].out )
3188 # We found the default executable, but exeext='' is most
3189 # certainly right.
3190 break;;
3191 *.* )
3192 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3193 then :; else
3194 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195 fi
3196 # We set ac_cv_exeext here because the later test for it is not
3197 # safe: cross compilers may not add the suffix if given an `-o'
3198 # argument, so we may need to know it at that point already.
3199 # Even if this section looks crufty: it has the advantage of
3200 # actually working.
3201 break;;
3202 * )
3203 break;;
3204 esac
3205 done
3206 test "$ac_cv_exeext" = no && ac_cv_exeext=
3207
3208 else
3209 ac_file=''
3210 fi
3211 if test -z "$ac_file"; then :
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 $as_echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error 77 "C++ compiler cannot create executables
3220 See \`config.log' for more details" "$LINENO" 5; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3223 $as_echo "yes" >&6; }
3224 fi
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3226 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3228 $as_echo "$ac_file" >&6; }
3229 ac_exeext=$ac_cv_exeext
3230
3231 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3232 ac_clean_files=$ac_clean_files_save
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3234 $as_echo_n "checking for suffix of executables... " >&6; }
3235 if { { ac_try="$ac_link"
3236 case "(($ac_try" in
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3239 esac
3240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3241 $as_echo "$ac_try_echo"; } >&5
3242 (eval "$ac_link") 2>&5
3243 ac_status=$?
3244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3245 test $ac_status = 0; }; then :
3246 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3247 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3248 # work properly (i.e., refer to `conftest.exe'), while it won't with
3249 # `rm'.
3250 for ac_file in conftest.exe conftest conftest.*; do
3251 test -f "$ac_file" || continue
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3254 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 break;;
3256 * ) break;;
3257 esac
3258 done
3259 else
3260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3262 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3263 See \`config.log' for more details" "$LINENO" 5; }
3264 fi
3265 rm -f conftest conftest$ac_cv_exeext
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3267 $as_echo "$ac_cv_exeext" >&6; }
3268
3269 rm -f conftest.$ac_ext
3270 EXEEXT=$ac_cv_exeext
3271 ac_exeext=$EXEEXT
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3274 #include <stdio.h>
3275 int
3276 main ()
3277 {
3278 FILE *f = fopen ("conftest.out", "w");
3279 return ferror (f) || fclose (f) != 0;
3280
3281 ;
3282 return 0;
3283 }
3284 _ACEOF
3285 ac_clean_files="$ac_clean_files conftest.out"
3286 # Check that the compiler produces executables we can run. If not, either
3287 # the compiler is broken, or we cross compile.
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3289 $as_echo_n "checking whether we are cross compiling... " >&6; }
3290 if test "$cross_compiling" != yes; then
3291 { { ac_try="$ac_link"
3292 case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295 esac
3296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297 $as_echo "$ac_try_echo"; } >&5
3298 (eval "$ac_link") 2>&5
3299 ac_status=$?
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3302 if { ac_try='./conftest$ac_cv_exeext'
3303 { { case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306 esac
3307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308 $as_echo "$ac_try_echo"; } >&5
3309 (eval "$ac_try") 2>&5
3310 ac_status=$?
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; }; then
3313 cross_compiling=no
3314 else
3315 if test "$cross_compiling" = maybe; then
3316 cross_compiling=yes
3317 else
3318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3320 as_fn_error $? "cannot run C++ compiled programs.
3321 If you meant to cross compile, use \`--host'.
3322 See \`config.log' for more details" "$LINENO" 5; }
3323 fi
3324 fi
3325 fi
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3327 $as_echo "$cross_compiling" >&6; }
3328
3329 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3330 ac_clean_files=$ac_clean_files_save
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3332 $as_echo_n "checking for suffix of object files... " >&6; }
3333 if ${ac_cv_objext+:} false; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3338
3339 int
3340 main ()
3341 {
3342
3343 ;
3344 return 0;
3345 }
3346 _ACEOF
3347 rm -f conftest.o conftest.obj
3348 if { { ac_try="$ac_compile"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_compile") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; then :
3359 for ac_file in conftest.o conftest.obj conftest.*; do
3360 test -f "$ac_file" || continue;
3361 case $ac_file in
3362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3364 break;;
3365 esac
3366 done
3367 else
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3370
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 as_fn_error $? "cannot compute suffix of object files: cannot compile
3374 See \`config.log' for more details" "$LINENO" 5; }
3375 fi
3376 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3377 fi
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3379 $as_echo "$ac_cv_objext" >&6; }
3380 OBJEXT=$ac_cv_objext
3381 ac_objext=$OBJEXT
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3383 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3384 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3388 /* end confdefs.h. */
3389
3390 int
3391 main ()
3392 {
3393 #ifndef __GNUC__
3394 choke me
3395 #endif
3396
3397 ;
3398 return 0;
3399 }
3400 _ACEOF
3401 if ac_fn_cxx_try_compile "$LINENO"; then :
3402 ac_compiler_gnu=yes
3403 else
3404 ac_compiler_gnu=no
3405 fi
3406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3408
3409 fi
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3411 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3412 if test $ac_compiler_gnu = yes; then
3413 GXX=yes
3414 else
3415 GXX=
3416 fi
3417 ac_test_CXXFLAGS=${CXXFLAGS+set}
3418 ac_save_CXXFLAGS=$CXXFLAGS
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3420 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3421 if ${ac_cv_prog_cxx_g+:} false; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3425 ac_cxx_werror_flag=yes
3426 ac_cv_prog_cxx_g=no
3427 CXXFLAGS="-g"
3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main ()
3433 {
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 if ac_fn_cxx_try_compile "$LINENO"; then :
3440 ac_cv_prog_cxx_g=yes
3441 else
3442 CXXFLAGS=""
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445
3446 int
3447 main ()
3448 {
3449
3450 ;
3451 return 0;
3452 }
3453 _ACEOF
3454 if ac_fn_cxx_try_compile "$LINENO"; then :
3455
3456 else
3457 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3458 CXXFLAGS="-g"
3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461
3462 int
3463 main ()
3464 {
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 if ac_fn_cxx_try_compile "$LINENO"; then :
3471 ac_cv_prog_cxx_g=yes
3472 fi
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474 fi
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 fi
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3479 fi
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3481 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3482 if test "$ac_test_CXXFLAGS" = set; then
3483 CXXFLAGS=$ac_save_CXXFLAGS
3484 elif test $ac_cv_prog_cxx_g = yes; then
3485 if test "$GXX" = yes; then
3486 CXXFLAGS="-g -O2"
3487 else
3488 CXXFLAGS="-g"
3489 fi
3490 else
3491 if test "$GXX" = yes; then
3492 CXXFLAGS="-O2"
3493 else
3494 CXXFLAGS=
3495 fi
3496 fi
3497 ac_ext=c
3498 ac_cpp='$CPP $CPPFLAGS'
3499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3502 DEPDIR="${am__leading_dot}deps"
3503
3504 ac_config_commands="$ac_config_commands depfiles"
3505
3506
3507 am_make=${MAKE-make}
3508 cat > confinc << 'END'
3509 am__doit:
3510 @echo this is the am__doit target
3511 .PHONY: am__doit
3512 END
3513 # If we don't find an include directive, just comment out the code.
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3515 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3516 am__include="#"
3517 am__quote=
3518 _am_result=none
3519 # First try GNU make style include.
3520 echo "include confinc" > confmf
3521 # Ignore all kinds of additional output from 'make'.
3522 case `$am_make -s -f confmf 2> /dev/null` in #(
3523 *the\ am__doit\ target*)
3524 am__include=include
3525 am__quote=
3526 _am_result=GNU
3527 ;;
3528 esac
3529 # Now try BSD make style include.
3530 if test "$am__include" = "#"; then
3531 echo '.include "confinc"' > confmf
3532 case `$am_make -s -f confmf 2> /dev/null` in #(
3533 *the\ am__doit\ target*)
3534 am__include=.include
3535 am__quote="\""
3536 _am_result=BSD
3537 ;;
3538 esac
3539 fi
3540
3541
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3543 $as_echo "$_am_result" >&6; }
3544 rm -f confinc confmf
3545
3546 # Check whether --enable-dependency-tracking was given.
3547 if test "${enable_dependency_tracking+set}" = set; then :
3548 enableval=$enable_dependency_tracking;
3549 fi
3550
3551 if test "x$enable_dependency_tracking" != xno; then
3552 am_depcomp="$ac_aux_dir/depcomp"
3553 AMDEPBACKSLASH='\'
3554 am__nodep='_no'
3555 fi
3556 if test "x$enable_dependency_tracking" != xno; then
3557 AMDEP_TRUE=
3558 AMDEP_FALSE='#'
3559 else
3560 AMDEP_TRUE='#'
3561 AMDEP_FALSE=
3562 fi
3563
3564
3565
3566 depcc="$CXX" am_compiler_list=
3567
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3569 $as_echo_n "checking dependency style of $depcc... " >&6; }
3570 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3574 # We make a subdir and do the tests there. Otherwise we can end up
3575 # making bogus files that we don't know about and never remove. For
3576 # instance it was reported that on HP-UX the gcc test will end up
3577 # making a dummy file named 'D' -- because '-MD' means "put the output
3578 # in D".
3579 rm -rf conftest.dir
3580 mkdir conftest.dir
3581 # Copy depcomp to subdir because otherwise we won't find it if we're
3582 # using a relative directory.
3583 cp "$am_depcomp" conftest.dir
3584 cd conftest.dir
3585 # We will build objects and dependencies in a subdirectory because
3586 # it helps to detect inapplicable dependency modes. For instance
3587 # both Tru64's cc and ICC support -MD to output dependencies as a
3588 # side effect of compilation, but ICC will put the dependencies in
3589 # the current directory while Tru64 will put them in the object
3590 # directory.
3591 mkdir sub
3592
3593 am_cv_CXX_dependencies_compiler_type=none
3594 if test "$am_compiler_list" = ""; then
3595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3596 fi
3597 am__universal=false
3598 case " $depcc " in #(
3599 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3600 esac
3601
3602 for depmode in $am_compiler_list; do
3603 # Setup a source with many dependencies, because some compilers
3604 # like to wrap large dependency lists on column 80 (with \), and
3605 # we should not choose a depcomp mode which is confused by this.
3606 #
3607 # We need to recreate these files for each test, as the compiler may
3608 # overwrite some of them when testing with obscure command lines.
3609 # This happens at least with the AIX C compiler.
3610 : > sub/conftest.c
3611 for i in 1 2 3 4 5 6; do
3612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3613 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3614 # Solaris 10 /bin/sh.
3615 echo '/* dummy */' > sub/conftst$i.h
3616 done
3617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3618
3619 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3620 # mode. It turns out that the SunPro C++ compiler does not properly
3621 # handle '-M -o', and we need to detect this. Also, some Intel
3622 # versions had trouble with output in subdirs.
3623 am__obj=sub/conftest.${OBJEXT-o}
3624 am__minus_obj="-o $am__obj"
3625 case $depmode in
3626 gcc)
3627 # This depmode causes a compiler race in universal mode.
3628 test "$am__universal" = false || continue
3629 ;;
3630 nosideeffect)
3631 # After this tag, mechanisms are not by side-effect, so they'll
3632 # only be used when explicitly requested.
3633 if test "x$enable_dependency_tracking" = xyes; then
3634 continue
3635 else
3636 break
3637 fi
3638 ;;
3639 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3640 # This compiler won't grok '-c -o', but also, the minuso test has
3641 # not run yet. These depmodes are late enough in the game, and
3642 # so weak that their functioning should not be impacted.
3643 am__obj=conftest.${OBJEXT-o}
3644 am__minus_obj=
3645 ;;
3646 none) break ;;
3647 esac
3648 if depmode=$depmode \
3649 source=sub/conftest.c object=$am__obj \
3650 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3651 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3652 >/dev/null 2>conftest.err &&
3653 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3655 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3657 # icc doesn't choke on unknown options, it will just issue warnings
3658 # or remarks (even with -Werror). So we grep stderr for any message
3659 # that says an option was ignored or not supported.
3660 # When given -MP, icc 7.0 and 7.1 complain thusly:
3661 # icc: Command line warning: ignoring option '-M'; no argument required
3662 # The diagnosis changed in icc 8.0:
3663 # icc: Command line remark: option '-MP' not supported
3664 if (grep 'ignoring option' conftest.err ||
3665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3666 am_cv_CXX_dependencies_compiler_type=$depmode
3667 break
3668 fi
3669 fi
3670 done
3671
3672 cd ..
3673 rm -rf conftest.dir
3674 else
3675 am_cv_CXX_dependencies_compiler_type=none
3676 fi
3677
3678 fi
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3680 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3681 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3682
3683 if
3684 test "x$enable_dependency_tracking" != xno \
3685 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3686 am__fastdepCXX_TRUE=
3687 am__fastdepCXX_FALSE='#'
3688 else
3689 am__fastdepCXX_TRUE='#'
3690 am__fastdepCXX_FALSE=
3691 fi
3692
3693
3694 case `pwd` in
3695 *\ * | *\ *)
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3697 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3698 esac
3699
3700
3701
3702 macro_version='2.4.6'
3703 macro_revision='2.4.6'
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717 ltmain=$ac_aux_dir/ltmain.sh
3718
3719 # Make sure we can run config.sub.
3720 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3721 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3722
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3724 $as_echo_n "checking build system type... " >&6; }
3725 if ${ac_cv_build+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 ac_build_alias=$build_alias
3729 test "x$ac_build_alias" = x &&
3730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3731 test "x$ac_build_alias" = x &&
3732 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3733 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3734 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3735
3736 fi
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3738 $as_echo "$ac_cv_build" >&6; }
3739 case $ac_cv_build in
3740 *-*-*) ;;
3741 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3742 esac
3743 build=$ac_cv_build
3744 ac_save_IFS=$IFS; IFS='-'
3745 set x $ac_cv_build
3746 shift
3747 build_cpu=$1
3748 build_vendor=$2
3749 shift; shift
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3752 build_os=$*
3753 IFS=$ac_save_IFS
3754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3755
3756
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3758 $as_echo_n "checking host system type... " >&6; }
3759 if ${ac_cv_host+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test "x$host_alias" = x; then
3763 ac_cv_host=$ac_cv_build
3764 else
3765 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3766 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3767 fi
3768
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3771 $as_echo "$ac_cv_host" >&6; }
3772 case $ac_cv_host in
3773 *-*-*) ;;
3774 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3775 esac
3776 host=$ac_cv_host
3777 ac_save_IFS=$IFS; IFS='-'
3778 set x $ac_cv_host
3779 shift
3780 host_cpu=$1
3781 host_vendor=$2
3782 shift; shift
3783 # Remember, the first character of IFS is used to create $*,
3784 # except with old shells:
3785 host_os=$*
3786 IFS=$ac_save_IFS
3787 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3788
3789
3790 # Backslashify metacharacters that are still active within
3791 # double-quoted strings.
3792 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3793
3794 # Same as above, but do not quote variable references.
3795 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3796
3797 # Sed substitution to delay expansion of an escaped shell variable in a
3798 # double_quote_subst'ed string.
3799 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3800
3801 # Sed substitution to delay expansion of an escaped single quote.
3802 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3803
3804 # Sed substitution to avoid accidental globbing in evaled expressions
3805 no_glob_subst='s/\*/\\\*/g'
3806
3807 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3808 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3809 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3810
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3812 $as_echo_n "checking how to print strings... " >&6; }
3813 # Test print first, because it will be a builtin if present.
3814 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3815 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3816 ECHO='print -r --'
3817 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3818 ECHO='printf %s\n'
3819 else
3820 # Use this function as a fallback that always works.
3821 func_fallback_echo ()
3822 {
3823 eval 'cat <<_LTECHO_EOF
3824 $1
3825 _LTECHO_EOF'
3826 }
3827 ECHO='func_fallback_echo'
3828 fi
3829
3830 # func_echo_all arg...
3831 # Invoke $ECHO with all args, space-separated.
3832 func_echo_all ()
3833 {
3834 $ECHO ""
3835 }
3836
3837 case $ECHO in
3838 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3839 $as_echo "printf" >&6; } ;;
3840 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3841 $as_echo "print -r" >&6; } ;;
3842 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3843 $as_echo "cat" >&6; } ;;
3844 esac
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859 ac_ext=c
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3864 if test -n "$ac_tool_prefix"; then
3865 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3866 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868 $as_echo_n "checking for $ac_word... " >&6; }
3869 if ${ac_cv_prog_CC+:} false; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 if test -n "$CC"; then
3873 ac_cv_prog_CC="$CC" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
3880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 break 2
3885 fi
3886 done
3887 done
3888 IFS=$as_save_IFS
3889
3890 fi
3891 fi
3892 CC=$ac_cv_prog_CC
3893 if test -n "$CC"; then
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3895 $as_echo "$CC" >&6; }
3896 else
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898 $as_echo "no" >&6; }
3899 fi
3900
3901
3902 fi
3903 if test -z "$ac_cv_prog_CC"; then
3904 ac_ct_CC=$CC
3905 # Extract the first word of "gcc", so it can be a program name with args.
3906 set dummy gcc; ac_word=$2
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911 else
3912 if test -n "$ac_ct_CC"; then
3913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_ac_ct_CC="gcc"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926 done
3927 done
3928 IFS=$as_save_IFS
3929
3930 fi
3931 fi
3932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3933 if test -n "$ac_ct_CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3935 $as_echo "$ac_ct_CC" >&6; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3939 fi
3940
3941 if test "x$ac_ct_CC" = x; then
3942 CC=""
3943 else
3944 case $cross_compiling:$ac_tool_warned in
3945 yes:)
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3948 ac_tool_warned=yes ;;
3949 esac
3950 CC=$ac_ct_CC
3951 fi
3952 else
3953 CC="$ac_cv_prog_CC"
3954 fi
3955
3956 if test -z "$CC"; then
3957 if test -n "$ac_tool_prefix"; then
3958 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3959 set dummy ${ac_tool_prefix}cc; ac_word=$2
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3961 $as_echo_n "checking for $ac_word... " >&6; }
3962 if ${ac_cv_prog_CC+:} false; then :
3963 $as_echo_n "(cached) " >&6
3964 else
3965 if test -n "$CC"; then
3966 ac_cv_prog_CC="$CC" # Let the user override the test.
3967 else
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3975 ac_cv_prog_CC="${ac_tool_prefix}cc"
3976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3977 break 2
3978 fi
3979 done
3980 done
3981 IFS=$as_save_IFS
3982
3983 fi
3984 fi
3985 CC=$ac_cv_prog_CC
3986 if test -n "$CC"; then
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3988 $as_echo "$CC" >&6; }
3989 else
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3991 $as_echo "no" >&6; }
3992 fi
3993
3994
3995 fi
3996 fi
3997 if test -z "$CC"; then
3998 # Extract the first word of "cc", so it can be a program name with args.
3999 set dummy cc; ac_word=$2
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4001 $as_echo_n "checking for $ac_word... " >&6; }
4002 if ${ac_cv_prog_CC+:} false; then :
4003 $as_echo_n "(cached) " >&6
4004 else
4005 if test -n "$CC"; then
4006 ac_cv_prog_CC="$CC" # Let the user override the test.
4007 else
4008 ac_prog_rejected=no
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4011 do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4016 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4017 ac_prog_rejected=yes
4018 continue
4019 fi
4020 ac_cv_prog_CC="cc"
4021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4022 break 2
4023 fi
4024 done
4025 done
4026 IFS=$as_save_IFS
4027
4028 if test $ac_prog_rejected = yes; then
4029 # We found a bogon in the path, so make sure we never use it.
4030 set dummy $ac_cv_prog_CC
4031 shift
4032 if test $# != 0; then
4033 # We chose a different compiler from the bogus one.
4034 # However, it has the same basename, so the bogon will be chosen
4035 # first if we set CC to just the basename; use the full file name.
4036 shift
4037 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4038 fi
4039 fi
4040 fi
4041 fi
4042 CC=$ac_cv_prog_CC
4043 if test -n "$CC"; then
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4045 $as_echo "$CC" >&6; }
4046 else
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4048 $as_echo "no" >&6; }
4049 fi
4050
4051
4052 fi
4053 if test -z "$CC"; then
4054 if test -n "$ac_tool_prefix"; then
4055 for ac_prog in cl.exe
4056 do
4057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060 $as_echo_n "checking for $ac_word... " >&6; }
4061 if ${ac_cv_prog_CC+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 if test -n "$CC"; then
4065 ac_cv_prog_CC="$CC" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4074 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 break 2
4077 fi
4078 done
4079 done
4080 IFS=$as_save_IFS
4081
4082 fi
4083 fi
4084 CC=$ac_cv_prog_CC
4085 if test -n "$CC"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4087 $as_echo "$CC" >&6; }
4088 else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4091 fi
4092
4093
4094 test -n "$CC" && break
4095 done
4096 fi
4097 if test -z "$CC"; then
4098 ac_ct_CC=$CC
4099 for ac_prog in cl.exe
4100 do
4101 # Extract the first word of "$ac_prog", so it can be a program name with args.
4102 set dummy $ac_prog; ac_word=$2
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4104 $as_echo_n "checking for $ac_word... " >&6; }
4105 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 if test -n "$ac_ct_CC"; then
4109 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4110 else
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114 IFS=$as_save_IFS
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4118 ac_cv_prog_ac_ct_CC="$ac_prog"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 break 2
4121 fi
4122 done
4123 done
4124 IFS=$as_save_IFS
4125
4126 fi
4127 fi
4128 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4129 if test -n "$ac_ct_CC"; then
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4131 $as_echo "$ac_ct_CC" >&6; }
4132 else
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4134 $as_echo "no" >&6; }
4135 fi
4136
4137
4138 test -n "$ac_ct_CC" && break
4139 done
4140
4141 if test "x$ac_ct_CC" = x; then
4142 CC=""
4143 else
4144 case $cross_compiling:$ac_tool_warned in
4145 yes:)
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4148 ac_tool_warned=yes ;;
4149 esac
4150 CC=$ac_ct_CC
4151 fi
4152 fi
4153
4154 fi
4155
4156
4157 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159 as_fn_error $? "no acceptable C compiler found in \$PATH
4160 See \`config.log' for more details" "$LINENO" 5; }
4161
4162 # Provide some information about the compiler.
4163 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4164 set X $ac_compile
4165 ac_compiler=$2
4166 for ac_option in --version -v -V -qversion; do
4167 { { ac_try="$ac_compiler $ac_option >&5"
4168 case "(($ac_try" in
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4171 esac
4172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4173 $as_echo "$ac_try_echo"; } >&5
4174 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4175 ac_status=$?
4176 if test -s conftest.err; then
4177 sed '10a\
4178 ... rest of stderr output deleted ...
4179 10q' conftest.err >conftest.er1
4180 cat conftest.er1 >&5
4181 fi
4182 rm -f conftest.er1 conftest.err
4183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4184 test $ac_status = 0; }
4185 done
4186
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4188 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4189 if ${ac_cv_c_compiler_gnu+:} false; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4194
4195 int
4196 main ()
4197 {
4198 #ifndef __GNUC__
4199 choke me
4200 #endif
4201
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207 ac_compiler_gnu=yes
4208 else
4209 ac_compiler_gnu=no
4210 fi
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4213
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4216 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4217 if test $ac_compiler_gnu = yes; then
4218 GCC=yes
4219 else
4220 GCC=
4221 fi
4222 ac_test_CFLAGS=${CFLAGS+set}
4223 ac_save_CFLAGS=$CFLAGS
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4225 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4226 if ${ac_cv_prog_cc_g+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228 else
4229 ac_save_c_werror_flag=$ac_c_werror_flag
4230 ac_c_werror_flag=yes
4231 ac_cv_prog_cc_g=no
4232 CFLAGS="-g"
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4235
4236 int
4237 main ()
4238 {
4239
4240 ;
4241 return 0;
4242 }
4243 _ACEOF
4244 if ac_fn_c_try_compile "$LINENO"; then :
4245 ac_cv_prog_cc_g=yes
4246 else
4247 CFLAGS=""
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250
4251 int
4252 main ()
4253 {
4254
4255 ;
4256 return 0;
4257 }
4258 _ACEOF
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260
4261 else
4262 ac_c_werror_flag=$ac_save_c_werror_flag
4263 CFLAGS="-g"
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265 /* end confdefs.h. */
4266
4267 int
4268 main ()
4269 {
4270
4271 ;
4272 return 0;
4273 }
4274 _ACEOF
4275 if ac_fn_c_try_compile "$LINENO"; then :
4276 ac_cv_prog_cc_g=yes
4277 fi
4278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 fi
4280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4281 fi
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4283 ac_c_werror_flag=$ac_save_c_werror_flag
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4286 $as_echo "$ac_cv_prog_cc_g" >&6; }
4287 if test "$ac_test_CFLAGS" = set; then
4288 CFLAGS=$ac_save_CFLAGS
4289 elif test $ac_cv_prog_cc_g = yes; then
4290 if test "$GCC" = yes; then
4291 CFLAGS="-g -O2"
4292 else
4293 CFLAGS="-g"
4294 fi
4295 else
4296 if test "$GCC" = yes; then
4297 CFLAGS="-O2"
4298 else
4299 CFLAGS=
4300 fi
4301 fi
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4303 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4304 if ${ac_cv_prog_cc_c89+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 ac_cv_prog_cc_c89=no
4308 ac_save_CC=$CC
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4311 #include <stdarg.h>
4312 #include <stdio.h>
4313 struct stat;
4314 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4315 struct buf { int x; };
4316 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4317 static char *e (p, i)
4318 char **p;
4319 int i;
4320 {
4321 return p[i];
4322 }
4323 static char *f (char * (*g) (char **, int), char **p, ...)
4324 {
4325 char *s;
4326 va_list v;
4327 va_start (v,p);
4328 s = g (p, va_arg (v,int));
4329 va_end (v);
4330 return s;
4331 }
4332
4333 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4334 function prototypes and stuff, but not '\xHH' hex character constants.
4335 These don't provoke an error unfortunately, instead are silently treated
4336 as 'x'. The following induces an error, until -std is added to get
4337 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4338 array size at least. It's necessary to write '\x00'==0 to get something
4339 that's true only with -std. */
4340 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4341
4342 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4343 inside strings and character constants. */
4344 #define FOO(x) 'x'
4345 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4346
4347 int test (int i, double x);
4348 struct s1 {int (*f) (int a);};
4349 struct s2 {int (*f) (double a);};
4350 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4351 int argc;
4352 char **argv;
4353 int
4354 main ()
4355 {
4356 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4362 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4363 do
4364 CC="$ac_save_CC $ac_arg"
4365 if ac_fn_c_try_compile "$LINENO"; then :
4366 ac_cv_prog_cc_c89=$ac_arg
4367 fi
4368 rm -f core conftest.err conftest.$ac_objext
4369 test "x$ac_cv_prog_cc_c89" != "xno" && break
4370 done
4371 rm -f conftest.$ac_ext
4372 CC=$ac_save_CC
4373
4374 fi
4375 # AC_CACHE_VAL
4376 case "x$ac_cv_prog_cc_c89" in
4377 x)
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4379 $as_echo "none needed" >&6; } ;;
4380 xno)
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4382 $as_echo "unsupported" >&6; } ;;
4383 *)
4384 CC="$CC $ac_cv_prog_cc_c89"
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4386 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4387 esac
4388 if test "x$ac_cv_prog_cc_c89" != xno; then :
4389
4390 fi
4391
4392 ac_ext=c
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397
4398 ac_ext=c
4399 ac_cpp='$CPP $CPPFLAGS'
4400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4404 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4405 if ${am_cv_prog_cc_c_o+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409 /* end confdefs.h. */
4410
4411 int
4412 main ()
4413 {
4414
4415 ;
4416 return 0;
4417 }
4418 _ACEOF
4419 # Make sure it works both with $CC and with simple cc.
4420 # Following AC_PROG_CC_C_O, we do the test twice because some
4421 # compilers refuse to overwrite an existing .o file with -o,
4422 # though they will create one.
4423 am_cv_prog_cc_c_o=yes
4424 for am_i in 1 2; do
4425 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4426 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4427 ac_status=$?
4428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4429 (exit $ac_status); } \
4430 && test -f conftest2.$ac_objext; then
4431 : OK
4432 else
4433 am_cv_prog_cc_c_o=no
4434 break
4435 fi
4436 done
4437 rm -f core conftest*
4438 unset am_i
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4441 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4442 if test "$am_cv_prog_cc_c_o" != yes; then
4443 # Losing compiler, so override with the script.
4444 # FIXME: It is wrong to rewrite CC.
4445 # But if we don't then we get into trouble of one sort or another.
4446 # A longer-term fix would be to have automake use am__CC in this case,
4447 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4448 CC="$am_aux_dir/compile $CC"
4449 fi
4450 ac_ext=c
4451 ac_cpp='$CPP $CPPFLAGS'
4452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4455
4456
4457 depcc="$CC" am_compiler_list=
4458
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4460 $as_echo_n "checking dependency style of $depcc... " >&6; }
4461 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4465 # We make a subdir and do the tests there. Otherwise we can end up
4466 # making bogus files that we don't know about and never remove. For
4467 # instance it was reported that on HP-UX the gcc test will end up
4468 # making a dummy file named 'D' -- because '-MD' means "put the output
4469 # in D".
4470 rm -rf conftest.dir
4471 mkdir conftest.dir
4472 # Copy depcomp to subdir because otherwise we won't find it if we're
4473 # using a relative directory.
4474 cp "$am_depcomp" conftest.dir
4475 cd conftest.dir
4476 # We will build objects and dependencies in a subdirectory because
4477 # it helps to detect inapplicable dependency modes. For instance
4478 # both Tru64's cc and ICC support -MD to output dependencies as a
4479 # side effect of compilation, but ICC will put the dependencies in
4480 # the current directory while Tru64 will put them in the object
4481 # directory.
4482 mkdir sub
4483
4484 am_cv_CC_dependencies_compiler_type=none
4485 if test "$am_compiler_list" = ""; then
4486 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4487 fi
4488 am__universal=false
4489 case " $depcc " in #(
4490 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4491 esac
4492
4493 for depmode in $am_compiler_list; do
4494 # Setup a source with many dependencies, because some compilers
4495 # like to wrap large dependency lists on column 80 (with \), and
4496 # we should not choose a depcomp mode which is confused by this.
4497 #
4498 # We need to recreate these files for each test, as the compiler may
4499 # overwrite some of them when testing with obscure command lines.
4500 # This happens at least with the AIX C compiler.
4501 : > sub/conftest.c
4502 for i in 1 2 3 4 5 6; do
4503 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4504 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4505 # Solaris 10 /bin/sh.
4506 echo '/* dummy */' > sub/conftst$i.h
4507 done
4508 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4509
4510 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4511 # mode. It turns out that the SunPro C++ compiler does not properly
4512 # handle '-M -o', and we need to detect this. Also, some Intel
4513 # versions had trouble with output in subdirs.
4514 am__obj=sub/conftest.${OBJEXT-o}
4515 am__minus_obj="-o $am__obj"
4516 case $depmode in
4517 gcc)
4518 # This depmode causes a compiler race in universal mode.
4519 test "$am__universal" = false || continue
4520 ;;
4521 nosideeffect)
4522 # After this tag, mechanisms are not by side-effect, so they'll
4523 # only be used when explicitly requested.
4524 if test "x$enable_dependency_tracking" = xyes; then
4525 continue
4526 else
4527 break
4528 fi
4529 ;;
4530 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4531 # This compiler won't grok '-c -o', but also, the minuso test has
4532 # not run yet. These depmodes are late enough in the game, and
4533 # so weak that their functioning should not be impacted.
4534 am__obj=conftest.${OBJEXT-o}
4535 am__minus_obj=
4536 ;;
4537 none) break ;;
4538 esac
4539 if depmode=$depmode \
4540 source=sub/conftest.c object=$am__obj \
4541 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4542 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4543 >/dev/null 2>conftest.err &&
4544 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4545 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4546 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4547 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4548 # icc doesn't choke on unknown options, it will just issue warnings
4549 # or remarks (even with -Werror). So we grep stderr for any message
4550 # that says an option was ignored or not supported.
4551 # When given -MP, icc 7.0 and 7.1 complain thusly:
4552 # icc: Command line warning: ignoring option '-M'; no argument required
4553 # The diagnosis changed in icc 8.0:
4554 # icc: Command line remark: option '-MP' not supported
4555 if (grep 'ignoring option' conftest.err ||
4556 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4557 am_cv_CC_dependencies_compiler_type=$depmode
4558 break
4559 fi
4560 fi
4561 done
4562
4563 cd ..
4564 rm -rf conftest.dir
4565 else
4566 am_cv_CC_dependencies_compiler_type=none
4567 fi
4568
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4571 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4572 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4573
4574 if
4575 test "x$enable_dependency_tracking" != xno \
4576 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4577 am__fastdepCC_TRUE=
4578 am__fastdepCC_FALSE='#'
4579 else
4580 am__fastdepCC_TRUE='#'
4581 am__fastdepCC_FALSE=
4582 fi
4583
4584
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4586 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4587 if ${ac_cv_path_SED+:} false; then :
4588 $as_echo_n "(cached) " >&6
4589 else
4590 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4591 for ac_i in 1 2 3 4 5 6 7; do
4592 ac_script="$ac_script$as_nl$ac_script"
4593 done
4594 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4595 { ac_script=; unset ac_script;}
4596 if test -z "$SED"; then
4597 ac_path_SED_found=false
4598 # Loop through the user's path and test for each of PROGNAME-LIST
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_prog in sed gsed; do
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4607 as_fn_executable_p "$ac_path_SED" || continue
4608 # Check for GNU ac_path_SED and select it if it is found.
4609 # Check for GNU $ac_path_SED
4610 case `"$ac_path_SED" --version 2>&1` in
4611 *GNU*)
4612 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4613 *)
4614 ac_count=0
4615 $as_echo_n 0123456789 >"conftest.in"
4616 while :
4617 do
4618 cat "conftest.in" "conftest.in" >"conftest.tmp"
4619 mv "conftest.tmp" "conftest.in"
4620 cp "conftest.in" "conftest.nl"
4621 $as_echo '' >> "conftest.nl"
4622 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4623 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4624 as_fn_arith $ac_count + 1 && ac_count=$as_val
4625 if test $ac_count -gt ${ac_path_SED_max-0}; then
4626 # Best one so far, save it but keep looking for a better one
4627 ac_cv_path_SED="$ac_path_SED"
4628 ac_path_SED_max=$ac_count
4629 fi
4630 # 10*(2^10) chars as input seems more than enough
4631 test $ac_count -gt 10 && break
4632 done
4633 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4634 esac
4635
4636 $ac_path_SED_found && break 3
4637 done
4638 done
4639 done
4640 IFS=$as_save_IFS
4641 if test -z "$ac_cv_path_SED"; then
4642 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4643 fi
4644 else
4645 ac_cv_path_SED=$SED
4646 fi
4647
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4650 $as_echo "$ac_cv_path_SED" >&6; }
4651 SED="$ac_cv_path_SED"
4652 rm -f conftest.sed
4653
4654 test -z "$SED" && SED=sed
4655 Xsed="$SED -e 1s/^X//"
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4668 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4669 if ${ac_cv_path_GREP+:} false; then :
4670 $as_echo_n "(cached) " >&6
4671 else
4672 if test -z "$GREP"; then
4673 ac_path_GREP_found=false
4674 # Loop through the user's path and test for each of PROGNAME-LIST
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4677 do
4678 IFS=$as_save_IFS
4679 test -z "$as_dir" && as_dir=.
4680 for ac_prog in grep ggrep; do
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4683 as_fn_executable_p "$ac_path_GREP" || continue
4684 # Check for GNU ac_path_GREP and select it if it is found.
4685 # Check for GNU $ac_path_GREP
4686 case `"$ac_path_GREP" --version 2>&1` in
4687 *GNU*)
4688 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4689 *)
4690 ac_count=0
4691 $as_echo_n 0123456789 >"conftest.in"
4692 while :
4693 do
4694 cat "conftest.in" "conftest.in" >"conftest.tmp"
4695 mv "conftest.tmp" "conftest.in"
4696 cp "conftest.in" "conftest.nl"
4697 $as_echo 'GREP' >> "conftest.nl"
4698 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4699 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4700 as_fn_arith $ac_count + 1 && ac_count=$as_val
4701 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4702 # Best one so far, save it but keep looking for a better one
4703 ac_cv_path_GREP="$ac_path_GREP"
4704 ac_path_GREP_max=$ac_count
4705 fi
4706 # 10*(2^10) chars as input seems more than enough
4707 test $ac_count -gt 10 && break
4708 done
4709 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4710 esac
4711
4712 $ac_path_GREP_found && break 3
4713 done
4714 done
4715 done
4716 IFS=$as_save_IFS
4717 if test -z "$ac_cv_path_GREP"; then
4718 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4719 fi
4720 else
4721 ac_cv_path_GREP=$GREP
4722 fi
4723
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4726 $as_echo "$ac_cv_path_GREP" >&6; }
4727 GREP="$ac_cv_path_GREP"
4728
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4731 $as_echo_n "checking for egrep... " >&6; }
4732 if ${ac_cv_path_EGREP+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734 else
4735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4736 then ac_cv_path_EGREP="$GREP -E"
4737 else
4738 if test -z "$EGREP"; then
4739 ac_path_EGREP_found=false
4740 # Loop through the user's path and test for each of PROGNAME-LIST
4741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4743 do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
4746 for ac_prog in egrep; do
4747 for ac_exec_ext in '' $ac_executable_extensions; do
4748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4749 as_fn_executable_p "$ac_path_EGREP" || continue
4750 # Check for GNU ac_path_EGREP and select it if it is found.
4751 # Check for GNU $ac_path_EGREP
4752 case `"$ac_path_EGREP" --version 2>&1` in
4753 *GNU*)
4754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4755 *)
4756 ac_count=0
4757 $as_echo_n 0123456789 >"conftest.in"
4758 while :
4759 do
4760 cat "conftest.in" "conftest.in" >"conftest.tmp"
4761 mv "conftest.tmp" "conftest.in"
4762 cp "conftest.in" "conftest.nl"
4763 $as_echo 'EGREP' >> "conftest.nl"
4764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4766 as_fn_arith $ac_count + 1 && ac_count=$as_val
4767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4768 # Best one so far, save it but keep looking for a better one
4769 ac_cv_path_EGREP="$ac_path_EGREP"
4770 ac_path_EGREP_max=$ac_count
4771 fi
4772 # 10*(2^10) chars as input seems more than enough
4773 test $ac_count -gt 10 && break
4774 done
4775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4776 esac
4777
4778 $ac_path_EGREP_found && break 3
4779 done
4780 done
4781 done
4782 IFS=$as_save_IFS
4783 if test -z "$ac_cv_path_EGREP"; then
4784 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4785 fi
4786 else
4787 ac_cv_path_EGREP=$EGREP
4788 fi
4789
4790 fi
4791 fi
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4793 $as_echo "$ac_cv_path_EGREP" >&6; }
4794 EGREP="$ac_cv_path_EGREP"
4795
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4798 $as_echo_n "checking for fgrep... " >&6; }
4799 if ${ac_cv_path_FGREP+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4803 then ac_cv_path_FGREP="$GREP -F"
4804 else
4805 if test -z "$FGREP"; then
4806 ac_path_FGREP_found=false
4807 # Loop through the user's path and test for each of PROGNAME-LIST
4808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4810 do
4811 IFS=$as_save_IFS
4812 test -z "$as_dir" && as_dir=.
4813 for ac_prog in fgrep; do
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4816 as_fn_executable_p "$ac_path_FGREP" || continue
4817 # Check for GNU ac_path_FGREP and select it if it is found.
4818 # Check for GNU $ac_path_FGREP
4819 case `"$ac_path_FGREP" --version 2>&1` in
4820 *GNU*)
4821 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4822 *)
4823 ac_count=0
4824 $as_echo_n 0123456789 >"conftest.in"
4825 while :
4826 do
4827 cat "conftest.in" "conftest.in" >"conftest.tmp"
4828 mv "conftest.tmp" "conftest.in"
4829 cp "conftest.in" "conftest.nl"
4830 $as_echo 'FGREP' >> "conftest.nl"
4831 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4832 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4833 as_fn_arith $ac_count + 1 && ac_count=$as_val
4834 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4835 # Best one so far, save it but keep looking for a better one
4836 ac_cv_path_FGREP="$ac_path_FGREP"
4837 ac_path_FGREP_max=$ac_count
4838 fi
4839 # 10*(2^10) chars as input seems more than enough
4840 test $ac_count -gt 10 && break
4841 done
4842 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4843 esac
4844
4845 $ac_path_FGREP_found && break 3
4846 done
4847 done
4848 done
4849 IFS=$as_save_IFS
4850 if test -z "$ac_cv_path_FGREP"; then
4851 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4852 fi
4853 else
4854 ac_cv_path_FGREP=$FGREP
4855 fi
4856
4857 fi
4858 fi
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4860 $as_echo "$ac_cv_path_FGREP" >&6; }
4861 FGREP="$ac_cv_path_FGREP"
4862
4863
4864 test -z "$GREP" && GREP=grep
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884 # Check whether --with-gnu-ld was given.
4885 if test "${with_gnu_ld+set}" = set; then :
4886 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4887 else
4888 with_gnu_ld=no
4889 fi
4890
4891 ac_prog=ld
4892 if test yes = "$GCC"; then
4893 # Check if gcc -print-prog-name=ld gives a path.
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4895 $as_echo_n "checking for ld used by $CC... " >&6; }
4896 case $host in
4897 *-*-mingw*)
4898 # gcc leaves a trailing carriage return, which upsets mingw
4899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4900 *)
4901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4902 esac
4903 case $ac_prog in
4904 # Accept absolute paths.
4905 [\\/]* | ?:[\\/]*)
4906 re_direlt='/[^/][^/]*/\.\./'
4907 # Canonicalize the pathname of ld
4908 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4909 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4910 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4911 done
4912 test -z "$LD" && LD=$ac_prog
4913 ;;
4914 "")
4915 # If it fails, then pretend we aren't using GCC.
4916 ac_prog=ld
4917 ;;
4918 *)
4919 # If it is relative, then search for the first ld in PATH.
4920 with_gnu_ld=unknown
4921 ;;
4922 esac
4923 elif test yes = "$with_gnu_ld"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4925 $as_echo_n "checking for GNU ld... " >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4928 $as_echo_n "checking for non-GNU ld... " >&6; }
4929 fi
4930 if ${lt_cv_path_LD+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -z "$LD"; then
4934 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4935 for ac_dir in $PATH; do
4936 IFS=$lt_save_ifs
4937 test -z "$ac_dir" && ac_dir=.
4938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4939 lt_cv_path_LD=$ac_dir/$ac_prog
4940 # Check to see if the program is GNU ld. I'd rather use --version,
4941 # but apparently some variants of GNU ld only accept -v.
4942 # Break only if it was the GNU/non-GNU ld that we prefer.
4943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4944 *GNU* | *'with BFD'*)
4945 test no != "$with_gnu_ld" && break
4946 ;;
4947 *)
4948 test yes != "$with_gnu_ld" && break
4949 ;;
4950 esac
4951 fi
4952 done
4953 IFS=$lt_save_ifs
4954 else
4955 lt_cv_path_LD=$LD # Let the user override the test with a path.
4956 fi
4957 fi
4958
4959 LD=$lt_cv_path_LD
4960 if test -n "$LD"; then
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4962 $as_echo "$LD" >&6; }
4963 else
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4969 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4970 if ${lt_cv_prog_gnu_ld+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4974 case `$LD -v 2>&1 </dev/null` in
4975 *GNU* | *'with BFD'*)
4976 lt_cv_prog_gnu_ld=yes
4977 ;;
4978 *)
4979 lt_cv_prog_gnu_ld=no
4980 ;;
4981 esac
4982 fi
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4984 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4985 with_gnu_ld=$lt_cv_prog_gnu_ld
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4996 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4997 if ${lt_cv_path_NM+:} false; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 if test -n "$NM"; then
5001 # Let the user override the test.
5002 lt_cv_path_NM=$NM
5003 else
5004 lt_nm_to_check=${ac_tool_prefix}nm
5005 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5006 lt_nm_to_check="$lt_nm_to_check nm"
5007 fi
5008 for lt_tmp_nm in $lt_nm_to_check; do
5009 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5010 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5011 IFS=$lt_save_ifs
5012 test -z "$ac_dir" && ac_dir=.
5013 tmp_nm=$ac_dir/$lt_tmp_nm
5014 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5015 # Check to see if the nm accepts a BSD-compat flag.
5016 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5017 # nm: unknown option "B" ignored
5018 # Tru64's nm complains that /dev/null is an invalid object file
5019 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5020 case $build_os in
5021 mingw*) lt_bad_file=conftest.nm/nofile ;;
5022 *) lt_bad_file=/dev/null ;;
5023 esac
5024 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5025 *$lt_bad_file* | *'Invalid file or object type'*)
5026 lt_cv_path_NM="$tmp_nm -B"
5027 break 2
5028 ;;
5029 *)
5030 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5031 */dev/null*)
5032 lt_cv_path_NM="$tmp_nm -p"
5033 break 2
5034 ;;
5035 *)
5036 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5037 continue # so that we can try to find one that supports BSD flags
5038 ;;
5039 esac
5040 ;;
5041 esac
5042 fi
5043 done
5044 IFS=$lt_save_ifs
5045 done
5046 : ${lt_cv_path_NM=no}
5047 fi
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5050 $as_echo "$lt_cv_path_NM" >&6; }
5051 if test no != "$lt_cv_path_NM"; then
5052 NM=$lt_cv_path_NM
5053 else
5054 # Didn't find any BSD compatible name lister, look for dumpbin.
5055 if test -n "$DUMPBIN"; then :
5056 # Let the user override the test.
5057 else
5058 if test -n "$ac_tool_prefix"; then
5059 for ac_prog in dumpbin "link -dump"
5060 do
5061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_DUMPBIN+:} false; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 if test -n "$DUMPBIN"; then
5069 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074 IFS=$as_save_IFS
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5078 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080 break 2
5081 fi
5082 done
5083 done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 DUMPBIN=$ac_cv_prog_DUMPBIN
5089 if test -n "$DUMPBIN"; then
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5091 $as_echo "$DUMPBIN" >&6; }
5092 else
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098 test -n "$DUMPBIN" && break
5099 done
5100 fi
5101 if test -z "$DUMPBIN"; then
5102 ac_ct_DUMPBIN=$DUMPBIN
5103 for ac_prog in dumpbin "link -dump"
5104 do
5105 # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if test -n "$ac_ct_DUMPBIN"; then
5113 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126 done
5127 done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5133 if test -n "$ac_ct_DUMPBIN"; then
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5135 $as_echo "$ac_ct_DUMPBIN" >&6; }
5136 else
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142 test -n "$ac_ct_DUMPBIN" && break
5143 done
5144
5145 if test "x$ac_ct_DUMPBIN" = x; then
5146 DUMPBIN=":"
5147 else
5148 case $cross_compiling:$ac_tool_warned in
5149 yes:)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152 ac_tool_warned=yes ;;
5153 esac
5154 DUMPBIN=$ac_ct_DUMPBIN
5155 fi
5156 fi
5157
5158 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5159 *COFF*)
5160 DUMPBIN="$DUMPBIN -symbols -headers"
5161 ;;
5162 *)
5163 DUMPBIN=:
5164 ;;
5165 esac
5166 fi
5167
5168 if test : != "$DUMPBIN"; then
5169 NM=$DUMPBIN
5170 fi
5171 fi
5172 test -z "$NM" && NM=nm
5173
5174
5175
5176
5177
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5180 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5181 if ${lt_cv_nm_interface+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5184 lt_cv_nm_interface="BSD nm"
5185 echo "int some_variable = 0;" > conftest.$ac_ext
5186 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5187 (eval "$ac_compile" 2>conftest.err)
5188 cat conftest.err >&5
5189 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5190 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5191 cat conftest.err >&5
5192 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5193 cat conftest.out >&5
5194 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5195 lt_cv_nm_interface="MS dumpbin"
5196 fi
5197 rm -f conftest*
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5200 $as_echo "$lt_cv_nm_interface" >&6; }
5201
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5203 $as_echo_n "checking whether ln -s works... " >&6; }
5204 LN_S=$as_ln_s
5205 if test "$LN_S" = "ln -s"; then
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5208 else
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5210 $as_echo "no, using $LN_S" >&6; }
5211 fi
5212
5213 # find the maximum length of command line arguments
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5215 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5216 if ${lt_cv_sys_max_cmd_len+:} false; then :
5217 $as_echo_n "(cached) " >&6
5218 else
5219 i=0
5220 teststring=ABCD
5221
5222 case $build_os in
5223 msdosdjgpp*)
5224 # On DJGPP, this test can blow up pretty badly due to problems in libc
5225 # (any single argument exceeding 2000 bytes causes a buffer overrun
5226 # during glob expansion). Even if it were fixed, the result of this
5227 # check would be larger than it should be.
5228 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5229 ;;
5230
5231 gnu*)
5232 # Under GNU Hurd, this test is not required because there is
5233 # no limit to the length of command line arguments.
5234 # Libtool will interpret -1 as no limit whatsoever
5235 lt_cv_sys_max_cmd_len=-1;
5236 ;;
5237
5238 cygwin* | mingw* | cegcc*)
5239 # On Win9x/ME, this test blows up -- it succeeds, but takes
5240 # about 5 minutes as the teststring grows exponentially.
5241 # Worse, since 9x/ME are not pre-emptively multitasking,
5242 # you end up with a "frozen" computer, even though with patience
5243 # the test eventually succeeds (with a max line length of 256k).
5244 # Instead, let's just punt: use the minimum linelength reported by
5245 # all of the supported platforms: 8192 (on NT/2K/XP).
5246 lt_cv_sys_max_cmd_len=8192;
5247 ;;
5248
5249 mint*)
5250 # On MiNT this can take a long time and run out of memory.
5251 lt_cv_sys_max_cmd_len=8192;
5252 ;;
5253
5254 amigaos*)
5255 # On AmigaOS with pdksh, this test takes hours, literally.
5256 # So we just punt and use a minimum line length of 8192.
5257 lt_cv_sys_max_cmd_len=8192;
5258 ;;
5259
5260 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5261 # This has been around since 386BSD, at least. Likely further.
5262 if test -x /sbin/sysctl; then
5263 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5264 elif test -x /usr/sbin/sysctl; then
5265 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5266 else
5267 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5268 fi
5269 # And add a safety zone
5270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5271 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5272 ;;
5273
5274 interix*)
5275 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5276 lt_cv_sys_max_cmd_len=196608
5277 ;;
5278
5279 os2*)
5280 # The test takes a long time on OS/2.
5281 lt_cv_sys_max_cmd_len=8192
5282 ;;
5283
5284 osf*)
5285 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5286 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5287 # nice to cause kernel panics so lets avoid the loop below.
5288 # First set a reasonable default.
5289 lt_cv_sys_max_cmd_len=16384
5290 #
5291 if test -x /sbin/sysconfig; then
5292 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5293 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5294 esac
5295 fi
5296 ;;
5297 sco3.2v5*)
5298 lt_cv_sys_max_cmd_len=102400
5299 ;;
5300 sysv5* | sco5v6* | sysv4.2uw2*)
5301 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5302 if test -n "$kargmax"; then
5303 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5304 else
5305 lt_cv_sys_max_cmd_len=32768
5306 fi
5307 ;;
5308 *)
5309 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5310 if test -n "$lt_cv_sys_max_cmd_len" && \
5311 test undefined != "$lt_cv_sys_max_cmd_len"; then
5312 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5314 else
5315 # Make teststring a little bigger before we do anything with it.
5316 # a 1K string should be a reasonable start.
5317 for i in 1 2 3 4 5 6 7 8; do
5318 teststring=$teststring$teststring
5319 done
5320 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5321 # If test is not a shell built-in, we'll probably end up computing a
5322 # maximum length that is only half of the actual maximum length, but
5323 # we can't tell.
5324 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5325 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5326 test 17 != "$i" # 1/2 MB should be enough
5327 do
5328 i=`expr $i + 1`
5329 teststring=$teststring$teststring
5330 done
5331 # Only check the string length outside the loop.
5332 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5333 teststring=
5334 # Add a significant safety factor because C++ compilers can tack on
5335 # massive amounts of additional arguments before passing them to the
5336 # linker. It appears as though 1/2 is a usable value.
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5338 fi
5339 ;;
5340 esac
5341
5342 fi
5343
5344 if test -n "$lt_cv_sys_max_cmd_len"; then
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5346 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5347 else
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5349 $as_echo "none" >&6; }
5350 fi
5351 max_cmd_len=$lt_cv_sys_max_cmd_len
5352
5353
5354
5355
5356
5357
5358 : ${CP="cp -f"}
5359 : ${MV="mv -f"}
5360 : ${RM="rm -f"}
5361
5362 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5363 lt_unset=unset
5364 else
5365 lt_unset=false
5366 fi
5367
5368
5369
5370
5371
5372 # test EBCDIC or ASCII
5373 case `echo X|tr X '\101'` in
5374 A) # ASCII based system
5375 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5376 lt_SP2NL='tr \040 \012'
5377 lt_NL2SP='tr \015\012 \040\040'
5378 ;;
5379 *) # EBCDIC based system
5380 lt_SP2NL='tr \100 \n'
5381 lt_NL2SP='tr \r\n \100\100'
5382 ;;
5383 esac
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5394 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5395 if ${lt_cv_to_host_file_cmd+:} false; then :
5396 $as_echo_n "(cached) " >&6
5397 else
5398 case $host in
5399 *-*-mingw* )
5400 case $build in
5401 *-*-mingw* ) # actually msys
5402 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5403 ;;
5404 *-*-cygwin* )
5405 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5406 ;;
5407 * ) # otherwise, assume *nix
5408 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5409 ;;
5410 esac
5411 ;;
5412 *-*-cygwin* )
5413 case $build in
5414 *-*-mingw* ) # actually msys
5415 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5416 ;;
5417 *-*-cygwin* )
5418 lt_cv_to_host_file_cmd=func_convert_file_noop
5419 ;;
5420 * ) # otherwise, assume *nix
5421 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5422 ;;
5423 esac
5424 ;;
5425 * ) # unhandled hosts (and "normal" native builds)
5426 lt_cv_to_host_file_cmd=func_convert_file_noop
5427 ;;
5428 esac
5429
5430 fi
5431
5432 to_host_file_cmd=$lt_cv_to_host_file_cmd
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5434 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5435
5436
5437
5438
5439
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5441 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5442 if ${lt_cv_to_tool_file_cmd+:} false; then :
5443 $as_echo_n "(cached) " >&6
5444 else
5445 #assume ordinary cross tools, or native build.
5446 lt_cv_to_tool_file_cmd=func_convert_file_noop
5447 case $host in
5448 *-*-mingw* )
5449 case $build in
5450 *-*-mingw* ) # actually msys
5451 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5452 ;;
5453 esac
5454 ;;
5455 esac
5456
5457 fi
5458
5459 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5461 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5462
5463
5464
5465
5466
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5468 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5469 if ${lt_cv_ld_reload_flag+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 lt_cv_ld_reload_flag='-r'
5473 fi
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5475 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5476 reload_flag=$lt_cv_ld_reload_flag
5477 case $reload_flag in
5478 "" | " "*) ;;
5479 *) reload_flag=" $reload_flag" ;;
5480 esac
5481 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5482 case $host_os in
5483 cygwin* | mingw* | pw32* | cegcc*)
5484 if test yes != "$GCC"; then
5485 reload_cmds=false
5486 fi
5487 ;;
5488 darwin*)
5489 if test yes = "$GCC"; then
5490 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5491 else
5492 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5493 fi
5494 ;;
5495 esac
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_OBJDUMP+:} false; then :
5511 $as_echo_n "(cached) " >&6
5512 else
5513 if test -n "$OBJDUMP"; then
5514 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5515 else
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 for as_dir in $PATH
5518 do
5519 IFS=$as_save_IFS
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5523 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5525 break 2
5526 fi
5527 done
5528 done
5529 IFS=$as_save_IFS
5530
5531 fi
5532 fi
5533 OBJDUMP=$ac_cv_prog_OBJDUMP
5534 if test -n "$OBJDUMP"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5536 $as_echo "$OBJDUMP" >&6; }
5537 else
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5540 fi
5541
5542
5543 fi
5544 if test -z "$ac_cv_prog_OBJDUMP"; then
5545 ac_ct_OBJDUMP=$OBJDUMP
5546 # Extract the first word of "objdump", so it can be a program name with args.
5547 set dummy objdump; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5551 $as_echo_n "(cached) " >&6
5552 else
5553 if test -n "$ac_ct_OBJDUMP"; then
5554 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5555 else
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 for as_dir in $PATH
5558 do
5559 IFS=$as_save_IFS
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5563 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5565 break 2
5566 fi
5567 done
5568 done
5569 IFS=$as_save_IFS
5570
5571 fi
5572 fi
5573 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5574 if test -n "$ac_ct_OBJDUMP"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5576 $as_echo "$ac_ct_OBJDUMP" >&6; }
5577 else
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5580 fi
5581
5582 if test "x$ac_ct_OBJDUMP" = x; then
5583 OBJDUMP="false"
5584 else
5585 case $cross_compiling:$ac_tool_warned in
5586 yes:)
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589 ac_tool_warned=yes ;;
5590 esac
5591 OBJDUMP=$ac_ct_OBJDUMP
5592 fi
5593 else
5594 OBJDUMP="$ac_cv_prog_OBJDUMP"
5595 fi
5596
5597 test -z "$OBJDUMP" && OBJDUMP=objdump
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5608 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5609 if ${lt_cv_deplibs_check_method+:} false; then :
5610 $as_echo_n "(cached) " >&6
5611 else
5612 lt_cv_file_magic_cmd='$MAGIC_CMD'
5613 lt_cv_file_magic_test_file=
5614 lt_cv_deplibs_check_method='unknown'
5615 # Need to set the preceding variable on all platforms that support
5616 # interlibrary dependencies.
5617 # 'none' -- dependencies not supported.
5618 # 'unknown' -- same as none, but documents that we really don't know.
5619 # 'pass_all' -- all dependencies passed with no checks.
5620 # 'test_compile' -- check by making test program.
5621 # 'file_magic [[regex]]' -- check by looking for files in library path
5622 # that responds to the $file_magic_cmd with a given extended regex.
5623 # If you have 'file' or equivalent on your system and you're not sure
5624 # whether 'pass_all' will *always* work, you probably want this one.
5625
5626 case $host_os in
5627 aix[4-9]*)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630
5631 beos*)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635 bsdi[45]*)
5636 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5637 lt_cv_file_magic_cmd='/usr/bin/file -L'
5638 lt_cv_file_magic_test_file=/shlib/libc.so
5639 ;;
5640
5641 cygwin*)
5642 # func_win32_libid is a shell function defined in ltmain.sh
5643 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5644 lt_cv_file_magic_cmd='func_win32_libid'
5645 ;;
5646
5647 mingw* | pw32*)
5648 # Base MSYS/MinGW do not provide the 'file' command needed by
5649 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5650 # unless we find 'file', for example because we are cross-compiling.
5651 if ( file / ) >/dev/null 2>&1; then
5652 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5653 lt_cv_file_magic_cmd='func_win32_libid'
5654 else
5655 # Keep this pattern in sync with the one in func_win32_libid.
5656 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5657 lt_cv_file_magic_cmd='$OBJDUMP -f'
5658 fi
5659 ;;
5660
5661 cegcc*)
5662 # use the weaker test based on 'objdump'. See mingw*.
5663 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5664 lt_cv_file_magic_cmd='$OBJDUMP -f'
5665 ;;
5666
5667 darwin* | rhapsody*)
5668 lt_cv_deplibs_check_method=pass_all
5669 ;;
5670
5671 freebsd* | dragonfly*)
5672 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5673 case $host_cpu in
5674 i*86 )
5675 # Not sure whether the presence of OpenBSD here was a mistake.
5676 # Let's accept both of them until this is cleared up.
5677 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5678 lt_cv_file_magic_cmd=/usr/bin/file
5679 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5680 ;;
5681 esac
5682 else
5683 lt_cv_deplibs_check_method=pass_all
5684 fi
5685 ;;
5686
5687 haiku*)
5688 lt_cv_deplibs_check_method=pass_all
5689 ;;
5690
5691 hpux10.20* | hpux11*)
5692 lt_cv_file_magic_cmd=/usr/bin/file
5693 case $host_cpu in
5694 ia64*)
5695 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5696 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5697 ;;
5698 hppa*64*)
5699 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]'
5700 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5701 ;;
5702 *)
5703 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5704 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5705 ;;
5706 esac
5707 ;;
5708
5709 interix[3-9]*)
5710 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5711 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5712 ;;
5713
5714 irix5* | irix6* | nonstopux*)
5715 case $LD in
5716 *-32|*"-32 ") libmagic=32-bit;;
5717 *-n32|*"-n32 ") libmagic=N32;;
5718 *-64|*"-64 ") libmagic=64-bit;;
5719 *) libmagic=never-match;;
5720 esac
5721 lt_cv_deplibs_check_method=pass_all
5722 ;;
5723
5724 # This must be glibc/ELF.
5725 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5726 lt_cv_deplibs_check_method=pass_all
5727 ;;
5728
5729 netbsd* | netbsdelf*-gnu)
5730 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5731 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5732 else
5733 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5734 fi
5735 ;;
5736
5737 newos6*)
5738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5739 lt_cv_file_magic_cmd=/usr/bin/file
5740 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5741 ;;
5742
5743 *nto* | *qnx*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747 openbsd* | bitrig*)
5748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5749 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5750 else
5751 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5752 fi
5753 ;;
5754
5755 osf3* | osf4* | osf5*)
5756 lt_cv_deplibs_check_method=pass_all
5757 ;;
5758
5759 rdos*)
5760 lt_cv_deplibs_check_method=pass_all
5761 ;;
5762
5763 solaris*)
5764 lt_cv_deplibs_check_method=pass_all
5765 ;;
5766
5767 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5768 lt_cv_deplibs_check_method=pass_all
5769 ;;
5770
5771 sysv4 | sysv4.3*)
5772 case $host_vendor in
5773 motorola)
5774 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]'
5775 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5776 ;;
5777 ncr)
5778 lt_cv_deplibs_check_method=pass_all
5779 ;;
5780 sequent)
5781 lt_cv_file_magic_cmd='/bin/file'
5782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5783 ;;
5784 sni)
5785 lt_cv_file_magic_cmd='/bin/file'
5786 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5787 lt_cv_file_magic_test_file=/lib/libc.so
5788 ;;
5789 siemens)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792 pc)
5793 lt_cv_deplibs_check_method=pass_all
5794 ;;
5795 esac
5796 ;;
5797
5798 tpf*)
5799 lt_cv_deplibs_check_method=pass_all
5800 ;;
5801 os2*)
5802 lt_cv_deplibs_check_method=pass_all
5803 ;;
5804 esac
5805
5806 fi
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5808 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5809
5810 file_magic_glob=
5811 want_nocaseglob=no
5812 if test "$build" = "$host"; then
5813 case $host_os in
5814 mingw* | pw32*)
5815 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5816 want_nocaseglob=yes
5817 else
5818 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5819 fi
5820 ;;
5821 esac
5822 fi
5823
5824 file_magic_cmd=$lt_cv_file_magic_cmd
5825 deplibs_check_method=$lt_cv_deplibs_check_method
5826 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849 if test -n "$ac_tool_prefix"; then
5850 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5851 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5853 $as_echo_n "checking for $ac_word... " >&6; }
5854 if ${ac_cv_prog_DLLTOOL+:} false; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 if test -n "$DLLTOOL"; then
5858 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5859 else
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5861 for as_dir in $PATH
5862 do
5863 IFS=$as_save_IFS
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5867 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 break 2
5870 fi
5871 done
5872 done
5873 IFS=$as_save_IFS
5874
5875 fi
5876 fi
5877 DLLTOOL=$ac_cv_prog_DLLTOOL
5878 if test -n "$DLLTOOL"; then
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5880 $as_echo "$DLLTOOL" >&6; }
5881 else
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5884 fi
5885
5886
5887 fi
5888 if test -z "$ac_cv_prog_DLLTOOL"; then
5889 ac_ct_DLLTOOL=$DLLTOOL
5890 # Extract the first word of "dlltool", so it can be a program name with args.
5891 set dummy dlltool; ac_word=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5895 $as_echo_n "(cached) " >&6
5896 else
5897 if test -n "$ac_ct_DLLTOOL"; then
5898 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5899 else
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 for as_dir in $PATH
5902 do
5903 IFS=$as_save_IFS
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 break 2
5910 fi
5911 done
5912 done
5913 IFS=$as_save_IFS
5914
5915 fi
5916 fi
5917 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5918 if test -n "$ac_ct_DLLTOOL"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5920 $as_echo "$ac_ct_DLLTOOL" >&6; }
5921 else
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5924 fi
5925
5926 if test "x$ac_ct_DLLTOOL" = x; then
5927 DLLTOOL="false"
5928 else
5929 case $cross_compiling:$ac_tool_warned in
5930 yes:)
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5933 ac_tool_warned=yes ;;
5934 esac
5935 DLLTOOL=$ac_ct_DLLTOOL
5936 fi
5937 else
5938 DLLTOOL="$ac_cv_prog_DLLTOOL"
5939 fi
5940
5941 test -z "$DLLTOOL" && DLLTOOL=dlltool
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5953 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5954 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5955 $as_echo_n "(cached) " >&6
5956 else
5957 lt_cv_sharedlib_from_linklib_cmd='unknown'
5958
5959 case $host_os in
5960 cygwin* | mingw* | pw32* | cegcc*)
5961 # two different shell functions defined in ltmain.sh;
5962 # decide which one to use based on capabilities of $DLLTOOL
5963 case `$DLLTOOL --help 2>&1` in
5964 *--identify-strict*)
5965 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5966 ;;
5967 *)
5968 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5969 ;;
5970 esac
5971 ;;
5972 *)
5973 # fallback: assume linklib IS sharedlib
5974 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5975 ;;
5976 esac
5977
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5980 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5981 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5982 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5983
5984
5985
5986
5987
5988
5989
5990
5991 if test -n "$ac_tool_prefix"; then
5992 for ac_prog in ar
5993 do
5994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5995 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 $as_echo_n "checking for $ac_word... " >&6; }
5998 if ${ac_cv_prog_AR+:} false; then :
5999 $as_echo_n "(cached) " >&6
6000 else
6001 if test -n "$AR"; then
6002 ac_cv_prog_AR="$AR" # Let the user override the test.
6003 else
6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6005 for as_dir in $PATH
6006 do
6007 IFS=$as_save_IFS
6008 test -z "$as_dir" && as_dir=.
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6011 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 break 2
6014 fi
6015 done
6016 done
6017 IFS=$as_save_IFS
6018
6019 fi
6020 fi
6021 AR=$ac_cv_prog_AR
6022 if test -n "$AR"; then
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6024 $as_echo "$AR" >&6; }
6025 else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6027 $as_echo "no" >&6; }
6028 fi
6029
6030
6031 test -n "$AR" && break
6032 done
6033 fi
6034 if test -z "$AR"; then
6035 ac_ct_AR=$AR
6036 for ac_prog in ar
6037 do
6038 # Extract the first word of "$ac_prog", so it can be a program name with args.
6039 set dummy $ac_prog; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test -n "$ac_ct_AR"; then
6046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_ac_ct_AR="$ac_prog"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6066 if test -n "$ac_ct_AR"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6068 $as_echo "$ac_ct_AR" >&6; }
6069 else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074
6075 test -n "$ac_ct_AR" && break
6076 done
6077
6078 if test "x$ac_ct_AR" = x; then
6079 AR="false"
6080 else
6081 case $cross_compiling:$ac_tool_warned in
6082 yes:)
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6085 ac_tool_warned=yes ;;
6086 esac
6087 AR=$ac_ct_AR
6088 fi
6089 fi
6090
6091 : ${AR=ar}
6092 : ${AR_FLAGS=cru}
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6105 $as_echo_n "checking for archiver @FILE support... " >&6; }
6106 if ${lt_cv_ar_at_file+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 lt_cv_ar_at_file=no
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112
6113 int
6114 main ()
6115 {
6116
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 if ac_fn_c_try_compile "$LINENO"; then :
6122 echo conftest.$ac_objext > conftest.lst
6123 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6125 (eval $lt_ar_try) 2>&5
6126 ac_status=$?
6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6128 test $ac_status = 0; }
6129 if test 0 -eq "$ac_status"; then
6130 # Ensure the archiver fails upon bogus file names.
6131 rm -f conftest.$ac_objext libconftest.a
6132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6133 (eval $lt_ar_try) 2>&5
6134 ac_status=$?
6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6136 test $ac_status = 0; }
6137 if test 0 -ne "$ac_status"; then
6138 lt_cv_ar_at_file=@
6139 fi
6140 fi
6141 rm -f conftest.* libconftest.a
6142
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145
6146 fi
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6148 $as_echo "$lt_cv_ar_at_file" >&6; }
6149
6150 if test no = "$lt_cv_ar_at_file"; then
6151 archiver_list_spec=
6152 else
6153 archiver_list_spec=$lt_cv_ar_at_file
6154 fi
6155
6156
6157
6158
6159
6160
6161
6162 if test -n "$ac_tool_prefix"; then
6163 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6164 set dummy ${ac_tool_prefix}strip; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if ${ac_cv_prog_STRIP+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if test -n "$STRIP"; then
6171 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6183 fi
6184 done
6185 done
6186 IFS=$as_save_IFS
6187
6188 fi
6189 fi
6190 STRIP=$ac_cv_prog_STRIP
6191 if test -n "$STRIP"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6193 $as_echo "$STRIP" >&6; }
6194 else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6197 fi
6198
6199
6200 fi
6201 if test -z "$ac_cv_prog_STRIP"; then
6202 ac_ct_STRIP=$STRIP
6203 # Extract the first word of "strip", so it can be a program name with args.
6204 set dummy strip; ac_word=$2
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206 $as_echo_n "checking for $ac_word... " >&6; }
6207 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
6210 if test -n "$ac_ct_STRIP"; then
6211 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6212 else
6213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 for as_dir in $PATH
6215 do
6216 IFS=$as_save_IFS
6217 test -z "$as_dir" && as_dir=.
6218 for ac_exec_ext in '' $ac_executable_extensions; do
6219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220 ac_cv_prog_ac_ct_STRIP="strip"
6221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222 break 2
6223 fi
6224 done
6225 done
6226 IFS=$as_save_IFS
6227
6228 fi
6229 fi
6230 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6231 if test -n "$ac_ct_STRIP"; then
6232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6233 $as_echo "$ac_ct_STRIP" >&6; }
6234 else
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236 $as_echo "no" >&6; }
6237 fi
6238
6239 if test "x$ac_ct_STRIP" = x; then
6240 STRIP=":"
6241 else
6242 case $cross_compiling:$ac_tool_warned in
6243 yes:)
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6246 ac_tool_warned=yes ;;
6247 esac
6248 STRIP=$ac_ct_STRIP
6249 fi
6250 else
6251 STRIP="$ac_cv_prog_STRIP"
6252 fi
6253
6254 test -z "$STRIP" && STRIP=:
6255
6256
6257
6258
6259
6260
6261 if test -n "$ac_tool_prefix"; then
6262 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6263 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 $as_echo_n "checking for $ac_word... " >&6; }
6266 if ${ac_cv_prog_RANLIB+:} false; then :
6267 $as_echo_n "(cached) " >&6
6268 else
6269 if test -n "$RANLIB"; then
6270 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6271 else
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 for as_dir in $PATH
6274 do
6275 IFS=$as_save_IFS
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6279 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6281 break 2
6282 fi
6283 done
6284 done
6285 IFS=$as_save_IFS
6286
6287 fi
6288 fi
6289 RANLIB=$ac_cv_prog_RANLIB
6290 if test -n "$RANLIB"; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6292 $as_echo "$RANLIB" >&6; }
6293 else
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6295 $as_echo "no" >&6; }
6296 fi
6297
6298
6299 fi
6300 if test -z "$ac_cv_prog_RANLIB"; then
6301 ac_ct_RANLIB=$RANLIB
6302 # Extract the first word of "ranlib", so it can be a program name with args.
6303 set dummy ranlib; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6307 $as_echo_n "(cached) " >&6
6308 else
6309 if test -n "$ac_ct_RANLIB"; then
6310 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6311 else
6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 for as_dir in $PATH
6314 do
6315 IFS=$as_save_IFS
6316 test -z "$as_dir" && as_dir=.
6317 for ac_exec_ext in '' $ac_executable_extensions; do
6318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6319 ac_cv_prog_ac_ct_RANLIB="ranlib"
6320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6321 break 2
6322 fi
6323 done
6324 done
6325 IFS=$as_save_IFS
6326
6327 fi
6328 fi
6329 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6330 if test -n "$ac_ct_RANLIB"; then
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6332 $as_echo "$ac_ct_RANLIB" >&6; }
6333 else
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6335 $as_echo "no" >&6; }
6336 fi
6337
6338 if test "x$ac_ct_RANLIB" = x; then
6339 RANLIB=":"
6340 else
6341 case $cross_compiling:$ac_tool_warned in
6342 yes:)
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345 ac_tool_warned=yes ;;
6346 esac
6347 RANLIB=$ac_ct_RANLIB
6348 fi
6349 else
6350 RANLIB="$ac_cv_prog_RANLIB"
6351 fi
6352
6353 test -z "$RANLIB" && RANLIB=:
6354
6355
6356
6357
6358
6359
6360 # Determine commands to create old-style static archives.
6361 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6362 old_postinstall_cmds='chmod 644 $oldlib'
6363 old_postuninstall_cmds=
6364
6365 if test -n "$RANLIB"; then
6366 case $host_os in
6367 bitrig* | openbsd*)
6368 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6369 ;;
6370 *)
6371 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6372 ;;
6373 esac
6374 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6375 fi
6376
6377 case $host_os in
6378 darwin*)
6379 lock_old_archive_extraction=yes ;;
6380 *)
6381 lock_old_archive_extraction=no ;;
6382 esac
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422 # If no C compiler was specified, use CC.
6423 LTCC=${LTCC-"$CC"}
6424
6425 # If no C compiler flags were specified, use CFLAGS.
6426 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6427
6428 # Allow CC to be a program name with arguments.
6429 compiler=$CC
6430
6431
6432 # Check for command to grab the raw symbol name followed by C symbol from nm.
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6434 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6435 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438
6439 # These are sane defaults that work on at least a few old systems.
6440 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6441
6442 # Character class describing NM global symbol codes.
6443 symcode='[BCDEGRST]'
6444
6445 # Regexp to match symbols that can be accessed directly from C.
6446 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6447
6448 # Define system-specific variables.
6449 case $host_os in
6450 aix*)
6451 symcode='[BCDT]'
6452 ;;
6453 cygwin* | mingw* | pw32* | cegcc*)
6454 symcode='[ABCDGISTW]'
6455 ;;
6456 hpux*)
6457 if test ia64 = "$host_cpu"; then
6458 symcode='[ABCDEGRST]'
6459 fi
6460 ;;
6461 irix* | nonstopux*)
6462 symcode='[BCDEGRST]'
6463 ;;
6464 osf*)
6465 symcode='[BCDEGQRST]'
6466 ;;
6467 solaris*)
6468 symcode='[BDRT]'
6469 ;;
6470 sco3.2v5*)
6471 symcode='[DT]'
6472 ;;
6473 sysv4.2uw2*)
6474 symcode='[DT]'
6475 ;;
6476 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6477 symcode='[ABDT]'
6478 ;;
6479 sysv4)
6480 symcode='[DFNSTU]'
6481 ;;
6482 esac
6483
6484 # If we're using GNU nm, then use its standard symbol codes.
6485 case `$NM -V 2>&1` in
6486 *GNU* | *'with BFD'*)
6487 symcode='[ABCDGIRSTW]' ;;
6488 esac
6489
6490 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6491 # Gets list of data symbols to import.
6492 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6493 # Adjust the below global symbol transforms to fixup imported variables.
6494 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6495 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6496 lt_c_name_lib_hook="\
6497 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6498 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6499 else
6500 # Disable hooks by default.
6501 lt_cv_sys_global_symbol_to_import=
6502 lt_cdecl_hook=
6503 lt_c_name_hook=
6504 lt_c_name_lib_hook=
6505 fi
6506
6507 # Transform an extracted symbol line into a proper C declaration.
6508 # Some systems (esp. on ia64) link data and code symbols differently,
6509 # so use this general approach.
6510 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6511 $lt_cdecl_hook\
6512 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6513 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6514
6515 # Transform an extracted symbol line into symbol name and symbol address
6516 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6517 $lt_c_name_hook\
6518 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6519 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6520
6521 # Transform an extracted symbol line into symbol name with lib prefix and
6522 # symbol address.
6523 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6524 $lt_c_name_lib_hook\
6525 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6526 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6527 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6528
6529 # Handle CRLF in mingw tool chain
6530 opt_cr=
6531 case $build_os in
6532 mingw*)
6533 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6534 ;;
6535 esac
6536
6537 # Try without a prefix underscore, then with it.
6538 for ac_symprfx in "" "_"; do
6539
6540 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6541 symxfrm="\\1 $ac_symprfx\\2 \\2"
6542
6543 # Write the raw and C identifiers.
6544 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6545 # Fake it for dumpbin and say T for any non-static function,
6546 # D for any global variable and I for any imported variable.
6547 # Also find C++ and __fastcall symbols from MSVC++,
6548 # which start with @ or ?.
6549 lt_cv_sys_global_symbol_pipe="$AWK '"\
6550 " {last_section=section; section=\$ 3};"\
6551 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6552 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6553 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6554 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6555 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6556 " \$ 0!~/External *\|/{next};"\
6557 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6558 " {if(hide[section]) next};"\
6559 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6560 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6561 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6562 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6563 " ' prfx=^$ac_symprfx"
6564 else
6565 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6566 fi
6567 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6568
6569 # Check to see that the pipe works correctly.
6570 pipe_works=no
6571
6572 rm -f conftest*
6573 cat > conftest.$ac_ext <<_LT_EOF
6574 #ifdef __cplusplus
6575 extern "C" {
6576 #endif
6577 char nm_test_var;
6578 void nm_test_func(void);
6579 void nm_test_func(void){}
6580 #ifdef __cplusplus
6581 }
6582 #endif
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6584 _LT_EOF
6585
6586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587 (eval $ac_compile) 2>&5
6588 ac_status=$?
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; }; then
6591 # Now try to grab the symbols.
6592 nlist=conftest.nm
6593 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6594 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6595 ac_status=$?
6596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597 test $ac_status = 0; } && test -s "$nlist"; then
6598 # Try sorting and uniquifying the output.
6599 if sort "$nlist" | uniq > "$nlist"T; then
6600 mv -f "$nlist"T "$nlist"
6601 else
6602 rm -f "$nlist"T
6603 fi
6604
6605 # Make sure that we snagged all the symbols we need.
6606 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6607 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6608 cat <<_LT_EOF > conftest.$ac_ext
6609 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6610 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6611 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6612 relocations are performed -- see ld's documentation on pseudo-relocs. */
6613 # define LT_DLSYM_CONST
6614 #elif defined __osf__
6615 /* This system does not cope well with relocations in const data. */
6616 # define LT_DLSYM_CONST
6617 #else
6618 # define LT_DLSYM_CONST const
6619 #endif
6620
6621 #ifdef __cplusplus
6622 extern "C" {
6623 #endif
6624
6625 _LT_EOF
6626 # Now generate the symbol file.
6627 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6628
6629 cat <<_LT_EOF >> conftest.$ac_ext
6630
6631 /* The mapping between symbol names and symbols. */
6632 LT_DLSYM_CONST struct {
6633 const char *name;
6634 void *address;
6635 }
6636 lt__PROGRAM__LTX_preloaded_symbols[] =
6637 {
6638 { "@PROGRAM@", (void *) 0 },
6639 _LT_EOF
6640 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6641 cat <<\_LT_EOF >> conftest.$ac_ext
6642 {0, (void *) 0}
6643 };
6644
6645 /* This works around a problem in FreeBSD linker */
6646 #ifdef FREEBSD_WORKAROUND
6647 static const void *lt_preloaded_setup() {
6648 return lt__PROGRAM__LTX_preloaded_symbols;
6649 }
6650 #endif
6651
6652 #ifdef __cplusplus
6653 }
6654 #endif
6655 _LT_EOF
6656 # Now try linking the two files.
6657 mv conftest.$ac_objext conftstm.$ac_objext
6658 lt_globsym_save_LIBS=$LIBS
6659 lt_globsym_save_CFLAGS=$CFLAGS
6660 LIBS=conftstm.$ac_objext
6661 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6663 (eval $ac_link) 2>&5
6664 ac_status=$?
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6667 pipe_works=yes
6668 fi
6669 LIBS=$lt_globsym_save_LIBS
6670 CFLAGS=$lt_globsym_save_CFLAGS
6671 else
6672 echo "cannot find nm_test_func in $nlist" >&5
6673 fi
6674 else
6675 echo "cannot find nm_test_var in $nlist" >&5
6676 fi
6677 else
6678 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6679 fi
6680 else
6681 echo "$progname: failed program was:" >&5
6682 cat conftest.$ac_ext >&5
6683 fi
6684 rm -rf conftest* conftst*
6685
6686 # Do not use the global_symbol_pipe unless it works.
6687 if test yes = "$pipe_works"; then
6688 break
6689 else
6690 lt_cv_sys_global_symbol_pipe=
6691 fi
6692 done
6693
6694 fi
6695
6696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6697 lt_cv_sys_global_symbol_to_cdecl=
6698 fi
6699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6701 $as_echo "failed" >&6; }
6702 else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6704 $as_echo "ok" >&6; }
6705 fi
6706
6707 # Response file support.
6708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6709 nm_file_list_spec='@'
6710 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6711 nm_file_list_spec='@'
6712 fi
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6751 $as_echo_n "checking for sysroot... " >&6; }
6752
6753 # Check whether --with-sysroot was given.
6754 if test "${with_sysroot+set}" = set; then :
6755 withval=$with_sysroot;
6756 else
6757 with_sysroot=no
6758 fi
6759
6760
6761 lt_sysroot=
6762 case $with_sysroot in #(
6763 yes)
6764 if test yes = "$GCC"; then
6765 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6766 fi
6767 ;; #(
6768 /*)
6769 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6770 ;; #(
6771 no|'')
6772 ;; #(
6773 *)
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6775 $as_echo "$with_sysroot" >&6; }
6776 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6777 ;;
6778 esac
6779
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6781 $as_echo "${lt_sysroot:-no}" >&6; }
6782
6783
6784
6785
6786
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6788 $as_echo_n "checking for a working dd... " >&6; }
6789 if ${ac_cv_path_lt_DD+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 printf 0123456789abcdef0123456789abcdef >conftest.i
6793 cat conftest.i conftest.i >conftest2.i
6794 : ${lt_DD:=$DD}
6795 if test -z "$lt_DD"; then
6796 ac_path_lt_DD_found=false
6797 # Loop through the user's path and test for each of PROGNAME-LIST
6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 for as_dir in $PATH
6800 do
6801 IFS=$as_save_IFS
6802 test -z "$as_dir" && as_dir=.
6803 for ac_prog in dd; do
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6806 as_fn_executable_p "$ac_path_lt_DD" || continue
6807 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6808 cmp -s conftest.i conftest.out \
6809 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6810 fi
6811 $ac_path_lt_DD_found && break 3
6812 done
6813 done
6814 done
6815 IFS=$as_save_IFS
6816 if test -z "$ac_cv_path_lt_DD"; then
6817 :
6818 fi
6819 else
6820 ac_cv_path_lt_DD=$lt_DD
6821 fi
6822
6823 rm -f conftest.i conftest2.i conftest.out
6824 fi
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6826 $as_echo "$ac_cv_path_lt_DD" >&6; }
6827
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6830 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6831 if ${lt_cv_truncate_bin+:} false; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834 printf 0123456789abcdef0123456789abcdef >conftest.i
6835 cat conftest.i conftest.i >conftest2.i
6836 lt_cv_truncate_bin=
6837 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6838 cmp -s conftest.i conftest.out \
6839 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6840 fi
6841 rm -f conftest.i conftest2.i conftest.out
6842 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6843 fi
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6845 $as_echo "$lt_cv_truncate_bin" >&6; }
6846
6847
6848
6849
6850
6851
6852
6853 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6854 func_cc_basename ()
6855 {
6856 for cc_temp in $*""; do
6857 case $cc_temp in
6858 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6859 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6860 \-*) ;;
6861 *) break;;
6862 esac
6863 done
6864 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6865 }
6866
6867 # Check whether --enable-libtool-lock was given.
6868 if test "${enable_libtool_lock+set}" = set; then :
6869 enableval=$enable_libtool_lock;
6870 fi
6871
6872 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6873
6874 # Some flags need to be propagated to the compiler or linker for good
6875 # libtool support.
6876 case $host in
6877 ia64-*-hpux*)
6878 # Find out what ABI is being produced by ac_compile, and set mode
6879 # options accordingly.
6880 echo 'int i;' > conftest.$ac_ext
6881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6882 (eval $ac_compile) 2>&5
6883 ac_status=$?
6884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6885 test $ac_status = 0; }; then
6886 case `/usr/bin/file conftest.$ac_objext` in
6887 *ELF-32*)
6888 HPUX_IA64_MODE=32
6889 ;;
6890 *ELF-64*)
6891 HPUX_IA64_MODE=64
6892 ;;
6893 esac
6894 fi
6895 rm -rf conftest*
6896 ;;
6897 *-*-irix6*)
6898 # Find out what ABI is being produced by ac_compile, and set linker
6899 # options accordingly.
6900 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6902 (eval $ac_compile) 2>&5
6903 ac_status=$?
6904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6905 test $ac_status = 0; }; then
6906 if test yes = "$lt_cv_prog_gnu_ld"; then
6907 case `/usr/bin/file conftest.$ac_objext` in
6908 *32-bit*)
6909 LD="${LD-ld} -melf32bsmip"
6910 ;;
6911 *N32*)
6912 LD="${LD-ld} -melf32bmipn32"
6913 ;;
6914 *64-bit*)
6915 LD="${LD-ld} -melf64bmip"
6916 ;;
6917 esac
6918 else
6919 case `/usr/bin/file conftest.$ac_objext` in
6920 *32-bit*)
6921 LD="${LD-ld} -32"
6922 ;;
6923 *N32*)
6924 LD="${LD-ld} -n32"
6925 ;;
6926 *64-bit*)
6927 LD="${LD-ld} -64"
6928 ;;
6929 esac
6930 fi
6931 fi
6932 rm -rf conftest*
6933 ;;
6934
6935 mips64*-*linux*)
6936 # Find out what ABI is being produced by ac_compile, and set linker
6937 # options accordingly.
6938 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6940 (eval $ac_compile) 2>&5
6941 ac_status=$?
6942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943 test $ac_status = 0; }; then
6944 emul=elf
6945 case `/usr/bin/file conftest.$ac_objext` in
6946 *32-bit*)
6947 emul="${emul}32"
6948 ;;
6949 *64-bit*)
6950 emul="${emul}64"
6951 ;;
6952 esac
6953 case `/usr/bin/file conftest.$ac_objext` in
6954 *MSB*)
6955 emul="${emul}btsmip"
6956 ;;
6957 *LSB*)
6958 emul="${emul}ltsmip"
6959 ;;
6960 esac
6961 case `/usr/bin/file conftest.$ac_objext` in
6962 *N32*)
6963 emul="${emul}n32"
6964 ;;
6965 esac
6966 LD="${LD-ld} -m $emul"
6967 fi
6968 rm -rf conftest*
6969 ;;
6970
6971 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6972 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6973 # Find out what ABI is being produced by ac_compile, and set linker
6974 # options accordingly. Note that the listed cases only cover the
6975 # situations where additional linker options are needed (such as when
6976 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6977 # vice versa); the common cases where no linker options are needed do
6978 # not appear in the list.
6979 echo 'int i;' > conftest.$ac_ext
6980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6981 (eval $ac_compile) 2>&5
6982 ac_status=$?
6983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984 test $ac_status = 0; }; then
6985 case `/usr/bin/file conftest.o` in
6986 *32-bit*)
6987 case $host in
6988 x86_64-*kfreebsd*-gnu)
6989 LD="${LD-ld} -m elf_i386_fbsd"
6990 ;;
6991 x86_64-*linux*)
6992 case `/usr/bin/file conftest.o` in
6993 *x86-64*)
6994 LD="${LD-ld} -m elf32_x86_64"
6995 ;;
6996 *)
6997 LD="${LD-ld} -m elf_i386"
6998 ;;
6999 esac
7000 ;;
7001 powerpc64le-*linux*)
7002 LD="${LD-ld} -m elf32lppclinux"
7003 ;;
7004 powerpc64-*linux*)
7005 LD="${LD-ld} -m elf32ppclinux"
7006 ;;
7007 s390x-*linux*)
7008 LD="${LD-ld} -m elf_s390"
7009 ;;
7010 sparc64-*linux*)
7011 LD="${LD-ld} -m elf32_sparc"
7012 ;;
7013 esac
7014 ;;
7015 *64-bit*)
7016 case $host in
7017 x86_64-*kfreebsd*-gnu)
7018 LD="${LD-ld} -m elf_x86_64_fbsd"
7019 ;;
7020 x86_64-*linux*)
7021 LD="${LD-ld} -m elf_x86_64"
7022 ;;
7023 powerpcle-*linux*)
7024 LD="${LD-ld} -m elf64lppc"
7025 ;;
7026 powerpc-*linux*)
7027 LD="${LD-ld} -m elf64ppc"
7028 ;;
7029 s390*-*linux*|s390*-*tpf*)
7030 LD="${LD-ld} -m elf64_s390"
7031 ;;
7032 sparc*-*linux*)
7033 LD="${LD-ld} -m elf64_sparc"
7034 ;;
7035 esac
7036 ;;
7037 esac
7038 fi
7039 rm -rf conftest*
7040 ;;
7041
7042 *-*-sco3.2v5*)
7043 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7044 SAVE_CFLAGS=$CFLAGS
7045 CFLAGS="$CFLAGS -belf"
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7047 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7048 if ${lt_cv_cc_needs_belf+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 ac_ext=c
7052 ac_cpp='$CPP $CPPFLAGS'
7053 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7054 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7056
7057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7058 /* end confdefs.h. */
7059
7060 int
7061 main ()
7062 {
7063
7064 ;
7065 return 0;
7066 }
7067 _ACEOF
7068 if ac_fn_c_try_link "$LINENO"; then :
7069 lt_cv_cc_needs_belf=yes
7070 else
7071 lt_cv_cc_needs_belf=no
7072 fi
7073 rm -f core conftest.err conftest.$ac_objext \
7074 conftest$ac_exeext conftest.$ac_ext
7075 ac_ext=c
7076 ac_cpp='$CPP $CPPFLAGS'
7077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7080
7081 fi
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7083 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7084 if test yes != "$lt_cv_cc_needs_belf"; then
7085 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7086 CFLAGS=$SAVE_CFLAGS
7087 fi
7088 ;;
7089 *-*solaris*)
7090 # Find out what ABI is being produced by ac_compile, and set linker
7091 # options accordingly.
7092 echo 'int i;' > conftest.$ac_ext
7093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7094 (eval $ac_compile) 2>&5
7095 ac_status=$?
7096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7097 test $ac_status = 0; }; then
7098 case `/usr/bin/file conftest.o` in
7099 *64-bit*)
7100 case $lt_cv_prog_gnu_ld in
7101 yes*)
7102 case $host in
7103 i?86-*-solaris*|x86_64-*-solaris*)
7104 LD="${LD-ld} -m elf_x86_64"
7105 ;;
7106 sparc*-*-solaris*)
7107 LD="${LD-ld} -m elf64_sparc"
7108 ;;
7109 esac
7110 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7111 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7112 LD=${LD-ld}_sol2
7113 fi
7114 ;;
7115 *)
7116 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7117 LD="${LD-ld} -64"
7118 fi
7119 ;;
7120 esac
7121 ;;
7122 esac
7123 fi
7124 rm -rf conftest*
7125 ;;
7126 esac
7127
7128 need_locks=$enable_libtool_lock
7129
7130 if test -n "$ac_tool_prefix"; then
7131 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7132 set dummy ${ac_tool_prefix}mt; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 if test -n "$MANIFEST_TOOL"; then
7139 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7140 else
7141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 for as_dir in $PATH
7143 do
7144 IFS=$as_save_IFS
7145 test -z "$as_dir" && as_dir=.
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7148 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 break 2
7151 fi
7152 done
7153 done
7154 IFS=$as_save_IFS
7155
7156 fi
7157 fi
7158 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7159 if test -n "$MANIFEST_TOOL"; then
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7161 $as_echo "$MANIFEST_TOOL" >&6; }
7162 else
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164 $as_echo "no" >&6; }
7165 fi
7166
7167
7168 fi
7169 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7170 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7171 # Extract the first word of "mt", so it can be a program name with args.
7172 set dummy mt; ac_word=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 if test -n "$ac_ct_MANIFEST_TOOL"; then
7179 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7180 else
7181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH
7183 do
7184 IFS=$as_save_IFS
7185 test -z "$as_dir" && as_dir=.
7186 for ac_exec_ext in '' $ac_executable_extensions; do
7187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7188 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 break 2
7191 fi
7192 done
7193 done
7194 IFS=$as_save_IFS
7195
7196 fi
7197 fi
7198 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7199 if test -n "$ac_ct_MANIFEST_TOOL"; then
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7201 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7202 else
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7204 $as_echo "no" >&6; }
7205 fi
7206
7207 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7208 MANIFEST_TOOL=":"
7209 else
7210 case $cross_compiling:$ac_tool_warned in
7211 yes:)
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7213 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7214 ac_tool_warned=yes ;;
7215 esac
7216 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7217 fi
7218 else
7219 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7220 fi
7221
7222 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7224 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7225 if ${lt_cv_path_mainfest_tool+:} false; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 lt_cv_path_mainfest_tool=no
7229 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7230 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7231 cat conftest.err >&5
7232 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7233 lt_cv_path_mainfest_tool=yes
7234 fi
7235 rm -f conftest*
7236 fi
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7238 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7239 if test yes != "$lt_cv_path_mainfest_tool"; then
7240 MANIFEST_TOOL=:
7241 fi
7242
7243
7244
7245
7246
7247
7248 case $host_os in
7249 rhapsody* | darwin*)
7250 if test -n "$ac_tool_prefix"; then
7251 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7252 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7254 $as_echo_n "checking for $ac_word... " >&6; }
7255 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7256 $as_echo_n "(cached) " >&6
7257 else
7258 if test -n "$DSYMUTIL"; then
7259 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7260 else
7261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7262 for as_dir in $PATH
7263 do
7264 IFS=$as_save_IFS
7265 test -z "$as_dir" && as_dir=.
7266 for ac_exec_ext in '' $ac_executable_extensions; do
7267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7268 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 break 2
7271 fi
7272 done
7273 done
7274 IFS=$as_save_IFS
7275
7276 fi
7277 fi
7278 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7279 if test -n "$DSYMUTIL"; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7281 $as_echo "$DSYMUTIL" >&6; }
7282 else
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7284 $as_echo "no" >&6; }
7285 fi
7286
7287
7288 fi
7289 if test -z "$ac_cv_prog_DSYMUTIL"; then
7290 ac_ct_DSYMUTIL=$DSYMUTIL
7291 # Extract the first word of "dsymutil", so it can be a program name with args.
7292 set dummy dsymutil; ac_word=$2
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7294 $as_echo_n "checking for $ac_word... " >&6; }
7295 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 if test -n "$ac_ct_DSYMUTIL"; then
7299 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7300 else
7301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7302 for as_dir in $PATH
7303 do
7304 IFS=$as_save_IFS
7305 test -z "$as_dir" && as_dir=.
7306 for ac_exec_ext in '' $ac_executable_extensions; do
7307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7308 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7310 break 2
7311 fi
7312 done
7313 done
7314 IFS=$as_save_IFS
7315
7316 fi
7317 fi
7318 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7319 if test -n "$ac_ct_DSYMUTIL"; then
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7321 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7322 else
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7324 $as_echo "no" >&6; }
7325 fi
7326
7327 if test "x$ac_ct_DSYMUTIL" = x; then
7328 DSYMUTIL=":"
7329 else
7330 case $cross_compiling:$ac_tool_warned in
7331 yes:)
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7334 ac_tool_warned=yes ;;
7335 esac
7336 DSYMUTIL=$ac_ct_DSYMUTIL
7337 fi
7338 else
7339 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7340 fi
7341
7342 if test -n "$ac_tool_prefix"; then
7343 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7344 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7346 $as_echo_n "checking for $ac_word... " >&6; }
7347 if ${ac_cv_prog_NMEDIT+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 if test -n "$NMEDIT"; then
7351 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7352 else
7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7354 for as_dir in $PATH
7355 do
7356 IFS=$as_save_IFS
7357 test -z "$as_dir" && as_dir=.
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7360 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7362 break 2
7363 fi
7364 done
7365 done
7366 IFS=$as_save_IFS
7367
7368 fi
7369 fi
7370 NMEDIT=$ac_cv_prog_NMEDIT
7371 if test -n "$NMEDIT"; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7373 $as_echo "$NMEDIT" >&6; }
7374 else
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7376 $as_echo "no" >&6; }
7377 fi
7378
7379
7380 fi
7381 if test -z "$ac_cv_prog_NMEDIT"; then
7382 ac_ct_NMEDIT=$NMEDIT
7383 # Extract the first word of "nmedit", so it can be a program name with args.
7384 set dummy nmedit; ac_word=$2
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7386 $as_echo_n "checking for $ac_word... " >&6; }
7387 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 if test -n "$ac_ct_NMEDIT"; then
7391 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7392 else
7393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396 IFS=$as_save_IFS
7397 test -z "$as_dir" && as_dir=.
7398 for ac_exec_ext in '' $ac_executable_extensions; do
7399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 break 2
7403 fi
7404 done
7405 done
7406 IFS=$as_save_IFS
7407
7408 fi
7409 fi
7410 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7411 if test -n "$ac_ct_NMEDIT"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7413 $as_echo "$ac_ct_NMEDIT" >&6; }
7414 else
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417 fi
7418
7419 if test "x$ac_ct_NMEDIT" = x; then
7420 NMEDIT=":"
7421 else
7422 case $cross_compiling:$ac_tool_warned in
7423 yes:)
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7426 ac_tool_warned=yes ;;
7427 esac
7428 NMEDIT=$ac_ct_NMEDIT
7429 fi
7430 else
7431 NMEDIT="$ac_cv_prog_NMEDIT"
7432 fi
7433
7434 if test -n "$ac_tool_prefix"; then
7435 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7436 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if ${ac_cv_prog_LIPO+:} false; then :
7440 $as_echo_n "(cached) " >&6
7441 else
7442 if test -n "$LIPO"; then
7443 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7444 else
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7446 for as_dir in $PATH
7447 do
7448 IFS=$as_save_IFS
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7452 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7454 break 2
7455 fi
7456 done
7457 done
7458 IFS=$as_save_IFS
7459
7460 fi
7461 fi
7462 LIPO=$ac_cv_prog_LIPO
7463 if test -n "$LIPO"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7465 $as_echo "$LIPO" >&6; }
7466 else
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7469 fi
7470
7471
7472 fi
7473 if test -z "$ac_cv_prog_LIPO"; then
7474 ac_ct_LIPO=$LIPO
7475 # Extract the first word of "lipo", so it can be a program name with args.
7476 set dummy lipo; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481 else
7482 if test -n "$ac_ct_LIPO"; then
7483 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488 IFS=$as_save_IFS
7489 test -z "$as_dir" && as_dir=.
7490 for ac_exec_ext in '' $ac_executable_extensions; do
7491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492 ac_cv_prog_ac_ct_LIPO="lipo"
7493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494 break 2
7495 fi
7496 done
7497 done
7498 IFS=$as_save_IFS
7499
7500 fi
7501 fi
7502 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7503 if test -n "$ac_ct_LIPO"; then
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7505 $as_echo "$ac_ct_LIPO" >&6; }
7506 else
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509 fi
7510
7511 if test "x$ac_ct_LIPO" = x; then
7512 LIPO=":"
7513 else
7514 case $cross_compiling:$ac_tool_warned in
7515 yes:)
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7517 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7518 ac_tool_warned=yes ;;
7519 esac
7520 LIPO=$ac_ct_LIPO
7521 fi
7522 else
7523 LIPO="$ac_cv_prog_LIPO"
7524 fi
7525
7526 if test -n "$ac_tool_prefix"; then
7527 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7528 set dummy ${ac_tool_prefix}otool; ac_word=$2
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530 $as_echo_n "checking for $ac_word... " >&6; }
7531 if ${ac_cv_prog_OTOOL+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 if test -n "$OTOOL"; then
7535 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7536 else
7537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538 for as_dir in $PATH
7539 do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7544 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7546 break 2
7547 fi
7548 done
7549 done
7550 IFS=$as_save_IFS
7551
7552 fi
7553 fi
7554 OTOOL=$ac_cv_prog_OTOOL
7555 if test -n "$OTOOL"; then
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7557 $as_echo "$OTOOL" >&6; }
7558 else
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562
7563
7564 fi
7565 if test -z "$ac_cv_prog_OTOOL"; then
7566 ac_ct_OTOOL=$OTOOL
7567 # Extract the first word of "otool", so it can be a program name with args.
7568 set dummy otool; ac_word=$2
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7570 $as_echo_n "checking for $ac_word... " >&6; }
7571 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if test -n "$ac_ct_OTOOL"; then
7575 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7576 else
7577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7578 for as_dir in $PATH
7579 do
7580 IFS=$as_save_IFS
7581 test -z "$as_dir" && as_dir=.
7582 for ac_exec_ext in '' $ac_executable_extensions; do
7583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7584 ac_cv_prog_ac_ct_OTOOL="otool"
7585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7586 break 2
7587 fi
7588 done
7589 done
7590 IFS=$as_save_IFS
7591
7592 fi
7593 fi
7594 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7595 if test -n "$ac_ct_OTOOL"; then
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7597 $as_echo "$ac_ct_OTOOL" >&6; }
7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600 $as_echo "no" >&6; }
7601 fi
7602
7603 if test "x$ac_ct_OTOOL" = x; then
7604 OTOOL=":"
7605 else
7606 case $cross_compiling:$ac_tool_warned in
7607 yes:)
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7610 ac_tool_warned=yes ;;
7611 esac
7612 OTOOL=$ac_ct_OTOOL
7613 fi
7614 else
7615 OTOOL="$ac_cv_prog_OTOOL"
7616 fi
7617
7618 if test -n "$ac_tool_prefix"; then
7619 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7620 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622 $as_echo_n "checking for $ac_word... " >&6; }
7623 if ${ac_cv_prog_OTOOL64+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 if test -n "$OTOOL64"; then
7627 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7628 else
7629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7630 for as_dir in $PATH
7631 do
7632 IFS=$as_save_IFS
7633 test -z "$as_dir" && as_dir=.
7634 for ac_exec_ext in '' $ac_executable_extensions; do
7635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7636 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 break 2
7639 fi
7640 done
7641 done
7642 IFS=$as_save_IFS
7643
7644 fi
7645 fi
7646 OTOOL64=$ac_cv_prog_OTOOL64
7647 if test -n "$OTOOL64"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7649 $as_echo "$OTOOL64" >&6; }
7650 else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7653 fi
7654
7655
7656 fi
7657 if test -z "$ac_cv_prog_OTOOL64"; then
7658 ac_ct_OTOOL64=$OTOOL64
7659 # Extract the first word of "otool64", so it can be a program name with args.
7660 set dummy otool64; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7664 $as_echo_n "(cached) " >&6
7665 else
7666 if test -n "$ac_ct_OTOOL64"; then
7667 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7668 else
7669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7670 for as_dir in $PATH
7671 do
7672 IFS=$as_save_IFS
7673 test -z "$as_dir" && as_dir=.
7674 for ac_exec_ext in '' $ac_executable_extensions; do
7675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7676 ac_cv_prog_ac_ct_OTOOL64="otool64"
7677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7678 break 2
7679 fi
7680 done
7681 done
7682 IFS=$as_save_IFS
7683
7684 fi
7685 fi
7686 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7687 if test -n "$ac_ct_OTOOL64"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7689 $as_echo "$ac_ct_OTOOL64" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7693 fi
7694
7695 if test "x$ac_ct_OTOOL64" = x; then
7696 OTOOL64=":"
7697 else
7698 case $cross_compiling:$ac_tool_warned in
7699 yes:)
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702 ac_tool_warned=yes ;;
7703 esac
7704 OTOOL64=$ac_ct_OTOOL64
7705 fi
7706 else
7707 OTOOL64="$ac_cv_prog_OTOOL64"
7708 fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7737 $as_echo_n "checking for -single_module linker flag... " >&6; }
7738 if ${lt_cv_apple_cc_single_mod+:} false; then :
7739 $as_echo_n "(cached) " >&6
7740 else
7741 lt_cv_apple_cc_single_mod=no
7742 if test -z "$LT_MULTI_MODULE"; then
7743 # By default we will add the -single_module flag. You can override
7744 # by either setting the environment variable LT_MULTI_MODULE
7745 # non-empty at configure time, or by adding -multi_module to the
7746 # link flags.
7747 rm -rf libconftest.dylib*
7748 echo "int foo(void){return 1;}" > conftest.c
7749 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7750 -dynamiclib -Wl,-single_module conftest.c" >&5
7751 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7752 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7753 _lt_result=$?
7754 # If there is a non-empty error log, and "single_module"
7755 # appears in it, assume the flag caused a linker warning
7756 if test -s conftest.err && $GREP single_module conftest.err; then
7757 cat conftest.err >&5
7758 # Otherwise, if the output was created with a 0 exit code from
7759 # the compiler, it worked.
7760 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7761 lt_cv_apple_cc_single_mod=yes
7762 else
7763 cat conftest.err >&5
7764 fi
7765 rm -rf libconftest.dylib*
7766 rm -f conftest.*
7767 fi
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7770 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7771
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7773 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7774 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 lt_cv_ld_exported_symbols_list=no
7778 save_LDFLAGS=$LDFLAGS
7779 echo "_main" > conftest.sym
7780 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782 /* end confdefs.h. */
7783
7784 int
7785 main ()
7786 {
7787
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_link "$LINENO"; then :
7793 lt_cv_ld_exported_symbols_list=yes
7794 else
7795 lt_cv_ld_exported_symbols_list=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext \
7798 conftest$ac_exeext conftest.$ac_ext
7799 LDFLAGS=$save_LDFLAGS
7800
7801 fi
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7803 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7804
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7806 $as_echo_n "checking for -force_load linker flag... " >&6; }
7807 if ${lt_cv_ld_force_load+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 lt_cv_ld_force_load=no
7811 cat > conftest.c << _LT_EOF
7812 int forced_loaded() { return 2;}
7813 _LT_EOF
7814 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7815 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7816 echo "$AR cru libconftest.a conftest.o" >&5
7817 $AR cru libconftest.a conftest.o 2>&5
7818 echo "$RANLIB libconftest.a" >&5
7819 $RANLIB libconftest.a 2>&5
7820 cat > conftest.c << _LT_EOF
7821 int main() { return 0;}
7822 _LT_EOF
7823 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7824 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7825 _lt_result=$?
7826 if test -s conftest.err && $GREP force_load conftest.err; then
7827 cat conftest.err >&5
7828 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7829 lt_cv_ld_force_load=yes
7830 else
7831 cat conftest.err >&5
7832 fi
7833 rm -f conftest.err libconftest.a conftest conftest.c
7834 rm -rf conftest.dSYM
7835
7836 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7838 $as_echo "$lt_cv_ld_force_load" >&6; }
7839 case $host_os in
7840 rhapsody* | darwin1.[012])
7841 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7842 darwin1.*)
7843 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7844 darwin*) # darwin 5.x on
7845 # if running on 10.5 or later, the deployment target defaults
7846 # to the OS version, if on x86, and 10.4, the deployment
7847 # target defaults to 10.4. Don't you love it?
7848 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7849 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7850 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7851 10.[012][,.]*)
7852 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7853 10.*)
7854 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7855 esac
7856 ;;
7857 esac
7858 if test yes = "$lt_cv_apple_cc_single_mod"; then
7859 _lt_dar_single_mod='$single_module'
7860 fi
7861 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7862 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7863 else
7864 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7865 fi
7866 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7867 _lt_dsymutil='~$DSYMUTIL $lib || :'
7868 else
7869 _lt_dsymutil=
7870 fi
7871 ;;
7872 esac
7873
7874 # func_munge_path_list VARIABLE PATH
7875 # -----------------------------------
7876 # VARIABLE is name of variable containing _space_ separated list of
7877 # directories to be munged by the contents of PATH, which is string
7878 # having a format:
7879 # "DIR[:DIR]:"
7880 # string "DIR[ DIR]" will be prepended to VARIABLE
7881 # ":DIR[:DIR]"
7882 # string "DIR[ DIR]" will be appended to VARIABLE
7883 # "DIRP[:DIRP]::[DIRA:]DIRA"
7884 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7885 # "DIRA[ DIRA]" will be appended to VARIABLE
7886 # "DIR[:DIR]"
7887 # VARIABLE will be replaced by "DIR[ DIR]"
7888 func_munge_path_list ()
7889 {
7890 case x$2 in
7891 x)
7892 ;;
7893 *:)
7894 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7895 ;;
7896 x:*)
7897 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7898 ;;
7899 *::*)
7900 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7901 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7902 ;;
7903 *)
7904 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7905 ;;
7906 esac
7907 }
7908
7909 ac_ext=c
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7915 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7916 # On Suns, sometimes $CPP names a directory.
7917 if test -n "$CPP" && test -d "$CPP"; then
7918 CPP=
7919 fi
7920 if test -z "$CPP"; then
7921 if ${ac_cv_prog_CPP+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923 else
7924 # Double quotes because CPP needs to be expanded
7925 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7926 do
7927 ac_preproc_ok=false
7928 for ac_c_preproc_warn_flag in '' yes
7929 do
7930 # Use a header file that comes with gcc, so configuring glibc
7931 # with a fresh cross-compiler works.
7932 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7933 # <limits.h> exists even on freestanding compilers.
7934 # On the NeXT, cc -E runs the code through the compiler's parser,
7935 # not just through cpp. "Syntax error" is here to catch this case.
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7938 #ifdef __STDC__
7939 # include <limits.h>
7940 #else
7941 # include <assert.h>
7942 #endif
7943 Syntax error
7944 _ACEOF
7945 if ac_fn_c_try_cpp "$LINENO"; then :
7946
7947 else
7948 # Broken: fails on valid input.
7949 continue
7950 fi
7951 rm -f conftest.err conftest.i conftest.$ac_ext
7952
7953 # OK, works on sane cases. Now check whether nonexistent headers
7954 # can be detected and how.
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 #include <ac_nonexistent.h>
7958 _ACEOF
7959 if ac_fn_c_try_cpp "$LINENO"; then :
7960 # Broken: success on invalid input.
7961 continue
7962 else
7963 # Passes both tests.
7964 ac_preproc_ok=:
7965 break
7966 fi
7967 rm -f conftest.err conftest.i conftest.$ac_ext
7968
7969 done
7970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7971 rm -f conftest.i conftest.err conftest.$ac_ext
7972 if $ac_preproc_ok; then :
7973 break
7974 fi
7975
7976 done
7977 ac_cv_prog_CPP=$CPP
7978
7979 fi
7980 CPP=$ac_cv_prog_CPP
7981 else
7982 ac_cv_prog_CPP=$CPP
7983 fi
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7985 $as_echo "$CPP" >&6; }
7986 ac_preproc_ok=false
7987 for ac_c_preproc_warn_flag in '' yes
7988 do
7989 # Use a header file that comes with gcc, so configuring glibc
7990 # with a fresh cross-compiler works.
7991 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7992 # <limits.h> exists even on freestanding compilers.
7993 # On the NeXT, cc -E runs the code through the compiler's parser,
7994 # not just through cpp. "Syntax error" is here to catch this case.
7995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996 /* end confdefs.h. */
7997 #ifdef __STDC__
7998 # include <limits.h>
7999 #else
8000 # include <assert.h>
8001 #endif
8002 Syntax error
8003 _ACEOF
8004 if ac_fn_c_try_cpp "$LINENO"; then :
8005
8006 else
8007 # Broken: fails on valid input.
8008 continue
8009 fi
8010 rm -f conftest.err conftest.i conftest.$ac_ext
8011
8012 # OK, works on sane cases. Now check whether nonexistent headers
8013 # can be detected and how.
8014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8015 /* end confdefs.h. */
8016 #include <ac_nonexistent.h>
8017 _ACEOF
8018 if ac_fn_c_try_cpp "$LINENO"; then :
8019 # Broken: success on invalid input.
8020 continue
8021 else
8022 # Passes both tests.
8023 ac_preproc_ok=:
8024 break
8025 fi
8026 rm -f conftest.err conftest.i conftest.$ac_ext
8027
8028 done
8029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8030 rm -f conftest.i conftest.err conftest.$ac_ext
8031 if $ac_preproc_ok; then :
8032
8033 else
8034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8036 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8037 See \`config.log' for more details" "$LINENO" 5; }
8038 fi
8039
8040 ac_ext=c
8041 ac_cpp='$CPP $CPPFLAGS'
8042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8045
8046
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8048 $as_echo_n "checking for ANSI C header files... " >&6; }
8049 if ${ac_cv_header_stdc+:} false; then :
8050 $as_echo_n "(cached) " >&6
8051 else
8052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8053 /* end confdefs.h. */
8054 #include <stdlib.h>
8055 #include <stdarg.h>
8056 #include <string.h>
8057 #include <float.h>
8058
8059 int
8060 main ()
8061 {
8062
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_compile "$LINENO"; then :
8068 ac_cv_header_stdc=yes
8069 else
8070 ac_cv_header_stdc=no
8071 fi
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073
8074 if test $ac_cv_header_stdc = yes; then
8075 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8078 #include <string.h>
8079
8080 _ACEOF
8081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8082 $EGREP "memchr" >/dev/null 2>&1; then :
8083
8084 else
8085 ac_cv_header_stdc=no
8086 fi
8087 rm -f conftest*
8088
8089 fi
8090
8091 if test $ac_cv_header_stdc = yes; then
8092 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 #include <stdlib.h>
8096
8097 _ACEOF
8098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8099 $EGREP "free" >/dev/null 2>&1; then :
8100
8101 else
8102 ac_cv_header_stdc=no
8103 fi
8104 rm -f conftest*
8105
8106 fi
8107
8108 if test $ac_cv_header_stdc = yes; then
8109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8110 if test "$cross_compiling" = yes; then :
8111 :
8112 else
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8114 /* end confdefs.h. */
8115 #include <ctype.h>
8116 #include <stdlib.h>
8117 #if ((' ' & 0x0FF) == 0x020)
8118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8120 #else
8121 # define ISLOWER(c) \
8122 (('a' <= (c) && (c) <= 'i') \
8123 || ('j' <= (c) && (c) <= 'r') \
8124 || ('s' <= (c) && (c) <= 'z'))
8125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8126 #endif
8127
8128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8129 int
8130 main ()
8131 {
8132 int i;
8133 for (i = 0; i < 256; i++)
8134 if (XOR (islower (i), ISLOWER (i))
8135 || toupper (i) != TOUPPER (i))
8136 return 2;
8137 return 0;
8138 }
8139 _ACEOF
8140 if ac_fn_c_try_run "$LINENO"; then :
8141
8142 else
8143 ac_cv_header_stdc=no
8144 fi
8145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8146 conftest.$ac_objext conftest.beam conftest.$ac_ext
8147 fi
8148
8149 fi
8150 fi
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8152 $as_echo "$ac_cv_header_stdc" >&6; }
8153 if test $ac_cv_header_stdc = yes; then
8154
8155 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8156
8157 fi
8158
8159 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8160 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8161 inttypes.h stdint.h unistd.h
8162 do :
8163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8164 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8165 "
8166 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8167 cat >>confdefs.h <<_ACEOF
8168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8169 _ACEOF
8170
8171 fi
8172
8173 done
8174
8175
8176 for ac_header in dlfcn.h
8177 do :
8178 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8179 "
8180 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8181 cat >>confdefs.h <<_ACEOF
8182 #define HAVE_DLFCN_H 1
8183 _ACEOF
8184
8185 fi
8186
8187 done
8188
8189
8190
8191
8192 func_stripname_cnf ()
8193 {
8194 case $2 in
8195 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8196 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8197 esac
8198 } # func_stripname_cnf
8199
8200
8201
8202
8203
8204 # Set options
8205
8206
8207
8208 enable_dlopen=no
8209
8210
8211 enable_win32_dll=no
8212
8213
8214 # Check whether --enable-shared was given.
8215 if test "${enable_shared+set}" = set; then :
8216 enableval=$enable_shared; p=${PACKAGE-default}
8217 case $enableval in
8218 yes) enable_shared=yes ;;
8219 no) enable_shared=no ;;
8220 *)
8221 enable_shared=no
8222 # Look at the argument we got. We use all the common list separators.
8223 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8224 for pkg in $enableval; do
8225 IFS=$lt_save_ifs
8226 if test "X$pkg" = "X$p"; then
8227 enable_shared=yes
8228 fi
8229 done
8230 IFS=$lt_save_ifs
8231 ;;
8232 esac
8233 else
8234 enable_shared=yes
8235 fi
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245 # Check whether --enable-static was given.
8246 if test "${enable_static+set}" = set; then :
8247 enableval=$enable_static; p=${PACKAGE-default}
8248 case $enableval in
8249 yes) enable_static=yes ;;
8250 no) enable_static=no ;;
8251 *)
8252 enable_static=no
8253 # Look at the argument we got. We use all the common list separators.
8254 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8255 for pkg in $enableval; do
8256 IFS=$lt_save_ifs
8257 if test "X$pkg" = "X$p"; then
8258 enable_static=yes
8259 fi
8260 done
8261 IFS=$lt_save_ifs
8262 ;;
8263 esac
8264 else
8265 enable_static=yes
8266 fi
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277 # Check whether --with-pic was given.
8278 if test "${with_pic+set}" = set; then :
8279 withval=$with_pic; lt_p=${PACKAGE-default}
8280 case $withval in
8281 yes|no) pic_mode=$withval ;;
8282 *)
8283 pic_mode=default
8284 # Look at the argument we got. We use all the common list separators.
8285 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8286 for lt_pkg in $withval; do
8287 IFS=$lt_save_ifs
8288 if test "X$lt_pkg" = "X$lt_p"; then
8289 pic_mode=yes
8290 fi
8291 done
8292 IFS=$lt_save_ifs
8293 ;;
8294 esac
8295 else
8296 pic_mode=default
8297 fi
8298
8299
8300
8301
8302
8303
8304
8305
8306 # Check whether --enable-fast-install was given.
8307 if test "${enable_fast_install+set}" = set; then :
8308 enableval=$enable_fast_install; p=${PACKAGE-default}
8309 case $enableval in
8310 yes) enable_fast_install=yes ;;
8311 no) enable_fast_install=no ;;
8312 *)
8313 enable_fast_install=no
8314 # Look at the argument we got. We use all the common list separators.
8315 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8316 for pkg in $enableval; do
8317 IFS=$lt_save_ifs
8318 if test "X$pkg" = "X$p"; then
8319 enable_fast_install=yes
8320 fi
8321 done
8322 IFS=$lt_save_ifs
8323 ;;
8324 esac
8325 else
8326 enable_fast_install=yes
8327 fi
8328
8329
8330
8331
8332
8333
8334
8335
8336 shared_archive_member_spec=
8337 case $host,$enable_shared in
8338 power*-*-aix[5-9]*,yes)
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8340 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8341
8342 # Check whether --with-aix-soname was given.
8343 if test "${with_aix_soname+set}" = set; then :
8344 withval=$with_aix_soname; case $withval in
8345 aix|svr4|both)
8346 ;;
8347 *)
8348 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8349 ;;
8350 esac
8351 lt_cv_with_aix_soname=$with_aix_soname
8352 else
8353 if ${lt_cv_with_aix_soname+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 lt_cv_with_aix_soname=aix
8357 fi
8358
8359 with_aix_soname=$lt_cv_with_aix_soname
8360 fi
8361
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8363 $as_echo "$with_aix_soname" >&6; }
8364 if test aix != "$with_aix_soname"; then
8365 # For the AIX way of multilib, we name the shared archive member
8366 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8367 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8368 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8369 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8370 if test 64 = "${OBJECT_MODE-32}"; then
8371 shared_archive_member_spec=shr_64
8372 else
8373 shared_archive_member_spec=shr
8374 fi
8375 fi
8376 ;;
8377 *)
8378 with_aix_soname=aix
8379 ;;
8380 esac
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391 # This can be used to rebuild libtool when needed
8392 LIBTOOL_DEPS=$ltmain
8393
8394 # Always use our own libtool.
8395 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426 test -z "$LN_S" && LN_S="ln -s"
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441 if test -n "${ZSH_VERSION+set}"; then
8442 setopt NO_GLOB_SUBST
8443 fi
8444
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8446 $as_echo_n "checking for objdir... " >&6; }
8447 if ${lt_cv_objdir+:} false; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 rm -f .libs 2>/dev/null
8451 mkdir .libs 2>/dev/null
8452 if test -d .libs; then
8453 lt_cv_objdir=.libs
8454 else
8455 # MS-DOS does not allow filenames that begin with a dot.
8456 lt_cv_objdir=_libs
8457 fi
8458 rmdir .libs 2>/dev/null
8459 fi
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8461 $as_echo "$lt_cv_objdir" >&6; }
8462 objdir=$lt_cv_objdir
8463
8464
8465
8466
8467
8468 cat >>confdefs.h <<_ACEOF
8469 #define LT_OBJDIR "$lt_cv_objdir/"
8470 _ACEOF
8471
8472
8473
8474
8475 case $host_os in
8476 aix3*)
8477 # AIX sometimes has problems with the GCC collect2 program. For some
8478 # reason, if we set the COLLECT_NAMES environment variable, the problems
8479 # vanish in a puff of smoke.
8480 if test set != "${COLLECT_NAMES+set}"; then
8481 COLLECT_NAMES=
8482 export COLLECT_NAMES
8483 fi
8484 ;;
8485 esac
8486
8487 # Global variables:
8488 ofile=libtool
8489 can_build_shared=yes
8490
8491 # All known linkers require a '.a' archive for static linking (except MSVC,
8492 # which needs '.lib').
8493 libext=a
8494
8495 with_gnu_ld=$lt_cv_prog_gnu_ld
8496
8497 old_CC=$CC
8498 old_CFLAGS=$CFLAGS
8499
8500 # Set sane defaults for various variables
8501 test -z "$CC" && CC=cc
8502 test -z "$LTCC" && LTCC=$CC
8503 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8504 test -z "$LD" && LD=ld
8505 test -z "$ac_objext" && ac_objext=o
8506
8507 func_cc_basename $compiler
8508 cc_basename=$func_cc_basename_result
8509
8510
8511 # Only perform the check for file, if the check method requires it
8512 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8513 case $deplibs_check_method in
8514 file_magic*)
8515 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8517 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8518 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 case $MAGIC_CMD in
8522 [\\/*] | ?:[\\/]*)
8523 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8524 ;;
8525 *)
8526 lt_save_MAGIC_CMD=$MAGIC_CMD
8527 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8528 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8529 for ac_dir in $ac_dummy; do
8530 IFS=$lt_save_ifs
8531 test -z "$ac_dir" && ac_dir=.
8532 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8533 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8534 if test -n "$file_magic_test_file"; then
8535 case $deplibs_check_method in
8536 "file_magic "*)
8537 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8538 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8539 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8540 $EGREP "$file_magic_regex" > /dev/null; then
8541 :
8542 else
8543 cat <<_LT_EOF 1>&2
8544
8545 *** Warning: the command libtool uses to detect shared libraries,
8546 *** $file_magic_cmd, produces output that libtool cannot recognize.
8547 *** The result is that libtool may fail to recognize shared libraries
8548 *** as such. This will affect the creation of libtool libraries that
8549 *** depend on shared libraries, but programs linked with such libtool
8550 *** libraries will work regardless of this problem. Nevertheless, you
8551 *** may want to report the problem to your system manager and/or to
8552 *** bug-libtool (at] gnu.org
8553
8554 _LT_EOF
8555 fi ;;
8556 esac
8557 fi
8558 break
8559 fi
8560 done
8561 IFS=$lt_save_ifs
8562 MAGIC_CMD=$lt_save_MAGIC_CMD
8563 ;;
8564 esac
8565 fi
8566
8567 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8568 if test -n "$MAGIC_CMD"; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8570 $as_echo "$MAGIC_CMD" >&6; }
8571 else
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8573 $as_echo "no" >&6; }
8574 fi
8575
8576
8577
8578
8579
8580 if test -z "$lt_cv_path_MAGIC_CMD"; then
8581 if test -n "$ac_tool_prefix"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8583 $as_echo_n "checking for file... " >&6; }
8584 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8585 $as_echo_n "(cached) " >&6
8586 else
8587 case $MAGIC_CMD in
8588 [\\/*] | ?:[\\/]*)
8589 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8590 ;;
8591 *)
8592 lt_save_MAGIC_CMD=$MAGIC_CMD
8593 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8594 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8595 for ac_dir in $ac_dummy; do
8596 IFS=$lt_save_ifs
8597 test -z "$ac_dir" && ac_dir=.
8598 if test -f "$ac_dir/file"; then
8599 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8600 if test -n "$file_magic_test_file"; then
8601 case $deplibs_check_method in
8602 "file_magic "*)
8603 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8604 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8605 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8606 $EGREP "$file_magic_regex" > /dev/null; then
8607 :
8608 else
8609 cat <<_LT_EOF 1>&2
8610
8611 *** Warning: the command libtool uses to detect shared libraries,
8612 *** $file_magic_cmd, produces output that libtool cannot recognize.
8613 *** The result is that libtool may fail to recognize shared libraries
8614 *** as such. This will affect the creation of libtool libraries that
8615 *** depend on shared libraries, but programs linked with such libtool
8616 *** libraries will work regardless of this problem. Nevertheless, you
8617 *** may want to report the problem to your system manager and/or to
8618 *** bug-libtool (at] gnu.org
8619
8620 _LT_EOF
8621 fi ;;
8622 esac
8623 fi
8624 break
8625 fi
8626 done
8627 IFS=$lt_save_ifs
8628 MAGIC_CMD=$lt_save_MAGIC_CMD
8629 ;;
8630 esac
8631 fi
8632
8633 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8634 if test -n "$MAGIC_CMD"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8636 $as_echo "$MAGIC_CMD" >&6; }
8637 else
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639 $as_echo "no" >&6; }
8640 fi
8641
8642
8643 else
8644 MAGIC_CMD=:
8645 fi
8646 fi
8647
8648 fi
8649 ;;
8650 esac
8651
8652 # Use C for the default configuration in the libtool script
8653
8654 lt_save_CC=$CC
8655 ac_ext=c
8656 ac_cpp='$CPP $CPPFLAGS'
8657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8660
8661
8662 # Source file extension for C test sources.
8663 ac_ext=c
8664
8665 # Object file extension for compiled C test sources.
8666 objext=o
8667 objext=$objext
8668
8669 # Code to be used in simple compile tests
8670 lt_simple_compile_test_code="int some_variable = 0;"
8671
8672 # Code to be used in simple link tests
8673 lt_simple_link_test_code='int main(){return(0);}'
8674
8675
8676
8677
8678
8679
8680
8681 # If no C compiler was specified, use CC.
8682 LTCC=${LTCC-"$CC"}
8683
8684 # If no C compiler flags were specified, use CFLAGS.
8685 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8686
8687 # Allow CC to be a program name with arguments.
8688 compiler=$CC
8689
8690 # Save the default compiler, since it gets overwritten when the other
8691 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8692 compiler_DEFAULT=$CC
8693
8694 # save warnings/boilerplate of simple test code
8695 ac_outfile=conftest.$ac_objext
8696 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8697 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8698 _lt_compiler_boilerplate=`cat conftest.err`
8699 $RM conftest*
8700
8701 ac_outfile=conftest.$ac_objext
8702 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8703 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8704 _lt_linker_boilerplate=`cat conftest.err`
8705 $RM -r conftest*
8706
8707
8708 if test -n "$compiler"; then
8709
8710 lt_prog_compiler_no_builtin_flag=
8711
8712 if test yes = "$GCC"; then
8713 case $cc_basename in
8714 nvcc*)
8715 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8716 *)
8717 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8718 esac
8719
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8721 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8722 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 lt_cv_prog_compiler_rtti_exceptions=no
8726 ac_outfile=conftest.$ac_objext
8727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8728 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8729 # Insert the option either (1) after the last *FLAGS variable, or
8730 # (2) before a word containing "conftest.", or (3) at the end.
8731 # Note that $ac_compile itself does not contain backslashes and begins
8732 # with a dollar sign (not a hyphen), so the echo should work correctly.
8733 # The option is referenced via a variable to avoid confusing sed.
8734 lt_compile=`echo "$ac_compile" | $SED \
8735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8737 -e 's:$: $lt_compiler_flag:'`
8738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8739 (eval "$lt_compile" 2>conftest.err)
8740 ac_status=$?
8741 cat conftest.err >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 if (exit $ac_status) && test -s "$ac_outfile"; then
8744 # The compiler can only warn and ignore the option if not recognized
8745 # So say no if there are warnings other than the usual output.
8746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8749 lt_cv_prog_compiler_rtti_exceptions=yes
8750 fi
8751 fi
8752 $RM conftest*
8753
8754 fi
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8756 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8757
8758 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8759 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8760 else
8761 :
8762 fi
8763
8764 fi
8765
8766
8767
8768
8769
8770
8771 lt_prog_compiler_wl=
8772 lt_prog_compiler_pic=
8773 lt_prog_compiler_static=
8774
8775
8776 if test yes = "$GCC"; then
8777 lt_prog_compiler_wl='-Wl,'
8778 lt_prog_compiler_static='-static'
8779
8780 case $host_os in
8781 aix*)
8782 # All AIX code is PIC.
8783 if test ia64 = "$host_cpu"; then
8784 # AIX 5 now supports IA64 processor
8785 lt_prog_compiler_static='-Bstatic'
8786 fi
8787 lt_prog_compiler_pic='-fPIC'
8788 ;;
8789
8790 amigaos*)
8791 case $host_cpu in
8792 powerpc)
8793 # see comment about AmigaOS4 .so support
8794 lt_prog_compiler_pic='-fPIC'
8795 ;;
8796 m68k)
8797 # FIXME: we need at least 68020 code to build shared libraries, but
8798 # adding the '-m68020' flag to GCC prevents building anything better,
8799 # like '-m68040'.
8800 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8801 ;;
8802 esac
8803 ;;
8804
8805 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8806 # PIC is the default for these OSes.
8807 ;;
8808
8809 mingw* | cygwin* | pw32* | os2* | cegcc*)
8810 # This hack is so that the source file can tell whether it is being
8811 # built for inclusion in a dll (and should export symbols for example).
8812 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8813 # (--disable-auto-import) libraries
8814 lt_prog_compiler_pic='-DDLL_EXPORT'
8815 case $host_os in
8816 os2*)
8817 lt_prog_compiler_static='$wl-static'
8818 ;;
8819 esac
8820 ;;
8821
8822 darwin* | rhapsody*)
8823 # PIC is the default on this platform
8824 # Common symbols not allowed in MH_DYLIB files
8825 lt_prog_compiler_pic='-fno-common'
8826 ;;
8827
8828 haiku*)
8829 # PIC is the default for Haiku.
8830 # The "-static" flag exists, but is broken.
8831 lt_prog_compiler_static=
8832 ;;
8833
8834 hpux*)
8835 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8836 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8837 # sets the default TLS model and affects inlining.
8838 case $host_cpu in
8839 hppa*64*)
8840 # +Z the default
8841 ;;
8842 *)
8843 lt_prog_compiler_pic='-fPIC'
8844 ;;
8845 esac
8846 ;;
8847
8848 interix[3-9]*)
8849 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8850 # Instead, we relocate shared libraries at runtime.
8851 ;;
8852
8853 msdosdjgpp*)
8854 # Just because we use GCC doesn't mean we suddenly get shared libraries
8855 # on systems that don't support them.
8856 lt_prog_compiler_can_build_shared=no
8857 enable_shared=no
8858 ;;
8859
8860 *nto* | *qnx*)
8861 # QNX uses GNU C++, but need to define -shared option too, otherwise
8862 # it will coredump.
8863 lt_prog_compiler_pic='-fPIC -shared'
8864 ;;
8865
8866 sysv4*MP*)
8867 if test -d /usr/nec; then
8868 lt_prog_compiler_pic=-Kconform_pic
8869 fi
8870 ;;
8871
8872 *)
8873 lt_prog_compiler_pic='-fPIC'
8874 ;;
8875 esac
8876
8877 case $cc_basename in
8878 nvcc*) # Cuda Compiler Driver 2.2
8879 lt_prog_compiler_wl='-Xlinker '
8880 if test -n "$lt_prog_compiler_pic"; then
8881 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8882 fi
8883 ;;
8884 esac
8885 else
8886 # PORTME Check for flag to pass linker flags through the system compiler.
8887 case $host_os in
8888 aix*)
8889 lt_prog_compiler_wl='-Wl,'
8890 if test ia64 = "$host_cpu"; then
8891 # AIX 5 now supports IA64 processor
8892 lt_prog_compiler_static='-Bstatic'
8893 else
8894 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8895 fi
8896 ;;
8897
8898 darwin* | rhapsody*)
8899 # PIC is the default on this platform
8900 # Common symbols not allowed in MH_DYLIB files
8901 lt_prog_compiler_pic='-fno-common'
8902 case $cc_basename in
8903 nagfor*)
8904 # NAG Fortran compiler
8905 lt_prog_compiler_wl='-Wl,-Wl,,'
8906 lt_prog_compiler_pic='-PIC'
8907 lt_prog_compiler_static='-Bstatic'
8908 ;;
8909 esac
8910 ;;
8911
8912 mingw* | cygwin* | pw32* | os2* | cegcc*)
8913 # This hack is so that the source file can tell whether it is being
8914 # built for inclusion in a dll (and should export symbols for example).
8915 lt_prog_compiler_pic='-DDLL_EXPORT'
8916 case $host_os in
8917 os2*)
8918 lt_prog_compiler_static='$wl-static'
8919 ;;
8920 esac
8921 ;;
8922
8923 hpux9* | hpux10* | hpux11*)
8924 lt_prog_compiler_wl='-Wl,'
8925 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8926 # not for PA HP-UX.
8927 case $host_cpu in
8928 hppa*64*|ia64*)
8929 # +Z the default
8930 ;;
8931 *)
8932 lt_prog_compiler_pic='+Z'
8933 ;;
8934 esac
8935 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8936 lt_prog_compiler_static='$wl-a ${wl}archive'
8937 ;;
8938
8939 irix5* | irix6* | nonstopux*)
8940 lt_prog_compiler_wl='-Wl,'
8941 # PIC (with -KPIC) is the default.
8942 lt_prog_compiler_static='-non_shared'
8943 ;;
8944
8945 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8946 case $cc_basename in
8947 # old Intel for x86_64, which still supported -KPIC.
8948 ecc*)
8949 lt_prog_compiler_wl='-Wl,'
8950 lt_prog_compiler_pic='-KPIC'
8951 lt_prog_compiler_static='-static'
8952 ;;
8953 # icc used to be incompatible with GCC.
8954 # ICC 10 doesn't accept -KPIC any more.
8955 icc* | ifort*)
8956 lt_prog_compiler_wl='-Wl,'
8957 lt_prog_compiler_pic='-fPIC'
8958 lt_prog_compiler_static='-static'
8959 ;;
8960 # Lahey Fortran 8.1.
8961 lf95*)
8962 lt_prog_compiler_wl='-Wl,'
8963 lt_prog_compiler_pic='--shared'
8964 lt_prog_compiler_static='--static'
8965 ;;
8966 nagfor*)
8967 # NAG Fortran compiler
8968 lt_prog_compiler_wl='-Wl,-Wl,,'
8969 lt_prog_compiler_pic='-PIC'
8970 lt_prog_compiler_static='-Bstatic'
8971 ;;
8972 tcc*)
8973 # Fabrice Bellard et al's Tiny C Compiler
8974 lt_prog_compiler_wl='-Wl,'
8975 lt_prog_compiler_pic='-fPIC'
8976 lt_prog_compiler_static='-static'
8977 ;;
8978 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8979 # Portland Group compilers (*not* the Pentium gcc compiler,
8980 # which looks to be a dead project)
8981 lt_prog_compiler_wl='-Wl,'
8982 lt_prog_compiler_pic='-fpic'
8983 lt_prog_compiler_static='-Bstatic'
8984 ;;
8985 ccc*)
8986 lt_prog_compiler_wl='-Wl,'
8987 # All Alpha code is PIC.
8988 lt_prog_compiler_static='-non_shared'
8989 ;;
8990 xl* | bgxl* | bgf* | mpixl*)
8991 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8992 lt_prog_compiler_wl='-Wl,'
8993 lt_prog_compiler_pic='-qpic'
8994 lt_prog_compiler_static='-qstaticlink'
8995 ;;
8996 *)
8997 case `$CC -V 2>&1 | sed 5q` in
8998 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8999 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9000 lt_prog_compiler_pic='-KPIC'
9001 lt_prog_compiler_static='-Bstatic'
9002 lt_prog_compiler_wl=''
9003 ;;
9004 *Sun\ F* | *Sun*Fortran*)
9005 lt_prog_compiler_pic='-KPIC'
9006 lt_prog_compiler_static='-Bstatic'
9007 lt_prog_compiler_wl='-Qoption ld '
9008 ;;
9009 *Sun\ C*)
9010 # Sun C 5.9
9011 lt_prog_compiler_pic='-KPIC'
9012 lt_prog_compiler_static='-Bstatic'
9013 lt_prog_compiler_wl='-Wl,'
9014 ;;
9015 *Intel*\ [CF]*Compiler*)
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='-fPIC'
9018 lt_prog_compiler_static='-static'
9019 ;;
9020 *Portland\ Group*)
9021 lt_prog_compiler_wl='-Wl,'
9022 lt_prog_compiler_pic='-fpic'
9023 lt_prog_compiler_static='-Bstatic'
9024 ;;
9025 esac
9026 ;;
9027 esac
9028 ;;
9029
9030 newsos6)
9031 lt_prog_compiler_pic='-KPIC'
9032 lt_prog_compiler_static='-Bstatic'
9033 ;;
9034
9035 *nto* | *qnx*)
9036 # QNX uses GNU C++, but need to define -shared option too, otherwise
9037 # it will coredump.
9038 lt_prog_compiler_pic='-fPIC -shared'
9039 ;;
9040
9041 osf3* | osf4* | osf5*)
9042 lt_prog_compiler_wl='-Wl,'
9043 # All OSF/1 code is PIC.
9044 lt_prog_compiler_static='-non_shared'
9045 ;;
9046
9047 rdos*)
9048 lt_prog_compiler_static='-non_shared'
9049 ;;
9050
9051 solaris*)
9052 lt_prog_compiler_pic='-KPIC'
9053 lt_prog_compiler_static='-Bstatic'
9054 case $cc_basename in
9055 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9056 lt_prog_compiler_wl='-Qoption ld ';;
9057 *)
9058 lt_prog_compiler_wl='-Wl,';;
9059 esac
9060 ;;
9061
9062 sunos4*)
9063 lt_prog_compiler_wl='-Qoption ld '
9064 lt_prog_compiler_pic='-PIC'
9065 lt_prog_compiler_static='-Bstatic'
9066 ;;
9067
9068 sysv4 | sysv4.2uw2* | sysv4.3*)
9069 lt_prog_compiler_wl='-Wl,'
9070 lt_prog_compiler_pic='-KPIC'
9071 lt_prog_compiler_static='-Bstatic'
9072 ;;
9073
9074 sysv4*MP*)
9075 if test -d /usr/nec; then
9076 lt_prog_compiler_pic='-Kconform_pic'
9077 lt_prog_compiler_static='-Bstatic'
9078 fi
9079 ;;
9080
9081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9082 lt_prog_compiler_wl='-Wl,'
9083 lt_prog_compiler_pic='-KPIC'
9084 lt_prog_compiler_static='-Bstatic'
9085 ;;
9086
9087 unicos*)
9088 lt_prog_compiler_wl='-Wl,'
9089 lt_prog_compiler_can_build_shared=no
9090 ;;
9091
9092 uts4*)
9093 lt_prog_compiler_pic='-pic'
9094 lt_prog_compiler_static='-Bstatic'
9095 ;;
9096
9097 *)
9098 lt_prog_compiler_can_build_shared=no
9099 ;;
9100 esac
9101 fi
9102
9103 case $host_os in
9104 # For platforms that do not support PIC, -DPIC is meaningless:
9105 *djgpp*)
9106 lt_prog_compiler_pic=
9107 ;;
9108 *)
9109 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9110 ;;
9111 esac
9112
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9114 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9115 if ${lt_cv_prog_compiler_pic+:} false; then :
9116 $as_echo_n "(cached) " >&6
9117 else
9118 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9119 fi
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9121 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9122 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9123
9124 #
9125 # Check to make sure the PIC flag actually works.
9126 #
9127 if test -n "$lt_prog_compiler_pic"; then
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9129 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9130 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 lt_cv_prog_compiler_pic_works=no
9134 ac_outfile=conftest.$ac_objext
9135 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9136 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9137 # Insert the option either (1) after the last *FLAGS variable, or
9138 # (2) before a word containing "conftest.", or (3) at the end.
9139 # Note that $ac_compile itself does not contain backslashes and begins
9140 # with a dollar sign (not a hyphen), so the echo should work correctly.
9141 # The option is referenced via a variable to avoid confusing sed.
9142 lt_compile=`echo "$ac_compile" | $SED \
9143 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9144 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9145 -e 's:$: $lt_compiler_flag:'`
9146 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9147 (eval "$lt_compile" 2>conftest.err)
9148 ac_status=$?
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 if (exit $ac_status) && test -s "$ac_outfile"; then
9152 # The compiler can only warn and ignore the option if not recognized
9153 # So say no if there are warnings other than the usual output.
9154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9156 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9157 lt_cv_prog_compiler_pic_works=yes
9158 fi
9159 fi
9160 $RM conftest*
9161
9162 fi
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9164 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9165
9166 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9167 case $lt_prog_compiler_pic in
9168 "" | " "*) ;;
9169 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9170 esac
9171 else
9172 lt_prog_compiler_pic=
9173 lt_prog_compiler_can_build_shared=no
9174 fi
9175
9176 fi
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188 #
9189 # Check to make sure the static flag actually works.
9190 #
9191 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9193 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9194 if ${lt_cv_prog_compiler_static_works+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 lt_cv_prog_compiler_static_works=no
9198 save_LDFLAGS=$LDFLAGS
9199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9202 # The linker can only warn and ignore the option if not recognized
9203 # So say no if there are warnings
9204 if test -s conftest.err; then
9205 # Append any errors to the config.log.
9206 cat conftest.err 1>&5
9207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9209 if diff conftest.exp conftest.er2 >/dev/null; then
9210 lt_cv_prog_compiler_static_works=yes
9211 fi
9212 else
9213 lt_cv_prog_compiler_static_works=yes
9214 fi
9215 fi
9216 $RM -r conftest*
9217 LDFLAGS=$save_LDFLAGS
9218
9219 fi
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9221 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9222
9223 if test yes = "$lt_cv_prog_compiler_static_works"; then
9224 :
9225 else
9226 lt_prog_compiler_static=
9227 fi
9228
9229
9230
9231
9232
9233
9234
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9237 if ${lt_cv_prog_compiler_c_o+:} false; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 lt_cv_prog_compiler_c_o=no
9241 $RM -r conftest 2>/dev/null
9242 mkdir conftest
9243 cd conftest
9244 mkdir out
9245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9246
9247 lt_compiler_flag="-o out/conftest2.$ac_objext"
9248 # Insert the option either (1) after the last *FLAGS variable, or
9249 # (2) before a word containing "conftest.", or (3) at the end.
9250 # Note that $ac_compile itself does not contain backslashes and begins
9251 # with a dollar sign (not a hyphen), so the echo should work correctly.
9252 lt_compile=`echo "$ac_compile" | $SED \
9253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9255 -e 's:$: $lt_compiler_flag:'`
9256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9257 (eval "$lt_compile" 2>out/conftest.err)
9258 ac_status=$?
9259 cat out/conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9262 then
9263 # The compiler can only warn and ignore the option if not recognized
9264 # So say no if there are warnings
9265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9268 lt_cv_prog_compiler_c_o=yes
9269 fi
9270 fi
9271 chmod u+w . 2>&5
9272 $RM conftest*
9273 # SGI C++ compiler will create directory out/ii_files/ for
9274 # template instantiation
9275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9276 $RM out/* && rmdir out
9277 cd ..
9278 $RM -r conftest
9279 $RM conftest*
9280
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9283 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9284
9285
9286
9287
9288
9289
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9292 if ${lt_cv_prog_compiler_c_o+:} false; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 lt_cv_prog_compiler_c_o=no
9296 $RM -r conftest 2>/dev/null
9297 mkdir conftest
9298 cd conftest
9299 mkdir out
9300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9301
9302 lt_compiler_flag="-o out/conftest2.$ac_objext"
9303 # Insert the option either (1) after the last *FLAGS variable, or
9304 # (2) before a word containing "conftest.", or (3) at the end.
9305 # Note that $ac_compile itself does not contain backslashes and begins
9306 # with a dollar sign (not a hyphen), so the echo should work correctly.
9307 lt_compile=`echo "$ac_compile" | $SED \
9308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9310 -e 's:$: $lt_compiler_flag:'`
9311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9312 (eval "$lt_compile" 2>out/conftest.err)
9313 ac_status=$?
9314 cat out/conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9317 then
9318 # The compiler can only warn and ignore the option if not recognized
9319 # So say no if there are warnings
9320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9323 lt_cv_prog_compiler_c_o=yes
9324 fi
9325 fi
9326 chmod u+w . 2>&5
9327 $RM conftest*
9328 # SGI C++ compiler will create directory out/ii_files/ for
9329 # template instantiation
9330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9331 $RM out/* && rmdir out
9332 cd ..
9333 $RM -r conftest
9334 $RM conftest*
9335
9336 fi
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9338 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9339
9340
9341
9342
9343 hard_links=nottested
9344 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9345 # do not overwrite the value of need_locks provided by the user
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9347 $as_echo_n "checking if we can lock with hard links... " >&6; }
9348 hard_links=yes
9349 $RM conftest*
9350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9351 touch conftest.a
9352 ln conftest.a conftest.b 2>&5 || hard_links=no
9353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9355 $as_echo "$hard_links" >&6; }
9356 if test no = "$hard_links"; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9358 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9359 need_locks=warn
9360 fi
9361 else
9362 need_locks=no
9363 fi
9364
9365
9366
9367
9368
9369
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9371 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9372
9373 runpath_var=
9374 allow_undefined_flag=
9375 always_export_symbols=no
9376 archive_cmds=
9377 archive_expsym_cmds=
9378 compiler_needs_object=no
9379 enable_shared_with_static_runtimes=no
9380 export_dynamic_flag_spec=
9381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9382 hardcode_automatic=no
9383 hardcode_direct=no
9384 hardcode_direct_absolute=no
9385 hardcode_libdir_flag_spec=
9386 hardcode_libdir_separator=
9387 hardcode_minus_L=no
9388 hardcode_shlibpath_var=unsupported
9389 inherit_rpath=no
9390 link_all_deplibs=unknown
9391 module_cmds=
9392 module_expsym_cmds=
9393 old_archive_from_new_cmds=
9394 old_archive_from_expsyms_cmds=
9395 thread_safe_flag_spec=
9396 whole_archive_flag_spec=
9397 # include_expsyms should be a list of space-separated symbols to be *always*
9398 # included in the symbol list
9399 include_expsyms=
9400 # exclude_expsyms can be an extended regexp of symbols to exclude
9401 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9402 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9403 # as well as any symbol that contains 'd'.
9404 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9405 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9406 # platforms (ab)use it in PIC code, but their linkers get confused if
9407 # the symbol is explicitly referenced. Since portable code cannot
9408 # rely on this symbol name, it's probably fine to never include it in
9409 # preloaded symbol tables.
9410 # Exclude shared library initialization/finalization symbols.
9411 extract_expsyms_cmds=
9412
9413 case $host_os in
9414 cygwin* | mingw* | pw32* | cegcc*)
9415 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9416 # When not using gcc, we currently assume that we are using
9417 # Microsoft Visual C++.
9418 if test yes != "$GCC"; then
9419 with_gnu_ld=no
9420 fi
9421 ;;
9422 interix*)
9423 # we just hope/assume this is gcc and not c89 (= MSVC++)
9424 with_gnu_ld=yes
9425 ;;
9426 openbsd* | bitrig*)
9427 with_gnu_ld=no
9428 ;;
9429 linux* | k*bsd*-gnu | gnu*)
9430 link_all_deplibs=no
9431 ;;
9432 esac
9433
9434 ld_shlibs=yes
9435
9436 # On some targets, GNU ld is compatible enough with the native linker
9437 # that we're better off using the native interface for both.
9438 lt_use_gnu_ld_interface=no
9439 if test yes = "$with_gnu_ld"; then
9440 case $host_os in
9441 aix*)
9442 # The AIX port of GNU ld has always aspired to compatibility
9443 # with the native linker. However, as the warning in the GNU ld
9444 # block says, versions before 2.19.5* couldn't really create working
9445 # shared libraries, regardless of the interface used.
9446 case `$LD -v 2>&1` in
9447 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9448 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9449 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9450 *)
9451 lt_use_gnu_ld_interface=yes
9452 ;;
9453 esac
9454 ;;
9455 *)
9456 lt_use_gnu_ld_interface=yes
9457 ;;
9458 esac
9459 fi
9460
9461 if test yes = "$lt_use_gnu_ld_interface"; then
9462 # If archive_cmds runs LD, not CC, wlarc should be empty
9463 wlarc='$wl'
9464
9465 # Set some defaults for GNU ld with shared library support. These
9466 # are reset later if shared libraries are not supported. Putting them
9467 # here allows them to be overridden if necessary.
9468 runpath_var=LD_RUN_PATH
9469 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9470 export_dynamic_flag_spec='$wl--export-dynamic'
9471 # ancient GNU ld didn't support --whole-archive et. al.
9472 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9473 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9474 else
9475 whole_archive_flag_spec=
9476 fi
9477 supports_anon_versioning=no
9478 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9479 *GNU\ gold*) supports_anon_versioning=yes ;;
9480 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9481 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9482 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9483 *\ 2.11.*) ;; # other 2.11 versions
9484 *) supports_anon_versioning=yes ;;
9485 esac
9486
9487 # See if GNU ld supports shared libraries.
9488 case $host_os in
9489 aix[3-9]*)
9490 # On AIX/PPC, the GNU linker is very broken
9491 if test ia64 != "$host_cpu"; then
9492 ld_shlibs=no
9493 cat <<_LT_EOF 1>&2
9494
9495 *** Warning: the GNU linker, at least up to release 2.19, is reported
9496 *** to be unable to reliably create shared libraries on AIX.
9497 *** Therefore, libtool is disabling shared libraries support. If you
9498 *** really care for shared libraries, you may want to install binutils
9499 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9500 *** You will then need to restart the configuration process.
9501
9502 _LT_EOF
9503 fi
9504 ;;
9505
9506 amigaos*)
9507 case $host_cpu in
9508 powerpc)
9509 # see comment about AmigaOS4 .so support
9510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9511 archive_expsym_cmds=''
9512 ;;
9513 m68k)
9514 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)'
9515 hardcode_libdir_flag_spec='-L$libdir'
9516 hardcode_minus_L=yes
9517 ;;
9518 esac
9519 ;;
9520
9521 beos*)
9522 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9523 allow_undefined_flag=unsupported
9524 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9525 # support --undefined. This deserves some investigation. FIXME
9526 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9527 else
9528 ld_shlibs=no
9529 fi
9530 ;;
9531
9532 cygwin* | mingw* | pw32* | cegcc*)
9533 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9534 # as there is no search path for DLLs.
9535 hardcode_libdir_flag_spec='-L$libdir'
9536 export_dynamic_flag_spec='$wl--export-all-symbols'
9537 allow_undefined_flag=unsupported
9538 always_export_symbols=no
9539 enable_shared_with_static_runtimes=yes
9540 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'
9541 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9542
9543 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9544 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9545 # If the export-symbols file already is a .def file, use it as
9546 # is; otherwise, prepend EXPORTS...
9547 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9548 cp $export_symbols $output_objdir/$soname.def;
9549 else
9550 echo EXPORTS > $output_objdir/$soname.def;
9551 cat $export_symbols >> $output_objdir/$soname.def;
9552 fi~
9553 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9554 else
9555 ld_shlibs=no
9556 fi
9557 ;;
9558
9559 haiku*)
9560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9561 link_all_deplibs=yes
9562 ;;
9563
9564 os2*)
9565 hardcode_libdir_flag_spec='-L$libdir'
9566 hardcode_minus_L=yes
9567 allow_undefined_flag=unsupported
9568 shrext_cmds=.dll
9569 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9570 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9571 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9572 $ECHO EXPORTS >> $output_objdir/$libname.def~
9573 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9574 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9575 emximp -o $lib $output_objdir/$libname.def'
9576 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9577 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9578 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9579 $ECHO EXPORTS >> $output_objdir/$libname.def~
9580 prefix_cmds="$SED"~
9581 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9582 prefix_cmds="$prefix_cmds -e 1d";
9583 fi~
9584 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9585 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9586 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9587 emximp -o $lib $output_objdir/$libname.def'
9588 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9589 enable_shared_with_static_runtimes=yes
9590 ;;
9591
9592 interix[3-9]*)
9593 hardcode_direct=no
9594 hardcode_shlibpath_var=no
9595 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9596 export_dynamic_flag_spec='$wl-E'
9597 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9598 # Instead, shared libraries are loaded at an image base (0x10000000 by
9599 # default) and relocated if they conflict, which is a slow very memory
9600 # consuming and fragmenting process. To avoid this, we pick a random,
9601 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9602 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9603 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9604 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'
9605 ;;
9606
9607 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9608 tmp_diet=no
9609 if test linux-dietlibc = "$host_os"; then
9610 case $cc_basename in
9611 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9612 esac
9613 fi
9614 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9615 && test no = "$tmp_diet"
9616 then
9617 tmp_addflag=' $pic_flag'
9618 tmp_sharedflag='-shared'
9619 case $cc_basename,$host_cpu in
9620 pgcc*) # Portland Group C compiler
9621 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'
9622 tmp_addflag=' $pic_flag'
9623 ;;
9624 pgf77* | pgf90* | pgf95* | pgfortran*)
9625 # Portland Group f77 and f90 compilers
9626 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'
9627 tmp_addflag=' $pic_flag -Mnomain' ;;
9628 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9629 tmp_addflag=' -i_dynamic' ;;
9630 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9631 tmp_addflag=' -i_dynamic -nofor_main' ;;
9632 ifc* | ifort*) # Intel Fortran compiler
9633 tmp_addflag=' -nofor_main' ;;
9634 lf95*) # Lahey Fortran 8.1
9635 whole_archive_flag_spec=
9636 tmp_sharedflag='--shared' ;;
9637 nagfor*) # NAGFOR 5.3
9638 tmp_sharedflag='-Wl,-shared' ;;
9639 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9640 tmp_sharedflag='-qmkshrobj'
9641 tmp_addflag= ;;
9642 nvcc*) # Cuda Compiler Driver 2.2
9643 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'
9644 compiler_needs_object=yes
9645 ;;
9646 esac
9647 case `$CC -V 2>&1 | sed 5q` in
9648 *Sun\ C*) # Sun C 5.9
9649 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'
9650 compiler_needs_object=yes
9651 tmp_sharedflag='-G' ;;
9652 *Sun\ F*) # Sun Fortran 8.3
9653 tmp_sharedflag='-G' ;;
9654 esac
9655 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9656
9657 if test yes = "$supports_anon_versioning"; then
9658 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9659 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9660 echo "local: *; };" >> $output_objdir/$libname.ver~
9661 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9662 fi
9663
9664 case $cc_basename in
9665 tcc*)
9666 export_dynamic_flag_spec='-rdynamic'
9667 ;;
9668 xlf* | bgf* | bgxlf* | mpixlf*)
9669 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9670 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9671 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9672 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9673 if test yes = "$supports_anon_versioning"; then
9674 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9675 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9676 echo "local: *; };" >> $output_objdir/$libname.ver~
9677 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9678 fi
9679 ;;
9680 esac
9681 else
9682 ld_shlibs=no
9683 fi
9684 ;;
9685
9686 netbsd* | netbsdelf*-gnu)
9687 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9688 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9689 wlarc=
9690 else
9691 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9692 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9693 fi
9694 ;;
9695
9696 solaris*)
9697 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9698 ld_shlibs=no
9699 cat <<_LT_EOF 1>&2
9700
9701 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9702 *** create shared libraries on Solaris systems. Therefore, libtool
9703 *** is disabling shared libraries support. We urge you to upgrade GNU
9704 *** binutils to release 2.9.1 or newer. Another option is to modify
9705 *** your PATH or compiler configuration so that the native linker is
9706 *** used, and then restart.
9707
9708 _LT_EOF
9709 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9710 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9711 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9712 else
9713 ld_shlibs=no
9714 fi
9715 ;;
9716
9717 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9718 case `$LD -v 2>&1` in
9719 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9720 ld_shlibs=no
9721 cat <<_LT_EOF 1>&2
9722
9723 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9724 *** reliably create shared libraries on SCO systems. Therefore, libtool
9725 *** is disabling shared libraries support. We urge you to upgrade GNU
9726 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9727 *** your PATH or compiler configuration so that the native linker is
9728 *** used, and then restart.
9729
9730 _LT_EOF
9731 ;;
9732 *)
9733 # For security reasons, it is highly recommended that you always
9734 # use absolute paths for naming shared libraries, and exclude the
9735 # DT_RUNPATH tag from executables and libraries. But doing so
9736 # requires that you compile everything twice, which is a pain.
9737 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9738 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9739 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9740 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9741 else
9742 ld_shlibs=no
9743 fi
9744 ;;
9745 esac
9746 ;;
9747
9748 sunos4*)
9749 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9750 wlarc=
9751 hardcode_direct=yes
9752 hardcode_shlibpath_var=no
9753 ;;
9754
9755 *)
9756 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9758 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9759 else
9760 ld_shlibs=no
9761 fi
9762 ;;
9763 esac
9764
9765 if test no = "$ld_shlibs"; then
9766 runpath_var=
9767 hardcode_libdir_flag_spec=
9768 export_dynamic_flag_spec=
9769 whole_archive_flag_spec=
9770 fi
9771 else
9772 # PORTME fill in a description of your system's linker (not GNU ld)
9773 case $host_os in
9774 aix3*)
9775 allow_undefined_flag=unsupported
9776 always_export_symbols=yes
9777 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'
9778 # Note: this linker hardcodes the directories in LIBPATH if there
9779 # are no directories specified by -L.
9780 hardcode_minus_L=yes
9781 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9782 # Neither direct hardcoding nor static linking is supported with a
9783 # broken collect2.
9784 hardcode_direct=unsupported
9785 fi
9786 ;;
9787
9788 aix[4-9]*)
9789 if test ia64 = "$host_cpu"; then
9790 # On IA64, the linker does run time linking by default, so we don't
9791 # have to do anything special.
9792 aix_use_runtimelinking=no
9793 exp_sym_flag='-Bexport'
9794 no_entry_flag=
9795 else
9796 # If we're using GNU nm, then we don't want the "-C" option.
9797 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9798 # Without the "-l" option, or with the "-B" option, AIX nm treats
9799 # weak defined symbols like other global defined symbols, whereas
9800 # GNU nm marks them as "W".
9801 # While the 'weak' keyword is ignored in the Export File, we need
9802 # it in the Import File for the 'aix-soname' feature, so we have
9803 # to replace the "-B" option with "-P" for AIX nm.
9804 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9805 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'
9806 else
9807 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'
9808 fi
9809 aix_use_runtimelinking=no
9810
9811 # Test if we are trying to use run time linking or normal
9812 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9813 # have runtime linking enabled, and use it for executables.
9814 # For shared libraries, we enable/disable runtime linking
9815 # depending on the kind of the shared library created -
9816 # when "with_aix_soname,aix_use_runtimelinking" is:
9817 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9818 # "aix,yes" lib.so shared, rtl:yes, for executables
9819 # lib.a static archive
9820 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9821 # lib.a(lib.so.V) shared, rtl:no, for executables
9822 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9823 # lib.a(lib.so.V) shared, rtl:no
9824 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9825 # lib.a static archive
9826 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9827 for ld_flag in $LDFLAGS; do
9828 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9829 aix_use_runtimelinking=yes
9830 break
9831 fi
9832 done
9833 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9834 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9835 # so we don't have lib.a shared libs to link our executables.
9836 # We have to force runtime linking in this case.
9837 aix_use_runtimelinking=yes
9838 LDFLAGS="$LDFLAGS -Wl,-brtl"
9839 fi
9840 ;;
9841 esac
9842
9843 exp_sym_flag='-bexport'
9844 no_entry_flag='-bnoentry'
9845 fi
9846
9847 # When large executables or shared objects are built, AIX ld can
9848 # have problems creating the table of contents. If linking a library
9849 # or program results in "error TOC overflow" add -mminimal-toc to
9850 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9851 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9852
9853 archive_cmds=''
9854 hardcode_direct=yes
9855 hardcode_direct_absolute=yes
9856 hardcode_libdir_separator=':'
9857 link_all_deplibs=yes
9858 file_list_spec='$wl-f,'
9859 case $with_aix_soname,$aix_use_runtimelinking in
9860 aix,*) ;; # traditional, no import file
9861 svr4,* | *,yes) # use import file
9862 # The Import File defines what to hardcode.
9863 hardcode_direct=no
9864 hardcode_direct_absolute=no
9865 ;;
9866 esac
9867
9868 if test yes = "$GCC"; then
9869 case $host_os in aix4.[012]|aix4.[012].*)
9870 # We only want to do this on AIX 4.2 and lower, the check
9871 # below for broken collect2 doesn't work under 4.3+
9872 collect2name=`$CC -print-prog-name=collect2`
9873 if test -f "$collect2name" &&
9874 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9875 then
9876 # We have reworked collect2
9877 :
9878 else
9879 # We have old collect2
9880 hardcode_direct=unsupported
9881 # It fails to find uninstalled libraries when the uninstalled
9882 # path is not listed in the libpath. Setting hardcode_minus_L
9883 # to unsupported forces relinking
9884 hardcode_minus_L=yes
9885 hardcode_libdir_flag_spec='-L$libdir'
9886 hardcode_libdir_separator=
9887 fi
9888 ;;
9889 esac
9890 shared_flag='-shared'
9891 if test yes = "$aix_use_runtimelinking"; then
9892 shared_flag="$shared_flag "'$wl-G'
9893 fi
9894 # Need to ensure runtime linking is disabled for the traditional
9895 # shared library, or the linker may eventually find shared libraries
9896 # /with/ Import File - we do not want to mix them.
9897 shared_flag_aix='-shared'
9898 shared_flag_svr4='-shared $wl-G'
9899 else
9900 # not using gcc
9901 if test ia64 = "$host_cpu"; then
9902 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9903 # chokes on -Wl,-G. The following line is correct:
9904 shared_flag='-G'
9905 else
9906 if test yes = "$aix_use_runtimelinking"; then
9907 shared_flag='$wl-G'
9908 else
9909 shared_flag='$wl-bM:SRE'
9910 fi
9911 shared_flag_aix='$wl-bM:SRE'
9912 shared_flag_svr4='$wl-G'
9913 fi
9914 fi
9915
9916 export_dynamic_flag_spec='$wl-bexpall'
9917 # It seems that -bexpall does not export symbols beginning with
9918 # underscore (_), so it is better to generate a list of symbols to export.
9919 always_export_symbols=yes
9920 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9921 # Warning - without using the other runtime loading flags (-brtl),
9922 # -berok will link without error, but may produce a broken library.
9923 allow_undefined_flag='-berok'
9924 # Determine the default libpath from the value encoded in an
9925 # empty executable.
9926 if test set = "${lt_cv_aix_libpath+set}"; then
9927 aix_libpath=$lt_cv_aix_libpath
9928 else
9929 if ${lt_cv_aix_libpath_+:} false; then :
9930 $as_echo_n "(cached) " >&6
9931 else
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9934
9935 int
9936 main ()
9937 {
9938
9939 ;
9940 return 0;
9941 }
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944
9945 lt_aix_libpath_sed='
9946 /Import File Strings/,/^$/ {
9947 /^0/ {
9948 s/^0 *\([^ ]*\) *$/\1/
9949 p
9950 }
9951 }'
9952 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9953 # Check for a 64-bit object if we didn't find anything.
9954 if test -z "$lt_cv_aix_libpath_"; then
9955 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9956 fi
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext \
9959 conftest$ac_exeext conftest.$ac_ext
9960 if test -z "$lt_cv_aix_libpath_"; then
9961 lt_cv_aix_libpath_=/usr/lib:/lib
9962 fi
9963
9964 fi
9965
9966 aix_libpath=$lt_cv_aix_libpath_
9967 fi
9968
9969 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9970 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
9971 else
9972 if test ia64 = "$host_cpu"; then
9973 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9974 allow_undefined_flag="-z nodefs"
9975 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"
9976 else
9977 # Determine the default libpath from the value encoded in an
9978 # empty executable.
9979 if test set = "${lt_cv_aix_libpath+set}"; then
9980 aix_libpath=$lt_cv_aix_libpath
9981 else
9982 if ${lt_cv_aix_libpath_+:} false; then :
9983 $as_echo_n "(cached) " >&6
9984 else
9985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h. */
9987
9988 int
9989 main ()
9990 {
9991
9992 ;
9993 return 0;
9994 }
9995 _ACEOF
9996 if ac_fn_c_try_link "$LINENO"; then :
9997
9998 lt_aix_libpath_sed='
9999 /Import File Strings/,/^$/ {
10000 /^0/ {
10001 s/^0 *\([^ ]*\) *$/\1/
10002 p
10003 }
10004 }'
10005 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10006 # Check for a 64-bit object if we didn't find anything.
10007 if test -z "$lt_cv_aix_libpath_"; then
10008 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10009 fi
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 if test -z "$lt_cv_aix_libpath_"; then
10014 lt_cv_aix_libpath_=/usr/lib:/lib
10015 fi
10016
10017 fi
10018
10019 aix_libpath=$lt_cv_aix_libpath_
10020 fi
10021
10022 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10023 # Warning - without using the other run time loading flags,
10024 # -berok will link without error, but may produce a broken library.
10025 no_undefined_flag=' $wl-bernotok'
10026 allow_undefined_flag=' $wl-berok'
10027 if test yes = "$with_gnu_ld"; then
10028 # We only use this code for GNU lds that support --whole-archive.
10029 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10030 else
10031 # Exported symbols can be pulled into shared objects from archives
10032 whole_archive_flag_spec='$convenience'
10033 fi
10034 archive_cmds_need_lc=yes
10035 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10036 # -brtl affects multiple linker settings, -berok does not and is overridden later
10037 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10038 if test svr4 != "$with_aix_soname"; then
10039 # This is similar to how AIX traditionally builds its shared libraries.
10040 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'
10041 fi
10042 if test aix != "$with_aix_soname"; then
10043 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'
10044 else
10045 # used by -dlpreopen to get the symbols
10046 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10047 fi
10048 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10049 fi
10050 fi
10051 ;;
10052
10053 amigaos*)
10054 case $host_cpu in
10055 powerpc)
10056 # see comment about AmigaOS4 .so support
10057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10058 archive_expsym_cmds=''
10059 ;;
10060 m68k)
10061 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)'
10062 hardcode_libdir_flag_spec='-L$libdir'
10063 hardcode_minus_L=yes
10064 ;;
10065 esac
10066 ;;
10067
10068 bsdi[45]*)
10069 export_dynamic_flag_spec=-rdynamic
10070 ;;
10071
10072 cygwin* | mingw* | pw32* | cegcc*)
10073 # When not using gcc, we currently assume that we are using
10074 # Microsoft Visual C++.
10075 # hardcode_libdir_flag_spec is actually meaningless, as there is
10076 # no search path for DLLs.
10077 case $cc_basename in
10078 cl*)
10079 # Native MSVC
10080 hardcode_libdir_flag_spec=' '
10081 allow_undefined_flag=unsupported
10082 always_export_symbols=yes
10083 file_list_spec='@'
10084 # Tell ltmain to make .lib files, not .a files.
10085 libext=lib
10086 # Tell ltmain to make .dll files, not .so files.
10087 shrext_cmds=.dll
10088 # FIXME: Setting linknames here is a bad hack.
10089 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10090 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10091 cp "$export_symbols" "$output_objdir/$soname.def";
10092 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10093 else
10094 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10095 fi~
10096 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10097 linknames='
10098 # The linker will not automatically build a static lib if we build a DLL.
10099 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10100 enable_shared_with_static_runtimes=yes
10101 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10102 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10103 # Don't use ranlib
10104 old_postinstall_cmds='chmod 644 $oldlib'
10105 postlink_cmds='lt_outputfile="@OUTPUT@"~
10106 lt_tool_outputfile="@TOOL_OUTPUT@"~
10107 case $lt_outputfile in
10108 *.exe|*.EXE) ;;
10109 *)
10110 lt_outputfile=$lt_outputfile.exe
10111 lt_tool_outputfile=$lt_tool_outputfile.exe
10112 ;;
10113 esac~
10114 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10115 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10116 $RM "$lt_outputfile.manifest";
10117 fi'
10118 ;;
10119 *)
10120 # Assume MSVC wrapper
10121 hardcode_libdir_flag_spec=' '
10122 allow_undefined_flag=unsupported
10123 # Tell ltmain to make .lib files, not .a files.
10124 libext=lib
10125 # Tell ltmain to make .dll files, not .so files.
10126 shrext_cmds=.dll
10127 # FIXME: Setting linknames here is a bad hack.
10128 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10129 # The linker will automatically build a .lib file if we build a DLL.
10130 old_archive_from_new_cmds='true'
10131 # FIXME: Should let the user specify the lib program.
10132 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10133 enable_shared_with_static_runtimes=yes
10134 ;;
10135 esac
10136 ;;
10137
10138 darwin* | rhapsody*)
10139
10140
10141 archive_cmds_need_lc=no
10142 hardcode_direct=no
10143 hardcode_automatic=yes
10144 hardcode_shlibpath_var=unsupported
10145 if test yes = "$lt_cv_ld_force_load"; then
10146 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\"`'
10147
10148 else
10149 whole_archive_flag_spec=''
10150 fi
10151 link_all_deplibs=yes
10152 allow_undefined_flag=$_lt_dar_allow_undefined
10153 case $cc_basename in
10154 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10155 *) _lt_dar_can_shared=$GCC ;;
10156 esac
10157 if test yes = "$_lt_dar_can_shared"; then
10158 output_verbose_link_cmd=func_echo_all
10159 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10160 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10161 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"
10162 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"
10163
10164 else
10165 ld_shlibs=no
10166 fi
10167
10168 ;;
10169
10170 dgux*)
10171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172 hardcode_libdir_flag_spec='-L$libdir'
10173 hardcode_shlibpath_var=no
10174 ;;
10175
10176 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10177 # support. Future versions do this automatically, but an explicit c++rt0.o
10178 # does not break anything, and helps significantly (at the cost of a little
10179 # extra space).
10180 freebsd2.2*)
10181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10182 hardcode_libdir_flag_spec='-R$libdir'
10183 hardcode_direct=yes
10184 hardcode_shlibpath_var=no
10185 ;;
10186
10187 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10188 freebsd2.*)
10189 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_direct=yes
10191 hardcode_minus_L=yes
10192 hardcode_shlibpath_var=no
10193 ;;
10194
10195 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10196 freebsd* | dragonfly*)
10197 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10198 hardcode_libdir_flag_spec='-R$libdir'
10199 hardcode_direct=yes
10200 hardcode_shlibpath_var=no
10201 ;;
10202
10203 hpux9*)
10204 if test yes = "$GCC"; then
10205 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'
10206 else
10207 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'
10208 fi
10209 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10210 hardcode_libdir_separator=:
10211 hardcode_direct=yes
10212
10213 # hardcode_minus_L: Not really in the search PATH,
10214 # but as the default location of the library.
10215 hardcode_minus_L=yes
10216 export_dynamic_flag_spec='$wl-E'
10217 ;;
10218
10219 hpux10*)
10220 if test yes,no = "$GCC,$with_gnu_ld"; then
10221 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10222 else
10223 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10224 fi
10225 if test no = "$with_gnu_ld"; then
10226 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10227 hardcode_libdir_separator=:
10228 hardcode_direct=yes
10229 hardcode_direct_absolute=yes
10230 export_dynamic_flag_spec='$wl-E'
10231 # hardcode_minus_L: Not really in the search PATH,
10232 # but as the default location of the library.
10233 hardcode_minus_L=yes
10234 fi
10235 ;;
10236
10237 hpux11*)
10238 if test yes,no = "$GCC,$with_gnu_ld"; then
10239 case $host_cpu in
10240 hppa*64*)
10241 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10242 ;;
10243 ia64*)
10244 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10245 ;;
10246 *)
10247 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10248 ;;
10249 esac
10250 else
10251 case $host_cpu in
10252 hppa*64*)
10253 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10254 ;;
10255 ia64*)
10256 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10257 ;;
10258 *)
10259
10260 # Older versions of the 11.00 compiler do not understand -b yet
10261 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10263 $as_echo_n "checking if $CC understands -b... " >&6; }
10264 if ${lt_cv_prog_compiler__b+:} false; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 lt_cv_prog_compiler__b=no
10268 save_LDFLAGS=$LDFLAGS
10269 LDFLAGS="$LDFLAGS -b"
10270 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10271 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10272 # The linker can only warn and ignore the option if not recognized
10273 # So say no if there are warnings
10274 if test -s conftest.err; then
10275 # Append any errors to the config.log.
10276 cat conftest.err 1>&5
10277 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10278 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10279 if diff conftest.exp conftest.er2 >/dev/null; then
10280 lt_cv_prog_compiler__b=yes
10281 fi
10282 else
10283 lt_cv_prog_compiler__b=yes
10284 fi
10285 fi
10286 $RM -r conftest*
10287 LDFLAGS=$save_LDFLAGS
10288
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10291 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10292
10293 if test yes = "$lt_cv_prog_compiler__b"; then
10294 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10295 else
10296 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10297 fi
10298
10299 ;;
10300 esac
10301 fi
10302 if test no = "$with_gnu_ld"; then
10303 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10304 hardcode_libdir_separator=:
10305
10306 case $host_cpu in
10307 hppa*64*|ia64*)
10308 hardcode_direct=no
10309 hardcode_shlibpath_var=no
10310 ;;
10311 *)
10312 hardcode_direct=yes
10313 hardcode_direct_absolute=yes
10314 export_dynamic_flag_spec='$wl-E'
10315
10316 # hardcode_minus_L: Not really in the search PATH,
10317 # but as the default location of the library.
10318 hardcode_minus_L=yes
10319 ;;
10320 esac
10321 fi
10322 ;;
10323
10324 irix5* | irix6* | nonstopux*)
10325 if test yes = "$GCC"; then
10326 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'
10327 # Try to use the -exported_symbol ld option, if it does not
10328 # work, assume that -exports_file does not work either and
10329 # implicitly export all symbols.
10330 # This should be the same for all languages, so no per-tag cache variable.
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10332 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10333 if ${lt_cv_irix_exported_symbol+:} false; then :
10334 $as_echo_n "(cached) " >&6
10335 else
10336 save_LDFLAGS=$LDFLAGS
10337 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340 int foo (void) { return 0; }
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343 lt_cv_irix_exported_symbol=yes
10344 else
10345 lt_cv_irix_exported_symbol=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext \
10348 conftest$ac_exeext conftest.$ac_ext
10349 LDFLAGS=$save_LDFLAGS
10350 fi
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10352 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10353 if test yes = "$lt_cv_irix_exported_symbol"; then
10354 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'
10355 fi
10356 link_all_deplibs=no
10357 else
10358 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'
10359 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'
10360 fi
10361 archive_cmds_need_lc='no'
10362 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10363 hardcode_libdir_separator=:
10364 inherit_rpath=yes
10365 link_all_deplibs=yes
10366 ;;
10367
10368 linux*)
10369 case $cc_basename in
10370 tcc*)
10371 # Fabrice Bellard et al's Tiny C Compiler
10372 ld_shlibs=yes
10373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10374 ;;
10375 esac
10376 ;;
10377
10378 netbsd* | netbsdelf*-gnu)
10379 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10381 else
10382 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10383 fi
10384 hardcode_libdir_flag_spec='-R$libdir'
10385 hardcode_direct=yes
10386 hardcode_shlibpath_var=no
10387 ;;
10388
10389 newsos6)
10390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391 hardcode_direct=yes
10392 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10393 hardcode_libdir_separator=:
10394 hardcode_shlibpath_var=no
10395 ;;
10396
10397 *nto* | *qnx*)
10398 ;;
10399
10400 openbsd* | bitrig*)
10401 if test -f /usr/libexec/ld.so; then
10402 hardcode_direct=yes
10403 hardcode_shlibpath_var=no
10404 hardcode_direct_absolute=yes
10405 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10406 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10407 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10408 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10409 export_dynamic_flag_spec='$wl-E'
10410 else
10411 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10412 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10413 fi
10414 else
10415 ld_shlibs=no
10416 fi
10417 ;;
10418
10419 os2*)
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_minus_L=yes
10422 allow_undefined_flag=unsupported
10423 shrext_cmds=.dll
10424 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10425 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10426 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10427 $ECHO EXPORTS >> $output_objdir/$libname.def~
10428 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10429 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10430 emximp -o $lib $output_objdir/$libname.def'
10431 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10432 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10433 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10434 $ECHO EXPORTS >> $output_objdir/$libname.def~
10435 prefix_cmds="$SED"~
10436 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10437 prefix_cmds="$prefix_cmds -e 1d";
10438 fi~
10439 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10440 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10441 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10442 emximp -o $lib $output_objdir/$libname.def'
10443 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10444 enable_shared_with_static_runtimes=yes
10445 ;;
10446
10447 osf3*)
10448 if test yes = "$GCC"; then
10449 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10450 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'
10451 else
10452 allow_undefined_flag=' -expect_unresolved \*'
10453 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'
10454 fi
10455 archive_cmds_need_lc='no'
10456 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10457 hardcode_libdir_separator=:
10458 ;;
10459
10460 osf4* | osf5*) # as osf3* with the addition of -msym flag
10461 if test yes = "$GCC"; then
10462 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10463 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'
10464 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10465 else
10466 allow_undefined_flag=' -expect_unresolved \*'
10467 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'
10468 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~
10469 $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'
10470
10471 # Both c and cxx compiler support -rpath directly
10472 hardcode_libdir_flag_spec='-rpath $libdir'
10473 fi
10474 archive_cmds_need_lc='no'
10475 hardcode_libdir_separator=:
10476 ;;
10477
10478 solaris*)
10479 no_undefined_flag=' -z defs'
10480 if test yes = "$GCC"; then
10481 wlarc='$wl'
10482 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10483 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10484 $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'
10485 else
10486 case `$CC -V 2>&1` in
10487 *"Compilers 5.0"*)
10488 wlarc=''
10489 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10490 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10491 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10492 ;;
10493 *)
10494 wlarc='$wl'
10495 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10496 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10497 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10498 ;;
10499 esac
10500 fi
10501 hardcode_libdir_flag_spec='-R$libdir'
10502 hardcode_shlibpath_var=no
10503 case $host_os in
10504 solaris2.[0-5] | solaris2.[0-5].*) ;;
10505 *)
10506 # The compiler driver will combine and reorder linker options,
10507 # but understands '-z linker_flag'. GCC discards it without '$wl',
10508 # but is careful enough not to reorder.
10509 # Supported since Solaris 2.6 (maybe 2.5.1?)
10510 if test yes = "$GCC"; then
10511 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10512 else
10513 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10514 fi
10515 ;;
10516 esac
10517 link_all_deplibs=yes
10518 ;;
10519
10520 sunos4*)
10521 if test sequent = "$host_vendor"; then
10522 # Use $CC to link under sequent, because it throws in some extra .o
10523 # files that make .init and .fini sections work.
10524 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10525 else
10526 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10527 fi
10528 hardcode_libdir_flag_spec='-L$libdir'
10529 hardcode_direct=yes
10530 hardcode_minus_L=yes
10531 hardcode_shlibpath_var=no
10532 ;;
10533
10534 sysv4)
10535 case $host_vendor in
10536 sni)
10537 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10538 hardcode_direct=yes # is this really true???
10539 ;;
10540 siemens)
10541 ## LD is ld it makes a PLAMLIB
10542 ## CC just makes a GrossModule.
10543 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10544 reload_cmds='$CC -r -o $output$reload_objs'
10545 hardcode_direct=no
10546 ;;
10547 motorola)
10548 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10549 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10550 ;;
10551 esac
10552 runpath_var='LD_RUN_PATH'
10553 hardcode_shlibpath_var=no
10554 ;;
10555
10556 sysv4.3*)
10557 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10558 hardcode_shlibpath_var=no
10559 export_dynamic_flag_spec='-Bexport'
10560 ;;
10561
10562 sysv4*MP*)
10563 if test -d /usr/nec; then
10564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10565 hardcode_shlibpath_var=no
10566 runpath_var=LD_RUN_PATH
10567 hardcode_runpath_var=yes
10568 ld_shlibs=yes
10569 fi
10570 ;;
10571
10572 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10573 no_undefined_flag='$wl-z,text'
10574 archive_cmds_need_lc=no
10575 hardcode_shlibpath_var=no
10576 runpath_var='LD_RUN_PATH'
10577
10578 if test yes = "$GCC"; then
10579 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10580 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10581 else
10582 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10584 fi
10585 ;;
10586
10587 sysv5* | sco3.2v5* | sco5v6*)
10588 # Note: We CANNOT use -z defs as we might desire, because we do not
10589 # link with -lc, and that would cause any symbols used from libc to
10590 # always be unresolved, which means just about no library would
10591 # ever link correctly. If we're not using GNU ld we use -z text
10592 # though, which does catch some bad symbols but isn't as heavy-handed
10593 # as -z defs.
10594 no_undefined_flag='$wl-z,text'
10595 allow_undefined_flag='$wl-z,nodefs'
10596 archive_cmds_need_lc=no
10597 hardcode_shlibpath_var=no
10598 hardcode_libdir_flag_spec='$wl-R,$libdir'
10599 hardcode_libdir_separator=':'
10600 link_all_deplibs=yes
10601 export_dynamic_flag_spec='$wl-Bexport'
10602 runpath_var='LD_RUN_PATH'
10603
10604 if test yes = "$GCC"; then
10605 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 else
10608 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10610 fi
10611 ;;
10612
10613 uts4*)
10614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10615 hardcode_libdir_flag_spec='-L$libdir'
10616 hardcode_shlibpath_var=no
10617 ;;
10618
10619 *)
10620 ld_shlibs=no
10621 ;;
10622 esac
10623
10624 if test sni = "$host_vendor"; then
10625 case $host in
10626 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10627 export_dynamic_flag_spec='$wl-Blargedynsym'
10628 ;;
10629 esac
10630 fi
10631 fi
10632
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10634 $as_echo "$ld_shlibs" >&6; }
10635 test no = "$ld_shlibs" && can_build_shared=no
10636
10637 with_gnu_ld=$with_gnu_ld
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653 #
10654 # Do we need to explicitly link libc?
10655 #
10656 case "x$archive_cmds_need_lc" in
10657 x|xyes)
10658 # Assume -lc should be added
10659 archive_cmds_need_lc=yes
10660
10661 if test yes,yes = "$GCC,$enable_shared"; then
10662 case $archive_cmds in
10663 *'~'*)
10664 # FIXME: we may have to deal with multi-command sequences.
10665 ;;
10666 '$CC '*)
10667 # Test whether the compiler implicitly links with -lc since on some
10668 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10669 # to ld, don't add -lc before -lgcc.
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10671 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10672 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 $RM conftest*
10676 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10677
10678 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10679 (eval $ac_compile) 2>&5
10680 ac_status=$?
10681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10682 test $ac_status = 0; } 2>conftest.err; then
10683 soname=conftest
10684 lib=conftest
10685 libobjs=conftest.$ac_objext
10686 deplibs=
10687 wl=$lt_prog_compiler_wl
10688 pic_flag=$lt_prog_compiler_pic
10689 compiler_flags=-v
10690 linker_flags=-v
10691 verstring=
10692 output_objdir=.
10693 libname=conftest
10694 lt_save_allow_undefined_flag=$allow_undefined_flag
10695 allow_undefined_flag=
10696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10697 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10698 ac_status=$?
10699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10700 test $ac_status = 0; }
10701 then
10702 lt_cv_archive_cmds_need_lc=no
10703 else
10704 lt_cv_archive_cmds_need_lc=yes
10705 fi
10706 allow_undefined_flag=$lt_save_allow_undefined_flag
10707 else
10708 cat conftest.err 1>&5
10709 fi
10710 $RM conftest*
10711
10712 fi
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10714 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10715 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10716 ;;
10717 esac
10718 fi
10719 ;;
10720 esac
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10874 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10875
10876 if test yes = "$GCC"; then
10877 case $host_os in
10878 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10879 *) lt_awk_arg='/^libraries:/' ;;
10880 esac
10881 case $host_os in
10882 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10883 *) lt_sed_strip_eq='s|=/|/|g' ;;
10884 esac
10885 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10886 case $lt_search_path_spec in
10887 *\;*)
10888 # if the path contains ";" then we assume it to be the separator
10889 # otherwise default to the standard path separator (i.e. ":") - it is
10890 # assumed that no part of a normal pathname contains ";" but that should
10891 # okay in the real world where ";" in dirpaths is itself problematic.
10892 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10893 ;;
10894 *)
10895 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10896 ;;
10897 esac
10898 # Ok, now we have the path, separated by spaces, we can step through it
10899 # and add multilib dir if necessary...
10900 lt_tmp_lt_search_path_spec=
10901 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10902 # ...but if some path component already ends with the multilib dir we assume
10903 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10904 case "$lt_multi_os_dir; $lt_search_path_spec " in
10905 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10906 lt_multi_os_dir=
10907 ;;
10908 esac
10909 for lt_sys_path in $lt_search_path_spec; do
10910 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10911 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10912 elif test -n "$lt_multi_os_dir"; then
10913 test -d "$lt_sys_path" && \
10914 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10915 fi
10916 done
10917 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10918 BEGIN {RS = " "; FS = "/|\n";} {
10919 lt_foo = "";
10920 lt_count = 0;
10921 for (lt_i = NF; lt_i > 0; lt_i--) {
10922 if ($lt_i != "" && $lt_i != ".") {
10923 if ($lt_i == "..") {
10924 lt_count++;
10925 } else {
10926 if (lt_count == 0) {
10927 lt_foo = "/" $lt_i lt_foo;
10928 } else {
10929 lt_count--;
10930 }
10931 }
10932 }
10933 }
10934 if (lt_foo != "") { lt_freq[lt_foo]++; }
10935 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10936 }'`
10937 # AWK program above erroneously prepends '/' to C:/dos/paths
10938 # for these hosts.
10939 case $host_os in
10940 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10941 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10942 esac
10943 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10944 else
10945 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10946 fi
10947 library_names_spec=
10948 libname_spec='lib$name'
10949 soname_spec=
10950 shrext_cmds=.so
10951 postinstall_cmds=
10952 postuninstall_cmds=
10953 finish_cmds=
10954 finish_eval=
10955 shlibpath_var=
10956 shlibpath_overrides_runpath=unknown
10957 version_type=none
10958 dynamic_linker="$host_os ld.so"
10959 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10960 need_lib_prefix=unknown
10961 hardcode_into_libs=no
10962
10963 # when you set need_version to no, make sure it does not cause -set_version
10964 # flags to be left without arguments
10965 need_version=unknown
10966
10967
10968
10969 case $host_os in
10970 aix3*)
10971 version_type=linux # correct to gnu/linux during the next big refactor
10972 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10973 shlibpath_var=LIBPATH
10974
10975 # AIX 3 has no versioning support, so we append a major version to the name.
10976 soname_spec='$libname$release$shared_ext$major'
10977 ;;
10978
10979 aix[4-9]*)
10980 version_type=linux # correct to gnu/linux during the next big refactor
10981 need_lib_prefix=no
10982 need_version=no
10983 hardcode_into_libs=yes
10984 if test ia64 = "$host_cpu"; then
10985 # AIX 5 supports IA64
10986 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 else
10989 # With GCC up to 2.95.x, collect2 would create an import file
10990 # for dependence libraries. The import file would start with
10991 # the line '#! .'. This would cause the generated library to
10992 # depend on '.', always an invalid library. This was fixed in
10993 # development snapshots of GCC prior to 3.0.
10994 case $host_os in
10995 aix4 | aix4.[01] | aix4.[01].*)
10996 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10997 echo ' yes '
10998 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10999 :
11000 else
11001 can_build_shared=no
11002 fi
11003 ;;
11004 esac
11005 # Using Import Files as archive members, it is possible to support
11006 # filename-based versioning of shared library archives on AIX. While
11007 # this would work for both with and without runtime linking, it will
11008 # prevent static linking of such archives. So we do filename-based
11009 # shared library versioning with .so extension only, which is used
11010 # when both runtime linking and shared linking is enabled.
11011 # Unfortunately, runtime linking may impact performance, so we do
11012 # not want this to be the default eventually. Also, we use the
11013 # versioned .so libs for executables only if there is the -brtl
11014 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11015 # To allow for filename-based versioning support, we need to create
11016 # libNAME.so.V as an archive file, containing:
11017 # *) an Import File, referring to the versioned filename of the
11018 # archive as well as the shared archive member, telling the
11019 # bitwidth (32 or 64) of that shared object, and providing the
11020 # list of exported symbols of that shared object, eventually
11021 # decorated with the 'weak' keyword
11022 # *) the shared object with the F_LOADONLY flag set, to really avoid
11023 # it being seen by the linker.
11024 # At run time we better use the real file rather than another symlink,
11025 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11026
11027 case $with_aix_soname,$aix_use_runtimelinking in
11028 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11029 # soname into executable. Probably we can add versioning support to
11030 # collect2, so additional links can be useful in future.
11031 aix,yes) # traditional libtool
11032 dynamic_linker='AIX unversionable lib.so'
11033 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11034 # instead of lib<name>.a to let people know that these are not
11035 # typical AIX shared libraries.
11036 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11037 ;;
11038 aix,no) # traditional AIX only
11039 dynamic_linker='AIX lib.a(lib.so.V)'
11040 # We preserve .a as extension for shared libraries through AIX4.2
11041 # and later when we are not doing run time linking.
11042 library_names_spec='$libname$release.a $libname.a'
11043 soname_spec='$libname$release$shared_ext$major'
11044 ;;
11045 svr4,*) # full svr4 only
11046 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11047 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11048 # We do not specify a path in Import Files, so LIBPATH fires.
11049 shlibpath_overrides_runpath=yes
11050 ;;
11051 *,yes) # both, prefer svr4
11052 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11053 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11054 # unpreferred sharedlib libNAME.a needs extra handling
11055 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"'
11056 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"'
11057 # We do not specify a path in Import Files, so LIBPATH fires.
11058 shlibpath_overrides_runpath=yes
11059 ;;
11060 *,no) # both, prefer aix
11061 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11062 library_names_spec='$libname$release.a $libname.a'
11063 soname_spec='$libname$release$shared_ext$major'
11064 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11065 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)'
11066 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"'
11067 ;;
11068 esac
11069 shlibpath_var=LIBPATH
11070 fi
11071 ;;
11072
11073 amigaos*)
11074 case $host_cpu in
11075 powerpc)
11076 # Since July 2007 AmigaOS4 officially supports .so libraries.
11077 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11078 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 ;;
11080 m68k)
11081 library_names_spec='$libname.ixlibrary $libname.a'
11082 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11083 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'
11084 ;;
11085 esac
11086 ;;
11087
11088 beos*)
11089 library_names_spec='$libname$shared_ext'
11090 dynamic_linker="$host_os ld.so"
11091 shlibpath_var=LIBRARY_PATH
11092 ;;
11093
11094 bsdi[45]*)
11095 version_type=linux # correct to gnu/linux during the next big refactor
11096 need_version=no
11097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11098 soname_spec='$libname$release$shared_ext$major'
11099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11100 shlibpath_var=LD_LIBRARY_PATH
11101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11103 # the default ld.so.conf also contains /usr/contrib/lib and
11104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11105 # libtool to hard-code these into programs
11106 ;;
11107
11108 cygwin* | mingw* | pw32* | cegcc*)
11109 version_type=windows
11110 shrext_cmds=.dll
11111 need_version=no
11112 need_lib_prefix=no
11113
11114 case $GCC,$cc_basename in
11115 yes,*)
11116 # gcc
11117 library_names_spec='$libname.dll.a'
11118 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11119 postinstall_cmds='base_file=`basename \$file`~
11120 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11121 dldir=$destdir/`dirname \$dlpath`~
11122 test -d \$dldir || mkdir -p \$dldir~
11123 $install_prog $dir/$dlname \$dldir/$dlname~
11124 chmod a+x \$dldir/$dlname~
11125 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11126 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11127 fi'
11128 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11129 dlpath=$dir/\$dldll~
11130 $RM \$dlpath'
11131 shlibpath_overrides_runpath=yes
11132
11133 case $host_os in
11134 cygwin*)
11135 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11136 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11137
11138 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11139 ;;
11140 mingw* | cegcc*)
11141 # MinGW DLLs use traditional 'lib' prefix
11142 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11143 ;;
11144 pw32*)
11145 # pw32 DLLs use 'pw' prefix rather than 'lib'
11146 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11147 ;;
11148 esac
11149 dynamic_linker='Win32 ld.exe'
11150 ;;
11151
11152 *,cl*)
11153 # Native MSVC
11154 libname_spec='$name'
11155 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11156 library_names_spec='$libname.dll.lib'
11157
11158 case $build_os in
11159 mingw*)
11160 sys_lib_search_path_spec=
11161 lt_save_ifs=$IFS
11162 IFS=';'
11163 for lt_path in $LIB
11164 do
11165 IFS=$lt_save_ifs
11166 # Let DOS variable expansion print the short 8.3 style file name.
11167 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11168 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11169 done
11170 IFS=$lt_save_ifs
11171 # Convert to MSYS style.
11172 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11173 ;;
11174 cygwin*)
11175 # Convert to unix form, then to dos form, then back to unix form
11176 # but this time dos style (no spaces!) so that the unix form looks
11177 # like /cygdrive/c/PROGRA~1:/cygdr...
11178 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11179 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11180 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11181 ;;
11182 *)
11183 sys_lib_search_path_spec=$LIB
11184 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11185 # It is most probably a Windows format PATH.
11186 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11187 else
11188 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11189 fi
11190 # FIXME: find the short name or the path components, as spaces are
11191 # common. (e.g. "Program Files" -> "PROGRA~1")
11192 ;;
11193 esac
11194
11195 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11196 postinstall_cmds='base_file=`basename \$file`~
11197 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11198 dldir=$destdir/`dirname \$dlpath`~
11199 test -d \$dldir || mkdir -p \$dldir~
11200 $install_prog $dir/$dlname \$dldir/$dlname'
11201 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11202 dlpath=$dir/\$dldll~
11203 $RM \$dlpath'
11204 shlibpath_overrides_runpath=yes
11205 dynamic_linker='Win32 link.exe'
11206 ;;
11207
11208 *)
11209 # Assume MSVC wrapper
11210 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11211 dynamic_linker='Win32 ld.exe'
11212 ;;
11213 esac
11214 # FIXME: first we should search . and the directory the executable is in
11215 shlibpath_var=PATH
11216 ;;
11217
11218 darwin* | rhapsody*)
11219 dynamic_linker="$host_os dyld"
11220 version_type=darwin
11221 need_lib_prefix=no
11222 need_version=no
11223 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11224 soname_spec='$libname$release$major$shared_ext'
11225 shlibpath_overrides_runpath=yes
11226 shlibpath_var=DYLD_LIBRARY_PATH
11227 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11228
11229 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11230 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11231 ;;
11232
11233 dgux*)
11234 version_type=linux # correct to gnu/linux during the next big refactor
11235 need_lib_prefix=no
11236 need_version=no
11237 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11238 soname_spec='$libname$release$shared_ext$major'
11239 shlibpath_var=LD_LIBRARY_PATH
11240 ;;
11241
11242 freebsd* | dragonfly*)
11243 # DragonFly does not have aout. When/if they implement a new
11244 # versioning mechanism, adjust this.
11245 if test -x /usr/bin/objformat; then
11246 objformat=`/usr/bin/objformat`
11247 else
11248 case $host_os in
11249 freebsd[23].*) objformat=aout ;;
11250 *) objformat=elf ;;
11251 esac
11252 fi
11253 version_type=freebsd-$objformat
11254 case $version_type in
11255 freebsd-elf*)
11256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11257 soname_spec='$libname$release$shared_ext$major'
11258 need_version=no
11259 need_lib_prefix=no
11260 ;;
11261 freebsd-*)
11262 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11263 need_version=yes
11264 ;;
11265 esac
11266 shlibpath_var=LD_LIBRARY_PATH
11267 case $host_os in
11268 freebsd2.*)
11269 shlibpath_overrides_runpath=yes
11270 ;;
11271 freebsd3.[01]* | freebsdelf3.[01]*)
11272 shlibpath_overrides_runpath=yes
11273 hardcode_into_libs=yes
11274 ;;
11275 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11276 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11277 shlibpath_overrides_runpath=no
11278 hardcode_into_libs=yes
11279 ;;
11280 *) # from 4.6 on, and DragonFly
11281 shlibpath_overrides_runpath=yes
11282 hardcode_into_libs=yes
11283 ;;
11284 esac
11285 ;;
11286
11287 haiku*)
11288 version_type=linux # correct to gnu/linux during the next big refactor
11289 need_lib_prefix=no
11290 need_version=no
11291 dynamic_linker="$host_os runtime_loader"
11292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11293 soname_spec='$libname$release$shared_ext$major'
11294 shlibpath_var=LIBRARY_PATH
11295 shlibpath_overrides_runpath=no
11296 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11297 hardcode_into_libs=yes
11298 ;;
11299
11300 hpux9* | hpux10* | hpux11*)
11301 # Give a soname corresponding to the major version so that dld.sl refuses to
11302 # link against other versions.
11303 version_type=sunos
11304 need_lib_prefix=no
11305 need_version=no
11306 case $host_cpu in
11307 ia64*)
11308 shrext_cmds='.so'
11309 hardcode_into_libs=yes
11310 dynamic_linker="$host_os dld.so"
11311 shlibpath_var=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11314 soname_spec='$libname$release$shared_ext$major'
11315 if test 32 = "$HPUX_IA64_MODE"; then
11316 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11317 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11318 else
11319 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11320 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11321 fi
11322 ;;
11323 hppa*64*)
11324 shrext_cmds='.sl'
11325 hardcode_into_libs=yes
11326 dynamic_linker="$host_os dld.sl"
11327 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11328 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11330 soname_spec='$libname$release$shared_ext$major'
11331 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11332 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11333 ;;
11334 *)
11335 shrext_cmds='.sl'
11336 dynamic_linker="$host_os dld.sl"
11337 shlibpath_var=SHLIB_PATH
11338 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11340 soname_spec='$libname$release$shared_ext$major'
11341 ;;
11342 esac
11343 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11344 postinstall_cmds='chmod 555 $lib'
11345 # or fails outright, so override atomically:
11346 install_override_mode=555
11347 ;;
11348
11349 interix[3-9]*)
11350 version_type=linux # correct to gnu/linux during the next big refactor
11351 need_lib_prefix=no
11352 need_version=no
11353 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11354 soname_spec='$libname$release$shared_ext$major'
11355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 shlibpath_overrides_runpath=no
11358 hardcode_into_libs=yes
11359 ;;
11360
11361 irix5* | irix6* | nonstopux*)
11362 case $host_os in
11363 nonstopux*) version_type=nonstopux ;;
11364 *)
11365 if test yes = "$lt_cv_prog_gnu_ld"; then
11366 version_type=linux # correct to gnu/linux during the next big refactor
11367 else
11368 version_type=irix
11369 fi ;;
11370 esac
11371 need_lib_prefix=no
11372 need_version=no
11373 soname_spec='$libname$release$shared_ext$major'
11374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11375 case $host_os in
11376 irix5* | nonstopux*)
11377 libsuff= shlibsuff=
11378 ;;
11379 *)
11380 case $LD in # libtool.m4 will add one of these switches to LD
11381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11382 libsuff= shlibsuff= libmagic=32-bit;;
11383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11384 libsuff=32 shlibsuff=N32 libmagic=N32;;
11385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11387 *) libsuff= shlibsuff= libmagic=never-match;;
11388 esac
11389 ;;
11390 esac
11391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11392 shlibpath_overrides_runpath=no
11393 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11394 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11395 hardcode_into_libs=yes
11396 ;;
11397
11398 # No shared lib support for Linux oldld, aout, or coff.
11399 linux*oldld* | linux*aout* | linux*coff*)
11400 dynamic_linker=no
11401 ;;
11402
11403 linux*android*)
11404 version_type=none # Android doesn't support versioned libraries.
11405 need_lib_prefix=no
11406 need_version=no
11407 library_names_spec='$libname$release$shared_ext'
11408 soname_spec='$libname$release$shared_ext'
11409 finish_cmds=
11410 shlibpath_var=LD_LIBRARY_PATH
11411 shlibpath_overrides_runpath=yes
11412
11413 # This implies no fast_install, which is unacceptable.
11414 # Some rework will be needed to allow for fast_install
11415 # before this can be enabled.
11416 hardcode_into_libs=yes
11417
11418 dynamic_linker='Android linker'
11419 # Don't embed -rpath directories since the linker doesn't support them.
11420 hardcode_libdir_flag_spec='-L$libdir'
11421 ;;
11422
11423 # This must be glibc/ELF.
11424 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11425 version_type=linux # correct to gnu/linux during the next big refactor
11426 need_lib_prefix=no
11427 need_version=no
11428 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11429 soname_spec='$libname$release$shared_ext$major'
11430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11431 shlibpath_var=LD_LIBRARY_PATH
11432 shlibpath_overrides_runpath=no
11433
11434 # Some binutils ld are patched to set DT_RUNPATH
11435 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11436 $as_echo_n "(cached) " >&6
11437 else
11438 lt_cv_shlibpath_overrides_runpath=no
11439 save_LDFLAGS=$LDFLAGS
11440 save_libdir=$libdir
11441 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11442 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11444 /* end confdefs.h. */
11445
11446 int
11447 main ()
11448 {
11449
11450 ;
11451 return 0;
11452 }
11453 _ACEOF
11454 if ac_fn_c_try_link "$LINENO"; then :
11455 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11456 lt_cv_shlibpath_overrides_runpath=yes
11457 fi
11458 fi
11459 rm -f core conftest.err conftest.$ac_objext \
11460 conftest$ac_exeext conftest.$ac_ext
11461 LDFLAGS=$save_LDFLAGS
11462 libdir=$save_libdir
11463
11464 fi
11465
11466 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11467
11468 # This implies no fast_install, which is unacceptable.
11469 # Some rework will be needed to allow for fast_install
11470 # before this can be enabled.
11471 hardcode_into_libs=yes
11472
11473 # Ideally, we could use ldconfig to report *all* directores which are
11474 # searched for libraries, however this is still not possible. Aside from not
11475 # being certain /sbin/ldconfig is available, command
11476 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11477 # even though it is searched at run-time. Try to do the best guess by
11478 # appending ld.so.conf contents (and includes) to the search path.
11479 if test -f /etc/ld.so.conf; then
11480 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' ' '`
11481 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11482 fi
11483
11484 # We used to test for /lib/ld.so.1 and disable shared libraries on
11485 # powerpc, because MkLinux only supported shared libraries with the
11486 # GNU dynamic linker. Since this was broken with cross compilers,
11487 # most powerpc-linux boxes support dynamic linking these days and
11488 # people can always --disable-shared, the test was removed, and we
11489 # assume the GNU/Linux dynamic linker is in use.
11490 dynamic_linker='GNU/Linux ld.so'
11491 ;;
11492
11493 netbsdelf*-gnu)
11494 version_type=linux
11495 need_lib_prefix=no
11496 need_version=no
11497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11498 soname_spec='${libname}${release}${shared_ext}$major'
11499 shlibpath_var=LD_LIBRARY_PATH
11500 shlibpath_overrides_runpath=no
11501 hardcode_into_libs=yes
11502 dynamic_linker='NetBSD ld.elf_so'
11503 ;;
11504
11505 netbsd*)
11506 version_type=sunos
11507 need_lib_prefix=no
11508 need_version=no
11509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11510 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11512 dynamic_linker='NetBSD (a.out) ld.so'
11513 else
11514 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11515 soname_spec='$libname$release$shared_ext$major'
11516 dynamic_linker='NetBSD ld.elf_so'
11517 fi
11518 shlibpath_var=LD_LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11520 hardcode_into_libs=yes
11521 ;;
11522
11523 newsos6)
11524 version_type=linux # correct to gnu/linux during the next big refactor
11525 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11526 shlibpath_var=LD_LIBRARY_PATH
11527 shlibpath_overrides_runpath=yes
11528 ;;
11529
11530 *nto* | *qnx*)
11531 version_type=qnx
11532 need_lib_prefix=no
11533 need_version=no
11534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11535 soname_spec='$libname$release$shared_ext$major'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=no
11538 hardcode_into_libs=yes
11539 dynamic_linker='ldqnx.so'
11540 ;;
11541
11542 openbsd* | bitrig*)
11543 version_type=sunos
11544 sys_lib_dlsearch_path_spec=/usr/lib
11545 need_lib_prefix=no
11546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11547 need_version=no
11548 else
11549 need_version=yes
11550 fi
11551 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes
11555 ;;
11556
11557 os2*)
11558 libname_spec='$name'
11559 version_type=windows
11560 shrext_cmds=.dll
11561 need_version=no
11562 need_lib_prefix=no
11563 # OS/2 can only load a DLL with a base name of 8 characters or less.
11564 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11565 v=$($ECHO $release$versuffix | tr -d .-);
11566 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11567 $ECHO $n$v`$shared_ext'
11568 library_names_spec='${libname}_dll.$libext'
11569 dynamic_linker='OS/2 ld.exe'
11570 shlibpath_var=BEGINLIBPATH
11571 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11573 postinstall_cmds='base_file=`basename \$file`~
11574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11575 dldir=$destdir/`dirname \$dlpath`~
11576 test -d \$dldir || mkdir -p \$dldir~
11577 $install_prog $dir/$dlname \$dldir/$dlname~
11578 chmod a+x \$dldir/$dlname~
11579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11581 fi'
11582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11583 dlpath=$dir/\$dldll~
11584 $RM \$dlpath'
11585 ;;
11586
11587 osf3* | osf4* | osf5*)
11588 version_type=osf
11589 need_lib_prefix=no
11590 need_version=no
11591 soname_spec='$libname$release$shared_ext$major'
11592 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11596 ;;
11597
11598 rdos*)
11599 dynamic_linker=no
11600 ;;
11601
11602 solaris*)
11603 version_type=linux # correct to gnu/linux during the next big refactor
11604 need_lib_prefix=no
11605 need_version=no
11606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11607 soname_spec='$libname$release$shared_ext$major'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 shlibpath_overrides_runpath=yes
11610 hardcode_into_libs=yes
11611 # ldd complains unless libraries are executable
11612 postinstall_cmds='chmod +x $lib'
11613 ;;
11614
11615 sunos4*)
11616 version_type=sunos
11617 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11618 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11619 shlibpath_var=LD_LIBRARY_PATH
11620 shlibpath_overrides_runpath=yes
11621 if test yes = "$with_gnu_ld"; then
11622 need_lib_prefix=no
11623 fi
11624 need_version=yes
11625 ;;
11626
11627 sysv4 | sysv4.3*)
11628 version_type=linux # correct to gnu/linux during the next big refactor
11629 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11630 soname_spec='$libname$release$shared_ext$major'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 case $host_vendor in
11633 sni)
11634 shlibpath_overrides_runpath=no
11635 need_lib_prefix=no
11636 runpath_var=LD_RUN_PATH
11637 ;;
11638 siemens)
11639 need_lib_prefix=no
11640 ;;
11641 motorola)
11642 need_lib_prefix=no
11643 need_version=no
11644 shlibpath_overrides_runpath=no
11645 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11646 ;;
11647 esac
11648 ;;
11649
11650 sysv4*MP*)
11651 if test -d /usr/nec; then
11652 version_type=linux # correct to gnu/linux during the next big refactor
11653 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11654 soname_spec='$libname$shared_ext.$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 fi
11657 ;;
11658
11659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11660 version_type=sco
11661 need_lib_prefix=no
11662 need_version=no
11663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11664 soname_spec='$libname$release$shared_ext$major'
11665 shlibpath_var=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath=yes
11667 hardcode_into_libs=yes
11668 if test yes = "$with_gnu_ld"; then
11669 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11670 else
11671 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11672 case $host_os in
11673 sco3.2v5*)
11674 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11675 ;;
11676 esac
11677 fi
11678 sys_lib_dlsearch_path_spec='/usr/lib'
11679 ;;
11680
11681 tpf*)
11682 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11683 version_type=linux # correct to gnu/linux during the next big refactor
11684 need_lib_prefix=no
11685 need_version=no
11686 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11687 shlibpath_var=LD_LIBRARY_PATH
11688 shlibpath_overrides_runpath=no
11689 hardcode_into_libs=yes
11690 ;;
11691
11692 uts4*)
11693 version_type=linux # correct to gnu/linux during the next big refactor
11694 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11695 soname_spec='$libname$release$shared_ext$major'
11696 shlibpath_var=LD_LIBRARY_PATH
11697 ;;
11698
11699 *)
11700 dynamic_linker=no
11701 ;;
11702 esac
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11704 $as_echo "$dynamic_linker" >&6; }
11705 test no = "$dynamic_linker" && can_build_shared=no
11706
11707 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11708 if test yes = "$GCC"; then
11709 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11710 fi
11711
11712 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11713 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11714 fi
11715
11716 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11717 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11718 fi
11719
11720 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11721 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11722
11723 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11724 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11725
11726 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11727 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11826 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11827 hardcode_action=
11828 if test -n "$hardcode_libdir_flag_spec" ||
11829 test -n "$runpath_var" ||
11830 test yes = "$hardcode_automatic"; then
11831
11832 # We can hardcode non-existent directories.
11833 if test no != "$hardcode_direct" &&
11834 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11835 # have to relink, otherwise we might link with an installed library
11836 # when we should be linking with a yet-to-be-installed one
11837 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11838 test no != "$hardcode_minus_L"; then
11839 # Linking always hardcodes the temporary library directory.
11840 hardcode_action=relink
11841 else
11842 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11843 hardcode_action=immediate
11844 fi
11845 else
11846 # We cannot hardcode anything, or else we can only hardcode existing
11847 # directories.
11848 hardcode_action=unsupported
11849 fi
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11851 $as_echo "$hardcode_action" >&6; }
11852
11853 if test relink = "$hardcode_action" ||
11854 test yes = "$inherit_rpath"; then
11855 # Fast installation is not supported
11856 enable_fast_install=no
11857 elif test yes = "$shlibpath_overrides_runpath" ||
11858 test no = "$enable_shared"; then
11859 # Fast installation is not necessary
11860 enable_fast_install=needless
11861 fi
11862
11863
11864
11865
11866
11867
11868 if test yes != "$enable_dlopen"; then
11869 enable_dlopen=unknown
11870 enable_dlopen_self=unknown
11871 enable_dlopen_self_static=unknown
11872 else
11873 lt_cv_dlopen=no
11874 lt_cv_dlopen_libs=
11875
11876 case $host_os in
11877 beos*)
11878 lt_cv_dlopen=load_add_on
11879 lt_cv_dlopen_libs=
11880 lt_cv_dlopen_self=yes
11881 ;;
11882
11883 mingw* | pw32* | cegcc*)
11884 lt_cv_dlopen=LoadLibrary
11885 lt_cv_dlopen_libs=
11886 ;;
11887
11888 cygwin*)
11889 lt_cv_dlopen=dlopen
11890 lt_cv_dlopen_libs=
11891 ;;
11892
11893 darwin*)
11894 # if libdl is installed we need to link against it
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11896 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11897 if ${ac_cv_lib_dl_dlopen+:} false; then :
11898 $as_echo_n "(cached) " >&6
11899 else
11900 ac_check_lib_save_LIBS=$LIBS
11901 LIBS="-ldl $LIBS"
11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11903 /* end confdefs.h. */
11904
11905 /* Override any GCC internal prototype to avoid an error.
11906 Use char because int might match the return type of a GCC
11907 builtin and then its argument prototype would still apply. */
11908 #ifdef __cplusplus
11909 extern "C"
11910 #endif
11911 char dlopen ();
11912 int
11913 main ()
11914 {
11915 return dlopen ();
11916 ;
11917 return 0;
11918 }
11919 _ACEOF
11920 if ac_fn_c_try_link "$LINENO"; then :
11921 ac_cv_lib_dl_dlopen=yes
11922 else
11923 ac_cv_lib_dl_dlopen=no
11924 fi
11925 rm -f core conftest.err conftest.$ac_objext \
11926 conftest$ac_exeext conftest.$ac_ext
11927 LIBS=$ac_check_lib_save_LIBS
11928 fi
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11930 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11931 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11932 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11933 else
11934
11935 lt_cv_dlopen=dyld
11936 lt_cv_dlopen_libs=
11937 lt_cv_dlopen_self=yes
11938
11939 fi
11940
11941 ;;
11942
11943 tpf*)
11944 # Don't try to run any link tests for TPF. We know it's impossible
11945 # because TPF is a cross-compiler, and we know how we open DSOs.
11946 lt_cv_dlopen=dlopen
11947 lt_cv_dlopen_libs=
11948 lt_cv_dlopen_self=no
11949 ;;
11950
11951 *)
11952 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11953 if test "x$ac_cv_func_shl_load" = xyes; then :
11954 lt_cv_dlopen=shl_load
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11957 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11958 if ${ac_cv_lib_dld_shl_load+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-ldld $LIBS"
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965
11966 /* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply. */
11969 #ifdef __cplusplus
11970 extern "C"
11971 #endif
11972 char shl_load ();
11973 int
11974 main ()
11975 {
11976 return shl_load ();
11977 ;
11978 return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_lib_dld_shl_load=yes
11983 else
11984 ac_cv_lib_dld_shl_load=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11989 fi
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11991 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11992 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11993 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11994 else
11995 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11996 if test "x$ac_cv_func_dlopen" = xyes; then :
11997 lt_cv_dlopen=dlopen
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12000 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12001 if ${ac_cv_lib_dl_dlopen+:} false; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-ldl $LIBS"
12006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12007 /* end confdefs.h. */
12008
12009 /* Override any GCC internal prototype to avoid an error.
12010 Use char because int might match the return type of a GCC
12011 builtin and then its argument prototype would still apply. */
12012 #ifdef __cplusplus
12013 extern "C"
12014 #endif
12015 char dlopen ();
12016 int
12017 main ()
12018 {
12019 return dlopen ();
12020 ;
12021 return 0;
12022 }
12023 _ACEOF
12024 if ac_fn_c_try_link "$LINENO"; then :
12025 ac_cv_lib_dl_dlopen=yes
12026 else
12027 ac_cv_lib_dl_dlopen=no
12028 fi
12029 rm -f core conftest.err conftest.$ac_objext \
12030 conftest$ac_exeext conftest.$ac_ext
12031 LIBS=$ac_check_lib_save_LIBS
12032 fi
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12034 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12035 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12036 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12039 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12040 if ${ac_cv_lib_svld_dlopen+:} false; then :
12041 $as_echo_n "(cached) " >&6
12042 else
12043 ac_check_lib_save_LIBS=$LIBS
12044 LIBS="-lsvld $LIBS"
12045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046 /* end confdefs.h. */
12047
12048 /* Override any GCC internal prototype to avoid an error.
12049 Use char because int might match the return type of a GCC
12050 builtin and then its argument prototype would still apply. */
12051 #ifdef __cplusplus
12052 extern "C"
12053 #endif
12054 char dlopen ();
12055 int
12056 main ()
12057 {
12058 return dlopen ();
12059 ;
12060 return 0;
12061 }
12062 _ACEOF
12063 if ac_fn_c_try_link "$LINENO"; then :
12064 ac_cv_lib_svld_dlopen=yes
12065 else
12066 ac_cv_lib_svld_dlopen=no
12067 fi
12068 rm -f core conftest.err conftest.$ac_objext \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12071 fi
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12073 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12074 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12075 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12076 else
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12078 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12079 if ${ac_cv_lib_dld_dld_link+:} false; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-ldld $LIBS"
12084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12085 /* end confdefs.h. */
12086
12087 /* Override any GCC internal prototype to avoid an error.
12088 Use char because int might match the return type of a GCC
12089 builtin and then its argument prototype would still apply. */
12090 #ifdef __cplusplus
12091 extern "C"
12092 #endif
12093 char dld_link ();
12094 int
12095 main ()
12096 {
12097 return dld_link ();
12098 ;
12099 return 0;
12100 }
12101 _ACEOF
12102 if ac_fn_c_try_link "$LINENO"; then :
12103 ac_cv_lib_dld_dld_link=yes
12104 else
12105 ac_cv_lib_dld_dld_link=no
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext \
12108 conftest$ac_exeext conftest.$ac_ext
12109 LIBS=$ac_check_lib_save_LIBS
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12112 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12113 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12114 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12115 fi
12116
12117
12118 fi
12119
12120
12121 fi
12122
12123
12124 fi
12125
12126
12127 fi
12128
12129
12130 fi
12131
12132 ;;
12133 esac
12134
12135 if test no = "$lt_cv_dlopen"; then
12136 enable_dlopen=no
12137 else
12138 enable_dlopen=yes
12139 fi
12140
12141 case $lt_cv_dlopen in
12142 dlopen)
12143 save_CPPFLAGS=$CPPFLAGS
12144 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12145
12146 save_LDFLAGS=$LDFLAGS
12147 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12148
12149 save_LIBS=$LIBS
12150 LIBS="$lt_cv_dlopen_libs $LIBS"
12151
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12153 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12154 if ${lt_cv_dlopen_self+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 if test yes = "$cross_compiling"; then :
12158 lt_cv_dlopen_self=cross
12159 else
12160 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12161 lt_status=$lt_dlunknown
12162 cat > conftest.$ac_ext <<_LT_EOF
12163 #line $LINENO "configure"
12164 #include "confdefs.h"
12165
12166 #if HAVE_DLFCN_H
12167 #include <dlfcn.h>
12168 #endif
12169
12170 #include <stdio.h>
12171
12172 #ifdef RTLD_GLOBAL
12173 # define LT_DLGLOBAL RTLD_GLOBAL
12174 #else
12175 # ifdef DL_GLOBAL
12176 # define LT_DLGLOBAL DL_GLOBAL
12177 # else
12178 # define LT_DLGLOBAL 0
12179 # endif
12180 #endif
12181
12182 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12183 find out it does not work in some platform. */
12184 #ifndef LT_DLLAZY_OR_NOW
12185 # ifdef RTLD_LAZY
12186 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12187 # else
12188 # ifdef DL_LAZY
12189 # define LT_DLLAZY_OR_NOW DL_LAZY
12190 # else
12191 # ifdef RTLD_NOW
12192 # define LT_DLLAZY_OR_NOW RTLD_NOW
12193 # else
12194 # ifdef DL_NOW
12195 # define LT_DLLAZY_OR_NOW DL_NOW
12196 # else
12197 # define LT_DLLAZY_OR_NOW 0
12198 # endif
12199 # endif
12200 # endif
12201 # endif
12202 #endif
12203
12204 /* When -fvisibility=hidden is used, assume the code has been annotated
12205 correspondingly for the symbols needed. */
12206 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12207 int fnord () __attribute__((visibility("default")));
12208 #endif
12209
12210 int fnord () { return 42; }
12211 int main ()
12212 {
12213 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12214 int status = $lt_dlunknown;
12215
12216 if (self)
12217 {
12218 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12219 else
12220 {
12221 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12222 else puts (dlerror ());
12223 }
12224 /* dlclose (self); */
12225 }
12226 else
12227 puts (dlerror ());
12228
12229 return status;
12230 }
12231 _LT_EOF
12232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12233 (eval $ac_link) 2>&5
12234 ac_status=$?
12235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12236 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12237 (./conftest; exit; ) >&5 2>/dev/null
12238 lt_status=$?
12239 case x$lt_status in
12240 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12241 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12242 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12243 esac
12244 else :
12245 # compilation failed
12246 lt_cv_dlopen_self=no
12247 fi
12248 fi
12249 rm -fr conftest*
12250
12251
12252 fi
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12254 $as_echo "$lt_cv_dlopen_self" >&6; }
12255
12256 if test yes = "$lt_cv_dlopen_self"; then
12257 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12259 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12260 if ${lt_cv_dlopen_self_static+:} false; then :
12261 $as_echo_n "(cached) " >&6
12262 else
12263 if test yes = "$cross_compiling"; then :
12264 lt_cv_dlopen_self_static=cross
12265 else
12266 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12267 lt_status=$lt_dlunknown
12268 cat > conftest.$ac_ext <<_LT_EOF
12269 #line $LINENO "configure"
12270 #include "confdefs.h"
12271
12272 #if HAVE_DLFCN_H
12273 #include <dlfcn.h>
12274 #endif
12275
12276 #include <stdio.h>
12277
12278 #ifdef RTLD_GLOBAL
12279 # define LT_DLGLOBAL RTLD_GLOBAL
12280 #else
12281 # ifdef DL_GLOBAL
12282 # define LT_DLGLOBAL DL_GLOBAL
12283 # else
12284 # define LT_DLGLOBAL 0
12285 # endif
12286 #endif
12287
12288 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12289 find out it does not work in some platform. */
12290 #ifndef LT_DLLAZY_OR_NOW
12291 # ifdef RTLD_LAZY
12292 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12293 # else
12294 # ifdef DL_LAZY
12295 # define LT_DLLAZY_OR_NOW DL_LAZY
12296 # else
12297 # ifdef RTLD_NOW
12298 # define LT_DLLAZY_OR_NOW RTLD_NOW
12299 # else
12300 # ifdef DL_NOW
12301 # define LT_DLLAZY_OR_NOW DL_NOW
12302 # else
12303 # define LT_DLLAZY_OR_NOW 0
12304 # endif
12305 # endif
12306 # endif
12307 # endif
12308 #endif
12309
12310 /* When -fvisibility=hidden is used, assume the code has been annotated
12311 correspondingly for the symbols needed. */
12312 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12313 int fnord () __attribute__((visibility("default")));
12314 #endif
12315
12316 int fnord () { return 42; }
12317 int main ()
12318 {
12319 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12320 int status = $lt_dlunknown;
12321
12322 if (self)
12323 {
12324 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12325 else
12326 {
12327 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12328 else puts (dlerror ());
12329 }
12330 /* dlclose (self); */
12331 }
12332 else
12333 puts (dlerror ());
12334
12335 return status;
12336 }
12337 _LT_EOF
12338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12339 (eval $ac_link) 2>&5
12340 ac_status=$?
12341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12342 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12343 (./conftest; exit; ) >&5 2>/dev/null
12344 lt_status=$?
12345 case x$lt_status in
12346 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12347 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12348 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12349 esac
12350 else :
12351 # compilation failed
12352 lt_cv_dlopen_self_static=no
12353 fi
12354 fi
12355 rm -fr conftest*
12356
12357
12358 fi
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12360 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12361 fi
12362
12363 CPPFLAGS=$save_CPPFLAGS
12364 LDFLAGS=$save_LDFLAGS
12365 LIBS=$save_LIBS
12366 ;;
12367 esac
12368
12369 case $lt_cv_dlopen_self in
12370 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12371 *) enable_dlopen_self=unknown ;;
12372 esac
12373
12374 case $lt_cv_dlopen_self_static in
12375 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12376 *) enable_dlopen_self_static=unknown ;;
12377 esac
12378 fi
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396 striplib=
12397 old_striplib=
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12399 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12400 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12401 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12402 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12404 $as_echo "yes" >&6; }
12405 else
12406 # FIXME - insert some real tests, host_os isn't really good enough
12407 case $host_os in
12408 darwin*)
12409 if test -n "$STRIP"; then
12410 striplib="$STRIP -x"
12411 old_striplib="$STRIP -S"
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12413 $as_echo "yes" >&6; }
12414 else
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12416 $as_echo "no" >&6; }
12417 fi
12418 ;;
12419 *)
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421 $as_echo "no" >&6; }
12422 ;;
12423 esac
12424 fi
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437 # Report what library types will actually be built
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12439 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12441 $as_echo "$can_build_shared" >&6; }
12442
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12444 $as_echo_n "checking whether to build shared libraries... " >&6; }
12445 test no = "$can_build_shared" && enable_shared=no
12446
12447 # On AIX, shared libraries and static libraries use the same namespace, and
12448 # are all built from PIC.
12449 case $host_os in
12450 aix3*)
12451 test yes = "$enable_shared" && enable_static=no
12452 if test -n "$RANLIB"; then
12453 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12454 postinstall_cmds='$RANLIB $lib'
12455 fi
12456 ;;
12457
12458 aix[4-9]*)
12459 if test ia64 != "$host_cpu"; then
12460 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12461 yes,aix,yes) ;; # shared object as lib.so file only
12462 yes,svr4,*) ;; # shared object as lib.so archive member only
12463 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12464 esac
12465 fi
12466 ;;
12467 esac
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12469 $as_echo "$enable_shared" >&6; }
12470
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12472 $as_echo_n "checking whether to build static libraries... " >&6; }
12473 # Make sure either enable_shared or enable_static is yes.
12474 test yes = "$enable_shared" || enable_static=yes
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12476 $as_echo "$enable_static" >&6; }
12477
12478
12479
12480
12481 fi
12482 ac_ext=c
12483 ac_cpp='$CPP $CPPFLAGS'
12484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12487
12488 CC=$lt_save_CC
12489
12490 if test -n "$CXX" && ( test no != "$CXX" &&
12491 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12492 (test g++ != "$CXX"))); then
12493 ac_ext=cpp
12494 ac_cpp='$CXXCPP $CPPFLAGS'
12495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12499 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12500 if test -z "$CXXCPP"; then
12501 if ${ac_cv_prog_CXXCPP+:} false; then :
12502 $as_echo_n "(cached) " >&6
12503 else
12504 # Double quotes because CXXCPP needs to be expanded
12505 for CXXCPP in "$CXX -E" "/lib/cpp"
12506 do
12507 ac_preproc_ok=false
12508 for ac_cxx_preproc_warn_flag in '' yes
12509 do
12510 # Use a header file that comes with gcc, so configuring glibc
12511 # with a fresh cross-compiler works.
12512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 # <limits.h> exists even on freestanding compilers.
12514 # On the NeXT, cc -E runs the code through the compiler's parser,
12515 # not just through cpp. "Syntax error" is here to catch this case.
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518 #ifdef __STDC__
12519 # include <limits.h>
12520 #else
12521 # include <assert.h>
12522 #endif
12523 Syntax error
12524 _ACEOF
12525 if ac_fn_cxx_try_cpp "$LINENO"; then :
12526
12527 else
12528 # Broken: fails on valid input.
12529 continue
12530 fi
12531 rm -f conftest.err conftest.i conftest.$ac_ext
12532
12533 # OK, works on sane cases. Now check whether nonexistent headers
12534 # can be detected and how.
12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12536 /* end confdefs.h. */
12537 #include <ac_nonexistent.h>
12538 _ACEOF
12539 if ac_fn_cxx_try_cpp "$LINENO"; then :
12540 # Broken: success on invalid input.
12541 continue
12542 else
12543 # Passes both tests.
12544 ac_preproc_ok=:
12545 break
12546 fi
12547 rm -f conftest.err conftest.i conftest.$ac_ext
12548
12549 done
12550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12551 rm -f conftest.i conftest.err conftest.$ac_ext
12552 if $ac_preproc_ok; then :
12553 break
12554 fi
12555
12556 done
12557 ac_cv_prog_CXXCPP=$CXXCPP
12558
12559 fi
12560 CXXCPP=$ac_cv_prog_CXXCPP
12561 else
12562 ac_cv_prog_CXXCPP=$CXXCPP
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12565 $as_echo "$CXXCPP" >&6; }
12566 ac_preproc_ok=false
12567 for ac_cxx_preproc_warn_flag in '' yes
12568 do
12569 # Use a header file that comes with gcc, so configuring glibc
12570 # with a fresh cross-compiler works.
12571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12572 # <limits.h> exists even on freestanding compilers.
12573 # On the NeXT, cc -E runs the code through the compiler's parser,
12574 # not just through cpp. "Syntax error" is here to catch this case.
12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12576 /* end confdefs.h. */
12577 #ifdef __STDC__
12578 # include <limits.h>
12579 #else
12580 # include <assert.h>
12581 #endif
12582 Syntax error
12583 _ACEOF
12584 if ac_fn_cxx_try_cpp "$LINENO"; then :
12585
12586 else
12587 # Broken: fails on valid input.
12588 continue
12589 fi
12590 rm -f conftest.err conftest.i conftest.$ac_ext
12591
12592 # OK, works on sane cases. Now check whether nonexistent headers
12593 # can be detected and how.
12594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12595 /* end confdefs.h. */
12596 #include <ac_nonexistent.h>
12597 _ACEOF
12598 if ac_fn_cxx_try_cpp "$LINENO"; then :
12599 # Broken: success on invalid input.
12600 continue
12601 else
12602 # Passes both tests.
12603 ac_preproc_ok=:
12604 break
12605 fi
12606 rm -f conftest.err conftest.i conftest.$ac_ext
12607
12608 done
12609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12610 rm -f conftest.i conftest.err conftest.$ac_ext
12611 if $ac_preproc_ok; then :
12612
12613 else
12614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12616 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12617 See \`config.log' for more details" "$LINENO" 5; }
12618 fi
12619
12620 ac_ext=c
12621 ac_cpp='$CPP $CPPFLAGS'
12622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12625
12626 else
12627 _lt_caught_CXX_error=yes
12628 fi
12629
12630 ac_ext=cpp
12631 ac_cpp='$CXXCPP $CPPFLAGS'
12632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12635
12636 archive_cmds_need_lc_CXX=no
12637 allow_undefined_flag_CXX=
12638 always_export_symbols_CXX=no
12639 archive_expsym_cmds_CXX=
12640 compiler_needs_object_CXX=no
12641 export_dynamic_flag_spec_CXX=
12642 hardcode_direct_CXX=no
12643 hardcode_direct_absolute_CXX=no
12644 hardcode_libdir_flag_spec_CXX=
12645 hardcode_libdir_separator_CXX=
12646 hardcode_minus_L_CXX=no
12647 hardcode_shlibpath_var_CXX=unsupported
12648 hardcode_automatic_CXX=no
12649 inherit_rpath_CXX=no
12650 module_cmds_CXX=
12651 module_expsym_cmds_CXX=
12652 link_all_deplibs_CXX=unknown
12653 old_archive_cmds_CXX=$old_archive_cmds
12654 reload_flag_CXX=$reload_flag
12655 reload_cmds_CXX=$reload_cmds
12656 no_undefined_flag_CXX=
12657 whole_archive_flag_spec_CXX=
12658 enable_shared_with_static_runtimes_CXX=no
12659
12660 # Source file extension for C++ test sources.
12661 ac_ext=cpp
12662
12663 # Object file extension for compiled C++ test sources.
12664 objext=o
12665 objext_CXX=$objext
12666
12667 # No sense in running all these tests if we already determined that
12668 # the CXX compiler isn't working. Some variables (like enable_shared)
12669 # are currently assumed to apply to all compilers on this platform,
12670 # and will be corrupted by setting them based on a non-working compiler.
12671 if test yes != "$_lt_caught_CXX_error"; then
12672 # Code to be used in simple compile tests
12673 lt_simple_compile_test_code="int some_variable = 0;"
12674
12675 # Code to be used in simple link tests
12676 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12677
12678 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12679
12680
12681
12682
12683
12684
12685 # If no C compiler was specified, use CC.
12686 LTCC=${LTCC-"$CC"}
12687
12688 # If no C compiler flags were specified, use CFLAGS.
12689 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12690
12691 # Allow CC to be a program name with arguments.
12692 compiler=$CC
12693
12694
12695 # save warnings/boilerplate of simple test code
12696 ac_outfile=conftest.$ac_objext
12697 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12698 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12699 _lt_compiler_boilerplate=`cat conftest.err`
12700 $RM conftest*
12701
12702 ac_outfile=conftest.$ac_objext
12703 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12704 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12705 _lt_linker_boilerplate=`cat conftest.err`
12706 $RM -r conftest*
12707
12708
12709 # Allow CC to be a program name with arguments.
12710 lt_save_CC=$CC
12711 lt_save_CFLAGS=$CFLAGS
12712 lt_save_LD=$LD
12713 lt_save_GCC=$GCC
12714 GCC=$GXX
12715 lt_save_with_gnu_ld=$with_gnu_ld
12716 lt_save_path_LD=$lt_cv_path_LD
12717 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12718 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12719 else
12720 $as_unset lt_cv_prog_gnu_ld
12721 fi
12722 if test -n "${lt_cv_path_LDCXX+set}"; then
12723 lt_cv_path_LD=$lt_cv_path_LDCXX
12724 else
12725 $as_unset lt_cv_path_LD
12726 fi
12727 test -z "${LDCXX+set}" || LD=$LDCXX
12728 CC=${CXX-"c++"}
12729 CFLAGS=$CXXFLAGS
12730 compiler=$CC
12731 compiler_CXX=$CC
12732 func_cc_basename $compiler
12733 cc_basename=$func_cc_basename_result
12734
12735
12736 if test -n "$compiler"; then
12737 # We don't want -fno-exception when compiling C++ code, so set the
12738 # no_builtin_flag separately
12739 if test yes = "$GXX"; then
12740 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12741 else
12742 lt_prog_compiler_no_builtin_flag_CXX=
12743 fi
12744
12745 if test yes = "$GXX"; then
12746 # Set up default GNU C++ configuration
12747
12748
12749
12750 # Check whether --with-gnu-ld was given.
12751 if test "${with_gnu_ld+set}" = set; then :
12752 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12753 else
12754 with_gnu_ld=no
12755 fi
12756
12757 ac_prog=ld
12758 if test yes = "$GCC"; then
12759 # Check if gcc -print-prog-name=ld gives a path.
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12761 $as_echo_n "checking for ld used by $CC... " >&6; }
12762 case $host in
12763 *-*-mingw*)
12764 # gcc leaves a trailing carriage return, which upsets mingw
12765 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12766 *)
12767 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12768 esac
12769 case $ac_prog in
12770 # Accept absolute paths.
12771 [\\/]* | ?:[\\/]*)
12772 re_direlt='/[^/][^/]*/\.\./'
12773 # Canonicalize the pathname of ld
12774 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12775 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12776 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12777 done
12778 test -z "$LD" && LD=$ac_prog
12779 ;;
12780 "")
12781 # If it fails, then pretend we aren't using GCC.
12782 ac_prog=ld
12783 ;;
12784 *)
12785 # If it is relative, then search for the first ld in PATH.
12786 with_gnu_ld=unknown
12787 ;;
12788 esac
12789 elif test yes = "$with_gnu_ld"; then
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12791 $as_echo_n "checking for GNU ld... " >&6; }
12792 else
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12794 $as_echo_n "checking for non-GNU ld... " >&6; }
12795 fi
12796 if ${lt_cv_path_LD+:} false; then :
12797 $as_echo_n "(cached) " >&6
12798 else
12799 if test -z "$LD"; then
12800 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12801 for ac_dir in $PATH; do
12802 IFS=$lt_save_ifs
12803 test -z "$ac_dir" && ac_dir=.
12804 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12805 lt_cv_path_LD=$ac_dir/$ac_prog
12806 # Check to see if the program is GNU ld. I'd rather use --version,
12807 # but apparently some variants of GNU ld only accept -v.
12808 # Break only if it was the GNU/non-GNU ld that we prefer.
12809 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12810 *GNU* | *'with BFD'*)
12811 test no != "$with_gnu_ld" && break
12812 ;;
12813 *)
12814 test yes != "$with_gnu_ld" && break
12815 ;;
12816 esac
12817 fi
12818 done
12819 IFS=$lt_save_ifs
12820 else
12821 lt_cv_path_LD=$LD # Let the user override the test with a path.
12822 fi
12823 fi
12824
12825 LD=$lt_cv_path_LD
12826 if test -n "$LD"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12828 $as_echo "$LD" >&6; }
12829 else
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12831 $as_echo "no" >&6; }
12832 fi
12833 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12835 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12836 if ${lt_cv_prog_gnu_ld+:} false; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12840 case `$LD -v 2>&1 </dev/null` in
12841 *GNU* | *'with BFD'*)
12842 lt_cv_prog_gnu_ld=yes
12843 ;;
12844 *)
12845 lt_cv_prog_gnu_ld=no
12846 ;;
12847 esac
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12850 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12851 with_gnu_ld=$lt_cv_prog_gnu_ld
12852
12853
12854
12855
12856
12857
12858
12859 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12860 # archiving commands below assume that GNU ld is being used.
12861 if test yes = "$with_gnu_ld"; then
12862 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12863 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'
12864
12865 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12866 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12867
12868 # If archive_cmds runs LD, not CC, wlarc should be empty
12869 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12870 # investigate it a little bit more. (MM)
12871 wlarc='$wl'
12872
12873 # ancient GNU ld didn't support --whole-archive et. al.
12874 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12875 $GREP 'no-whole-archive' > /dev/null; then
12876 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12877 else
12878 whole_archive_flag_spec_CXX=
12879 fi
12880 else
12881 with_gnu_ld=no
12882 wlarc=
12883
12884 # A generic and very simple default shared library creation
12885 # command for GNU C++ for the case where it uses the native
12886 # linker, instead of GNU ld. If possible, this setting should
12887 # overridden to take advantage of the native linker features on
12888 # the platform it is being used on.
12889 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12890 fi
12891
12892 # Commands to make compiler produce verbose output that lists
12893 # what "hidden" libraries, object files and flags are used when
12894 # linking a shared library.
12895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12896
12897 else
12898 GXX=no
12899 with_gnu_ld=no
12900 wlarc=
12901 fi
12902
12903 # PORTME: fill in a description of your system's C++ link characteristics
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12905 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12906 ld_shlibs_CXX=yes
12907 case $host_os in
12908 aix3*)
12909 # FIXME: insert proper C++ library support
12910 ld_shlibs_CXX=no
12911 ;;
12912 aix[4-9]*)
12913 if test ia64 = "$host_cpu"; then
12914 # On IA64, the linker does run time linking by default, so we don't
12915 # have to do anything special.
12916 aix_use_runtimelinking=no
12917 exp_sym_flag='-Bexport'
12918 no_entry_flag=
12919 else
12920 aix_use_runtimelinking=no
12921
12922 # Test if we are trying to use run time linking or normal
12923 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12924 # have runtime linking enabled, and use it for executables.
12925 # For shared libraries, we enable/disable runtime linking
12926 # depending on the kind of the shared library created -
12927 # when "with_aix_soname,aix_use_runtimelinking" is:
12928 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12929 # "aix,yes" lib.so shared, rtl:yes, for executables
12930 # lib.a static archive
12931 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12932 # lib.a(lib.so.V) shared, rtl:no, for executables
12933 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12934 # lib.a(lib.so.V) shared, rtl:no
12935 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12936 # lib.a static archive
12937 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12938 for ld_flag in $LDFLAGS; do
12939 case $ld_flag in
12940 *-brtl*)
12941 aix_use_runtimelinking=yes
12942 break
12943 ;;
12944 esac
12945 done
12946 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12947 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12948 # so we don't have lib.a shared libs to link our executables.
12949 # We have to force runtime linking in this case.
12950 aix_use_runtimelinking=yes
12951 LDFLAGS="$LDFLAGS -Wl,-brtl"
12952 fi
12953 ;;
12954 esac
12955
12956 exp_sym_flag='-bexport'
12957 no_entry_flag='-bnoentry'
12958 fi
12959
12960 # When large executables or shared objects are built, AIX ld can
12961 # have problems creating the table of contents. If linking a library
12962 # or program results in "error TOC overflow" add -mminimal-toc to
12963 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12964 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12965
12966 archive_cmds_CXX=''
12967 hardcode_direct_CXX=yes
12968 hardcode_direct_absolute_CXX=yes
12969 hardcode_libdir_separator_CXX=':'
12970 link_all_deplibs_CXX=yes
12971 file_list_spec_CXX='$wl-f,'
12972 case $with_aix_soname,$aix_use_runtimelinking in
12973 aix,*) ;; # no import file
12974 svr4,* | *,yes) # use import file
12975 # The Import File defines what to hardcode.
12976 hardcode_direct_CXX=no
12977 hardcode_direct_absolute_CXX=no
12978 ;;
12979 esac
12980
12981 if test yes = "$GXX"; then
12982 case $host_os in aix4.[012]|aix4.[012].*)
12983 # We only want to do this on AIX 4.2 and lower, the check
12984 # below for broken collect2 doesn't work under 4.3+
12985 collect2name=`$CC -print-prog-name=collect2`
12986 if test -f "$collect2name" &&
12987 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12988 then
12989 # We have reworked collect2
12990 :
12991 else
12992 # We have old collect2
12993 hardcode_direct_CXX=unsupported
12994 # It fails to find uninstalled libraries when the uninstalled
12995 # path is not listed in the libpath. Setting hardcode_minus_L
12996 # to unsupported forces relinking
12997 hardcode_minus_L_CXX=yes
12998 hardcode_libdir_flag_spec_CXX='-L$libdir'
12999 hardcode_libdir_separator_CXX=
13000 fi
13001 esac
13002 shared_flag='-shared'
13003 if test yes = "$aix_use_runtimelinking"; then
13004 shared_flag=$shared_flag' $wl-G'
13005 fi
13006 # Need to ensure runtime linking is disabled for the traditional
13007 # shared library, or the linker may eventually find shared libraries
13008 # /with/ Import File - we do not want to mix them.
13009 shared_flag_aix='-shared'
13010 shared_flag_svr4='-shared $wl-G'
13011 else
13012 # not using gcc
13013 if test ia64 = "$host_cpu"; then
13014 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13015 # chokes on -Wl,-G. The following line is correct:
13016 shared_flag='-G'
13017 else
13018 if test yes = "$aix_use_runtimelinking"; then
13019 shared_flag='$wl-G'
13020 else
13021 shared_flag='$wl-bM:SRE'
13022 fi
13023 shared_flag_aix='$wl-bM:SRE'
13024 shared_flag_svr4='$wl-G'
13025 fi
13026 fi
13027
13028 export_dynamic_flag_spec_CXX='$wl-bexpall'
13029 # It seems that -bexpall does not export symbols beginning with
13030 # underscore (_), so it is better to generate a list of symbols to
13031 # export.
13032 always_export_symbols_CXX=yes
13033 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13034 # Warning - without using the other runtime loading flags (-brtl),
13035 # -berok will link without error, but may produce a broken library.
13036 # The "-G" linker flag allows undefined symbols.
13037 no_undefined_flag_CXX='-bernotok'
13038 # Determine the default libpath from the value encoded in an empty
13039 # executable.
13040 if test set = "${lt_cv_aix_libpath+set}"; then
13041 aix_libpath=$lt_cv_aix_libpath
13042 else
13043 if ${lt_cv_aix_libpath__CXX+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048
13049 int
13050 main ()
13051 {
13052
13053 ;
13054 return 0;
13055 }
13056 _ACEOF
13057 if ac_fn_cxx_try_link "$LINENO"; then :
13058
13059 lt_aix_libpath_sed='
13060 /Import File Strings/,/^$/ {
13061 /^0/ {
13062 s/^0 *\([^ ]*\) *$/\1/
13063 p
13064 }
13065 }'
13066 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13067 # Check for a 64-bit object if we didn't find anything.
13068 if test -z "$lt_cv_aix_libpath__CXX"; then
13069 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13070 fi
13071 fi
13072 rm -f core conftest.err conftest.$ac_objext \
13073 conftest$ac_exeext conftest.$ac_ext
13074 if test -z "$lt_cv_aix_libpath__CXX"; then
13075 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13076 fi
13077
13078 fi
13079
13080 aix_libpath=$lt_cv_aix_libpath__CXX
13081 fi
13082
13083 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13084
13085 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
13086 else
13087 if test ia64 = "$host_cpu"; then
13088 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13089 allow_undefined_flag_CXX="-z nodefs"
13090 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"
13091 else
13092 # Determine the default libpath from the value encoded in an
13093 # empty executable.
13094 if test set = "${lt_cv_aix_libpath+set}"; then
13095 aix_libpath=$lt_cv_aix_libpath
13096 else
13097 if ${lt_cv_aix_libpath__CXX+:} false; then :
13098 $as_echo_n "(cached) " >&6
13099 else
13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h. */
13102
13103 int
13104 main ()
13105 {
13106
13107 ;
13108 return 0;
13109 }
13110 _ACEOF
13111 if ac_fn_cxx_try_link "$LINENO"; then :
13112
13113 lt_aix_libpath_sed='
13114 /Import File Strings/,/^$/ {
13115 /^0/ {
13116 s/^0 *\([^ ]*\) *$/\1/
13117 p
13118 }
13119 }'
13120 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13121 # Check for a 64-bit object if we didn't find anything.
13122 if test -z "$lt_cv_aix_libpath__CXX"; then
13123 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13124 fi
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext \
13127 conftest$ac_exeext conftest.$ac_ext
13128 if test -z "$lt_cv_aix_libpath__CXX"; then
13129 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13130 fi
13131
13132 fi
13133
13134 aix_libpath=$lt_cv_aix_libpath__CXX
13135 fi
13136
13137 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13138 # Warning - without using the other run time loading flags,
13139 # -berok will link without error, but may produce a broken library.
13140 no_undefined_flag_CXX=' $wl-bernotok'
13141 allow_undefined_flag_CXX=' $wl-berok'
13142 if test yes = "$with_gnu_ld"; then
13143 # We only use this code for GNU lds that support --whole-archive.
13144 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13145 else
13146 # Exported symbols can be pulled into shared objects from archives
13147 whole_archive_flag_spec_CXX='$convenience'
13148 fi
13149 archive_cmds_need_lc_CXX=yes
13150 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13151 # -brtl affects multiple linker settings, -berok does not and is overridden later
13152 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13153 if test svr4 != "$with_aix_soname"; then
13154 # This is similar to how AIX traditionally builds its shared
13155 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13156 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'
13157 fi
13158 if test aix != "$with_aix_soname"; then
13159 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'
13160 else
13161 # used by -dlpreopen to get the symbols
13162 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13163 fi
13164 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13165 fi
13166 fi
13167 ;;
13168
13169 beos*)
13170 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13171 allow_undefined_flag_CXX=unsupported
13172 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
13173 # support --undefined. This deserves some investigation. FIXME
13174 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13175 else
13176 ld_shlibs_CXX=no
13177 fi
13178 ;;
13179
13180 chorus*)
13181 case $cc_basename in
13182 *)
13183 # FIXME: insert proper C++ library support
13184 ld_shlibs_CXX=no
13185 ;;
13186 esac
13187 ;;
13188
13189 cygwin* | mingw* | pw32* | cegcc*)
13190 case $GXX,$cc_basename in
13191 ,cl* | no,cl*)
13192 # Native MSVC
13193 # hardcode_libdir_flag_spec is actually meaningless, as there is
13194 # no search path for DLLs.
13195 hardcode_libdir_flag_spec_CXX=' '
13196 allow_undefined_flag_CXX=unsupported
13197 always_export_symbols_CXX=yes
13198 file_list_spec_CXX='@'
13199 # Tell ltmain to make .lib files, not .a files.
13200 libext=lib
13201 # Tell ltmain to make .dll files, not .so files.
13202 shrext_cmds=.dll
13203 # FIXME: Setting linknames here is a bad hack.
13204 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13205 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13206 cp "$export_symbols" "$output_objdir/$soname.def";
13207 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13208 else
13209 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13210 fi~
13211 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13212 linknames='
13213 # The linker will not automatically build a static lib if we build a DLL.
13214 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13215 enable_shared_with_static_runtimes_CXX=yes
13216 # Don't use ranlib
13217 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13218 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13219 lt_tool_outputfile="@TOOL_OUTPUT@"~
13220 case $lt_outputfile in
13221 *.exe|*.EXE) ;;
13222 *)
13223 lt_outputfile=$lt_outputfile.exe
13224 lt_tool_outputfile=$lt_tool_outputfile.exe
13225 ;;
13226 esac~
13227 func_to_tool_file "$lt_outputfile"~
13228 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13229 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13230 $RM "$lt_outputfile.manifest";
13231 fi'
13232 ;;
13233 *)
13234 # g++
13235 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13236 # as there is no search path for DLLs.
13237 hardcode_libdir_flag_spec_CXX='-L$libdir'
13238 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13239 allow_undefined_flag_CXX=unsupported
13240 always_export_symbols_CXX=no
13241 enable_shared_with_static_runtimes_CXX=yes
13242
13243 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13244 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'
13245 # If the export-symbols file already is a .def file, use it as
13246 # is; otherwise, prepend EXPORTS...
13247 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13248 cp $export_symbols $output_objdir/$soname.def;
13249 else
13250 echo EXPORTS > $output_objdir/$soname.def;
13251 cat $export_symbols >> $output_objdir/$soname.def;
13252 fi~
13253 $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'
13254 else
13255 ld_shlibs_CXX=no
13256 fi
13257 ;;
13258 esac
13259 ;;
13260 darwin* | rhapsody*)
13261
13262
13263 archive_cmds_need_lc_CXX=no
13264 hardcode_direct_CXX=no
13265 hardcode_automatic_CXX=yes
13266 hardcode_shlibpath_var_CXX=unsupported
13267 if test yes = "$lt_cv_ld_force_load"; then
13268 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\"`'
13269
13270 else
13271 whole_archive_flag_spec_CXX=''
13272 fi
13273 link_all_deplibs_CXX=yes
13274 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13275 case $cc_basename in
13276 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13277 *) _lt_dar_can_shared=$GCC ;;
13278 esac
13279 if test yes = "$_lt_dar_can_shared"; then
13280 output_verbose_link_cmd=func_echo_all
13281 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"
13282 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13283 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"
13284 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"
13285 if test yes != "$lt_cv_apple_cc_single_mod"; then
13286 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"
13287 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"
13288 fi
13289
13290 else
13291 ld_shlibs_CXX=no
13292 fi
13293
13294 ;;
13295
13296 os2*)
13297 hardcode_libdir_flag_spec_CXX='-L$libdir'
13298 hardcode_minus_L_CXX=yes
13299 allow_undefined_flag_CXX=unsupported
13300 shrext_cmds=.dll
13301 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13302 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13303 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13304 $ECHO EXPORTS >> $output_objdir/$libname.def~
13305 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13306 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13307 emximp -o $lib $output_objdir/$libname.def'
13308 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13309 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13310 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13311 $ECHO EXPORTS >> $output_objdir/$libname.def~
13312 prefix_cmds="$SED"~
13313 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13314 prefix_cmds="$prefix_cmds -e 1d";
13315 fi~
13316 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13317 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13318 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13319 emximp -o $lib $output_objdir/$libname.def'
13320 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13321 enable_shared_with_static_runtimes_CXX=yes
13322 ;;
13323
13324 dgux*)
13325 case $cc_basename in
13326 ec++*)
13327 # FIXME: insert proper C++ library support
13328 ld_shlibs_CXX=no
13329 ;;
13330 ghcx*)
13331 # Green Hills C++ Compiler
13332 # FIXME: insert proper C++ library support
13333 ld_shlibs_CXX=no
13334 ;;
13335 *)
13336 # FIXME: insert proper C++ library support
13337 ld_shlibs_CXX=no
13338 ;;
13339 esac
13340 ;;
13341
13342 freebsd2.*)
13343 # C++ shared libraries reported to be fairly broken before
13344 # switch to ELF
13345 ld_shlibs_CXX=no
13346 ;;
13347
13348 freebsd-elf*)
13349 archive_cmds_need_lc_CXX=no
13350 ;;
13351
13352 freebsd* | dragonfly*)
13353 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13354 # conventions
13355 ld_shlibs_CXX=yes
13356 ;;
13357
13358 haiku*)
13359 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13360 link_all_deplibs_CXX=yes
13361 ;;
13362
13363 hpux9*)
13364 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13365 hardcode_libdir_separator_CXX=:
13366 export_dynamic_flag_spec_CXX='$wl-E'
13367 hardcode_direct_CXX=yes
13368 hardcode_minus_L_CXX=yes # Not in the search PATH,
13369 # but as the default
13370 # location of the library.
13371
13372 case $cc_basename in
13373 CC*)
13374 # FIXME: insert proper C++ library support
13375 ld_shlibs_CXX=no
13376 ;;
13377 aCC*)
13378 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'
13379 # Commands to make compiler produce verbose output that lists
13380 # what "hidden" libraries, object files and flags are used when
13381 # linking a shared library.
13382 #
13383 # There doesn't appear to be a way to prevent this compiler from
13384 # explicitly linking system object files so we need to strip them
13385 # from the output so that they don't get included in the library
13386 # dependencies.
13387 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"'
13388 ;;
13389 *)
13390 if test yes = "$GXX"; then
13391 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'
13392 else
13393 # FIXME: insert proper C++ library support
13394 ld_shlibs_CXX=no
13395 fi
13396 ;;
13397 esac
13398 ;;
13399
13400 hpux10*|hpux11*)
13401 if test no = "$with_gnu_ld"; then
13402 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13403 hardcode_libdir_separator_CXX=:
13404
13405 case $host_cpu in
13406 hppa*64*|ia64*)
13407 ;;
13408 *)
13409 export_dynamic_flag_spec_CXX='$wl-E'
13410 ;;
13411 esac
13412 fi
13413 case $host_cpu in
13414 hppa*64*|ia64*)
13415 hardcode_direct_CXX=no
13416 hardcode_shlibpath_var_CXX=no
13417 ;;
13418 *)
13419 hardcode_direct_CXX=yes
13420 hardcode_direct_absolute_CXX=yes
13421 hardcode_minus_L_CXX=yes # Not in the search PATH,
13422 # but as the default
13423 # location of the library.
13424 ;;
13425 esac
13426
13427 case $cc_basename in
13428 CC*)
13429 # FIXME: insert proper C++ library support
13430 ld_shlibs_CXX=no
13431 ;;
13432 aCC*)
13433 case $host_cpu in
13434 hppa*64*)
13435 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13436 ;;
13437 ia64*)
13438 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13439 ;;
13440 *)
13441 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13442 ;;
13443 esac
13444 # Commands to make compiler produce verbose output that lists
13445 # what "hidden" libraries, object files and flags are used when
13446 # linking a shared library.
13447 #
13448 # There doesn't appear to be a way to prevent this compiler from
13449 # explicitly linking system object files so we need to strip them
13450 # from the output so that they don't get included in the library
13451 # dependencies.
13452 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"'
13453 ;;
13454 *)
13455 if test yes = "$GXX"; then
13456 if test no = "$with_gnu_ld"; then
13457 case $host_cpu in
13458 hppa*64*)
13459 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13460 ;;
13461 ia64*)
13462 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13463 ;;
13464 *)
13465 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'
13466 ;;
13467 esac
13468 fi
13469 else
13470 # FIXME: insert proper C++ library support
13471 ld_shlibs_CXX=no
13472 fi
13473 ;;
13474 esac
13475 ;;
13476
13477 interix[3-9]*)
13478 hardcode_direct_CXX=no
13479 hardcode_shlibpath_var_CXX=no
13480 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13481 export_dynamic_flag_spec_CXX='$wl-E'
13482 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13483 # Instead, shared libraries are loaded at an image base (0x10000000 by
13484 # default) and relocated if they conflict, which is a slow very memory
13485 # consuming and fragmenting process. To avoid this, we pick a random,
13486 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13487 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13488 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'
13489 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'
13490 ;;
13491 irix5* | irix6*)
13492 case $cc_basename in
13493 CC*)
13494 # SGI C++
13495 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'
13496
13497 # Archives containing C++ object files must be created using
13498 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13499 # necessary to make sure instantiated templates are included
13500 # in the archive.
13501 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13502 ;;
13503 *)
13504 if test yes = "$GXX"; then
13505 if test no = "$with_gnu_ld"; then
13506 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'
13507 else
13508 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'
13509 fi
13510 fi
13511 link_all_deplibs_CXX=yes
13512 ;;
13513 esac
13514 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13515 hardcode_libdir_separator_CXX=:
13516 inherit_rpath_CXX=yes
13517 ;;
13518
13519 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13520 case $cc_basename in
13521 KCC*)
13522 # Kuck and Associates, Inc. (KAI) C++ Compiler
13523
13524 # KCC will only create a shared library if the output file
13525 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13526 # to its proper name (with version) after linking.
13527 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'
13528 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'
13529 # Commands to make compiler produce verbose output that lists
13530 # what "hidden" libraries, object files and flags are used when
13531 # linking a shared library.
13532 #
13533 # There doesn't appear to be a way to prevent this compiler from
13534 # explicitly linking system object files so we need to strip them
13535 # from the output so that they don't get included in the library
13536 # dependencies.
13537 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"'
13538
13539 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13540 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13541
13542 # Archives containing C++ object files must be created using
13543 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13544 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13545 ;;
13546 icpc* | ecpc* )
13547 # Intel C++
13548 with_gnu_ld=yes
13549 # version 8.0 and above of icpc choke on multiply defined symbols
13550 # if we add $predep_objects and $postdep_objects, however 7.1 and
13551 # earlier do not add the objects themselves.
13552 case `$CC -V 2>&1` in
13553 *"Version 7."*)
13554 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13555 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'
13556 ;;
13557 *) # Version 8.0 or newer
13558 tmp_idyn=
13559 case $host_cpu in
13560 ia64*) tmp_idyn=' -i_dynamic';;
13561 esac
13562 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13563 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'
13564 ;;
13565 esac
13566 archive_cmds_need_lc_CXX=no
13567 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13568 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13569 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13570 ;;
13571 pgCC* | pgcpp*)
13572 # Portland Group C++ compiler
13573 case `$CC -V` in
13574 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13575 prelink_cmds_CXX='tpldir=Template.dir~
13576 rm -rf $tpldir~
13577 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13578 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13579 old_archive_cmds_CXX='tpldir=Template.dir~
13580 rm -rf $tpldir~
13581 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13582 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13583 $RANLIB $oldlib'
13584 archive_cmds_CXX='tpldir=Template.dir~
13585 rm -rf $tpldir~
13586 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13587 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13588 archive_expsym_cmds_CXX='tpldir=Template.dir~
13589 rm -rf $tpldir~
13590 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13591 $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'
13592 ;;
13593 *) # Version 6 and above use weak symbols
13594 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13595 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'
13596 ;;
13597 esac
13598
13599 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13600 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13601 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'
13602 ;;
13603 cxx*)
13604 # Compaq C++
13605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13606 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'
13607
13608 runpath_var=LD_RUN_PATH
13609 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13610 hardcode_libdir_separator_CXX=:
13611
13612 # Commands to make compiler produce verbose output that lists
13613 # what "hidden" libraries, object files and flags are used when
13614 # linking a shared library.
13615 #
13616 # There doesn't appear to be a way to prevent this compiler from
13617 # explicitly linking system object files so we need to strip them
13618 # from the output so that they don't get included in the library
13619 # dependencies.
13620 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'
13621 ;;
13622 xl* | mpixl* | bgxl*)
13623 # IBM XL 8.0 on PPC, with GNU ld
13624 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13625 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13626 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13627 if test yes = "$supports_anon_versioning"; then
13628 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13629 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13630 echo "local: *; };" >> $output_objdir/$libname.ver~
13631 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13632 fi
13633 ;;
13634 *)
13635 case `$CC -V 2>&1 | sed 5q` in
13636 *Sun\ C*)
13637 # Sun C++ 5.9
13638 no_undefined_flag_CXX=' -zdefs'
13639 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13640 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'
13641 hardcode_libdir_flag_spec_CXX='-R$libdir'
13642 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'
13643 compiler_needs_object_CXX=yes
13644
13645 # Not sure whether something based on
13646 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13647 # would be better.
13648 output_verbose_link_cmd='func_echo_all'
13649
13650 # Archives containing C++ object files must be created using
13651 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13652 # necessary to make sure instantiated templates are included
13653 # in the archive.
13654 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13655 ;;
13656 esac
13657 ;;
13658 esac
13659 ;;
13660
13661 lynxos*)
13662 # FIXME: insert proper C++ library support
13663 ld_shlibs_CXX=no
13664 ;;
13665
13666 m88k*)
13667 # FIXME: insert proper C++ library support
13668 ld_shlibs_CXX=no
13669 ;;
13670
13671 mvs*)
13672 case $cc_basename in
13673 cxx*)
13674 # FIXME: insert proper C++ library support
13675 ld_shlibs_CXX=no
13676 ;;
13677 *)
13678 # FIXME: insert proper C++ library support
13679 ld_shlibs_CXX=no
13680 ;;
13681 esac
13682 ;;
13683
13684 netbsd*)
13685 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13686 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13687 wlarc=
13688 hardcode_libdir_flag_spec_CXX='-R$libdir'
13689 hardcode_direct_CXX=yes
13690 hardcode_shlibpath_var_CXX=no
13691 fi
13692 # Workaround some broken pre-1.5 toolchains
13693 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13694 ;;
13695
13696 *nto* | *qnx*)
13697 ld_shlibs_CXX=yes
13698 ;;
13699
13700 openbsd* | bitrig*)
13701 if test -f /usr/libexec/ld.so; then
13702 hardcode_direct_CXX=yes
13703 hardcode_shlibpath_var_CXX=no
13704 hardcode_direct_absolute_CXX=yes
13705 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13706 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13707 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13708 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13709 export_dynamic_flag_spec_CXX='$wl-E'
13710 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13711 fi
13712 output_verbose_link_cmd=func_echo_all
13713 else
13714 ld_shlibs_CXX=no
13715 fi
13716 ;;
13717
13718 osf3* | osf4* | osf5*)
13719 case $cc_basename in
13720 KCC*)
13721 # Kuck and Associates, Inc. (KAI) C++ Compiler
13722
13723 # KCC will only create a shared library if the output file
13724 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13725 # to its proper name (with version) after linking.
13726 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'
13727
13728 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13729 hardcode_libdir_separator_CXX=:
13730
13731 # Archives containing C++ object files must be created using
13732 # the KAI C++ compiler.
13733 case $host in
13734 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13735 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13736 esac
13737 ;;
13738 RCC*)
13739 # Rational C++ 2.4.1
13740 # FIXME: insert proper C++ library support
13741 ld_shlibs_CXX=no
13742 ;;
13743 cxx*)
13744 case $host in
13745 osf3*)
13746 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13747 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'
13748 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13749 ;;
13750 *)
13751 allow_undefined_flag_CXX=' -expect_unresolved \*'
13752 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'
13753 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13754 echo "-hidden">> $lib.exp~
13755 $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~
13756 $RM $lib.exp'
13757 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13758 ;;
13759 esac
13760
13761 hardcode_libdir_separator_CXX=:
13762
13763 # Commands to make compiler produce verbose output that lists
13764 # what "hidden" libraries, object files and flags are used when
13765 # linking a shared library.
13766 #
13767 # There doesn't appear to be a way to prevent this compiler from
13768 # explicitly linking system object files so we need to strip them
13769 # from the output so that they don't get included in the library
13770 # dependencies.
13771 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"'
13772 ;;
13773 *)
13774 if test yes,no = "$GXX,$with_gnu_ld"; then
13775 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13776 case $host in
13777 osf3*)
13778 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'
13779 ;;
13780 *)
13781 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'
13782 ;;
13783 esac
13784
13785 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13786 hardcode_libdir_separator_CXX=:
13787
13788 # Commands to make compiler produce verbose output that lists
13789 # what "hidden" libraries, object files and flags are used when
13790 # linking a shared library.
13791 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13792
13793 else
13794 # FIXME: insert proper C++ library support
13795 ld_shlibs_CXX=no
13796 fi
13797 ;;
13798 esac
13799 ;;
13800
13801 psos*)
13802 # FIXME: insert proper C++ library support
13803 ld_shlibs_CXX=no
13804 ;;
13805
13806 sunos4*)
13807 case $cc_basename in
13808 CC*)
13809 # Sun C++ 4.x
13810 # FIXME: insert proper C++ library support
13811 ld_shlibs_CXX=no
13812 ;;
13813 lcc*)
13814 # Lucid
13815 # FIXME: insert proper C++ library support
13816 ld_shlibs_CXX=no
13817 ;;
13818 *)
13819 # FIXME: insert proper C++ library support
13820 ld_shlibs_CXX=no
13821 ;;
13822 esac
13823 ;;
13824
13825 solaris*)
13826 case $cc_basename in
13827 CC* | sunCC*)
13828 # Sun C++ 4.2, 5.x and Centerline C++
13829 archive_cmds_need_lc_CXX=yes
13830 no_undefined_flag_CXX=' -zdefs'
13831 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13832 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13833 $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'
13834
13835 hardcode_libdir_flag_spec_CXX='-R$libdir'
13836 hardcode_shlibpath_var_CXX=no
13837 case $host_os in
13838 solaris2.[0-5] | solaris2.[0-5].*) ;;
13839 *)
13840 # The compiler driver will combine and reorder linker options,
13841 # but understands '-z linker_flag'.
13842 # Supported since Solaris 2.6 (maybe 2.5.1?)
13843 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13844 ;;
13845 esac
13846 link_all_deplibs_CXX=yes
13847
13848 output_verbose_link_cmd='func_echo_all'
13849
13850 # Archives containing C++ object files must be created using
13851 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13852 # necessary to make sure instantiated templates are included
13853 # in the archive.
13854 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13855 ;;
13856 gcx*)
13857 # Green Hills C++ Compiler
13858 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13859
13860 # The C++ compiler must be used to create the archive.
13861 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13862 ;;
13863 *)
13864 # GNU C++ compiler with Solaris linker
13865 if test yes,no = "$GXX,$with_gnu_ld"; then
13866 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13867 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13868 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13869 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13870 $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'
13871
13872 # Commands to make compiler produce verbose output that lists
13873 # what "hidden" libraries, object files and flags are used when
13874 # linking a shared library.
13875 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13876 else
13877 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13878 # platform.
13879 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13880 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13881 $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'
13882
13883 # Commands to make compiler produce verbose output that lists
13884 # what "hidden" libraries, object files and flags are used when
13885 # linking a shared library.
13886 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13887 fi
13888
13889 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13890 case $host_os in
13891 solaris2.[0-5] | solaris2.[0-5].*) ;;
13892 *)
13893 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13894 ;;
13895 esac
13896 fi
13897 ;;
13898 esac
13899 ;;
13900
13901 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13902 no_undefined_flag_CXX='$wl-z,text'
13903 archive_cmds_need_lc_CXX=no
13904 hardcode_shlibpath_var_CXX=no
13905 runpath_var='LD_RUN_PATH'
13906
13907 case $cc_basename in
13908 CC*)
13909 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13910 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13911 ;;
13912 *)
13913 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13914 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13915 ;;
13916 esac
13917 ;;
13918
13919 sysv5* | sco3.2v5* | sco5v6*)
13920 # Note: We CANNOT use -z defs as we might desire, because we do not
13921 # link with -lc, and that would cause any symbols used from libc to
13922 # always be unresolved, which means just about no library would
13923 # ever link correctly. If we're not using GNU ld we use -z text
13924 # though, which does catch some bad symbols but isn't as heavy-handed
13925 # as -z defs.
13926 no_undefined_flag_CXX='$wl-z,text'
13927 allow_undefined_flag_CXX='$wl-z,nodefs'
13928 archive_cmds_need_lc_CXX=no
13929 hardcode_shlibpath_var_CXX=no
13930 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13931 hardcode_libdir_separator_CXX=':'
13932 link_all_deplibs_CXX=yes
13933 export_dynamic_flag_spec_CXX='$wl-Bexport'
13934 runpath_var='LD_RUN_PATH'
13935
13936 case $cc_basename in
13937 CC*)
13938 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13939 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13940 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13941 '"$old_archive_cmds_CXX"
13942 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13943 '"$reload_cmds_CXX"
13944 ;;
13945 *)
13946 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13947 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13948 ;;
13949 esac
13950 ;;
13951
13952 tandem*)
13953 case $cc_basename in
13954 NCC*)
13955 # NonStop-UX NCC 3.20
13956 # FIXME: insert proper C++ library support
13957 ld_shlibs_CXX=no
13958 ;;
13959 *)
13960 # FIXME: insert proper C++ library support
13961 ld_shlibs_CXX=no
13962 ;;
13963 esac
13964 ;;
13965
13966 vxworks*)
13967 # FIXME: insert proper C++ library support
13968 ld_shlibs_CXX=no
13969 ;;
13970
13971 *)
13972 # FIXME: insert proper C++ library support
13973 ld_shlibs_CXX=no
13974 ;;
13975 esac
13976
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13978 $as_echo "$ld_shlibs_CXX" >&6; }
13979 test no = "$ld_shlibs_CXX" && can_build_shared=no
13980
13981 GCC_CXX=$GXX
13982 LD_CXX=$LD
13983
13984 ## CAVEAT EMPTOR:
13985 ## There is no encapsulation within the following macros, do not change
13986 ## the running order or otherwise move them around unless you know exactly
13987 ## what you are doing...
13988 # Dependencies to place before and after the object being linked:
13989 predep_objects_CXX=
13990 postdep_objects_CXX=
13991 predeps_CXX=
13992 postdeps_CXX=
13993 compiler_lib_search_path_CXX=
13994
13995 cat > conftest.$ac_ext <<_LT_EOF
13996 class Foo
13997 {
13998 public:
13999 Foo (void) { a = 0; }
14000 private:
14001 int a;
14002 };
14003 _LT_EOF
14004
14005
14006 _lt_libdeps_save_CFLAGS=$CFLAGS
14007 case "$CC $CFLAGS " in #(
14008 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14009 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14010 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14011 esac
14012
14013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14014 (eval $ac_compile) 2>&5
14015 ac_status=$?
14016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14017 test $ac_status = 0; }; then
14018 # Parse the compiler output and extract the necessary
14019 # objects, libraries and library flags.
14020
14021 # Sentinel used to keep track of whether or not we are before
14022 # the conftest object file.
14023 pre_test_object_deps_done=no
14024
14025 for p in `eval "$output_verbose_link_cmd"`; do
14026 case $prev$p in
14027
14028 -L* | -R* | -l*)
14029 # Some compilers place space between "-{L,R}" and the path.
14030 # Remove the space.
14031 if test x-L = "$p" ||
14032 test x-R = "$p"; then
14033 prev=$p
14034 continue
14035 fi
14036
14037 # Expand the sysroot to ease extracting the directories later.
14038 if test -z "$prev"; then
14039 case $p in
14040 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14041 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14042 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14043 esac
14044 fi
14045 case $p in
14046 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14047 esac
14048 if test no = "$pre_test_object_deps_done"; then
14049 case $prev in
14050 -L | -R)
14051 # Internal compiler library paths should come after those
14052 # provided the user. The postdeps already come after the
14053 # user supplied libs so there is no need to process them.
14054 if test -z "$compiler_lib_search_path_CXX"; then
14055 compiler_lib_search_path_CXX=$prev$p
14056 else
14057 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14058 fi
14059 ;;
14060 # The "-l" case would never come before the object being
14061 # linked, so don't bother handling this case.
14062 esac
14063 else
14064 if test -z "$postdeps_CXX"; then
14065 postdeps_CXX=$prev$p
14066 else
14067 postdeps_CXX="${postdeps_CXX} $prev$p"
14068 fi
14069 fi
14070 prev=
14071 ;;
14072
14073 *.lto.$objext) ;; # Ignore GCC LTO objects
14074 *.$objext)
14075 # This assumes that the test object file only shows up
14076 # once in the compiler output.
14077 if test "$p" = "conftest.$objext"; then
14078 pre_test_object_deps_done=yes
14079 continue
14080 fi
14081
14082 if test no = "$pre_test_object_deps_done"; then
14083 if test -z "$predep_objects_CXX"; then
14084 predep_objects_CXX=$p
14085 else
14086 predep_objects_CXX="$predep_objects_CXX $p"
14087 fi
14088 else
14089 if test -z "$postdep_objects_CXX"; then
14090 postdep_objects_CXX=$p
14091 else
14092 postdep_objects_CXX="$postdep_objects_CXX $p"
14093 fi
14094 fi
14095 ;;
14096
14097 *) ;; # Ignore the rest.
14098
14099 esac
14100 done
14101
14102 # Clean up.
14103 rm -f a.out a.exe
14104 else
14105 echo "libtool.m4: error: problem compiling CXX test program"
14106 fi
14107
14108 $RM -f confest.$objext
14109 CFLAGS=$_lt_libdeps_save_CFLAGS
14110
14111 # PORTME: override above test on systems where it is broken
14112 case $host_os in
14113 interix[3-9]*)
14114 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14115 # hack all around it, let's just trust "g++" to DTRT.
14116 predep_objects_CXX=
14117 postdep_objects_CXX=
14118 postdeps_CXX=
14119 ;;
14120 esac
14121
14122
14123 case " $postdeps_CXX " in
14124 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14125 esac
14126 compiler_lib_search_dirs_CXX=
14127 if test -n "${compiler_lib_search_path_CXX}"; then
14128 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14129 fi
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161 lt_prog_compiler_wl_CXX=
14162 lt_prog_compiler_pic_CXX=
14163 lt_prog_compiler_static_CXX=
14164
14165
14166 # C++ specific cases for pic, static, wl, etc.
14167 if test yes = "$GXX"; then
14168 lt_prog_compiler_wl_CXX='-Wl,'
14169 lt_prog_compiler_static_CXX='-static'
14170
14171 case $host_os in
14172 aix*)
14173 # All AIX code is PIC.
14174 if test ia64 = "$host_cpu"; then
14175 # AIX 5 now supports IA64 processor
14176 lt_prog_compiler_static_CXX='-Bstatic'
14177 fi
14178 lt_prog_compiler_pic_CXX='-fPIC'
14179 ;;
14180
14181 amigaos*)
14182 case $host_cpu in
14183 powerpc)
14184 # see comment about AmigaOS4 .so support
14185 lt_prog_compiler_pic_CXX='-fPIC'
14186 ;;
14187 m68k)
14188 # FIXME: we need at least 68020 code to build shared libraries, but
14189 # adding the '-m68020' flag to GCC prevents building anything better,
14190 # like '-m68040'.
14191 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14192 ;;
14193 esac
14194 ;;
14195
14196 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14197 # PIC is the default for these OSes.
14198 ;;
14199 mingw* | cygwin* | os2* | pw32* | cegcc*)
14200 # This hack is so that the source file can tell whether it is being
14201 # built for inclusion in a dll (and should export symbols for example).
14202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14203 # (--disable-auto-import) libraries
14204 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14205 case $host_os in
14206 os2*)
14207 lt_prog_compiler_static_CXX='$wl-static'
14208 ;;
14209 esac
14210 ;;
14211 darwin* | rhapsody*)
14212 # PIC is the default on this platform
14213 # Common symbols not allowed in MH_DYLIB files
14214 lt_prog_compiler_pic_CXX='-fno-common'
14215 ;;
14216 *djgpp*)
14217 # DJGPP does not support shared libraries at all
14218 lt_prog_compiler_pic_CXX=
14219 ;;
14220 haiku*)
14221 # PIC is the default for Haiku.
14222 # The "-static" flag exists, but is broken.
14223 lt_prog_compiler_static_CXX=
14224 ;;
14225 interix[3-9]*)
14226 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14227 # Instead, we relocate shared libraries at runtime.
14228 ;;
14229 sysv4*MP*)
14230 if test -d /usr/nec; then
14231 lt_prog_compiler_pic_CXX=-Kconform_pic
14232 fi
14233 ;;
14234 hpux*)
14235 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14236 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14237 # sets the default TLS model and affects inlining.
14238 case $host_cpu in
14239 hppa*64*)
14240 ;;
14241 *)
14242 lt_prog_compiler_pic_CXX='-fPIC'
14243 ;;
14244 esac
14245 ;;
14246 *qnx* | *nto*)
14247 # QNX uses GNU C++, but need to define -shared option too, otherwise
14248 # it will coredump.
14249 lt_prog_compiler_pic_CXX='-fPIC -shared'
14250 ;;
14251 *)
14252 lt_prog_compiler_pic_CXX='-fPIC'
14253 ;;
14254 esac
14255 else
14256 case $host_os in
14257 aix[4-9]*)
14258 # All AIX code is PIC.
14259 if test ia64 = "$host_cpu"; then
14260 # AIX 5 now supports IA64 processor
14261 lt_prog_compiler_static_CXX='-Bstatic'
14262 else
14263 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14264 fi
14265 ;;
14266 chorus*)
14267 case $cc_basename in
14268 cxch68*)
14269 # Green Hills C++ Compiler
14270 # _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"
14271 ;;
14272 esac
14273 ;;
14274 mingw* | cygwin* | os2* | pw32* | cegcc*)
14275 # This hack is so that the source file can tell whether it is being
14276 # built for inclusion in a dll (and should export symbols for example).
14277 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14278 ;;
14279 dgux*)
14280 case $cc_basename in
14281 ec++*)
14282 lt_prog_compiler_pic_CXX='-KPIC'
14283 ;;
14284 ghcx*)
14285 # Green Hills C++ Compiler
14286 lt_prog_compiler_pic_CXX='-pic'
14287 ;;
14288 *)
14289 ;;
14290 esac
14291 ;;
14292 freebsd* | dragonfly*)
14293 # FreeBSD uses GNU C++
14294 ;;
14295 hpux9* | hpux10* | hpux11*)
14296 case $cc_basename in
14297 CC*)
14298 lt_prog_compiler_wl_CXX='-Wl,'
14299 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14300 if test ia64 != "$host_cpu"; then
14301 lt_prog_compiler_pic_CXX='+Z'
14302 fi
14303 ;;
14304 aCC*)
14305 lt_prog_compiler_wl_CXX='-Wl,'
14306 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14307 case $host_cpu in
14308 hppa*64*|ia64*)
14309 # +Z the default
14310 ;;
14311 *)
14312 lt_prog_compiler_pic_CXX='+Z'
14313 ;;
14314 esac
14315 ;;
14316 *)
14317 ;;
14318 esac
14319 ;;
14320 interix*)
14321 # This is c89, which is MS Visual C++ (no shared libs)
14322 # Anyone wants to do a port?
14323 ;;
14324 irix5* | irix6* | nonstopux*)
14325 case $cc_basename in
14326 CC*)
14327 lt_prog_compiler_wl_CXX='-Wl,'
14328 lt_prog_compiler_static_CXX='-non_shared'
14329 # CC pic flag -KPIC is the default.
14330 ;;
14331 *)
14332 ;;
14333 esac
14334 ;;
14335 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14336 case $cc_basename in
14337 KCC*)
14338 # KAI C++ Compiler
14339 lt_prog_compiler_wl_CXX='--backend -Wl,'
14340 lt_prog_compiler_pic_CXX='-fPIC'
14341 ;;
14342 ecpc* )
14343 # old Intel C++ for x86_64, which still supported -KPIC.
14344 lt_prog_compiler_wl_CXX='-Wl,'
14345 lt_prog_compiler_pic_CXX='-KPIC'
14346 lt_prog_compiler_static_CXX='-static'
14347 ;;
14348 icpc* )
14349 # Intel C++, used to be incompatible with GCC.
14350 # ICC 10 doesn't accept -KPIC any more.
14351 lt_prog_compiler_wl_CXX='-Wl,'
14352 lt_prog_compiler_pic_CXX='-fPIC'
14353 lt_prog_compiler_static_CXX='-static'
14354 ;;
14355 pgCC* | pgcpp*)
14356 # Portland Group C++ compiler
14357 lt_prog_compiler_wl_CXX='-Wl,'
14358 lt_prog_compiler_pic_CXX='-fpic'
14359 lt_prog_compiler_static_CXX='-Bstatic'
14360 ;;
14361 cxx*)
14362 # Compaq C++
14363 # Make sure the PIC flag is empty. It appears that all Alpha
14364 # Linux and Compaq Tru64 Unix objects are PIC.
14365 lt_prog_compiler_pic_CXX=
14366 lt_prog_compiler_static_CXX='-non_shared'
14367 ;;
14368 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14369 # IBM XL 8.0, 9.0 on PPC and BlueGene
14370 lt_prog_compiler_wl_CXX='-Wl,'
14371 lt_prog_compiler_pic_CXX='-qpic'
14372 lt_prog_compiler_static_CXX='-qstaticlink'
14373 ;;
14374 *)
14375 case `$CC -V 2>&1 | sed 5q` in
14376 *Sun\ C*)
14377 # Sun C++ 5.9
14378 lt_prog_compiler_pic_CXX='-KPIC'
14379 lt_prog_compiler_static_CXX='-Bstatic'
14380 lt_prog_compiler_wl_CXX='-Qoption ld '
14381 ;;
14382 esac
14383 ;;
14384 esac
14385 ;;
14386 lynxos*)
14387 ;;
14388 m88k*)
14389 ;;
14390 mvs*)
14391 case $cc_basename in
14392 cxx*)
14393 lt_prog_compiler_pic_CXX='-W c,exportall'
14394 ;;
14395 *)
14396 ;;
14397 esac
14398 ;;
14399 netbsd* | netbsdelf*-gnu)
14400 ;;
14401 *qnx* | *nto*)
14402 # QNX uses GNU C++, but need to define -shared option too, otherwise
14403 # it will coredump.
14404 lt_prog_compiler_pic_CXX='-fPIC -shared'
14405 ;;
14406 osf3* | osf4* | osf5*)
14407 case $cc_basename in
14408 KCC*)
14409 lt_prog_compiler_wl_CXX='--backend -Wl,'
14410 ;;
14411 RCC*)
14412 # Rational C++ 2.4.1
14413 lt_prog_compiler_pic_CXX='-pic'
14414 ;;
14415 cxx*)
14416 # Digital/Compaq C++
14417 lt_prog_compiler_wl_CXX='-Wl,'
14418 # Make sure the PIC flag is empty. It appears that all Alpha
14419 # Linux and Compaq Tru64 Unix objects are PIC.
14420 lt_prog_compiler_pic_CXX=
14421 lt_prog_compiler_static_CXX='-non_shared'
14422 ;;
14423 *)
14424 ;;
14425 esac
14426 ;;
14427 psos*)
14428 ;;
14429 solaris*)
14430 case $cc_basename in
14431 CC* | sunCC*)
14432 # Sun C++ 4.2, 5.x and Centerline C++
14433 lt_prog_compiler_pic_CXX='-KPIC'
14434 lt_prog_compiler_static_CXX='-Bstatic'
14435 lt_prog_compiler_wl_CXX='-Qoption ld '
14436 ;;
14437 gcx*)
14438 # Green Hills C++ Compiler
14439 lt_prog_compiler_pic_CXX='-PIC'
14440 ;;
14441 *)
14442 ;;
14443 esac
14444 ;;
14445 sunos4*)
14446 case $cc_basename in
14447 CC*)
14448 # Sun C++ 4.x
14449 lt_prog_compiler_pic_CXX='-pic'
14450 lt_prog_compiler_static_CXX='-Bstatic'
14451 ;;
14452 lcc*)
14453 # Lucid
14454 lt_prog_compiler_pic_CXX='-pic'
14455 ;;
14456 *)
14457 ;;
14458 esac
14459 ;;
14460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14461 case $cc_basename in
14462 CC*)
14463 lt_prog_compiler_wl_CXX='-Wl,'
14464 lt_prog_compiler_pic_CXX='-KPIC'
14465 lt_prog_compiler_static_CXX='-Bstatic'
14466 ;;
14467 esac
14468 ;;
14469 tandem*)
14470 case $cc_basename in
14471 NCC*)
14472 # NonStop-UX NCC 3.20
14473 lt_prog_compiler_pic_CXX='-KPIC'
14474 ;;
14475 *)
14476 ;;
14477 esac
14478 ;;
14479 vxworks*)
14480 ;;
14481 *)
14482 lt_prog_compiler_can_build_shared_CXX=no
14483 ;;
14484 esac
14485 fi
14486
14487 case $host_os in
14488 # For platforms that do not support PIC, -DPIC is meaningless:
14489 *djgpp*)
14490 lt_prog_compiler_pic_CXX=
14491 ;;
14492 *)
14493 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14494 ;;
14495 esac
14496
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14498 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14499 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14500 $as_echo_n "(cached) " >&6
14501 else
14502 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14503 fi
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14505 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14506 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14507
14508 #
14509 # Check to make sure the PIC flag actually works.
14510 #
14511 if test -n "$lt_prog_compiler_pic_CXX"; then
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14513 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14514 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 lt_cv_prog_compiler_pic_works_CXX=no
14518 ac_outfile=conftest.$ac_objext
14519 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14520 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14521 # Insert the option either (1) after the last *FLAGS variable, or
14522 # (2) before a word containing "conftest.", or (3) at the end.
14523 # Note that $ac_compile itself does not contain backslashes and begins
14524 # with a dollar sign (not a hyphen), so the echo should work correctly.
14525 # The option is referenced via a variable to avoid confusing sed.
14526 lt_compile=`echo "$ac_compile" | $SED \
14527 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14528 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14529 -e 's:$: $lt_compiler_flag:'`
14530 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14531 (eval "$lt_compile" 2>conftest.err)
14532 ac_status=$?
14533 cat conftest.err >&5
14534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14535 if (exit $ac_status) && test -s "$ac_outfile"; then
14536 # The compiler can only warn and ignore the option if not recognized
14537 # So say no if there are warnings other than the usual output.
14538 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14540 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14541 lt_cv_prog_compiler_pic_works_CXX=yes
14542 fi
14543 fi
14544 $RM conftest*
14545
14546 fi
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14548 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14549
14550 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14551 case $lt_prog_compiler_pic_CXX in
14552 "" | " "*) ;;
14553 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14554 esac
14555 else
14556 lt_prog_compiler_pic_CXX=
14557 lt_prog_compiler_can_build_shared_CXX=no
14558 fi
14559
14560 fi
14561
14562
14563
14564
14565
14566 #
14567 # Check to make sure the static flag actually works.
14568 #
14569 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14571 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14572 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14573 $as_echo_n "(cached) " >&6
14574 else
14575 lt_cv_prog_compiler_static_works_CXX=no
14576 save_LDFLAGS=$LDFLAGS
14577 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14578 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14579 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14580 # The linker can only warn and ignore the option if not recognized
14581 # So say no if there are warnings
14582 if test -s conftest.err; then
14583 # Append any errors to the config.log.
14584 cat conftest.err 1>&5
14585 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14587 if diff conftest.exp conftest.er2 >/dev/null; then
14588 lt_cv_prog_compiler_static_works_CXX=yes
14589 fi
14590 else
14591 lt_cv_prog_compiler_static_works_CXX=yes
14592 fi
14593 fi
14594 $RM -r conftest*
14595 LDFLAGS=$save_LDFLAGS
14596
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14599 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14600
14601 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14602 :
14603 else
14604 lt_prog_compiler_static_CXX=
14605 fi
14606
14607
14608
14609
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14611 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14612 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14615 lt_cv_prog_compiler_c_o_CXX=no
14616 $RM -r conftest 2>/dev/null
14617 mkdir conftest
14618 cd conftest
14619 mkdir out
14620 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14621
14622 lt_compiler_flag="-o out/conftest2.$ac_objext"
14623 # Insert the option either (1) after the last *FLAGS variable, or
14624 # (2) before a word containing "conftest.", or (3) at the end.
14625 # Note that $ac_compile itself does not contain backslashes and begins
14626 # with a dollar sign (not a hyphen), so the echo should work correctly.
14627 lt_compile=`echo "$ac_compile" | $SED \
14628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14630 -e 's:$: $lt_compiler_flag:'`
14631 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14632 (eval "$lt_compile" 2>out/conftest.err)
14633 ac_status=$?
14634 cat out/conftest.err >&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14637 then
14638 # The compiler can only warn and ignore the option if not recognized
14639 # So say no if there are warnings
14640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14643 lt_cv_prog_compiler_c_o_CXX=yes
14644 fi
14645 fi
14646 chmod u+w . 2>&5
14647 $RM conftest*
14648 # SGI C++ compiler will create directory out/ii_files/ for
14649 # template instantiation
14650 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14651 $RM out/* && rmdir out
14652 cd ..
14653 $RM -r conftest
14654 $RM conftest*
14655
14656 fi
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14658 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14659
14660
14661
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14664 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14665 $as_echo_n "(cached) " >&6
14666 else
14667 lt_cv_prog_compiler_c_o_CXX=no
14668 $RM -r conftest 2>/dev/null
14669 mkdir conftest
14670 cd conftest
14671 mkdir out
14672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14673
14674 lt_compiler_flag="-o out/conftest2.$ac_objext"
14675 # Insert the option either (1) after the last *FLAGS variable, or
14676 # (2) before a word containing "conftest.", or (3) at the end.
14677 # Note that $ac_compile itself does not contain backslashes and begins
14678 # with a dollar sign (not a hyphen), so the echo should work correctly.
14679 lt_compile=`echo "$ac_compile" | $SED \
14680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14682 -e 's:$: $lt_compiler_flag:'`
14683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14684 (eval "$lt_compile" 2>out/conftest.err)
14685 ac_status=$?
14686 cat out/conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14689 then
14690 # The compiler can only warn and ignore the option if not recognized
14691 # So say no if there are warnings
14692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14695 lt_cv_prog_compiler_c_o_CXX=yes
14696 fi
14697 fi
14698 chmod u+w . 2>&5
14699 $RM conftest*
14700 # SGI C++ compiler will create directory out/ii_files/ for
14701 # template instantiation
14702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14703 $RM out/* && rmdir out
14704 cd ..
14705 $RM -r conftest
14706 $RM conftest*
14707
14708 fi
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14710 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14711
14712
14713
14714
14715 hard_links=nottested
14716 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14717 # do not overwrite the value of need_locks provided by the user
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14719 $as_echo_n "checking if we can lock with hard links... " >&6; }
14720 hard_links=yes
14721 $RM conftest*
14722 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14723 touch conftest.a
14724 ln conftest.a conftest.b 2>&5 || hard_links=no
14725 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14727 $as_echo "$hard_links" >&6; }
14728 if test no = "$hard_links"; then
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14730 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14731 need_locks=warn
14732 fi
14733 else
14734 need_locks=no
14735 fi
14736
14737
14738
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14740 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14741
14742 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14743 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14744 case $host_os in
14745 aix[4-9]*)
14746 # If we're using GNU nm, then we don't want the "-C" option.
14747 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14748 # Without the "-l" option, or with the "-B" option, AIX nm treats
14749 # weak defined symbols like other global defined symbols, whereas
14750 # GNU nm marks them as "W".
14751 # While the 'weak' keyword is ignored in the Export File, we need
14752 # it in the Import File for the 'aix-soname' feature, so we have
14753 # to replace the "-B" option with "-P" for AIX nm.
14754 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14755 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'
14756 else
14757 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'
14758 fi
14759 ;;
14760 pw32*)
14761 export_symbols_cmds_CXX=$ltdll_cmds
14762 ;;
14763 cygwin* | mingw* | cegcc*)
14764 case $cc_basename in
14765 cl*)
14766 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14767 ;;
14768 *)
14769 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'
14770 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14771 ;;
14772 esac
14773 ;;
14774 linux* | k*bsd*-gnu | gnu*)
14775 link_all_deplibs_CXX=no
14776 ;;
14777 *)
14778 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14779 ;;
14780 esac
14781
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14783 $as_echo "$ld_shlibs_CXX" >&6; }
14784 test no = "$ld_shlibs_CXX" && can_build_shared=no
14785
14786 with_gnu_ld_CXX=$with_gnu_ld
14787
14788
14789
14790
14791
14792
14793 #
14794 # Do we need to explicitly link libc?
14795 #
14796 case "x$archive_cmds_need_lc_CXX" in
14797 x|xyes)
14798 # Assume -lc should be added
14799 archive_cmds_need_lc_CXX=yes
14800
14801 if test yes,yes = "$GCC,$enable_shared"; then
14802 case $archive_cmds_CXX in
14803 *'~'*)
14804 # FIXME: we may have to deal with multi-command sequences.
14805 ;;
14806 '$CC '*)
14807 # Test whether the compiler implicitly links with -lc since on some
14808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14809 # to ld, don't add -lc before -lgcc.
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14811 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14812 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 $RM conftest*
14816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14817
14818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14819 (eval $ac_compile) 2>&5
14820 ac_status=$?
14821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822 test $ac_status = 0; } 2>conftest.err; then
14823 soname=conftest
14824 lib=conftest
14825 libobjs=conftest.$ac_objext
14826 deplibs=
14827 wl=$lt_prog_compiler_wl_CXX
14828 pic_flag=$lt_prog_compiler_pic_CXX
14829 compiler_flags=-v
14830 linker_flags=-v
14831 verstring=
14832 output_objdir=.
14833 libname=conftest
14834 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14835 allow_undefined_flag_CXX=
14836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14837 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14838 ac_status=$?
14839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14840 test $ac_status = 0; }
14841 then
14842 lt_cv_archive_cmds_need_lc_CXX=no
14843 else
14844 lt_cv_archive_cmds_need_lc_CXX=yes
14845 fi
14846 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14847 else
14848 cat conftest.err 1>&5
14849 fi
14850 $RM conftest*
14851
14852 fi
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14854 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14855 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14856 ;;
14857 esac
14858 fi
14859 ;;
14860 esac
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14924 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14925
14926 library_names_spec=
14927 libname_spec='lib$name'
14928 soname_spec=
14929 shrext_cmds=.so
14930 postinstall_cmds=
14931 postuninstall_cmds=
14932 finish_cmds=
14933 finish_eval=
14934 shlibpath_var=
14935 shlibpath_overrides_runpath=unknown
14936 version_type=none
14937 dynamic_linker="$host_os ld.so"
14938 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14939 need_lib_prefix=unknown
14940 hardcode_into_libs=no
14941
14942 # when you set need_version to no, make sure it does not cause -set_version
14943 # flags to be left without arguments
14944 need_version=unknown
14945
14946
14947
14948 case $host_os in
14949 aix3*)
14950 version_type=linux # correct to gnu/linux during the next big refactor
14951 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14952 shlibpath_var=LIBPATH
14953
14954 # AIX 3 has no versioning support, so we append a major version to the name.
14955 soname_spec='$libname$release$shared_ext$major'
14956 ;;
14957
14958 aix[4-9]*)
14959 version_type=linux # correct to gnu/linux during the next big refactor
14960 need_lib_prefix=no
14961 need_version=no
14962 hardcode_into_libs=yes
14963 if test ia64 = "$host_cpu"; then
14964 # AIX 5 supports IA64
14965 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 else
14968 # With GCC up to 2.95.x, collect2 would create an import file
14969 # for dependence libraries. The import file would start with
14970 # the line '#! .'. This would cause the generated library to
14971 # depend on '.', always an invalid library. This was fixed in
14972 # development snapshots of GCC prior to 3.0.
14973 case $host_os in
14974 aix4 | aix4.[01] | aix4.[01].*)
14975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14976 echo ' yes '
14977 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14978 :
14979 else
14980 can_build_shared=no
14981 fi
14982 ;;
14983 esac
14984 # Using Import Files as archive members, it is possible to support
14985 # filename-based versioning of shared library archives on AIX. While
14986 # this would work for both with and without runtime linking, it will
14987 # prevent static linking of such archives. So we do filename-based
14988 # shared library versioning with .so extension only, which is used
14989 # when both runtime linking and shared linking is enabled.
14990 # Unfortunately, runtime linking may impact performance, so we do
14991 # not want this to be the default eventually. Also, we use the
14992 # versioned .so libs for executables only if there is the -brtl
14993 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14994 # To allow for filename-based versioning support, we need to create
14995 # libNAME.so.V as an archive file, containing:
14996 # *) an Import File, referring to the versioned filename of the
14997 # archive as well as the shared archive member, telling the
14998 # bitwidth (32 or 64) of that shared object, and providing the
14999 # list of exported symbols of that shared object, eventually
15000 # decorated with the 'weak' keyword
15001 # *) the shared object with the F_LOADONLY flag set, to really avoid
15002 # it being seen by the linker.
15003 # At run time we better use the real file rather than another symlink,
15004 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15005
15006 case $with_aix_soname,$aix_use_runtimelinking in
15007 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15008 # soname into executable. Probably we can add versioning support to
15009 # collect2, so additional links can be useful in future.
15010 aix,yes) # traditional libtool
15011 dynamic_linker='AIX unversionable lib.so'
15012 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15013 # instead of lib<name>.a to let people know that these are not
15014 # typical AIX shared libraries.
15015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15016 ;;
15017 aix,no) # traditional AIX only
15018 dynamic_linker='AIX lib.a(lib.so.V)'
15019 # We preserve .a as extension for shared libraries through AIX4.2
15020 # and later when we are not doing run time linking.
15021 library_names_spec='$libname$release.a $libname.a'
15022 soname_spec='$libname$release$shared_ext$major'
15023 ;;
15024 svr4,*) # full svr4 only
15025 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15026 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15027 # We do not specify a path in Import Files, so LIBPATH fires.
15028 shlibpath_overrides_runpath=yes
15029 ;;
15030 *,yes) # both, prefer svr4
15031 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15032 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15033 # unpreferred sharedlib libNAME.a needs extra handling
15034 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"'
15035 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"'
15036 # We do not specify a path in Import Files, so LIBPATH fires.
15037 shlibpath_overrides_runpath=yes
15038 ;;
15039 *,no) # both, prefer aix
15040 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15041 library_names_spec='$libname$release.a $libname.a'
15042 soname_spec='$libname$release$shared_ext$major'
15043 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15044 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)'
15045 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"'
15046 ;;
15047 esac
15048 shlibpath_var=LIBPATH
15049 fi
15050 ;;
15051
15052 amigaos*)
15053 case $host_cpu in
15054 powerpc)
15055 # Since July 2007 AmigaOS4 officially supports .so libraries.
15056 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15058 ;;
15059 m68k)
15060 library_names_spec='$libname.ixlibrary $libname.a'
15061 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15062 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'
15063 ;;
15064 esac
15065 ;;
15066
15067 beos*)
15068 library_names_spec='$libname$shared_ext'
15069 dynamic_linker="$host_os ld.so"
15070 shlibpath_var=LIBRARY_PATH
15071 ;;
15072
15073 bsdi[45]*)
15074 version_type=linux # correct to gnu/linux during the next big refactor
15075 need_version=no
15076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15077 soname_spec='$libname$release$shared_ext$major'
15078 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15079 shlibpath_var=LD_LIBRARY_PATH
15080 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15081 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15082 # the default ld.so.conf also contains /usr/contrib/lib and
15083 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15084 # libtool to hard-code these into programs
15085 ;;
15086
15087 cygwin* | mingw* | pw32* | cegcc*)
15088 version_type=windows
15089 shrext_cmds=.dll
15090 need_version=no
15091 need_lib_prefix=no
15092
15093 case $GCC,$cc_basename in
15094 yes,*)
15095 # gcc
15096 library_names_spec='$libname.dll.a'
15097 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15098 postinstall_cmds='base_file=`basename \$file`~
15099 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15100 dldir=$destdir/`dirname \$dlpath`~
15101 test -d \$dldir || mkdir -p \$dldir~
15102 $install_prog $dir/$dlname \$dldir/$dlname~
15103 chmod a+x \$dldir/$dlname~
15104 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15105 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15106 fi'
15107 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15108 dlpath=$dir/\$dldll~
15109 $RM \$dlpath'
15110 shlibpath_overrides_runpath=yes
15111
15112 case $host_os in
15113 cygwin*)
15114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15115 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15116
15117 ;;
15118 mingw* | cegcc*)
15119 # MinGW DLLs use traditional 'lib' prefix
15120 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15121 ;;
15122 pw32*)
15123 # pw32 DLLs use 'pw' prefix rather than 'lib'
15124 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15125 ;;
15126 esac
15127 dynamic_linker='Win32 ld.exe'
15128 ;;
15129
15130 *,cl*)
15131 # Native MSVC
15132 libname_spec='$name'
15133 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15134 library_names_spec='$libname.dll.lib'
15135
15136 case $build_os in
15137 mingw*)
15138 sys_lib_search_path_spec=
15139 lt_save_ifs=$IFS
15140 IFS=';'
15141 for lt_path in $LIB
15142 do
15143 IFS=$lt_save_ifs
15144 # Let DOS variable expansion print the short 8.3 style file name.
15145 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15146 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15147 done
15148 IFS=$lt_save_ifs
15149 # Convert to MSYS style.
15150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15151 ;;
15152 cygwin*)
15153 # Convert to unix form, then to dos form, then back to unix form
15154 # but this time dos style (no spaces!) so that the unix form looks
15155 # like /cygdrive/c/PROGRA~1:/cygdr...
15156 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15157 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15158 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15159 ;;
15160 *)
15161 sys_lib_search_path_spec=$LIB
15162 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15163 # It is most probably a Windows format PATH.
15164 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15165 else
15166 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15167 fi
15168 # FIXME: find the short name or the path components, as spaces are
15169 # common. (e.g. "Program Files" -> "PROGRA~1")
15170 ;;
15171 esac
15172
15173 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15174 postinstall_cmds='base_file=`basename \$file`~
15175 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15176 dldir=$destdir/`dirname \$dlpath`~
15177 test -d \$dldir || mkdir -p \$dldir~
15178 $install_prog $dir/$dlname \$dldir/$dlname'
15179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15180 dlpath=$dir/\$dldll~
15181 $RM \$dlpath'
15182 shlibpath_overrides_runpath=yes
15183 dynamic_linker='Win32 link.exe'
15184 ;;
15185
15186 *)
15187 # Assume MSVC wrapper
15188 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15189 dynamic_linker='Win32 ld.exe'
15190 ;;
15191 esac
15192 # FIXME: first we should search . and the directory the executable is in
15193 shlibpath_var=PATH
15194 ;;
15195
15196 darwin* | rhapsody*)
15197 dynamic_linker="$host_os dyld"
15198 version_type=darwin
15199 need_lib_prefix=no
15200 need_version=no
15201 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15202 soname_spec='$libname$release$major$shared_ext'
15203 shlibpath_overrides_runpath=yes
15204 shlibpath_var=DYLD_LIBRARY_PATH
15205 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15206
15207 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15208 ;;
15209
15210 dgux*)
15211 version_type=linux # correct to gnu/linux during the next big refactor
15212 need_lib_prefix=no
15213 need_version=no
15214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15215 soname_spec='$libname$release$shared_ext$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 ;;
15218
15219 freebsd* | dragonfly*)
15220 # DragonFly does not have aout. When/if they implement a new
15221 # versioning mechanism, adjust this.
15222 if test -x /usr/bin/objformat; then
15223 objformat=`/usr/bin/objformat`
15224 else
15225 case $host_os in
15226 freebsd[23].*) objformat=aout ;;
15227 *) objformat=elf ;;
15228 esac
15229 fi
15230 version_type=freebsd-$objformat
15231 case $version_type in
15232 freebsd-elf*)
15233 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15234 soname_spec='$libname$release$shared_ext$major'
15235 need_version=no
15236 need_lib_prefix=no
15237 ;;
15238 freebsd-*)
15239 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15240 need_version=yes
15241 ;;
15242 esac
15243 shlibpath_var=LD_LIBRARY_PATH
15244 case $host_os in
15245 freebsd2.*)
15246 shlibpath_overrides_runpath=yes
15247 ;;
15248 freebsd3.[01]* | freebsdelf3.[01]*)
15249 shlibpath_overrides_runpath=yes
15250 hardcode_into_libs=yes
15251 ;;
15252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15254 shlibpath_overrides_runpath=no
15255 hardcode_into_libs=yes
15256 ;;
15257 *) # from 4.6 on, and DragonFly
15258 shlibpath_overrides_runpath=yes
15259 hardcode_into_libs=yes
15260 ;;
15261 esac
15262 ;;
15263
15264 haiku*)
15265 version_type=linux # correct to gnu/linux during the next big refactor
15266 need_lib_prefix=no
15267 need_version=no
15268 dynamic_linker="$host_os runtime_loader"
15269 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15270 soname_spec='$libname$release$shared_ext$major'
15271 shlibpath_var=LIBRARY_PATH
15272 shlibpath_overrides_runpath=no
15273 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15274 hardcode_into_libs=yes
15275 ;;
15276
15277 hpux9* | hpux10* | hpux11*)
15278 # Give a soname corresponding to the major version so that dld.sl refuses to
15279 # link against other versions.
15280 version_type=sunos
15281 need_lib_prefix=no
15282 need_version=no
15283 case $host_cpu in
15284 ia64*)
15285 shrext_cmds='.so'
15286 hardcode_into_libs=yes
15287 dynamic_linker="$host_os dld.so"
15288 shlibpath_var=LD_LIBRARY_PATH
15289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15291 soname_spec='$libname$release$shared_ext$major'
15292 if test 32 = "$HPUX_IA64_MODE"; then
15293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15294 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15295 else
15296 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15297 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15298 fi
15299 ;;
15300 hppa*64*)
15301 shrext_cmds='.sl'
15302 hardcode_into_libs=yes
15303 dynamic_linker="$host_os dld.sl"
15304 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15305 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15307 soname_spec='$libname$release$shared_ext$major'
15308 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15310 ;;
15311 *)
15312 shrext_cmds='.sl'
15313 dynamic_linker="$host_os dld.sl"
15314 shlibpath_var=SHLIB_PATH
15315 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15317 soname_spec='$libname$release$shared_ext$major'
15318 ;;
15319 esac
15320 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15321 postinstall_cmds='chmod 555 $lib'
15322 # or fails outright, so override atomically:
15323 install_override_mode=555
15324 ;;
15325
15326 interix[3-9]*)
15327 version_type=linux # correct to gnu/linux during the next big refactor
15328 need_lib_prefix=no
15329 need_version=no
15330 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15331 soname_spec='$libname$release$shared_ext$major'
15332 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 shlibpath_overrides_runpath=no
15335 hardcode_into_libs=yes
15336 ;;
15337
15338 irix5* | irix6* | nonstopux*)
15339 case $host_os in
15340 nonstopux*) version_type=nonstopux ;;
15341 *)
15342 if test yes = "$lt_cv_prog_gnu_ld"; then
15343 version_type=linux # correct to gnu/linux during the next big refactor
15344 else
15345 version_type=irix
15346 fi ;;
15347 esac
15348 need_lib_prefix=no
15349 need_version=no
15350 soname_spec='$libname$release$shared_ext$major'
15351 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15352 case $host_os in
15353 irix5* | nonstopux*)
15354 libsuff= shlibsuff=
15355 ;;
15356 *)
15357 case $LD in # libtool.m4 will add one of these switches to LD
15358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15359 libsuff= shlibsuff= libmagic=32-bit;;
15360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15361 libsuff=32 shlibsuff=N32 libmagic=N32;;
15362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15364 *) libsuff= shlibsuff= libmagic=never-match;;
15365 esac
15366 ;;
15367 esac
15368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15369 shlibpath_overrides_runpath=no
15370 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15371 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15372 hardcode_into_libs=yes
15373 ;;
15374
15375 # No shared lib support for Linux oldld, aout, or coff.
15376 linux*oldld* | linux*aout* | linux*coff*)
15377 dynamic_linker=no
15378 ;;
15379
15380 linux*android*)
15381 version_type=none # Android doesn't support versioned libraries.
15382 need_lib_prefix=no
15383 need_version=no
15384 library_names_spec='$libname$release$shared_ext'
15385 soname_spec='$libname$release$shared_ext'
15386 finish_cmds=
15387 shlibpath_var=LD_LIBRARY_PATH
15388 shlibpath_overrides_runpath=yes
15389
15390 # This implies no fast_install, which is unacceptable.
15391 # Some rework will be needed to allow for fast_install
15392 # before this can be enabled.
15393 hardcode_into_libs=yes
15394
15395 dynamic_linker='Android linker'
15396 # Don't embed -rpath directories since the linker doesn't support them.
15397 hardcode_libdir_flag_spec_CXX='-L$libdir'
15398 ;;
15399
15400 # This must be glibc/ELF.
15401 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15402 version_type=linux # correct to gnu/linux during the next big refactor
15403 need_lib_prefix=no
15404 need_version=no
15405 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15406 soname_spec='$libname$release$shared_ext$major'
15407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=no
15410
15411 # Some binutils ld are patched to set DT_RUNPATH
15412 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15413 $as_echo_n "(cached) " >&6
15414 else
15415 lt_cv_shlibpath_overrides_runpath=no
15416 save_LDFLAGS=$LDFLAGS
15417 save_libdir=$libdir
15418 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15419 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15421 /* end confdefs.h. */
15422
15423 int
15424 main ()
15425 {
15426
15427 ;
15428 return 0;
15429 }
15430 _ACEOF
15431 if ac_fn_cxx_try_link "$LINENO"; then :
15432 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15433 lt_cv_shlibpath_overrides_runpath=yes
15434 fi
15435 fi
15436 rm -f core conftest.err conftest.$ac_objext \
15437 conftest$ac_exeext conftest.$ac_ext
15438 LDFLAGS=$save_LDFLAGS
15439 libdir=$save_libdir
15440
15441 fi
15442
15443 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15444
15445 # This implies no fast_install, which is unacceptable.
15446 # Some rework will be needed to allow for fast_install
15447 # before this can be enabled.
15448 hardcode_into_libs=yes
15449
15450 # Ideally, we could use ldconfig to report *all* directores which are
15451 # searched for libraries, however this is still not possible. Aside from not
15452 # being certain /sbin/ldconfig is available, command
15453 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15454 # even though it is searched at run-time. Try to do the best guess by
15455 # appending ld.so.conf contents (and includes) to the search path.
15456 if test -f /etc/ld.so.conf; then
15457 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' ' '`
15458 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15459 fi
15460
15461 # We used to test for /lib/ld.so.1 and disable shared libraries on
15462 # powerpc, because MkLinux only supported shared libraries with the
15463 # GNU dynamic linker. Since this was broken with cross compilers,
15464 # most powerpc-linux boxes support dynamic linking these days and
15465 # people can always --disable-shared, the test was removed, and we
15466 # assume the GNU/Linux dynamic linker is in use.
15467 dynamic_linker='GNU/Linux ld.so'
15468 ;;
15469
15470 netbsdelf*-gnu)
15471 version_type=linux
15472 need_lib_prefix=no
15473 need_version=no
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 shlibpath_var=LD_LIBRARY_PATH
15477 shlibpath_overrides_runpath=no
15478 hardcode_into_libs=yes
15479 dynamic_linker='NetBSD ld.elf_so'
15480 ;;
15481
15482 netbsd*)
15483 version_type=sunos
15484 need_lib_prefix=no
15485 need_version=no
15486 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15487 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15489 dynamic_linker='NetBSD (a.out) ld.so'
15490 else
15491 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15492 soname_spec='$libname$release$shared_ext$major'
15493 dynamic_linker='NetBSD ld.elf_so'
15494 fi
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=yes
15497 hardcode_into_libs=yes
15498 ;;
15499
15500 newsos6)
15501 version_type=linux # correct to gnu/linux during the next big refactor
15502 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15503 shlibpath_var=LD_LIBRARY_PATH
15504 shlibpath_overrides_runpath=yes
15505 ;;
15506
15507 *nto* | *qnx*)
15508 version_type=qnx
15509 need_lib_prefix=no
15510 need_version=no
15511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15512 soname_spec='$libname$release$shared_ext$major'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=no
15515 hardcode_into_libs=yes
15516 dynamic_linker='ldqnx.so'
15517 ;;
15518
15519 openbsd* | bitrig*)
15520 version_type=sunos
15521 sys_lib_dlsearch_path_spec=/usr/lib
15522 need_lib_prefix=no
15523 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15524 need_version=no
15525 else
15526 need_version=yes
15527 fi
15528 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15529 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=yes
15532 ;;
15533
15534 os2*)
15535 libname_spec='$name'
15536 version_type=windows
15537 shrext_cmds=.dll
15538 need_version=no
15539 need_lib_prefix=no
15540 # OS/2 can only load a DLL with a base name of 8 characters or less.
15541 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15542 v=$($ECHO $release$versuffix | tr -d .-);
15543 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15544 $ECHO $n$v`$shared_ext'
15545 library_names_spec='${libname}_dll.$libext'
15546 dynamic_linker='OS/2 ld.exe'
15547 shlibpath_var=BEGINLIBPATH
15548 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15550 postinstall_cmds='base_file=`basename \$file`~
15551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15552 dldir=$destdir/`dirname \$dlpath`~
15553 test -d \$dldir || mkdir -p \$dldir~
15554 $install_prog $dir/$dlname \$dldir/$dlname~
15555 chmod a+x \$dldir/$dlname~
15556 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15557 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15558 fi'
15559 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15560 dlpath=$dir/\$dldll~
15561 $RM \$dlpath'
15562 ;;
15563
15564 osf3* | osf4* | osf5*)
15565 version_type=osf
15566 need_lib_prefix=no
15567 need_version=no
15568 soname_spec='$libname$release$shared_ext$major'
15569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15570 shlibpath_var=LD_LIBRARY_PATH
15571 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15573 ;;
15574
15575 rdos*)
15576 dynamic_linker=no
15577 ;;
15578
15579 solaris*)
15580 version_type=linux # correct to gnu/linux during the next big refactor
15581 need_lib_prefix=no
15582 need_version=no
15583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15584 soname_spec='$libname$release$shared_ext$major'
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes
15587 hardcode_into_libs=yes
15588 # ldd complains unless libraries are executable
15589 postinstall_cmds='chmod +x $lib'
15590 ;;
15591
15592 sunos4*)
15593 version_type=sunos
15594 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15595 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15596 shlibpath_var=LD_LIBRARY_PATH
15597 shlibpath_overrides_runpath=yes
15598 if test yes = "$with_gnu_ld"; then
15599 need_lib_prefix=no
15600 fi
15601 need_version=yes
15602 ;;
15603
15604 sysv4 | sysv4.3*)
15605 version_type=linux # correct to gnu/linux during the next big refactor
15606 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15607 soname_spec='$libname$release$shared_ext$major'
15608 shlibpath_var=LD_LIBRARY_PATH
15609 case $host_vendor in
15610 sni)
15611 shlibpath_overrides_runpath=no
15612 need_lib_prefix=no
15613 runpath_var=LD_RUN_PATH
15614 ;;
15615 siemens)
15616 need_lib_prefix=no
15617 ;;
15618 motorola)
15619 need_lib_prefix=no
15620 need_version=no
15621 shlibpath_overrides_runpath=no
15622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15623 ;;
15624 esac
15625 ;;
15626
15627 sysv4*MP*)
15628 if test -d /usr/nec; then
15629 version_type=linux # correct to gnu/linux during the next big refactor
15630 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15631 soname_spec='$libname$shared_ext.$major'
15632 shlibpath_var=LD_LIBRARY_PATH
15633 fi
15634 ;;
15635
15636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15637 version_type=sco
15638 need_lib_prefix=no
15639 need_version=no
15640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15641 soname_spec='$libname$release$shared_ext$major'
15642 shlibpath_var=LD_LIBRARY_PATH
15643 shlibpath_overrides_runpath=yes
15644 hardcode_into_libs=yes
15645 if test yes = "$with_gnu_ld"; then
15646 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15647 else
15648 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15649 case $host_os in
15650 sco3.2v5*)
15651 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15652 ;;
15653 esac
15654 fi
15655 sys_lib_dlsearch_path_spec='/usr/lib'
15656 ;;
15657
15658 tpf*)
15659 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15660 version_type=linux # correct to gnu/linux during the next big refactor
15661 need_lib_prefix=no
15662 need_version=no
15663 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15664 shlibpath_var=LD_LIBRARY_PATH
15665 shlibpath_overrides_runpath=no
15666 hardcode_into_libs=yes
15667 ;;
15668
15669 uts4*)
15670 version_type=linux # correct to gnu/linux during the next big refactor
15671 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15672 soname_spec='$libname$release$shared_ext$major'
15673 shlibpath_var=LD_LIBRARY_PATH
15674 ;;
15675
15676 *)
15677 dynamic_linker=no
15678 ;;
15679 esac
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15681 $as_echo "$dynamic_linker" >&6; }
15682 test no = "$dynamic_linker" && can_build_shared=no
15683
15684 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15685 if test yes = "$GCC"; then
15686 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15687 fi
15688
15689 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15690 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15691 fi
15692
15693 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15694 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15695 fi
15696
15697 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15698 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15699
15700 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15701 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15702
15703 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15704 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15746 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15747 hardcode_action_CXX=
15748 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15749 test -n "$runpath_var_CXX" ||
15750 test yes = "$hardcode_automatic_CXX"; then
15751
15752 # We can hardcode non-existent directories.
15753 if test no != "$hardcode_direct_CXX" &&
15754 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15755 # have to relink, otherwise we might link with an installed library
15756 # when we should be linking with a yet-to-be-installed one
15757 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15758 test no != "$hardcode_minus_L_CXX"; then
15759 # Linking always hardcodes the temporary library directory.
15760 hardcode_action_CXX=relink
15761 else
15762 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15763 hardcode_action_CXX=immediate
15764 fi
15765 else
15766 # We cannot hardcode anything, or else we can only hardcode existing
15767 # directories.
15768 hardcode_action_CXX=unsupported
15769 fi
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15771 $as_echo "$hardcode_action_CXX" >&6; }
15772
15773 if test relink = "$hardcode_action_CXX" ||
15774 test yes = "$inherit_rpath_CXX"; then
15775 # Fast installation is not supported
15776 enable_fast_install=no
15777 elif test yes = "$shlibpath_overrides_runpath" ||
15778 test no = "$enable_shared"; then
15779 # Fast installation is not necessary
15780 enable_fast_install=needless
15781 fi
15782
15783
15784
15785
15786
15787
15788
15789 fi # test -n "$compiler"
15790
15791 CC=$lt_save_CC
15792 CFLAGS=$lt_save_CFLAGS
15793 LDCXX=$LD
15794 LD=$lt_save_LD
15795 GCC=$lt_save_GCC
15796 with_gnu_ld=$lt_save_with_gnu_ld
15797 lt_cv_path_LDCXX=$lt_cv_path_LD
15798 lt_cv_path_LD=$lt_save_path_LD
15799 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15800 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15801 fi # test yes != "$_lt_caught_CXX_error"
15802
15803 ac_ext=c
15804 ac_cpp='$CPP $CPPFLAGS'
15805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823 ac_config_commands="$ac_config_commands libtool"
15824
15825
15826
15827
15828 # Only expand once:
15829
15830
15831 # Check whether --enable-debug was given.
15832 if test "${enable_debug+set}" = set; then :
15833 enableval=$enable_debug;
15834 CXXFLAGS="-g -O0 -Wall"
15835
15836 $as_echo "#define WITH_DEBUG /**/" >>confdefs.h
15837
15838
15839 fi
15840
15841
15842
15843 # Check whether --with-libldap was given.
15844 if test "${with_libldap+set}" = set; then :
15845 withval=$with_libldap;
15846 LIBS="-L$with_libldap $LIBS "
15847
15848 else
15849
15850 LIBS="-L/usr/local/lib $LIBS "
15851
15852
15853 fi
15854
15855
15856
15857 # Check whether --with-ldap-includes was given.
15858 if test "${with_ldap_includes+set}" = set; then :
15859 withval=$with_ldap_includes;
15860 CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
15861
15862 else
15863
15864 CPPFLAGS="-I/usr/local/include $CPPFLAGS "
15865
15866
15867 fi
15868
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lresolv" >&5
15870 $as_echo_n "checking for main in -lresolv... " >&6; }
15871 if ${ac_cv_lib_resolv_main+:} false; then :
15872 $as_echo_n "(cached) " >&6
15873 else
15874 ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-lresolv $LIBS"
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15878
15879
15880 int
15881 main ()
15882 {
15883 return main ();
15884 ;
15885 return 0;
15886 }
15887 _ACEOF
15888 if ac_fn_c_try_link "$LINENO"; then :
15889 ac_cv_lib_resolv_main=yes
15890 else
15891 ac_cv_lib_resolv_main=no
15892 fi
15893 rm -f core conftest.err conftest.$ac_objext \
15894 conftest$ac_exeext conftest.$ac_ext
15895 LIBS=$ac_check_lib_save_LIBS
15896 fi
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_main" >&5
15898 $as_echo "$ac_cv_lib_resolv_main" >&6; }
15899 if test "x$ac_cv_lib_resolv_main" = xyes; then :
15900 cat >>confdefs.h <<_ACEOF
15901 #define HAVE_LIBRESOLV 1
15902 _ACEOF
15903
15904 LIBS="-lresolv $LIBS"
15905
15906 fi
15907
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_strdup in -llber" >&5
15909 $as_echo_n "checking for ber_strdup in -llber... " >&6; }
15910 if ${ac_cv_lib_lber_ber_strdup+:} false; then :
15911 $as_echo_n "(cached) " >&6
15912 else
15913 ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-llber $LIBS"
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15917
15918 /* Override any GCC internal prototype to avoid an error.
15919 Use char because int might match the return type of a GCC
15920 builtin and then its argument prototype would still apply. */
15921 #ifdef __cplusplus
15922 extern "C"
15923 #endif
15924 char ber_strdup ();
15925 int
15926 main ()
15927 {
15928 return ber_strdup ();
15929 ;
15930 return 0;
15931 }
15932 _ACEOF
15933 if ac_fn_c_try_link "$LINENO"; then :
15934 ac_cv_lib_lber_ber_strdup=yes
15935 else
15936 ac_cv_lib_lber_ber_strdup=no
15937 fi
15938 rm -f core conftest.err conftest.$ac_objext \
15939 conftest$ac_exeext conftest.$ac_ext
15940 LIBS=$ac_check_lib_save_LIBS
15941 fi
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_strdup" >&5
15943 $as_echo "$ac_cv_lib_lber_ber_strdup" >&6; }
15944 if test "x$ac_cv_lib_lber_ber_strdup" = xyes; then :
15945
15946 :
15947
15948 else
15949
15950 echo " didn't find ber_strdup in liblber !";
15951 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
15952 echo " or try the --with-libldap option.";
15953 exit
15954
15955 fi
15956
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_add_ext in -lldap" >&5
15958 $as_echo_n "checking for ldap_add_ext in -lldap... " >&6; }
15959 if ${ac_cv_lib_ldap_ldap_add_ext+:} false; then :
15960 $as_echo_n "(cached) " >&6
15961 else
15962 ac_check_lib_save_LIBS=$LIBS
15963 LIBS="-lldap
15964 -llber
15965 $LIBS"
15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967 /* end confdefs.h. */
15968
15969 /* Override any GCC internal prototype to avoid an error.
15970 Use char because int might match the return type of a GCC
15971 builtin and then its argument prototype would still apply. */
15972 #ifdef __cplusplus
15973 extern "C"
15974 #endif
15975 char ldap_add_ext ();
15976 int
15977 main ()
15978 {
15979 return ldap_add_ext ();
15980 ;
15981 return 0;
15982 }
15983 _ACEOF
15984 if ac_fn_c_try_link "$LINENO"; then :
15985 ac_cv_lib_ldap_ldap_add_ext=yes
15986 else
15987 ac_cv_lib_ldap_ldap_add_ext=no
15988 fi
15989 rm -f core conftest.err conftest.$ac_objext \
15990 conftest$ac_exeext conftest.$ac_ext
15991 LIBS=$ac_check_lib_save_LIBS
15992 fi
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
15994 $as_echo "$ac_cv_lib_ldap_ldap_add_ext" >&6; }
15995 if test "x$ac_cv_lib_ldap_ldap_add_ext" = xyes; then :
15996
15997 :
15998
15999 else
16000
16001 echo " didn't find ldap_add_ext in libldap !";
16002 echo " Check for the right version (>= 2.0) of the OpenLDAP libraries";
16003 echo " or try the --with-libldap option.";
16004 exit
16005
16006 fi
16007
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16009 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16010 if ${ac_cv_header_time+:} false; then :
16011 $as_echo_n "(cached) " >&6
16012 else
16013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h. */
16015 #include <sys/types.h>
16016 #include <sys/time.h>
16017 #include <time.h>
16018
16019 int
16020 main ()
16021 {
16022 if ((struct tm *) 0)
16023 return 0;
16024 ;
16025 return 0;
16026 }
16027 _ACEOF
16028 if ac_fn_c_try_compile "$LINENO"; then :
16029 ac_cv_header_time=yes
16030 else
16031 ac_cv_header_time=no
16032 fi
16033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 fi
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16036 $as_echo "$ac_cv_header_time" >&6; }
16037 if test $ac_cv_header_time = yes; then
16038
16039 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16040
16041 fi
16042
16043 for ac_header in termios.h ldap.h
16044 do :
16045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16046 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16048 cat >>confdefs.h <<_ACEOF
16049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16050 _ACEOF
16051
16052 fi
16053
16054 done
16055
16056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16057 /* end confdefs.h. */
16058 #include <ldap.h>
16059
16060 _ACEOF
16061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16062 $EGREP "ldap_add_ext" >/dev/null 2>&1; then :
16063
16064 :
16065
16066 else
16067
16068 echo " didn't find ldap_add_ext in ldap.h!";
16069 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
16070 echo " or try --with-ldap-includes option.";
16071 exit
16072
16073 fi
16074 rm -f conftest*
16075
16076 ac_fn_c_check_header_mongrel "$LINENO" "lber.h" "ac_cv_header_lber_h" "$ac_includes_default"
16077 if test "x$ac_cv_header_lber_h" = xyes; then :
16078
16079 fi
16080
16081
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16084 #include <lber.h>
16085
16086 _ACEOF
16087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16088 $EGREP "ber_strdup" >/dev/null 2>&1; then :
16089
16090 :
16091
16092 else
16093
16094 echo " didn't find ber_strdup in lber.h!";
16095 echo " Check for the right version (>= 2.0) of the OpenLDAP includes";
16096 echo " or try --with-ldap-includes option.";
16097 exit
16098
16099 fi
16100 rm -f conftest*
16101
16102
16103
16104
16105 ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
16106
16107 cat >confcache <<\_ACEOF
16108 # This file is a shell script that caches the results of configure
16109 # tests run on this system so they can be shared between configure
16110 # scripts and configure runs, see configure's option --config-cache.
16111 # It is not useful on other systems. If it contains results you don't
16112 # want to keep, you may remove or edit it.
16113 #
16114 # config.status only pays attention to the cache file if you give it
16115 # the --recheck option to rerun configure.
16116 #
16117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16119 # following values.
16120
16121 _ACEOF
16122
16123 # The following way of writing the cache mishandles newlines in values,
16124 # but we know of no workaround that is simple, portable, and efficient.
16125 # So, we kill variables containing newlines.
16126 # Ultrix sh set writes to stderr and can't be redirected directly,
16127 # and sets the high bit in the cache file unless we assign to the vars.
16128 (
16129 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16130 eval ac_val=\$$ac_var
16131 case $ac_val in #(
16132 *${as_nl}*)
16133 case $ac_var in #(
16134 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16135 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16136 esac
16137 case $ac_var in #(
16138 _ | IFS | as_nl) ;; #(
16139 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16140 *) { eval $ac_var=; unset $ac_var;} ;;
16141 esac ;;
16142 esac
16143 done
16144
16145 (set) 2>&1 |
16146 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16147 *${as_nl}ac_space=\ *)
16148 # `set' does not quote correctly, so add quotes: double-quote
16149 # substitution turns \\\\ into \\, and sed turns \\ into \.
16150 sed -n \
16151 "s/'/'\\\\''/g;
16152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16153 ;; #(
16154 *)
16155 # `set' quotes correctly as required by POSIX, so do not add quotes.
16156 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16157 ;;
16158 esac |
16159 sort
16160 ) |
16161 sed '
16162 /^ac_cv_env_/b end
16163 t clear
16164 :clear
16165 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16166 t end
16167 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16168 :end' >>confcache
16169 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16170 if test -w "$cache_file"; then
16171 if test "x$cache_file" != "x/dev/null"; then
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16173 $as_echo "$as_me: updating cache $cache_file" >&6;}
16174 if test ! -f "$cache_file" || test -h "$cache_file"; then
16175 cat confcache >"$cache_file"
16176 else
16177 case $cache_file in #(
16178 */* | ?:*)
16179 mv -f confcache "$cache_file"$$ &&
16180 mv -f "$cache_file"$$ "$cache_file" ;; #(
16181 *)
16182 mv -f confcache "$cache_file" ;;
16183 esac
16184 fi
16185 fi
16186 else
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16188 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16189 fi
16190 fi
16191 rm -f confcache
16192
16193 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16194 # Let make expand exec_prefix.
16195 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16196
16197 DEFS=-DHAVE_CONFIG_H
16198
16199 ac_libobjs=
16200 ac_ltlibobjs=
16201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16202 # 1. Remove the extension, and $U if already installed.
16203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16204 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16206 # will be set to the directory where LIBOBJS objects are built.
16207 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16208 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16209 done
16210 LIBOBJS=$ac_libobjs
16211
16212 LTLIBOBJS=$ac_ltlibobjs
16213
16214
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16216 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16217 if test -n "$am_sleep_pid"; then
16218 # Hide warnings about reused PIDs.
16219 wait $am_sleep_pid 2>/dev/null
16220 fi
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16222 $as_echo "done" >&6; }
16223 if test -n "$EXEEXT"; then
16224 am__EXEEXT_TRUE=
16225 am__EXEEXT_FALSE='#'
16226 else
16227 am__EXEEXT_TRUE='#'
16228 am__EXEEXT_FALSE=
16229 fi
16230
16231 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16232 as_fn_error $? "conditional \"AMDEP\" was never defined.
16233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16234 fi
16235 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16236 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16238 fi
16239 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16240 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16241 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16242 fi
16243
16244 : "${CONFIG_STATUS=./config.status}"
16245 ac_write_fail=0
16246 ac_clean_files_save=$ac_clean_files
16247 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16249 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16250 as_write_fail=0
16251 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16252 #! $SHELL
16253 # Generated by $as_me.
16254 # Run this file to recreate the current configuration.
16255 # Compiler output produced by configure, useful for debugging
16256 # configure, is in config.log if it exists.
16257
16258 debug=false
16259 ac_cs_recheck=false
16260 ac_cs_silent=false
16261
16262 SHELL=\${CONFIG_SHELL-$SHELL}
16263 export SHELL
16264 _ASEOF
16265 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16266 ## -------------------- ##
16267 ## M4sh Initialization. ##
16268 ## -------------------- ##
16269
16270 # Be more Bourne compatible
16271 DUALCASE=1; export DUALCASE # for MKS sh
16272 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16273 emulate sh
16274 NULLCMD=:
16275 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16276 # is contrary to our usage. Disable this feature.
16277 alias -g '${1+"$@"}'='"$@"'
16278 setopt NO_GLOB_SUBST
16279 else
16280 case `(set -o) 2>/dev/null` in #(
16281 *posix*) :
16282 set -o posix ;; #(
16283 *) :
16284 ;;
16285 esac
16286 fi
16287
16288
16289 as_nl='
16290 '
16291 export as_nl
16292 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16293 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16296 # Prefer a ksh shell builtin over an external printf program on Solaris,
16297 # but without wasting forks for bash or zsh.
16298 if test -z "$BASH_VERSION$ZSH_VERSION" \
16299 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16300 as_echo='print -r --'
16301 as_echo_n='print -rn --'
16302 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16303 as_echo='printf %s\n'
16304 as_echo_n='printf %s'
16305 else
16306 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16307 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16308 as_echo_n='/usr/ucb/echo -n'
16309 else
16310 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16311 as_echo_n_body='eval
16312 arg=$1;
16313 case $arg in #(
16314 *"$as_nl"*)
16315 expr "X$arg" : "X\\(.*\\)$as_nl";
16316 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16317 esac;
16318 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16319 '
16320 export as_echo_n_body
16321 as_echo_n='sh -c $as_echo_n_body as_echo'
16322 fi
16323 export as_echo_body
16324 as_echo='sh -c $as_echo_body as_echo'
16325 fi
16326
16327 # The user is always right.
16328 if test "${PATH_SEPARATOR+set}" != set; then
16329 PATH_SEPARATOR=:
16330 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16331 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16332 PATH_SEPARATOR=';'
16333 }
16334 fi
16335
16336
16337 # IFS
16338 # We need space, tab and new line, in precisely that order. Quoting is
16339 # there to prevent editors from complaining about space-tab.
16340 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16341 # splitting by setting IFS to empty value.)
16342 IFS=" "" $as_nl"
16343
16344 # Find who we are. Look in the path if we contain no directory separator.
16345 as_myself=
16346 case $0 in #((
16347 *[\\/]* ) as_myself=$0 ;;
16348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16349 for as_dir in $PATH
16350 do
16351 IFS=$as_save_IFS
16352 test -z "$as_dir" && as_dir=.
16353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16354 done
16355 IFS=$as_save_IFS
16356
16357 ;;
16358 esac
16359 # We did not find ourselves, most probably we were run as `sh COMMAND'
16360 # in which case we are not to be found in the path.
16361 if test "x$as_myself" = x; then
16362 as_myself=$0
16363 fi
16364 if test ! -f "$as_myself"; then
16365 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16366 exit 1
16367 fi
16368
16369 # Unset variables that we do not need and which cause bugs (e.g. in
16370 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16371 # suppresses any "Segmentation fault" message there. '((' could
16372 # trigger a bug in pdksh 5.2.14.
16373 for as_var in BASH_ENV ENV MAIL MAILPATH
16374 do eval test x\${$as_var+set} = xset \
16375 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16376 done
16377 PS1='$ '
16378 PS2='> '
16379 PS4='+ '
16380
16381 # NLS nuisances.
16382 LC_ALL=C
16383 export LC_ALL
16384 LANGUAGE=C
16385 export LANGUAGE
16386
16387 # CDPATH.
16388 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16389
16390
16391 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16392 # ----------------------------------------
16393 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16394 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16395 # script with STATUS, using 1 if that was 0.
16396 as_fn_error ()
16397 {
16398 as_status=$1; test $as_status -eq 0 && as_status=1
16399 if test "$4"; then
16400 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16401 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16402 fi
16403 $as_echo "$as_me: error: $2" >&2
16404 as_fn_exit $as_status
16405 } # as_fn_error
16406
16407
16408 # as_fn_set_status STATUS
16409 # -----------------------
16410 # Set $? to STATUS, without forking.
16411 as_fn_set_status ()
16412 {
16413 return $1
16414 } # as_fn_set_status
16415
16416 # as_fn_exit STATUS
16417 # -----------------
16418 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16419 as_fn_exit ()
16420 {
16421 set +e
16422 as_fn_set_status $1
16423 exit $1
16424 } # as_fn_exit
16425
16426 # as_fn_unset VAR
16427 # ---------------
16428 # Portably unset VAR.
16429 as_fn_unset ()
16430 {
16431 { eval $1=; unset $1;}
16432 }
16433 as_unset=as_fn_unset
16434 # as_fn_append VAR VALUE
16435 # ----------------------
16436 # Append the text in VALUE to the end of the definition contained in VAR. Take
16437 # advantage of any shell optimizations that allow amortized linear growth over
16438 # repeated appends, instead of the typical quadratic growth present in naive
16439 # implementations.
16440 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16441 eval 'as_fn_append ()
16442 {
16443 eval $1+=\$2
16444 }'
16445 else
16446 as_fn_append ()
16447 {
16448 eval $1=\$$1\$2
16449 }
16450 fi # as_fn_append
16451
16452 # as_fn_arith ARG...
16453 # ------------------
16454 # Perform arithmetic evaluation on the ARGs, and store the result in the
16455 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16456 # must be portable across $(()) and expr.
16457 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16458 eval 'as_fn_arith ()
16459 {
16460 as_val=$(( $* ))
16461 }'
16462 else
16463 as_fn_arith ()
16464 {
16465 as_val=`expr "$@" || test $? -eq 1`
16466 }
16467 fi # as_fn_arith
16468
16469
16470 if expr a : '\(a\)' >/dev/null 2>&1 &&
16471 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16472 as_expr=expr
16473 else
16474 as_expr=false
16475 fi
16476
16477 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16478 as_basename=basename
16479 else
16480 as_basename=false
16481 fi
16482
16483 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16484 as_dirname=dirname
16485 else
16486 as_dirname=false
16487 fi
16488
16489 as_me=`$as_basename -- "$0" ||
16490 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16491 X"$0" : 'X\(//\)$' \| \
16492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16493 $as_echo X/"$0" |
16494 sed '/^.*\/\([^/][^/]*\)\/*$/{
16495 s//\1/
16496 q
16497 }
16498 /^X\/\(\/\/\)$/{
16499 s//\1/
16500 q
16501 }
16502 /^X\/\(\/\).*/{
16503 s//\1/
16504 q
16505 }
16506 s/.*/./; q'`
16507
16508 # Avoid depending upon Character Ranges.
16509 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16510 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16511 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16512 as_cr_digits='0123456789'
16513 as_cr_alnum=$as_cr_Letters$as_cr_digits
16514
16515 ECHO_C= ECHO_N= ECHO_T=
16516 case `echo -n x` in #(((((
16517 -n*)
16518 case `echo 'xy\c'` in
16519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16520 xy) ECHO_C='\c';;
16521 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16522 ECHO_T=' ';;
16523 esac;;
16524 *)
16525 ECHO_N='-n';;
16526 esac
16527
16528 rm -f conf$$ conf$$.exe conf$$.file
16529 if test -d conf$$.dir; then
16530 rm -f conf$$.dir/conf$$.file
16531 else
16532 rm -f conf$$.dir
16533 mkdir conf$$.dir 2>/dev/null
16534 fi
16535 if (echo >conf$$.file) 2>/dev/null; then
16536 if ln -s conf$$.file conf$$ 2>/dev/null; then
16537 as_ln_s='ln -s'
16538 # ... but there are two gotchas:
16539 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16540 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16541 # In both cases, we have to default to `cp -pR'.
16542 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16543 as_ln_s='cp -pR'
16544 elif ln conf$$.file conf$$ 2>/dev/null; then
16545 as_ln_s=ln
16546 else
16547 as_ln_s='cp -pR'
16548 fi
16549 else
16550 as_ln_s='cp -pR'
16551 fi
16552 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16553 rmdir conf$$.dir 2>/dev/null
16554
16555
16556 # as_fn_mkdir_p
16557 # -------------
16558 # Create "$as_dir" as a directory, including parents if necessary.
16559 as_fn_mkdir_p ()
16560 {
16561
16562 case $as_dir in #(
16563 -*) as_dir=./$as_dir;;
16564 esac
16565 test -d "$as_dir" || eval $as_mkdir_p || {
16566 as_dirs=
16567 while :; do
16568 case $as_dir in #(
16569 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16570 *) as_qdir=$as_dir;;
16571 esac
16572 as_dirs="'$as_qdir' $as_dirs"
16573 as_dir=`$as_dirname -- "$as_dir" ||
16574 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16575 X"$as_dir" : 'X\(//\)[^/]' \| \
16576 X"$as_dir" : 'X\(//\)$' \| \
16577 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16578 $as_echo X"$as_dir" |
16579 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16580 s//\1/
16581 q
16582 }
16583 /^X\(\/\/\)[^/].*/{
16584 s//\1/
16585 q
16586 }
16587 /^X\(\/\/\)$/{
16588 s//\1/
16589 q
16590 }
16591 /^X\(\/\).*/{
16592 s//\1/
16593 q
16594 }
16595 s/.*/./; q'`
16596 test -d "$as_dir" && break
16597 done
16598 test -z "$as_dirs" || eval "mkdir $as_dirs"
16599 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16600
16601
16602 } # as_fn_mkdir_p
16603 if mkdir -p . 2>/dev/null; then
16604 as_mkdir_p='mkdir -p "$as_dir"'
16605 else
16606 test -d ./-p && rmdir ./-p
16607 as_mkdir_p=false
16608 fi
16609
16610
16611 # as_fn_executable_p FILE
16612 # -----------------------
16613 # Test if FILE is an executable regular file.
16614 as_fn_executable_p ()
16615 {
16616 test -f "$1" && test -x "$1"
16617 } # as_fn_executable_p
16618 as_test_x='test -x'
16619 as_executable_p=as_fn_executable_p
16620
16621 # Sed expression to map a string onto a valid CPP name.
16622 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16623
16624 # Sed expression to map a string onto a valid variable name.
16625 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16626
16627
16628 exec 6>&1
16629 ## ----------------------------------- ##
16630 ## Main body of $CONFIG_STATUS script. ##
16631 ## ----------------------------------- ##
16632 _ASEOF
16633 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16634
16635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16636 # Save the log message, to keep $0 and so on meaningful, and to
16637 # report actual input values of CONFIG_FILES etc. instead of their
16638 # values after options handling.
16639 ac_log="
16640 This file was extended by ldapcpplib $as_me , which was
16641 generated by GNU Autoconf 2.69. Invocation command line was
16642
16643 CONFIG_FILES = $CONFIG_FILES
16644 CONFIG_HEADERS = $CONFIG_HEADERS
16645 CONFIG_LINKS = $CONFIG_LINKS
16646 CONFIG_COMMANDS = $CONFIG_COMMANDS
16647 $ $0 $@
16648
16649 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16650 "
16651
16652 _ACEOF
16653
16654 case $ac_config_files in *"
16655 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16656 esac
16657
16658 case $ac_config_headers in *"
16659 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16660 esac
16661
16662
16663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16664 # Files that config.status was made for.
16665 config_files="$ac_config_files"
16666 config_headers="$ac_config_headers"
16667 config_commands="$ac_config_commands"
16668
16669 _ACEOF
16670
16671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16672 ac_cs_usage="\
16673 \`$as_me' instantiates files and other configuration actions
16674 from templates according to the current configuration. Unless the files
16675 and actions are specified as TAGs, all are instantiated by default.
16676
16677 Usage: $0 [OPTION]... [TAG]...
16678
16679 -h, --help print this help, then exit
16680 -V, --version print version number and configuration settings, then exit
16681 --config print configuration, then exit
16682 -q, --quiet, --silent
16683 do not print progress messages
16684 -d, --debug don't remove temporary files
16685 --recheck update $as_me by reconfiguring in the same conditions
16686 --file=FILE[:TEMPLATE]
16687 instantiate the configuration file FILE
16688 --header=FILE[:TEMPLATE]
16689 instantiate the configuration header FILE
16690
16691 Configuration files:
16692 $config_files
16693
16694 Configuration headers:
16695 $config_headers
16696
16697 Configuration commands:
16698 $config_commands
16699
16700 Report bugs to <http://www.openldap.org/its/ >."
16701
16702 _ACEOF
16703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16704 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16705 ac_cs_version="\\
16706 ldapcpplib config.status
16707 configured by $0, generated by GNU Autoconf 2.69,
16708 with options \\"\$ac_cs_config\\"
16709
16710 Copyright (C) 2012 Free Software Foundation, Inc.
16711 This config.status script is free software; the Free Software Foundation
16712 gives unlimited permission to copy, distribute and modify it."
16713
16714 ac_pwd='$ac_pwd'
16715 srcdir='$srcdir'
16716 INSTALL='$INSTALL'
16717 MKDIR_P='$MKDIR_P'
16718 AWK='$AWK'
16719 test -n "\$AWK" || AWK=awk
16720 _ACEOF
16721
16722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16723 # The default lists apply if the user does not specify any file.
16724 ac_need_defaults=:
16725 while test $# != 0
16726 do
16727 case $1 in
16728 --*=?*)
16729 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16730 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16731 ac_shift=:
16732 ;;
16733 --*=)
16734 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16735 ac_optarg=
16736 ac_shift=:
16737 ;;
16738 *)
16739 ac_option=$1
16740 ac_optarg=$2
16741 ac_shift=shift
16742 ;;
16743 esac
16744
16745 case $ac_option in
16746 # Handling of the options.
16747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16748 ac_cs_recheck=: ;;
16749 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16750 $as_echo "$ac_cs_version"; exit ;;
16751 --config | --confi | --conf | --con | --co | --c )
16752 $as_echo "$ac_cs_config"; exit ;;
16753 --debug | --debu | --deb | --de | --d | -d )
16754 debug=: ;;
16755 --file | --fil | --fi | --f )
16756 $ac_shift
16757 case $ac_optarg in
16758 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16759 '') as_fn_error $? "missing file argument" ;;
16760 esac
16761 as_fn_append CONFIG_FILES " '$ac_optarg'"
16762 ac_need_defaults=false;;
16763 --header | --heade | --head | --hea )
16764 $ac_shift
16765 case $ac_optarg in
16766 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16767 esac
16768 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16769 ac_need_defaults=false;;
16770 --he | --h)
16771 # Conflict between --help and --header
16772 as_fn_error $? "ambiguous option: \`$1'
16773 Try \`$0 --help' for more information.";;
16774 --help | --hel | -h )
16775 $as_echo "$ac_cs_usage"; exit ;;
16776 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16777 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16778 ac_cs_silent=: ;;
16779
16780 # This is an error.
16781 -*) as_fn_error $? "unrecognized option: \`$1'
16782 Try \`$0 --help' for more information." ;;
16783
16784 *) as_fn_append ac_config_targets " $1"
16785 ac_need_defaults=false ;;
16786
16787 esac
16788 shift
16789 done
16790
16791 ac_configure_extra_args=
16792
16793 if $ac_cs_silent; then
16794 exec 6>/dev/null
16795 ac_configure_extra_args="$ac_configure_extra_args --silent"
16796 fi
16797
16798 _ACEOF
16799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16800 if \$ac_cs_recheck; then
16801 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16802 shift
16803 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16804 CONFIG_SHELL='$SHELL'
16805 export CONFIG_SHELL
16806 exec "\$@"
16807 fi
16808
16809 _ACEOF
16810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16811 exec 5>>config.log
16812 {
16813 echo
16814 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16815 ## Running $as_me. ##
16816 _ASBOX
16817 $as_echo "$ac_log"
16818 } >&5
16819
16820 _ACEOF
16821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16822 #
16823 # INIT-COMMANDS
16824 #
16825 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16826
16827
16828 # The HP-UX ksh and POSIX shell print the target directory to stdout
16829 # if CDPATH is set.
16830 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16831
16832 sed_quote_subst='$sed_quote_subst'
16833 double_quote_subst='$double_quote_subst'
16834 delay_variable_subst='$delay_variable_subst'
16835 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16836 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16837 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16838 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16839 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16840 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16841 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16842 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16843 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16844 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16845 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16846 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16847 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16848 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16849 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16850 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16851 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16852 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16853 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16854 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16855 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16856 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16857 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16858 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16859 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16860 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16861 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16862 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16863 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16864 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16865 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16866 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16867 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16868 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16869 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16870 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16871 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16872 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16873 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16874 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16875 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16876 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16877 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16878 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16879 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16880 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16881 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16882 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16883 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16884 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16885 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16886 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16887 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16888 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16889 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16890 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16891 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16892 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16893 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"`'
16894 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16895 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16896 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16897 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16898 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16899 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16900 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16901 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16902 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16903 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16904 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16905 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16906 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16907 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16908 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16909 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16910 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16911 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16912 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16913 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16914 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16915 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16916 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16917 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16918 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16919 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16920 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16921 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16922 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16923 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16924 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16925 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16926 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16927 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16928 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16929 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16930 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16931 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16932 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16933 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16934 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16935 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16936 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16937 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16938 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16939 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16940 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16941 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16942 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16943 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16944 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16945 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16946 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16947 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16948 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16949 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16950 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16951 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16952 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16953 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16954 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16955 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16956 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16957 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16958 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16959 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16960 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16961 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16962 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16963 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16964 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16965 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16966 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16967 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16968 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16969 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16970 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16971 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16972 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16973 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16974 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16975 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16976 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16977 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16978 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16979 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16980 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16981 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16982 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16983 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16984 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16985 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16986 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16987 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16988 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16989 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16990 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16991 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16992 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16993 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16994 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16995 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16996 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16997 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16998 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16999 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17000 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17001 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17002 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17003 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17004 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17005 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17006 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17007 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17008 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17009 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17010 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17011 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17012 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17013 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17014 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17015 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17016 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17017 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17018 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17019 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17020 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17021 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17022 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17023 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17024
17025 LTCC='$LTCC'
17026 LTCFLAGS='$LTCFLAGS'
17027 compiler='$compiler_DEFAULT'
17028
17029 # A function that is used when there is no print builtin or printf.
17030 func_fallback_echo ()
17031 {
17032 eval 'cat <<_LTECHO_EOF
17033 \$1
17034 _LTECHO_EOF'
17035 }
17036
17037 # Quote evaled strings.
17038 for var in SHELL \
17039 ECHO \
17040 PATH_SEPARATOR \
17041 SED \
17042 GREP \
17043 EGREP \
17044 FGREP \
17045 LD \
17046 NM \
17047 LN_S \
17048 lt_SP2NL \
17049 lt_NL2SP \
17050 reload_flag \
17051 OBJDUMP \
17052 deplibs_check_method \
17053 file_magic_cmd \
17054 file_magic_glob \
17055 want_nocaseglob \
17056 DLLTOOL \
17057 sharedlib_from_linklib_cmd \
17058 AR \
17059 AR_FLAGS \
17060 archiver_list_spec \
17061 STRIP \
17062 RANLIB \
17063 CC \
17064 CFLAGS \
17065 compiler \
17066 lt_cv_sys_global_symbol_pipe \
17067 lt_cv_sys_global_symbol_to_cdecl \
17068 lt_cv_sys_global_symbol_to_import \
17069 lt_cv_sys_global_symbol_to_c_name_address \
17070 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17071 lt_cv_nm_interface \
17072 nm_file_list_spec \
17073 lt_cv_truncate_bin \
17074 lt_prog_compiler_no_builtin_flag \
17075 lt_prog_compiler_pic \
17076 lt_prog_compiler_wl \
17077 lt_prog_compiler_static \
17078 lt_cv_prog_compiler_c_o \
17079 need_locks \
17080 MANIFEST_TOOL \
17081 DSYMUTIL \
17082 NMEDIT \
17083 LIPO \
17084 OTOOL \
17085 OTOOL64 \
17086 shrext_cmds \
17087 export_dynamic_flag_spec \
17088 whole_archive_flag_spec \
17089 compiler_needs_object \
17090 with_gnu_ld \
17091 allow_undefined_flag \
17092 no_undefined_flag \
17093 hardcode_libdir_flag_spec \
17094 hardcode_libdir_separator \
17095 exclude_expsyms \
17096 include_expsyms \
17097 file_list_spec \
17098 variables_saved_for_relink \
17099 libname_spec \
17100 library_names_spec \
17101 soname_spec \
17102 install_override_mode \
17103 finish_eval \
17104 old_striplib \
17105 striplib \
17106 compiler_lib_search_dirs \
17107 predep_objects \
17108 postdep_objects \
17109 predeps \
17110 postdeps \
17111 compiler_lib_search_path \
17112 LD_CXX \
17113 reload_flag_CXX \
17114 compiler_CXX \
17115 lt_prog_compiler_no_builtin_flag_CXX \
17116 lt_prog_compiler_pic_CXX \
17117 lt_prog_compiler_wl_CXX \
17118 lt_prog_compiler_static_CXX \
17119 lt_cv_prog_compiler_c_o_CXX \
17120 export_dynamic_flag_spec_CXX \
17121 whole_archive_flag_spec_CXX \
17122 compiler_needs_object_CXX \
17123 with_gnu_ld_CXX \
17124 allow_undefined_flag_CXX \
17125 no_undefined_flag_CXX \
17126 hardcode_libdir_flag_spec_CXX \
17127 hardcode_libdir_separator_CXX \
17128 exclude_expsyms_CXX \
17129 include_expsyms_CXX \
17130 file_list_spec_CXX \
17131 compiler_lib_search_dirs_CXX \
17132 predep_objects_CXX \
17133 postdep_objects_CXX \
17134 predeps_CXX \
17135 postdeps_CXX \
17136 compiler_lib_search_path_CXX; do
17137 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17138 *[\\\\\\\`\\"\\\$]*)
17139 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17140 ;;
17141 *)
17142 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17143 ;;
17144 esac
17145 done
17146
17147 # Double-quote double-evaled strings.
17148 for var in reload_cmds \
17149 old_postinstall_cmds \
17150 old_postuninstall_cmds \
17151 old_archive_cmds \
17152 extract_expsyms_cmds \
17153 old_archive_from_new_cmds \
17154 old_archive_from_expsyms_cmds \
17155 archive_cmds \
17156 archive_expsym_cmds \
17157 module_cmds \
17158 module_expsym_cmds \
17159 export_symbols_cmds \
17160 prelink_cmds \
17161 postlink_cmds \
17162 postinstall_cmds \
17163 postuninstall_cmds \
17164 finish_cmds \
17165 sys_lib_search_path_spec \
17166 configure_time_dlsearch_path \
17167 configure_time_lt_sys_library_path \
17168 reload_cmds_CXX \
17169 old_archive_cmds_CXX \
17170 old_archive_from_new_cmds_CXX \
17171 old_archive_from_expsyms_cmds_CXX \
17172 archive_cmds_CXX \
17173 archive_expsym_cmds_CXX \
17174 module_cmds_CXX \
17175 module_expsym_cmds_CXX \
17176 export_symbols_cmds_CXX \
17177 prelink_cmds_CXX \
17178 postlink_cmds_CXX; do
17179 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17180 *[\\\\\\\`\\"\\\$]*)
17181 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17182 ;;
17183 *)
17184 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17185 ;;
17186 esac
17187 done
17188
17189 ac_aux_dir='$ac_aux_dir'
17190
17191 # See if we are running on zsh, and set the options that allow our
17192 # commands through without removal of \ escapes INIT.
17193 if test -n "\${ZSH_VERSION+set}"; then
17194 setopt NO_GLOB_SUBST
17195 fi
17196
17197
17198 PACKAGE='$PACKAGE'
17199 VERSION='$VERSION'
17200 RM='$RM'
17201 ofile='$ofile'
17202
17203
17204
17205
17206
17207
17208 _ACEOF
17209
17210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17211
17212 # Handling of arguments.
17213 for ac_config_target in $ac_config_targets
17214 do
17215 case $ac_config_target in
17216 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
17217 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17218 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17219 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17220 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17221 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17222
17223 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17224 esac
17225 done
17226
17227
17228 # If the user did not use the arguments to specify the items to instantiate,
17229 # then the envvar interface is used. Set only those that are not.
17230 # We use the long form for the default assignment because of an extremely
17231 # bizarre bug on SunOS 4.1.3.
17232 if $ac_need_defaults; then
17233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17235 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17236 fi
17237
17238 # Have a temporary directory for convenience. Make it in the build tree
17239 # simply because there is no reason against having it here, and in addition,
17240 # creating and moving files from /tmp can sometimes cause problems.
17241 # Hook for its removal unless debugging.
17242 # Note that there is a small window in which the directory will not be cleaned:
17243 # after its creation but before its name has been assigned to `$tmp'.
17244 $debug ||
17245 {
17246 tmp= ac_tmp=
17247 trap 'exit_status=$?
17248 : "${ac_tmp:=$tmp}"
17249 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17250 ' 0
17251 trap 'as_fn_exit 1' 1 2 13 15
17252 }
17253 # Create a (secure) tmp directory for tmp files.
17254
17255 {
17256 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17257 test -d "$tmp"
17258 } ||
17259 {
17260 tmp=./conf$$-$RANDOM
17261 (umask 077 && mkdir "$tmp")
17262 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17263 ac_tmp=$tmp
17264
17265 # Set up the scripts for CONFIG_FILES section.
17266 # No need to generate them if there are no CONFIG_FILES.
17267 # This happens for instance with `./config.status config.h'.
17268 if test -n "$CONFIG_FILES"; then
17269
17270
17271 ac_cr=`echo X | tr X '\015'`
17272 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17273 # But we know of no other shell where ac_cr would be empty at this
17274 # point, so we can use a bashism as a fallback.
17275 if test "x$ac_cr" = x; then
17276 eval ac_cr=\$\'\\r\'
17277 fi
17278 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17279 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17280 ac_cs_awk_cr='\\r'
17281 else
17282 ac_cs_awk_cr=$ac_cr
17283 fi
17284
17285 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17286 _ACEOF
17287
17288
17289 {
17290 echo "cat >conf$$subs.awk <<_ACEOF" &&
17291 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17292 echo "_ACEOF"
17293 } >conf$$subs.sh ||
17294 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17295 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17296 ac_delim='%!_!# '
17297 for ac_last_try in false false false false false :; do
17298 . ./conf$$subs.sh ||
17299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17300
17301 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17302 if test $ac_delim_n = $ac_delim_num; then
17303 break
17304 elif $ac_last_try; then
17305 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17306 else
17307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17308 fi
17309 done
17310 rm -f conf$$subs.sh
17311
17312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17313 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17314 _ACEOF
17315 sed -n '
17316 h
17317 s/^/S["/; s/!.*/"]=/
17318 p
17319 g
17320 s/^[^!]*!//
17321 :repl
17322 t repl
17323 s/'"$ac_delim"'$//
17324 t delim
17325 :nl
17326 h
17327 s/\(.\{148\}\)..*/\1/
17328 t more1
17329 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17330 p
17331 n
17332 b repl
17333 :more1
17334 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17335 p
17336 g
17337 s/.\{148\}//
17338 t nl
17339 :delim
17340 h
17341 s/\(.\{148\}\)..*/\1/
17342 t more2
17343 s/["\\]/\\&/g; s/^/"/; s/$/"/
17344 p
17345 b
17346 :more2
17347 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17348 p
17349 g
17350 s/.\{148\}//
17351 t delim
17352 ' <conf$$subs.awk | sed '
17353 /^[^""]/{
17354 N
17355 s/\n//
17356 }
17357 ' >>$CONFIG_STATUS || ac_write_fail=1
17358 rm -f conf$$subs.awk
17359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17360 _ACAWK
17361 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17362 for (key in S) S_is_set[key] = 1
17363 FS = ""
17364
17365 }
17366 {
17367 line = $ 0
17368 nfields = split(line, field, "@")
17369 substed = 0
17370 len = length(field[1])
17371 for (i = 2; i < nfields; i++) {
17372 key = field[i]
17373 keylen = length(key)
17374 if (S_is_set[key]) {
17375 value = S[key]
17376 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17377 len += length(value) + length(field[++i])
17378 substed = 1
17379 } else
17380 len += 1 + keylen
17381 }
17382
17383 print line
17384 }
17385
17386 _ACAWK
17387 _ACEOF
17388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17389 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17390 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17391 else
17392 cat
17393 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17394 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17395 _ACEOF
17396
17397 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17398 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17399 # trailing colons and then remove the whole line if VPATH becomes empty
17400 # (actually we leave an empty line to preserve line numbers).
17401 if test "x$srcdir" = x.; then
17402 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17403 h
17404 s///
17405 s/^/:/
17406 s/[ ]*$/:/
17407 s/:\$(srcdir):/:/g
17408 s/:\${srcdir}:/:/g
17409 s/:@srcdir@:/:/g
17410 s/^:*//
17411 s/:*$//
17412 x
17413 s/\(=[ ]*\).*/\1/
17414 G
17415 s/\n//
17416 s/^[^=]*=[ ]*$//
17417 }'
17418 fi
17419
17420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17421 fi # test -n "$CONFIG_FILES"
17422
17423 # Set up the scripts for CONFIG_HEADERS section.
17424 # No need to generate them if there are no CONFIG_HEADERS.
17425 # This happens for instance with `./config.status Makefile'.
17426 if test -n "$CONFIG_HEADERS"; then
17427 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17428 BEGIN {
17429 _ACEOF
17430
17431 # Transform confdefs.h into an awk script `defines.awk', embedded as
17432 # here-document in config.status, that substitutes the proper values into
17433 # config.h.in to produce config.h.
17434
17435 # Create a delimiter string that does not exist in confdefs.h, to ease
17436 # handling of long lines.
17437 ac_delim='%!_!# '
17438 for ac_last_try in false false :; do
17439 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17440 if test -z "$ac_tt"; then
17441 break
17442 elif $ac_last_try; then
17443 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17444 else
17445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17446 fi
17447 done
17448
17449 # For the awk script, D is an array of macro values keyed by name,
17450 # likewise P contains macro parameters if any. Preserve backslash
17451 # newline sequences.
17452
17453 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17454 sed -n '
17455 s/.\{148\}/&'"$ac_delim"'/g
17456 t rset
17457 :rset
17458 s/^[ ]*#[ ]*define[ ][ ]*/ /
17459 t def
17460 d
17461 :def
17462 s/\\$//
17463 t bsnl
17464 s/["\\]/\\&/g
17465 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17466 D["\1"]=" \3"/p
17467 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17468 d
17469 :bsnl
17470 s/["\\]/\\&/g
17471 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17472 D["\1"]=" \3\\\\\\n"\\/p
17473 t cont
17474 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17475 t cont
17476 d
17477 :cont
17478 n
17479 s/.\{148\}/&'"$ac_delim"'/g
17480 t clear
17481 :clear
17482 s/\\$//
17483 t bsnlc
17484 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17485 d
17486 :bsnlc
17487 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17488 b cont
17489 ' <confdefs.h | sed '
17490 s/'"$ac_delim"'/"\\\
17491 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17492
17493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17494 for (key in D) D_is_set[key] = 1
17495 FS = ""
17496 }
17497 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17498 line = \$ 0
17499 split(line, arg, " ")
17500 if (arg[1] == "#") {
17501 defundef = arg[2]
17502 mac1 = arg[3]
17503 } else {
17504 defundef = substr(arg[1], 2)
17505 mac1 = arg[2]
17506 }
17507 split(mac1, mac2, "(") #)
17508 macro = mac2[1]
17509 prefix = substr(line, 1, index(line, defundef) - 1)
17510 if (D_is_set[macro]) {
17511 # Preserve the white space surrounding the "#".
17512 print prefix "define", macro P[macro] D[macro]
17513 next
17514 } else {
17515 # Replace #undef with comments. This is necessary, for example,
17516 # in the case of _POSIX_SOURCE, which is predefined and required
17517 # on some systems where configure will not decide to define it.
17518 if (defundef == "undef") {
17519 print "/*", prefix defundef, macro, "*/"
17520 next
17521 }
17522 }
17523 }
17524 { print }
17525 _ACAWK
17526 _ACEOF
17527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17528 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17529 fi # test -n "$CONFIG_HEADERS"
17530
17531
17532 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17533 shift
17534 for ac_tag
17535 do
17536 case $ac_tag in
17537 :[FHLC]) ac_mode=$ac_tag; continue;;
17538 esac
17539 case $ac_mode$ac_tag in
17540 :[FHL]*:*);;
17541 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17542 :[FH]-) ac_tag=-:-;;
17543 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17544 esac
17545 ac_save_IFS=$IFS
17546 IFS=:
17547 set x $ac_tag
17548 IFS=$ac_save_IFS
17549 shift
17550 ac_file=$1
17551 shift
17552
17553 case $ac_mode in
17554 :L) ac_source=$1;;
17555 :[FH])
17556 ac_file_inputs=
17557 for ac_f
17558 do
17559 case $ac_f in
17560 -) ac_f="$ac_tmp/stdin";;
17561 *) # Look for the file first in the build tree, then in the source tree
17562 # (if the path is not absolute). The absolute path cannot be DOS-style,
17563 # because $ac_f cannot contain `:'.
17564 test -f "$ac_f" ||
17565 case $ac_f in
17566 [\\/$]*) false;;
17567 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17568 esac ||
17569 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17570 esac
17571 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17572 as_fn_append ac_file_inputs " '$ac_f'"
17573 done
17574
17575 # Let's still pretend it is `configure' which instantiates (i.e., don't
17576 # use $as_me), people would be surprised to read:
17577 # /* config.h. Generated by config.status. */
17578 configure_input='Generated from '`
17579 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17580 `' by configure.'
17581 if test x"$ac_file" != x-; then
17582 configure_input="$ac_file. $configure_input"
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17584 $as_echo "$as_me: creating $ac_file" >&6;}
17585 fi
17586 # Neutralize special characters interpreted by sed in replacement strings.
17587 case $configure_input in #(
17588 *\&* | *\|* | *\\* )
17589 ac_sed_conf_input=`$as_echo "$configure_input" |
17590 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17591 *) ac_sed_conf_input=$configure_input;;
17592 esac
17593
17594 case $ac_tag in
17595 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17597 esac
17598 ;;
17599 esac
17600
17601 ac_dir=`$as_dirname -- "$ac_file" ||
17602 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17603 X"$ac_file" : 'X\(//\)[^/]' \| \
17604 X"$ac_file" : 'X\(//\)$' \| \
17605 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17606 $as_echo X"$ac_file" |
17607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17608 s//\1/
17609 q
17610 }
17611 /^X\(\/\/\)[^/].*/{
17612 s//\1/
17613 q
17614 }
17615 /^X\(\/\/\)$/{
17616 s//\1/
17617 q
17618 }
17619 /^X\(\/\).*/{
17620 s//\1/
17621 q
17622 }
17623 s/.*/./; q'`
17624 as_dir="$ac_dir"; as_fn_mkdir_p
17625 ac_builddir=.
17626
17627 case "$ac_dir" in
17628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17629 *)
17630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17631 # A ".." for each directory in $ac_dir_suffix.
17632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17633 case $ac_top_builddir_sub in
17634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17636 esac ;;
17637 esac
17638 ac_abs_top_builddir=$ac_pwd
17639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17640 # for backward compatibility:
17641 ac_top_builddir=$ac_top_build_prefix
17642
17643 case $srcdir in
17644 .) # We are building in place.
17645 ac_srcdir=.
17646 ac_top_srcdir=$ac_top_builddir_sub
17647 ac_abs_top_srcdir=$ac_pwd ;;
17648 [\\/]* | ?:[\\/]* ) # Absolute name.
17649 ac_srcdir=$srcdir$ac_dir_suffix;
17650 ac_top_srcdir=$srcdir
17651 ac_abs_top_srcdir=$srcdir ;;
17652 *) # Relative name.
17653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17654 ac_top_srcdir=$ac_top_build_prefix$srcdir
17655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17656 esac
17657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17658
17659
17660 case $ac_mode in
17661 :F)
17662 #
17663 # CONFIG_FILE
17664 #
17665
17666 case $INSTALL in
17667 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17668 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17669 esac
17670 ac_MKDIR_P=$MKDIR_P
17671 case $MKDIR_P in
17672 [\\/$]* | ?:[\\/]* ) ;;
17673 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17674 esac
17675 _ACEOF
17676
17677 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17678 # If the template does not know about datarootdir, expand it.
17679 # FIXME: This hack should be removed a few years after 2.60.
17680 ac_datarootdir_hack=; ac_datarootdir_seen=
17681 ac_sed_dataroot='
17682 /datarootdir/ {
17683 p
17684 q
17685 }
17686 /@datadir@/p
17687 /@docdir@/p
17688 /@infodir@/p
17689 /@localedir@/p
17690 /@mandir@/p'
17691 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17692 *datarootdir*) ac_datarootdir_seen=yes;;
17693 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17695 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17696 _ACEOF
17697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17698 ac_datarootdir_hack='
17699 s&@datadir@&$datadir&g
17700 s&@docdir@&$docdir&g
17701 s&@infodir@&$infodir&g
17702 s&@localedir@&$localedir&g
17703 s&@mandir@&$mandir&g
17704 s&\\\${datarootdir}&$datarootdir&g' ;;
17705 esac
17706 _ACEOF
17707
17708 # Neutralize VPATH when `$srcdir' = `.'.
17709 # Shell code in configure.ac might set extrasub.
17710 # FIXME: do we really want to maintain this feature?
17711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17712 ac_sed_extra="$ac_vpsub
17713 $extrasub
17714 _ACEOF
17715 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17716 :t
17717 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17718 s|@configure_input@|$ac_sed_conf_input|;t t
17719 s&@top_builddir@&$ac_top_builddir_sub&;t t
17720 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17721 s&@srcdir@&$ac_srcdir&;t t
17722 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17723 s&@top_srcdir@&$ac_top_srcdir&;t t
17724 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17725 s&@builddir@&$ac_builddir&;t t
17726 s&@abs_builddir@&$ac_abs_builddir&;t t
17727 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17728 s&@INSTALL@&$ac_INSTALL&;t t
17729 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17730 $ac_datarootdir_hack
17731 "
17732 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17733 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17734
17735 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17736 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17737 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17738 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17740 which seems to be undefined. Please make sure it is defined" >&5
17741 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17742 which seems to be undefined. Please make sure it is defined" >&2;}
17743
17744 rm -f "$ac_tmp/stdin"
17745 case $ac_file in
17746 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17747 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17748 esac \
17749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17750 ;;
17751 :H)
17752 #
17753 # CONFIG_HEADER
17754 #
17755 if test x"$ac_file" != x-; then
17756 {
17757 $as_echo "/* $configure_input */" \
17758 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17759 } >"$ac_tmp/config.h" \
17760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17761 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17763 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17764 else
17765 rm -f "$ac_file"
17766 mv "$ac_tmp/config.h" "$ac_file" \
17767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17768 fi
17769 else
17770 $as_echo "/* $configure_input */" \
17771 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17772 || as_fn_error $? "could not create -" "$LINENO" 5
17773 fi
17774 # Compute "$ac_file"'s index in $config_headers.
17775 _am_arg="$ac_file"
17776 _am_stamp_count=1
17777 for _am_header in $config_headers :; do
17778 case $_am_header in
17779 $_am_arg | $_am_arg:* )
17780 break ;;
17781 * )
17782 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17783 esac
17784 done
17785 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17786 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17787 X"$_am_arg" : 'X\(//\)[^/]' \| \
17788 X"$_am_arg" : 'X\(//\)$' \| \
17789 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17790 $as_echo X"$_am_arg" |
17791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17792 s//\1/
17793 q
17794 }
17795 /^X\(\/\/\)[^/].*/{
17796 s//\1/
17797 q
17798 }
17799 /^X\(\/\/\)$/{
17800 s//\1/
17801 q
17802 }
17803 /^X\(\/\).*/{
17804 s//\1/
17805 q
17806 }
17807 s/.*/./; q'`/stamp-h$_am_stamp_count
17808 ;;
17809
17810 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17811 $as_echo "$as_me: executing $ac_file commands" >&6;}
17812 ;;
17813 esac
17814
17815
17816 case $ac_file$ac_mode in
17817 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17818 # Older Autoconf quotes --file arguments for eval, but not when files
17819 # are listed without --file. Let's play safe and only enable the eval
17820 # if we detect the quoting.
17821 case $CONFIG_FILES in
17822 *\'*) eval set x "$CONFIG_FILES" ;;
17823 *) set x $CONFIG_FILES ;;
17824 esac
17825 shift
17826 for mf
17827 do
17828 # Strip MF so we end up with the name of the file.
17829 mf=`echo "$mf" | sed -e 's/:.*$//'`
17830 # Check whether this is an Automake generated Makefile or not.
17831 # We used to match only the files named 'Makefile.in', but
17832 # some people rename them; so instead we look at the file content.
17833 # Grep'ing the first line is not enough: some people post-process
17834 # each Makefile.in and add a new line on top of each file to say so.
17835 # Grep'ing the whole file is not good either: AIX grep has a line
17836 # limit of 2048, but all sed's we know have understand at least 4000.
17837 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17838 dirpart=`$as_dirname -- "$mf" ||
17839 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17840 X"$mf" : 'X\(//\)[^/]' \| \
17841 X"$mf" : 'X\(//\)$' \| \
17842 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17843 $as_echo X"$mf" |
17844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17845 s//\1/
17846 q
17847 }
17848 /^X\(\/\/\)[^/].*/{
17849 s//\1/
17850 q
17851 }
17852 /^X\(\/\/\)$/{
17853 s//\1/
17854 q
17855 }
17856 /^X\(\/\).*/{
17857 s//\1/
17858 q
17859 }
17860 s/.*/./; q'`
17861 else
17862 continue
17863 fi
17864 # Extract the definition of DEPDIR, am__include, and am__quote
17865 # from the Makefile without running 'make'.
17866 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17867 test -z "$DEPDIR" && continue
17868 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17869 test -z "$am__include" && continue
17870 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17871 # Find all dependency output files, they are included files with
17872 # $(DEPDIR) in their names. We invoke sed twice because it is the
17873 # simplest approach to changing $(DEPDIR) to its actual value in the
17874 # expansion.
17875 for file in `sed -n "
17876 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17877 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17878 # Make sure the directory exists.
17879 test -f "$dirpart/$file" && continue
17880 fdir=`$as_dirname -- "$file" ||
17881 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17882 X"$file" : 'X\(//\)[^/]' \| \
17883 X"$file" : 'X\(//\)$' \| \
17884 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17885 $as_echo X"$file" |
17886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17887 s//\1/
17888 q
17889 }
17890 /^X\(\/\/\)[^/].*/{
17891 s//\1/
17892 q
17893 }
17894 /^X\(\/\/\)$/{
17895 s//\1/
17896 q
17897 }
17898 /^X\(\/\).*/{
17899 s//\1/
17900 q
17901 }
17902 s/.*/./; q'`
17903 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17904 # echo "creating $dirpart/$file"
17905 echo '# dummy' > "$dirpart/$file"
17906 done
17907 done
17908 }
17909 ;;
17910 "libtool":C)
17911
17912 # See if we are running on zsh, and set the options that allow our
17913 # commands through without removal of \ escapes.
17914 if test -n "${ZSH_VERSION+set}"; then
17915 setopt NO_GLOB_SUBST
17916 fi
17917
17918 cfgfile=${ofile}T
17919 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17920 $RM "$cfgfile"
17921
17922 cat <<_LT_EOF >> "$cfgfile"
17923 #! $SHELL
17924 # Generated automatically by $as_me ($PACKAGE) $VERSION
17925 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17926
17927 # Provide generalized library-building support services.
17928 # Written by Gordon Matzigkeit, 1996
17929
17930 # Copyright (C) 2014 Free Software Foundation, Inc.
17931 # This is free software; see the source for copying conditions. There is NO
17932 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17933
17934 # GNU Libtool is free software; you can redistribute it and/or modify
17935 # it under the terms of the GNU General Public License as published by
17936 # the Free Software Foundation; either version 2 of of the License, or
17937 # (at your option) any later version.
17938 #
17939 # As a special exception to the GNU General Public License, if you
17940 # distribute this file as part of a program or library that is built
17941 # using GNU Libtool, you may include this file under the same
17942 # distribution terms that you use for the rest of that program.
17943 #
17944 # GNU Libtool is distributed in the hope that it will be useful, but
17945 # WITHOUT ANY WARRANTY; without even the implied warranty of
17946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17947 # GNU General Public License for more details.
17948 #
17949 # You should have received a copy of the GNU General Public License
17950 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17951
17952
17953 # The names of the tagged configurations supported by this script.
17954 available_tags='CXX '
17955
17956 # Configured defaults for sys_lib_dlsearch_path munging.
17957 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17958
17959 # ### BEGIN LIBTOOL CONFIG
17960
17961 # Which release of libtool.m4 was used?
17962 macro_version=$macro_version
17963 macro_revision=$macro_revision
17964
17965 # Whether or not to build shared libraries.
17966 build_libtool_libs=$enable_shared
17967
17968 # Whether or not to build static libraries.
17969 build_old_libs=$enable_static
17970
17971 # What type of objects to build.
17972 pic_mode=$pic_mode
17973
17974 # Whether or not to optimize for fast installation.
17975 fast_install=$enable_fast_install
17976
17977 # Shared archive member basename,for filename based shared library versioning on AIX.
17978 shared_archive_member_spec=$shared_archive_member_spec
17979
17980 # Shell to use when invoking shell scripts.
17981 SHELL=$lt_SHELL
17982
17983 # An echo program that protects backslashes.
17984 ECHO=$lt_ECHO
17985
17986 # The PATH separator for the build system.
17987 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17988
17989 # The host system.
17990 host_alias=$host_alias
17991 host=$host
17992 host_os=$host_os
17993
17994 # The build system.
17995 build_alias=$build_alias
17996 build=$build
17997 build_os=$build_os
17998
17999 # A sed program that does not truncate output.
18000 SED=$lt_SED
18001
18002 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18003 Xsed="\$SED -e 1s/^X//"
18004
18005 # A grep program that handles long lines.
18006 GREP=$lt_GREP
18007
18008 # An ERE matcher.
18009 EGREP=$lt_EGREP
18010
18011 # A literal string matcher.
18012 FGREP=$lt_FGREP
18013
18014 # A BSD- or MS-compatible name lister.
18015 NM=$lt_NM
18016
18017 # Whether we need soft or hard links.
18018 LN_S=$lt_LN_S
18019
18020 # What is the maximum length of a command?
18021 max_cmd_len=$max_cmd_len
18022
18023 # Object file suffix (normally "o").
18024 objext=$ac_objext
18025
18026 # Executable file suffix (normally "").
18027 exeext=$exeext
18028
18029 # whether the shell understands "unset".
18030 lt_unset=$lt_unset
18031
18032 # turn spaces into newlines.
18033 SP2NL=$lt_lt_SP2NL
18034
18035 # turn newlines into spaces.
18036 NL2SP=$lt_lt_NL2SP
18037
18038 # convert \$build file names to \$host format.
18039 to_host_file_cmd=$lt_cv_to_host_file_cmd
18040
18041 # convert \$build files to toolchain format.
18042 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18043
18044 # An object symbol dumper.
18045 OBJDUMP=$lt_OBJDUMP
18046
18047 # Method to check whether dependent libraries are shared objects.
18048 deplibs_check_method=$lt_deplibs_check_method
18049
18050 # Command to use when deplibs_check_method = "file_magic".
18051 file_magic_cmd=$lt_file_magic_cmd
18052
18053 # How to find potential files when deplibs_check_method = "file_magic".
18054 file_magic_glob=$lt_file_magic_glob
18055
18056 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18057 want_nocaseglob=$lt_want_nocaseglob
18058
18059 # DLL creation program.
18060 DLLTOOL=$lt_DLLTOOL
18061
18062 # Command to associate shared and link libraries.
18063 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18064
18065 # The archiver.
18066 AR=$lt_AR
18067
18068 # Flags to create an archive.
18069 AR_FLAGS=$lt_AR_FLAGS
18070
18071 # How to feed a file listing to the archiver.
18072 archiver_list_spec=$lt_archiver_list_spec
18073
18074 # A symbol stripping program.
18075 STRIP=$lt_STRIP
18076
18077 # Commands used to install an old-style archive.
18078 RANLIB=$lt_RANLIB
18079 old_postinstall_cmds=$lt_old_postinstall_cmds
18080 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18081
18082 # Whether to use a lock for old archive extraction.
18083 lock_old_archive_extraction=$lock_old_archive_extraction
18084
18085 # A C compiler.
18086 LTCC=$lt_CC
18087
18088 # LTCC compiler flags.
18089 LTCFLAGS=$lt_CFLAGS
18090
18091 # Take the output of nm and produce a listing of raw symbols and C names.
18092 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18093
18094 # Transform the output of nm in a proper C declaration.
18095 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18096
18097 # Transform the output of nm into a list of symbols to manually relocate.
18098 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18099
18100 # Transform the output of nm in a C name address pair.
18101 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18102
18103 # Transform the output of nm in a C name address pair when lib prefix is needed.
18104 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18105
18106 # The name lister interface.
18107 nm_interface=$lt_lt_cv_nm_interface
18108
18109 # Specify filename containing input files for \$NM.
18110 nm_file_list_spec=$lt_nm_file_list_spec
18111
18112 # The root where to search for dependent libraries,and where our libraries should be installed.
18113 lt_sysroot=$lt_sysroot
18114
18115 # Command to truncate a binary pipe.
18116 lt_truncate_bin=$lt_lt_cv_truncate_bin
18117
18118 # The name of the directory that contains temporary libtool files.
18119 objdir=$objdir
18120
18121 # Used to examine libraries when file_magic_cmd begins with "file".
18122 MAGIC_CMD=$MAGIC_CMD
18123
18124 # Must we lock files when doing compilation?
18125 need_locks=$lt_need_locks
18126
18127 # Manifest tool.
18128 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18129
18130 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18131 DSYMUTIL=$lt_DSYMUTIL
18132
18133 # Tool to change global to local symbols on Mac OS X.
18134 NMEDIT=$lt_NMEDIT
18135
18136 # Tool to manipulate fat objects and archives on Mac OS X.
18137 LIPO=$lt_LIPO
18138
18139 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18140 OTOOL=$lt_OTOOL
18141
18142 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18143 OTOOL64=$lt_OTOOL64
18144
18145 # Old archive suffix (normally "a").
18146 libext=$libext
18147
18148 # Shared library suffix (normally ".so").
18149 shrext_cmds=$lt_shrext_cmds
18150
18151 # The commands to extract the exported symbol list from a shared archive.
18152 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18153
18154 # Variables whose values should be saved in libtool wrapper scripts and
18155 # restored at link time.
18156 variables_saved_for_relink=$lt_variables_saved_for_relink
18157
18158 # Do we need the "lib" prefix for modules?
18159 need_lib_prefix=$need_lib_prefix
18160
18161 # Do we need a version for libraries?
18162 need_version=$need_version
18163
18164 # Library versioning type.
18165 version_type=$version_type
18166
18167 # Shared library runtime path variable.
18168 runpath_var=$runpath_var
18169
18170 # Shared library path variable.
18171 shlibpath_var=$shlibpath_var
18172
18173 # Is shlibpath searched before the hard-coded library search path?
18174 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18175
18176 # Format of library name prefix.
18177 libname_spec=$lt_libname_spec
18178
18179 # List of archive names. First name is the real one, the rest are links.
18180 # The last name is the one that the linker finds with -lNAME
18181 library_names_spec=$lt_library_names_spec
18182
18183 # The coded name of the library, if different from the real name.
18184 soname_spec=$lt_soname_spec
18185
18186 # Permission mode override for installation of shared libraries.
18187 install_override_mode=$lt_install_override_mode
18188
18189 # Command to use after installation of a shared archive.
18190 postinstall_cmds=$lt_postinstall_cmds
18191
18192 # Command to use after uninstallation of a shared archive.
18193 postuninstall_cmds=$lt_postuninstall_cmds
18194
18195 # Commands used to finish a libtool library installation in a directory.
18196 finish_cmds=$lt_finish_cmds
18197
18198 # As "finish_cmds", except a single script fragment to be evaled but
18199 # not shown.
18200 finish_eval=$lt_finish_eval
18201
18202 # Whether we should hardcode library paths into libraries.
18203 hardcode_into_libs=$hardcode_into_libs
18204
18205 # Compile-time system search path for libraries.
18206 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18207
18208 # Detected run-time system search path for libraries.
18209 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18210
18211 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18212 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18213
18214 # Whether dlopen is supported.
18215 dlopen_support=$enable_dlopen
18216
18217 # Whether dlopen of programs is supported.
18218 dlopen_self=$enable_dlopen_self
18219
18220 # Whether dlopen of statically linked programs is supported.
18221 dlopen_self_static=$enable_dlopen_self_static
18222
18223 # Commands to strip libraries.
18224 old_striplib=$lt_old_striplib
18225 striplib=$lt_striplib
18226
18227
18228 # The linker used to build libraries.
18229 LD=$lt_LD
18230
18231 # How to create reloadable object files.
18232 reload_flag=$lt_reload_flag
18233 reload_cmds=$lt_reload_cmds
18234
18235 # Commands used to build an old-style archive.
18236 old_archive_cmds=$lt_old_archive_cmds
18237
18238 # A language specific compiler.
18239 CC=$lt_compiler
18240
18241 # Is the compiler the GNU compiler?
18242 with_gcc=$GCC
18243
18244 # Compiler flag to turn off builtin functions.
18245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18246
18247 # Additional compiler flags for building library objects.
18248 pic_flag=$lt_lt_prog_compiler_pic
18249
18250 # How to pass a linker flag through the compiler.
18251 wl=$lt_lt_prog_compiler_wl
18252
18253 # Compiler flag to prevent dynamic linking.
18254 link_static_flag=$lt_lt_prog_compiler_static
18255
18256 # Does compiler simultaneously support -c and -o options?
18257 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18258
18259 # Whether or not to add -lc for building shared libraries.
18260 build_libtool_need_lc=$archive_cmds_need_lc
18261
18262 # Whether or not to disallow shared libs when runtime libs are static.
18263 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18264
18265 # Compiler flag to allow reflexive dlopens.
18266 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18267
18268 # Compiler flag to generate shared objects directly from archives.
18269 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18270
18271 # Whether the compiler copes with passing no objects directly.
18272 compiler_needs_object=$lt_compiler_needs_object
18273
18274 # Create an old-style archive from a shared archive.
18275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18276
18277 # Create a temporary old-style archive to link instead of a shared archive.
18278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18279
18280 # Commands used to build a shared archive.
18281 archive_cmds=$lt_archive_cmds
18282 archive_expsym_cmds=$lt_archive_expsym_cmds
18283
18284 # Commands used to build a loadable module if different from building
18285 # a shared archive.
18286 module_cmds=$lt_module_cmds
18287 module_expsym_cmds=$lt_module_expsym_cmds
18288
18289 # Whether we are building with GNU ld or not.
18290 with_gnu_ld=$lt_with_gnu_ld
18291
18292 # Flag that allows shared libraries with undefined symbols to be built.
18293 allow_undefined_flag=$lt_allow_undefined_flag
18294
18295 # Flag that enforces no undefined symbols.
18296 no_undefined_flag=$lt_no_undefined_flag
18297
18298 # Flag to hardcode \$libdir into a binary during linking.
18299 # This must work even if \$libdir does not exist
18300 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18301
18302 # Whether we need a single "-rpath" flag with a separated argument.
18303 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18304
18305 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18306 # DIR into the resulting binary.
18307 hardcode_direct=$hardcode_direct
18308
18309 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18310 # DIR into the resulting binary and the resulting library dependency is
18311 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18312 # library is relocated.
18313 hardcode_direct_absolute=$hardcode_direct_absolute
18314
18315 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18316 # into the resulting binary.
18317 hardcode_minus_L=$hardcode_minus_L
18318
18319 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18320 # into the resulting binary.
18321 hardcode_shlibpath_var=$hardcode_shlibpath_var
18322
18323 # Set to "yes" if building a shared library automatically hardcodes DIR
18324 # into the library and all subsequent libraries and executables linked
18325 # against it.
18326 hardcode_automatic=$hardcode_automatic
18327
18328 # Set to yes if linker adds runtime paths of dependent libraries
18329 # to runtime path list.
18330 inherit_rpath=$inherit_rpath
18331
18332 # Whether libtool must link a program against all its dependency libraries.
18333 link_all_deplibs=$link_all_deplibs
18334
18335 # Set to "yes" if exported symbols are required.
18336 always_export_symbols=$always_export_symbols
18337
18338 # The commands to list exported symbols.
18339 export_symbols_cmds=$lt_export_symbols_cmds
18340
18341 # Symbols that should not be listed in the preloaded symbols.
18342 exclude_expsyms=$lt_exclude_expsyms
18343
18344 # Symbols that must always be exported.
18345 include_expsyms=$lt_include_expsyms
18346
18347 # Commands necessary for linking programs (against libraries) with templates.
18348 prelink_cmds=$lt_prelink_cmds
18349
18350 # Commands necessary for finishing linking programs.
18351 postlink_cmds=$lt_postlink_cmds
18352
18353 # Specify filename containing input files.
18354 file_list_spec=$lt_file_list_spec
18355
18356 # How to hardcode a shared library path into an executable.
18357 hardcode_action=$hardcode_action
18358
18359 # The directories searched by this compiler when creating a shared library.
18360 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18361
18362 # Dependencies to place before and after the objects being linked to
18363 # create a shared library.
18364 predep_objects=$lt_predep_objects
18365 postdep_objects=$lt_postdep_objects
18366 predeps=$lt_predeps
18367 postdeps=$lt_postdeps
18368
18369 # The library search path used internally by the compiler when linking
18370 # a shared library.
18371 compiler_lib_search_path=$lt_compiler_lib_search_path
18372
18373 # ### END LIBTOOL CONFIG
18374
18375 _LT_EOF
18376
18377 cat <<'_LT_EOF' >> "$cfgfile"
18378
18379 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18380
18381 # func_munge_path_list VARIABLE PATH
18382 # -----------------------------------
18383 # VARIABLE is name of variable containing _space_ separated list of
18384 # directories to be munged by the contents of PATH, which is string
18385 # having a format:
18386 # "DIR[:DIR]:"
18387 # string "DIR[ DIR]" will be prepended to VARIABLE
18388 # ":DIR[:DIR]"
18389 # string "DIR[ DIR]" will be appended to VARIABLE
18390 # "DIRP[:DIRP]::[DIRA:]DIRA"
18391 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18392 # "DIRA[ DIRA]" will be appended to VARIABLE
18393 # "DIR[:DIR]"
18394 # VARIABLE will be replaced by "DIR[ DIR]"
18395 func_munge_path_list ()
18396 {
18397 case x$2 in
18398 x)
18399 ;;
18400 *:)
18401 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18402 ;;
18403 x:*)
18404 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18405 ;;
18406 *::*)
18407 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18408 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18409 ;;
18410 *)
18411 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18412 ;;
18413 esac
18414 }
18415
18416
18417 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
18418 func_cc_basename ()
18419 {
18420 for cc_temp in $*""; do
18421 case $cc_temp in
18422 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18423 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18424 \-*) ;;
18425 *) break;;
18426 esac
18427 done
18428 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18429 }
18430
18431
18432 # ### END FUNCTIONS SHARED WITH CONFIGURE
18433
18434 _LT_EOF
18435
18436 case $host_os in
18437 aix3*)
18438 cat <<\_LT_EOF >> "$cfgfile"
18439 # AIX sometimes has problems with the GCC collect2 program. For some
18440 # reason, if we set the COLLECT_NAMES environment variable, the problems
18441 # vanish in a puff of smoke.
18442 if test set != "${COLLECT_NAMES+set}"; then
18443 COLLECT_NAMES=
18444 export COLLECT_NAMES
18445 fi
18446 _LT_EOF
18447 ;;
18448 esac
18449
18450
18451 ltmain=$ac_aux_dir/ltmain.sh
18452
18453
18454 # We use sed instead of cat because bash on DJGPP gets confused if
18455 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18456 # text mode, it properly converts lines to CR/LF. This bash problem
18457 # is reportedly fixed, but why not run on old versions too?
18458 sed '$q' "$ltmain" >> "$cfgfile" \
18459 || (rm -f "$cfgfile"; exit 1)
18460
18461 mv -f "$cfgfile" "$ofile" ||
18462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18463 chmod +x "$ofile"
18464
18465
18466 cat <<_LT_EOF >> "$ofile"
18467
18468 # ### BEGIN LIBTOOL TAG CONFIG: CXX
18469
18470 # The linker used to build libraries.
18471 LD=$lt_LD_CXX
18472
18473 # How to create reloadable object files.
18474 reload_flag=$lt_reload_flag_CXX
18475 reload_cmds=$lt_reload_cmds_CXX
18476
18477 # Commands used to build an old-style archive.
18478 old_archive_cmds=$lt_old_archive_cmds_CXX
18479
18480 # A language specific compiler.
18481 CC=$lt_compiler_CXX
18482
18483 # Is the compiler the GNU compiler?
18484 with_gcc=$GCC_CXX
18485
18486 # Compiler flag to turn off builtin functions.
18487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18488
18489 # Additional compiler flags for building library objects.
18490 pic_flag=$lt_lt_prog_compiler_pic_CXX
18491
18492 # How to pass a linker flag through the compiler.
18493 wl=$lt_lt_prog_compiler_wl_CXX
18494
18495 # Compiler flag to prevent dynamic linking.
18496 link_static_flag=$lt_lt_prog_compiler_static_CXX
18497
18498 # Does compiler simultaneously support -c and -o options?
18499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18500
18501 # Whether or not to add -lc for building shared libraries.
18502 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18503
18504 # Whether or not to disallow shared libs when runtime libs are static.
18505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18506
18507 # Compiler flag to allow reflexive dlopens.
18508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18509
18510 # Compiler flag to generate shared objects directly from archives.
18511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18512
18513 # Whether the compiler copes with passing no objects directly.
18514 compiler_needs_object=$lt_compiler_needs_object_CXX
18515
18516 # Create an old-style archive from a shared archive.
18517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18518
18519 # Create a temporary old-style archive to link instead of a shared archive.
18520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18521
18522 # Commands used to build a shared archive.
18523 archive_cmds=$lt_archive_cmds_CXX
18524 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18525
18526 # Commands used to build a loadable module if different from building
18527 # a shared archive.
18528 module_cmds=$lt_module_cmds_CXX
18529 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18530
18531 # Whether we are building with GNU ld or not.
18532 with_gnu_ld=$lt_with_gnu_ld_CXX
18533
18534 # Flag that allows shared libraries with undefined symbols to be built.
18535 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18536
18537 # Flag that enforces no undefined symbols.
18538 no_undefined_flag=$lt_no_undefined_flag_CXX
18539
18540 # Flag to hardcode \$libdir into a binary during linking.
18541 # This must work even if \$libdir does not exist
18542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18543
18544 # Whether we need a single "-rpath" flag with a separated argument.
18545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18546
18547 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18548 # DIR into the resulting binary.
18549 hardcode_direct=$hardcode_direct_CXX
18550
18551 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18552 # DIR into the resulting binary and the resulting library dependency is
18553 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18554 # library is relocated.
18555 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18556
18557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18558 # into the resulting binary.
18559 hardcode_minus_L=$hardcode_minus_L_CXX
18560
18561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18562 # into the resulting binary.
18563 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18564
18565 # Set to "yes" if building a shared library automatically hardcodes DIR
18566 # into the library and all subsequent libraries and executables linked
18567 # against it.
18568 hardcode_automatic=$hardcode_automatic_CXX
18569
18570 # Set to yes if linker adds runtime paths of dependent libraries
18571 # to runtime path list.
18572 inherit_rpath=$inherit_rpath_CXX
18573
18574 # Whether libtool must link a program against all its dependency libraries.
18575 link_all_deplibs=$link_all_deplibs_CXX
18576
18577 # Set to "yes" if exported symbols are required.
18578 always_export_symbols=$always_export_symbols_CXX
18579
18580 # The commands to list exported symbols.
18581 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18582
18583 # Symbols that should not be listed in the preloaded symbols.
18584 exclude_expsyms=$lt_exclude_expsyms_CXX
18585
18586 # Symbols that must always be exported.
18587 include_expsyms=$lt_include_expsyms_CXX
18588
18589 # Commands necessary for linking programs (against libraries) with templates.
18590 prelink_cmds=$lt_prelink_cmds_CXX
18591
18592 # Commands necessary for finishing linking programs.
18593 postlink_cmds=$lt_postlink_cmds_CXX
18594
18595 # Specify filename containing input files.
18596 file_list_spec=$lt_file_list_spec_CXX
18597
18598 # How to hardcode a shared library path into an executable.
18599 hardcode_action=$hardcode_action_CXX
18600
18601 # The directories searched by this compiler when creating a shared library.
18602 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18603
18604 # Dependencies to place before and after the objects being linked to
18605 # create a shared library.
18606 predep_objects=$lt_predep_objects_CXX
18607 postdep_objects=$lt_postdep_objects_CXX
18608 predeps=$lt_predeps_CXX
18609 postdeps=$lt_postdeps_CXX
18610
18611 # The library search path used internally by the compiler when linking
18612 # a shared library.
18613 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18614
18615 # ### END LIBTOOL TAG CONFIG: CXX
18616 _LT_EOF
18617
18618 ;;
18619
18620 esac
18621 done # for ac_tag
18622
18623
18624 as_fn_exit 0
18625 _ACEOF
18626 ac_clean_files=$ac_clean_files_save
18627
18628 test $ac_write_fail = 0 ||
18629 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18630
18631
18632 # configure is writing to config.log, and then calls config.status.
18633 # config.status does its own redirection, appending to config.log.
18634 # Unfortunately, on DOS this fails, as config.log is still kept open
18635 # by configure, so config.status won't be able to write to it; its
18636 # output is simply discarded. So we exec the FD to /dev/null,
18637 # effectively closing config.log, so it can be properly (re)opened and
18638 # appended to by config.status. When coming back to configure, we
18639 # need to make the FD available again.
18640 if test "$no_create" != yes; then
18641 ac_cs_success=:
18642 ac_config_status_args=
18643 test "$silent" = yes &&
18644 ac_config_status_args="$ac_config_status_args --quiet"
18645 exec 5>/dev/null
18646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18647 exec 5>>config.log
18648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18649 # would make configure fail if this is the last instruction.
18650 $ac_cs_success || as_fn_exit 1
18651 fi
18652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18655 fi
18656
18657