Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libnl 3.12.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185
186 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
187 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
188 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 PATH=/empty FPATH=/empty; export PATH FPATH
191 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
192 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
193 test \$(( 1 + 1 )) = 2 || exit 1"
194 if (eval "$as_required") 2>/dev/null
195 then :
196 as_have_required=yes
197 else case e in #(
198 e) as_have_required=no ;;
199 esac
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else case e in #(
205 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else case e in #(
239 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi ;;
244 esac
245 fi
246
247
248 if test "x$CONFIG_SHELL" != x
249 then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf "%s\n" "$0: This script requires a shell more modern than all"
274 printf "%s\n" "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf "%s\n" "$0: Please tell [email protected] about your system,
280 $0: including any error possibly output before this
281 $0: message. Then install a modern shell, or manually run
282 $0: the script under such a shell if you do have one."
283 fi
284 exit 1
285 fi ;;
286 esac
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else case e in #(
394 e) as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 } ;;
398 esac
399 fi # as_fn_append
400
401 # as_fn_arith ARG...
402 # ------------------
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
407 then :
408 eval 'as_fn_arith ()
409 {
410 as_val=$(( $* ))
411 }'
412 else case e in #(
413 e) as_fn_arith ()
414 {
415 as_val=`expr "$@" || test $? -eq 1`
416 } ;;
417 esac
418 fi # as_fn_arith
419
420
421 # as_fn_error STATUS ERROR [LINENO LOG_FD]
422 # ----------------------------------------
423 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
424 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
425 # script with STATUS, using 1 if that was 0.
426 as_fn_error ()
427 {
428 as_status=$1; test $as_status -eq 0 && as_status=1
429 if test "$4"; then
430 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 fi
433 printf "%s\n" "$as_me: error: $2" >&2
434 as_fn_exit $as_status
435 } # as_fn_error
436
437 if expr a : '\(a\)' >/dev/null 2>&1 &&
438 test "X`expr 00001 : '.*\(...\)'`" = X001; then
439 as_expr=expr
440 else
441 as_expr=false
442 fi
443
444 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
445 as_basename=basename
446 else
447 as_basename=false
448 fi
449
450 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
451 as_dirname=dirname
452 else
453 as_dirname=false
454 fi
455
456 as_me=`$as_basename -- "$0" ||
457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
458 X"$0" : 'X\(//\)$' \| \
459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
460 printf "%s\n" X/"$0" |
461 sed '/^.*\/\([^/][^/]*\)\/*$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\/\)$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\).*/{
470 s//\1/
471 q
472 }
473 s/.*/./; q'`
474
475 # Avoid depending upon Character Ranges.
476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
479 as_cr_digits='0123456789'
480 as_cr_alnum=$as_cr_Letters$as_cr_digits
481
482
483 as_lineno_1=$LINENO as_lineno_1a=$LINENO
484 as_lineno_2=$LINENO as_lineno_2a=$LINENO
485 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
486 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
487 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
488 sed -n '
489 p
490 /[$]LINENO/=
491 ' <$as_myself |
492 sed '
493 t clear
494 :clear
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
507
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
518 }
519
520
521 # Determine whether it's possible to make 'echo' print without a newline.
522 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523 # for compatibility with existing Makefiles.
524 ECHO_C= ECHO_N= ECHO_T=
525 case `echo -n x` in #(((((
526 -n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533 *)
534 ECHO_N='-n';;
535 esac
536
537 # For backward compatibility with old third-party macros, we provide
538 # the shell variables $as_echo and $as_echo_n. New code should use
539 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540 as_echo='printf %s\n'
541 as_echo_n='printf %s'
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545 rm -f conf$$.dir/conf$$.file
546 else
547 rm -f conf$$.dir
548 mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551 if ln -s conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s='ln -s'
553 # ... but there are two gotchas:
554 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
555 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
556 # In both cases, we have to default to 'cp -pR'.
557 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558 as_ln_s='cp -pR'
559 elif ln conf$$.file conf$$ 2>/dev/null; then
560 as_ln_s=ln
561 else
562 as_ln_s='cp -pR'
563 fi
564 else
565 as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571 as_mkdir_p='mkdir -p "$as_dir"'
572 else
573 test -d ./-p && rmdir ./-p
574 as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
583
584 # Sed expression to map a string onto a valid variable name.
585 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
586 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
587
588 SHELL=${CONFIG_SHELL-/bin/sh}
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='libnl'
613 PACKAGE_TARNAME='libnl'
614 PACKAGE_VERSION='3.12.0'
615 PACKAGE_STRING='libnl 3.12.0'
616 PACKAGE_BUGREPORT=''
617 PACKAGE_URL='http://www.infradead.org/~tgr/libnl/'
618
619 # Factoring default headers for most tests.
620 ac_includes_default="\
621 #include <stddef.h>
622 #ifdef HAVE_STDIO_H
623 # include <stdio.h>
624 #endif
625 #ifdef HAVE_STDLIB_H
626 # include <stdlib.h>
627 #endif
628 #ifdef HAVE_STRING_H
629 # include <string.h>
630 #endif
631 #ifdef HAVE_INTTYPES_H
632 # include <inttypes.h>
633 #endif
634 #ifdef HAVE_STDINT_H
635 # include <stdint.h>
636 #endif
637 #ifdef HAVE_STRINGS_H
638 # include <strings.h>
639 #endif
640 #ifdef HAVE_SYS_TYPES_H
641 # include <sys/types.h>
642 #endif
643 #ifdef HAVE_SYS_STAT_H
644 # include <sys/stat.h>
645 #endif
646 #ifdef HAVE_UNISTD_H
647 # include <unistd.h>
648 #endif"
649
650 ac_header_c_list=
651 enable_option_checking=no
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 subdirs
657 ENABLE_STATIC_FALSE
658 ENABLE_STATIC_TRUE
659 DISABLE_PTHREADS_FALSE
660 DISABLE_PTHREADS_TRUE
661 ENABLE_CLI_INSTALL_SBIN_FALSE
662 ENABLE_CLI_INSTALL_SBIN_TRUE
663 ENABLE_CLI_INSTALL_BIN_FALSE
664 ENABLE_CLI_INSTALL_BIN_TRUE
665 ENABLE_CLI_FALSE
666 ENABLE_CLI_TRUE
667 pkgconfigdir
668 WITH_CHECK_FALSE
669 WITH_CHECK_TRUE
670 CHECK_LIBS
671 CHECK_CFLAGS
672 PKG_CONFIG_LIBDIR
673 PKG_CONFIG_PATH
674 PKG_CONFIG
675 HAS_CXX_FALSE
676 HAS_CXX_TRUE
677 YACC
678 FLEX
679 CXXCPP
680 LT_SYS_LIBRARY_PATH
681 OTOOL64
682 OTOOL
683 LIPO
684 NMEDIT
685 DSYMUTIL
686 MANIFEST_TOOL
687 RANLIB
688 DLLTOOL
689 OBJDUMP
690 FILECMD
691 LN_S
692 NM
693 ac_ct_DUMPBIN
694 DUMPBIN
695 LD
696 FGREP
697 EGREP
698 GREP
699 SED
700 host_os
701 host_vendor
702 host_cpu
703 host
704 build_os
705 build_vendor
706 build_cpu
707 build
708 LIBTOOL
709 am__fastdepCXX_FALSE
710 am__fastdepCXX_TRUE
711 CXXDEPMODE
712 ac_ct_CXX
713 CXXFLAGS
714 CXX
715 LT_AGE
716 LT_REVISION
717 LT_CURRENT
718 LIBNL_VERSION
719 MIC_VERSION
720 MIN_VERSION
721 MAJ_VERSION
722 am__fastdepCC_FALSE
723 am__fastdepCC_TRUE
724 CCDEPMODE
725 am__nodep
726 AMDEPBACKSLASH
727 AMDEP_FALSE
728 AMDEP_TRUE
729 am__include
730 DEPDIR
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 ac_ct_AR
739 AR
740 am__xargs_n
741 am__rm_f_notfound
742 AM_BACKSLASH
743 AM_DEFAULT_VERBOSITY
744 AM_DEFAULT_V
745 AM_V
746 CSCOPE
747 ETAGS
748 CTAGS
749 am__untar
750 am__tar
751 AMTAR
752 am__leading_dot
753 SET_MAKE
754 AWK
755 mkdir_p
756 MKDIR_P
757 INSTALL_STRIP_PROGRAM
758 STRIP
759 install_sh
760 MAKEINFO
761 AUTOHEADER
762 AUTOMAKE
763 AUTOCONF
764 ACLOCAL
765 VERSION
766 PACKAGE
767 CYGPATH_W
768 am__isrc
769 INSTALL_DATA
770 INSTALL_SCRIPT
771 INSTALL_PROGRAM
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 runstatedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL
811 am__quote'
812 ac_subst_files=''
813 ac_user_opts='
814 enable_option_checking
815 enable_silent_rules
816 enable_dependency_tracking
817 enable_shared
818 enable_static
819 enable_pic
820 with_pic
821 enable_fast_install
822 enable_aix_soname
823 with_aix_soname
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 with_pkgconfigdir
828 enable_cli
829 enable_pthreads
830 enable_debug
831 '
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
835 CC
836 CFLAGS
837 LDFLAGS
838 LIBS
839 CPPFLAGS
840 CXX
841 CXXFLAGS
842 CCC
843 LT_SYS_LIBRARY_PATH
844 CXXCPP
845 PKG_CONFIG
846 PKG_CONFIG_PATH
847 PKG_CONFIG_LIBDIR
848 CHECK_CFLAGS
849 CHECK_LIBS'
850 ac_subdirs_all='doc'
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 runstatedir='${localstatedir}/run'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: '$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: '$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: '$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: '$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: '$ac_option'
1244 Try '$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir runstatedir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: '$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 printf "%s\n" X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 'configure' configures libnl 3.12.0 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print 'checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for '--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or '..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, 'make install' will install all the files in
1425 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than '$ac_default_prefix' using '--prefix',
1427 for instance '--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/libnl]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1453
1454 cat <<\_ACEOF
1455
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of libnl 3.12.0:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-silent-rules less verbose build output (undo: "make V=1")
1478 --disable-silent-rules verbose build output (undo: "make V=0")
1479 --enable-dependency-tracking
1480 do not reject slow dependency extractors
1481 --disable-dependency-tracking
1482 speeds up one-time build
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1485 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1486 both]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --enable-aix-soname=aix|svr4|both
1490 shared library versioning (aka "SONAME") variant to
1491 provide on AIX, [default=aix].
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-cli=yes|no|no-inst|bin|sbin
1494 Whether to build command line interface utils.
1495 Defaults to 'yes' which is a synonym for 'bin'.
1496 'no-inst' means only build, not installing.
1497 'bin'/'sbin' means installing to bin/sbin directory
1498 --disable-pthreads Disable pthreads support
1499 --disable-debug Do not include debugging statements
1500
1501 Optional Packages:
1502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1506 compiler's sysroot if not specified).
1507 --with-pkgconfigdir=PATH
1508 Path to the pkgconfig directory [[LIBDIR/pkgconfig]]
1509
1510 Some influential environment variables:
1511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
1515 LIBS libraries to pass to the linker, e.g. -l<library>
1516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517 you have headers in a nonstandard directory <include dir>
1518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
1520 LT_SYS_LIBRARY_PATH
1521 User-defined run-time library search path.
1522 CXXCPP C++ preprocessor
1523 PKG_CONFIG path to pkg-config utility
1524 PKG_CONFIG_PATH
1525 directories to add to pkg-config's search path
1526 PKG_CONFIG_LIBDIR
1527 path overriding pkg-config's built-in search path
1528 CHECK_CFLAGS
1529 C compiler flags for CHECK, overriding pkg-config
1530 CHECK_LIBS linker flags for CHECK, overriding pkg-config
1531
1532 Use these variables to override the choices made by 'configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 Report bugs to the package provider.
1536 libnl home page: <http://www.infradead.org/~tgr/libnl/>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
1547 ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566 .) # We are building in place.
1567 ac_srcdir=.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for configure.gnu first; this name is used for a wrapper for
1583 # Metaconfig's "Configure" on case-insensitive file systems.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1590 else
1591 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 fi || ac_status=$?
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1594 done
1595 fi
1596
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1599 cat <<\_ACEOF
1600 libnl configure 3.12.0
1601 generated by GNU Autoconf 2.72
1602
1603 Copyright (C) 2023 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1606 _ACEOF
1607 exit
1608 fi
1609
1610 ## ------------------------ ##
1611 ## Autoconf initialization. ##
1612 ## ------------------------ ##
1613
1614 # ac_fn_c_try_compile LINENO
1615 # --------------------------
1616 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1617 ac_fn_c_try_compile ()
1618 {
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 rm -f conftest.$ac_objext conftest.beam
1621 if { { ac_try="$ac_compile"
1622 case "(($ac_try" in
1623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1624 *) ac_try_echo=$ac_try;;
1625 esac
1626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1627 printf "%s\n" "$ac_try_echo"; } >&5
1628 (eval "$ac_compile") 2>conftest.err
1629 ac_status=$?
1630 if test -s conftest.err; then
1631 grep -v '^ *+' conftest.err >conftest.er1
1632 cat conftest.er1 >&5
1633 mv -f conftest.er1 conftest.err
1634 fi
1635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1636 test $ac_status = 0; } && {
1637 test -z "$ac_c_werror_flag" ||
1638 test ! -s conftest.err
1639 } && test -s conftest.$ac_objext
1640 then :
1641 ac_retval=0
1642 else case e in #(
1643 e) printf "%s\n" "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1 ;;
1647 esac
1648 fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_compile
1653
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 printf %s "checking for $2... " >&6; }
1663 if eval test \${$3+y}
1664 then :
1665 printf %s "(cached) " >&6
1666 else case e in #(
1667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"
1673 then :
1674 eval "$3=yes"
1675 else case e in #(
1676 e) eval "$3=no" ;;
1677 esac
1678 fi
1679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1680 esac
1681 fi
1682 eval ac_res=\$$3
1683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 printf "%s\n" "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_header_compile
1688
1689 # ac_fn_cxx_try_compile LINENO
1690 # ----------------------------
1691 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_cxx_try_compile ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest.beam
1696 if { { ac_try="$ac_compile"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 printf "%s\n" "$ac_try_echo"; } >&5
1703 (eval "$ac_compile") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_cxx_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest.$ac_objext
1715 then :
1716 ac_retval=0
1717 else case e in #(
1718 e) printf "%s\n" "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1720
1721 ac_retval=1 ;;
1722 esac
1723 fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_cxx_try_compile
1728
1729 # ac_fn_c_try_link LINENO
1730 # -----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded.
1732 ac_fn_c_try_link ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 printf "%s\n" "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>conftest.err
1744 ac_status=$?
1745 if test -s conftest.err; then
1746 grep -v '^ *+' conftest.err >conftest.er1
1747 cat conftest.er1 >&5
1748 mv -f conftest.er1 conftest.err
1749 fi
1750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && {
1752 test -z "$ac_c_werror_flag" ||
1753 test ! -s conftest.err
1754 } && test -s conftest$ac_exeext && {
1755 test "$cross_compiling" = yes ||
1756 test -x conftest$ac_exeext
1757 }
1758 then :
1759 ac_retval=0
1760 else case e in #(
1761 e) printf "%s\n" "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1 ;;
1765 esac
1766 fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_link
1776
1777 # ac_fn_c_check_func LINENO FUNC VAR
1778 # ----------------------------------
1779 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1780 ac_fn_c_check_func ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 printf %s "checking for $2... " >&6; }
1785 if eval test \${$3+y}
1786 then :
1787 printf %s "(cached) " >&6
1788 else case e in #(
1789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1793 #define $2 innocuous_$2
1794
1795 /* System header to define __stub macros and hopefully few prototypes,
1796 which can conflict with char $2 (void); below. */
1797
1798 #include <limits.h>
1799 #undef $2
1800
1801 /* Override any GCC internal prototype to avoid an error.
1802 Use char because int might match the return type of a GCC
1803 builtin and then its argument prototype would still apply. */
1804 #ifdef __cplusplus
1805 extern "C"
1806 #endif
1807 char $2 (void);
1808 /* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811 #if defined __stub_$2 || defined __stub___$2
1812 choke me
1813 #endif
1814
1815 int
1816 main (void)
1817 {
1818 return $2 ();
1819 ;
1820 return 0;
1821 }
1822 _ACEOF
1823 if ac_fn_c_try_link "$LINENO"
1824 then :
1825 eval "$3=yes"
1826 else case e in #(
1827 e) eval "$3=no" ;;
1828 esac
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1831 conftest$ac_exeext conftest.$ac_ext ;;
1832 esac
1833 fi
1834 eval ac_res=\$$3
1835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 printf "%s\n" "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838
1839 } # ac_fn_c_check_func
1840
1841 # ac_fn_cxx_try_cpp LINENO
1842 # ------------------------
1843 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_cpp ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_cpp conftest.$ac_ext"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 printf "%s\n" "$ac_try_echo"; } >&5
1854 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1860 fi
1861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } > conftest.i && {
1863 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 }
1866 then :
1867 ac_retval=0
1868 else case e in #(
1869 e) printf "%s\n" "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1 ;;
1873 esac
1874 fi
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878 } # ac_fn_cxx_try_cpp
1879
1880 # ac_fn_cxx_try_link LINENO
1881 # -------------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_link ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1887 if { { ac_try="$ac_link"
1888 case "(($ac_try" in
1889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 printf "%s\n" "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1895 ac_status=$?
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1900 fi
1901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 test -x conftest$ac_exeext
1908 }
1909 then :
1910 ac_retval=0
1911 else case e in #(
1912 e) printf "%s\n" "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=1 ;;
1916 esac
1917 fi
1918 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1919 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1920 # interfere with the next link command; also delete a directory that is
1921 # left behind by Apple's compiler. We do this before executing the actions.
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1925
1926 } # ac_fn_cxx_try_link
1927
1928 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1929 # ------------------------------------------------------------------
1930 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1931 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1932 ac_fn_check_decl ()
1933 {
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 as_decl_name=`echo $2|sed 's/ *(.*//'`
1936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1937 printf %s "checking whether $as_decl_name is declared... " >&6; }
1938 if eval test \${$3+y}
1939 then :
1940 printf %s "(cached) " >&6
1941 else case e in #(
1942 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1943 eval ac_save_FLAGS=\$$6
1944 as_fn_append $6 " $5"
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1947 $4
1948 int
1949 main (void)
1950 {
1951 #ifndef $as_decl_name
1952 #ifdef __cplusplus
1953 (void) $as_decl_use;
1954 #else
1955 (void) $as_decl_name;
1956 #endif
1957 #endif
1958
1959 ;
1960 return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"
1964 then :
1965 eval "$3=yes"
1966 else case e in #(
1967 e) eval "$3=no" ;;
1968 esac
1969 fi
1970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1971 eval $6=\$ac_save_FLAGS
1972 ;;
1973 esac
1974 fi
1975 eval ac_res=\$$3
1976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 printf "%s\n" "$ac_res" >&6; }
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979
1980 } # ac_fn_check_decl
1981 ac_configure_args_raw=
1982 for ac_arg
1983 do
1984 case $ac_arg in
1985 *\'*)
1986 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987 esac
1988 as_fn_append ac_configure_args_raw " '$ac_arg'"
1989 done
1990
1991 case $ac_configure_args_raw in
1992 *$as_nl*)
1993 ac_safe_unquote= ;;
1994 *)
1995 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1996 ac_unsafe_a="$ac_unsafe_z#~"
1997 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1998 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1999 esac
2000
2001 cat >config.log <<_ACEOF
2002 This file contains any messages produced by compilers while
2003 running configure, to aid debugging if configure makes a mistake.
2004
2005 It was created by libnl $as_me 3.12.0, which was
2006 generated by GNU Autoconf 2.72. Invocation command line was
2007
2008 $ $0$ac_configure_args_raw
2009
2010 _ACEOF
2011 exec 5>>config.log
2012 {
2013 cat <<_ASUNAME
2014 ## --------- ##
2015 ## Platform. ##
2016 ## --------- ##
2017
2018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2023
2024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2026
2027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2030 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2034
2035 _ASUNAME
2036
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040 IFS=$as_save_IFS
2041 case $as_dir in #(((
2042 '') as_dir=./ ;;
2043 */) ;;
2044 *) as_dir=$as_dir/ ;;
2045 esac
2046 printf "%s\n" "PATH: $as_dir"
2047 done
2048 IFS=$as_save_IFS
2049
2050 } >&5
2051
2052 cat >&5 <<_ACEOF
2053
2054
2055 ## ----------- ##
2056 ## Core tests. ##
2057 ## ----------- ##
2058
2059 _ACEOF
2060
2061
2062 # Keep a trace of the command line.
2063 # Strip out --no-create and --no-recursion so they do not pile up.
2064 # Strip out --silent because we don't want to record it for future runs.
2065 # Also quote any args containing shell meta-characters.
2066 # Make two passes to allow for proper duplicate-argument suppression.
2067 ac_configure_args=
2068 ac_configure_args0=
2069 ac_configure_args1=
2070 ac_must_keep_next=false
2071 for ac_pass in 1 2
2072 do
2073 for ac_arg
2074 do
2075 case $ac_arg in
2076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2078 | -silent | --silent | --silen | --sile | --sil)
2079 continue ;;
2080 *\'*)
2081 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2082 esac
2083 case $ac_pass in
2084 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2085 2)
2086 as_fn_append ac_configure_args1 " '$ac_arg'"
2087 if test $ac_must_keep_next = true; then
2088 ac_must_keep_next=false # Got value, back to normal.
2089 else
2090 case $ac_arg in
2091 *=* | --config-cache | -C | -disable-* | --disable-* \
2092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2094 | -with-* | --with-* | -without-* | --without-* | --x)
2095 case "$ac_configure_args0 " in
2096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2097 esac
2098 ;;
2099 -* ) ac_must_keep_next=true ;;
2100 esac
2101 fi
2102 as_fn_append ac_configure_args " '$ac_arg'"
2103 ;;
2104 esac
2105 done
2106 done
2107 { ac_configure_args0=; unset ac_configure_args0;}
2108 { ac_configure_args1=; unset ac_configure_args1;}
2109
2110 # When interrupted or exit'd, cleanup temporary files, and complete
2111 # config.log. We remove comments because anyway the quotes in there
2112 # would cause problems or look ugly.
2113 # WARNING: Use '\'' to represent an apostrophe within the trap.
2114 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2115 trap 'exit_status=$?
2116 # Sanitize IFS.
2117 IFS=" "" $as_nl"
2118 # Save into config.log some information that might help in debugging.
2119 {
2120 echo
2121
2122 printf "%s\n" "## ---------------- ##
2123 ## Cache variables. ##
2124 ## ---------------- ##"
2125 echo
2126 # The following way of writing the cache mishandles newlines in values,
2127 (
2128 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2129 eval ac_val=\$$ac_var
2130 case $ac_val in #(
2131 *${as_nl}*)
2132 case $ac_var in #(
2133 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2134 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2135 esac
2136 case $ac_var in #(
2137 _ | IFS | as_nl) ;; #(
2138 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2139 *) { eval $ac_var=; unset $ac_var;} ;;
2140 esac ;;
2141 esac
2142 done
2143 (set) 2>&1 |
2144 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2145 *${as_nl}ac_space=\ *)
2146 sed -n \
2147 "s/'\''/'\''\\\\'\'''\''/g;
2148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2149 ;; #(
2150 *)
2151 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2152 ;;
2153 esac |
2154 sort
2155 )
2156 echo
2157
2158 printf "%s\n" "## ----------------- ##
2159 ## Output variables. ##
2160 ## ----------------- ##"
2161 echo
2162 for ac_var in $ac_subst_vars
2163 do
2164 eval ac_val=\$$ac_var
2165 case $ac_val in
2166 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2167 esac
2168 printf "%s\n" "$ac_var='\''$ac_val'\''"
2169 done | sort
2170 echo
2171
2172 if test -n "$ac_subst_files"; then
2173 printf "%s\n" "## ------------------- ##
2174 ## File substitutions. ##
2175 ## ------------------- ##"
2176 echo
2177 for ac_var in $ac_subst_files
2178 do
2179 eval ac_val=\$$ac_var
2180 case $ac_val in
2181 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2182 esac
2183 printf "%s\n" "$ac_var='\''$ac_val'\''"
2184 done | sort
2185 echo
2186 fi
2187
2188 if test -s confdefs.h; then
2189 printf "%s\n" "## ----------- ##
2190 ## confdefs.h. ##
2191 ## ----------- ##"
2192 echo
2193 cat confdefs.h
2194 echo
2195 fi
2196 test "$ac_signal" != 0 &&
2197 printf "%s\n" "$as_me: caught signal $ac_signal"
2198 printf "%s\n" "$as_me: exit $exit_status"
2199 } >&5
2200 rm -f core *.core core.conftest.* &&
2201 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2202 exit $exit_status
2203 ' 0
2204 for ac_signal in 1 2 13 15; do
2205 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2206 done
2207 ac_signal=0
2208
2209 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2210 rm -f -r conftest* confdefs.h
2211
2212 printf "%s\n" "/* confdefs.h */" > confdefs.h
2213
2214 # Predefined preprocessor variables.
2215
2216 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2217
2218 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2219
2220 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2221
2222 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2223
2224 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2225
2226 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2227
2228
2229 # Let the site file select an alternate cache file if it wants to.
2230 # Prefer an explicitly selected file to automatically selected ones.
2231 if test -n "$CONFIG_SITE"; then
2232 ac_site_files="$CONFIG_SITE"
2233 elif test "x$prefix" != xNONE; then
2234 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2235 else
2236 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2237 fi
2238
2239 for ac_site_file in $ac_site_files
2240 do
2241 case $ac_site_file in #(
2242 */*) :
2243 ;; #(
2244 *) :
2245 ac_site_file=./$ac_site_file ;;
2246 esac
2247 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2249 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2250 sed 's/^/| /' "$ac_site_file" >&5
2251 . "$ac_site_file" \
2252 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2253 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2254 as_fn_error $? "failed to load site script $ac_site_file
2255 See 'config.log' for more details" "$LINENO" 5; }
2256 fi
2257 done
2258
2259 if test -r "$cache_file"; then
2260 # Some versions of bash will fail to source /dev/null (special files
2261 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2262 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2264 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2265 case $cache_file in
2266 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2267 *) . "./$cache_file";;
2268 esac
2269 fi
2270 else
2271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2272 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2273 >$cache_file
2274 fi
2275
2276 # Test code for whether the C compiler supports C89 (global declarations)
2277 ac_c_conftest_c89_globals='
2278 /* Does the compiler advertise C89 conformance?
2279 Do not test the value of __STDC__, because some compilers set it to 0
2280 while being otherwise adequately conformant. */
2281 #if !defined __STDC__
2282 # error "Compiler does not advertise C89 conformance"
2283 #endif
2284
2285 #include <stddef.h>
2286 #include <stdarg.h>
2287 struct stat;
2288 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2289 struct buf { int x; };
2290 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2291 static char *e (char **p, int i)
2292 {
2293 return p[i];
2294 }
2295 static char *f (char * (*g) (char **, int), char **p, ...)
2296 {
2297 char *s;
2298 va_list v;
2299 va_start (v,p);
2300 s = g (p, va_arg (v,int));
2301 va_end (v);
2302 return s;
2303 }
2304
2305 /* C89 style stringification. */
2306 #define noexpand_stringify(a) #a
2307 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2308
2309 /* C89 style token pasting. Exercises some of the corner cases that
2310 e.g. old MSVC gets wrong, but not very hard. */
2311 #define noexpand_concat(a,b) a##b
2312 #define expand_concat(a,b) noexpand_concat(a,b)
2313 extern int vA;
2314 extern int vbee;
2315 #define aye A
2316 #define bee B
2317 int *pvA = &expand_concat(v,aye);
2318 int *pvbee = &noexpand_concat(v,bee);
2319
2320 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2321 function prototypes and stuff, but not \xHH hex character constants.
2322 These do not provoke an error unfortunately, instead are silently treated
2323 as an "x". The following induces an error, until -std is added to get
2324 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2325 array size at least. It is necessary to write \x00 == 0 to get something
2326 that is true only with -std. */
2327 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2328
2329 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2330 inside strings and character constants. */
2331 #define FOO(x) '\''x'\''
2332 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2333
2334 int test (int i, double x);
2335 struct s1 {int (*f) (int a);};
2336 struct s2 {int (*f) (double a);};
2337 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2338 int, int);'
2339
2340 # Test code for whether the C compiler supports C89 (body of main).
2341 ac_c_conftest_c89_main='
2342 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2343 '
2344
2345 # Test code for whether the C compiler supports C99 (global declarations)
2346 ac_c_conftest_c99_globals='
2347 /* Does the compiler advertise C99 conformance? */
2348 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2349 # error "Compiler does not advertise C99 conformance"
2350 #endif
2351
2352 // See if C++-style comments work.
2353
2354 #include <stdbool.h>
2355 extern int puts (const char *);
2356 extern int printf (const char *, ...);
2357 extern int dprintf (int, const char *, ...);
2358 extern void *malloc (size_t);
2359 extern void free (void *);
2360
2361 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2362 // dprintf is used instead of fprintf to avoid needing to declare
2363 // FILE and stderr.
2364 #define debug(...) dprintf (2, __VA_ARGS__)
2365 #define showlist(...) puts (#__VA_ARGS__)
2366 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2367 static void
2368 test_varargs_macros (void)
2369 {
2370 int x = 1234;
2371 int y = 5678;
2372 debug ("Flag");
2373 debug ("X = %d\n", x);
2374 showlist (The first, second, and third items.);
2375 report (x>y, "x is %d but y is %d", x, y);
2376 }
2377
2378 // Check long long types.
2379 #define BIG64 18446744073709551615ull
2380 #define BIG32 4294967295ul
2381 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2382 #if !BIG_OK
2383 #error "your preprocessor is broken"
2384 #endif
2385 #if BIG_OK
2386 #else
2387 #error "your preprocessor is broken"
2388 #endif
2389 static long long int bignum = -9223372036854775807LL;
2390 static unsigned long long int ubignum = BIG64;
2391
2392 struct incomplete_array
2393 {
2394 int datasize;
2395 double data[];
2396 };
2397
2398 struct named_init {
2399 int number;
2400 const wchar_t *name;
2401 double average;
2402 };
2403
2404 typedef const char *ccp;
2405
2406 static inline int
2407 test_restrict (ccp restrict text)
2408 {
2409 // Iterate through items via the restricted pointer.
2410 // Also check for declarations in for loops.
2411 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2412 continue;
2413 return 0;
2414 }
2415
2416 // Check varargs and va_copy.
2417 static bool
2418 test_varargs (const char *format, ...)
2419 {
2420 va_list args;
2421 va_start (args, format);
2422 va_list args_copy;
2423 va_copy (args_copy, args);
2424
2425 const char *str = "";
2426 int number = 0;
2427 float fnumber = 0;
2428
2429 while (*format)
2430 {
2431 switch (*format++)
2432 {
2433 case '\''s'\'': // string
2434 str = va_arg (args_copy, const char *);
2435 break;
2436 case '\''d'\'': // int
2437 number = va_arg (args_copy, int);
2438 break;
2439 case '\''f'\'': // float
2440 fnumber = va_arg (args_copy, double);
2441 break;
2442 default:
2443 break;
2444 }
2445 }
2446 va_end (args_copy);
2447 va_end (args);
2448
2449 return *str && number && fnumber;
2450 }
2451 '
2452
2453 # Test code for whether the C compiler supports C99 (body of main).
2454 ac_c_conftest_c99_main='
2455 // Check bool.
2456 _Bool success = false;
2457 success |= (argc != 0);
2458
2459 // Check restrict.
2460 if (test_restrict ("String literal") == 0)
2461 success = true;
2462 char *restrict newvar = "Another string";
2463
2464 // Check varargs.
2465 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2466 test_varargs_macros ();
2467
2468 // Check flexible array members.
2469 struct incomplete_array *ia =
2470 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2471 ia->datasize = 10;
2472 for (int i = 0; i < ia->datasize; ++i)
2473 ia->data[i] = i * 1.234;
2474 // Work around memory leak warnings.
2475 free (ia);
2476
2477 // Check named initializers.
2478 struct named_init ni = {
2479 .number = 34,
2480 .name = L"Test wide string",
2481 .average = 543.34343,
2482 };
2483
2484 ni.number = 58;
2485
2486 int dynamic_array[ni.number];
2487 dynamic_array[0] = argv[0][0];
2488 dynamic_array[ni.number - 1] = 543;
2489
2490 // work around unused variable warnings
2491 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2492 || dynamic_array[ni.number - 1] != 543);
2493 '
2494
2495 # Test code for whether the C compiler supports C11 (global declarations)
2496 ac_c_conftest_c11_globals='
2497 /* Does the compiler advertise C11 conformance? */
2498 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2499 # error "Compiler does not advertise C11 conformance"
2500 #endif
2501
2502 // Check _Alignas.
2503 char _Alignas (double) aligned_as_double;
2504 char _Alignas (0) no_special_alignment;
2505 extern char aligned_as_int;
2506 char _Alignas (0) _Alignas (int) aligned_as_int;
2507
2508 // Check _Alignof.
2509 enum
2510 {
2511 int_alignment = _Alignof (int),
2512 int_array_alignment = _Alignof (int[100]),
2513 char_alignment = _Alignof (char)
2514 };
2515 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2516
2517 // Check _Noreturn.
2518 int _Noreturn does_not_return (void) { for (;;) continue; }
2519
2520 // Check _Static_assert.
2521 struct test_static_assert
2522 {
2523 int x;
2524 _Static_assert (sizeof (int) <= sizeof (long int),
2525 "_Static_assert does not work in struct");
2526 long int y;
2527 };
2528
2529 // Check UTF-8 literals.
2530 #define u8 syntax error!
2531 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2532
2533 // Check duplicate typedefs.
2534 typedef long *long_ptr;
2535 typedef long int *long_ptr;
2536 typedef long_ptr long_ptr;
2537
2538 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2539 struct anonymous
2540 {
2541 union {
2542 struct { int i; int j; };
2543 struct { int k; long int l; } w;
2544 };
2545 int m;
2546 } v1;
2547 '
2548
2549 # Test code for whether the C compiler supports C11 (body of main).
2550 ac_c_conftest_c11_main='
2551 _Static_assert ((offsetof (struct anonymous, i)
2552 == offsetof (struct anonymous, w.k)),
2553 "Anonymous union alignment botch");
2554 v1.i = 2;
2555 v1.w.k = 5;
2556 ok |= v1.i != 5;
2557 '
2558
2559 # Test code for whether the C compiler supports C11 (complete).
2560 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2561 ${ac_c_conftest_c99_globals}
2562 ${ac_c_conftest_c11_globals}
2563
2564 int
2565 main (int argc, char **argv)
2566 {
2567 int ok = 0;
2568 ${ac_c_conftest_c89_main}
2569 ${ac_c_conftest_c99_main}
2570 ${ac_c_conftest_c11_main}
2571 return ok;
2572 }
2573 "
2574
2575 # Test code for whether the C compiler supports C99 (complete).
2576 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2577 ${ac_c_conftest_c99_globals}
2578
2579 int
2580 main (int argc, char **argv)
2581 {
2582 int ok = 0;
2583 ${ac_c_conftest_c89_main}
2584 ${ac_c_conftest_c99_main}
2585 return ok;
2586 }
2587 "
2588
2589 # Test code for whether the C compiler supports C89 (complete).
2590 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2591
2592 int
2593 main (int argc, char **argv)
2594 {
2595 int ok = 0;
2596 ${ac_c_conftest_c89_main}
2597 return ok;
2598 }
2599 "
2600
2601 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2602 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2603 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2604 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2605 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2606 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2607 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2608 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2609 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2610 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2611 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2612 # Test code for whether the C++ compiler supports C++98 (global declarations)
2613 ac_cxx_conftest_cxx98_globals='
2614 // Does the compiler advertise C++98 conformance?
2615 #if !defined __cplusplus || __cplusplus < 199711L
2616 # error "Compiler does not advertise C++98 conformance"
2617 #endif
2618
2619 // These inclusions are to reject old compilers that
2620 // lack the unsuffixed header files.
2621 #include <cstdlib>
2622 #include <exception>
2623
2624 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2625 extern void assert (int);
2626 namespace std {
2627 extern int strcmp (const char *, const char *);
2628 }
2629
2630 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2631 using std::exception;
2632 using std::strcmp;
2633
2634 namespace {
2635
2636 void test_exception_syntax()
2637 {
2638 try {
2639 throw "test";
2640 } catch (const char *s) {
2641 // Extra parentheses suppress a warning when building autoconf itself,
2642 // due to lint rules shared with more typical C programs.
2643 assert (!(strcmp) (s, "test"));
2644 }
2645 }
2646
2647 template <typename T> struct test_template
2648 {
2649 T const val;
2650 explicit test_template(T t) : val(t) {}
2651 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2652 };
2653
2654 } // anonymous namespace
2655 '
2656
2657 # Test code for whether the C++ compiler supports C++98 (body of main)
2658 ac_cxx_conftest_cxx98_main='
2659 assert (argc);
2660 assert (! argv[0]);
2661 {
2662 test_exception_syntax ();
2663 test_template<double> tt (2.0);
2664 assert (tt.add (4) == 6.0);
2665 assert (true && !false);
2666 }
2667 '
2668
2669 # Test code for whether the C++ compiler supports C++11 (global declarations)
2670 ac_cxx_conftest_cxx11_globals='
2671 // Does the compiler advertise C++ 2011 conformance?
2672 #if !defined __cplusplus || __cplusplus < 201103L
2673 # error "Compiler does not advertise C++11 conformance"
2674 #endif
2675
2676 namespace cxx11test
2677 {
2678 constexpr int get_val() { return 20; }
2679
2680 struct testinit
2681 {
2682 int i;
2683 double d;
2684 };
2685
2686 class delegate
2687 {
2688 public:
2689 delegate(int n) : n(n) {}
2690 delegate(): delegate(2354) {}
2691
2692 virtual int getval() { return this->n; };
2693 protected:
2694 int n;
2695 };
2696
2697 class overridden : public delegate
2698 {
2699 public:
2700 overridden(int n): delegate(n) {}
2701 virtual int getval() override final { return this->n * 2; }
2702 };
2703
2704 class nocopy
2705 {
2706 public:
2707 nocopy(int i): i(i) {}
2708 nocopy() = default;
2709 nocopy(const nocopy&) = delete;
2710 nocopy & operator=(const nocopy&) = delete;
2711 private:
2712 int i;
2713 };
2714
2715 // for testing lambda expressions
2716 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2717 {
2718 return f(v);
2719 }
2720
2721 // for testing variadic templates and trailing return types
2722 template <typename V> auto sum(V first) -> V
2723 {
2724 return first;
2725 }
2726 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2727 {
2728 return first + sum(rest...);
2729 }
2730 }
2731 '
2732
2733 # Test code for whether the C++ compiler supports C++11 (body of main)
2734 ac_cxx_conftest_cxx11_main='
2735 {
2736 // Test auto and decltype
2737 auto a1 = 6538;
2738 auto a2 = 48573953.4;
2739 auto a3 = "String literal";
2740
2741 int total = 0;
2742 for (auto i = a3; *i; ++i) { total += *i; }
2743
2744 decltype(a2) a4 = 34895.034;
2745 }
2746 {
2747 // Test constexpr
2748 short sa[cxx11test::get_val()] = { 0 };
2749 }
2750 {
2751 // Test initializer lists
2752 cxx11test::testinit il = { 4323, 435234.23544 };
2753 }
2754 {
2755 // Test range-based for
2756 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2757 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2758 for (auto &x : array) { x += 23; }
2759 }
2760 {
2761 // Test lambda expressions
2762 using cxx11test::eval;
2763 assert (eval ([](int x) { return x*2; }, 21) == 42);
2764 double d = 2.0;
2765 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2766 assert (d == 5.0);
2767 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2768 assert (d == 5.0);
2769 }
2770 {
2771 // Test use of variadic templates
2772 using cxx11test::sum;
2773 auto a = sum(1);
2774 auto b = sum(1, 2);
2775 auto c = sum(1.0, 2.0, 3.0);
2776 }
2777 {
2778 // Test constructor delegation
2779 cxx11test::delegate d1;
2780 cxx11test::delegate d2();
2781 cxx11test::delegate d3(45);
2782 }
2783 {
2784 // Test override and final
2785 cxx11test::overridden o1(55464);
2786 }
2787 {
2788 // Test nullptr
2789 char *c = nullptr;
2790 }
2791 {
2792 // Test template brackets
2793 test_template<::test_template<int>> v(test_template<int>(12));
2794 }
2795 {
2796 // Unicode literals
2797 char const *utf8 = u8"UTF-8 string \u2500";
2798 char16_t const *utf16 = u"UTF-8 string \u2500";
2799 char32_t const *utf32 = U"UTF-32 string \u2500";
2800 }
2801 '
2802
2803 # Test code for whether the C compiler supports C++11 (complete).
2804 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2805 ${ac_cxx_conftest_cxx11_globals}
2806
2807 int
2808 main (int argc, char **argv)
2809 {
2810 int ok = 0;
2811 ${ac_cxx_conftest_cxx98_main}
2812 ${ac_cxx_conftest_cxx11_main}
2813 return ok;
2814 }
2815 "
2816
2817 # Test code for whether the C compiler supports C++98 (complete).
2818 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2819 int
2820 main (int argc, char **argv)
2821 {
2822 int ok = 0;
2823 ${ac_cxx_conftest_cxx98_main}
2824 return ok;
2825 }
2826 "
2827
2828
2829 # Auxiliary files required by this configure script.
2830 ac_aux_files="config.guess config.sub ltmain.sh compile ar-lib missing install-sh"
2831
2832 # Locations in which to look for auxiliary files.
2833 ac_aux_dir_candidates="${srcdir}/build-aux"
2834
2835 # Search for a directory containing all of the required auxiliary files,
2836 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2837 # If we don't find one directory that contains all the files we need,
2838 # we report the set of missing files from the *first* directory in
2839 # $ac_aux_dir_candidates and give up.
2840 ac_missing_aux_files=""
2841 ac_first_candidate=:
2842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 as_found=false
2845 for as_dir in $ac_aux_dir_candidates
2846 do
2847 IFS=$as_save_IFS
2848 case $as_dir in #(((
2849 '') as_dir=./ ;;
2850 */) ;;
2851 *) as_dir=$as_dir/ ;;
2852 esac
2853 as_found=:
2854
2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2856 ac_aux_dir_found=yes
2857 ac_install_sh=
2858 for ac_aux in $ac_aux_files
2859 do
2860 # As a special case, if "install-sh" is required, that requirement
2861 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2862 # and $ac_install_sh is set appropriately for whichever one is found.
2863 if test x"$ac_aux" = x"install-sh"
2864 then
2865 if test -f "${as_dir}install-sh"; then
2866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2867 ac_install_sh="${as_dir}install-sh -c"
2868 elif test -f "${as_dir}install.sh"; then
2869 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2870 ac_install_sh="${as_dir}install.sh -c"
2871 elif test -f "${as_dir}shtool"; then
2872 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2873 ac_install_sh="${as_dir}shtool install -c"
2874 else
2875 ac_aux_dir_found=no
2876 if $ac_first_candidate; then
2877 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2878 else
2879 break
2880 fi
2881 fi
2882 else
2883 if test -f "${as_dir}${ac_aux}"; then
2884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2885 else
2886 ac_aux_dir_found=no
2887 if $ac_first_candidate; then
2888 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2889 else
2890 break
2891 fi
2892 fi
2893 fi
2894 done
2895 if test "$ac_aux_dir_found" = yes; then
2896 ac_aux_dir="$as_dir"
2897 break
2898 fi
2899 ac_first_candidate=false
2900
2901 as_found=false
2902 done
2903 IFS=$as_save_IFS
2904 if $as_found
2905 then :
2906
2907 else case e in #(
2908 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2909 esac
2910 fi
2911
2912
2913 # These three variables are undocumented and unsupported,
2914 # and are intended to be withdrawn in a future Autoconf release.
2915 # They can cause serious problems if a builder's source tree is in a directory
2916 # whose full name contains unusual characters.
2917 if test -f "${ac_aux_dir}config.guess"; then
2918 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2919 fi
2920 if test -f "${ac_aux_dir}config.sub"; then
2921 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2922 fi
2923 if test -f "$ac_aux_dir/configure"; then
2924 ac_configure="$SHELL ${ac_aux_dir}configure"
2925 fi
2926
2927 # Check that the precious variables saved in the cache have kept the same
2928 # value.
2929 ac_cache_corrupted=false
2930 for ac_var in $ac_precious_vars; do
2931 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2932 eval ac_new_set=\$ac_env_${ac_var}_set
2933 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2934 eval ac_new_val=\$ac_env_${ac_var}_value
2935 case $ac_old_set,$ac_new_set in
2936 set,)
2937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2938 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2939 ac_cache_corrupted=: ;;
2940 ,set)
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2942 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2943 ac_cache_corrupted=: ;;
2944 ,);;
2945 *)
2946 if test "x$ac_old_val" != "x$ac_new_val"; then
2947 # differences in whitespace do not lead to failure.
2948 ac_old_val_w=`echo x $ac_old_val`
2949 ac_new_val_w=`echo x $ac_new_val`
2950 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2952 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2953 ac_cache_corrupted=:
2954 else
2955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2956 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2957 eval $ac_var=\$ac_old_val
2958 fi
2959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2960 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2962 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2963 fi;;
2964 esac
2965 # Pass precious variables to config.status.
2966 if test "$ac_new_set" = set; then
2967 case $ac_new_val in
2968 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2969 *) ac_arg=$ac_var=$ac_new_val ;;
2970 esac
2971 case " $ac_configure_args " in
2972 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2973 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2974 esac
2975 fi
2976 done
2977 if $ac_cache_corrupted; then
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2979 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2981 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2982 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2983 and start over" "$LINENO" 5
2984 fi
2985 ## -------------------- ##
2986 ## Main body of script. ##
2987 ## -------------------- ##
2988
2989 ac_ext=c
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994
2995
2996 ac_config_headers="$ac_config_headers include/config.h"
2997
2998
2999
3000 am__api_version='1.18'
3001
3002
3003
3004 # Find a good install program. We prefer a C program (faster),
3005 # so one script is as good as another. But avoid the broken or
3006 # incompatible versions:
3007 # SysV /etc/install, /usr/sbin/install
3008 # SunOS /usr/etc/install
3009 # IRIX /sbin/install
3010 # AIX /bin/install
3011 # AmigaOS /C/install, which installs bootblocks on floppy discs
3012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3015 # OS/2's system install, which has a completely different semantic
3016 # ./install, which can be erroneously created by make from ./install.sh.
3017 # Reject install programs that cannot install multiple files.
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3019 printf %s "checking for a BSD-compatible install... " >&6; }
3020 if test -z "$INSTALL"; then
3021 if test ${ac_cv_path_install+y}
3022 then :
3023 printf %s "(cached) " >&6
3024 else case e in #(
3025 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3027 do
3028 IFS=$as_save_IFS
3029 case $as_dir in #(((
3030 '') as_dir=./ ;;
3031 */) ;;
3032 *) as_dir=$as_dir/ ;;
3033 esac
3034 # Account for fact that we put trailing slashes in our PATH walk.
3035 case $as_dir in #((
3036 ./ | /[cC]/* | \
3037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3038 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3039 /usr/ucb/* ) ;;
3040 *)
3041 # OSF1 and SCO ODT 3.0 have their own names for install.
3042 # Don't use installbsd from OSF since it installs stuff as root
3043 # by default.
3044 for ac_prog in ginstall scoinst install; do
3045 for ac_exec_ext in '' $ac_executable_extensions; do
3046 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3047 if test $ac_prog = install &&
3048 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3049 # AIX install. It has an incompatible calling convention.
3050 :
3051 elif test $ac_prog = install &&
3052 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3053 # program-specific install script used by HP pwplus--don't use.
3054 :
3055 else
3056 rm -rf conftest.one conftest.two conftest.dir
3057 echo one > conftest.one
3058 echo two > conftest.two
3059 mkdir conftest.dir
3060 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3061 test -s conftest.one && test -s conftest.two &&
3062 test -s conftest.dir/conftest.one &&
3063 test -s conftest.dir/conftest.two
3064 then
3065 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3066 break 3
3067 fi
3068 fi
3069 fi
3070 done
3071 done
3072 ;;
3073 esac
3074
3075 done
3076 IFS=$as_save_IFS
3077
3078 rm -rf conftest.one conftest.two conftest.dir
3079 ;;
3080 esac
3081 fi
3082 if test ${ac_cv_path_install+y}; then
3083 INSTALL=$ac_cv_path_install
3084 else
3085 # As a last resort, use the slow shell script. Don't cache a
3086 # value for INSTALL within a source directory, because that will
3087 # break other packages using the cache if that directory is
3088 # removed, or if the value is a relative name.
3089 INSTALL=$ac_install_sh
3090 fi
3091 fi
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3093 printf "%s\n" "$INSTALL" >&6; }
3094
3095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3096 # It thinks the first close brace ends the variable substitution.
3097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3098
3099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3100
3101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3102
3103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3104 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3105 if test ${am_cv_sleep_fractional_seconds+y}
3106 then :
3107 printf %s "(cached) " >&6
3108 else case e in #(
3109 e) if sleep 0.001 2>/dev/null
3110 then :
3111 am_cv_sleep_fractional_seconds=yes
3112 else case e in #(
3113 e) am_cv_sleep_fractional_seconds=no ;;
3114 esac
3115 fi
3116 ;;
3117 esac
3118 fi
3119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3120 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3121
3122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3123 printf %s "checking filesystem timestamp resolution... " >&6; }
3124 if test ${am_cv_filesystem_timestamp_resolution+y}
3125 then :
3126 printf %s "(cached) " >&6
3127 else case e in #(
3128 e) # Default to the worst case.
3129 am_cv_filesystem_timestamp_resolution=2
3130
3131 # Only try to go finer than 1 sec if sleep can do it.
3132 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3133 # - 1 sec is not much of a win compared to 2 sec, and
3134 # - it takes 2 seconds to perform the test whether 1 sec works.
3135 #
3136 # Instead, just use the default 2s on platforms that have 1s resolution,
3137 # accept the extra 1s delay when using $sleep in the Automake tests, in
3138 # exchange for not incurring the 2s delay for running the test for all
3139 # packages.
3140 #
3141 am_try_resolutions=
3142 if test "$am_cv_sleep_fractional_seconds" = yes; then
3143 # Even a millisecond often causes a bunch of false positives,
3144 # so just try a hundredth of a second. The time saved between .001 and
3145 # .01 is not terribly consequential.
3146 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3147 fi
3148
3149 # In order to catch current-generation FAT out, we must *modify* files
3150 # that already exist; the *creation* timestamp is finer. Use names
3151 # that make ls -t sort them differently when they have equal
3152 # timestamps than when they have distinct timestamps, keeping
3153 # in mind that ls -t prints the *newest* file first.
3154 rm -f conftest.ts?
3155 : > conftest.ts1
3156 : > conftest.ts2
3157 : > conftest.ts3
3158
3159 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3160 # clobber the current shell's arguments. (Outer-level square brackets
3161 # are removed by m4; they're present so that m4 does not expand
3162 # <dollar><star>; be careful, easy to get confused.)
3163 if (
3164 set X `ls -t conftest.ts[12]` &&
3165 {
3166 test "$*" != "X conftest.ts1 conftest.ts2" ||
3167 test "$*" != "X conftest.ts2 conftest.ts1";
3168 }
3169 ); then :; else
3170 # If neither matched, then we have a broken ls. This can happen
3171 # if, for instance, CONFIG_SHELL is bash and it inherits a
3172 # broken ls alias from the environment. This has actually
3173 # happened. Such a system could not be considered "sane".
3174 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
3175 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3176 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3177 as_fn_error $? "ls -t produces unexpected output.
3178 Make sure there is not a broken ls alias in your environment.
3179 See 'config.log' for more details" "$LINENO" 5; }
3180 fi
3181
3182 for am_try_res in $am_try_resolutions; do
3183 # Any one fine-grained sleep might happen to cross the boundary
3184 # between two values of a coarser actual resolution, but if we do
3185 # two fine-grained sleeps in a row, at least one of them will fall
3186 # entirely within a coarse interval.
3187 echo alpha > conftest.ts1
3188 sleep $am_try_res
3189 echo beta > conftest.ts2
3190 sleep $am_try_res
3191 echo gamma > conftest.ts3
3192
3193 # We assume that 'ls -t' will make use of high-resolution
3194 # timestamps if the operating system supports them at all.
3195 if (set X `ls -t conftest.ts?` &&
3196 test "$2" = conftest.ts3 &&
3197 test "$3" = conftest.ts2 &&
3198 test "$4" = conftest.ts1); then
3199 #
3200 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
3201 # because we don't need to test make.
3202 make_ok=true
3203 if test $am_try_res != 1; then
3204 # But if we've succeeded so far with a subsecond resolution, we
3205 # have one more thing to check: make. It can happen that
3206 # everything else supports the subsecond mtimes, but make doesn't;
3207 # notably on macOS, which ships make 3.81 from 2006 (the last one
3208 # released under GPLv2). https://bugs.gnu.org/68808
3209 #
3210 # We test $MAKE if it is defined in the environment, else "make".
3211 # It might get overridden later, but our hope is that in practice
3212 # it does not matter: it is the system "make" which is (by far)
3213 # the most likely to be broken, whereas if the user overrides it,
3214 # probably they did so with a better, or at least not worse, make.
3215 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
3216 #
3217 # Create a Makefile (real tab character here):
3218 rm -f conftest.mk
3219 echo 'conftest.ts1: conftest.ts2' >conftest.mk
3220 echo ' touch conftest.ts2' >>conftest.mk
3221 #
3222 # Now, running
3223 # touch conftest.ts1; touch conftest.ts2; make
3224 # should touch ts1 because ts2 is newer. This could happen by luck,
3225 # but most often, it will fail if make's support is insufficient. So
3226 # test for several consecutive successes.
3227 #
3228 # (We reuse conftest.ts[12] because we still want to modify existing
3229 # files, not create new ones, per above.)
3230 n=0
3231 make=${MAKE-make}
3232 until test $n -eq 3; do
3233 echo one > conftest.ts1
3234 sleep $am_try_res
3235 echo two > conftest.ts2 # ts2 should now be newer than ts1
3236 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
3237 make_ok=false
3238 break # out of $n loop
3239 fi
3240 n=`expr $n + 1`
3241 done
3242 fi
3243 #
3244 if $make_ok; then
3245 # Everything we know to check worked out, so call this resolution good.
3246 am_cv_filesystem_timestamp_resolution=$am_try_res
3247 break # out of $am_try_res loop
3248 fi
3249 # Otherwise, we'll go on to check the next resolution.
3250 fi
3251 done
3252 rm -f conftest.ts?
3253 # (end _am_filesystem_timestamp_resolution)
3254 ;;
3255 esac
3256 fi
3257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
3258 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
3259
3260 # This check should not be cached, as it may vary across builds of
3261 # different projects.
3262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3263 printf %s "checking whether build environment is sane... " >&6; }
3264 # Reject unsafe characters in $srcdir or the absolute working directory
3265 # name. Accept space and tab only in the latter.
3266 am_lf='
3267 '
3268 case `pwd` in
3269 *[\\\"\#\$\&\'\`$am_lf]*)
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 printf "%s\n" "no" >&6; }
3272 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3273 esac
3274 case $srcdir in
3275 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277 printf "%s\n" "no" >&6; }
3278 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3279 esac
3280
3281 # Do 'set' in a subshell so we don't clobber the current shell's
3282 # arguments. Must try -L first in case configure is actually a
3283 # symlink; some systems play weird games with the mod time of symlinks
3284 # (eg FreeBSD returns the mod time of the symlink's containing
3285 # directory).
3286 am_build_env_is_sane=no
3287 am_has_slept=no
3288 rm -f conftest.file
3289 for am_try in 1 2; do
3290 echo "timestamp, slept: $am_has_slept" > conftest.file
3291 if (
3292 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3293 if test "$*" = "X"; then
3294 # -L didn't work.
3295 set X `ls -t "$srcdir/configure" conftest.file`
3296 fi
3297 test "$2" = conftest.file
3298 ); then
3299 am_build_env_is_sane=yes
3300 break
3301 fi
3302 # Just in case.
3303 sleep "$am_cv_filesystem_timestamp_resolution"
3304 am_has_slept=yes
3305 done
3306
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
3308 printf "%s\n" "$am_build_env_is_sane" >&6; }
3309 if test "$am_build_env_is_sane" = no; then
3310 as_fn_error $? "newly created file is older than distributed files!
3311 Check your system clock" "$LINENO" 5
3312 fi
3313
3314 # If we didn't sleep, we still need to ensure time stamps of config.status and
3315 # generated files are strictly newer.
3316 am_sleep_pid=
3317 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
3318 then :
3319
3320 else case e in #(
3321 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
3322 am_sleep_pid=$!
3323 ;;
3324 esac
3325 fi
3326
3327 rm -f conftest.file
3328
3329 test "$program_prefix" != NONE &&
3330 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3331 # Use a double $ so make ignores it.
3332 test "$program_suffix" != NONE &&
3333 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3334 # Double any \ or $.
3335 # By default was 's,x,x', remove it if useless.
3336 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3337 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3338
3339
3340 # Expand $ac_aux_dir to an absolute path.
3341 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3342
3343
3344 if test x"${MISSING+set}" != xset; then
3345 MISSING="\${SHELL} '$am_aux_dir/missing'"
3346 fi
3347 # Use eval to expand $SHELL
3348 if eval "$MISSING --is-lightweight"; then
3349 am_missing_run="$MISSING "
3350 else
3351 am_missing_run=
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3353 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3354 fi
3355
3356 if test x"${install_sh+set}" != xset; then
3357 case $am_aux_dir in
3358 *\ * | *\ *)
3359 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3360 *)
3361 install_sh="\${SHELL} $am_aux_dir/install-sh"
3362 esac
3363 fi
3364
3365 # Installed binaries are usually stripped using 'strip' when the user
3366 # run "make install-strip". However 'strip' might not be the right
3367 # tool to use in cross-compilation environments, therefore Automake
3368 # will honor the 'STRIP' environment variable to overrule this program.
3369 if test "$cross_compiling" != no; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}strip; ac_word=$2
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 printf %s "checking for $ac_word... " >&6; }
3375 if test ${ac_cv_prog_STRIP+y}
3376 then :
3377 printf %s "(cached) " >&6
3378 else case e in #(
3379 e) if test -n "$STRIP"; then
3380 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 case $as_dir in #(((
3387 '') as_dir=./ ;;
3388 */) ;;
3389 *) as_dir=$as_dir/ ;;
3390 esac
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi ;;
3402 esac
3403 fi
3404 STRIP=$ac_cv_prog_STRIP
3405 if test -n "$STRIP"; then
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3407 printf "%s\n" "$STRIP" >&6; }
3408 else
3409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 printf "%s\n" "no" >&6; }
3411 fi
3412
3413
3414 fi
3415 if test -z "$ac_cv_prog_STRIP"; then
3416 ac_ct_STRIP=$STRIP
3417 # Extract the first word of "strip", so it can be a program name with args.
3418 set dummy strip; ac_word=$2
3419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 printf %s "checking for $ac_word... " >&6; }
3421 if test ${ac_cv_prog_ac_ct_STRIP+y}
3422 then :
3423 printf %s "(cached) " >&6
3424 else case e in #(
3425 e) if test -n "$ac_ct_STRIP"; then
3426 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3427 else
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431 IFS=$as_save_IFS
3432 case $as_dir in #(((
3433 '') as_dir=./ ;;
3434 */) ;;
3435 *) as_dir=$as_dir/ ;;
3436 esac
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3439 ac_cv_prog_ac_ct_STRIP="strip"
3440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443 done
3444 done
3445 IFS=$as_save_IFS
3446
3447 fi ;;
3448 esac
3449 fi
3450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3451 if test -n "$ac_ct_STRIP"; then
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3453 printf "%s\n" "$ac_ct_STRIP" >&6; }
3454 else
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 printf "%s\n" "no" >&6; }
3457 fi
3458
3459 if test "x$ac_ct_STRIP" = x; then
3460 STRIP=":"
3461 else
3462 case $cross_compiling:$ac_tool_warned in
3463 yes:)
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3465 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3466 ac_tool_warned=yes ;;
3467 esac
3468 STRIP=$ac_ct_STRIP
3469 fi
3470 else
3471 STRIP="$ac_cv_prog_STRIP"
3472 fi
3473
3474 fi
3475 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3476
3477
3478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3479 printf %s "checking for a race-free mkdir -p... " >&6; }
3480 if test -z "$MKDIR_P"; then
3481 if test ${ac_cv_path_mkdir+y}
3482 then :
3483 printf %s "(cached) " >&6
3484 else case e in #(
3485 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3487 do
3488 IFS=$as_save_IFS
3489 case $as_dir in #(((
3490 '') as_dir=./ ;;
3491 */) ;;
3492 *) as_dir=$as_dir/ ;;
3493 esac
3494 for ac_prog in mkdir gmkdir; do
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3497 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3498 'mkdir ('*'coreutils) '* | \
3499 *'BusyBox '* | \
3500 'mkdir (fileutils) '4.1*)
3501 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3502 break 3;;
3503 esac
3504 done
3505 done
3506 done
3507 IFS=$as_save_IFS
3508 ;;
3509 esac
3510 fi
3511
3512 test -d ./--version && rmdir ./--version
3513 if test ${ac_cv_path_mkdir+y}; then
3514 MKDIR_P="$ac_cv_path_mkdir -p"
3515 else
3516 # As a last resort, use plain mkdir -p,
3517 # in the hope it doesn't have the bugs of ancient mkdir.
3518 MKDIR_P='mkdir -p'
3519 fi
3520 fi
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3522 printf "%s\n" "$MKDIR_P" >&6; }
3523
3524 for ac_prog in gawk mawk nawk awk
3525 do
3526 # Extract the first word of "$ac_prog", so it can be a program name with args.
3527 set dummy $ac_prog; ac_word=$2
3528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 printf %s "checking for $ac_word... " >&6; }
3530 if test ${ac_cv_prog_AWK+y}
3531 then :
3532 printf %s "(cached) " >&6
3533 else case e in #(
3534 e) if test -n "$AWK"; then
3535 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540 IFS=$as_save_IFS
3541 case $as_dir in #(((
3542 '') as_dir=./ ;;
3543 */) ;;
3544 *) as_dir=$as_dir/ ;;
3545 esac
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3548 ac_cv_prog_AWK="$ac_prog"
3549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 fi ;;
3557 esac
3558 fi
3559 AWK=$ac_cv_prog_AWK
3560 if test -n "$AWK"; then
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3562 printf "%s\n" "$AWK" >&6; }
3563 else
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 printf "%s\n" "no" >&6; }
3566 fi
3567
3568
3569 test -n "$AWK" && break
3570 done
3571
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3573 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3574 set x ${MAKE-make}
3575 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3576 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3577 then :
3578 printf %s "(cached) " >&6
3579 else case e in #(
3580 e) cat >conftest.make <<\_ACEOF
3581 SHELL = /bin/sh
3582 all:
3583 @echo '@@@%%%=$(MAKE)=@@@%%%'
3584 _ACEOF
3585 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3586 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3587 *@@@%%%=?*=@@@%%%*)
3588 eval ac_cv_prog_make_${ac_make}_set=yes;;
3589 *)
3590 eval ac_cv_prog_make_${ac_make}_set=no;;
3591 esac
3592 rm -f conftest.make ;;
3593 esac
3594 fi
3595 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3597 printf "%s\n" "yes" >&6; }
3598 SET_MAKE=
3599 else
3600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 printf "%s\n" "no" >&6; }
3602 SET_MAKE="MAKE=${MAKE-make}"
3603 fi
3604
3605 rm -rf .tst 2>/dev/null
3606 mkdir .tst 2>/dev/null
3607 if test -d .tst; then
3608 am__leading_dot=.
3609 else
3610 am__leading_dot=_
3611 fi
3612 rmdir .tst 2>/dev/null
3613
3614 AM_DEFAULT_VERBOSITY=1
3615 # Check whether --enable-silent-rules was given.
3616 if test ${enable_silent_rules+y}
3617 then :
3618 enableval=$enable_silent_rules;
3619 fi
3620
3621 am_make=${MAKE-make}
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3623 printf %s "checking whether $am_make supports nested variables... " >&6; }
3624 if test ${am_cv_make_support_nested_variables+y}
3625 then :
3626 printf %s "(cached) " >&6
3627 else case e in #(
3628 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3629 BAR0=false
3630 BAR1=true
3631 V=1
3632 am__doit:
3633 @$(TRUE)
3634 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3635 am_cv_make_support_nested_variables=yes
3636 else
3637 am_cv_make_support_nested_variables=no
3638 fi ;;
3639 esac
3640 fi
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3642 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3643 AM_BACKSLASH='\'
3644
3645 am__rm_f_notfound=
3646 if (rm -f && rm -fr && rm -rf) 2>/dev/null
3647 then :
3648
3649 else case e in #(
3650 e) am__rm_f_notfound='""' ;;
3651 esac
3652 fi
3653
3654
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
3656 printf %s "checking xargs -n works... " >&6; }
3657 if test ${am_cv_xargs_n_works+y}
3658 then :
3659 printf %s "(cached) " >&6
3660 else case e in #(
3661 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
3662 3"
3663 then :
3664 am_cv_xargs_n_works=yes
3665 else case e in #(
3666 e) am_cv_xargs_n_works=no ;;
3667 esac
3668 fi ;;
3669 esac
3670 fi
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
3672 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
3673 if test "$am_cv_xargs_n_works" = yes
3674 then :
3675 am__xargs_n='xargs -n'
3676 else case e in #(
3677 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
3678 ;;
3679 esac
3680 fi
3681
3682 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3683 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3684 # is not polluted with repeated "-I."
3685 am__isrc=' -I$(srcdir)'
3686 # test to see if srcdir already configured
3687 if test -f $srcdir/config.status; then
3688 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3689 fi
3690 fi
3691
3692 # test whether we have cygpath
3693 if test -z "$CYGPATH_W"; then
3694 if (cygpath --version) >/dev/null 2>/dev/null; then
3695 CYGPATH_W='cygpath -w'
3696 else
3697 CYGPATH_W=echo
3698 fi
3699 fi
3700
3701
3702 # Define the identity of the package.
3703 PACKAGE='libnl'
3704 VERSION='3.12.0'
3705
3706
3707 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3708
3709
3710 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3711
3712 # Some tools Automake needs.
3713
3714 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3715
3716
3717 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3718
3719
3720 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3721
3722
3723 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3724
3725
3726 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3727
3728 # For better backward compatibility. To be removed once Automake 1.9.x
3729 # dies out for good. For more background, see:
3730 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3731 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3732 mkdir_p='$(MKDIR_P)'
3733
3734 # We need awk for the "check" target (and possibly the TAP driver). The
3735 # system "awk" is bad on some platforms.
3736 # Always define AMTAR for backward compatibility. Yes, it's still used
3737 # in the wild :-( We should find a proper way to deprecate it ...
3738 AMTAR='$${TAR-tar}'
3739
3740
3741 # We'll loop over all known methods to create a tar archive until one works.
3742 _am_tools='gnutar plaintar pax cpio none'
3743
3744 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3745 # There is notably a 21 bits limit for the UID and the GID. In fact,
3746 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3747 # and bug#13588).
3748 am_max_uid=2097151 # 2^21 - 1
3749 am_max_gid=$am_max_uid
3750 # The $UID and $GID variables are not portable, so we need to resort
3751 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
3752 # below are definitely unexpected, so allow the users to see them
3753 # (that is, avoid stderr redirection).
3754 am_uid=`id -u || echo unknown`
3755 am_gid=`id -g || echo unknown`
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3757 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3758 if test x$am_uid = xunknown; then
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
3760 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
3761 elif test $am_uid -le $am_max_uid; then
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3763 printf "%s\n" "yes" >&6; }
3764 else
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3766 printf "%s\n" "no" >&6; }
3767 _am_tools=none
3768 fi
3769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3770 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3771 if test x$gm_gid = xunknown; then
3772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
3773 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
3774 elif test $am_gid -le $am_max_gid; then
3775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3776 printf "%s\n" "yes" >&6; }
3777 else
3778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 printf "%s\n" "no" >&6; }
3780 _am_tools=none
3781 fi
3782
3783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3784 printf %s "checking how to create a ustar tar archive... " >&6; }
3785
3786 # Go ahead even if we have the value already cached. We do so because we
3787 # need to set the values for the 'am__tar' and 'am__untar' variables.
3788 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3789
3790 for _am_tool in $_am_tools; do
3791 case $_am_tool in
3792 gnutar)
3793 for _am_tar in tar gnutar gtar; do
3794 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3795 ($_am_tar --version) >&5 2>&5
3796 ac_status=$?
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } && break
3799 done
3800 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3801 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3802 am__untar="$_am_tar -xf -"
3803 ;;
3804 plaintar)
3805 # Must skip GNU tar: if it does not support --format= it doesn't create
3806 # ustar tarball either.
3807 (tar --version) >/dev/null 2>&1 && continue
3808 am__tar='tar chf - "$$tardir"'
3809 am__tar_='tar chf - "$tardir"'
3810 am__untar='tar xf -'
3811 ;;
3812 pax)
3813 am__tar='pax -L -x ustar -w "$$tardir"'
3814 am__tar_='pax -L -x ustar -w "$tardir"'
3815 am__untar='pax -r'
3816 ;;
3817 cpio)
3818 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3819 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3820 am__untar='cpio -i -H ustar -d'
3821 ;;
3822 none)
3823 am__tar=false
3824 am__tar_=false
3825 am__untar=false
3826 ;;
3827 esac
3828
3829 # If the value was cached, stop now. We just wanted to have am__tar
3830 # and am__untar set.
3831 test -n "${am_cv_prog_tar_ustar}" && break
3832
3833 # tar/untar a dummy directory, and stop if the command works.
3834 rm -rf conftest.dir
3835 mkdir conftest.dir
3836 echo GrepMe > conftest.dir/file
3837 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3838 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3839 ac_status=$?
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }
3842 rm -rf conftest.dir
3843 if test -s conftest.tar; then
3844 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3845 ($am__untar <conftest.tar) >&5 2>&5
3846 ac_status=$?
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); }
3849 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3850 (cat conftest.dir/file) >&5 2>&5
3851 ac_status=$?
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }
3854 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3855 fi
3856 done
3857 rm -rf conftest.dir
3858
3859 if test ${am_cv_prog_tar_ustar+y}
3860 then :
3861 printf %s "(cached) " >&6
3862 else case e in #(
3863 e) am_cv_prog_tar_ustar=$_am_tool ;;
3864 esac
3865 fi
3866
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3868 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3869
3870
3871
3872
3873
3874 # Variables for tags utilities; see am/tags.am
3875 if test -z "$CTAGS"; then
3876 CTAGS=ctags
3877 fi
3878
3879 if test -z "$ETAGS"; then
3880 ETAGS=etags
3881 fi
3882
3883 if test -z "$CSCOPE"; then
3884 CSCOPE=cscope
3885 fi
3886
3887
3888
3889
3890
3891
3892
3893
3894 AM_DEFAULT_VERBOSITY=0
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906 DEPDIR="${am__leading_dot}deps"
3907
3908 ac_config_commands="$ac_config_commands depfiles"
3909
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3911 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3912 cat > confinc.mk << 'END'
3913 am__doit:
3914 @echo this is the am__doit target >confinc.out
3915 .PHONY: am__doit
3916 END
3917 am__include="#"
3918 am__quote=
3919 # BSD make does it like this.
3920 echo '.include "confinc.mk" # ignored' > confmf.BSD
3921 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3922 echo 'include confinc.mk # ignored' > confmf.GNU
3923 _am_result=no
3924 for s in GNU BSD; do
3925 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3926 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3927 ac_status=$?
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); }
3930 case $?:`cat confinc.out 2>/dev/null` in #(
3931 '0:this is the am__doit target') :
3932 case $s in #(
3933 BSD) :
3934 am__include='.include' am__quote='"' ;; #(
3935 *) :
3936 am__include='include' am__quote='' ;;
3937 esac ;; #(
3938 *) :
3939 ;;
3940 esac
3941 if test "$am__include" != "#"; then
3942 _am_result="yes ($s style)"
3943 break
3944 fi
3945 done
3946 rm -f confinc.* confmf.*
3947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3948 printf "%s\n" "${_am_result}" >&6; }
3949
3950 # Check whether --enable-dependency-tracking was given.
3951 if test ${enable_dependency_tracking+y}
3952 then :
3953 enableval=$enable_dependency_tracking;
3954 fi
3955
3956 if test "x$enable_dependency_tracking" != xno; then
3957 am_depcomp="$ac_aux_dir/depcomp"
3958 AMDEPBACKSLASH='\'
3959 am__nodep='_no'
3960 fi
3961 if test "x$enable_dependency_tracking" != xno; then
3962 AMDEP_TRUE=
3963 AMDEP_FALSE='#'
3964 else
3965 AMDEP_TRUE='#'
3966 AMDEP_FALSE=
3967 fi
3968
3969
3970 ac_ext=c
3971 ac_cpp='$CPP $CPPFLAGS'
3972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975 if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3977 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 printf %s "checking for $ac_word... " >&6; }
3980 if test ${ac_cv_prog_CC+y}
3981 then :
3982 printf %s "(cached) " >&6
3983 else case e in #(
3984 e) if test -n "$CC"; then
3985 ac_cv_prog_CC="$CC" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3989 do
3990 IFS=$as_save_IFS
3991 case $as_dir in #(((
3992 '') as_dir=./ ;;
3993 */) ;;
3994 *) as_dir=$as_dir/ ;;
3995 esac
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4000 break 2
4001 fi
4002 done
4003 done
4004 IFS=$as_save_IFS
4005
4006 fi ;;
4007 esac
4008 fi
4009 CC=$ac_cv_prog_CC
4010 if test -n "$CC"; then
4011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4012 printf "%s\n" "$CC" >&6; }
4013 else
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 printf "%s\n" "no" >&6; }
4016 fi
4017
4018
4019 fi
4020 if test -z "$ac_cv_prog_CC"; then
4021 ac_ct_CC=$CC
4022 # Extract the first word of "gcc", so it can be a program name with args.
4023 set dummy gcc; ac_word=$2
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 printf %s "checking for $ac_word... " >&6; }
4026 if test ${ac_cv_prog_ac_ct_CC+y}
4027 then :
4028 printf %s "(cached) " >&6
4029 else case e in #(
4030 e) if test -n "$ac_ct_CC"; then
4031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4032 else
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034 for as_dir in $PATH
4035 do
4036 IFS=$as_save_IFS
4037 case $as_dir in #(((
4038 '') as_dir=./ ;;
4039 */) ;;
4040 *) as_dir=$as_dir/ ;;
4041 esac
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_ac_ct_CC="gcc"
4045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4046 break 2
4047 fi
4048 done
4049 done
4050 IFS=$as_save_IFS
4051
4052 fi ;;
4053 esac
4054 fi
4055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4056 if test -n "$ac_ct_CC"; then
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4058 printf "%s\n" "$ac_ct_CC" >&6; }
4059 else
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4061 printf "%s\n" "no" >&6; }
4062 fi
4063
4064 if test "x$ac_ct_CC" = x; then
4065 CC=""
4066 else
4067 case $cross_compiling:$ac_tool_warned in
4068 yes:)
4069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4070 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4071 ac_tool_warned=yes ;;
4072 esac
4073 CC=$ac_ct_CC
4074 fi
4075 else
4076 CC="$ac_cv_prog_CC"
4077 fi
4078
4079 if test -z "$CC"; then
4080 if test -n "$ac_tool_prefix"; then
4081 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4082 set dummy ${ac_tool_prefix}cc; ac_word=$2
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4084 printf %s "checking for $ac_word... " >&6; }
4085 if test ${ac_cv_prog_CC+y}
4086 then :
4087 printf %s "(cached) " >&6
4088 else case e in #(
4089 e) if test -n "$CC"; then
4090 ac_cv_prog_CC="$CC" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095 IFS=$as_save_IFS
4096 case $as_dir in #(((
4097 '') as_dir=./ ;;
4098 */) ;;
4099 *) as_dir=$as_dir/ ;;
4100 esac
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4103 ac_cv_prog_CC="${ac_tool_prefix}cc"
4104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4105 break 2
4106 fi
4107 done
4108 done
4109 IFS=$as_save_IFS
4110
4111 fi ;;
4112 esac
4113 fi
4114 CC=$ac_cv_prog_CC
4115 if test -n "$CC"; then
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4117 printf "%s\n" "$CC" >&6; }
4118 else
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 printf "%s\n" "no" >&6; }
4121 fi
4122
4123
4124 fi
4125 fi
4126 if test -z "$CC"; then
4127 # Extract the first word of "cc", so it can be a program name with args.
4128 set dummy cc; ac_word=$2
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 printf %s "checking for $ac_word... " >&6; }
4131 if test ${ac_cv_prog_CC+y}
4132 then :
4133 printf %s "(cached) " >&6
4134 else case e in #(
4135 e) if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4137 else
4138 ac_prog_rejected=no
4139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 for as_dir in $PATH
4141 do
4142 IFS=$as_save_IFS
4143 case $as_dir in #(((
4144 '') as_dir=./ ;;
4145 */) ;;
4146 *) as_dir=$as_dir/ ;;
4147 esac
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4150 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4151 ac_prog_rejected=yes
4152 continue
4153 fi
4154 ac_cv_prog_CC="cc"
4155 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4156 break 2
4157 fi
4158 done
4159 done
4160 IFS=$as_save_IFS
4161
4162 if test $ac_prog_rejected = yes; then
4163 # We found a bogon in the path, so make sure we never use it.
4164 set dummy $ac_cv_prog_CC
4165 shift
4166 if test $# != 0; then
4167 # We chose a different compiler from the bogus one.
4168 # However, it has the same basename, so the bogon will be chosen
4169 # first if we set CC to just the basename; use the full file name.
4170 shift
4171 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4172 fi
4173 fi
4174 fi ;;
4175 esac
4176 fi
4177 CC=$ac_cv_prog_CC
4178 if test -n "$CC"; then
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4180 printf "%s\n" "$CC" >&6; }
4181 else
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183 printf "%s\n" "no" >&6; }
4184 fi
4185
4186
4187 fi
4188 if test -z "$CC"; then
4189 if test -n "$ac_tool_prefix"; then
4190 for ac_prog in cl.exe
4191 do
4192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 printf %s "checking for $ac_word... " >&6; }
4196 if test ${ac_cv_prog_CC+y}
4197 then :
4198 printf %s "(cached) " >&6
4199 else case e in #(
4200 e) if test -n "$CC"; then
4201 ac_cv_prog_CC="$CC" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 case $as_dir in #(((
4208 '') as_dir=./ ;;
4209 */) ;;
4210 *) as_dir=$as_dir/ ;;
4211 esac
4212 for ac_exec_ext in '' $ac_executable_extensions; do
4213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4216 break 2
4217 fi
4218 done
4219 done
4220 IFS=$as_save_IFS
4221
4222 fi ;;
4223 esac
4224 fi
4225 CC=$ac_cv_prog_CC
4226 if test -n "$CC"; then
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4228 printf "%s\n" "$CC" >&6; }
4229 else
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231 printf "%s\n" "no" >&6; }
4232 fi
4233
4234
4235 test -n "$CC" && break
4236 done
4237 fi
4238 if test -z "$CC"; then
4239 ac_ct_CC=$CC
4240 for ac_prog in cl.exe
4241 do
4242 # Extract the first word of "$ac_prog", so it can be a program name with args.
4243 set dummy $ac_prog; ac_word=$2
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 printf %s "checking for $ac_word... " >&6; }
4246 if test ${ac_cv_prog_ac_ct_CC+y}
4247 then :
4248 printf %s "(cached) " >&6
4249 else case e in #(
4250 e) if test -n "$ac_ct_CC"; then
4251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256 IFS=$as_save_IFS
4257 case $as_dir in #(((
4258 '') as_dir=./ ;;
4259 */) ;;
4260 *) as_dir=$as_dir/ ;;
4261 esac
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4264 ac_cv_prog_ac_ct_CC="$ac_prog"
4265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4266 break 2
4267 fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272 fi ;;
4273 esac
4274 fi
4275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4276 if test -n "$ac_ct_CC"; then
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4278 printf "%s\n" "$ac_ct_CC" >&6; }
4279 else
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 printf "%s\n" "no" >&6; }
4282 fi
4283
4284
4285 test -n "$ac_ct_CC" && break
4286 done
4287
4288 if test "x$ac_ct_CC" = x; then
4289 CC=""
4290 else
4291 case $cross_compiling:$ac_tool_warned in
4292 yes:)
4293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4294 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4295 ac_tool_warned=yes ;;
4296 esac
4297 CC=$ac_ct_CC
4298 fi
4299 fi
4300
4301 fi
4302 if test -z "$CC"; then
4303 if test -n "$ac_tool_prefix"; then
4304 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4305 set dummy ${ac_tool_prefix}clang; ac_word=$2
4306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4307 printf %s "checking for $ac_word... " >&6; }
4308 if test ${ac_cv_prog_CC+y}
4309 then :
4310 printf %s "(cached) " >&6
4311 else case e in #(
4312 e) if test -n "$CC"; then
4313 ac_cv_prog_CC="$CC" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4317 do
4318 IFS=$as_save_IFS
4319 case $as_dir in #(((
4320 '') as_dir=./ ;;
4321 */) ;;
4322 *) as_dir=$as_dir/ ;;
4323 esac
4324 for ac_exec_ext in '' $ac_executable_extensions; do
4325 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4326 ac_cv_prog_CC="${ac_tool_prefix}clang"
4327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4328 break 2
4329 fi
4330 done
4331 done
4332 IFS=$as_save_IFS
4333
4334 fi ;;
4335 esac
4336 fi
4337 CC=$ac_cv_prog_CC
4338 if test -n "$CC"; then
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4340 printf "%s\n" "$CC" >&6; }
4341 else
4342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 printf "%s\n" "no" >&6; }
4344 fi
4345
4346
4347 fi
4348 if test -z "$ac_cv_prog_CC"; then
4349 ac_ct_CC=$CC
4350 # Extract the first word of "clang", so it can be a program name with args.
4351 set dummy clang; ac_word=$2
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 printf %s "checking for $ac_word... " >&6; }
4354 if test ${ac_cv_prog_ac_ct_CC+y}
4355 then :
4356 printf %s "(cached) " >&6
4357 else case e in #(
4358 e) if test -n "$ac_ct_CC"; then
4359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4360 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH
4363 do
4364 IFS=$as_save_IFS
4365 case $as_dir in #(((
4366 '') as_dir=./ ;;
4367 */) ;;
4368 *) as_dir=$as_dir/ ;;
4369 esac
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4372 ac_cv_prog_ac_ct_CC="clang"
4373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 fi ;;
4381 esac
4382 fi
4383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4384 if test -n "$ac_ct_CC"; then
4385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4386 printf "%s\n" "$ac_ct_CC" >&6; }
4387 else
4388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 printf "%s\n" "no" >&6; }
4390 fi
4391
4392 if test "x$ac_ct_CC" = x; then
4393 CC=""
4394 else
4395 case $cross_compiling:$ac_tool_warned in
4396 yes:)
4397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399 ac_tool_warned=yes ;;
4400 esac
4401 CC=$ac_ct_CC
4402 fi
4403 else
4404 CC="$ac_cv_prog_CC"
4405 fi
4406
4407 fi
4408
4409
4410 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4411 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4412 as_fn_error $? "no acceptable C compiler found in \$PATH
4413 See 'config.log' for more details" "$LINENO" 5; }
4414
4415 # Provide some information about the compiler.
4416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4417 set X $ac_compile
4418 ac_compiler=$2
4419 for ac_option in --version -v -V -qversion -version; do
4420 { { ac_try="$ac_compiler $ac_option >&5"
4421 case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424 esac
4425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4426 printf "%s\n" "$ac_try_echo"; } >&5
4427 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4428 ac_status=$?
4429 if test -s conftest.err; then
4430 sed '10a\
4431 ... rest of stderr output deleted ...
4432 10q' conftest.err >conftest.er1
4433 cat conftest.er1 >&5
4434 fi
4435 rm -f conftest.er1 conftest.err
4436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }
4438 done
4439
4440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4442
4443 int
4444 main (void)
4445 {
4446
4447 ;
4448 return 0;
4449 }
4450 _ACEOF
4451 ac_clean_files_save=$ac_clean_files
4452 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4453 # Try to create an executable without -o first, disregard a.out.
4454 # It will help us diagnose broken compilers, and finding out an intuition
4455 # of exeext.
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4457 printf %s "checking whether the C compiler works... " >&6; }
4458 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4459
4460 # The possible output files:
4461 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4462
4463 ac_rmfiles=
4464 for ac_file in $ac_files
4465 do
4466 case $ac_file in
4467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4468 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4469 esac
4470 done
4471 rm -f $ac_rmfiles
4472
4473 if { { ac_try="$ac_link_default"
4474 case "(($ac_try" in
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479 printf "%s\n" "$ac_try_echo"; } >&5
4480 (eval "$ac_link_default") 2>&5
4481 ac_status=$?
4482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4483 test $ac_status = 0; }
4484 then :
4485 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4486 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
4487 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4488 # so that the user can short-circuit this test for compilers unknown to
4489 # Autoconf.
4490 for ac_file in $ac_files ''
4491 do
4492 test -f "$ac_file" || continue
4493 case $ac_file in
4494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4495 ;;
4496 [ab].out )
4497 # We found the default executable, but exeext='' is most
4498 # certainly right.
4499 break;;
4500 *.* )
4501 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4502 then :; else
4503 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4504 fi
4505 # We set ac_cv_exeext here because the later test for it is not
4506 # safe: cross compilers may not add the suffix if given an '-o'
4507 # argument, so we may need to know it at that point already.
4508 # Even if this section looks crufty: it has the advantage of
4509 # actually working.
4510 break;;
4511 * )
4512 break;;
4513 esac
4514 done
4515 test "$ac_cv_exeext" = no && ac_cv_exeext=
4516
4517 else case e in #(
4518 e) ac_file='' ;;
4519 esac
4520 fi
4521 if test -z "$ac_file"
4522 then :
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524 printf "%s\n" "no" >&6; }
4525 printf "%s\n" "$as_me: failed program was:" >&5
4526 sed 's/^/| /' conftest.$ac_ext >&5
4527
4528 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4529 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4530 as_fn_error 77 "C compiler cannot create executables
4531 See 'config.log' for more details" "$LINENO" 5; }
4532 else case e in #(
4533 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4534 printf "%s\n" "yes" >&6; } ;;
4535 esac
4536 fi
4537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4538 printf %s "checking for C compiler default output file name... " >&6; }
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4540 printf "%s\n" "$ac_file" >&6; }
4541 ac_exeext=$ac_cv_exeext
4542
4543 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4544 ac_clean_files=$ac_clean_files_save
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4546 printf %s "checking for suffix of executables... " >&6; }
4547 if { { ac_try="$ac_link"
4548 case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551 esac
4552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4553 printf "%s\n" "$ac_try_echo"; } >&5
4554 (eval "$ac_link") 2>&5
4555 ac_status=$?
4556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4557 test $ac_status = 0; }
4558 then :
4559 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4560 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4561 # work properly (i.e., refer to 'conftest.exe'), while it won't with
4562 # 'rm'.
4563 for ac_file in conftest.exe conftest conftest.*; do
4564 test -f "$ac_file" || continue
4565 case $ac_file in
4566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4567 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4568 break;;
4569 * ) break;;
4570 esac
4571 done
4572 else case e in #(
4573 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4574 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4575 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4576 See 'config.log' for more details" "$LINENO" 5; } ;;
4577 esac
4578 fi
4579 rm -f conftest conftest$ac_cv_exeext
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4581 printf "%s\n" "$ac_cv_exeext" >&6; }
4582
4583 rm -f conftest.$ac_ext
4584 EXEEXT=$ac_cv_exeext
4585 ac_exeext=$EXEEXT
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587 /* end confdefs.h. */
4588 #include <stdio.h>
4589 int
4590 main (void)
4591 {
4592 FILE *f = fopen ("conftest.out", "w");
4593 if (!f)
4594 return 1;
4595 return ferror (f) || fclose (f) != 0;
4596
4597 ;
4598 return 0;
4599 }
4600 _ACEOF
4601 ac_clean_files="$ac_clean_files conftest.out"
4602 # Check that the compiler produces executables we can run. If not, either
4603 # the compiler is broken, or we cross compile.
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4605 printf %s "checking whether we are cross compiling... " >&6; }
4606 if test "$cross_compiling" != yes; then
4607 { { ac_try="$ac_link"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4613 printf "%s\n" "$ac_try_echo"; } >&5
4614 (eval "$ac_link") 2>&5
4615 ac_status=$?
4616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617 test $ac_status = 0; }
4618 if { ac_try='./conftest$ac_cv_exeext'
4619 { { case "(($ac_try" in
4620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4621 *) ac_try_echo=$ac_try;;
4622 esac
4623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4624 printf "%s\n" "$ac_try_echo"; } >&5
4625 (eval "$ac_try") 2>&5
4626 ac_status=$?
4627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }; }; then
4629 cross_compiling=no
4630 else
4631 if test "$cross_compiling" = maybe; then
4632 cross_compiling=yes
4633 else
4634 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4635 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4636 as_fn_error 77 "cannot run C compiled programs.
4637 If you meant to cross compile, use '--host'.
4638 See 'config.log' for more details" "$LINENO" 5; }
4639 fi
4640 fi
4641 fi
4642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4643 printf "%s\n" "$cross_compiling" >&6; }
4644
4645 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4646 conftest.o conftest.obj conftest.out
4647 ac_clean_files=$ac_clean_files_save
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4649 printf %s "checking for suffix of object files... " >&6; }
4650 if test ${ac_cv_objext+y}
4651 then :
4652 printf %s "(cached) " >&6
4653 else case e in #(
4654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4656
4657 int
4658 main (void)
4659 {
4660
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 rm -f conftest.o conftest.obj
4666 if { { ac_try="$ac_compile"
4667 case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670 esac
4671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4672 printf "%s\n" "$ac_try_echo"; } >&5
4673 (eval "$ac_compile") 2>&5
4674 ac_status=$?
4675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676 test $ac_status = 0; }
4677 then :
4678 for ac_file in conftest.o conftest.obj conftest.*; do
4679 test -f "$ac_file" || continue;
4680 case $ac_file in
4681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4683 break;;
4684 esac
4685 done
4686 else case e in #(
4687 e) printf "%s\n" "$as_me: failed program was:" >&5
4688 sed 's/^/| /' conftest.$ac_ext >&5
4689
4690 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4691 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4692 as_fn_error $? "cannot compute suffix of object files: cannot compile
4693 See 'config.log' for more details" "$LINENO" 5; } ;;
4694 esac
4695 fi
4696 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4697 esac
4698 fi
4699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4700 printf "%s\n" "$ac_cv_objext" >&6; }
4701 OBJEXT=$ac_cv_objext
4702 ac_objext=$OBJEXT
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4704 printf %s "checking whether the compiler supports GNU C... " >&6; }
4705 if test ${ac_cv_c_compiler_gnu+y}
4706 then :
4707 printf %s "(cached) " >&6
4708 else case e in #(
4709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711
4712 int
4713 main (void)
4714 {
4715 #ifndef __GNUC__
4716 choke me
4717 #endif
4718
4719 ;
4720 return 0;
4721 }
4722 _ACEOF
4723 if ac_fn_c_try_compile "$LINENO"
4724 then :
4725 ac_compiler_gnu=yes
4726 else case e in #(
4727 e) ac_compiler_gnu=no ;;
4728 esac
4729 fi
4730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4731 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4732 ;;
4733 esac
4734 fi
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4736 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4738
4739 if test $ac_compiler_gnu = yes; then
4740 GCC=yes
4741 else
4742 GCC=
4743 fi
4744 ac_test_CFLAGS=${CFLAGS+y}
4745 ac_save_CFLAGS=$CFLAGS
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4747 printf %s "checking whether $CC accepts -g... " >&6; }
4748 if test ${ac_cv_prog_cc_g+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else case e in #(
4752 e) ac_save_c_werror_flag=$ac_c_werror_flag
4753 ac_c_werror_flag=yes
4754 ac_cv_prog_cc_g=no
4755 CFLAGS="-g"
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758
4759 int
4760 main (void)
4761 {
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 if ac_fn_c_try_compile "$LINENO"
4768 then :
4769 ac_cv_prog_cc_g=yes
4770 else case e in #(
4771 e) CFLAGS=""
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774
4775 int
4776 main (void)
4777 {
4778
4779 ;
4780 return 0;
4781 }
4782 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"
4784 then :
4785
4786 else case e in #(
4787 e) ac_c_werror_flag=$ac_save_c_werror_flag
4788 CFLAGS="-g"
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4791
4792 int
4793 main (void)
4794 {
4795
4796 ;
4797 return 0;
4798 }
4799 _ACEOF
4800 if ac_fn_c_try_compile "$LINENO"
4801 then :
4802 ac_cv_prog_cc_g=yes
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4805 esac
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4808 esac
4809 fi
4810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4811 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4812 esac
4813 fi
4814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4815 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4816 if test $ac_test_CFLAGS; then
4817 CFLAGS=$ac_save_CFLAGS
4818 elif test $ac_cv_prog_cc_g = yes; then
4819 if test "$GCC" = yes; then
4820 CFLAGS="-g -O2"
4821 else
4822 CFLAGS="-g"
4823 fi
4824 else
4825 if test "$GCC" = yes; then
4826 CFLAGS="-O2"
4827 else
4828 CFLAGS=
4829 fi
4830 fi
4831 ac_prog_cc_stdc=no
4832 if test x$ac_prog_cc_stdc = xno
4833 then :
4834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4835 printf %s "checking for $CC option to enable C11 features... " >&6; }
4836 if test ${ac_cv_prog_cc_c11+y}
4837 then :
4838 printf %s "(cached) " >&6
4839 else case e in #(
4840 e) ac_cv_prog_cc_c11=no
4841 ac_save_CC=$CC
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843 /* end confdefs.h. */
4844 $ac_c_conftest_c11_program
4845 _ACEOF
4846 for ac_arg in '' -std=gnu11
4847 do
4848 CC="$ac_save_CC $ac_arg"
4849 if ac_fn_c_try_compile "$LINENO"
4850 then :
4851 ac_cv_prog_cc_c11=$ac_arg
4852 fi
4853 rm -f core conftest.err conftest.$ac_objext conftest.beam
4854 test "x$ac_cv_prog_cc_c11" != "xno" && break
4855 done
4856 rm -f conftest.$ac_ext
4857 CC=$ac_save_CC ;;
4858 esac
4859 fi
4860
4861 if test "x$ac_cv_prog_cc_c11" = xno
4862 then :
4863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4864 printf "%s\n" "unsupported" >&6; }
4865 else case e in #(
4866 e) if test "x$ac_cv_prog_cc_c11" = x
4867 then :
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4869 printf "%s\n" "none needed" >&6; }
4870 else case e in #(
4871 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4872 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4873 CC="$CC $ac_cv_prog_cc_c11" ;;
4874 esac
4875 fi
4876 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4877 ac_prog_cc_stdc=c11 ;;
4878 esac
4879 fi
4880 fi
4881 if test x$ac_prog_cc_stdc = xno
4882 then :
4883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4884 printf %s "checking for $CC option to enable C99 features... " >&6; }
4885 if test ${ac_cv_prog_cc_c99+y}
4886 then :
4887 printf %s "(cached) " >&6
4888 else case e in #(
4889 e) ac_cv_prog_cc_c99=no
4890 ac_save_CC=$CC
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 $ac_c_conftest_c99_program
4894 _ACEOF
4895 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4896 do
4897 CC="$ac_save_CC $ac_arg"
4898 if ac_fn_c_try_compile "$LINENO"
4899 then :
4900 ac_cv_prog_cc_c99=$ac_arg
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext conftest.beam
4903 test "x$ac_cv_prog_cc_c99" != "xno" && break
4904 done
4905 rm -f conftest.$ac_ext
4906 CC=$ac_save_CC ;;
4907 esac
4908 fi
4909
4910 if test "x$ac_cv_prog_cc_c99" = xno
4911 then :
4912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4913 printf "%s\n" "unsupported" >&6; }
4914 else case e in #(
4915 e) if test "x$ac_cv_prog_cc_c99" = x
4916 then :
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4918 printf "%s\n" "none needed" >&6; }
4919 else case e in #(
4920 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4921 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4922 CC="$CC $ac_cv_prog_cc_c99" ;;
4923 esac
4924 fi
4925 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4926 ac_prog_cc_stdc=c99 ;;
4927 esac
4928 fi
4929 fi
4930 if test x$ac_prog_cc_stdc = xno
4931 then :
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4933 printf %s "checking for $CC option to enable C89 features... " >&6; }
4934 if test ${ac_cv_prog_cc_c89+y}
4935 then :
4936 printf %s "(cached) " >&6
4937 else case e in #(
4938 e) ac_cv_prog_cc_c89=no
4939 ac_save_CC=$CC
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942 $ac_c_conftest_c89_program
4943 _ACEOF
4944 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4945 do
4946 CC="$ac_save_CC $ac_arg"
4947 if ac_fn_c_try_compile "$LINENO"
4948 then :
4949 ac_cv_prog_cc_c89=$ac_arg
4950 fi
4951 rm -f core conftest.err conftest.$ac_objext conftest.beam
4952 test "x$ac_cv_prog_cc_c89" != "xno" && break
4953 done
4954 rm -f conftest.$ac_ext
4955 CC=$ac_save_CC ;;
4956 esac
4957 fi
4958
4959 if test "x$ac_cv_prog_cc_c89" = xno
4960 then :
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4962 printf "%s\n" "unsupported" >&6; }
4963 else case e in #(
4964 e) if test "x$ac_cv_prog_cc_c89" = x
4965 then :
4966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4967 printf "%s\n" "none needed" >&6; }
4968 else case e in #(
4969 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4970 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4971 CC="$CC $ac_cv_prog_cc_c89" ;;
4972 esac
4973 fi
4974 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4975 ac_prog_cc_stdc=c89 ;;
4976 esac
4977 fi
4978 fi
4979
4980 ac_ext=c
4981 ac_cpp='$CPP $CPPFLAGS'
4982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985
4986
4987 ac_ext=c
4988 ac_cpp='$CPP $CPPFLAGS'
4989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4993 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4994 if test ${am_cv_prog_cc_c_o+y}
4995 then :
4996 printf %s "(cached) " >&6
4997 else case e in #(
4998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999 /* end confdefs.h. */
5000
5001 int
5002 main (void)
5003 {
5004
5005 ;
5006 return 0;
5007 }
5008 _ACEOF
5009 # Make sure it works both with $CC and with simple cc.
5010 # Following AC_PROG_CC_C_O, we do the test twice because some
5011 # compilers refuse to overwrite an existing .o file with -o,
5012 # though they will create one.
5013 am_cv_prog_cc_c_o=yes
5014 for am_i in 1 2; do
5015 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5016 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } \
5020 && test -f conftest2.$ac_objext; then
5021 : OK
5022 else
5023 am_cv_prog_cc_c_o=no
5024 break
5025 fi
5026 done
5027 # aligned with autoconf, so not including core; see bug#72225.
5028 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5029 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5030 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5031 unset am_i ;;
5032 esac
5033 fi
5034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5035 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5036 if test "$am_cv_prog_cc_c_o" != yes; then
5037 # Losing compiler, so override with the script.
5038 # FIXME: It is wrong to rewrite CC.
5039 # But if we don't then we get into trouble of one sort or another.
5040 # A longer-term fix would be to have automake use am__CC in this case,
5041 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5042 CC="$am_aux_dir/compile $CC"
5043 fi
5044 ac_ext=c
5045 ac_cpp='$CPP $CPPFLAGS'
5046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050
5051 depcc="$CC" am_compiler_list=
5052
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5054 printf %s "checking dependency style of $depcc... " >&6; }
5055 if test ${am_cv_CC_dependencies_compiler_type+y}
5056 then :
5057 printf %s "(cached) " >&6
5058 else case e in #(
5059 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5060 # We make a subdir and do the tests there. Otherwise we can end up
5061 # making bogus files that we don't know about and never remove. For
5062 # instance it was reported that on HP-UX the gcc test will end up
5063 # making a dummy file named 'D' -- because '-MD' means "put the output
5064 # in D".
5065 rm -rf conftest.dir
5066 mkdir conftest.dir
5067 # Copy depcomp to subdir because otherwise we won't find it if we're
5068 # using a relative directory.
5069 cp "$am_depcomp" conftest.dir
5070 cd conftest.dir
5071 # We will build objects and dependencies in a subdirectory because
5072 # it helps to detect inapplicable dependency modes. For instance
5073 # both Tru64's cc and ICC support -MD to output dependencies as a
5074 # side effect of compilation, but ICC will put the dependencies in
5075 # the current directory while Tru64 will put them in the object
5076 # directory.
5077 mkdir sub
5078
5079 am_cv_CC_dependencies_compiler_type=none
5080 if test "$am_compiler_list" = ""; then
5081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5082 fi
5083 am__universal=false
5084 case " $depcc " in #(
5085 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5086 esac
5087
5088 for depmode in $am_compiler_list; do
5089 # Setup a source with many dependencies, because some compilers
5090 # like to wrap large dependency lists on column 80 (with \), and
5091 # we should not choose a depcomp mode which is confused by this.
5092 #
5093 # We need to recreate these files for each test, as the compiler may
5094 # overwrite some of them when testing with obscure command lines.
5095 # This happens at least with the AIX C compiler.
5096 : > sub/conftest.c
5097 for i in 1 2 3 4 5 6; do
5098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5100 # Solaris 10 /bin/sh.
5101 echo '/* dummy */' > sub/conftst$i.h
5102 done
5103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5104
5105 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5106 # mode. It turns out that the SunPro C++ compiler does not properly
5107 # handle '-M -o', and we need to detect this. Also, some Intel
5108 # versions had trouble with output in subdirs.
5109 am__obj=sub/conftest.${OBJEXT-o}
5110 am__minus_obj="-o $am__obj"
5111 case $depmode in
5112 gcc)
5113 # This depmode causes a compiler race in universal mode.
5114 test "$am__universal" = false || continue
5115 ;;
5116 nosideeffect)
5117 # After this tag, mechanisms are not by side-effect, so they'll
5118 # only be used when explicitly requested.
5119 if test "x$enable_dependency_tracking" = xyes; then
5120 continue
5121 else
5122 break
5123 fi
5124 ;;
5125 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5126 # This compiler won't grok '-c -o', but also, the minuso test has
5127 # not run yet. These depmodes are late enough in the game, and
5128 # so weak that their functioning should not be impacted.
5129 am__obj=conftest.${OBJEXT-o}
5130 am__minus_obj=
5131 ;;
5132 none) break ;;
5133 esac
5134 if depmode=$depmode \
5135 source=sub/conftest.c object=$am__obj \
5136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5138 >/dev/null 2>conftest.err &&
5139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5143 # icc doesn't choke on unknown options, it will just issue warnings
5144 # or remarks (even with -Werror). So we grep stderr for any message
5145 # that says an option was ignored or not supported.
5146 # When given -MP, icc 7.0 and 7.1 complain thus:
5147 # icc: Command line warning: ignoring option '-M'; no argument required
5148 # The diagnosis changed in icc 8.0:
5149 # icc: Command line remark: option '-MP' not supported
5150 if (grep 'ignoring option' conftest.err ||
5151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5152 am_cv_CC_dependencies_compiler_type=$depmode
5153 break
5154 fi
5155 fi
5156 done
5157
5158 cd ..
5159 rm -rf conftest.dir
5160 else
5161 am_cv_CC_dependencies_compiler_type=none
5162 fi
5163 ;;
5164 esac
5165 fi
5166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5167 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5168 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5169
5170 if
5171 test "x$enable_dependency_tracking" != xno \
5172 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5173 am__fastdepCC_TRUE=
5174 am__fastdepCC_FALSE='#'
5175 else
5176 am__fastdepCC_TRUE='#'
5177 am__fastdepCC_FALSE=
5178 fi
5179
5180
5181
5182
5183 if test -n "$ac_tool_prefix"; then
5184 for ac_prog in ar lib "link -lib"
5185 do
5186 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 printf %s "checking for $ac_word... " >&6; }
5190 if test ${ac_cv_prog_AR+y}
5191 then :
5192 printf %s "(cached) " >&6
5193 else case e in #(
5194 e) if test -n "$AR"; then
5195 ac_cv_prog_AR="$AR" # Let the user override the test.
5196 else
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200 IFS=$as_save_IFS
5201 case $as_dir in #(((
5202 '') as_dir=./ ;;
5203 */) ;;
5204 *) as_dir=$as_dir/ ;;
5205 esac
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5210 break 2
5211 fi
5212 done
5213 done
5214 IFS=$as_save_IFS
5215
5216 fi ;;
5217 esac
5218 fi
5219 AR=$ac_cv_prog_AR
5220 if test -n "$AR"; then
5221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5222 printf "%s\n" "$AR" >&6; }
5223 else
5224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5225 printf "%s\n" "no" >&6; }
5226 fi
5227
5228
5229 test -n "$AR" && break
5230 done
5231 fi
5232 if test -z "$AR"; then
5233 ac_ct_AR=$AR
5234 for ac_prog in ar lib "link -lib"
5235 do
5236 # Extract the first word of "$ac_prog", so it can be a program name with args.
5237 set dummy $ac_prog; ac_word=$2
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 printf %s "checking for $ac_word... " >&6; }
5240 if test ${ac_cv_prog_ac_ct_AR+y}
5241 then :
5242 printf %s "(cached) " >&6
5243 else case e in #(
5244 e) if test -n "$ac_ct_AR"; then
5245 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5246 else
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250 IFS=$as_save_IFS
5251 case $as_dir in #(((
5252 '') as_dir=./ ;;
5253 */) ;;
5254 *) as_dir=$as_dir/ ;;
5255 esac
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5258 ac_cv_prog_ac_ct_AR="$ac_prog"
5259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262 done
5263 done
5264 IFS=$as_save_IFS
5265
5266 fi ;;
5267 esac
5268 fi
5269 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5270 if test -n "$ac_ct_AR"; then
5271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5272 printf "%s\n" "$ac_ct_AR" >&6; }
5273 else
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275 printf "%s\n" "no" >&6; }
5276 fi
5277
5278
5279 test -n "$ac_ct_AR" && break
5280 done
5281
5282 if test "x$ac_ct_AR" = x; then
5283 AR="false"
5284 else
5285 case $cross_compiling:$ac_tool_warned in
5286 yes:)
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5290 esac
5291 AR=$ac_ct_AR
5292 fi
5293 fi
5294
5295 : ${AR=ar}
5296 : ${ARFLAGS=cr}
5297
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
5299 printf %s "checking the archiver ($AR) interface... " >&6; }
5300 if test ${am_cv_ar_interface+y}
5301 then :
5302 printf %s "(cached) " >&6
5303 else case e in #(
5304 e) ac_ext=c
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5309
5310 am_cv_ar_interface=ar
5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5312 /* end confdefs.h. */
5313 int some_variable = 0;
5314 _ACEOF
5315 if ac_fn_c_try_compile "$LINENO"
5316 then :
5317 am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&5'
5318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5319 (eval $am_ar_try) 2>&5
5320 ac_status=$?
5321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5322 test $ac_status = 0; }
5323 if test "$ac_status" -eq 0; then
5324 am_cv_ar_interface=ar
5325 else
5326 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
5327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
5328 (eval $am_ar_try) 2>&5
5329 ac_status=$?
5330 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5331 test $ac_status = 0; }
5332 if test "$ac_status" -eq 0; then
5333 am_cv_ar_interface=lib
5334 else
5335 am_cv_ar_interface=unknown
5336 fi
5337 fi
5338 rm -f conftest.lib libconftest.a
5339
5340 fi
5341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5342 ac_ext=c
5343 ac_cpp='$CPP $CPPFLAGS'
5344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5347 ;;
5348 esac
5349 fi
5350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
5351 printf "%s\n" "$am_cv_ar_interface" >&6; }
5352
5353 case $am_cv_ar_interface in
5354 ar)
5355 ;;
5356 lib)
5357 # Microsoft lib, so override with the ar-lib wrapper script.
5358 # FIXME: It is wrong to rewrite AR.
5359 # But if we don't then we get into trouble of one sort or another.
5360 # A longer-term fix would be to have automake use am__AR in this case,
5361 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
5362 # similar.
5363 AR="$am_aux_dir/ar-lib $AR"
5364 ;;
5365 unknown)
5366 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
5367 ;;
5368 esac
5369
5370
5371 MAJ_VERSION=3
5372
5373 MIN_VERSION=12
5374
5375 MIC_VERSION=0
5376
5377 LIBNL_GIT_SHA=43878680c994989f16637dc47be19bb8dc154985
5378
5379 LIBNL_VERSION=3.12.0
5380
5381
5382 LT_CURRENT=226
5383
5384 LT_REVISION=0
5385
5386 LT_AGE=26
5387
5388
5389 ac_header= ac_cache=
5390 for ac_item in $ac_header_c_list
5391 do
5392 if test $ac_cache; then
5393 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5394 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5395 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5396 fi
5397 ac_header= ac_cache=
5398 elif test $ac_header; then
5399 ac_cache=$ac_item
5400 else
5401 ac_header=$ac_item
5402 fi
5403 done
5404
5405
5406
5407
5408
5409
5410
5411
5412 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5413 then :
5414
5415 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5416
5417 fi
5418
5419
5420
5421
5422
5423
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5425 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5426 if test ${ac_cv_safe_to_define___extensions__+y}
5427 then :
5428 printf %s "(cached) " >&6
5429 else case e in #(
5430 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432
5433 # define __EXTENSIONS__ 1
5434 $ac_includes_default
5435 int
5436 main (void)
5437 {
5438
5439 ;
5440 return 0;
5441 }
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"
5444 then :
5445 ac_cv_safe_to_define___extensions__=yes
5446 else case e in #(
5447 e) ac_cv_safe_to_define___extensions__=no ;;
5448 esac
5449 fi
5450 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5451 esac
5452 fi
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5454 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
5455
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5457 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5458 if test ${ac_cv_should_define__xopen_source+y}
5459 then :
5460 printf %s "(cached) " >&6
5461 else case e in #(
5462 e) ac_cv_should_define__xopen_source=no
5463 if test $ac_cv_header_wchar_h = yes
5464 then :
5465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5466 /* end confdefs.h. */
5467
5468 #include <wchar.h>
5469 mbstate_t x;
5470 int
5471 main (void)
5472 {
5473
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_compile "$LINENO"
5479 then :
5480
5481 else case e in #(
5482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484
5485 #define _XOPEN_SOURCE 500
5486 #include <wchar.h>
5487 mbstate_t x;
5488 int
5489 main (void)
5490 {
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"
5497 then :
5498 ac_cv_should_define__xopen_source=yes
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5501 esac
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5504 fi ;;
5505 esac
5506 fi
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5508 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
5509
5510 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
5511
5512 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5513
5514 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
5515
5516 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5517
5518 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
5519
5520 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
5521
5522 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5523
5524 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5525
5526 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5527
5528 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5529
5530 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
5531
5532 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5533
5534 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5535
5536 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5537
5538 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5539
5540 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
5541
5542 if test $ac_cv_header_minix_config_h = yes
5543 then :
5544 MINIX=yes
5545 printf "%s\n" "#define _MINIX 1" >>confdefs.h
5546
5547 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
5548
5549 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
5550
5551 else case e in #(
5552 e) MINIX= ;;
5553 esac
5554 fi
5555 if test $ac_cv_safe_to_define___extensions__ = yes
5556 then :
5557 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
5558
5559 fi
5560 if test $ac_cv_should_define__xopen_source = yes
5561 then :
5562 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
5563
5564 fi
5565
5566
5567 ac_ext=c
5568 ac_cpp='$CPP $CPPFLAGS'
5569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5572 if test -n "$ac_tool_prefix"; then
5573 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5574 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 printf %s "checking for $ac_word... " >&6; }
5577 if test ${ac_cv_prog_CC+y}
5578 then :
5579 printf %s "(cached) " >&6
5580 else case e in #(
5581 e) if test -n "$CC"; then
5582 ac_cv_prog_CC="$CC" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5586 do
5587 IFS=$as_save_IFS
5588 case $as_dir in #(((
5589 '') as_dir=./ ;;
5590 */) ;;
5591 *) as_dir=$as_dir/ ;;
5592 esac
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599 done
5600 done
5601 IFS=$as_save_IFS
5602
5603 fi ;;
5604 esac
5605 fi
5606 CC=$ac_cv_prog_CC
5607 if test -n "$CC"; then
5608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5609 printf "%s\n" "$CC" >&6; }
5610 else
5611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 printf "%s\n" "no" >&6; }
5613 fi
5614
5615
5616 fi
5617 if test -z "$ac_cv_prog_CC"; then
5618 ac_ct_CC=$CC
5619 # Extract the first word of "gcc", so it can be a program name with args.
5620 set dummy gcc; ac_word=$2
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 printf %s "checking for $ac_word... " >&6; }
5623 if test ${ac_cv_prog_ac_ct_CC+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else case e in #(
5627 e) if test -n "$ac_ct_CC"; then
5628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5632 do
5633 IFS=$as_save_IFS
5634 case $as_dir in #(((
5635 '') as_dir=./ ;;
5636 */) ;;
5637 *) as_dir=$as_dir/ ;;
5638 esac
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5641 ac_cv_prog_ac_ct_CC="gcc"
5642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645 done
5646 done
5647 IFS=$as_save_IFS
5648
5649 fi ;;
5650 esac
5651 fi
5652 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5653 if test -n "$ac_ct_CC"; then
5654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5655 printf "%s\n" "$ac_ct_CC" >&6; }
5656 else
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 printf "%s\n" "no" >&6; }
5659 fi
5660
5661 if test "x$ac_ct_CC" = x; then
5662 CC=""
5663 else
5664 case $cross_compiling:$ac_tool_warned in
5665 yes:)
5666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668 ac_tool_warned=yes ;;
5669 esac
5670 CC=$ac_ct_CC
5671 fi
5672 else
5673 CC="$ac_cv_prog_CC"
5674 fi
5675
5676 if test -z "$CC"; then
5677 if test -n "$ac_tool_prefix"; then
5678 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5679 set dummy ${ac_tool_prefix}cc; ac_word=$2
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 printf %s "checking for $ac_word... " >&6; }
5682 if test ${ac_cv_prog_CC+y}
5683 then :
5684 printf %s "(cached) " >&6
5685 else case e in #(
5686 e) if test -n "$CC"; then
5687 ac_cv_prog_CC="$CC" # Let the user override the test.
5688 else
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692 IFS=$as_save_IFS
5693 case $as_dir in #(((
5694 '') as_dir=./ ;;
5695 */) ;;
5696 *) as_dir=$as_dir/ ;;
5697 esac
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5700 ac_cv_prog_CC="${ac_tool_prefix}cc"
5701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5702 break 2
5703 fi
5704 done
5705 done
5706 IFS=$as_save_IFS
5707
5708 fi ;;
5709 esac
5710 fi
5711 CC=$ac_cv_prog_CC
5712 if test -n "$CC"; then
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5714 printf "%s\n" "$CC" >&6; }
5715 else
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 printf "%s\n" "no" >&6; }
5718 fi
5719
5720
5721 fi
5722 fi
5723 if test -z "$CC"; then
5724 # Extract the first word of "cc", so it can be a program name with args.
5725 set dummy cc; ac_word=$2
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 printf %s "checking for $ac_word... " >&6; }
5728 if test ${ac_cv_prog_CC+y}
5729 then :
5730 printf %s "(cached) " >&6
5731 else case e in #(
5732 e) if test -n "$CC"; then
5733 ac_cv_prog_CC="$CC" # Let the user override the test.
5734 else
5735 ac_prog_rejected=no
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5738 do
5739 IFS=$as_save_IFS
5740 case $as_dir in #(((
5741 '') as_dir=./ ;;
5742 */) ;;
5743 *) as_dir=$as_dir/ ;;
5744 esac
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5747 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5748 ac_prog_rejected=yes
5749 continue
5750 fi
5751 ac_cv_prog_CC="cc"
5752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5753 break 2
5754 fi
5755 done
5756 done
5757 IFS=$as_save_IFS
5758
5759 if test $ac_prog_rejected = yes; then
5760 # We found a bogon in the path, so make sure we never use it.
5761 set dummy $ac_cv_prog_CC
5762 shift
5763 if test $# != 0; then
5764 # We chose a different compiler from the bogus one.
5765 # However, it has the same basename, so the bogon will be chosen
5766 # first if we set CC to just the basename; use the full file name.
5767 shift
5768 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5769 fi
5770 fi
5771 fi ;;
5772 esac
5773 fi
5774 CC=$ac_cv_prog_CC
5775 if test -n "$CC"; then
5776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5777 printf "%s\n" "$CC" >&6; }
5778 else
5779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 printf "%s\n" "no" >&6; }
5781 fi
5782
5783
5784 fi
5785 if test -z "$CC"; then
5786 if test -n "$ac_tool_prefix"; then
5787 for ac_prog in cl.exe
5788 do
5789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792 printf %s "checking for $ac_word... " >&6; }
5793 if test ${ac_cv_prog_CC+y}
5794 then :
5795 printf %s "(cached) " >&6
5796 else case e in #(
5797 e) if test -n "$CC"; then
5798 ac_cv_prog_CC="$CC" # Let the user override the test.
5799 else
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5801 for as_dir in $PATH
5802 do
5803 IFS=$as_save_IFS
5804 case $as_dir in #(((
5805 '') as_dir=./ ;;
5806 */) ;;
5807 *) as_dir=$as_dir/ ;;
5808 esac
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5813 break 2
5814 fi
5815 done
5816 done
5817 IFS=$as_save_IFS
5818
5819 fi ;;
5820 esac
5821 fi
5822 CC=$ac_cv_prog_CC
5823 if test -n "$CC"; then
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5825 printf "%s\n" "$CC" >&6; }
5826 else
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 printf "%s\n" "no" >&6; }
5829 fi
5830
5831
5832 test -n "$CC" && break
5833 done
5834 fi
5835 if test -z "$CC"; then
5836 ac_ct_CC=$CC
5837 for ac_prog in cl.exe
5838 do
5839 # Extract the first word of "$ac_prog", so it can be a program name with args.
5840 set dummy $ac_prog; ac_word=$2
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5842 printf %s "checking for $ac_word... " >&6; }
5843 if test ${ac_cv_prog_ac_ct_CC+y}
5844 then :
5845 printf %s "(cached) " >&6
5846 else case e in #(
5847 e) if test -n "$ac_ct_CC"; then
5848 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5849 else
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 for as_dir in $PATH
5852 do
5853 IFS=$as_save_IFS
5854 case $as_dir in #(((
5855 '') as_dir=./ ;;
5856 */) ;;
5857 *) as_dir=$as_dir/ ;;
5858 esac
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5861 ac_cv_prog_ac_ct_CC="$ac_prog"
5862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5863 break 2
5864 fi
5865 done
5866 done
5867 IFS=$as_save_IFS
5868
5869 fi ;;
5870 esac
5871 fi
5872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5873 if test -n "$ac_ct_CC"; then
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5875 printf "%s\n" "$ac_ct_CC" >&6; }
5876 else
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 printf "%s\n" "no" >&6; }
5879 fi
5880
5881
5882 test -n "$ac_ct_CC" && break
5883 done
5884
5885 if test "x$ac_ct_CC" = x; then
5886 CC=""
5887 else
5888 case $cross_compiling:$ac_tool_warned in
5889 yes:)
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5893 esac
5894 CC=$ac_ct_CC
5895 fi
5896 fi
5897
5898 fi
5899 if test -z "$CC"; then
5900 if test -n "$ac_tool_prefix"; then
5901 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5902 set dummy ${ac_tool_prefix}clang; ac_word=$2
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5904 printf %s "checking for $ac_word... " >&6; }
5905 if test ${ac_cv_prog_CC+y}
5906 then :
5907 printf %s "(cached) " >&6
5908 else case e in #(
5909 e) if test -n "$CC"; then
5910 ac_cv_prog_CC="$CC" # Let the user override the test.
5911 else
5912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915 IFS=$as_save_IFS
5916 case $as_dir in #(((
5917 '') as_dir=./ ;;
5918 */) ;;
5919 *) as_dir=$as_dir/ ;;
5920 esac
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5923 ac_cv_prog_CC="${ac_tool_prefix}clang"
5924 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5925 break 2
5926 fi
5927 done
5928 done
5929 IFS=$as_save_IFS
5930
5931 fi ;;
5932 esac
5933 fi
5934 CC=$ac_cv_prog_CC
5935 if test -n "$CC"; then
5936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5937 printf "%s\n" "$CC" >&6; }
5938 else
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 printf "%s\n" "no" >&6; }
5941 fi
5942
5943
5944 fi
5945 if test -z "$ac_cv_prog_CC"; then
5946 ac_ct_CC=$CC
5947 # Extract the first word of "clang", so it can be a program name with args.
5948 set dummy clang; ac_word=$2
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 printf %s "checking for $ac_word... " >&6; }
5951 if test ${ac_cv_prog_ac_ct_CC+y}
5952 then :
5953 printf %s "(cached) " >&6
5954 else case e in #(
5955 e) if test -n "$ac_ct_CC"; then
5956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5957 else
5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959 for as_dir in $PATH
5960 do
5961 IFS=$as_save_IFS
5962 case $as_dir in #(((
5963 '') as_dir=./ ;;
5964 */) ;;
5965 *) as_dir=$as_dir/ ;;
5966 esac
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_CC="clang"
5970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973 done
5974 done
5975 IFS=$as_save_IFS
5976
5977 fi ;;
5978 esac
5979 fi
5980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5981 if test -n "$ac_ct_CC"; then
5982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5983 printf "%s\n" "$ac_ct_CC" >&6; }
5984 else
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 printf "%s\n" "no" >&6; }
5987 fi
5988
5989 if test "x$ac_ct_CC" = x; then
5990 CC=""
5991 else
5992 case $cross_compiling:$ac_tool_warned in
5993 yes:)
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned=yes ;;
5997 esac
5998 CC=$ac_ct_CC
5999 fi
6000 else
6001 CC="$ac_cv_prog_CC"
6002 fi
6003
6004 fi
6005
6006
6007 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6008 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6009 as_fn_error $? "no acceptable C compiler found in \$PATH
6010 See 'config.log' for more details" "$LINENO" 5; }
6011
6012 # Provide some information about the compiler.
6013 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6014 set X $ac_compile
6015 ac_compiler=$2
6016 for ac_option in --version -v -V -qversion -version; do
6017 { { ac_try="$ac_compiler $ac_option >&5"
6018 case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6021 esac
6022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6023 printf "%s\n" "$ac_try_echo"; } >&5
6024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6025 ac_status=$?
6026 if test -s conftest.err; then
6027 sed '10a\
6028 ... rest of stderr output deleted ...
6029 10q' conftest.err >conftest.er1
6030 cat conftest.er1 >&5
6031 fi
6032 rm -f conftest.er1 conftest.err
6033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6034 test $ac_status = 0; }
6035 done
6036
6037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6038 printf %s "checking whether the compiler supports GNU C... " >&6; }
6039 if test ${ac_cv_c_compiler_gnu+y}
6040 then :
6041 printf %s "(cached) " >&6
6042 else case e in #(
6043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6044 /* end confdefs.h. */
6045
6046 int
6047 main (void)
6048 {
6049 #ifndef __GNUC__
6050 choke me
6051 #endif
6052
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 if ac_fn_c_try_compile "$LINENO"
6058 then :
6059 ac_compiler_gnu=yes
6060 else case e in #(
6061 e) ac_compiler_gnu=no ;;
6062 esac
6063 fi
6064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6065 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6066 ;;
6067 esac
6068 fi
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6070 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6072
6073 if test $ac_compiler_gnu = yes; then
6074 GCC=yes
6075 else
6076 GCC=
6077 fi
6078 ac_test_CFLAGS=${CFLAGS+y}
6079 ac_save_CFLAGS=$CFLAGS
6080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6081 printf %s "checking whether $CC accepts -g... " >&6; }
6082 if test ${ac_cv_prog_cc_g+y}
6083 then :
6084 printf %s "(cached) " >&6
6085 else case e in #(
6086 e) ac_save_c_werror_flag=$ac_c_werror_flag
6087 ac_c_werror_flag=yes
6088 ac_cv_prog_cc_g=no
6089 CFLAGS="-g"
6090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092
6093 int
6094 main (void)
6095 {
6096
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 if ac_fn_c_try_compile "$LINENO"
6102 then :
6103 ac_cv_prog_cc_g=yes
6104 else case e in #(
6105 e) CFLAGS=""
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108
6109 int
6110 main (void)
6111 {
6112
6113 ;
6114 return 0;
6115 }
6116 _ACEOF
6117 if ac_fn_c_try_compile "$LINENO"
6118 then :
6119
6120 else case e in #(
6121 e) ac_c_werror_flag=$ac_save_c_werror_flag
6122 CFLAGS="-g"
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125
6126 int
6127 main (void)
6128 {
6129
6130 ;
6131 return 0;
6132 }
6133 _ACEOF
6134 if ac_fn_c_try_compile "$LINENO"
6135 then :
6136 ac_cv_prog_cc_g=yes
6137 fi
6138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6139 esac
6140 fi
6141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6142 esac
6143 fi
6144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6145 ac_c_werror_flag=$ac_save_c_werror_flag ;;
6146 esac
6147 fi
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6149 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6150 if test $ac_test_CFLAGS; then
6151 CFLAGS=$ac_save_CFLAGS
6152 elif test $ac_cv_prog_cc_g = yes; then
6153 if test "$GCC" = yes; then
6154 CFLAGS="-g -O2"
6155 else
6156 CFLAGS="-g"
6157 fi
6158 else
6159 if test "$GCC" = yes; then
6160 CFLAGS="-O2"
6161 else
6162 CFLAGS=
6163 fi
6164 fi
6165 ac_prog_cc_stdc=no
6166 if test x$ac_prog_cc_stdc = xno
6167 then :
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6169 printf %s "checking for $CC option to enable C11 features... " >&6; }
6170 if test ${ac_cv_prog_cc_c11+y}
6171 then :
6172 printf %s "(cached) " >&6
6173 else case e in #(
6174 e) ac_cv_prog_cc_c11=no
6175 ac_save_CC=$CC
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 $ac_c_conftest_c11_program
6179 _ACEOF
6180 for ac_arg in '' -std=gnu11
6181 do
6182 CC="$ac_save_CC $ac_arg"
6183 if ac_fn_c_try_compile "$LINENO"
6184 then :
6185 ac_cv_prog_cc_c11=$ac_arg
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext conftest.beam
6188 test "x$ac_cv_prog_cc_c11" != "xno" && break
6189 done
6190 rm -f conftest.$ac_ext
6191 CC=$ac_save_CC ;;
6192 esac
6193 fi
6194
6195 if test "x$ac_cv_prog_cc_c11" = xno
6196 then :
6197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6198 printf "%s\n" "unsupported" >&6; }
6199 else case e in #(
6200 e) if test "x$ac_cv_prog_cc_c11" = x
6201 then :
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6203 printf "%s\n" "none needed" >&6; }
6204 else case e in #(
6205 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6206 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6207 CC="$CC $ac_cv_prog_cc_c11" ;;
6208 esac
6209 fi
6210 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6211 ac_prog_cc_stdc=c11 ;;
6212 esac
6213 fi
6214 fi
6215 if test x$ac_prog_cc_stdc = xno
6216 then :
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6218 printf %s "checking for $CC option to enable C99 features... " >&6; }
6219 if test ${ac_cv_prog_cc_c99+y}
6220 then :
6221 printf %s "(cached) " >&6
6222 else case e in #(
6223 e) ac_cv_prog_cc_c99=no
6224 ac_save_CC=$CC
6225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6226 /* end confdefs.h. */
6227 $ac_c_conftest_c99_program
6228 _ACEOF
6229 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6230 do
6231 CC="$ac_save_CC $ac_arg"
6232 if ac_fn_c_try_compile "$LINENO"
6233 then :
6234 ac_cv_prog_cc_c99=$ac_arg
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.beam
6237 test "x$ac_cv_prog_cc_c99" != "xno" && break
6238 done
6239 rm -f conftest.$ac_ext
6240 CC=$ac_save_CC ;;
6241 esac
6242 fi
6243
6244 if test "x$ac_cv_prog_cc_c99" = xno
6245 then :
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6247 printf "%s\n" "unsupported" >&6; }
6248 else case e in #(
6249 e) if test "x$ac_cv_prog_cc_c99" = x
6250 then :
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6252 printf "%s\n" "none needed" >&6; }
6253 else case e in #(
6254 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6255 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6256 CC="$CC $ac_cv_prog_cc_c99" ;;
6257 esac
6258 fi
6259 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6260 ac_prog_cc_stdc=c99 ;;
6261 esac
6262 fi
6263 fi
6264 if test x$ac_prog_cc_stdc = xno
6265 then :
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6267 printf %s "checking for $CC option to enable C89 features... " >&6; }
6268 if test ${ac_cv_prog_cc_c89+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else case e in #(
6272 e) ac_cv_prog_cc_c89=no
6273 ac_save_CC=$CC
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6276 $ac_c_conftest_c89_program
6277 _ACEOF
6278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6279 do
6280 CC="$ac_save_CC $ac_arg"
6281 if ac_fn_c_try_compile "$LINENO"
6282 then :
6283 ac_cv_prog_cc_c89=$ac_arg
6284 fi
6285 rm -f core conftest.err conftest.$ac_objext conftest.beam
6286 test "x$ac_cv_prog_cc_c89" != "xno" && break
6287 done
6288 rm -f conftest.$ac_ext
6289 CC=$ac_save_CC ;;
6290 esac
6291 fi
6292
6293 if test "x$ac_cv_prog_cc_c89" = xno
6294 then :
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6296 printf "%s\n" "unsupported" >&6; }
6297 else case e in #(
6298 e) if test "x$ac_cv_prog_cc_c89" = x
6299 then :
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6301 printf "%s\n" "none needed" >&6; }
6302 else case e in #(
6303 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6304 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6305 CC="$CC $ac_cv_prog_cc_c89" ;;
6306 esac
6307 fi
6308 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6309 ac_prog_cc_stdc=c89 ;;
6310 esac
6311 fi
6312 fi
6313
6314 ac_ext=c
6315 ac_cpp='$CPP $CPPFLAGS'
6316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6319
6320
6321 ac_ext=c
6322 ac_cpp='$CPP $CPPFLAGS'
6323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6327 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6328 if test ${am_cv_prog_cc_c_o+y}
6329 then :
6330 printf %s "(cached) " >&6
6331 else case e in #(
6332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333 /* end confdefs.h. */
6334
6335 int
6336 main (void)
6337 {
6338
6339 ;
6340 return 0;
6341 }
6342 _ACEOF
6343 # Make sure it works both with $CC and with simple cc.
6344 # Following AC_PROG_CC_C_O, we do the test twice because some
6345 # compilers refuse to overwrite an existing .o file with -o,
6346 # though they will create one.
6347 am_cv_prog_cc_c_o=yes
6348 for am_i in 1 2; do
6349 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6350 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6351 ac_status=$?
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } \
6354 && test -f conftest2.$ac_objext; then
6355 : OK
6356 else
6357 am_cv_prog_cc_c_o=no
6358 break
6359 fi
6360 done
6361 # aligned with autoconf, so not including core; see bug#72225.
6362 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
6363 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
6364 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
6365 unset am_i ;;
6366 esac
6367 fi
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6369 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6370 if test "$am_cv_prog_cc_c_o" != yes; then
6371 # Losing compiler, so override with the script.
6372 # FIXME: It is wrong to rewrite CC.
6373 # But if we don't then we get into trouble of one sort or another.
6374 # A longer-term fix would be to have automake use am__CC in this case,
6375 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6376 CC="$am_aux_dir/compile $CC"
6377 fi
6378 ac_ext=c
6379 ac_cpp='$CPP $CPPFLAGS'
6380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6383
6384
6385 depcc="$CC" am_compiler_list=
6386
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6388 printf %s "checking dependency style of $depcc... " >&6; }
6389 if test ${am_cv_CC_dependencies_compiler_type+y}
6390 then :
6391 printf %s "(cached) " >&6
6392 else case e in #(
6393 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6394 # We make a subdir and do the tests there. Otherwise we can end up
6395 # making bogus files that we don't know about and never remove. For
6396 # instance it was reported that on HP-UX the gcc test will end up
6397 # making a dummy file named 'D' -- because '-MD' means "put the output
6398 # in D".
6399 rm -rf conftest.dir
6400 mkdir conftest.dir
6401 # Copy depcomp to subdir because otherwise we won't find it if we're
6402 # using a relative directory.
6403 cp "$am_depcomp" conftest.dir
6404 cd conftest.dir
6405 # We will build objects and dependencies in a subdirectory because
6406 # it helps to detect inapplicable dependency modes. For instance
6407 # both Tru64's cc and ICC support -MD to output dependencies as a
6408 # side effect of compilation, but ICC will put the dependencies in
6409 # the current directory while Tru64 will put them in the object
6410 # directory.
6411 mkdir sub
6412
6413 am_cv_CC_dependencies_compiler_type=none
6414 if test "$am_compiler_list" = ""; then
6415 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6416 fi
6417 am__universal=false
6418 case " $depcc " in #(
6419 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6420 esac
6421
6422 for depmode in $am_compiler_list; do
6423 # Setup a source with many dependencies, because some compilers
6424 # like to wrap large dependency lists on column 80 (with \), and
6425 # we should not choose a depcomp mode which is confused by this.
6426 #
6427 # We need to recreate these files for each test, as the compiler may
6428 # overwrite some of them when testing with obscure command lines.
6429 # This happens at least with the AIX C compiler.
6430 : > sub/conftest.c
6431 for i in 1 2 3 4 5 6; do
6432 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6433 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6434 # Solaris 10 /bin/sh.
6435 echo '/* dummy */' > sub/conftst$i.h
6436 done
6437 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6438
6439 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6440 # mode. It turns out that the SunPro C++ compiler does not properly
6441 # handle '-M -o', and we need to detect this. Also, some Intel
6442 # versions had trouble with output in subdirs.
6443 am__obj=sub/conftest.${OBJEXT-o}
6444 am__minus_obj="-o $am__obj"
6445 case $depmode in
6446 gcc)
6447 # This depmode causes a compiler race in universal mode.
6448 test "$am__universal" = false || continue
6449 ;;
6450 nosideeffect)
6451 # After this tag, mechanisms are not by side-effect, so they'll
6452 # only be used when explicitly requested.
6453 if test "x$enable_dependency_tracking" = xyes; then
6454 continue
6455 else
6456 break
6457 fi
6458 ;;
6459 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6460 # This compiler won't grok '-c -o', but also, the minuso test has
6461 # not run yet. These depmodes are late enough in the game, and
6462 # so weak that their functioning should not be impacted.
6463 am__obj=conftest.${OBJEXT-o}
6464 am__minus_obj=
6465 ;;
6466 none) break ;;
6467 esac
6468 if depmode=$depmode \
6469 source=sub/conftest.c object=$am__obj \
6470 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6471 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6472 >/dev/null 2>conftest.err &&
6473 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6474 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6475 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6476 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6477 # icc doesn't choke on unknown options, it will just issue warnings
6478 # or remarks (even with -Werror). So we grep stderr for any message
6479 # that says an option was ignored or not supported.
6480 # When given -MP, icc 7.0 and 7.1 complain thus:
6481 # icc: Command line warning: ignoring option '-M'; no argument required
6482 # The diagnosis changed in icc 8.0:
6483 # icc: Command line remark: option '-MP' not supported
6484 if (grep 'ignoring option' conftest.err ||
6485 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6486 am_cv_CC_dependencies_compiler_type=$depmode
6487 break
6488 fi
6489 fi
6490 done
6491
6492 cd ..
6493 rm -rf conftest.dir
6494 else
6495 am_cv_CC_dependencies_compiler_type=none
6496 fi
6497 ;;
6498 esac
6499 fi
6500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6501 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6502 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6503
6504 if
6505 test "x$enable_dependency_tracking" != xno \
6506 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6507 am__fastdepCC_TRUE=
6508 am__fastdepCC_FALSE='#'
6509 else
6510 am__fastdepCC_TRUE='#'
6511 am__fastdepCC_FALSE=
6512 fi
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522 ac_ext=cpp
6523 ac_cpp='$CXXCPP $CPPFLAGS'
6524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6527 if test -z "$CXX"; then
6528 if test -n "$CCC"; then
6529 CXX=$CCC
6530 else
6531 if test -n "$ac_tool_prefix"; then
6532 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6533 do
6534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6537 printf %s "checking for $ac_word... " >&6; }
6538 if test ${ac_cv_prog_CXX+y}
6539 then :
6540 printf %s "(cached) " >&6
6541 else case e in #(
6542 e) if test -n "$CXX"; then
6543 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6544 else
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6546 for as_dir in $PATH
6547 do
6548 IFS=$as_save_IFS
6549 case $as_dir in #(((
6550 '') as_dir=./ ;;
6551 */) ;;
6552 *) as_dir=$as_dir/ ;;
6553 esac
6554 for ac_exec_ext in '' $ac_executable_extensions; do
6555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6556 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560 done
6561 done
6562 IFS=$as_save_IFS
6563
6564 fi ;;
6565 esac
6566 fi
6567 CXX=$ac_cv_prog_CXX
6568 if test -n "$CXX"; then
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6570 printf "%s\n" "$CXX" >&6; }
6571 else
6572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6573 printf "%s\n" "no" >&6; }
6574 fi
6575
6576
6577 test -n "$CXX" && break
6578 done
6579 fi
6580 if test -z "$CXX"; then
6581 ac_ct_CXX=$CXX
6582 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6583 do
6584 # Extract the first word of "$ac_prog", so it can be a program name with args.
6585 set dummy $ac_prog; ac_word=$2
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 printf %s "checking for $ac_word... " >&6; }
6588 if test ${ac_cv_prog_ac_ct_CXX+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else case e in #(
6592 e) if test -n "$ac_ct_CXX"; then
6593 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598 IFS=$as_save_IFS
6599 case $as_dir in #(((
6600 '') as_dir=./ ;;
6601 */) ;;
6602 *) as_dir=$as_dir/ ;;
6603 esac
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_CXX="$ac_prog"
6607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi ;;
6615 esac
6616 fi
6617 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6618 if test -n "$ac_ct_CXX"; then
6619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6620 printf "%s\n" "$ac_ct_CXX" >&6; }
6621 else
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 printf "%s\n" "no" >&6; }
6624 fi
6625
6626
6627 test -n "$ac_ct_CXX" && break
6628 done
6629
6630 if test "x$ac_ct_CXX" = x; then
6631 CXX="g++"
6632 else
6633 case $cross_compiling:$ac_tool_warned in
6634 yes:)
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6636 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6637 ac_tool_warned=yes ;;
6638 esac
6639 CXX=$ac_ct_CXX
6640 fi
6641 fi
6642
6643 fi
6644 fi
6645 # Provide some information about the compiler.
6646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6647 set X $ac_compile
6648 ac_compiler=$2
6649 for ac_option in --version -v -V -qversion; do
6650 { { ac_try="$ac_compiler $ac_option >&5"
6651 case "(($ac_try" in
6652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6654 esac
6655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6656 printf "%s\n" "$ac_try_echo"; } >&5
6657 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6658 ac_status=$?
6659 if test -s conftest.err; then
6660 sed '10a\
6661 ... rest of stderr output deleted ...
6662 10q' conftest.err >conftest.er1
6663 cat conftest.er1 >&5
6664 fi
6665 rm -f conftest.er1 conftest.err
6666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6667 test $ac_status = 0; }
6668 done
6669
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6671 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6672 if test ${ac_cv_cxx_compiler_gnu+y}
6673 then :
6674 printf %s "(cached) " >&6
6675 else case e in #(
6676 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678
6679 int
6680 main (void)
6681 {
6682 #ifndef __GNUC__
6683 choke me
6684 #endif
6685
6686 ;
6687 return 0;
6688 }
6689 _ACEOF
6690 if ac_fn_cxx_try_compile "$LINENO"
6691 then :
6692 ac_compiler_gnu=yes
6693 else case e in #(
6694 e) ac_compiler_gnu=no ;;
6695 esac
6696 fi
6697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6698 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6699 ;;
6700 esac
6701 fi
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6703 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6705
6706 if test $ac_compiler_gnu = yes; then
6707 GXX=yes
6708 else
6709 GXX=
6710 fi
6711 ac_test_CXXFLAGS=${CXXFLAGS+y}
6712 ac_save_CXXFLAGS=$CXXFLAGS
6713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6714 printf %s "checking whether $CXX accepts -g... " >&6; }
6715 if test ${ac_cv_prog_cxx_g+y}
6716 then :
6717 printf %s "(cached) " >&6
6718 else case e in #(
6719 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6720 ac_cxx_werror_flag=yes
6721 ac_cv_prog_cxx_g=no
6722 CXXFLAGS="-g"
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6725
6726 int
6727 main (void)
6728 {
6729
6730 ;
6731 return 0;
6732 }
6733 _ACEOF
6734 if ac_fn_cxx_try_compile "$LINENO"
6735 then :
6736 ac_cv_prog_cxx_g=yes
6737 else case e in #(
6738 e) CXXFLAGS=""
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741
6742 int
6743 main (void)
6744 {
6745
6746 ;
6747 return 0;
6748 }
6749 _ACEOF
6750 if ac_fn_cxx_try_compile "$LINENO"
6751 then :
6752
6753 else case e in #(
6754 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6755 CXXFLAGS="-g"
6756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758
6759 int
6760 main (void)
6761 {
6762
6763 ;
6764 return 0;
6765 }
6766 _ACEOF
6767 if ac_fn_cxx_try_compile "$LINENO"
6768 then :
6769 ac_cv_prog_cxx_g=yes
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6772 esac
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6775 esac
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6778 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6779 esac
6780 fi
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6782 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6783 if test $ac_test_CXXFLAGS; then
6784 CXXFLAGS=$ac_save_CXXFLAGS
6785 elif test $ac_cv_prog_cxx_g = yes; then
6786 if test "$GXX" = yes; then
6787 CXXFLAGS="-g -O2"
6788 else
6789 CXXFLAGS="-g"
6790 fi
6791 else
6792 if test "$GXX" = yes; then
6793 CXXFLAGS="-O2"
6794 else
6795 CXXFLAGS=
6796 fi
6797 fi
6798 ac_prog_cxx_stdcxx=no
6799 if test x$ac_prog_cxx_stdcxx = xno
6800 then :
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6802 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6803 if test ${ac_cv_prog_cxx_cxx11+y}
6804 then :
6805 printf %s "(cached) " >&6
6806 else case e in #(
6807 e) ac_cv_prog_cxx_cxx11=no
6808 ac_save_CXX=$CXX
6809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6810 /* end confdefs.h. */
6811 $ac_cxx_conftest_cxx11_program
6812 _ACEOF
6813 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6814 do
6815 CXX="$ac_save_CXX $ac_arg"
6816 if ac_fn_cxx_try_compile "$LINENO"
6817 then :
6818 ac_cv_prog_cxx_cxx11=$ac_arg
6819 fi
6820 rm -f core conftest.err conftest.$ac_objext conftest.beam
6821 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6822 done
6823 rm -f conftest.$ac_ext
6824 CXX=$ac_save_CXX ;;
6825 esac
6826 fi
6827
6828 if test "x$ac_cv_prog_cxx_cxx11" = xno
6829 then :
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6831 printf "%s\n" "unsupported" >&6; }
6832 else case e in #(
6833 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6834 then :
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6836 printf "%s\n" "none needed" >&6; }
6837 else case e in #(
6838 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6839 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6840 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6841 esac
6842 fi
6843 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6844 ac_prog_cxx_stdcxx=cxx11 ;;
6845 esac
6846 fi
6847 fi
6848 if test x$ac_prog_cxx_stdcxx = xno
6849 then :
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6851 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6852 if test ${ac_cv_prog_cxx_cxx98+y}
6853 then :
6854 printf %s "(cached) " >&6
6855 else case e in #(
6856 e) ac_cv_prog_cxx_cxx98=no
6857 ac_save_CXX=$CXX
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 $ac_cxx_conftest_cxx98_program
6861 _ACEOF
6862 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6863 do
6864 CXX="$ac_save_CXX $ac_arg"
6865 if ac_fn_cxx_try_compile "$LINENO"
6866 then :
6867 ac_cv_prog_cxx_cxx98=$ac_arg
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.beam
6870 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6871 done
6872 rm -f conftest.$ac_ext
6873 CXX=$ac_save_CXX ;;
6874 esac
6875 fi
6876
6877 if test "x$ac_cv_prog_cxx_cxx98" = xno
6878 then :
6879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6880 printf "%s\n" "unsupported" >&6; }
6881 else case e in #(
6882 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6883 then :
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6885 printf "%s\n" "none needed" >&6; }
6886 else case e in #(
6887 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6888 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6889 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6890 esac
6891 fi
6892 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6893 ac_prog_cxx_stdcxx=cxx98 ;;
6894 esac
6895 fi
6896 fi
6897
6898 ac_ext=c
6899 ac_cpp='$CPP $CPPFLAGS'
6900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903
6904 depcc="$CXX" am_compiler_list=
6905
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6907 printf %s "checking dependency style of $depcc... " >&6; }
6908 if test ${am_cv_CXX_dependencies_compiler_type+y}
6909 then :
6910 printf %s "(cached) " >&6
6911 else case e in #(
6912 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6913 # We make a subdir and do the tests there. Otherwise we can end up
6914 # making bogus files that we don't know about and never remove. For
6915 # instance it was reported that on HP-UX the gcc test will end up
6916 # making a dummy file named 'D' -- because '-MD' means "put the output
6917 # in D".
6918 rm -rf conftest.dir
6919 mkdir conftest.dir
6920 # Copy depcomp to subdir because otherwise we won't find it if we're
6921 # using a relative directory.
6922 cp "$am_depcomp" conftest.dir
6923 cd conftest.dir
6924 # We will build objects and dependencies in a subdirectory because
6925 # it helps to detect inapplicable dependency modes. For instance
6926 # both Tru64's cc and ICC support -MD to output dependencies as a
6927 # side effect of compilation, but ICC will put the dependencies in
6928 # the current directory while Tru64 will put them in the object
6929 # directory.
6930 mkdir sub
6931
6932 am_cv_CXX_dependencies_compiler_type=none
6933 if test "$am_compiler_list" = ""; then
6934 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6935 fi
6936 am__universal=false
6937 case " $depcc " in #(
6938 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6939 esac
6940
6941 for depmode in $am_compiler_list; do
6942 # Setup a source with many dependencies, because some compilers
6943 # like to wrap large dependency lists on column 80 (with \), and
6944 # we should not choose a depcomp mode which is confused by this.
6945 #
6946 # We need to recreate these files for each test, as the compiler may
6947 # overwrite some of them when testing with obscure command lines.
6948 # This happens at least with the AIX C compiler.
6949 : > sub/conftest.c
6950 for i in 1 2 3 4 5 6; do
6951 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6952 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6953 # Solaris 10 /bin/sh.
6954 echo '/* dummy */' > sub/conftst$i.h
6955 done
6956 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6957
6958 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6959 # mode. It turns out that the SunPro C++ compiler does not properly
6960 # handle '-M -o', and we need to detect this. Also, some Intel
6961 # versions had trouble with output in subdirs.
6962 am__obj=sub/conftest.${OBJEXT-o}
6963 am__minus_obj="-o $am__obj"
6964 case $depmode in
6965 gcc)
6966 # This depmode causes a compiler race in universal mode.
6967 test "$am__universal" = false || continue
6968 ;;
6969 nosideeffect)
6970 # After this tag, mechanisms are not by side-effect, so they'll
6971 # only be used when explicitly requested.
6972 if test "x$enable_dependency_tracking" = xyes; then
6973 continue
6974 else
6975 break
6976 fi
6977 ;;
6978 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6979 # This compiler won't grok '-c -o', but also, the minuso test has
6980 # not run yet. These depmodes are late enough in the game, and
6981 # so weak that their functioning should not be impacted.
6982 am__obj=conftest.${OBJEXT-o}
6983 am__minus_obj=
6984 ;;
6985 none) break ;;
6986 esac
6987 if depmode=$depmode \
6988 source=sub/conftest.c object=$am__obj \
6989 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6990 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6991 >/dev/null 2>conftest.err &&
6992 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6993 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6994 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6995 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6996 # icc doesn't choke on unknown options, it will just issue warnings
6997 # or remarks (even with -Werror). So we grep stderr for any message
6998 # that says an option was ignored or not supported.
6999 # When given -MP, icc 7.0 and 7.1 complain thus:
7000 # icc: Command line warning: ignoring option '-M'; no argument required
7001 # The diagnosis changed in icc 8.0:
7002 # icc: Command line remark: option '-MP' not supported
7003 if (grep 'ignoring option' conftest.err ||
7004 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7005 am_cv_CXX_dependencies_compiler_type=$depmode
7006 break
7007 fi
7008 fi
7009 done
7010
7011 cd ..
7012 rm -rf conftest.dir
7013 else
7014 am_cv_CXX_dependencies_compiler_type=none
7015 fi
7016 ;;
7017 esac
7018 fi
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7020 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
7021 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7022
7023 if
7024 test "x$enable_dependency_tracking" != xno \
7025 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7026 am__fastdepCXX_TRUE=
7027 am__fastdepCXX_FALSE='#'
7028 else
7029 am__fastdepCXX_TRUE='#'
7030 am__fastdepCXX_FALSE=
7031 fi
7032
7033
7034
7035 case `pwd` in
7036 *\ * | *\ *)
7037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7038 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7039 esac
7040
7041
7042
7043 macro_version='2.5.4'
7044 macro_revision='2.5.4'
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059 ltmain=$ac_aux_dir/ltmain.sh
7060
7061
7062
7063 # Make sure we can run config.sub.
7064 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7065 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7066
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7068 printf %s "checking build system type... " >&6; }
7069 if test ${ac_cv_build+y}
7070 then :
7071 printf %s "(cached) " >&6
7072 else case e in #(
7073 e) ac_build_alias=$build_alias
7074 test "x$ac_build_alias" = x &&
7075 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7076 test "x$ac_build_alias" = x &&
7077 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7078 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7079 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7080 ;;
7081 esac
7082 fi
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7084 printf "%s\n" "$ac_cv_build" >&6; }
7085 case $ac_cv_build in
7086 *-*-*) ;;
7087 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7088 esac
7089 build=$ac_cv_build
7090 ac_save_IFS=$IFS; IFS='-'
7091 set x $ac_cv_build
7092 shift
7093 build_cpu=$1
7094 build_vendor=$2
7095 shift; shift
7096 # Remember, the first character of IFS is used to create $*,
7097 # except with old shells:
7098 build_os=$*
7099 IFS=$ac_save_IFS
7100 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7101
7102
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7104 printf %s "checking host system type... " >&6; }
7105 if test ${ac_cv_host+y}
7106 then :
7107 printf %s "(cached) " >&6
7108 else case e in #(
7109 e) if test "x$host_alias" = x; then
7110 ac_cv_host=$ac_cv_build
7111 else
7112 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7113 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7114 fi
7115 ;;
7116 esac
7117 fi
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7119 printf "%s\n" "$ac_cv_host" >&6; }
7120 case $ac_cv_host in
7121 *-*-*) ;;
7122 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7123 esac
7124 host=$ac_cv_host
7125 ac_save_IFS=$IFS; IFS='-'
7126 set x $ac_cv_host
7127 shift
7128 host_cpu=$1
7129 host_vendor=$2
7130 shift; shift
7131 # Remember, the first character of IFS is used to create $*,
7132 # except with old shells:
7133 host_os=$*
7134 IFS=$ac_save_IFS
7135 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7136
7137
7138 # Backslashify metacharacters that are still active within
7139 # double-quoted strings.
7140 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7141
7142 # Same as above, but do not quote variable references.
7143 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7144
7145 # Sed substitution to delay expansion of an escaped shell variable in a
7146 # double_quote_subst'ed string.
7147 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7148
7149 # Sed substitution to delay expansion of an escaped single quote.
7150 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7151
7152 # Sed substitution to avoid accidental globbing in evaled expressions
7153 no_glob_subst='s/\*/\\\*/g'
7154
7155 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7156 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7157 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7158
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7160 printf %s "checking how to print strings... " >&6; }
7161 # Test print first, because it will be a builtin if present.
7162 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7163 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7164 ECHO='print -r --'
7165 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7166 ECHO='printf %s\n'
7167 else
7168 # Use this function as a fallback that always works.
7169 func_fallback_echo ()
7170 {
7171 eval 'cat <<_LTECHO_EOF
7172 $1
7173 _LTECHO_EOF'
7174 }
7175 ECHO='func_fallback_echo'
7176 fi
7177
7178 # func_echo_all arg...
7179 # Invoke $ECHO with all args, space-separated.
7180 func_echo_all ()
7181 {
7182 $ECHO ""
7183 }
7184
7185 case $ECHO in
7186 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7187 printf "%s\n" "printf" >&6; } ;;
7188 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7189 printf "%s\n" "print -r" >&6; } ;;
7190 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7191 printf "%s\n" "cat" >&6; } ;;
7192 esac
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7208 printf %s "checking for a sed that does not truncate output... " >&6; }
7209 if test ${ac_cv_path_SED+y}
7210 then :
7211 printf %s "(cached) " >&6
7212 else case e in #(
7213 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7214 for ac_i in 1 2 3 4 5 6 7; do
7215 ac_script="$ac_script$as_nl$ac_script"
7216 done
7217 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7218 { ac_script=; unset ac_script;}
7219 if test -z "$SED"; then
7220 ac_path_SED_found=false
7221 # Loop through the user's path and test for each of PROGNAME-LIST
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225 IFS=$as_save_IFS
7226 case $as_dir in #(((
7227 '') as_dir=./ ;;
7228 */) ;;
7229 *) as_dir=$as_dir/ ;;
7230 esac
7231 for ac_prog in sed gsed
7232 do
7233 for ac_exec_ext in '' $ac_executable_extensions; do
7234 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
7235 as_fn_executable_p "$ac_path_SED" || continue
7236 # Check for GNU ac_path_SED and select it if it is found.
7237 # Check for GNU $ac_path_SED
7238 case `"$ac_path_SED" --version 2>&1` in #(
7239 *GNU*)
7240 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7241 #(
7242 *)
7243 ac_count=0
7244 printf %s 0123456789 >"conftest.in"
7245 while :
7246 do
7247 cat "conftest.in" "conftest.in" >"conftest.tmp"
7248 mv "conftest.tmp" "conftest.in"
7249 cp "conftest.in" "conftest.nl"
7250 printf "%s\n" '' >> "conftest.nl"
7251 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7253 as_fn_arith $ac_count + 1 && ac_count=$as_val
7254 if test $ac_count -gt ${ac_path_SED_max-0}; then
7255 # Best one so far, save it but keep looking for a better one
7256 ac_cv_path_SED="$ac_path_SED"
7257 ac_path_SED_max=$ac_count
7258 fi
7259 # 10*(2^10) chars as input seems more than enough
7260 test $ac_count -gt 10 && break
7261 done
7262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7263 esac
7264
7265 $ac_path_SED_found && break 3
7266 done
7267 done
7268 done
7269 IFS=$as_save_IFS
7270 if test -z "$ac_cv_path_SED"; then
7271 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7272 fi
7273 else
7274 ac_cv_path_SED=$SED
7275 fi
7276 ;;
7277 esac
7278 fi
7279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7280 printf "%s\n" "$ac_cv_path_SED" >&6; }
7281 SED="$ac_cv_path_SED"
7282 rm -f conftest.sed
7283
7284 test -z "$SED" && SED=sed
7285 Xsed="$SED -e 1s/^X//"
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7298 printf %s "checking for grep that handles long lines and -e... " >&6; }
7299 if test ${ac_cv_path_GREP+y}
7300 then :
7301 printf %s "(cached) " >&6
7302 else case e in #(
7303 e) if test -z "$GREP"; then
7304 ac_path_GREP_found=false
7305 # Loop through the user's path and test for each of PROGNAME-LIST
7306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7308 do
7309 IFS=$as_save_IFS
7310 case $as_dir in #(((
7311 '') as_dir=./ ;;
7312 */) ;;
7313 *) as_dir=$as_dir/ ;;
7314 esac
7315 for ac_prog in grep ggrep
7316 do
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7319 as_fn_executable_p "$ac_path_GREP" || continue
7320 # Check for GNU ac_path_GREP and select it if it is found.
7321 # Check for GNU $ac_path_GREP
7322 case `"$ac_path_GREP" --version 2>&1` in #(
7323 *GNU*)
7324 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7325 #(
7326 *)
7327 ac_count=0
7328 printf %s 0123456789 >"conftest.in"
7329 while :
7330 do
7331 cat "conftest.in" "conftest.in" >"conftest.tmp"
7332 mv "conftest.tmp" "conftest.in"
7333 cp "conftest.in" "conftest.nl"
7334 printf "%s\n" 'GREP' >> "conftest.nl"
7335 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7337 as_fn_arith $ac_count + 1 && ac_count=$as_val
7338 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7339 # Best one so far, save it but keep looking for a better one
7340 ac_cv_path_GREP="$ac_path_GREP"
7341 ac_path_GREP_max=$ac_count
7342 fi
7343 # 10*(2^10) chars as input seems more than enough
7344 test $ac_count -gt 10 && break
7345 done
7346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7347 esac
7348
7349 $ac_path_GREP_found && break 3
7350 done
7351 done
7352 done
7353 IFS=$as_save_IFS
7354 if test -z "$ac_cv_path_GREP"; then
7355 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7356 fi
7357 else
7358 ac_cv_path_GREP=$GREP
7359 fi
7360 ;;
7361 esac
7362 fi
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7364 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7365 GREP="$ac_cv_path_GREP"
7366
7367
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7369 printf %s "checking for egrep... " >&6; }
7370 if test ${ac_cv_path_EGREP+y}
7371 then :
7372 printf %s "(cached) " >&6
7373 else case e in #(
7374 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7375 then ac_cv_path_EGREP="$GREP -E"
7376 else
7377 if test -z "$EGREP"; then
7378 ac_path_EGREP_found=false
7379 # Loop through the user's path and test for each of PROGNAME-LIST
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7382 do
7383 IFS=$as_save_IFS
7384 case $as_dir in #(((
7385 '') as_dir=./ ;;
7386 */) ;;
7387 *) as_dir=$as_dir/ ;;
7388 esac
7389 for ac_prog in egrep
7390 do
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7393 as_fn_executable_p "$ac_path_EGREP" || continue
7394 # Check for GNU ac_path_EGREP and select it if it is found.
7395 # Check for GNU $ac_path_EGREP
7396 case `"$ac_path_EGREP" --version 2>&1` in #(
7397 *GNU*)
7398 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7399 #(
7400 *)
7401 ac_count=0
7402 printf %s 0123456789 >"conftest.in"
7403 while :
7404 do
7405 cat "conftest.in" "conftest.in" >"conftest.tmp"
7406 mv "conftest.tmp" "conftest.in"
7407 cp "conftest.in" "conftest.nl"
7408 printf "%s\n" 'EGREP' >> "conftest.nl"
7409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7411 as_fn_arith $ac_count + 1 && ac_count=$as_val
7412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7413 # Best one so far, save it but keep looking for a better one
7414 ac_cv_path_EGREP="$ac_path_EGREP"
7415 ac_path_EGREP_max=$ac_count
7416 fi
7417 # 10*(2^10) chars as input seems more than enough
7418 test $ac_count -gt 10 && break
7419 done
7420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7421 esac
7422
7423 $ac_path_EGREP_found && break 3
7424 done
7425 done
7426 done
7427 IFS=$as_save_IFS
7428 if test -z "$ac_cv_path_EGREP"; then
7429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7430 fi
7431 else
7432 ac_cv_path_EGREP=$EGREP
7433 fi
7434
7435 fi ;;
7436 esac
7437 fi
7438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7439 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7440 EGREP="$ac_cv_path_EGREP"
7441
7442 EGREP_TRADITIONAL=$EGREP
7443 ac_cv_path_EGREP_TRADITIONAL=$EGREP
7444
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7446 printf %s "checking for fgrep... " >&6; }
7447 if test ${ac_cv_path_FGREP+y}
7448 then :
7449 printf %s "(cached) " >&6
7450 else case e in #(
7451 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7452 then ac_cv_path_FGREP="$GREP -F"
7453 else
7454 if test -z "$FGREP"; then
7455 ac_path_FGREP_found=false
7456 # Loop through the user's path and test for each of PROGNAME-LIST
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7459 do
7460 IFS=$as_save_IFS
7461 case $as_dir in #(((
7462 '') as_dir=./ ;;
7463 */) ;;
7464 *) as_dir=$as_dir/ ;;
7465 esac
7466 for ac_prog in fgrep
7467 do
7468 for ac_exec_ext in '' $ac_executable_extensions; do
7469 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
7470 as_fn_executable_p "$ac_path_FGREP" || continue
7471 # Check for GNU ac_path_FGREP and select it if it is found.
7472 # Check for GNU $ac_path_FGREP
7473 case `"$ac_path_FGREP" --version 2>&1` in #(
7474 *GNU*)
7475 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7476 #(
7477 *)
7478 ac_count=0
7479 printf %s 0123456789 >"conftest.in"
7480 while :
7481 do
7482 cat "conftest.in" "conftest.in" >"conftest.tmp"
7483 mv "conftest.tmp" "conftest.in"
7484 cp "conftest.in" "conftest.nl"
7485 printf "%s\n" 'FGREP' >> "conftest.nl"
7486 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7487 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7488 as_fn_arith $ac_count + 1 && ac_count=$as_val
7489 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7490 # Best one so far, save it but keep looking for a better one
7491 ac_cv_path_FGREP="$ac_path_FGREP"
7492 ac_path_FGREP_max=$ac_count
7493 fi
7494 # 10*(2^10) chars as input seems more than enough
7495 test $ac_count -gt 10 && break
7496 done
7497 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7498 esac
7499
7500 $ac_path_FGREP_found && break 3
7501 done
7502 done
7503 done
7504 IFS=$as_save_IFS
7505 if test -z "$ac_cv_path_FGREP"; then
7506 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7507 fi
7508 else
7509 ac_cv_path_FGREP=$FGREP
7510 fi
7511
7512 fi ;;
7513 esac
7514 fi
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7516 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
7517 FGREP="$ac_cv_path_FGREP"
7518
7519
7520 test -z "$GREP" && GREP=grep
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540 # Check whether --with-gnu-ld was given.
7541 if test ${with_gnu_ld+y}
7542 then :
7543 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7544 else case e in #(
7545 e) with_gnu_ld=no ;;
7546 esac
7547 fi
7548
7549 ac_prog=ld
7550 if test yes = "$GCC"; then
7551 # Check if gcc -print-prog-name=ld gives a path.
7552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7553 printf %s "checking for ld used by $CC... " >&6; }
7554 case $host in
7555 *-*-mingw* | *-*-windows*)
7556 # gcc leaves a trailing carriage return, which upsets mingw
7557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7558 *)
7559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7560 esac
7561 case $ac_prog in
7562 # Accept absolute paths.
7563 [\\/]* | ?:[\\/]*)
7564 re_direlt='/[^/][^/]*/\.\./'
7565 # Canonicalize the pathname of ld
7566 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7567 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7568 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7569 done
7570 test -z "$LD" && LD=$ac_prog
7571 ;;
7572 "")
7573 # If it fails, then pretend we aren't using GCC.
7574 ac_prog=ld
7575 ;;
7576 *)
7577 # If it is relative, then search for the first ld in PATH.
7578 with_gnu_ld=unknown
7579 ;;
7580 esac
7581 elif test yes = "$with_gnu_ld"; then
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7583 printf %s "checking for GNU ld... " >&6; }
7584 else
7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7586 printf %s "checking for non-GNU ld... " >&6; }
7587 fi
7588 if test ${lt_cv_path_LD+y}
7589 then :
7590 printf %s "(cached) " >&6
7591 else case e in #(
7592 e) if test -z "$LD"; then
7593 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7594 for ac_dir in $PATH; do
7595 IFS=$lt_save_ifs
7596 test -z "$ac_dir" && ac_dir=.
7597 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7598 lt_cv_path_LD=$ac_dir/$ac_prog
7599 # Check to see if the program is GNU ld. I'd rather use --version,
7600 # but apparently some variants of GNU ld only accept -v.
7601 # Break only if it was the GNU/non-GNU ld that we prefer.
7602 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7603 *GNU* | *'with BFD'*)
7604 test no != "$with_gnu_ld" && break
7605 ;;
7606 *)
7607 test yes != "$with_gnu_ld" && break
7608 ;;
7609 esac
7610 fi
7611 done
7612 IFS=$lt_save_ifs
7613 else
7614 lt_cv_path_LD=$LD # Let the user override the test with a path.
7615 fi ;;
7616 esac
7617 fi
7618
7619 LD=$lt_cv_path_LD
7620 if test -n "$LD"; then
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7622 printf "%s\n" "$LD" >&6; }
7623 else
7624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 printf "%s\n" "no" >&6; }
7626 fi
7627 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7629 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
7630 if test ${lt_cv_prog_gnu_ld+y}
7631 then :
7632 printf %s "(cached) " >&6
7633 else case e in #(
7634 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
7635 case `$LD -v 2>&1 </dev/null` in
7636 *GNU* | *'with BFD'*)
7637 lt_cv_prog_gnu_ld=yes
7638 ;;
7639 *)
7640 lt_cv_prog_gnu_ld=no
7641 ;;
7642 esac ;;
7643 esac
7644 fi
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7646 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
7647 with_gnu_ld=$lt_cv_prog_gnu_ld
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7658 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7659 if test ${lt_cv_path_NM+y}
7660 then :
7661 printf %s "(cached) " >&6
7662 else case e in #(
7663 e) if test -n "$NM"; then
7664 # Let the user override the test.
7665 lt_cv_path_NM=$NM
7666 else
7667 lt_nm_to_check=${ac_tool_prefix}nm
7668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7669 lt_nm_to_check="$lt_nm_to_check nm"
7670 fi
7671 for lt_tmp_nm in $lt_nm_to_check; do
7672 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7673 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7674 IFS=$lt_save_ifs
7675 test -z "$ac_dir" && ac_dir=.
7676 tmp_nm=$ac_dir/$lt_tmp_nm
7677 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7678 # Check to see if the nm accepts a BSD-compat flag.
7679 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7680 # nm: unknown option "B" ignored
7681 # Tru64's nm complains that /dev/null is an invalid object file
7682 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7683 case $build_os in
7684 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
7685 *) lt_bad_file=/dev/null ;;
7686 esac
7687 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
7688 *$lt_bad_file* | *'Invalid file or object type'*)
7689 lt_cv_path_NM="$tmp_nm -B"
7690 break 2
7691 ;;
7692 *)
7693 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
7694 */dev/null*)
7695 lt_cv_path_NM="$tmp_nm -p"
7696 break 2
7697 ;;
7698 *)
7699 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7700 continue # so that we can try to find one that supports BSD flags
7701 ;;
7702 esac
7703 ;;
7704 esac
7705 fi
7706 done
7707 IFS=$lt_save_ifs
7708 done
7709 : ${lt_cv_path_NM=no}
7710 fi ;;
7711 esac
7712 fi
7713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7714 printf "%s\n" "$lt_cv_path_NM" >&6; }
7715 if test no != "$lt_cv_path_NM"; then
7716 NM=$lt_cv_path_NM
7717 else
7718 # Didn't find any BSD compatible name lister, look for dumpbin.
7719 if test -n "$DUMPBIN"; then :
7720 # Let the user override the test.
7721 else
7722 if test -n "$ac_tool_prefix"; then
7723 for ac_prog in dumpbin "link -dump"
7724 do
7725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728 printf %s "checking for $ac_word... " >&6; }
7729 if test ${ac_cv_prog_DUMPBIN+y}
7730 then :
7731 printf %s "(cached) " >&6
7732 else case e in #(
7733 e) if test -n "$DUMPBIN"; then
7734 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7738 do
7739 IFS=$as_save_IFS
7740 case $as_dir in #(((
7741 '') as_dir=./ ;;
7742 */) ;;
7743 *) as_dir=$as_dir/ ;;
7744 esac
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7747 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7748 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7749 break 2
7750 fi
7751 done
7752 done
7753 IFS=$as_save_IFS
7754
7755 fi ;;
7756 esac
7757 fi
7758 DUMPBIN=$ac_cv_prog_DUMPBIN
7759 if test -n "$DUMPBIN"; then
7760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7761 printf "%s\n" "$DUMPBIN" >&6; }
7762 else
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 printf "%s\n" "no" >&6; }
7765 fi
7766
7767
7768 test -n "$DUMPBIN" && break
7769 done
7770 fi
7771 if test -z "$DUMPBIN"; then
7772 ac_ct_DUMPBIN=$DUMPBIN
7773 for ac_prog in dumpbin "link -dump"
7774 do
7775 # Extract the first word of "$ac_prog", so it can be a program name with args.
7776 set dummy $ac_prog; ac_word=$2
7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 printf %s "checking for $ac_word... " >&6; }
7779 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
7780 then :
7781 printf %s "(cached) " >&6
7782 else case e in #(
7783 e) if test -n "$ac_ct_DUMPBIN"; then
7784 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7785 else
7786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787 for as_dir in $PATH
7788 do
7789 IFS=$as_save_IFS
7790 case $as_dir in #(((
7791 '') as_dir=./ ;;
7792 */) ;;
7793 *) as_dir=$as_dir/ ;;
7794 esac
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7798 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801 done
7802 done
7803 IFS=$as_save_IFS
7804
7805 fi ;;
7806 esac
7807 fi
7808 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7809 if test -n "$ac_ct_DUMPBIN"; then
7810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7811 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
7812 else
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 printf "%s\n" "no" >&6; }
7815 fi
7816
7817
7818 test -n "$ac_ct_DUMPBIN" && break
7819 done
7820
7821 if test "x$ac_ct_DUMPBIN" = x; then
7822 DUMPBIN=":"
7823 else
7824 case $cross_compiling:$ac_tool_warned in
7825 yes:)
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7827 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7828 ac_tool_warned=yes ;;
7829 esac
7830 DUMPBIN=$ac_ct_DUMPBIN
7831 fi
7832 fi
7833
7834 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
7835 *COFF*)
7836 DUMPBIN="$DUMPBIN -symbols -headers"
7837 ;;
7838 *)
7839 DUMPBIN=:
7840 ;;
7841 esac
7842 fi
7843
7844 if test : != "$DUMPBIN"; then
7845 NM=$DUMPBIN
7846 fi
7847 fi
7848 test -z "$NM" && NM=nm
7849
7850
7851
7852
7853
7854
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7856 printf %s "checking the name lister ($NM) interface... " >&6; }
7857 if test ${lt_cv_nm_interface+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else case e in #(
7861 e) lt_cv_nm_interface="BSD nm"
7862 echo "int some_variable = 0;" > conftest.$ac_ext
7863 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7864 (eval "$ac_compile" 2>conftest.err)
7865 cat conftest.err >&5
7866 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7867 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7868 cat conftest.err >&5
7869 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7870 cat conftest.out >&5
7871 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7872 lt_cv_nm_interface="MS dumpbin"
7873 fi
7874 rm -f conftest* ;;
7875 esac
7876 fi
7877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7878 printf "%s\n" "$lt_cv_nm_interface" >&6; }
7879
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7881 printf %s "checking whether ln -s works... " >&6; }
7882 LN_S=$as_ln_s
7883 if test "$LN_S" = "ln -s"; then
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7885 printf "%s\n" "yes" >&6; }
7886 else
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7888 printf "%s\n" "no, using $LN_S" >&6; }
7889 fi
7890
7891 # find the maximum length of command line arguments
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7893 printf %s "checking the maximum length of command line arguments... " >&6; }
7894 if test ${lt_cv_sys_max_cmd_len+y}
7895 then :
7896 printf %s "(cached) " >&6
7897 else case e in #(
7898 e) i=0
7899 teststring=ABCD
7900
7901 case $build_os in
7902 msdosdjgpp*)
7903 # On DJGPP, this test can blow up pretty badly due to problems in libc
7904 # (any single argument exceeding 2000 bytes causes a buffer overrun
7905 # during glob expansion). Even if it were fixed, the result of this
7906 # check would be larger than it should be.
7907 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7908 ;;
7909
7910 gnu* | ironclad*)
7911 # Under GNU Hurd and Ironclad, this test is not required because there
7912 # is no limit to the length of command line arguments.
7913 # Libtool will interpret -1 as no limit whatsoever
7914 lt_cv_sys_max_cmd_len=-1;
7915 ;;
7916
7917 cygwin* | mingw* | windows* | cegcc*)
7918 # On Win9x/ME, this test blows up -- it succeeds, but takes
7919 # about 5 minutes as the teststring grows exponentially.
7920 # Worse, since 9x/ME are not pre-emptively multitasking,
7921 # you end up with a "frozen" computer, even though with patience
7922 # the test eventually succeeds (with a max line length of 256k).
7923 # Instead, let's just punt: use the minimum linelength reported by
7924 # all of the supported platforms: 8192 (on NT/2K/XP).
7925 lt_cv_sys_max_cmd_len=8192;
7926 ;;
7927
7928 mint*)
7929 # On MiNT this can take a long time and run out of memory.
7930 lt_cv_sys_max_cmd_len=8192;
7931 ;;
7932
7933 amigaos*)
7934 # On AmigaOS with pdksh, this test takes hours, literally.
7935 # So we just punt and use a minimum line length of 8192.
7936 lt_cv_sys_max_cmd_len=8192;
7937 ;;
7938
7939 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
7940 # This has been around since 386BSD, at least. Likely further.
7941 if test -x /sbin/sysctl; then
7942 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7943 elif test -x /usr/sbin/sysctl; then
7944 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7945 else
7946 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7947 fi
7948 # And add a safety zone
7949 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7950 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7951 ;;
7952
7953 interix*)
7954 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7955 lt_cv_sys_max_cmd_len=196608
7956 ;;
7957
7958 os2*)
7959 # The test takes a long time on OS/2.
7960 lt_cv_sys_max_cmd_len=8192
7961 ;;
7962
7963 osf*)
7964 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7965 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7966 # nice to cause kernel panics so lets avoid the loop below.
7967 # First set a reasonable default.
7968 lt_cv_sys_max_cmd_len=16384
7969 #
7970 if test -x /sbin/sysconfig; then
7971 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7972 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7973 esac
7974 fi
7975 ;;
7976 sco3.2v5*)
7977 lt_cv_sys_max_cmd_len=102400
7978 ;;
7979 sysv5* | sco5v6* | sysv4.2uw2*)
7980 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7981 if test -n "$kargmax"; then
7982 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
7983 else
7984 lt_cv_sys_max_cmd_len=32768
7985 fi
7986 ;;
7987 *)
7988 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7989 if test -n "$lt_cv_sys_max_cmd_len" && \
7990 test undefined != "$lt_cv_sys_max_cmd_len"; then
7991 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7992 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7993 else
7994 # Make teststring a little bigger before we do anything with it.
7995 # a 1K string should be a reasonable start.
7996 for i in 1 2 3 4 5 6 7 8; do
7997 teststring=$teststring$teststring
7998 done
7999 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8000 # If test is not a shell built-in, we'll probably end up computing a
8001 # maximum length that is only half of the actual maximum length, but
8002 # we can't tell.
8003 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8004 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8005 test 17 != "$i" # 1/2 MB should be enough
8006 do
8007 i=`expr $i + 1`
8008 teststring=$teststring$teststring
8009 done
8010 # Only check the string length outside the loop.
8011 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8012 teststring=
8013 # Add a significant safety factor because C++ compilers can tack on
8014 # massive amounts of additional arguments before passing them to the
8015 # linker. It appears as though 1/2 is a usable value.
8016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8017 fi
8018 ;;
8019 esac
8020 ;;
8021 esac
8022 fi
8023
8024 if test -n "$lt_cv_sys_max_cmd_len"; then
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8026 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8027 else
8028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8029 printf "%s\n" "none" >&6; }
8030 fi
8031 max_cmd_len=$lt_cv_sys_max_cmd_len
8032
8033
8034
8035
8036
8037
8038 : ${CP="cp -f"}
8039 : ${MV="mv -f"}
8040 : ${RM="rm -f"}
8041
8042 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8043 lt_unset=unset
8044 else
8045 lt_unset=false
8046 fi
8047
8048
8049
8050
8051
8052 # test EBCDIC or ASCII
8053 case `echo X|tr X '\101'` in
8054 A) # ASCII based system
8055 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8056 lt_SP2NL='tr \040 \012'
8057 lt_NL2SP='tr \015\012 \040\040'
8058 ;;
8059 *) # EBCDIC based system
8060 lt_SP2NL='tr \100 \n'
8061 lt_NL2SP='tr \r\n \100\100'
8062 ;;
8063 esac
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8074 printf %s "checking how to convert $build file names to $host format... " >&6; }
8075 if test ${lt_cv_to_host_file_cmd+y}
8076 then :
8077 printf %s "(cached) " >&6
8078 else case e in #(
8079 e) case $host in
8080 *-*-mingw* )
8081 case $build in
8082 *-*-mingw* | *-*-windows* ) # actually msys
8083 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8084 ;;
8085 *-*-cygwin* )
8086 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8087 ;;
8088 * ) # otherwise, assume *nix
8089 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8090 ;;
8091 esac
8092 ;;
8093 *-*-cygwin* )
8094 case $build in
8095 *-*-mingw* | *-*-windows* ) # actually msys
8096 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8097 ;;
8098 *-*-cygwin* )
8099 lt_cv_to_host_file_cmd=func_convert_file_noop
8100 ;;
8101 * ) # otherwise, assume *nix
8102 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8103 ;;
8104 esac
8105 ;;
8106 * ) # unhandled hosts (and "normal" native builds)
8107 lt_cv_to_host_file_cmd=func_convert_file_noop
8108 ;;
8109 esac
8110 ;;
8111 esac
8112 fi
8113
8114 to_host_file_cmd=$lt_cv_to_host_file_cmd
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8116 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8117
8118
8119
8120
8121
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8123 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8124 if test ${lt_cv_to_tool_file_cmd+y}
8125 then :
8126 printf %s "(cached) " >&6
8127 else case e in #(
8128 e) #assume ordinary cross tools, or native build.
8129 lt_cv_to_tool_file_cmd=func_convert_file_noop
8130 case $host in
8131 *-*-mingw* | *-*-windows* )
8132 case $build in
8133 *-*-mingw* | *-*-windows* ) # actually msys
8134 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8135 ;;
8136 esac
8137 ;;
8138 esac
8139 ;;
8140 esac
8141 fi
8142
8143 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8145 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8146
8147
8148
8149
8150
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8152 printf %s "checking for $LD option to reload object files... " >&6; }
8153 if test ${lt_cv_ld_reload_flag+y}
8154 then :
8155 printf %s "(cached) " >&6
8156 else case e in #(
8157 e) lt_cv_ld_reload_flag='-r' ;;
8158 esac
8159 fi
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8161 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8162 reload_flag=$lt_cv_ld_reload_flag
8163 case $reload_flag in
8164 "" | " "*) ;;
8165 *) reload_flag=" $reload_flag" ;;
8166 esac
8167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8168 case $host_os in
8169 cygwin* | mingw* | windows* | pw32* | cegcc*)
8170 if test yes != "$GCC"; then
8171 reload_cmds=false
8172 fi
8173 ;;
8174 darwin*)
8175 if test yes = "$GCC"; then
8176 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8177 else
8178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8179 fi
8180 ;;
8181 esac
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191 # Extract the first word of "file", so it can be a program name with args.
8192 set dummy file; ac_word=$2
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 printf %s "checking for $ac_word... " >&6; }
8195 if test ${ac_cv_prog_FILECMD+y}
8196 then :
8197 printf %s "(cached) " >&6
8198 else case e in #(
8199 e) if test -n "$FILECMD"; then
8200 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
8201 else
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in $PATH
8204 do
8205 IFS=$as_save_IFS
8206 case $as_dir in #(((
8207 '') as_dir=./ ;;
8208 */) ;;
8209 *) as_dir=$as_dir/ ;;
8210 esac
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_FILECMD="file"
8214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8215 break 2
8216 fi
8217 done
8218 done
8219 IFS=$as_save_IFS
8220
8221 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
8222 fi ;;
8223 esac
8224 fi
8225 FILECMD=$ac_cv_prog_FILECMD
8226 if test -n "$FILECMD"; then
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
8228 printf "%s\n" "$FILECMD" >&6; }
8229 else
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231 printf "%s\n" "no" >&6; }
8232 fi
8233
8234
8235
8236
8237
8238
8239
8240
8241 if test -n "$ac_tool_prefix"; then
8242 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8243 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 printf %s "checking for $ac_word... " >&6; }
8246 if test ${ac_cv_prog_OBJDUMP+y}
8247 then :
8248 printf %s "(cached) " >&6
8249 else case e in #(
8250 e) if test -n "$OBJDUMP"; then
8251 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8252 else
8253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8254 for as_dir in $PATH
8255 do
8256 IFS=$as_save_IFS
8257 case $as_dir in #(((
8258 '') as_dir=./ ;;
8259 */) ;;
8260 *) as_dir=$as_dir/ ;;
8261 esac
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8265 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8266 break 2
8267 fi
8268 done
8269 done
8270 IFS=$as_save_IFS
8271
8272 fi ;;
8273 esac
8274 fi
8275 OBJDUMP=$ac_cv_prog_OBJDUMP
8276 if test -n "$OBJDUMP"; then
8277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8278 printf "%s\n" "$OBJDUMP" >&6; }
8279 else
8280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 printf "%s\n" "no" >&6; }
8282 fi
8283
8284
8285 fi
8286 if test -z "$ac_cv_prog_OBJDUMP"; then
8287 ac_ct_OBJDUMP=$OBJDUMP
8288 # Extract the first word of "objdump", so it can be a program name with args.
8289 set dummy objdump; ac_word=$2
8290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 printf %s "checking for $ac_word... " >&6; }
8292 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8293 then :
8294 printf %s "(cached) " >&6
8295 else case e in #(
8296 e) if test -n "$ac_ct_OBJDUMP"; then
8297 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8298 else
8299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8300 for as_dir in $PATH
8301 do
8302 IFS=$as_save_IFS
8303 case $as_dir in #(((
8304 '') as_dir=./ ;;
8305 */) ;;
8306 *) as_dir=$as_dir/ ;;
8307 esac
8308 for ac_exec_ext in '' $ac_executable_extensions; do
8309 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8310 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8311 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8312 break 2
8313 fi
8314 done
8315 done
8316 IFS=$as_save_IFS
8317
8318 fi ;;
8319 esac
8320 fi
8321 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8322 if test -n "$ac_ct_OBJDUMP"; then
8323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8324 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8325 else
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 printf "%s\n" "no" >&6; }
8328 fi
8329
8330 if test "x$ac_ct_OBJDUMP" = x; then
8331 OBJDUMP="false"
8332 else
8333 case $cross_compiling:$ac_tool_warned in
8334 yes:)
8335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8336 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8337 ac_tool_warned=yes ;;
8338 esac
8339 OBJDUMP=$ac_ct_OBJDUMP
8340 fi
8341 else
8342 OBJDUMP="$ac_cv_prog_OBJDUMP"
8343 fi
8344
8345 test -z "$OBJDUMP" && OBJDUMP=objdump
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8356 printf %s "checking how to recognize dependent libraries... " >&6; }
8357 if test ${lt_cv_deplibs_check_method+y}
8358 then :
8359 printf %s "(cached) " >&6
8360 else case e in #(
8361 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
8362 lt_cv_file_magic_test_file=
8363 lt_cv_deplibs_check_method='unknown'
8364 # Need to set the preceding variable on all platforms that support
8365 # interlibrary dependencies.
8366 # 'none' -- dependencies not supported.
8367 # 'unknown' -- same as none, but documents that we really don't know.
8368 # 'pass_all' -- all dependencies passed with no checks.
8369 # 'file_magic [[regex]]' -- check by looking for files in library path
8370 # that responds to the $file_magic_cmd with a given extended regex.
8371 # If you have 'file' or equivalent on your system and you're not sure
8372 # whether 'pass_all' will *always* work, you probably want this one.
8373
8374 case $host_os in
8375 aix[4-9]*)
8376 lt_cv_deplibs_check_method=pass_all
8377 ;;
8378
8379 beos*)
8380 lt_cv_deplibs_check_method=pass_all
8381 ;;
8382
8383 bsdi[45]*)
8384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8385 lt_cv_file_magic_cmd='$FILECMD -L'
8386 lt_cv_file_magic_test_file=/shlib/libc.so
8387 ;;
8388
8389 cygwin*)
8390 # func_win32_libid is a shell function defined in ltmain.sh
8391 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8392 lt_cv_file_magic_cmd='func_win32_libid'
8393 ;;
8394
8395 mingw* | windows* | pw32*)
8396 # Base MSYS/MinGW do not provide the 'file' command needed by
8397 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8398 # unless we find 'file', for example because we are cross-compiling.
8399 if ( file / ) >/dev/null 2>&1; then
8400 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8401 lt_cv_file_magic_cmd='func_win32_libid'
8402 else
8403 # Keep this pattern in sync with the one in func_win32_libid.
8404 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
8405 lt_cv_file_magic_cmd='$OBJDUMP -f'
8406 fi
8407 ;;
8408
8409 cegcc*)
8410 # use the weaker test based on 'objdump'. See mingw*.
8411 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8412 lt_cv_file_magic_cmd='$OBJDUMP -f'
8413 ;;
8414
8415 darwin* | rhapsody*)
8416 lt_cv_deplibs_check_method=pass_all
8417 ;;
8418
8419 freebsd* | dragonfly* | midnightbsd*)
8420 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8421 case $host_cpu in
8422 i*86 )
8423 # Not sure whether the presence of OpenBSD here was a mistake.
8424 # Let's accept both of them until this is cleared up.
8425 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8426 lt_cv_file_magic_cmd=$FILECMD
8427 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8428 ;;
8429 esac
8430 else
8431 lt_cv_deplibs_check_method=pass_all
8432 fi
8433 ;;
8434
8435 haiku*)
8436 lt_cv_deplibs_check_method=pass_all
8437 ;;
8438
8439 hpux10.20* | hpux11*)
8440 lt_cv_file_magic_cmd=$FILECMD
8441 case $host_cpu in
8442 ia64*)
8443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8444 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8445 ;;
8446 hppa*64*)
8447 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]'
8448 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8449 ;;
8450 *)
8451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8452 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8453 ;;
8454 esac
8455 ;;
8456
8457 interix[3-9]*)
8458 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8460 ;;
8461
8462 irix5* | irix6* | nonstopux*)
8463 case $LD in
8464 *-32|*"-32 ") libmagic=32-bit;;
8465 *-n32|*"-n32 ") libmagic=N32;;
8466 *-64|*"-64 ") libmagic=64-bit;;
8467 *) libmagic=never-match;;
8468 esac
8469 lt_cv_deplibs_check_method=pass_all
8470 ;;
8471
8472 # This must be glibc/ELF.
8473 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8474 lt_cv_deplibs_check_method=pass_all
8475 ;;
8476
8477 *-mlibc)
8478 lt_cv_deplibs_check_method=pass_all
8479 ;;
8480
8481 netbsd* | netbsdelf*-gnu)
8482 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8483 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8484 else
8485 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8486 fi
8487 ;;
8488
8489 newos6*)
8490 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8491 lt_cv_file_magic_cmd=$FILECMD
8492 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8493 ;;
8494
8495 *nto* | *qnx*)
8496 lt_cv_deplibs_check_method=pass_all
8497 ;;
8498
8499 openbsd*)
8500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8501 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8502 else
8503 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8504 fi
8505 ;;
8506
8507 osf3* | osf4* | osf5*)
8508 lt_cv_deplibs_check_method=pass_all
8509 ;;
8510
8511 rdos*)
8512 lt_cv_deplibs_check_method=pass_all
8513 ;;
8514
8515 serenity*)
8516 lt_cv_deplibs_check_method=pass_all
8517 ;;
8518
8519 solaris*)
8520 lt_cv_deplibs_check_method=pass_all
8521 ;;
8522
8523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8524 lt_cv_deplibs_check_method=pass_all
8525 ;;
8526
8527 sysv4 | sysv4.3*)
8528 case $host_vendor in
8529 motorola)
8530 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]'
8531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8532 ;;
8533 ncr)
8534 lt_cv_deplibs_check_method=pass_all
8535 ;;
8536 sequent)
8537 lt_cv_file_magic_cmd='/bin/file'
8538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8539 ;;
8540 sni)
8541 lt_cv_file_magic_cmd='/bin/file'
8542 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8543 lt_cv_file_magic_test_file=/lib/libc.so
8544 ;;
8545 siemens)
8546 lt_cv_deplibs_check_method=pass_all
8547 ;;
8548 pc)
8549 lt_cv_deplibs_check_method=pass_all
8550 ;;
8551 esac
8552 ;;
8553
8554 tpf*)
8555 lt_cv_deplibs_check_method=pass_all
8556 ;;
8557 os2*)
8558 lt_cv_deplibs_check_method=pass_all
8559 ;;
8560 esac
8561 ;;
8562 esac
8563 fi
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8565 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
8566
8567 file_magic_glob=
8568 want_nocaseglob=no
8569 if test "$build" = "$host"; then
8570 case $host_os in
8571 mingw* | windows* | pw32*)
8572 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8573 want_nocaseglob=yes
8574 else
8575 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8576 fi
8577 ;;
8578 esac
8579 fi
8580
8581 file_magic_cmd=$lt_cv_file_magic_cmd
8582 deplibs_check_method=$lt_cv_deplibs_check_method
8583 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606 if test -n "$ac_tool_prefix"; then
8607 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8608 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8610 printf %s "checking for $ac_word... " >&6; }
8611 if test ${ac_cv_prog_DLLTOOL+y}
8612 then :
8613 printf %s "(cached) " >&6
8614 else case e in #(
8615 e) if test -n "$DLLTOOL"; then
8616 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8617 else
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 for as_dir in $PATH
8620 do
8621 IFS=$as_save_IFS
8622 case $as_dir in #(((
8623 '') as_dir=./ ;;
8624 */) ;;
8625 *) as_dir=$as_dir/ ;;
8626 esac
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8631 break 2
8632 fi
8633 done
8634 done
8635 IFS=$as_save_IFS
8636
8637 fi ;;
8638 esac
8639 fi
8640 DLLTOOL=$ac_cv_prog_DLLTOOL
8641 if test -n "$DLLTOOL"; then
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8643 printf "%s\n" "$DLLTOOL" >&6; }
8644 else
8645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8646 printf "%s\n" "no" >&6; }
8647 fi
8648
8649
8650 fi
8651 if test -z "$ac_cv_prog_DLLTOOL"; then
8652 ac_ct_DLLTOOL=$DLLTOOL
8653 # Extract the first word of "dlltool", so it can be a program name with args.
8654 set dummy dlltool; ac_word=$2
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656 printf %s "checking for $ac_word... " >&6; }
8657 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
8658 then :
8659 printf %s "(cached) " >&6
8660 else case e in #(
8661 e) if test -n "$ac_ct_DLLTOOL"; then
8662 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8666 do
8667 IFS=$as_save_IFS
8668 case $as_dir in #(((
8669 '') as_dir=./ ;;
8670 */) ;;
8671 *) as_dir=$as_dir/ ;;
8672 esac
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8675 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8677 break 2
8678 fi
8679 done
8680 done
8681 IFS=$as_save_IFS
8682
8683 fi ;;
8684 esac
8685 fi
8686 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8687 if test -n "$ac_ct_DLLTOOL"; then
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8689 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
8690 else
8691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 printf "%s\n" "no" >&6; }
8693 fi
8694
8695 if test "x$ac_ct_DLLTOOL" = x; then
8696 DLLTOOL="false"
8697 else
8698 case $cross_compiling:$ac_tool_warned in
8699 yes:)
8700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8701 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8702 ac_tool_warned=yes ;;
8703 esac
8704 DLLTOOL=$ac_ct_DLLTOOL
8705 fi
8706 else
8707 DLLTOOL="$ac_cv_prog_DLLTOOL"
8708 fi
8709
8710 test -z "$DLLTOOL" && DLLTOOL=dlltool
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8722 printf %s "checking how to associate runtime and link libraries... " >&6; }
8723 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
8724 then :
8725 printf %s "(cached) " >&6
8726 else case e in #(
8727 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
8728
8729 case $host_os in
8730 cygwin* | mingw* | windows* | pw32* | cegcc*)
8731 # two different shell functions defined in ltmain.sh;
8732 # decide which one to use based on capabilities of $DLLTOOL
8733 case `$DLLTOOL --help 2>&1` in
8734 *--identify-strict*)
8735 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8736 ;;
8737 *)
8738 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8739 ;;
8740 esac
8741 ;;
8742 *)
8743 # fallback: assume linklib IS sharedlib
8744 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8745 ;;
8746 esac
8747 ;;
8748 esac
8749 fi
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8751 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8752 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8753 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8754
8755
8756
8757
8758
8759
8760
8761 if test -n "$ac_tool_prefix"; then
8762 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8763 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 printf %s "checking for $ac_word... " >&6; }
8766 if test ${ac_cv_prog_RANLIB+y}
8767 then :
8768 printf %s "(cached) " >&6
8769 else case e in #(
8770 e) if test -n "$RANLIB"; then
8771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8775 do
8776 IFS=$as_save_IFS
8777 case $as_dir in #(((
8778 '') as_dir=./ ;;
8779 */) ;;
8780 *) as_dir=$as_dir/ ;;
8781 esac
8782 for ac_exec_ext in '' $ac_executable_extensions; do
8783 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8785 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8786 break 2
8787 fi
8788 done
8789 done
8790 IFS=$as_save_IFS
8791
8792 fi ;;
8793 esac
8794 fi
8795 RANLIB=$ac_cv_prog_RANLIB
8796 if test -n "$RANLIB"; then
8797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8798 printf "%s\n" "$RANLIB" >&6; }
8799 else
8800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801 printf "%s\n" "no" >&6; }
8802 fi
8803
8804
8805 fi
8806 if test -z "$ac_cv_prog_RANLIB"; then
8807 ac_ct_RANLIB=$RANLIB
8808 # Extract the first word of "ranlib", so it can be a program name with args.
8809 set dummy ranlib; ac_word=$2
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8811 printf %s "checking for $ac_word... " >&6; }
8812 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8813 then :
8814 printf %s "(cached) " >&6
8815 else case e in #(
8816 e) if test -n "$ac_ct_RANLIB"; then
8817 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8818 else
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 for as_dir in $PATH
8821 do
8822 IFS=$as_save_IFS
8823 case $as_dir in #(((
8824 '') as_dir=./ ;;
8825 */) ;;
8826 *) as_dir=$as_dir/ ;;
8827 esac
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8830 ac_cv_prog_ac_ct_RANLIB="ranlib"
8831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8832 break 2
8833 fi
8834 done
8835 done
8836 IFS=$as_save_IFS
8837
8838 fi ;;
8839 esac
8840 fi
8841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8842 if test -n "$ac_ct_RANLIB"; then
8843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8844 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8845 else
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 printf "%s\n" "no" >&6; }
8848 fi
8849
8850 if test "x$ac_ct_RANLIB" = x; then
8851 RANLIB=":"
8852 else
8853 case $cross_compiling:$ac_tool_warned in
8854 yes:)
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8856 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8857 ac_tool_warned=yes ;;
8858 esac
8859 RANLIB=$ac_ct_RANLIB
8860 fi
8861 else
8862 RANLIB="$ac_cv_prog_RANLIB"
8863 fi
8864
8865 if test -n "$ac_tool_prefix"; then
8866 for ac_prog in ar
8867 do
8868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8871 printf %s "checking for $ac_word... " >&6; }
8872 if test ${ac_cv_prog_AR+y}
8873 then :
8874 printf %s "(cached) " >&6
8875 else case e in #(
8876 e) if test -n "$AR"; then
8877 ac_cv_prog_AR="$AR" # Let the user override the test.
8878 else
8879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880 for as_dir in $PATH
8881 do
8882 IFS=$as_save_IFS
8883 case $as_dir in #(((
8884 '') as_dir=./ ;;
8885 */) ;;
8886 *) as_dir=$as_dir/ ;;
8887 esac
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8890 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8892 break 2
8893 fi
8894 done
8895 done
8896 IFS=$as_save_IFS
8897
8898 fi ;;
8899 esac
8900 fi
8901 AR=$ac_cv_prog_AR
8902 if test -n "$AR"; then
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8904 printf "%s\n" "$AR" >&6; }
8905 else
8906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 printf "%s\n" "no" >&6; }
8908 fi
8909
8910
8911 test -n "$AR" && break
8912 done
8913 fi
8914 if test -z "$AR"; then
8915 ac_ct_AR=$AR
8916 for ac_prog in ar
8917 do
8918 # Extract the first word of "$ac_prog", so it can be a program name with args.
8919 set dummy $ac_prog; ac_word=$2
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8921 printf %s "checking for $ac_word... " >&6; }
8922 if test ${ac_cv_prog_ac_ct_AR+y}
8923 then :
8924 printf %s "(cached) " >&6
8925 else case e in #(
8926 e) if test -n "$ac_ct_AR"; then
8927 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8928 else
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8931 do
8932 IFS=$as_save_IFS
8933 case $as_dir in #(((
8934 '') as_dir=./ ;;
8935 */) ;;
8936 *) as_dir=$as_dir/ ;;
8937 esac
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8940 ac_cv_prog_ac_ct_AR="$ac_prog"
8941 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8942 break 2
8943 fi
8944 done
8945 done
8946 IFS=$as_save_IFS
8947
8948 fi ;;
8949 esac
8950 fi
8951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8952 if test -n "$ac_ct_AR"; then
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8954 printf "%s\n" "$ac_ct_AR" >&6; }
8955 else
8956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 printf "%s\n" "no" >&6; }
8958 fi
8959
8960
8961 test -n "$ac_ct_AR" && break
8962 done
8963
8964 if test "x$ac_ct_AR" = x; then
8965 AR="false"
8966 else
8967 case $cross_compiling:$ac_tool_warned in
8968 yes:)
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8971 ac_tool_warned=yes ;;
8972 esac
8973 AR=$ac_ct_AR
8974 fi
8975 fi
8976
8977 : ${AR=ar}
8978
8979
8980
8981
8982
8983
8984 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
8985 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
8986 # higher priority because that's what people were doing historically (setting
8987 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
8988 # variable obsoleted/removed.
8989
8990 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
8991 lt_ar_flags=$AR_FLAGS
8992
8993
8994
8995
8996
8997
8998 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
8999 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9000
9001
9002
9003
9004
9005
9006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9007 printf %s "checking for archiver @FILE support... " >&6; }
9008 if test ${lt_cv_ar_at_file+y}
9009 then :
9010 printf %s "(cached) " >&6
9011 else case e in #(
9012 e) lt_cv_ar_at_file=no
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015
9016 int
9017 main (void)
9018 {
9019
9020 ;
9021 return 0;
9022 }
9023 _ACEOF
9024 if ac_fn_c_try_compile "$LINENO"
9025 then :
9026 echo conftest.$ac_objext > conftest.lst
9027 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9029 (eval $lt_ar_try) 2>&5
9030 ac_status=$?
9031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9032 test $ac_status = 0; }
9033 if test 0 -eq "$ac_status"; then
9034 # Ensure the archiver fails upon bogus file names.
9035 rm -f conftest.$ac_objext libconftest.a
9036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9037 (eval $lt_ar_try) 2>&5
9038 ac_status=$?
9039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9040 test $ac_status = 0; }
9041 if test 0 -ne "$ac_status"; then
9042 lt_cv_ar_at_file=@
9043 fi
9044 fi
9045 rm -f conftest.* libconftest.a
9046
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9049 ;;
9050 esac
9051 fi
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9053 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9054
9055 if test no = "$lt_cv_ar_at_file"; then
9056 archiver_list_spec=
9057 else
9058 archiver_list_spec=$lt_cv_ar_at_file
9059 fi
9060
9061
9062
9063
9064
9065
9066
9067 if test -n "$ac_tool_prefix"; then
9068 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9069 set dummy ${ac_tool_prefix}strip; ac_word=$2
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 printf %s "checking for $ac_word... " >&6; }
9072 if test ${ac_cv_prog_STRIP+y}
9073 then :
9074 printf %s "(cached) " >&6
9075 else case e in #(
9076 e) if test -n "$STRIP"; then
9077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9078 else
9079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080 for as_dir in $PATH
9081 do
9082 IFS=$as_save_IFS
9083 case $as_dir in #(((
9084 '') as_dir=./ ;;
9085 */) ;;
9086 *) as_dir=$as_dir/ ;;
9087 esac
9088 for ac_exec_ext in '' $ac_executable_extensions; do
9089 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9090 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9092 break 2
9093 fi
9094 done
9095 done
9096 IFS=$as_save_IFS
9097
9098 fi ;;
9099 esac
9100 fi
9101 STRIP=$ac_cv_prog_STRIP
9102 if test -n "$STRIP"; then
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9104 printf "%s\n" "$STRIP" >&6; }
9105 else
9106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9107 printf "%s\n" "no" >&6; }
9108 fi
9109
9110
9111 fi
9112 if test -z "$ac_cv_prog_STRIP"; then
9113 ac_ct_STRIP=$STRIP
9114 # Extract the first word of "strip", so it can be a program name with args.
9115 set dummy strip; ac_word=$2
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117 printf %s "checking for $ac_word... " >&6; }
9118 if test ${ac_cv_prog_ac_ct_STRIP+y}
9119 then :
9120 printf %s "(cached) " >&6
9121 else case e in #(
9122 e) if test -n "$ac_ct_STRIP"; then
9123 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9124 else
9125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126 for as_dir in $PATH
9127 do
9128 IFS=$as_save_IFS
9129 case $as_dir in #(((
9130 '') as_dir=./ ;;
9131 */) ;;
9132 *) as_dir=$as_dir/ ;;
9133 esac
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9136 ac_cv_prog_ac_ct_STRIP="strip"
9137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9138 break 2
9139 fi
9140 done
9141 done
9142 IFS=$as_save_IFS
9143
9144 fi ;;
9145 esac
9146 fi
9147 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9148 if test -n "$ac_ct_STRIP"; then
9149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9150 printf "%s\n" "$ac_ct_STRIP" >&6; }
9151 else
9152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 printf "%s\n" "no" >&6; }
9154 fi
9155
9156 if test "x$ac_ct_STRIP" = x; then
9157 STRIP=":"
9158 else
9159 case $cross_compiling:$ac_tool_warned in
9160 yes:)
9161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9162 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9163 ac_tool_warned=yes ;;
9164 esac
9165 STRIP=$ac_ct_STRIP
9166 fi
9167 else
9168 STRIP="$ac_cv_prog_STRIP"
9169 fi
9170
9171 test -z "$STRIP" && STRIP=:
9172
9173
9174
9175
9176
9177
9178
9179 test -z "$RANLIB" && RANLIB=:
9180
9181
9182
9183
9184
9185
9186 # Determine commands to create old-style static archives.
9187 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9188 old_postinstall_cmds='chmod 644 $oldlib'
9189 old_postuninstall_cmds=
9190
9191 if test -n "$RANLIB"; then
9192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9193 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9194 fi
9195
9196 case $host_os in
9197 darwin*)
9198 lock_old_archive_extraction=yes ;;
9199 *)
9200 lock_old_archive_extraction=no ;;
9201 esac
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241 # If no C compiler was specified, use CC.
9242 LTCC=${LTCC-"$CC"}
9243
9244 # If no C compiler flags were specified, use CFLAGS.
9245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9246
9247 # Allow CC to be a program name with arguments.
9248 compiler=$CC
9249
9250
9251 # Check for command to grab the raw symbol name followed by C symbol from nm.
9252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9253 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9254 if test ${lt_cv_sys_global_symbol_pipe+y}
9255 then :
9256 printf %s "(cached) " >&6
9257 else case e in #(
9258 e)
9259 # These are sane defaults that work on at least a few old systems.
9260 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9261
9262 # Character class describing NM global symbol codes.
9263 symcode='[BCDEGRST]'
9264
9265 # Regexp to match symbols that can be accessed directly from C.
9266 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9267
9268 # Define system-specific variables.
9269 case $host_os in
9270 aix*)
9271 symcode='[BCDT]'
9272 ;;
9273 cygwin* | mingw* | windows* | pw32* | cegcc*)
9274 symcode='[ABCDGISTW]'
9275 ;;
9276 hpux*)
9277 if test ia64 = "$host_cpu"; then
9278 symcode='[ABCDEGRST]'
9279 fi
9280 ;;
9281 irix* | nonstopux*)
9282 symcode='[BCDEGRST]'
9283 ;;
9284 osf*)
9285 symcode='[BCDEGQRST]'
9286 ;;
9287 solaris*)
9288 symcode='[BCDRT]'
9289 ;;
9290 sco3.2v5*)
9291 symcode='[DT]'
9292 ;;
9293 sysv4.2uw2*)
9294 symcode='[DT]'
9295 ;;
9296 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9297 symcode='[ABDT]'
9298 ;;
9299 sysv4)
9300 symcode='[DFNSTU]'
9301 ;;
9302 esac
9303
9304 # If we're using GNU nm, then use its standard symbol codes.
9305 case `$NM -V 2>&1` in
9306 *GNU* | *'with BFD'*)
9307 symcode='[ABCDGIRSTW]' ;;
9308 esac
9309
9310 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9311 # Gets list of data symbols to import.
9312 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
9313 # Adjust the below global symbol transforms to fixup imported variables.
9314 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9315 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9316 lt_c_name_lib_hook="\
9317 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9318 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9319 else
9320 # Disable hooks by default.
9321 lt_cv_sys_global_symbol_to_import=
9322 lt_cdecl_hook=
9323 lt_c_name_hook=
9324 lt_c_name_lib_hook=
9325 fi
9326
9327 # Transform an extracted symbol line into a proper C declaration.
9328 # Some systems (esp. on ia64) link data and code symbols differently,
9329 # so use this general approach.
9330 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
9331 $lt_cdecl_hook\
9332 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9333 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9334
9335 # Transform an extracted symbol line into symbol name and symbol address
9336 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
9337 $lt_c_name_hook\
9338 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9339 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9340
9341 # Transform an extracted symbol line into symbol name with lib prefix and
9342 # symbol address.
9343 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
9344 $lt_c_name_lib_hook\
9345 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9346 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9347 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9348
9349 # Handle CRLF in mingw tool chain
9350 opt_cr=
9351 case $build_os in
9352 mingw* | windows*)
9353 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9354 ;;
9355 esac
9356
9357 # Try without a prefix underscore, then with it.
9358 for ac_symprfx in "" "_"; do
9359
9360 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9361 symxfrm="\\1 $ac_symprfx\\2 \\2"
9362
9363 # Write the raw and C identifiers.
9364 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9365 # Fake it for dumpbin and say T for any non-static function,
9366 # D for any global variable and I for any imported variable.
9367 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
9368 # which start with @ or ?.
9369 lt_cv_sys_global_symbol_pipe="$AWK '"\
9370 " {last_section=section; section=\$ 3};"\
9371 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9372 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9373 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9374 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9375 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9376 " \$ 0!~/External *\|/{next};"\
9377 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9378 " {if(hide[section]) next};"\
9379 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9380 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9381 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9382 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9383 " ' prfx=^$ac_symprfx"
9384 else
9385 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9386 fi
9387 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
9388
9389 # Check to see that the pipe works correctly.
9390 pipe_works=no
9391
9392 rm -f conftest*
9393 cat > conftest.$ac_ext <<_LT_EOF
9394 #ifdef __cplusplus
9395 extern "C" {
9396 #endif
9397 char nm_test_var;
9398 void nm_test_func(void);
9399 void nm_test_func(void){}
9400 #ifdef __cplusplus
9401 }
9402 #endif
9403 int main(void){nm_test_var='a';nm_test_func();return(0);}
9404 _LT_EOF
9405
9406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9407 (eval $ac_compile) 2>&5
9408 ac_status=$?
9409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9410 test $ac_status = 0; }; then
9411 # Now try to grab the symbols.
9412 nlist=conftest.nm
9413 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9414 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9415 # Try sorting and uniquifying the output.
9416 if sort "$nlist" | uniq > "$nlist"T; then
9417 mv -f "$nlist"T "$nlist"
9418 else
9419 rm -f "$nlist"T
9420 fi
9421
9422 # Make sure that we snagged all the symbols we need.
9423 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9424 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9425 cat <<_LT_EOF > conftest.$ac_ext
9426 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9427 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9428 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9429 relocations are performed -- see ld's documentation on pseudo-relocs. */
9430 # define LT_DLSYM_CONST
9431 #elif defined __osf__
9432 /* This system does not cope well with relocations in const data. */
9433 # define LT_DLSYM_CONST
9434 #else
9435 # define LT_DLSYM_CONST const
9436 #endif
9437
9438 #ifdef __cplusplus
9439 extern "C" {
9440 #endif
9441
9442 _LT_EOF
9443 # Now generate the symbol file.
9444 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9445
9446 cat <<_LT_EOF >> conftest.$ac_ext
9447
9448 /* The mapping between symbol names and symbols. */
9449 LT_DLSYM_CONST struct {
9450 const char *name;
9451 void *address;
9452 }
9453 lt__PROGRAM__LTX_preloaded_symbols[] =
9454 {
9455 { "@PROGRAM@", (void *) 0 },
9456 _LT_EOF
9457 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9458 cat <<\_LT_EOF >> conftest.$ac_ext
9459 {0, (void *) 0}
9460 };
9461
9462 /* This works around a problem in FreeBSD linker */
9463 #ifdef FREEBSD_WORKAROUND
9464 static const void *lt_preloaded_setup() {
9465 return lt__PROGRAM__LTX_preloaded_symbols;
9466 }
9467 #endif
9468
9469 #ifdef __cplusplus
9470 }
9471 #endif
9472 _LT_EOF
9473 # Now try linking the two files.
9474 mv conftest.$ac_objext conftstm.$ac_objext
9475 lt_globsym_save_LIBS=$LIBS
9476 lt_globsym_save_CFLAGS=$CFLAGS
9477 LIBS=conftstm.$ac_objext
9478 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9480 (eval $ac_link) 2>&5
9481 ac_status=$?
9482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9483 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9484 pipe_works=yes
9485 fi
9486 LIBS=$lt_globsym_save_LIBS
9487 CFLAGS=$lt_globsym_save_CFLAGS
9488 else
9489 echo "cannot find nm_test_func in $nlist" >&5
9490 fi
9491 else
9492 echo "cannot find nm_test_var in $nlist" >&5
9493 fi
9494 else
9495 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9496 fi
9497 else
9498 echo "$progname: failed program was:" >&5
9499 cat conftest.$ac_ext >&5
9500 fi
9501 rm -rf conftest* conftst*
9502
9503 # Do not use the global_symbol_pipe unless it works.
9504 if test yes = "$pipe_works"; then
9505 break
9506 else
9507 lt_cv_sys_global_symbol_pipe=
9508 fi
9509 done
9510 ;;
9511 esac
9512 fi
9513
9514 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9515 lt_cv_sys_global_symbol_to_cdecl=
9516 fi
9517 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9519 printf "%s\n" "failed" >&6; }
9520 else
9521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9522 printf "%s\n" "ok" >&6; }
9523 fi
9524
9525 # Response file support.
9526 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9527 nm_file_list_spec='@'
9528 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9529 nm_file_list_spec='@'
9530 fi
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9569 printf %s "checking for sysroot... " >&6; }
9570
9571 # Check whether --with-sysroot was given.
9572 if test ${with_sysroot+y}
9573 then :
9574 withval=$with_sysroot;
9575 else case e in #(
9576 e) with_sysroot=no ;;
9577 esac
9578 fi
9579
9580
9581 lt_sysroot=
9582 case $with_sysroot in #(
9583 yes)
9584 if test yes = "$GCC"; then
9585 # Trim trailing / since we'll always append absolute paths and we want
9586 # to avoid //, if only for less confusing output for the user.
9587 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
9588 fi
9589 ;; #(
9590 /*)
9591 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
9592 ;; #(
9593 no|'')
9594 ;; #(
9595 *)
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9597 printf "%s\n" "$with_sysroot" >&6; }
9598 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9599 ;;
9600 esac
9601
9602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9603 printf "%s\n" "${lt_sysroot:-no}" >&6; }
9604
9605
9606
9607
9608
9609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9610 printf %s "checking for a working dd... " >&6; }
9611 if test ${ac_cv_path_lt_DD+y}
9612 then :
9613 printf %s "(cached) " >&6
9614 else case e in #(
9615 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9616 cat conftest.i conftest.i >conftest2.i
9617 : ${lt_DD:=$DD}
9618 if test -z "$lt_DD"; then
9619 ac_path_lt_DD_found=false
9620 # Loop through the user's path and test for each of PROGNAME-LIST
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 for as_dir in $PATH
9623 do
9624 IFS=$as_save_IFS
9625 case $as_dir in #(((
9626 '') as_dir=./ ;;
9627 */) ;;
9628 *) as_dir=$as_dir/ ;;
9629 esac
9630 for ac_prog in dd
9631 do
9632 for ac_exec_ext in '' $ac_executable_extensions; do
9633 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
9634 as_fn_executable_p "$ac_path_lt_DD" || continue
9635 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9636 cmp -s conftest.i conftest.out \
9637 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9638 fi
9639 $ac_path_lt_DD_found && break 3
9640 done
9641 done
9642 done
9643 IFS=$as_save_IFS
9644 if test -z "$ac_cv_path_lt_DD"; then
9645 :
9646 fi
9647 else
9648 ac_cv_path_lt_DD=$lt_DD
9649 fi
9650
9651 rm -f conftest.i conftest2.i conftest.out ;;
9652 esac
9653 fi
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9655 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
9656
9657
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9659 printf %s "checking how to truncate binary pipes... " >&6; }
9660 if test ${lt_cv_truncate_bin+y}
9661 then :
9662 printf %s "(cached) " >&6
9663 else case e in #(
9664 e) printf 0123456789abcdef0123456789abcdef >conftest.i
9665 cat conftest.i conftest.i >conftest2.i
9666 lt_cv_truncate_bin=
9667 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9668 cmp -s conftest.i conftest.out \
9669 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9670 fi
9671 rm -f conftest.i conftest2.i conftest.out
9672 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
9673 esac
9674 fi
9675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9676 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
9677
9678
9679
9680
9681
9682
9683
9684 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9685 func_cc_basename ()
9686 {
9687 for cc_temp in $*""; do
9688 case $cc_temp in
9689 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9690 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9691 \-*) ;;
9692 *) break;;
9693 esac
9694 done
9695 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9696 }
9697
9698 # Check whether --enable-libtool-lock was given.
9699 if test ${enable_libtool_lock+y}
9700 then :
9701 enableval=$enable_libtool_lock;
9702 fi
9703
9704 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9705
9706 # Some flags need to be propagated to the compiler or linker for good
9707 # libtool support.
9708 case $host in
9709 ia64-*-hpux*)
9710 # Find out what ABI is being produced by ac_compile, and set mode
9711 # options accordingly.
9712 echo 'int i;' > conftest.$ac_ext
9713 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9714 (eval $ac_compile) 2>&5
9715 ac_status=$?
9716 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9717 test $ac_status = 0; }; then
9718 case `$FILECMD conftest.$ac_objext` in
9719 *ELF-32*)
9720 HPUX_IA64_MODE=32
9721 ;;
9722 *ELF-64*)
9723 HPUX_IA64_MODE=64
9724 ;;
9725 esac
9726 fi
9727 rm -rf conftest*
9728 ;;
9729 *-*-irix6*)
9730 # Find out what ABI is being produced by ac_compile, and set linker
9731 # options accordingly.
9732 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9733 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9734 (eval $ac_compile) 2>&5
9735 ac_status=$?
9736 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9737 test $ac_status = 0; }; then
9738 if test yes = "$lt_cv_prog_gnu_ld"; then
9739 case `$FILECMD conftest.$ac_objext` in
9740 *32-bit*)
9741 LD="${LD-ld} -melf32bsmip"
9742 ;;
9743 *N32*)
9744 LD="${LD-ld} -melf32bmipn32"
9745 ;;
9746 *64-bit*)
9747 LD="${LD-ld} -melf64bmip"
9748 ;;
9749 esac
9750 else
9751 case `$FILECMD conftest.$ac_objext` in
9752 *32-bit*)
9753 LD="${LD-ld} -32"
9754 ;;
9755 *N32*)
9756 LD="${LD-ld} -n32"
9757 ;;
9758 *64-bit*)
9759 LD="${LD-ld} -64"
9760 ;;
9761 esac
9762 fi
9763 fi
9764 rm -rf conftest*
9765 ;;
9766
9767 mips64*-*linux*)
9768 # Find out what ABI is being produced by ac_compile, and set linker
9769 # options accordingly.
9770 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9772 (eval $ac_compile) 2>&5
9773 ac_status=$?
9774 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775 test $ac_status = 0; }; then
9776 emul=elf
9777 case `$FILECMD conftest.$ac_objext` in
9778 *32-bit*)
9779 emul="${emul}32"
9780 ;;
9781 *64-bit*)
9782 emul="${emul}64"
9783 ;;
9784 esac
9785 case `$FILECMD conftest.$ac_objext` in
9786 *MSB*)
9787 emul="${emul}btsmip"
9788 ;;
9789 *LSB*)
9790 emul="${emul}ltsmip"
9791 ;;
9792 esac
9793 case `$FILECMD conftest.$ac_objext` in
9794 *N32*)
9795 emul="${emul}n32"
9796 ;;
9797 esac
9798 LD="${LD-ld} -m $emul"
9799 fi
9800 rm -rf conftest*
9801 ;;
9802
9803 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9804 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
9805 # Find out what ABI is being produced by ac_compile, and set linker
9806 # options accordingly. Note that the listed cases only cover the
9807 # situations where additional linker options are needed (such as when
9808 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9809 # vice versa); the common cases where no linker options are needed do
9810 # not appear in the list.
9811 echo 'int i;' > conftest.$ac_ext
9812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9813 (eval $ac_compile) 2>&5
9814 ac_status=$?
9815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9816 test $ac_status = 0; }; then
9817 case `$FILECMD conftest.o` in
9818 *32-bit*)
9819 case $host in
9820 x86_64-*kfreebsd*-gnu)
9821 LD="${LD-ld} -m elf_i386_fbsd"
9822 ;;
9823 x86_64-*linux*|x86_64-gnu*)
9824 case `$FILECMD conftest.o` in
9825 *x86-64*)
9826 LD="${LD-ld} -m elf32_x86_64"
9827 ;;
9828 *)
9829 LD="${LD-ld} -m elf_i386"
9830 ;;
9831 esac
9832 ;;
9833 powerpc64le-*linux*)
9834 LD="${LD-ld} -m elf32lppclinux"
9835 ;;
9836 powerpc64-*linux*)
9837 LD="${LD-ld} -m elf32ppclinux"
9838 ;;
9839 s390x-*linux*)
9840 LD="${LD-ld} -m elf_s390"
9841 ;;
9842 sparc64-*linux*)
9843 LD="${LD-ld} -m elf32_sparc"
9844 ;;
9845 esac
9846 ;;
9847 *64-bit*)
9848 case $host in
9849 x86_64-*kfreebsd*-gnu)
9850 LD="${LD-ld} -m elf_x86_64_fbsd"
9851 ;;
9852 x86_64-*linux*|x86_64-gnu*)
9853 LD="${LD-ld} -m elf_x86_64"
9854 ;;
9855 powerpcle-*linux*)
9856 LD="${LD-ld} -m elf64lppc"
9857 ;;
9858 powerpc-*linux*)
9859 LD="${LD-ld} -m elf64ppc"
9860 ;;
9861 s390*-*linux*|s390*-*tpf*)
9862 LD="${LD-ld} -m elf64_s390"
9863 ;;
9864 sparc*-*linux*)
9865 LD="${LD-ld} -m elf64_sparc"
9866 ;;
9867 esac
9868 ;;
9869 esac
9870 fi
9871 rm -rf conftest*
9872 ;;
9873
9874 *-*-sco3.2v5*)
9875 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9876 SAVE_CFLAGS=$CFLAGS
9877 CFLAGS="$CFLAGS -belf"
9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9879 printf %s "checking whether the C compiler needs -belf... " >&6; }
9880 if test ${lt_cv_cc_needs_belf+y}
9881 then :
9882 printf %s "(cached) " >&6
9883 else case e in #(
9884 e) ac_ext=c
9885 ac_cpp='$CPP $CPPFLAGS'
9886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9889
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9892
9893 int
9894 main (void)
9895 {
9896
9897 ;
9898 return 0;
9899 }
9900 _ACEOF
9901 if ac_fn_c_try_link "$LINENO"
9902 then :
9903 lt_cv_cc_needs_belf=yes
9904 else case e in #(
9905 e) lt_cv_cc_needs_belf=no ;;
9906 esac
9907 fi
9908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9909 conftest$ac_exeext conftest.$ac_ext
9910 ac_ext=c
9911 ac_cpp='$CPP $CPPFLAGS'
9912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9915 ;;
9916 esac
9917 fi
9918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9919 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
9920 if test yes != "$lt_cv_cc_needs_belf"; then
9921 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9922 CFLAGS=$SAVE_CFLAGS
9923 fi
9924 ;;
9925 *-*solaris*)
9926 # Find out what ABI is being produced by ac_compile, and set linker
9927 # options accordingly.
9928 echo 'int i;' > conftest.$ac_ext
9929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9930 (eval $ac_compile) 2>&5
9931 ac_status=$?
9932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933 test $ac_status = 0; }; then
9934 case `$FILECMD conftest.o` in
9935 *64-bit*)
9936 case $lt_cv_prog_gnu_ld in
9937 yes*)
9938 case $host in
9939 i?86-*-solaris*|x86_64-*-solaris*)
9940 LD="${LD-ld} -m elf_x86_64"
9941 ;;
9942 sparc*-*-solaris*)
9943 LD="${LD-ld} -m elf64_sparc"
9944 ;;
9945 esac
9946 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9947 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9948 LD=${LD-ld}_sol2
9949 fi
9950 ;;
9951 *)
9952 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9953 LD="${LD-ld} -64"
9954 fi
9955 ;;
9956 esac
9957 ;;
9958 esac
9959 fi
9960 rm -rf conftest*
9961 ;;
9962 esac
9963
9964 need_locks=$enable_libtool_lock
9965
9966 if test -n "$ac_tool_prefix"; then
9967 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9968 set dummy ${ac_tool_prefix}mt; ac_word=$2
9969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9970 printf %s "checking for $ac_word... " >&6; }
9971 if test ${ac_cv_prog_MANIFEST_TOOL+y}
9972 then :
9973 printf %s "(cached) " >&6
9974 else case e in #(
9975 e) if test -n "$MANIFEST_TOOL"; then
9976 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9977 else
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979 for as_dir in $PATH
9980 do
9981 IFS=$as_save_IFS
9982 case $as_dir in #(((
9983 '') as_dir=./ ;;
9984 */) ;;
9985 *) as_dir=$as_dir/ ;;
9986 esac
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9989 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9991 break 2
9992 fi
9993 done
9994 done
9995 IFS=$as_save_IFS
9996
9997 fi ;;
9998 esac
9999 fi
10000 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10001 if test -n "$MANIFEST_TOOL"; then
10002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10003 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10004 else
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10006 printf "%s\n" "no" >&6; }
10007 fi
10008
10009
10010 fi
10011 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10012 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10013 # Extract the first word of "mt", so it can be a program name with args.
10014 set dummy mt; ac_word=$2
10015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10016 printf %s "checking for $ac_word... " >&6; }
10017 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10018 then :
10019 printf %s "(cached) " >&6
10020 else case e in #(
10021 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
10022 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10023 else
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in $PATH
10026 do
10027 IFS=$as_save_IFS
10028 case $as_dir in #(((
10029 '') as_dir=./ ;;
10030 */) ;;
10031 *) as_dir=$as_dir/ ;;
10032 esac
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10035 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10036 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10037 break 2
10038 fi
10039 done
10040 done
10041 IFS=$as_save_IFS
10042
10043 fi ;;
10044 esac
10045 fi
10046 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10047 if test -n "$ac_ct_MANIFEST_TOOL"; then
10048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10049 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10050 else
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 printf "%s\n" "no" >&6; }
10053 fi
10054
10055 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10056 MANIFEST_TOOL=":"
10057 else
10058 case $cross_compiling:$ac_tool_warned in
10059 yes:)
10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10061 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10062 ac_tool_warned=yes ;;
10063 esac
10064 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10065 fi
10066 else
10067 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10068 fi
10069
10070 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10072 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10073 if test ${lt_cv_path_manifest_tool+y}
10074 then :
10075 printf %s "(cached) " >&6
10076 else case e in #(
10077 e) lt_cv_path_manifest_tool=no
10078 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10079 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10080 cat conftest.err >&5
10081 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10082 lt_cv_path_manifest_tool=yes
10083 fi
10084 rm -f conftest* ;;
10085 esac
10086 fi
10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
10088 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
10089 if test yes != "$lt_cv_path_manifest_tool"; then
10090 MANIFEST_TOOL=:
10091 fi
10092
10093
10094
10095
10096
10097
10098 case $host_os in
10099 rhapsody* | darwin*)
10100 if test -n "$ac_tool_prefix"; then
10101 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10102 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10104 printf %s "checking for $ac_word... " >&6; }
10105 if test ${ac_cv_prog_DSYMUTIL+y}
10106 then :
10107 printf %s "(cached) " >&6
10108 else case e in #(
10109 e) if test -n "$DSYMUTIL"; then
10110 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10111 else
10112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113 for as_dir in $PATH
10114 do
10115 IFS=$as_save_IFS
10116 case $as_dir in #(((
10117 '') as_dir=./ ;;
10118 */) ;;
10119 *) as_dir=$as_dir/ ;;
10120 esac
10121 for ac_exec_ext in '' $ac_executable_extensions; do
10122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10123 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10125 break 2
10126 fi
10127 done
10128 done
10129 IFS=$as_save_IFS
10130
10131 fi ;;
10132 esac
10133 fi
10134 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10135 if test -n "$DSYMUTIL"; then
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10137 printf "%s\n" "$DSYMUTIL" >&6; }
10138 else
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 printf "%s\n" "no" >&6; }
10141 fi
10142
10143
10144 fi
10145 if test -z "$ac_cv_prog_DSYMUTIL"; then
10146 ac_ct_DSYMUTIL=$DSYMUTIL
10147 # Extract the first word of "dsymutil", so it can be a program name with args.
10148 set dummy dsymutil; ac_word=$2
10149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10150 printf %s "checking for $ac_word... " >&6; }
10151 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10152 then :
10153 printf %s "(cached) " >&6
10154 else case e in #(
10155 e) if test -n "$ac_ct_DSYMUTIL"; then
10156 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10157 else
10158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10159 for as_dir in $PATH
10160 do
10161 IFS=$as_save_IFS
10162 case $as_dir in #(((
10163 '') as_dir=./ ;;
10164 */) ;;
10165 *) as_dir=$as_dir/ ;;
10166 esac
10167 for ac_exec_ext in '' $ac_executable_extensions; do
10168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10169 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10171 break 2
10172 fi
10173 done
10174 done
10175 IFS=$as_save_IFS
10176
10177 fi ;;
10178 esac
10179 fi
10180 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10181 if test -n "$ac_ct_DSYMUTIL"; then
10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10183 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10184 else
10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 printf "%s\n" "no" >&6; }
10187 fi
10188
10189 if test "x$ac_ct_DSYMUTIL" = x; then
10190 DSYMUTIL=":"
10191 else
10192 case $cross_compiling:$ac_tool_warned in
10193 yes:)
10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10195 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10196 ac_tool_warned=yes ;;
10197 esac
10198 DSYMUTIL=$ac_ct_DSYMUTIL
10199 fi
10200 else
10201 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10202 fi
10203
10204 if test -n "$ac_tool_prefix"; then
10205 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10206 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10208 printf %s "checking for $ac_word... " >&6; }
10209 if test ${ac_cv_prog_NMEDIT+y}
10210 then :
10211 printf %s "(cached) " >&6
10212 else case e in #(
10213 e) if test -n "$NMEDIT"; then
10214 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10215 else
10216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10217 for as_dir in $PATH
10218 do
10219 IFS=$as_save_IFS
10220 case $as_dir in #(((
10221 '') as_dir=./ ;;
10222 */) ;;
10223 *) as_dir=$as_dir/ ;;
10224 esac
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10227 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10229 break 2
10230 fi
10231 done
10232 done
10233 IFS=$as_save_IFS
10234
10235 fi ;;
10236 esac
10237 fi
10238 NMEDIT=$ac_cv_prog_NMEDIT
10239 if test -n "$NMEDIT"; then
10240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10241 printf "%s\n" "$NMEDIT" >&6; }
10242 else
10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10244 printf "%s\n" "no" >&6; }
10245 fi
10246
10247
10248 fi
10249 if test -z "$ac_cv_prog_NMEDIT"; then
10250 ac_ct_NMEDIT=$NMEDIT
10251 # Extract the first word of "nmedit", so it can be a program name with args.
10252 set dummy nmedit; ac_word=$2
10253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10254 printf %s "checking for $ac_word... " >&6; }
10255 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10256 then :
10257 printf %s "(cached) " >&6
10258 else case e in #(
10259 e) if test -n "$ac_ct_NMEDIT"; then
10260 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10261 else
10262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263 for as_dir in $PATH
10264 do
10265 IFS=$as_save_IFS
10266 case $as_dir in #(((
10267 '') as_dir=./ ;;
10268 */) ;;
10269 *) as_dir=$as_dir/ ;;
10270 esac
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10273 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10275 break 2
10276 fi
10277 done
10278 done
10279 IFS=$as_save_IFS
10280
10281 fi ;;
10282 esac
10283 fi
10284 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10285 if test -n "$ac_ct_NMEDIT"; then
10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10287 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10288 else
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10290 printf "%s\n" "no" >&6; }
10291 fi
10292
10293 if test "x$ac_ct_NMEDIT" = x; then
10294 NMEDIT=":"
10295 else
10296 case $cross_compiling:$ac_tool_warned in
10297 yes:)
10298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10299 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10300 ac_tool_warned=yes ;;
10301 esac
10302 NMEDIT=$ac_ct_NMEDIT
10303 fi
10304 else
10305 NMEDIT="$ac_cv_prog_NMEDIT"
10306 fi
10307
10308 if test -n "$ac_tool_prefix"; then
10309 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10310 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10312 printf %s "checking for $ac_word... " >&6; }
10313 if test ${ac_cv_prog_LIPO+y}
10314 then :
10315 printf %s "(cached) " >&6
10316 else case e in #(
10317 e) if test -n "$LIPO"; then
10318 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10319 else
10320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321 for as_dir in $PATH
10322 do
10323 IFS=$as_save_IFS
10324 case $as_dir in #(((
10325 '') as_dir=./ ;;
10326 */) ;;
10327 *) as_dir=$as_dir/ ;;
10328 esac
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10331 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335 done
10336 done
10337 IFS=$as_save_IFS
10338
10339 fi ;;
10340 esac
10341 fi
10342 LIPO=$ac_cv_prog_LIPO
10343 if test -n "$LIPO"; then
10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10345 printf "%s\n" "$LIPO" >&6; }
10346 else
10347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348 printf "%s\n" "no" >&6; }
10349 fi
10350
10351
10352 fi
10353 if test -z "$ac_cv_prog_LIPO"; then
10354 ac_ct_LIPO=$LIPO
10355 # Extract the first word of "lipo", so it can be a program name with args.
10356 set dummy lipo; ac_word=$2
10357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 printf %s "checking for $ac_word... " >&6; }
10359 if test ${ac_cv_prog_ac_ct_LIPO+y}
10360 then :
10361 printf %s "(cached) " >&6
10362 else case e in #(
10363 e) if test -n "$ac_ct_LIPO"; then
10364 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10365 else
10366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367 for as_dir in $PATH
10368 do
10369 IFS=$as_save_IFS
10370 case $as_dir in #(((
10371 '') as_dir=./ ;;
10372 */) ;;
10373 *) as_dir=$as_dir/ ;;
10374 esac
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10377 ac_cv_prog_ac_ct_LIPO="lipo"
10378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10379 break 2
10380 fi
10381 done
10382 done
10383 IFS=$as_save_IFS
10384
10385 fi ;;
10386 esac
10387 fi
10388 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10389 if test -n "$ac_ct_LIPO"; then
10390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10391 printf "%s\n" "$ac_ct_LIPO" >&6; }
10392 else
10393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 printf "%s\n" "no" >&6; }
10395 fi
10396
10397 if test "x$ac_ct_LIPO" = x; then
10398 LIPO=":"
10399 else
10400 case $cross_compiling:$ac_tool_warned in
10401 yes:)
10402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10403 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10404 ac_tool_warned=yes ;;
10405 esac
10406 LIPO=$ac_ct_LIPO
10407 fi
10408 else
10409 LIPO="$ac_cv_prog_LIPO"
10410 fi
10411
10412 if test -n "$ac_tool_prefix"; then
10413 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10414 set dummy ${ac_tool_prefix}otool; ac_word=$2
10415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 printf %s "checking for $ac_word... " >&6; }
10417 if test ${ac_cv_prog_OTOOL+y}
10418 then :
10419 printf %s "(cached) " >&6
10420 else case e in #(
10421 e) if test -n "$OTOOL"; then
10422 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10423 else
10424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425 for as_dir in $PATH
10426 do
10427 IFS=$as_save_IFS
10428 case $as_dir in #(((
10429 '') as_dir=./ ;;
10430 */) ;;
10431 *) as_dir=$as_dir/ ;;
10432 esac
10433 for ac_exec_ext in '' $ac_executable_extensions; do
10434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10435 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10437 break 2
10438 fi
10439 done
10440 done
10441 IFS=$as_save_IFS
10442
10443 fi ;;
10444 esac
10445 fi
10446 OTOOL=$ac_cv_prog_OTOOL
10447 if test -n "$OTOOL"; then
10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10449 printf "%s\n" "$OTOOL" >&6; }
10450 else
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 printf "%s\n" "no" >&6; }
10453 fi
10454
10455
10456 fi
10457 if test -z "$ac_cv_prog_OTOOL"; then
10458 ac_ct_OTOOL=$OTOOL
10459 # Extract the first word of "otool", so it can be a program name with args.
10460 set dummy otool; ac_word=$2
10461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10462 printf %s "checking for $ac_word... " >&6; }
10463 if test ${ac_cv_prog_ac_ct_OTOOL+y}
10464 then :
10465 printf %s "(cached) " >&6
10466 else case e in #(
10467 e) if test -n "$ac_ct_OTOOL"; then
10468 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10469 else
10470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10471 for as_dir in $PATH
10472 do
10473 IFS=$as_save_IFS
10474 case $as_dir in #(((
10475 '') as_dir=./ ;;
10476 */) ;;
10477 *) as_dir=$as_dir/ ;;
10478 esac
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10481 ac_cv_prog_ac_ct_OTOOL="otool"
10482 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10483 break 2
10484 fi
10485 done
10486 done
10487 IFS=$as_save_IFS
10488
10489 fi ;;
10490 esac
10491 fi
10492 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10493 if test -n "$ac_ct_OTOOL"; then
10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10495 printf "%s\n" "$ac_ct_OTOOL" >&6; }
10496 else
10497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10498 printf "%s\n" "no" >&6; }
10499 fi
10500
10501 if test "x$ac_ct_OTOOL" = x; then
10502 OTOOL=":"
10503 else
10504 case $cross_compiling:$ac_tool_warned in
10505 yes:)
10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10507 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10508 ac_tool_warned=yes ;;
10509 esac
10510 OTOOL=$ac_ct_OTOOL
10511 fi
10512 else
10513 OTOOL="$ac_cv_prog_OTOOL"
10514 fi
10515
10516 if test -n "$ac_tool_prefix"; then
10517 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10518 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10520 printf %s "checking for $ac_word... " >&6; }
10521 if test ${ac_cv_prog_OTOOL64+y}
10522 then :
10523 printf %s "(cached) " >&6
10524 else case e in #(
10525 e) if test -n "$OTOOL64"; then
10526 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10527 else
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10530 do
10531 IFS=$as_save_IFS
10532 case $as_dir in #(((
10533 '') as_dir=./ ;;
10534 */) ;;
10535 *) as_dir=$as_dir/ ;;
10536 esac
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10539 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10541 break 2
10542 fi
10543 done
10544 done
10545 IFS=$as_save_IFS
10546
10547 fi ;;
10548 esac
10549 fi
10550 OTOOL64=$ac_cv_prog_OTOOL64
10551 if test -n "$OTOOL64"; then
10552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10553 printf "%s\n" "$OTOOL64" >&6; }
10554 else
10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556 printf "%s\n" "no" >&6; }
10557 fi
10558
10559
10560 fi
10561 if test -z "$ac_cv_prog_OTOOL64"; then
10562 ac_ct_OTOOL64=$OTOOL64
10563 # Extract the first word of "otool64", so it can be a program name with args.
10564 set dummy otool64; ac_word=$2
10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10566 printf %s "checking for $ac_word... " >&6; }
10567 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
10568 then :
10569 printf %s "(cached) " >&6
10570 else case e in #(
10571 e) if test -n "$ac_ct_OTOOL64"; then
10572 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10573 else
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10576 do
10577 IFS=$as_save_IFS
10578 case $as_dir in #(((
10579 '') as_dir=./ ;;
10580 */) ;;
10581 *) as_dir=$as_dir/ ;;
10582 esac
10583 for ac_exec_ext in '' $ac_executable_extensions; do
10584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10585 ac_cv_prog_ac_ct_OTOOL64="otool64"
10586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10587 break 2
10588 fi
10589 done
10590 done
10591 IFS=$as_save_IFS
10592
10593 fi ;;
10594 esac
10595 fi
10596 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10597 if test -n "$ac_ct_OTOOL64"; then
10598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10599 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
10600 else
10601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 printf "%s\n" "no" >&6; }
10603 fi
10604
10605 if test "x$ac_ct_OTOOL64" = x; then
10606 OTOOL64=":"
10607 else
10608 case $cross_compiling:$ac_tool_warned in
10609 yes:)
10610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10611 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10612 ac_tool_warned=yes ;;
10613 esac
10614 OTOOL64=$ac_ct_OTOOL64
10615 fi
10616 else
10617 OTOOL64="$ac_cv_prog_OTOOL64"
10618 fi
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10647 printf %s "checking for -single_module linker flag... " >&6; }
10648 if test ${lt_cv_apple_cc_single_mod+y}
10649 then :
10650 printf %s "(cached) " >&6
10651 else case e in #(
10652 e) lt_cv_apple_cc_single_mod=no
10653 if test -z "$LT_MULTI_MODULE"; then
10654 # By default we will add the -single_module flag. You can override
10655 # by either setting the environment variable LT_MULTI_MODULE
10656 # non-empty at configure time, or by adding -multi_module to the
10657 # link flags.
10658 rm -rf libconftest.dylib*
10659 echo "int foo(void){return 1;}" > conftest.c
10660 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10661 -dynamiclib -Wl,-single_module conftest.c" >&5
10662 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10663 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10664 _lt_result=$?
10665 # If there is a non-empty error log, and "single_module"
10666 # appears in it, assume the flag caused a linker warning
10667 if test -s conftest.err && $GREP single_module conftest.err; then
10668 cat conftest.err >&5
10669 # Otherwise, if the output was created with a 0 exit code from
10670 # the compiler, it worked.
10671 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10672 lt_cv_apple_cc_single_mod=yes
10673 else
10674 cat conftest.err >&5
10675 fi
10676 rm -rf libconftest.dylib*
10677 rm -f conftest.*
10678 fi ;;
10679 esac
10680 fi
10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10682 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
10683
10684 # Feature test to disable chained fixups since it is not
10685 # compatible with '-undefined dynamic_lookup'
10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
10687 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
10688 if test ${lt_cv_support_no_fixup_chains+y}
10689 then :
10690 printf %s "(cached) " >&6
10691 else case e in #(
10692 e) save_LDFLAGS=$LDFLAGS
10693 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
10694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10695 /* end confdefs.h. */
10696
10697 int
10698 main (void)
10699 {
10700
10701 ;
10702 return 0;
10703 }
10704 _ACEOF
10705 if ac_fn_c_try_link "$LINENO"
10706 then :
10707 lt_cv_support_no_fixup_chains=yes
10708 else case e in #(
10709 e) lt_cv_support_no_fixup_chains=no
10710 ;;
10711 esac
10712 fi
10713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LDFLAGS=$save_LDFLAGS
10716
10717 ;;
10718 esac
10719 fi
10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
10721 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
10722
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10724 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
10725 if test ${lt_cv_ld_exported_symbols_list+y}
10726 then :
10727 printf %s "(cached) " >&6
10728 else case e in #(
10729 e) lt_cv_ld_exported_symbols_list=no
10730 save_LDFLAGS=$LDFLAGS
10731 echo "_main" > conftest.sym
10732 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10734 /* end confdefs.h. */
10735
10736 int
10737 main (void)
10738 {
10739
10740 ;
10741 return 0;
10742 }
10743 _ACEOF
10744 if ac_fn_c_try_link "$LINENO"
10745 then :
10746 lt_cv_ld_exported_symbols_list=yes
10747 else case e in #(
10748 e) lt_cv_ld_exported_symbols_list=no ;;
10749 esac
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10752 conftest$ac_exeext conftest.$ac_ext
10753 LDFLAGS=$save_LDFLAGS
10754 ;;
10755 esac
10756 fi
10757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10758 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
10759
10760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10761 printf %s "checking for -force_load linker flag... " >&6; }
10762 if test ${lt_cv_ld_force_load+y}
10763 then :
10764 printf %s "(cached) " >&6
10765 else case e in #(
10766 e) lt_cv_ld_force_load=no
10767 cat > conftest.c << _LT_EOF
10768 int forced_loaded() { return 2;}
10769 _LT_EOF
10770 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10771 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10772 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
10773 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
10774 echo "$RANLIB libconftest.a" >&5
10775 $RANLIB libconftest.a 2>&5
10776 cat > conftest.c << _LT_EOF
10777 int main(void) { return 0;}
10778 _LT_EOF
10779 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10780 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10781 _lt_result=$?
10782 if test -s conftest.err && $GREP force_load conftest.err; then
10783 cat conftest.err >&5
10784 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10785 lt_cv_ld_force_load=yes
10786 else
10787 cat conftest.err >&5
10788 fi
10789 rm -f conftest.err libconftest.a conftest conftest.c
10790 rm -rf conftest.dSYM
10791 ;;
10792 esac
10793 fi
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10795 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
10796 case $host_os in
10797 rhapsody* | darwin1.[012])
10798 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10799 darwin1.*)
10800 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10801 darwin*)
10802 case $MACOSX_DEPLOYMENT_TARGET,$host in
10803 10.[012],*|,*powerpc*-darwin[5-8]*)
10804 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10805 *)
10806 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
10807 if test yes = "$lt_cv_support_no_fixup_chains"; then
10808 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
10809 fi
10810 ;;
10811 esac
10812 ;;
10813 esac
10814 if test yes = "$lt_cv_apple_cc_single_mod"; then
10815 _lt_dar_single_mod='$single_module'
10816 fi
10817 _lt_dar_needs_single_mod=no
10818 case $host_os in
10819 rhapsody* | darwin1.*)
10820 _lt_dar_needs_single_mod=yes ;;
10821 darwin*)
10822 # When targeting Mac OS X 10.4 (darwin 8) or later,
10823 # -single_module is the default and -multi_module is unsupported.
10824 # The toolchain on macOS 10.14 (darwin 18) and later cannot
10825 # target any OS version that needs -single_module.
10826 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10827 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
10828 _lt_dar_needs_single_mod=yes ;;
10829 esac
10830 ;;
10831 esac
10832 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10833 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10834 else
10835 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10836 fi
10837 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10838 _lt_dsymutil='~$DSYMUTIL $lib || :'
10839 else
10840 _lt_dsymutil=
10841 fi
10842 ;;
10843 esac
10844
10845 # func_munge_path_list VARIABLE PATH
10846 # -----------------------------------
10847 # VARIABLE is name of variable containing _space_ separated list of
10848 # directories to be munged by the contents of PATH, which is string
10849 # having a format:
10850 # "DIR[:DIR]:"
10851 # string "DIR[ DIR]" will be prepended to VARIABLE
10852 # ":DIR[:DIR]"
10853 # string "DIR[ DIR]" will be appended to VARIABLE
10854 # "DIRP[:DIRP]::[DIRA:]DIRA"
10855 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10856 # "DIRA[ DIRA]" will be appended to VARIABLE
10857 # "DIR[:DIR]"
10858 # VARIABLE will be replaced by "DIR[ DIR]"
10859 func_munge_path_list ()
10860 {
10861 case x$2 in
10862 x)
10863 ;;
10864 *:)
10865 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10866 ;;
10867 x:*)
10868 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10869 ;;
10870 *::*)
10871 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10872 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10873 ;;
10874 *)
10875 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10876 ;;
10877 esac
10878 }
10879
10880 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10881 "
10882 if test "x$ac_cv_header_dlfcn_h" = xyes
10883 then :
10884 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10885
10886 fi
10887
10888
10889
10890
10891 func_stripname_cnf ()
10892 {
10893 case $2 in
10894 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
10895 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
10896 esac
10897 } # func_stripname_cnf
10898
10899
10900
10901
10902
10903 # Set options
10904
10905
10906
10907 enable_dlopen=no
10908
10909
10910 enable_win32_dll=no
10911
10912
10913 # Check whether --enable-shared was given.
10914 if test ${enable_shared+y}
10915 then :
10916 enableval=$enable_shared; p=${PACKAGE-default}
10917 case $enableval in
10918 yes) enable_shared=yes ;;
10919 no) enable_shared=no ;;
10920 *)
10921 enable_shared=no
10922 # Look at the argument we got. We use all the common list separators.
10923 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10924 for pkg in $enableval; do
10925 IFS=$lt_save_ifs
10926 if test "X$pkg" = "X$p"; then
10927 enable_shared=yes
10928 fi
10929 done
10930 IFS=$lt_save_ifs
10931 ;;
10932 esac
10933 else case e in #(
10934 e) enable_shared=yes ;;
10935 esac
10936 fi
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946 # Check whether --enable-static was given.
10947 if test ${enable_static+y}
10948 then :
10949 enableval=$enable_static; p=${PACKAGE-default}
10950 case $enableval in
10951 yes) enable_static=yes ;;
10952 no) enable_static=no ;;
10953 *)
10954 enable_static=no
10955 # Look at the argument we got. We use all the common list separators.
10956 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10957 for pkg in $enableval; do
10958 IFS=$lt_save_ifs
10959 if test "X$pkg" = "X$p"; then
10960 enable_static=yes
10961 fi
10962 done
10963 IFS=$lt_save_ifs
10964 ;;
10965 esac
10966 else case e in #(
10967 e) enable_static=yes ;;
10968 esac
10969 fi
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979 # Check whether --enable-pic was given.
10980 if test ${enable_pic+y}
10981 then :
10982 enableval=$enable_pic; lt_p=${PACKAGE-default}
10983 case $enableval in
10984 yes|no) pic_mode=$enableval ;;
10985 *)
10986 pic_mode=default
10987 # Look at the argument we got. We use all the common list separators.
10988 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
10989 for lt_pkg in $enableval; do
10990 IFS=$lt_save_ifs
10991 if test "X$lt_pkg" = "X$lt_p"; then
10992 pic_mode=yes
10993 fi
10994 done
10995 IFS=$lt_save_ifs
10996 ;;
10997 esac
10998 else case e in #(
10999 e) # Check whether --with-pic was given.
11000 if test ${with_pic+y}
11001 then :
11002 withval=$with_pic; lt_p=${PACKAGE-default}
11003 case $withval in
11004 yes|no) pic_mode=$withval ;;
11005 *)
11006 pic_mode=default
11007 # Look at the argument we got. We use all the common list separators.
11008 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11009 for lt_pkg in $withval; do
11010 IFS=$lt_save_ifs
11011 if test "X$lt_pkg" = "X$lt_p"; then
11012 pic_mode=yes
11013 fi
11014 done
11015 IFS=$lt_save_ifs
11016 ;;
11017 esac
11018 else case e in #(
11019 e) pic_mode=default ;;
11020 esac
11021 fi
11022
11023 ;;
11024 esac
11025 fi
11026
11027
11028
11029
11030
11031
11032
11033
11034 # Check whether --enable-fast-install was given.
11035 if test ${enable_fast_install+y}
11036 then :
11037 enableval=$enable_fast_install; p=${PACKAGE-default}
11038 case $enableval in
11039 yes) enable_fast_install=yes ;;
11040 no) enable_fast_install=no ;;
11041 *)
11042 enable_fast_install=no
11043 # Look at the argument we got. We use all the common list separators.
11044 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11045 for pkg in $enableval; do
11046 IFS=$lt_save_ifs
11047 if test "X$pkg" = "X$p"; then
11048 enable_fast_install=yes
11049 fi
11050 done
11051 IFS=$lt_save_ifs
11052 ;;
11053 esac
11054 else case e in #(
11055 e) enable_fast_install=yes ;;
11056 esac
11057 fi
11058
11059
11060
11061
11062
11063
11064
11065
11066 shared_archive_member_spec=
11067 case $host,$enable_shared in
11068 power*-*-aix[5-9]*,yes)
11069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11070 printf %s "checking which variant of shared library versioning to provide... " >&6; }
11071 # Check whether --enable-aix-soname was given.
11072 if test ${enable_aix_soname+y}
11073 then :
11074 enableval=$enable_aix_soname; case $enableval in
11075 aix|svr4|both)
11076 ;;
11077 *)
11078 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
11079 ;;
11080 esac
11081 lt_cv_with_aix_soname=$enable_aix_soname
11082 else case e in #(
11083 e) # Check whether --with-aix-soname was given.
11084 if test ${with_aix_soname+y}
11085 then :
11086 withval=$with_aix_soname; case $withval in
11087 aix|svr4|both)
11088 ;;
11089 *)
11090 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11091 ;;
11092 esac
11093 lt_cv_with_aix_soname=$with_aix_soname
11094 else case e in #(
11095 e) if test ${lt_cv_with_aix_soname+y}
11096 then :
11097 printf %s "(cached) " >&6
11098 else case e in #(
11099 e) lt_cv_with_aix_soname=aix ;;
11100 esac
11101 fi
11102 ;;
11103 esac
11104 fi
11105
11106 enable_aix_soname=$lt_cv_with_aix_soname ;;
11107 esac
11108 fi
11109
11110 with_aix_soname=$enable_aix_soname
11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11112 printf "%s\n" "$with_aix_soname" >&6; }
11113 if test aix != "$with_aix_soname"; then
11114 # For the AIX way of multilib, we name the shared archive member
11115 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11116 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11117 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11118 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11119 if test 64 = "${OBJECT_MODE-32}"; then
11120 shared_archive_member_spec=shr_64
11121 else
11122 shared_archive_member_spec=shr
11123 fi
11124 fi
11125 ;;
11126 *)
11127 with_aix_soname=aix
11128 ;;
11129 esac
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140 # This can be used to rebuild libtool when needed
11141 LIBTOOL_DEPS=$ltmain
11142
11143 # Always use our own libtool.
11144 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175 test -z "$LN_S" && LN_S="ln -s"
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190 if test -n "${ZSH_VERSION+set}"; then
11191 setopt NO_GLOB_SUBST
11192 fi
11193
11194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11195 printf %s "checking for objdir... " >&6; }
11196 if test ${lt_cv_objdir+y}
11197 then :
11198 printf %s "(cached) " >&6
11199 else case e in #(
11200 e) rm -f .libs 2>/dev/null
11201 mkdir .libs 2>/dev/null
11202 if test -d .libs; then
11203 lt_cv_objdir=.libs
11204 else
11205 # MS-DOS does not allow filenames that begin with a dot.
11206 lt_cv_objdir=_libs
11207 fi
11208 rmdir .libs 2>/dev/null ;;
11209 esac
11210 fi
11211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11212 printf "%s\n" "$lt_cv_objdir" >&6; }
11213 objdir=$lt_cv_objdir
11214
11215
11216
11217
11218
11219 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
11220
11221
11222
11223
11224 case $host_os in
11225 aix3*)
11226 # AIX sometimes has problems with the GCC collect2 program. For some
11227 # reason, if we set the COLLECT_NAMES environment variable, the problems
11228 # vanish in a puff of smoke.
11229 if test set != "${COLLECT_NAMES+set}"; then
11230 COLLECT_NAMES=
11231 export COLLECT_NAMES
11232 fi
11233 ;;
11234 esac
11235
11236 # Global variables:
11237 ofile=libtool
11238 can_build_shared=yes
11239
11240 # All known linkers require a '.a' archive for static linking (except MSVC and
11241 # ICC, which need '.lib').
11242 libext=a
11243
11244 with_gnu_ld=$lt_cv_prog_gnu_ld
11245
11246 old_CC=$CC
11247 old_CFLAGS=$CFLAGS
11248
11249 # Set sane defaults for various variables
11250 test -z "$CC" && CC=cc
11251 test -z "$LTCC" && LTCC=$CC
11252 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11253 test -z "$LD" && LD=ld
11254 test -z "$ac_objext" && ac_objext=o
11255
11256 func_cc_basename $compiler
11257 cc_basename=$func_cc_basename_result
11258
11259
11260 # Only perform the check for file, if the check method requires it
11261 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11262 case $deplibs_check_method in
11263 file_magic*)
11264 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11266 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
11267 if test ${lt_cv_path_MAGIC_CMD+y}
11268 then :
11269 printf %s "(cached) " >&6
11270 else case e in #(
11271 e) case $MAGIC_CMD in
11272 [\\/*] | ?:[\\/]*)
11273 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11274 ;;
11275 *)
11276 lt_save_MAGIC_CMD=$MAGIC_CMD
11277 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11278 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11279 for ac_dir in $ac_dummy; do
11280 IFS=$lt_save_ifs
11281 test -z "$ac_dir" && ac_dir=.
11282 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11283 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11284 if test -n "$file_magic_test_file"; then
11285 case $deplibs_check_method in
11286 "file_magic "*)
11287 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11288 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11289 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11290 $EGREP "$file_magic_regex" > /dev/null; then
11291 :
11292 else
11293 cat <<_LT_EOF 1>&2
11294
11295 *** Warning: the command libtool uses to detect shared libraries,
11296 *** $file_magic_cmd, produces output that libtool cannot recognize.
11297 *** The result is that libtool may fail to recognize shared libraries
11298 *** as such. This will affect the creation of libtool libraries that
11299 *** depend on shared libraries, but programs linked with such libtool
11300 *** libraries will work regardless of this problem. Nevertheless, you
11301 *** may want to report the problem to your system manager and/or to
11302 *** [email protected]
11303
11304 _LT_EOF
11305 fi ;;
11306 esac
11307 fi
11308 break
11309 fi
11310 done
11311 IFS=$lt_save_ifs
11312 MAGIC_CMD=$lt_save_MAGIC_CMD
11313 ;;
11314 esac ;;
11315 esac
11316 fi
11317
11318 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11319 if test -n "$MAGIC_CMD"; then
11320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11321 printf "%s\n" "$MAGIC_CMD" >&6; }
11322 else
11323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324 printf "%s\n" "no" >&6; }
11325 fi
11326
11327
11328
11329
11330
11331 if test -z "$lt_cv_path_MAGIC_CMD"; then
11332 if test -n "$ac_tool_prefix"; then
11333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11334 printf %s "checking for file... " >&6; }
11335 if test ${lt_cv_path_MAGIC_CMD+y}
11336 then :
11337 printf %s "(cached) " >&6
11338 else case e in #(
11339 e) case $MAGIC_CMD in
11340 [\\/*] | ?:[\\/]*)
11341 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11342 ;;
11343 *)
11344 lt_save_MAGIC_CMD=$MAGIC_CMD
11345 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11346 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11347 for ac_dir in $ac_dummy; do
11348 IFS=$lt_save_ifs
11349 test -z "$ac_dir" && ac_dir=.
11350 if test -f "$ac_dir/file"; then
11351 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11352 if test -n "$file_magic_test_file"; then
11353 case $deplibs_check_method in
11354 "file_magic "*)
11355 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11356 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11357 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11358 $EGREP "$file_magic_regex" > /dev/null; then
11359 :
11360 else
11361 cat <<_LT_EOF 1>&2
11362
11363 *** Warning: the command libtool uses to detect shared libraries,
11364 *** $file_magic_cmd, produces output that libtool cannot recognize.
11365 *** The result is that libtool may fail to recognize shared libraries
11366 *** as such. This will affect the creation of libtool libraries that
11367 *** depend on shared libraries, but programs linked with such libtool
11368 *** libraries will work regardless of this problem. Nevertheless, you
11369 *** may want to report the problem to your system manager and/or to
11370 *** [email protected]
11371
11372 _LT_EOF
11373 fi ;;
11374 esac
11375 fi
11376 break
11377 fi
11378 done
11379 IFS=$lt_save_ifs
11380 MAGIC_CMD=$lt_save_MAGIC_CMD
11381 ;;
11382 esac ;;
11383 esac
11384 fi
11385
11386 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11387 if test -n "$MAGIC_CMD"; then
11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11389 printf "%s\n" "$MAGIC_CMD" >&6; }
11390 else
11391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 printf "%s\n" "no" >&6; }
11393 fi
11394
11395
11396 else
11397 MAGIC_CMD=:
11398 fi
11399 fi
11400
11401 fi
11402 ;;
11403 esac
11404
11405 # Use C for the default configuration in the libtool script
11406
11407 lt_save_CC=$CC
11408 ac_ext=c
11409 ac_cpp='$CPP $CPPFLAGS'
11410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11413
11414
11415 # Source file extension for C test sources.
11416 ac_ext=c
11417
11418 # Object file extension for compiled C test sources.
11419 objext=o
11420 objext=$objext
11421
11422 # Code to be used in simple compile tests
11423 lt_simple_compile_test_code="int some_variable = 0;"
11424
11425 # Code to be used in simple link tests
11426 lt_simple_link_test_code='int main(void){return(0);}'
11427
11428
11429
11430
11431
11432
11433
11434 # If no C compiler was specified, use CC.
11435 LTCC=${LTCC-"$CC"}
11436
11437 # If no C compiler flags were specified, use CFLAGS.
11438 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11439
11440 # Allow CC to be a program name with arguments.
11441 compiler=$CC
11442
11443 # Save the default compiler, since it gets overwritten when the other
11444 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11445 compiler_DEFAULT=$CC
11446
11447 # save warnings/boilerplate of simple test code
11448 ac_outfile=conftest.$ac_objext
11449 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11450 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11451 _lt_compiler_boilerplate=`cat conftest.err`
11452 $RM conftest*
11453
11454 ac_outfile=conftest.$ac_objext
11455 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11456 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11457 _lt_linker_boilerplate=`cat conftest.err`
11458 $RM -r conftest*
11459
11460
11461 ## CAVEAT EMPTOR:
11462 ## There is no encapsulation within the following macros, do not change
11463 ## the running order or otherwise move them around unless you know exactly
11464 ## what you are doing...
11465 if test -n "$compiler"; then
11466
11467 lt_prog_compiler_no_builtin_flag=
11468
11469 if test yes = "$GCC"; then
11470 case $cc_basename in
11471 nvcc*)
11472 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11473 *)
11474 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11475 esac
11476
11477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11478 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11479 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
11480 then :
11481 printf %s "(cached) " >&6
11482 else case e in #(
11483 e) lt_cv_prog_compiler_rtti_exceptions=no
11484 ac_outfile=conftest.$ac_objext
11485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11486 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11487 # Insert the option either (1) after the last *FLAGS variable, or
11488 # (2) before a word containing "conftest.", or (3) at the end.
11489 # Note that $ac_compile itself does not contain backslashes and begins
11490 # with a dollar sign (not a hyphen), so the echo should work correctly.
11491 # The option is referenced via a variable to avoid confusing sed.
11492 lt_compile=`echo "$ac_compile" | $SED \
11493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11495 -e 's:$: $lt_compiler_flag:'`
11496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11497 (eval "$lt_compile" 2>conftest.err)
11498 ac_status=$?
11499 cat conftest.err >&5
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 if (exit $ac_status) && test -s "$ac_outfile"; then
11502 # The compiler can only warn and ignore the option if not recognized
11503 # So say no if there are warnings other than the usual output.
11504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11507 lt_cv_prog_compiler_rtti_exceptions=yes
11508 fi
11509 fi
11510 $RM conftest*
11511 ;;
11512 esac
11513 fi
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11515 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11516
11517 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11518 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11519 else
11520 :
11521 fi
11522
11523 fi
11524
11525
11526
11527
11528
11529
11530 lt_prog_compiler_wl=
11531 lt_prog_compiler_pic=
11532 lt_prog_compiler_static=
11533
11534
11535 if test yes = "$GCC"; then
11536 lt_prog_compiler_wl='-Wl,'
11537 lt_prog_compiler_static='-static'
11538
11539 case $host_os in
11540 aix*)
11541 # All AIX code is PIC.
11542 if test ia64 = "$host_cpu"; then
11543 # AIX 5 now supports IA64 processor
11544 lt_prog_compiler_static='-Bstatic'
11545 fi
11546 lt_prog_compiler_pic='-fPIC'
11547 ;;
11548
11549 amigaos*)
11550 case $host_cpu in
11551 powerpc)
11552 # see comment about AmigaOS4 .so support
11553 lt_prog_compiler_pic='-fPIC'
11554 ;;
11555 m68k)
11556 # FIXME: we need at least 68020 code to build shared libraries, but
11557 # adding the '-m68020' flag to GCC prevents building anything better,
11558 # like '-m68040'.
11559 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11560 ;;
11561 esac
11562 ;;
11563
11564 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11565 # PIC is the default for these OSes.
11566 ;;
11567
11568 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11569 # This hack is so that the source file can tell whether it is being
11570 # built for inclusion in a dll (and should export symbols for example).
11571 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11572 # (--disable-auto-import) libraries
11573 lt_prog_compiler_pic='-DDLL_EXPORT'
11574 case $host_os in
11575 os2*)
11576 lt_prog_compiler_static='$wl-static'
11577 ;;
11578 esac
11579 ;;
11580
11581 darwin* | rhapsody*)
11582 # PIC is the default on this platform
11583 # Common symbols not allowed in MH_DYLIB files
11584 lt_prog_compiler_pic='-fno-common'
11585 ;;
11586
11587 haiku*)
11588 # PIC is the default for Haiku.
11589 # The "-static" flag exists, but is broken.
11590 lt_prog_compiler_static=
11591 ;;
11592
11593 hpux*)
11594 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11595 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11596 # sets the default TLS model and affects inlining.
11597 case $host_cpu in
11598 hppa*64*)
11599 # +Z the default
11600 ;;
11601 *)
11602 lt_prog_compiler_pic='-fPIC'
11603 ;;
11604 esac
11605 ;;
11606
11607 interix[3-9]*)
11608 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11609 # Instead, we relocate shared libraries at runtime.
11610 ;;
11611
11612 msdosdjgpp*)
11613 # Just because we use GCC doesn't mean we suddenly get shared libraries
11614 # on systems that don't support them.
11615 lt_prog_compiler_can_build_shared=no
11616 enable_shared=no
11617 ;;
11618
11619 *nto* | *qnx*)
11620 # QNX uses GNU C++, but need to define -shared option too, otherwise
11621 # it will coredump.
11622 lt_prog_compiler_pic='-fPIC -shared'
11623 ;;
11624
11625 sysv4*MP*)
11626 if test -d /usr/nec; then
11627 lt_prog_compiler_pic=-Kconform_pic
11628 fi
11629 ;;
11630
11631 *)
11632 lt_prog_compiler_pic='-fPIC'
11633 ;;
11634 esac
11635
11636 case $cc_basename in
11637 nvcc*) # Cuda Compiler Driver 2.2
11638 lt_prog_compiler_wl='-Xlinker '
11639 if test -n "$lt_prog_compiler_pic"; then
11640 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11641 fi
11642 ;;
11643 esac
11644 else
11645 # PORTME Check for flag to pass linker flags through the system compiler.
11646 case $host_os in
11647 aix*)
11648 lt_prog_compiler_wl='-Wl,'
11649 if test ia64 = "$host_cpu"; then
11650 # AIX 5 now supports IA64 processor
11651 lt_prog_compiler_static='-Bstatic'
11652 else
11653 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11654 fi
11655 ;;
11656
11657 darwin* | rhapsody*)
11658 # PIC is the default on this platform
11659 # Common symbols not allowed in MH_DYLIB files
11660 lt_prog_compiler_pic='-fno-common'
11661 case $cc_basename in
11662 nagfor*)
11663 # NAG Fortran compiler
11664 lt_prog_compiler_wl='-Wl,-Wl,,'
11665 lt_prog_compiler_pic='-PIC'
11666 lt_prog_compiler_static='-Bstatic'
11667 ;;
11668 esac
11669 ;;
11670
11671 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
11672 # This hack is so that the source file can tell whether it is being
11673 # built for inclusion in a dll (and should export symbols for example).
11674 lt_prog_compiler_pic='-DDLL_EXPORT'
11675 case $host_os in
11676 os2*)
11677 lt_prog_compiler_static='$wl-static'
11678 ;;
11679 esac
11680 ;;
11681
11682 hpux9* | hpux10* | hpux11*)
11683 lt_prog_compiler_wl='-Wl,'
11684 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11685 # not for PA HP-UX.
11686 case $host_cpu in
11687 hppa*64*|ia64*)
11688 # +Z the default
11689 ;;
11690 *)
11691 lt_prog_compiler_pic='+Z'
11692 ;;
11693 esac
11694 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11695 lt_prog_compiler_static='$wl-a ${wl}archive'
11696 ;;
11697
11698 irix5* | irix6* | nonstopux*)
11699 lt_prog_compiler_wl='-Wl,'
11700 # PIC (with -KPIC) is the default.
11701 lt_prog_compiler_static='-non_shared'
11702 ;;
11703
11704 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11705 case $cc_basename in
11706 # old Intel for x86_64, which still supported -KPIC.
11707 ecc*)
11708 lt_prog_compiler_wl='-Wl,'
11709 lt_prog_compiler_pic='-KPIC'
11710 lt_prog_compiler_static='-static'
11711 ;;
11712 *flang* | ftn | f18* | f95*)
11713 # Flang compiler.
11714 lt_prog_compiler_wl='-Wl,'
11715 lt_prog_compiler_pic='-fPIC'
11716 lt_prog_compiler_static='-static'
11717 ;;
11718 # icc used to be incompatible with GCC.
11719 # ICC 10 doesn't accept -KPIC any more.
11720 icc* | ifort*)
11721 lt_prog_compiler_wl='-Wl,'
11722 lt_prog_compiler_pic='-fPIC'
11723 lt_prog_compiler_static='-static'
11724 ;;
11725 # Lahey Fortran 8.1.
11726 lf95*)
11727 lt_prog_compiler_wl='-Wl,'
11728 lt_prog_compiler_pic='--shared'
11729 lt_prog_compiler_static='--static'
11730 ;;
11731 nagfor*)
11732 # NAG Fortran compiler
11733 lt_prog_compiler_wl='-Wl,-Wl,,'
11734 lt_prog_compiler_pic='-PIC'
11735 lt_prog_compiler_static='-Bstatic'
11736 ;;
11737 tcc*)
11738 # Fabrice Bellard et al's Tiny C Compiler
11739 lt_prog_compiler_wl='-Wl,'
11740 lt_prog_compiler_pic='-fPIC'
11741 lt_prog_compiler_static='-static'
11742 ;;
11743 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11744 # Portland Group compilers (*not* the Pentium gcc compiler,
11745 # which looks to be a dead project)
11746 lt_prog_compiler_wl='-Wl,'
11747 lt_prog_compiler_pic='-fpic'
11748 lt_prog_compiler_static='-Bstatic'
11749 ;;
11750 ccc*)
11751 lt_prog_compiler_wl='-Wl,'
11752 # All Alpha code is PIC.
11753 lt_prog_compiler_static='-non_shared'
11754 ;;
11755 xl* | bgxl* | bgf* | mpixl*)
11756 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11757 lt_prog_compiler_wl='-Wl,'
11758 lt_prog_compiler_pic='-qpic'
11759 lt_prog_compiler_static='-qstaticlink'
11760 ;;
11761 *)
11762 case `$CC -V 2>&1 | $SED 5q` in
11763 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11764 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11765 lt_prog_compiler_pic='-KPIC'
11766 lt_prog_compiler_static='-Bstatic'
11767 lt_prog_compiler_wl=''
11768 ;;
11769 *Sun\ F* | *Sun*Fortran*)
11770 lt_prog_compiler_pic='-KPIC'
11771 lt_prog_compiler_static='-Bstatic'
11772 lt_prog_compiler_wl='-Qoption ld '
11773 ;;
11774 *Sun\ C*)
11775 # Sun C 5.9
11776 lt_prog_compiler_pic='-KPIC'
11777 lt_prog_compiler_static='-Bstatic'
11778 lt_prog_compiler_wl='-Wl,'
11779 ;;
11780 *Intel*\ [CF]*Compiler*)
11781 lt_prog_compiler_wl='-Wl,'
11782 lt_prog_compiler_pic='-fPIC'
11783 lt_prog_compiler_static='-static'
11784 ;;
11785 *Portland\ Group*)
11786 lt_prog_compiler_wl='-Wl,'
11787 lt_prog_compiler_pic='-fpic'
11788 lt_prog_compiler_static='-Bstatic'
11789 ;;
11790 esac
11791 ;;
11792 esac
11793 ;;
11794
11795 newsos6)
11796 lt_prog_compiler_pic='-KPIC'
11797 lt_prog_compiler_static='-Bstatic'
11798 ;;
11799
11800 *-mlibc)
11801 lt_prog_compiler_wl='-Wl,'
11802 lt_prog_compiler_pic='-fPIC'
11803 lt_prog_compiler_static='-static'
11804 ;;
11805
11806 *nto* | *qnx*)
11807 # QNX uses GNU C++, but need to define -shared option too, otherwise
11808 # it will coredump.
11809 lt_prog_compiler_pic='-fPIC -shared'
11810 ;;
11811
11812 osf3* | osf4* | osf5*)
11813 lt_prog_compiler_wl='-Wl,'
11814 # All OSF/1 code is PIC.
11815 lt_prog_compiler_static='-non_shared'
11816 ;;
11817
11818 rdos*)
11819 lt_prog_compiler_static='-non_shared'
11820 ;;
11821
11822 serenity*)
11823 ;;
11824
11825 solaris*)
11826 lt_prog_compiler_pic='-KPIC'
11827 lt_prog_compiler_static='-Bstatic'
11828 case $cc_basename in
11829 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11830 lt_prog_compiler_wl='-Qoption ld ';;
11831 *)
11832 lt_prog_compiler_wl='-Wl,';;
11833 esac
11834 ;;
11835
11836 sunos4*)
11837 lt_prog_compiler_wl='-Qoption ld '
11838 lt_prog_compiler_pic='-PIC'
11839 lt_prog_compiler_static='-Bstatic'
11840 ;;
11841
11842 sysv4 | sysv4.2uw2* | sysv4.3*)
11843 lt_prog_compiler_wl='-Wl,'
11844 lt_prog_compiler_pic='-KPIC'
11845 lt_prog_compiler_static='-Bstatic'
11846 ;;
11847
11848 sysv4*MP*)
11849 if test -d /usr/nec; then
11850 lt_prog_compiler_pic='-Kconform_pic'
11851 lt_prog_compiler_static='-Bstatic'
11852 fi
11853 ;;
11854
11855 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11856 lt_prog_compiler_wl='-Wl,'
11857 lt_prog_compiler_pic='-KPIC'
11858 lt_prog_compiler_static='-Bstatic'
11859 ;;
11860
11861 unicos*)
11862 lt_prog_compiler_wl='-Wl,'
11863 lt_prog_compiler_can_build_shared=no
11864 ;;
11865
11866 uts4*)
11867 lt_prog_compiler_pic='-pic'
11868 lt_prog_compiler_static='-Bstatic'
11869 ;;
11870
11871 *)
11872 lt_prog_compiler_can_build_shared=no
11873 ;;
11874 esac
11875 fi
11876
11877 case $host_os in
11878 # For platforms that do not support PIC, -DPIC is meaningless:
11879 *djgpp*)
11880 lt_prog_compiler_pic=
11881 ;;
11882 *)
11883 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11884 ;;
11885 esac
11886
11887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11888 printf %s "checking for $compiler option to produce PIC... " >&6; }
11889 if test ${lt_cv_prog_compiler_pic+y}
11890 then :
11891 printf %s "(cached) " >&6
11892 else case e in #(
11893 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
11894 esac
11895 fi
11896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11897 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
11898 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11899
11900 #
11901 # Check to make sure the PIC flag actually works.
11902 #
11903 if test -n "$lt_prog_compiler_pic"; then
11904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11905 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11906 if test ${lt_cv_prog_compiler_pic_works+y}
11907 then :
11908 printf %s "(cached) " >&6
11909 else case e in #(
11910 e) lt_cv_prog_compiler_pic_works=no
11911 ac_outfile=conftest.$ac_objext
11912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11913 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
11914 # Insert the option either (1) after the last *FLAGS variable, or
11915 # (2) before a word containing "conftest.", or (3) at the end.
11916 # Note that $ac_compile itself does not contain backslashes and begins
11917 # with a dollar sign (not a hyphen), so the echo should work correctly.
11918 # The option is referenced via a variable to avoid confusing sed.
11919 lt_compile=`echo "$ac_compile" | $SED \
11920 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11921 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11922 -e 's:$: $lt_compiler_flag:'`
11923 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11924 (eval "$lt_compile" 2>conftest.err)
11925 ac_status=$?
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 if (exit $ac_status) && test -s "$ac_outfile"; then
11929 # The compiler can only warn and ignore the option if not recognized
11930 # So say no if there are warnings other than the usual output.
11931 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11933 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11934 lt_cv_prog_compiler_pic_works=yes
11935 fi
11936 fi
11937 $RM conftest*
11938 ;;
11939 esac
11940 fi
11941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11942 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
11943
11944 if test yes = "$lt_cv_prog_compiler_pic_works"; then
11945 case $lt_prog_compiler_pic in
11946 "" | " "*) ;;
11947 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11948 esac
11949 else
11950 lt_prog_compiler_pic=
11951 lt_prog_compiler_can_build_shared=no
11952 fi
11953
11954 fi
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965
11966 #
11967 # Check to make sure the static flag actually works.
11968 #
11969 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11971 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11972 if test ${lt_cv_prog_compiler_static_works+y}
11973 then :
11974 printf %s "(cached) " >&6
11975 else case e in #(
11976 e) lt_cv_prog_compiler_static_works=no
11977 save_LDFLAGS=$LDFLAGS
11978 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11979 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11980 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11981 # The linker can only warn and ignore the option if not recognized
11982 # So say no if there are warnings
11983 if test -s conftest.err; then
11984 # Append any errors to the config.log.
11985 cat conftest.err 1>&5
11986 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11987 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11988 if diff conftest.exp conftest.er2 >/dev/null; then
11989 lt_cv_prog_compiler_static_works=yes
11990 fi
11991 else
11992 lt_cv_prog_compiler_static_works=yes
11993 fi
11994 fi
11995 $RM -r conftest*
11996 LDFLAGS=$save_LDFLAGS
11997 ;;
11998 esac
11999 fi
12000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12001 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12002
12003 if test yes = "$lt_cv_prog_compiler_static_works"; then
12004 :
12005 else
12006 lt_prog_compiler_static=
12007 fi
12008
12009
12010
12011
12012
12013
12014
12015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12016 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12017 if test ${lt_cv_prog_compiler_c_o+y}
12018 then :
12019 printf %s "(cached) " >&6
12020 else case e in #(
12021 e) lt_cv_prog_compiler_c_o=no
12022 $RM -r conftest 2>/dev/null
12023 mkdir conftest
12024 cd conftest
12025 mkdir out
12026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12027
12028 lt_compiler_flag="-o out/conftest2.$ac_objext"
12029 # Insert the option either (1) after the last *FLAGS variable, or
12030 # (2) before a word containing "conftest.", or (3) at the end.
12031 # Note that $ac_compile itself does not contain backslashes and begins
12032 # with a dollar sign (not a hyphen), so the echo should work correctly.
12033 lt_compile=`echo "$ac_compile" | $SED \
12034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12036 -e 's:$: $lt_compiler_flag:'`
12037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12038 (eval "$lt_compile" 2>out/conftest.err)
12039 ac_status=$?
12040 cat out/conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12043 then
12044 # The compiler can only warn and ignore the option if not recognized
12045 # So say no if there are warnings
12046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12049 lt_cv_prog_compiler_c_o=yes
12050 fi
12051 fi
12052 chmod u+w . 2>&5
12053 $RM conftest*
12054 # SGI C++ compiler will create directory out/ii_files/ for
12055 # template instantiation
12056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12057 $RM out/* && rmdir out
12058 cd ..
12059 $RM -r conftest
12060 $RM conftest*
12061 ;;
12062 esac
12063 fi
12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12065 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12066
12067
12068
12069
12070
12071
12072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12073 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12074 if test ${lt_cv_prog_compiler_c_o+y}
12075 then :
12076 printf %s "(cached) " >&6
12077 else case e in #(
12078 e) lt_cv_prog_compiler_c_o=no
12079 $RM -r conftest 2>/dev/null
12080 mkdir conftest
12081 cd conftest
12082 mkdir out
12083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12084
12085 lt_compiler_flag="-o out/conftest2.$ac_objext"
12086 # Insert the option either (1) after the last *FLAGS variable, or
12087 # (2) before a word containing "conftest.", or (3) at the end.
12088 # Note that $ac_compile itself does not contain backslashes and begins
12089 # with a dollar sign (not a hyphen), so the echo should work correctly.
12090 lt_compile=`echo "$ac_compile" | $SED \
12091 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12092 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12093 -e 's:$: $lt_compiler_flag:'`
12094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12095 (eval "$lt_compile" 2>out/conftest.err)
12096 ac_status=$?
12097 cat out/conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12100 then
12101 # The compiler can only warn and ignore the option if not recognized
12102 # So say no if there are warnings
12103 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12104 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12105 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12106 lt_cv_prog_compiler_c_o=yes
12107 fi
12108 fi
12109 chmod u+w . 2>&5
12110 $RM conftest*
12111 # SGI C++ compiler will create directory out/ii_files/ for
12112 # template instantiation
12113 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12114 $RM out/* && rmdir out
12115 cd ..
12116 $RM -r conftest
12117 $RM conftest*
12118 ;;
12119 esac
12120 fi
12121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12122 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12123
12124
12125
12126
12127 hard_links=nottested
12128 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12129 # do not overwrite the value of need_locks provided by the user
12130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12131 printf %s "checking if we can lock with hard links... " >&6; }
12132 hard_links=yes
12133 $RM conftest*
12134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12135 touch conftest.a
12136 ln conftest.a conftest.b 2>&5 || hard_links=no
12137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12139 printf "%s\n" "$hard_links" >&6; }
12140 if test no = "$hard_links"; then
12141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12142 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12143 need_locks=warn
12144 fi
12145 else
12146 need_locks=no
12147 fi
12148
12149
12150
12151
12152
12153
12154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12155 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12156
12157 runpath_var=
12158 allow_undefined_flag=
12159 always_export_symbols=no
12160 archive_cmds=
12161 archive_expsym_cmds=
12162 compiler_needs_object=no
12163 enable_shared_with_static_runtimes=no
12164 export_dynamic_flag_spec=
12165 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12166 hardcode_automatic=no
12167 hardcode_direct=no
12168 hardcode_direct_absolute=no
12169 hardcode_libdir_flag_spec=
12170 hardcode_libdir_separator=
12171 hardcode_minus_L=no
12172 hardcode_shlibpath_var=unsupported
12173 inherit_rpath=no
12174 link_all_deplibs=unknown
12175 module_cmds=
12176 module_expsym_cmds=
12177 old_archive_from_new_cmds=
12178 old_archive_from_expsyms_cmds=
12179 thread_safe_flag_spec=
12180 whole_archive_flag_spec=
12181 # include_expsyms should be a list of space-separated symbols to be *always*
12182 # included in the symbol list
12183 include_expsyms=
12184 # exclude_expsyms can be an extended regexp of symbols to exclude
12185 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12186 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12187 # as well as any symbol that contains 'd'.
12188 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12189 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12190 # platforms (ab)use it in PIC code, but their linkers get confused if
12191 # the symbol is explicitly referenced. Since portable code cannot
12192 # rely on this symbol name, it's probably fine to never include it in
12193 # preloaded symbol tables.
12194 # Exclude shared library initialization/finalization symbols.
12195 extract_expsyms_cmds=
12196
12197 case $host_os in
12198 cygwin* | mingw* | windows* | pw32* | cegcc*)
12199 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
12200 # When not using gcc, we currently assume that we are using
12201 # Microsoft Visual C++ or Intel C++ Compiler.
12202 if test yes != "$GCC"; then
12203 with_gnu_ld=no
12204 fi
12205 ;;
12206 interix*)
12207 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
12208 with_gnu_ld=yes
12209 ;;
12210 esac
12211
12212 ld_shlibs=yes
12213
12214 # On some targets, GNU ld is compatible enough with the native linker
12215 # that we're better off using the native interface for both.
12216 lt_use_gnu_ld_interface=no
12217 if test yes = "$with_gnu_ld"; then
12218 case $host_os in
12219 aix*)
12220 # The AIX port of GNU ld has always aspired to compatibility
12221 # with the native linker. However, as the warning in the GNU ld
12222 # block says, versions before 2.19.5* couldn't really create working
12223 # shared libraries, regardless of the interface used.
12224 case `$LD -v 2>&1` in
12225 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12226 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12227 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12228 *)
12229 lt_use_gnu_ld_interface=yes
12230 ;;
12231 esac
12232 ;;
12233 *)
12234 lt_use_gnu_ld_interface=yes
12235 ;;
12236 esac
12237 fi
12238
12239 if test yes = "$lt_use_gnu_ld_interface"; then
12240 # If archive_cmds runs LD, not CC, wlarc should be empty
12241 wlarc='$wl'
12242
12243 # Set some defaults for GNU ld with shared library support. These
12244 # are reset later if shared libraries are not supported. Putting them
12245 # here allows them to be overridden if necessary.
12246 runpath_var=LD_RUN_PATH
12247 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12248 export_dynamic_flag_spec='$wl--export-dynamic'
12249 # ancient GNU ld didn't support --whole-archive et. al.
12250 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12251 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12252 else
12253 whole_archive_flag_spec=
12254 fi
12255 supports_anon_versioning=no
12256 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
12257 *GNU\ gold*) supports_anon_versioning=yes ;;
12258 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12259 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12260 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12261 *\ 2.11.*) ;; # other 2.11 versions
12262 *) supports_anon_versioning=yes ;;
12263 esac
12264
12265 # See if GNU ld supports shared libraries.
12266 case $host_os in
12267 aix[3-9]*)
12268 # On AIX/PPC, the GNU linker is very broken
12269 if test ia64 != "$host_cpu"; then
12270 ld_shlibs=no
12271 cat <<_LT_EOF 1>&2
12272
12273 *** Warning: the GNU linker, at least up to release 2.19, is reported
12274 *** to be unable to reliably create shared libraries on AIX.
12275 *** Therefore, libtool is disabling shared libraries support. If you
12276 *** really care for shared libraries, you may want to install binutils
12277 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12278 *** You will then need to restart the configuration process.
12279
12280 _LT_EOF
12281 fi
12282 ;;
12283
12284 amigaos*)
12285 case $host_cpu in
12286 powerpc)
12287 # see comment about AmigaOS4 .so support
12288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12289 archive_expsym_cmds=''
12290 ;;
12291 m68k)
12292 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)'
12293 hardcode_libdir_flag_spec='-L$libdir'
12294 hardcode_minus_L=yes
12295 ;;
12296 esac
12297 ;;
12298
12299 beos*)
12300 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12301 allow_undefined_flag=unsupported
12302 # Joseph Beckenbach <[email protected]> says some releases of gcc
12303 # support --undefined. This deserves some investigation. FIXME
12304 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12305 else
12306 ld_shlibs=no
12307 fi
12308 ;;
12309
12310 cygwin* | mingw* | windows* | pw32* | cegcc*)
12311 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12312 # as there is no search path for DLLs.
12313 hardcode_libdir_flag_spec='-L$libdir'
12314 export_dynamic_flag_spec='$wl--export-all-symbols'
12315 allow_undefined_flag=unsupported
12316 always_export_symbols=no
12317 enable_shared_with_static_runtimes=yes
12318 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'
12319 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12320 file_list_spec='@'
12321
12322 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12324 # If the export-symbols file already is a .def file, use it as
12325 # is; otherwise, prepend EXPORTS...
12326 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12327 cp $export_symbols $output_objdir/$soname.def;
12328 else
12329 echo EXPORTS > $output_objdir/$soname.def;
12330 cat $export_symbols >> $output_objdir/$soname.def;
12331 fi~
12332 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12333 else
12334 ld_shlibs=no
12335 fi
12336 ;;
12337
12338 haiku*)
12339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12340 link_all_deplibs=no
12341 ;;
12342
12343 os2*)
12344 hardcode_libdir_flag_spec='-L$libdir'
12345 hardcode_minus_L=yes
12346 allow_undefined_flag=unsupported
12347 shrext_cmds=.dll
12348 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12349 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12350 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12351 $ECHO EXPORTS >> $output_objdir/$libname.def~
12352 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12353 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12354 emximp -o $lib $output_objdir/$libname.def'
12355 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12356 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12357 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12358 $ECHO EXPORTS >> $output_objdir/$libname.def~
12359 prefix_cmds="$SED"~
12360 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12361 prefix_cmds="$prefix_cmds -e 1d";
12362 fi~
12363 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12364 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12365 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12366 emximp -o $lib $output_objdir/$libname.def'
12367 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12368 enable_shared_with_static_runtimes=yes
12369 file_list_spec='@'
12370 ;;
12371
12372 interix[3-9]*)
12373 hardcode_direct=no
12374 hardcode_shlibpath_var=no
12375 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12376 export_dynamic_flag_spec='$wl-E'
12377 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12378 # Instead, shared libraries are loaded at an image base (0x10000000 by
12379 # default) and relocated if they conflict, which is a slow very memory
12380 # consuming and fragmenting process. To avoid this, we pick a random,
12381 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12382 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12383 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12384 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'
12385 ;;
12386
12387 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12388 tmp_diet=no
12389 if test linux-dietlibc = "$host_os"; then
12390 case $cc_basename in
12391 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12392 esac
12393 fi
12394 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12395 && test no = "$tmp_diet"
12396 then
12397 tmp_addflag=' $pic_flag'
12398 tmp_sharedflag='-shared'
12399 case $cc_basename,$host_cpu in
12400 pgcc*) # Portland Group C compiler
12401 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'
12402 tmp_addflag=' $pic_flag'
12403 ;;
12404 pgf77* | pgf90* | pgf95* | pgfortran*)
12405 # Portland Group f77 and f90 compilers
12406 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'
12407 tmp_addflag=' $pic_flag -Mnomain' ;;
12408 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12409 tmp_addflag=' -i_dynamic' ;;
12410 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12411 tmp_addflag=' -i_dynamic -nofor_main' ;;
12412 ifc* | ifort*) # Intel Fortran compiler
12413 tmp_addflag=' -nofor_main' ;;
12414 lf95*) # Lahey Fortran 8.1
12415 whole_archive_flag_spec=
12416 tmp_sharedflag='--shared' ;;
12417 nagfor*) # NAGFOR 5.3
12418 tmp_sharedflag='-Wl,-shared' ;;
12419 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12420 tmp_sharedflag='-qmkshrobj'
12421 tmp_addflag= ;;
12422 nvcc*) # Cuda Compiler Driver 2.2
12423 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'
12424 compiler_needs_object=yes
12425 ;;
12426 esac
12427 case `$CC -V 2>&1 | $SED 5q` in
12428 *Sun\ C*) # Sun C 5.9
12429 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'
12430 compiler_needs_object=yes
12431 tmp_sharedflag='-G' ;;
12432 *Sun\ F*) # Sun Fortran 8.3
12433 tmp_sharedflag='-G' ;;
12434 esac
12435 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12436
12437 if test yes = "$supports_anon_versioning"; then
12438 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12439 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12440 echo "local: *; };" >> $output_objdir/$libname.ver~
12441 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12442 fi
12443
12444 case $cc_basename in
12445 tcc*)
12446 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12447 export_dynamic_flag_spec='-rdynamic'
12448 ;;
12449 xlf* | bgf* | bgxlf* | mpixlf*)
12450 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12451 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12452 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12453 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12454 if test yes = "$supports_anon_versioning"; then
12455 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12456 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12457 echo "local: *; };" >> $output_objdir/$libname.ver~
12458 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12459 fi
12460 ;;
12461 esac
12462 else
12463 ld_shlibs=no
12464 fi
12465 ;;
12466
12467 *-mlibc)
12468 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12469 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12470 ;;
12471
12472 netbsd* | netbsdelf*-gnu)
12473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12474 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12475 wlarc=
12476 else
12477 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12478 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12479 fi
12480 ;;
12481
12482 solaris*)
12483 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12484 ld_shlibs=no
12485 cat <<_LT_EOF 1>&2
12486
12487 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12488 *** create shared libraries on Solaris systems. Therefore, libtool
12489 *** is disabling shared libraries support. We urge you to upgrade GNU
12490 *** binutils to release 2.9.1 or newer. Another option is to modify
12491 *** your PATH or compiler configuration so that the native linker is
12492 *** used, and then restart.
12493
12494 _LT_EOF
12495 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12496 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12497 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12498 else
12499 ld_shlibs=no
12500 fi
12501 ;;
12502
12503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12504 case `$LD -v 2>&1` in
12505 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12506 ld_shlibs=no
12507 cat <<_LT_EOF 1>&2
12508
12509 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12510 *** reliably create shared libraries on SCO systems. Therefore, libtool
12511 *** is disabling shared libraries support. We urge you to upgrade GNU
12512 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12513 *** your PATH or compiler configuration so that the native linker is
12514 *** used, and then restart.
12515
12516 _LT_EOF
12517 ;;
12518 *)
12519 # For security reasons, it is highly recommended that you always
12520 # use absolute paths for naming shared libraries, and exclude the
12521 # DT_RUNPATH tag from executables and libraries. But doing so
12522 # requires that you compile everything twice, which is a pain.
12523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12524 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12526 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12527 else
12528 ld_shlibs=no
12529 fi
12530 ;;
12531 esac
12532 ;;
12533
12534 sunos4*)
12535 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12536 wlarc=
12537 hardcode_direct=yes
12538 hardcode_shlibpath_var=no
12539 ;;
12540
12541 *)
12542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12543 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12544 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12545 else
12546 ld_shlibs=no
12547 fi
12548 ;;
12549 esac
12550
12551 if test no = "$ld_shlibs"; then
12552 runpath_var=
12553 hardcode_libdir_flag_spec=
12554 export_dynamic_flag_spec=
12555 whole_archive_flag_spec=
12556 fi
12557 else
12558 # PORTME fill in a description of your system's linker (not GNU ld)
12559 case $host_os in
12560 aix3*)
12561 allow_undefined_flag=unsupported
12562 always_export_symbols=yes
12563 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'
12564 # Note: this linker hardcodes the directories in LIBPATH if there
12565 # are no directories specified by -L.
12566 hardcode_minus_L=yes
12567 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12568 # Neither direct hardcoding nor static linking is supported with a
12569 # broken collect2.
12570 hardcode_direct=unsupported
12571 fi
12572 ;;
12573
12574 aix[4-9]*)
12575 if test ia64 = "$host_cpu"; then
12576 # On IA64, the linker does run time linking by default, so we don't
12577 # have to do anything special.
12578 aix_use_runtimelinking=no
12579 exp_sym_flag='-Bexport'
12580 no_entry_flag=
12581 else
12582 # If we're using GNU nm, then we don't want the "-C" option.
12583 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12584 # Without the "-l" option, or with the "-B" option, AIX nm treats
12585 # weak defined symbols like other global defined symbols, whereas
12586 # GNU nm marks them as "W".
12587 # While the 'weak' keyword is ignored in the Export File, we need
12588 # it in the Import File for the 'aix-soname' feature, so we have
12589 # to replace the "-B" option with "-P" for AIX nm.
12590 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12591 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'
12592 else
12593 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12594 fi
12595 aix_use_runtimelinking=no
12596
12597 # Test if we are trying to use run time linking or normal
12598 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12599 # have runtime linking enabled, and use it for executables.
12600 # For shared libraries, we enable/disable runtime linking
12601 # depending on the kind of the shared library created -
12602 # when "with_aix_soname,aix_use_runtimelinking" is:
12603 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12604 # "aix,yes" lib.so shared, rtl:yes, for executables
12605 # lib.a static archive
12606 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12607 # lib.a(lib.so.V) shared, rtl:no, for executables
12608 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12609 # lib.a(lib.so.V) shared, rtl:no
12610 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12611 # lib.a static archive
12612 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12613 for ld_flag in $LDFLAGS; do
12614 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12615 aix_use_runtimelinking=yes
12616 break
12617 fi
12618 done
12619 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12620 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12621 # so we don't have lib.a shared libs to link our executables.
12622 # We have to force runtime linking in this case.
12623 aix_use_runtimelinking=yes
12624 LDFLAGS="$LDFLAGS -Wl,-brtl"
12625 fi
12626 ;;
12627 esac
12628
12629 exp_sym_flag='-bexport'
12630 no_entry_flag='-bnoentry'
12631 fi
12632
12633 # When large executables or shared objects are built, AIX ld can
12634 # have problems creating the table of contents. If linking a library
12635 # or program results in "error TOC overflow" add -mminimal-toc to
12636 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12637 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12638
12639 archive_cmds=''
12640 hardcode_direct=yes
12641 hardcode_direct_absolute=yes
12642 hardcode_libdir_separator=':'
12643 link_all_deplibs=yes
12644 file_list_spec='$wl-f,'
12645 case $with_aix_soname,$aix_use_runtimelinking in
12646 aix,*) ;; # traditional, no import file
12647 svr4,* | *,yes) # use import file
12648 # The Import File defines what to hardcode.
12649 hardcode_direct=no
12650 hardcode_direct_absolute=no
12651 ;;
12652 esac
12653
12654 if test yes = "$GCC"; then
12655 case $host_os in aix4.[012]|aix4.[012].*)
12656 # We only want to do this on AIX 4.2 and lower, the check
12657 # below for broken collect2 doesn't work under 4.3+
12658 collect2name=`$CC -print-prog-name=collect2`
12659 if test -f "$collect2name" &&
12660 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12661 then
12662 # We have reworked collect2
12663 :
12664 else
12665 # We have old collect2
12666 hardcode_direct=unsupported
12667 # It fails to find uninstalled libraries when the uninstalled
12668 # path is not listed in the libpath. Setting hardcode_minus_L
12669 # to unsupported forces relinking
12670 hardcode_minus_L=yes
12671 hardcode_libdir_flag_spec='-L$libdir'
12672 hardcode_libdir_separator=
12673 fi
12674 ;;
12675 esac
12676 shared_flag='-shared'
12677 if test yes = "$aix_use_runtimelinking"; then
12678 shared_flag="$shared_flag "'$wl-G'
12679 fi
12680 # Need to ensure runtime linking is disabled for the traditional
12681 # shared library, or the linker may eventually find shared libraries
12682 # /with/ Import File - we do not want to mix them.
12683 shared_flag_aix='-shared'
12684 shared_flag_svr4='-shared $wl-G'
12685 else
12686 # not using gcc
12687 if test ia64 = "$host_cpu"; then
12688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12689 # chokes on -Wl,-G. The following line is correct:
12690 shared_flag='-G'
12691 else
12692 if test yes = "$aix_use_runtimelinking"; then
12693 shared_flag='$wl-G'
12694 else
12695 shared_flag='$wl-bM:SRE'
12696 fi
12697 shared_flag_aix='$wl-bM:SRE'
12698 shared_flag_svr4='$wl-G'
12699 fi
12700 fi
12701
12702 export_dynamic_flag_spec='$wl-bexpall'
12703 # It seems that -bexpall does not export symbols beginning with
12704 # underscore (_), so it is better to generate a list of symbols to export.
12705 always_export_symbols=yes
12706 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12707 # Warning - without using the other runtime loading flags (-brtl),
12708 # -berok will link without error, but may produce a broken library.
12709 allow_undefined_flag='-berok'
12710 # Determine the default libpath from the value encoded in an
12711 # empty executable.
12712 if test set = "${lt_cv_aix_libpath+set}"; then
12713 aix_libpath=$lt_cv_aix_libpath
12714 else
12715 if test ${lt_cv_aix_libpath_+y}
12716 then :
12717 printf %s "(cached) " >&6
12718 else case e in #(
12719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h. */
12721
12722 int
12723 main (void)
12724 {
12725
12726 ;
12727 return 0;
12728 }
12729 _ACEOF
12730 if ac_fn_c_try_link "$LINENO"
12731 then :
12732
12733 lt_aix_libpath_sed='
12734 /Import File Strings/,/^$/ {
12735 /^0/ {
12736 s/^0 *\([^ ]*\) *$/\1/
12737 p
12738 }
12739 }'
12740 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12741 # Check for a 64-bit object if we didn't find anything.
12742 if test -z "$lt_cv_aix_libpath_"; then
12743 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12744 fi
12745 fi
12746 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12747 conftest$ac_exeext conftest.$ac_ext
12748 if test -z "$lt_cv_aix_libpath_"; then
12749 lt_cv_aix_libpath_=/usr/lib:/lib
12750 fi
12751 ;;
12752 esac
12753 fi
12754
12755 aix_libpath=$lt_cv_aix_libpath_
12756 fi
12757
12758 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12759 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
12760 else
12761 if test ia64 = "$host_cpu"; then
12762 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12763 allow_undefined_flag="-z nodefs"
12764 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"
12765 else
12766 # Determine the default libpath from the value encoded in an
12767 # empty executable.
12768 if test set = "${lt_cv_aix_libpath+set}"; then
12769 aix_libpath=$lt_cv_aix_libpath
12770 else
12771 if test ${lt_cv_aix_libpath_+y}
12772 then :
12773 printf %s "(cached) " >&6
12774 else case e in #(
12775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12776 /* end confdefs.h. */
12777
12778 int
12779 main (void)
12780 {
12781
12782 ;
12783 return 0;
12784 }
12785 _ACEOF
12786 if ac_fn_c_try_link "$LINENO"
12787 then :
12788
12789 lt_aix_libpath_sed='
12790 /Import File Strings/,/^$/ {
12791 /^0/ {
12792 s/^0 *\([^ ]*\) *$/\1/
12793 p
12794 }
12795 }'
12796 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12797 # Check for a 64-bit object if we didn't find anything.
12798 if test -z "$lt_cv_aix_libpath_"; then
12799 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12800 fi
12801 fi
12802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12803 conftest$ac_exeext conftest.$ac_ext
12804 if test -z "$lt_cv_aix_libpath_"; then
12805 lt_cv_aix_libpath_=/usr/lib:/lib
12806 fi
12807 ;;
12808 esac
12809 fi
12810
12811 aix_libpath=$lt_cv_aix_libpath_
12812 fi
12813
12814 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12815 # Warning - without using the other run time loading flags,
12816 # -berok will link without error, but may produce a broken library.
12817 no_undefined_flag=' $wl-bernotok'
12818 allow_undefined_flag=' $wl-berok'
12819 if test yes = "$with_gnu_ld"; then
12820 # We only use this code for GNU lds that support --whole-archive.
12821 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12822 else
12823 # Exported symbols can be pulled into shared objects from archives
12824 whole_archive_flag_spec='$convenience'
12825 fi
12826 archive_cmds_need_lc=yes
12827 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12828 # -brtl affects multiple linker settings, -berok does not and is overridden later
12829 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12830 if test svr4 != "$with_aix_soname"; then
12831 # This is similar to how AIX traditionally builds its shared libraries.
12832 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'
12833 fi
12834 if test aix != "$with_aix_soname"; then
12835 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'
12836 else
12837 # used by -dlpreopen to get the symbols
12838 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12839 fi
12840 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12841 fi
12842 fi
12843 ;;
12844
12845 amigaos*)
12846 case $host_cpu in
12847 powerpc)
12848 # see comment about AmigaOS4 .so support
12849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12850 archive_expsym_cmds=''
12851 ;;
12852 m68k)
12853 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)'
12854 hardcode_libdir_flag_spec='-L$libdir'
12855 hardcode_minus_L=yes
12856 ;;
12857 esac
12858 ;;
12859
12860 bsdi[45]*)
12861 export_dynamic_flag_spec=-rdynamic
12862 ;;
12863
12864 cygwin* | mingw* | windows* | pw32* | cegcc*)
12865 # When not using gcc, we currently assume that we are using
12866 # Microsoft Visual C++ or Intel C++ Compiler.
12867 # hardcode_libdir_flag_spec is actually meaningless, as there is
12868 # no search path for DLLs.
12869 case $cc_basename in
12870 cl* | icl*)
12871 # Native MSVC or ICC
12872 hardcode_libdir_flag_spec=' '
12873 allow_undefined_flag=unsupported
12874 always_export_symbols=yes
12875 file_list_spec='@'
12876 # Tell ltmain to make .lib files, not .a files.
12877 libext=lib
12878 # Tell ltmain to make .dll files, not .so files.
12879 shrext_cmds=.dll
12880 # FIXME: Setting linknames here is a bad hack.
12881 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12882 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12883 cp "$export_symbols" "$output_objdir/$soname.def";
12884 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12885 else
12886 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12887 fi~
12888 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12889 linknames='
12890 # The linker will not automatically build a static lib if we build a DLL.
12891 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12892 enable_shared_with_static_runtimes=yes
12893 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12894 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12895 # Don't use ranlib
12896 old_postinstall_cmds='chmod 644 $oldlib'
12897 postlink_cmds='lt_outputfile="@OUTPUT@"~
12898 lt_tool_outputfile="@TOOL_OUTPUT@"~
12899 case $lt_outputfile in
12900 *.exe|*.EXE) ;;
12901 *)
12902 lt_outputfile=$lt_outputfile.exe
12903 lt_tool_outputfile=$lt_tool_outputfile.exe
12904 ;;
12905 esac~
12906 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12907 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12908 $RM "$lt_outputfile.manifest";
12909 fi'
12910 ;;
12911 *)
12912 # Assume MSVC and ICC wrapper
12913 hardcode_libdir_flag_spec=' '
12914 allow_undefined_flag=unsupported
12915 # Tell ltmain to make .lib files, not .a files.
12916 libext=lib
12917 # Tell ltmain to make .dll files, not .so files.
12918 shrext_cmds=.dll
12919 # FIXME: Setting linknames here is a bad hack.
12920 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12921 # The linker will automatically build a .lib file if we build a DLL.
12922 old_archive_from_new_cmds='true'
12923 # FIXME: Should let the user specify the lib program.
12924 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12925 enable_shared_with_static_runtimes=yes
12926 ;;
12927 esac
12928 ;;
12929
12930 darwin* | rhapsody*)
12931
12932
12933 archive_cmds_need_lc=no
12934 hardcode_direct=no
12935 hardcode_automatic=yes
12936 hardcode_shlibpath_var=unsupported
12937 if test yes = "$lt_cv_ld_force_load"; then
12938 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\"`'
12939
12940 else
12941 whole_archive_flag_spec=''
12942 fi
12943 link_all_deplibs=yes
12944 allow_undefined_flag=$_lt_dar_allow_undefined
12945 case $cc_basename in
12946 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
12947 *) _lt_dar_can_shared=$GCC ;;
12948 esac
12949 if test yes = "$_lt_dar_can_shared"; then
12950 output_verbose_link_cmd=func_echo_all
12951 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
12952 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
12953 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"
12954 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"
12955
12956 else
12957 ld_shlibs=no
12958 fi
12959
12960 ;;
12961
12962 dgux*)
12963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12964 hardcode_libdir_flag_spec='-L$libdir'
12965 hardcode_shlibpath_var=no
12966 ;;
12967
12968 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12969 # support. Future versions do this automatically, but an explicit c++rt0.o
12970 # does not break anything, and helps significantly (at the cost of a little
12971 # extra space).
12972 freebsd2.2*)
12973 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12974 hardcode_libdir_flag_spec='-R$libdir'
12975 hardcode_direct=yes
12976 hardcode_shlibpath_var=no
12977 ;;
12978
12979 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12980 freebsd2.*)
12981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12982 hardcode_direct=yes
12983 hardcode_minus_L=yes
12984 hardcode_shlibpath_var=no
12985 ;;
12986
12987 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12988 freebsd* | dragonfly* | midnightbsd*)
12989 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12990 hardcode_libdir_flag_spec='-R$libdir'
12991 hardcode_direct=yes
12992 hardcode_shlibpath_var=no
12993 ;;
12994
12995 hpux9*)
12996 if test yes = "$GCC"; then
12997 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'
12998 else
12999 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'
13000 fi
13001 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13002 hardcode_libdir_separator=:
13003 hardcode_direct=yes
13004
13005 # hardcode_minus_L: Not really in the search PATH,
13006 # but as the default location of the library.
13007 hardcode_minus_L=yes
13008 export_dynamic_flag_spec='$wl-E'
13009 ;;
13010
13011 hpux10*)
13012 if test yes,no = "$GCC,$with_gnu_ld"; then
13013 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13014 else
13015 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13016 fi
13017 if test no = "$with_gnu_ld"; then
13018 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13019 hardcode_libdir_separator=:
13020 hardcode_direct=yes
13021 hardcode_direct_absolute=yes
13022 export_dynamic_flag_spec='$wl-E'
13023 # hardcode_minus_L: Not really in the search PATH,
13024 # but as the default location of the library.
13025 hardcode_minus_L=yes
13026 fi
13027 ;;
13028
13029 hpux11*)
13030 if test yes,no = "$GCC,$with_gnu_ld"; then
13031 case $host_cpu in
13032 hppa*64*)
13033 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13034 ;;
13035 ia64*)
13036 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13037 ;;
13038 *)
13039 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13040 ;;
13041 esac
13042 else
13043 case $host_cpu in
13044 hppa*64*)
13045 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13046 ;;
13047 ia64*)
13048 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13049 ;;
13050 *)
13051
13052 # Older versions of the 11.00 compiler do not understand -b yet
13053 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13055 printf %s "checking if $CC understands -b... " >&6; }
13056 if test ${lt_cv_prog_compiler__b+y}
13057 then :
13058 printf %s "(cached) " >&6
13059 else case e in #(
13060 e) lt_cv_prog_compiler__b=no
13061 save_LDFLAGS=$LDFLAGS
13062 LDFLAGS="$LDFLAGS -b"
13063 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13064 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13065 # The linker can only warn and ignore the option if not recognized
13066 # So say no if there are warnings
13067 if test -s conftest.err; then
13068 # Append any errors to the config.log.
13069 cat conftest.err 1>&5
13070 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13072 if diff conftest.exp conftest.er2 >/dev/null; then
13073 lt_cv_prog_compiler__b=yes
13074 fi
13075 else
13076 lt_cv_prog_compiler__b=yes
13077 fi
13078 fi
13079 $RM -r conftest*
13080 LDFLAGS=$save_LDFLAGS
13081 ;;
13082 esac
13083 fi
13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13085 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
13086
13087 if test yes = "$lt_cv_prog_compiler__b"; then
13088 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13089 else
13090 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13091 fi
13092
13093 ;;
13094 esac
13095 fi
13096 if test no = "$with_gnu_ld"; then
13097 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13098 hardcode_libdir_separator=:
13099
13100 case $host_cpu in
13101 hppa*64*|ia64*)
13102 hardcode_direct=no
13103 hardcode_shlibpath_var=no
13104 ;;
13105 *)
13106 hardcode_direct=yes
13107 hardcode_direct_absolute=yes
13108 export_dynamic_flag_spec='$wl-E'
13109
13110 # hardcode_minus_L: Not really in the search PATH,
13111 # but as the default location of the library.
13112 hardcode_minus_L=yes
13113 ;;
13114 esac
13115 fi
13116 ;;
13117
13118 irix5* | irix6* | nonstopux*)
13119 if test yes = "$GCC"; then
13120 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'
13121 # Try to use the -exported_symbol ld option, if it does not
13122 # work, assume that -exports_file does not work either and
13123 # implicitly export all symbols.
13124 # This should be the same for all languages, so no per-tag cache variable.
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13126 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13127 if test ${lt_cv_irix_exported_symbol+y}
13128 then :
13129 printf %s "(cached) " >&6
13130 else case e in #(
13131 e) save_LDFLAGS=$LDFLAGS
13132 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13134 /* end confdefs.h. */
13135 int foo (void) { return 0; }
13136 _ACEOF
13137 if ac_fn_c_try_link "$LINENO"
13138 then :
13139 lt_cv_irix_exported_symbol=yes
13140 else case e in #(
13141 e) lt_cv_irix_exported_symbol=no ;;
13142 esac
13143 fi
13144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13145 conftest$ac_exeext conftest.$ac_ext
13146 LDFLAGS=$save_LDFLAGS ;;
13147 esac
13148 fi
13149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13150 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
13151 if test yes = "$lt_cv_irix_exported_symbol"; then
13152 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'
13153 fi
13154 else
13155 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'
13156 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'
13157 fi
13158 archive_cmds_need_lc='no'
13159 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13160 hardcode_libdir_separator=:
13161 inherit_rpath=yes
13162 link_all_deplibs=yes
13163 ;;
13164
13165 linux*)
13166 case $cc_basename in
13167 tcc*)
13168 # Fabrice Bellard et al's Tiny C Compiler
13169 ld_shlibs=yes
13170 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13171 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13172 ;;
13173 esac
13174 ;;
13175
13176 *-mlibc)
13177 ;;
13178
13179 netbsd* | netbsdelf*-gnu)
13180 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13181 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13182 else
13183 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13184 fi
13185 hardcode_libdir_flag_spec='-R$libdir'
13186 hardcode_direct=yes
13187 hardcode_shlibpath_var=no
13188 ;;
13189
13190 newsos6)
13191 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13192 hardcode_direct=yes
13193 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13194 hardcode_libdir_separator=:
13195 hardcode_shlibpath_var=no
13196 ;;
13197
13198 *nto* | *qnx*)
13199 ;;
13200
13201 openbsd*)
13202 if test -f /usr/libexec/ld.so; then
13203 hardcode_direct=yes
13204 hardcode_shlibpath_var=no
13205 hardcode_direct_absolute=yes
13206 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13207 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13208 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13209 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13210 export_dynamic_flag_spec='$wl-E'
13211 else
13212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13213 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13214 fi
13215 else
13216 ld_shlibs=no
13217 fi
13218 ;;
13219
13220 os2*)
13221 hardcode_libdir_flag_spec='-L$libdir'
13222 hardcode_minus_L=yes
13223 allow_undefined_flag=unsupported
13224 shrext_cmds=.dll
13225 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13226 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13227 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13228 $ECHO EXPORTS >> $output_objdir/$libname.def~
13229 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13230 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13231 emximp -o $lib $output_objdir/$libname.def'
13232 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13233 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13234 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13235 $ECHO EXPORTS >> $output_objdir/$libname.def~
13236 prefix_cmds="$SED"~
13237 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13238 prefix_cmds="$prefix_cmds -e 1d";
13239 fi~
13240 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13241 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13242 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13243 emximp -o $lib $output_objdir/$libname.def'
13244 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13245 enable_shared_with_static_runtimes=yes
13246 file_list_spec='@'
13247 ;;
13248
13249 osf3*)
13250 if test yes = "$GCC"; then
13251 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13252 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'
13253 else
13254 allow_undefined_flag=' -expect_unresolved \*'
13255 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'
13256 fi
13257 archive_cmds_need_lc='no'
13258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13259 hardcode_libdir_separator=:
13260 ;;
13261
13262 osf4* | osf5*) # as osf3* with the addition of -msym flag
13263 if test yes = "$GCC"; then
13264 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13265 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'
13266 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13267 else
13268 allow_undefined_flag=' -expect_unresolved \*'
13269 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'
13270 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~
13271 $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'
13272
13273 # Both c and cxx compiler support -rpath directly
13274 hardcode_libdir_flag_spec='-rpath $libdir'
13275 fi
13276 archive_cmds_need_lc='no'
13277 hardcode_libdir_separator=:
13278 ;;
13279
13280 serenity*)
13281 ;;
13282
13283 solaris*)
13284 no_undefined_flag=' -z defs'
13285 if test yes = "$GCC"; then
13286 wlarc='$wl'
13287 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13288 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13289 $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'
13290 else
13291 case `$CC -V 2>&1` in
13292 *"Compilers 5.0"*)
13293 wlarc=''
13294 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13295 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13296 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13297 ;;
13298 *)
13299 wlarc='$wl'
13300 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13301 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13302 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13303 ;;
13304 esac
13305 fi
13306 hardcode_libdir_flag_spec='-R$libdir'
13307 hardcode_shlibpath_var=no
13308 case $host_os in
13309 solaris2.[0-5] | solaris2.[0-5].*) ;;
13310 *)
13311 # The compiler driver will combine and reorder linker options,
13312 # but understands '-z linker_flag'. GCC discards it without '$wl',
13313 # but is careful enough not to reorder.
13314 # Supported since Solaris 2.6 (maybe 2.5.1?)
13315 if test yes = "$GCC"; then
13316 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13317 else
13318 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13319 fi
13320 ;;
13321 esac
13322 link_all_deplibs=yes
13323 ;;
13324
13325 sunos4*)
13326 if test sequent = "$host_vendor"; then
13327 # Use $CC to link under sequent, because it throws in some extra .o
13328 # files that make .init and .fini sections work.
13329 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13330 else
13331 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13332 fi
13333 hardcode_libdir_flag_spec='-L$libdir'
13334 hardcode_direct=yes
13335 hardcode_minus_L=yes
13336 hardcode_shlibpath_var=no
13337 ;;
13338
13339 sysv4)
13340 case $host_vendor in
13341 sni)
13342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13343 hardcode_direct=yes # is this really true???
13344 ;;
13345 siemens)
13346 ## LD is ld it makes a PLAMLIB
13347 ## CC just makes a GrossModule.
13348 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13349 reload_cmds='$CC -r -o $output$reload_objs'
13350 hardcode_direct=no
13351 ;;
13352 motorola)
13353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13354 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13355 ;;
13356 esac
13357 runpath_var='LD_RUN_PATH'
13358 hardcode_shlibpath_var=no
13359 ;;
13360
13361 sysv4.3*)
13362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13363 hardcode_shlibpath_var=no
13364 export_dynamic_flag_spec='-Bexport'
13365 ;;
13366
13367 sysv4*MP*)
13368 if test -d /usr/nec; then
13369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13370 hardcode_shlibpath_var=no
13371 runpath_var=LD_RUN_PATH
13372 hardcode_runpath_var=yes
13373 ld_shlibs=yes
13374 fi
13375 ;;
13376
13377 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13378 no_undefined_flag='$wl-z,text'
13379 archive_cmds_need_lc=no
13380 hardcode_shlibpath_var=no
13381 runpath_var='LD_RUN_PATH'
13382
13383 if test yes = "$GCC"; then
13384 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13385 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13386 else
13387 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13388 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13389 fi
13390 ;;
13391
13392 sysv5* | sco3.2v5* | sco5v6*)
13393 # Note: We CANNOT use -z defs as we might desire, because we do not
13394 # link with -lc, and that would cause any symbols used from libc to
13395 # always be unresolved, which means just about no library would
13396 # ever link correctly. If we're not using GNU ld we use -z text
13397 # though, which does catch some bad symbols but isn't as heavy-handed
13398 # as -z defs.
13399 no_undefined_flag='$wl-z,text'
13400 allow_undefined_flag='$wl-z,nodefs'
13401 archive_cmds_need_lc=no
13402 hardcode_shlibpath_var=no
13403 hardcode_libdir_flag_spec='$wl-R,$libdir'
13404 hardcode_libdir_separator=':'
13405 link_all_deplibs=yes
13406 export_dynamic_flag_spec='$wl-Bexport'
13407 runpath_var='LD_RUN_PATH'
13408
13409 if test yes = "$GCC"; then
13410 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13411 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13412 else
13413 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13414 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13415 fi
13416 ;;
13417
13418 uts4*)
13419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13420 hardcode_libdir_flag_spec='-L$libdir'
13421 hardcode_shlibpath_var=no
13422 ;;
13423
13424 *)
13425 ld_shlibs=no
13426 ;;
13427 esac
13428
13429 if test sni = "$host_vendor"; then
13430 case $host in
13431 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13432 export_dynamic_flag_spec='$wl-Blargedynsym'
13433 ;;
13434 esac
13435 fi
13436 fi
13437
13438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13439 printf "%s\n" "$ld_shlibs" >&6; }
13440 test no = "$ld_shlibs" && can_build_shared=no
13441
13442 with_gnu_ld=$with_gnu_ld
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458 #
13459 # Do we need to explicitly link libc?
13460 #
13461 case "x$archive_cmds_need_lc" in
13462 x|xyes)
13463 # Assume -lc should be added
13464 archive_cmds_need_lc=yes
13465
13466 if test yes,yes = "$GCC,$enable_shared"; then
13467 case $archive_cmds in
13468 *'~'*)
13469 # FIXME: we may have to deal with multi-command sequences.
13470 ;;
13471 '$CC '*)
13472 # Test whether the compiler implicitly links with -lc since on some
13473 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13474 # to ld, don't add -lc before -lgcc.
13475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13476 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
13477 if test ${lt_cv_archive_cmds_need_lc+y}
13478 then :
13479 printf %s "(cached) " >&6
13480 else case e in #(
13481 e) $RM conftest*
13482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13483
13484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13485 (eval $ac_compile) 2>&5
13486 ac_status=$?
13487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13488 test $ac_status = 0; } 2>conftest.err; then
13489 soname=conftest
13490 lib=conftest
13491 libobjs=conftest.$ac_objext
13492 deplibs=
13493 wl=$lt_prog_compiler_wl
13494 pic_flag=$lt_prog_compiler_pic
13495 compiler_flags=-v
13496 linker_flags=-v
13497 verstring=
13498 output_objdir=.
13499 libname=conftest
13500 lt_save_allow_undefined_flag=$allow_undefined_flag
13501 allow_undefined_flag=
13502 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13503 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13504 ac_status=$?
13505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13506 test $ac_status = 0; }
13507 then
13508 lt_cv_archive_cmds_need_lc=no
13509 else
13510 lt_cv_archive_cmds_need_lc=yes
13511 fi
13512 allow_undefined_flag=$lt_save_allow_undefined_flag
13513 else
13514 cat conftest.err 1>&5
13515 fi
13516 $RM conftest*
13517 ;;
13518 esac
13519 fi
13520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13521 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
13522 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13523 ;;
13524 esac
13525 fi
13526 ;;
13527 esac
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13681 printf %s "checking dynamic linker characteristics... " >&6; }
13682
13683 if test yes = "$GCC"; then
13684 case $host_os in
13685 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13686 *) lt_awk_arg='/^libraries:/' ;;
13687 esac
13688 case $host_os in
13689 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13690 *) lt_sed_strip_eq='s|=/|/|g' ;;
13691 esac
13692 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13693 case $lt_search_path_spec in
13694 *\;*)
13695 # if the path contains ";" then we assume it to be the separator
13696 # otherwise default to the standard path separator (i.e. ":") - it is
13697 # assumed that no part of a normal pathname contains ";" but that should
13698 # okay in the real world where ";" in dirpaths is itself problematic.
13699 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13700 ;;
13701 *)
13702 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13703 ;;
13704 esac
13705 # Ok, now we have the path, separated by spaces, we can step through it
13706 # and add multilib dir if necessary...
13707 lt_tmp_lt_search_path_spec=
13708 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13709 # ...but if some path component already ends with the multilib dir we assume
13710 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13711 case "$lt_multi_os_dir; $lt_search_path_spec " in
13712 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13713 lt_multi_os_dir=
13714 ;;
13715 esac
13716 for lt_sys_path in $lt_search_path_spec; do
13717 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13718 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13719 elif test -n "$lt_multi_os_dir"; then
13720 test -d "$lt_sys_path" && \
13721 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13722 fi
13723 done
13724 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13725 BEGIN {RS = " "; FS = "/|\n";} {
13726 lt_foo = "";
13727 lt_count = 0;
13728 for (lt_i = NF; lt_i > 0; lt_i--) {
13729 if ($lt_i != "" && $lt_i != ".") {
13730 if ($lt_i == "..") {
13731 lt_count++;
13732 } else {
13733 if (lt_count == 0) {
13734 lt_foo = "/" $lt_i lt_foo;
13735 } else {
13736 lt_count--;
13737 }
13738 }
13739 }
13740 }
13741 if (lt_foo != "") { lt_freq[lt_foo]++; }
13742 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13743 }'`
13744 # AWK program above erroneously prepends '/' to C:/dos/paths
13745 # for these hosts.
13746 case $host_os in
13747 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13748 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13749 esac
13750 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13751 else
13752 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13753 fi
13754 library_names_spec=
13755 libname_spec='lib$name'
13756 soname_spec=
13757 shrext_cmds=.so
13758 postinstall_cmds=
13759 postuninstall_cmds=
13760 finish_cmds=
13761 finish_eval=
13762 shlibpath_var=
13763 shlibpath_overrides_runpath=unknown
13764 version_type=none
13765 dynamic_linker="$host_os ld.so"
13766 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13767 need_lib_prefix=unknown
13768 hardcode_into_libs=no
13769
13770 # when you set need_version to no, make sure it does not cause -set_version
13771 # flags to be left without arguments
13772 need_version=unknown
13773
13774
13775
13776 case $host_os in
13777 aix3*)
13778 version_type=linux # correct to gnu/linux during the next big refactor
13779 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13780 shlibpath_var=LIBPATH
13781
13782 # AIX 3 has no versioning support, so we append a major version to the name.
13783 soname_spec='$libname$release$shared_ext$major'
13784 ;;
13785
13786 aix[4-9]*)
13787 version_type=linux # correct to gnu/linux during the next big refactor
13788 need_lib_prefix=no
13789 need_version=no
13790 hardcode_into_libs=yes
13791 if test ia64 = "$host_cpu"; then
13792 # AIX 5 supports IA64
13793 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13794 shlibpath_var=LD_LIBRARY_PATH
13795 else
13796 # With GCC up to 2.95.x, collect2 would create an import file
13797 # for dependence libraries. The import file would start with
13798 # the line '#! .'. This would cause the generated library to
13799 # depend on '.', always an invalid library. This was fixed in
13800 # development snapshots of GCC prior to 3.0.
13801 case $host_os in
13802 aix4 | aix4.[01] | aix4.[01].*)
13803 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13804 echo ' yes '
13805 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13806 :
13807 else
13808 can_build_shared=no
13809 fi
13810 ;;
13811 esac
13812 # Using Import Files as archive members, it is possible to support
13813 # filename-based versioning of shared library archives on AIX. While
13814 # this would work for both with and without runtime linking, it will
13815 # prevent static linking of such archives. So we do filename-based
13816 # shared library versioning with .so extension only, which is used
13817 # when both runtime linking and shared linking is enabled.
13818 # Unfortunately, runtime linking may impact performance, so we do
13819 # not want this to be the default eventually. Also, we use the
13820 # versioned .so libs for executables only if there is the -brtl
13821 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
13822 # To allow for filename-based versioning support, we need to create
13823 # libNAME.so.V as an archive file, containing:
13824 # *) an Import File, referring to the versioned filename of the
13825 # archive as well as the shared archive member, telling the
13826 # bitwidth (32 or 64) of that shared object, and providing the
13827 # list of exported symbols of that shared object, eventually
13828 # decorated with the 'weak' keyword
13829 # *) the shared object with the F_LOADONLY flag set, to really avoid
13830 # it being seen by the linker.
13831 # At run time we better use the real file rather than another symlink,
13832 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13833
13834 case $with_aix_soname,$aix_use_runtimelinking in
13835 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13836 # soname into executable. Probably we can add versioning support to
13837 # collect2, so additional links can be useful in future.
13838 aix,yes) # traditional libtool
13839 dynamic_linker='AIX unversionable lib.so'
13840 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13841 # instead of lib<name>.a to let people know that these are not
13842 # typical AIX shared libraries.
13843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13844 ;;
13845 aix,no) # traditional AIX only
13846 dynamic_linker='AIX lib.a(lib.so.V)'
13847 # We preserve .a as extension for shared libraries through AIX4.2
13848 # and later when we are not doing run time linking.
13849 library_names_spec='$libname$release.a $libname.a'
13850 soname_spec='$libname$release$shared_ext$major'
13851 ;;
13852 svr4,*) # full svr4 only
13853 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13854 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13855 # We do not specify a path in Import Files, so LIBPATH fires.
13856 shlibpath_overrides_runpath=yes
13857 ;;
13858 *,yes) # both, prefer svr4
13859 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13860 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13861 # unpreferred sharedlib libNAME.a needs extra handling
13862 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"'
13863 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"'
13864 # We do not specify a path in Import Files, so LIBPATH fires.
13865 shlibpath_overrides_runpath=yes
13866 ;;
13867 *,no) # both, prefer aix
13868 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13869 library_names_spec='$libname$release.a $libname.a'
13870 soname_spec='$libname$release$shared_ext$major'
13871 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13872 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)'
13873 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"'
13874 ;;
13875 esac
13876 shlibpath_var=LIBPATH
13877 fi
13878 ;;
13879
13880 amigaos*)
13881 case $host_cpu in
13882 powerpc)
13883 # Since July 2007 AmigaOS4 officially supports .so libraries.
13884 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13886 ;;
13887 m68k)
13888 library_names_spec='$libname.ixlibrary $libname.a'
13889 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13890 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'
13891 ;;
13892 esac
13893 ;;
13894
13895 beos*)
13896 library_names_spec='$libname$shared_ext'
13897 dynamic_linker="$host_os ld.so"
13898 shlibpath_var=LIBRARY_PATH
13899 ;;
13900
13901 bsdi[45]*)
13902 version_type=linux # correct to gnu/linux during the next big refactor
13903 need_version=no
13904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13905 soname_spec='$libname$release$shared_ext$major'
13906 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13909 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13910 # the default ld.so.conf also contains /usr/contrib/lib and
13911 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13912 # libtool to hard-code these into programs
13913 ;;
13914
13915 cygwin* | mingw* | windows* | pw32* | cegcc*)
13916 version_type=windows
13917 shrext_cmds=.dll
13918 need_version=no
13919 need_lib_prefix=no
13920
13921 case $GCC,$cc_basename in
13922 yes,*)
13923 # gcc
13924 library_names_spec='$libname.dll.a'
13925 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13926 # If user builds GCC with multilib enabled,
13927 # it should just install on $(libdir)
13928 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
13929 if test xyes = x"$multilib"; then
13930 postinstall_cmds='base_file=`basename \$file`~
13931 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13932 dldir=$destdir/`dirname \$dlpath`~
13933 $install_prog $dir/$dlname $destdir/$dlname~
13934 chmod a+x $destdir/$dlname~
13935 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13936 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
13937 fi'
13938 else
13939 postinstall_cmds='base_file=`basename \$file`~
13940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13941 dldir=$destdir/`dirname \$dlpath`~
13942 test -d \$dldir || mkdir -p \$dldir~
13943 $install_prog $dir/$dlname \$dldir/$dlname~
13944 chmod a+x \$dldir/$dlname~
13945 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13946 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13947 fi'
13948 fi
13949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13950 dlpath=$dir/\$dldll~
13951 $RM \$dlpath'
13952 shlibpath_overrides_runpath=yes
13953
13954 case $host_os in
13955 cygwin*)
13956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13957 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13958
13959 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13960 ;;
13961 mingw* | windows* | cegcc*)
13962 # MinGW DLLs use traditional 'lib' prefix
13963 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13964 ;;
13965 pw32*)
13966 # pw32 DLLs use 'pw' prefix rather than 'lib'
13967 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13968 ;;
13969 esac
13970 dynamic_linker='Win32 ld.exe'
13971 ;;
13972
13973 *,cl* | *,icl*)
13974 # Native MSVC or ICC
13975 libname_spec='$name'
13976 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13977 library_names_spec='$libname.dll.lib'
13978
13979 case $build_os in
13980 mingw* | windows*)
13981 sys_lib_search_path_spec=
13982 lt_save_ifs=$IFS
13983 IFS=';'
13984 for lt_path in $LIB
13985 do
13986 IFS=$lt_save_ifs
13987 # Let DOS variable expansion print the short 8.3 style file name.
13988 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13989 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13990 done
13991 IFS=$lt_save_ifs
13992 # Convert to MSYS style.
13993 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13994 ;;
13995 cygwin*)
13996 # Convert to unix form, then to dos form, then back to unix form
13997 # but this time dos style (no spaces!) so that the unix form looks
13998 # like /cygdrive/c/PROGRA~1:/cygdr...
13999 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14000 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14001 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14002 ;;
14003 *)
14004 sys_lib_search_path_spec=$LIB
14005 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14006 # It is most probably a Windows format PATH.
14007 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14008 else
14009 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14010 fi
14011 # FIXME: find the short name or the path components, as spaces are
14012 # common. (e.g. "Program Files" -> "PROGRA~1")
14013 ;;
14014 esac
14015
14016 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14017 postinstall_cmds='base_file=`basename \$file`~
14018 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14019 dldir=$destdir/`dirname \$dlpath`~
14020 test -d \$dldir || mkdir -p \$dldir~
14021 $install_prog $dir/$dlname \$dldir/$dlname'
14022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14023 dlpath=$dir/\$dldll~
14024 $RM \$dlpath'
14025 shlibpath_overrides_runpath=yes
14026 dynamic_linker='Win32 link.exe'
14027 ;;
14028
14029 *)
14030 # Assume MSVC and ICC wrapper
14031 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14032 dynamic_linker='Win32 ld.exe'
14033 ;;
14034 esac
14035 # FIXME: first we should search . and the directory the executable is in
14036 shlibpath_var=PATH
14037 ;;
14038
14039 darwin* | rhapsody*)
14040 dynamic_linker="$host_os dyld"
14041 version_type=darwin
14042 need_lib_prefix=no
14043 need_version=no
14044 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14045 soname_spec='$libname$release$major$shared_ext'
14046 shlibpath_overrides_runpath=yes
14047 shlibpath_var=DYLD_LIBRARY_PATH
14048 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14049
14050 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14051 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14052 ;;
14053
14054 dgux*)
14055 version_type=linux # correct to gnu/linux during the next big refactor
14056 need_lib_prefix=no
14057 need_version=no
14058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14059 soname_spec='$libname$release$shared_ext$major'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 ;;
14062
14063 freebsd* | dragonfly* | midnightbsd*)
14064 # DragonFly does not have aout. When/if they implement a new
14065 # versioning mechanism, adjust this.
14066 if test -x /usr/bin/objformat; then
14067 objformat=`/usr/bin/objformat`
14068 else
14069 case $host_os in
14070 freebsd[23].*) objformat=aout ;;
14071 *) objformat=elf ;;
14072 esac
14073 fi
14074 version_type=freebsd-$objformat
14075 case $version_type in
14076 freebsd-elf*)
14077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14078 soname_spec='$libname$release$shared_ext$major'
14079 need_version=no
14080 need_lib_prefix=no
14081 ;;
14082 freebsd-*)
14083 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14084 need_version=yes
14085 ;;
14086 esac
14087 case $host_cpu in
14088 powerpc64)
14089 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
14090 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092 /* end confdefs.h. */
14093 int test_pointer_size[sizeof (void *) - 5];
14094
14095 _ACEOF
14096 if ac_fn_c_try_compile "$LINENO"
14097 then :
14098 shlibpath_var=LD_LIBRARY_PATH
14099 else case e in #(
14100 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
14101 esac
14102 fi
14103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14104 ;;
14105 *)
14106 shlibpath_var=LD_LIBRARY_PATH
14107 ;;
14108 esac
14109 case $host_os in
14110 freebsd2.*)
14111 shlibpath_overrides_runpath=yes
14112 ;;
14113 freebsd3.[01]* | freebsdelf3.[01]*)
14114 shlibpath_overrides_runpath=yes
14115 hardcode_into_libs=yes
14116 ;;
14117 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14118 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14119 shlibpath_overrides_runpath=no
14120 hardcode_into_libs=yes
14121 ;;
14122 *) # from 4.6 on, and DragonFly
14123 shlibpath_overrides_runpath=yes
14124 hardcode_into_libs=yes
14125 ;;
14126 esac
14127 ;;
14128
14129 haiku*)
14130 version_type=linux # correct to gnu/linux during the next big refactor
14131 need_lib_prefix=no
14132 need_version=no
14133 dynamic_linker="$host_os runtime_loader"
14134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14135 soname_spec='$libname$release$shared_ext$major'
14136 shlibpath_var=LIBRARY_PATH
14137 shlibpath_overrides_runpath=no
14138 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
14139 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
14140 hardcode_into_libs=no
14141 ;;
14142
14143 hpux9* | hpux10* | hpux11*)
14144 # Give a soname corresponding to the major version so that dld.sl refuses to
14145 # link against other versions.
14146 version_type=sunos
14147 need_lib_prefix=no
14148 need_version=no
14149 case $host_cpu in
14150 ia64*)
14151 shrext_cmds='.so'
14152 hardcode_into_libs=yes
14153 dynamic_linker="$host_os dld.so"
14154 shlibpath_var=LD_LIBRARY_PATH
14155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14156 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14157 soname_spec='$libname$release$shared_ext$major'
14158 if test 32 = "$HPUX_IA64_MODE"; then
14159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14160 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14161 else
14162 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14163 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14164 fi
14165 ;;
14166 hppa*64*)
14167 shrext_cmds='.sl'
14168 hardcode_into_libs=yes
14169 dynamic_linker="$host_os dld.sl"
14170 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14173 soname_spec='$libname$release$shared_ext$major'
14174 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14176 ;;
14177 *)
14178 shrext_cmds='.sl'
14179 dynamic_linker="$host_os dld.sl"
14180 shlibpath_var=SHLIB_PATH
14181 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14182 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14183 soname_spec='$libname$release$shared_ext$major'
14184 ;;
14185 esac
14186 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14187 postinstall_cmds='chmod 555 $lib'
14188 # or fails outright, so override atomically:
14189 install_override_mode=555
14190 ;;
14191
14192 interix[3-9]*)
14193 version_type=linux # correct to gnu/linux during the next big refactor
14194 need_lib_prefix=no
14195 need_version=no
14196 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14197 soname_spec='$libname$release$shared_ext$major'
14198 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14199 shlibpath_var=LD_LIBRARY_PATH
14200 shlibpath_overrides_runpath=no
14201 hardcode_into_libs=yes
14202 ;;
14203
14204 irix5* | irix6* | nonstopux*)
14205 case $host_os in
14206 nonstopux*) version_type=nonstopux ;;
14207 *)
14208 if test yes = "$lt_cv_prog_gnu_ld"; then
14209 version_type=linux # correct to gnu/linux during the next big refactor
14210 else
14211 version_type=irix
14212 fi ;;
14213 esac
14214 need_lib_prefix=no
14215 need_version=no
14216 soname_spec='$libname$release$shared_ext$major'
14217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14218 case $host_os in
14219 irix5* | nonstopux*)
14220 libsuff= shlibsuff=
14221 ;;
14222 *)
14223 case $LD in # libtool.m4 will add one of these switches to LD
14224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14225 libsuff= shlibsuff= libmagic=32-bit;;
14226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14227 libsuff=32 shlibsuff=N32 libmagic=N32;;
14228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14230 *) libsuff= shlibsuff= libmagic=never-match;;
14231 esac
14232 ;;
14233 esac
14234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14235 shlibpath_overrides_runpath=no
14236 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14237 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14238 hardcode_into_libs=yes
14239 ;;
14240
14241 # No shared lib support for Linux oldld, aout, or coff.
14242 linux*oldld* | linux*aout* | linux*coff*)
14243 dynamic_linker=no
14244 ;;
14245
14246 linux*android*)
14247 version_type=none # Android doesn't support versioned libraries.
14248 need_lib_prefix=no
14249 need_version=no
14250 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
14251 soname_spec='$libname$release$shared_ext'
14252 finish_cmds=
14253 shlibpath_var=LD_LIBRARY_PATH
14254 shlibpath_overrides_runpath=yes
14255
14256 # This implies no fast_install, which is unacceptable.
14257 # Some rework will be needed to allow for fast_install
14258 # before this can be enabled.
14259 hardcode_into_libs=yes
14260
14261 dynamic_linker='Android linker'
14262 # -rpath works at least for libraries that are not overridden by
14263 # libraries installed in system locations.
14264 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14265 ;;
14266
14267 # This must be glibc/ELF.
14268 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14269 version_type=linux # correct to gnu/linux during the next big refactor
14270 need_lib_prefix=no
14271 need_version=no
14272 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14273 soname_spec='$libname$release$shared_ext$major'
14274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14275 shlibpath_var=LD_LIBRARY_PATH
14276 shlibpath_overrides_runpath=no
14277
14278 # Some binutils ld are patched to set DT_RUNPATH
14279 if test ${lt_cv_shlibpath_overrides_runpath+y}
14280 then :
14281 printf %s "(cached) " >&6
14282 else case e in #(
14283 e) lt_cv_shlibpath_overrides_runpath=no
14284 save_LDFLAGS=$LDFLAGS
14285 save_libdir=$libdir
14286 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14287 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290
14291 int
14292 main (void)
14293 {
14294
14295 ;
14296 return 0;
14297 }
14298 _ACEOF
14299 if ac_fn_c_try_link "$LINENO"
14300 then :
14301 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
14302 then :
14303 lt_cv_shlibpath_overrides_runpath=yes
14304 fi
14305 fi
14306 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LDFLAGS=$save_LDFLAGS
14309 libdir=$save_libdir
14310 ;;
14311 esac
14312 fi
14313
14314 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14315
14316 # This implies no fast_install, which is unacceptable.
14317 # Some rework will be needed to allow for fast_install
14318 # before this can be enabled.
14319 hardcode_into_libs=yes
14320
14321 # Add ABI-specific directories to the system library path.
14322 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14323
14324 # Ideally, we could use ldconfig to report *all* directories which are
14325 # searched for libraries, however this is still not possible. Aside from not
14326 # being certain /sbin/ldconfig is available, command
14327 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14328 # even though it is searched at run-time. Try to do the best guess by
14329 # appending ld.so.conf contents (and includes) to the search path.
14330 if test -f /etc/ld.so.conf; then
14331 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' ' '`
14332 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14333 fi
14334
14335 # We used to test for /lib/ld.so.1 and disable shared libraries on
14336 # powerpc, because MkLinux only supported shared libraries with the
14337 # GNU dynamic linker. Since this was broken with cross compilers,
14338 # most powerpc-linux boxes support dynamic linking these days and
14339 # people can always --disable-shared, the test was removed, and we
14340 # assume the GNU/Linux dynamic linker is in use.
14341 dynamic_linker='GNU/Linux ld.so'
14342 ;;
14343
14344 netbsdelf*-gnu)
14345 version_type=linux
14346 need_lib_prefix=no
14347 need_version=no
14348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14349 soname_spec='$libname$release$shared_ext$major'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 shlibpath_overrides_runpath=no
14352 hardcode_into_libs=yes
14353 dynamic_linker='NetBSD ld.elf_so'
14354 ;;
14355
14356 netbsd*)
14357 version_type=sunos
14358 need_lib_prefix=no
14359 need_version=no
14360 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14361 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14363 dynamic_linker='NetBSD (a.out) ld.so'
14364 else
14365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14366 soname_spec='$libname$release$shared_ext$major'
14367 dynamic_linker='NetBSD ld.elf_so'
14368 fi
14369 shlibpath_var=LD_LIBRARY_PATH
14370 shlibpath_overrides_runpath=yes
14371 hardcode_into_libs=yes
14372 ;;
14373
14374 *-mlibc)
14375 version_type=linux # correct to gnu/linux during the next big refactor
14376 need_lib_prefix=no
14377 need_version=no
14378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14379 soname_spec='$libname$release$shared_ext$major'
14380 dynamic_linker='mlibc ld.so'
14381 shlibpath_var=LD_LIBRARY_PATH
14382 shlibpath_overrides_runpath=no
14383 hardcode_into_libs=yes
14384 ;;
14385
14386 newsos6)
14387 version_type=linux # correct to gnu/linux during the next big refactor
14388 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14389 shlibpath_var=LD_LIBRARY_PATH
14390 shlibpath_overrides_runpath=yes
14391 ;;
14392
14393 *nto* | *qnx*)
14394 version_type=qnx
14395 need_lib_prefix=no
14396 need_version=no
14397 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14398 soname_spec='$libname$release$shared_ext$major'
14399 shlibpath_var=LD_LIBRARY_PATH
14400 shlibpath_overrides_runpath=no
14401 hardcode_into_libs=yes
14402 dynamic_linker='ldqnx.so'
14403 ;;
14404
14405 openbsd*)
14406 version_type=sunos
14407 sys_lib_dlsearch_path_spec=/usr/lib
14408 need_lib_prefix=no
14409 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14410 need_version=no
14411 else
14412 need_version=yes
14413 fi
14414 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14416 shlibpath_var=LD_LIBRARY_PATH
14417 shlibpath_overrides_runpath=yes
14418 ;;
14419
14420 os2*)
14421 libname_spec='$name'
14422 version_type=windows
14423 shrext_cmds=.dll
14424 need_version=no
14425 need_lib_prefix=no
14426 # OS/2 can only load a DLL with a base name of 8 characters or less.
14427 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14428 v=$($ECHO $release$versuffix | tr -d .-);
14429 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14430 $ECHO $n$v`$shared_ext'
14431 library_names_spec='${libname}_dll.$libext'
14432 dynamic_linker='OS/2 ld.exe'
14433 shlibpath_var=BEGINLIBPATH
14434 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14435 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14436 postinstall_cmds='base_file=`basename \$file`~
14437 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14438 dldir=$destdir/`dirname \$dlpath`~
14439 test -d \$dldir || mkdir -p \$dldir~
14440 $install_prog $dir/$dlname \$dldir/$dlname~
14441 chmod a+x \$dldir/$dlname~
14442 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14443 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14444 fi'
14445 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14446 dlpath=$dir/\$dldll~
14447 $RM \$dlpath'
14448 ;;
14449
14450 osf3* | osf4* | osf5*)
14451 version_type=osf
14452 need_lib_prefix=no
14453 need_version=no
14454 soname_spec='$libname$release$shared_ext$major'
14455 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14456 shlibpath_var=LD_LIBRARY_PATH
14457 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14458 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14459 ;;
14460
14461 rdos*)
14462 dynamic_linker=no
14463 ;;
14464
14465 serenity*)
14466 version_type=linux # correct to gnu/linux during the next big refactor
14467 need_lib_prefix=no
14468 need_version=no
14469 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14470 soname_spec='$libname$release$shared_ext$major'
14471 shlibpath_var=LD_LIBRARY_PATH
14472 shlibpath_overrides_runpath=no
14473 dynamic_linker='SerenityOS LibELF'
14474 ;;
14475
14476 solaris*)
14477 version_type=linux # correct to gnu/linux during the next big refactor
14478 need_lib_prefix=no
14479 need_version=no
14480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14481 soname_spec='$libname$release$shared_ext$major'
14482 shlibpath_var=LD_LIBRARY_PATH
14483 shlibpath_overrides_runpath=yes
14484 hardcode_into_libs=yes
14485 # ldd complains unless libraries are executable
14486 postinstall_cmds='chmod +x $lib'
14487 ;;
14488
14489 sunos4*)
14490 version_type=sunos
14491 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14492 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 shlibpath_overrides_runpath=yes
14495 if test yes = "$with_gnu_ld"; then
14496 need_lib_prefix=no
14497 fi
14498 need_version=yes
14499 ;;
14500
14501 sysv4 | sysv4.3*)
14502 version_type=linux # correct to gnu/linux during the next big refactor
14503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14504 soname_spec='$libname$release$shared_ext$major'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 case $host_vendor in
14507 sni)
14508 shlibpath_overrides_runpath=no
14509 need_lib_prefix=no
14510 runpath_var=LD_RUN_PATH
14511 ;;
14512 siemens)
14513 need_lib_prefix=no
14514 ;;
14515 motorola)
14516 need_lib_prefix=no
14517 need_version=no
14518 shlibpath_overrides_runpath=no
14519 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14520 ;;
14521 esac
14522 ;;
14523
14524 sysv4*MP*)
14525 if test -d /usr/nec; then
14526 version_type=linux # correct to gnu/linux during the next big refactor
14527 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14528 soname_spec='$libname$shared_ext.$major'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 fi
14531 ;;
14532
14533 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14534 version_type=sco
14535 need_lib_prefix=no
14536 need_version=no
14537 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14538 soname_spec='$libname$release$shared_ext$major'
14539 shlibpath_var=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath=yes
14541 hardcode_into_libs=yes
14542 if test yes = "$with_gnu_ld"; then
14543 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14544 else
14545 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14546 case $host_os in
14547 sco3.2v5*)
14548 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14549 ;;
14550 esac
14551 fi
14552 sys_lib_dlsearch_path_spec='/usr/lib'
14553 ;;
14554
14555 tpf*)
14556 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14557 version_type=linux # correct to gnu/linux during the next big refactor
14558 need_lib_prefix=no
14559 need_version=no
14560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14561 shlibpath_var=LD_LIBRARY_PATH
14562 shlibpath_overrides_runpath=no
14563 hardcode_into_libs=yes
14564 ;;
14565
14566 uts4*)
14567 version_type=linux # correct to gnu/linux during the next big refactor
14568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14569 soname_spec='$libname$release$shared_ext$major'
14570 shlibpath_var=LD_LIBRARY_PATH
14571 ;;
14572
14573 emscripten*)
14574 version_type=none
14575 need_lib_prefix=no
14576 need_version=no
14577 library_names_spec='$libname$release$shared_ext'
14578 soname_spec='$libname$release$shared_ext'
14579 finish_cmds=
14580 dynamic_linker="Emscripten linker"
14581 lt_prog_compiler_wl=
14582 lt_prog_compiler_pic=
14583 lt_prog_compiler_static=
14584
14585
14586 if test yes = "$GCC"; then
14587 lt_prog_compiler_wl='-Wl,'
14588 lt_prog_compiler_static='-static'
14589
14590 case $host_os in
14591 aix*)
14592 # All AIX code is PIC.
14593 if test ia64 = "$host_cpu"; then
14594 # AIX 5 now supports IA64 processor
14595 lt_prog_compiler_static='-Bstatic'
14596 fi
14597 lt_prog_compiler_pic='-fPIC'
14598 ;;
14599
14600 amigaos*)
14601 case $host_cpu in
14602 powerpc)
14603 # see comment about AmigaOS4 .so support
14604 lt_prog_compiler_pic='-fPIC'
14605 ;;
14606 m68k)
14607 # FIXME: we need at least 68020 code to build shared libraries, but
14608 # adding the '-m68020' flag to GCC prevents building anything better,
14609 # like '-m68040'.
14610 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14611 ;;
14612 esac
14613 ;;
14614
14615 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14616 # PIC is the default for these OSes.
14617 ;;
14618
14619 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14620 # This hack is so that the source file can tell whether it is being
14621 # built for inclusion in a dll (and should export symbols for example).
14622 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14623 # (--disable-auto-import) libraries
14624 lt_prog_compiler_pic='-DDLL_EXPORT'
14625 case $host_os in
14626 os2*)
14627 lt_prog_compiler_static='$wl-static'
14628 ;;
14629 esac
14630 ;;
14631
14632 darwin* | rhapsody*)
14633 # PIC is the default on this platform
14634 # Common symbols not allowed in MH_DYLIB files
14635 lt_prog_compiler_pic='-fno-common'
14636 ;;
14637
14638 haiku*)
14639 # PIC is the default for Haiku.
14640 # The "-static" flag exists, but is broken.
14641 lt_prog_compiler_static=
14642 ;;
14643
14644 hpux*)
14645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14647 # sets the default TLS model and affects inlining.
14648 case $host_cpu in
14649 hppa*64*)
14650 # +Z the default
14651 ;;
14652 *)
14653 lt_prog_compiler_pic='-fPIC'
14654 ;;
14655 esac
14656 ;;
14657
14658 interix[3-9]*)
14659 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14660 # Instead, we relocate shared libraries at runtime.
14661 ;;
14662
14663 msdosdjgpp*)
14664 # Just because we use GCC doesn't mean we suddenly get shared libraries
14665 # on systems that don't support them.
14666 lt_prog_compiler_can_build_shared=no
14667 enable_shared=no
14668 ;;
14669
14670 *nto* | *qnx*)
14671 # QNX uses GNU C++, but need to define -shared option too, otherwise
14672 # it will coredump.
14673 lt_prog_compiler_pic='-fPIC -shared'
14674 ;;
14675
14676 sysv4*MP*)
14677 if test -d /usr/nec; then
14678 lt_prog_compiler_pic=-Kconform_pic
14679 fi
14680 ;;
14681
14682 *)
14683 lt_prog_compiler_pic='-fPIC'
14684 ;;
14685 esac
14686
14687 case $cc_basename in
14688 nvcc*) # Cuda Compiler Driver 2.2
14689 lt_prog_compiler_wl='-Xlinker '
14690 if test -n "$lt_prog_compiler_pic"; then
14691 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14692 fi
14693 ;;
14694 esac
14695 else
14696 # PORTME Check for flag to pass linker flags through the system compiler.
14697 case $host_os in
14698 aix*)
14699 lt_prog_compiler_wl='-Wl,'
14700 if test ia64 = "$host_cpu"; then
14701 # AIX 5 now supports IA64 processor
14702 lt_prog_compiler_static='-Bstatic'
14703 else
14704 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14705 fi
14706 ;;
14707
14708 darwin* | rhapsody*)
14709 # PIC is the default on this platform
14710 # Common symbols not allowed in MH_DYLIB files
14711 lt_prog_compiler_pic='-fno-common'
14712 case $cc_basename in
14713 nagfor*)
14714 # NAG Fortran compiler
14715 lt_prog_compiler_wl='-Wl,-Wl,,'
14716 lt_prog_compiler_pic='-PIC'
14717 lt_prog_compiler_static='-Bstatic'
14718 ;;
14719 esac
14720 ;;
14721
14722 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
14723 # This hack is so that the source file can tell whether it is being
14724 # built for inclusion in a dll (and should export symbols for example).
14725 lt_prog_compiler_pic='-DDLL_EXPORT'
14726 case $host_os in
14727 os2*)
14728 lt_prog_compiler_static='$wl-static'
14729 ;;
14730 esac
14731 ;;
14732
14733 hpux9* | hpux10* | hpux11*)
14734 lt_prog_compiler_wl='-Wl,'
14735 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14736 # not for PA HP-UX.
14737 case $host_cpu in
14738 hppa*64*|ia64*)
14739 # +Z the default
14740 ;;
14741 *)
14742 lt_prog_compiler_pic='+Z'
14743 ;;
14744 esac
14745 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14746 lt_prog_compiler_static='$wl-a ${wl}archive'
14747 ;;
14748
14749 irix5* | irix6* | nonstopux*)
14750 lt_prog_compiler_wl='-Wl,'
14751 # PIC (with -KPIC) is the default.
14752 lt_prog_compiler_static='-non_shared'
14753 ;;
14754
14755 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14756 case $cc_basename in
14757 # old Intel for x86_64, which still supported -KPIC.
14758 ecc*)
14759 lt_prog_compiler_wl='-Wl,'
14760 lt_prog_compiler_pic='-KPIC'
14761 lt_prog_compiler_static='-static'
14762 ;;
14763 *flang* | ftn | f18* | f95*)
14764 # Flang compiler.
14765 lt_prog_compiler_wl='-Wl,'
14766 lt_prog_compiler_pic='-fPIC'
14767 lt_prog_compiler_static='-static'
14768 ;;
14769 # icc used to be incompatible with GCC.
14770 # ICC 10 doesn't accept -KPIC any more.
14771 icc* | ifort*)
14772 lt_prog_compiler_wl='-Wl,'
14773 lt_prog_compiler_pic='-fPIC'
14774 lt_prog_compiler_static='-static'
14775 ;;
14776 # Lahey Fortran 8.1.
14777 lf95*)
14778 lt_prog_compiler_wl='-Wl,'
14779 lt_prog_compiler_pic='--shared'
14780 lt_prog_compiler_static='--static'
14781 ;;
14782 nagfor*)
14783 # NAG Fortran compiler
14784 lt_prog_compiler_wl='-Wl,-Wl,,'
14785 lt_prog_compiler_pic='-PIC'
14786 lt_prog_compiler_static='-Bstatic'
14787 ;;
14788 tcc*)
14789 # Fabrice Bellard et al's Tiny C Compiler
14790 lt_prog_compiler_wl='-Wl,'
14791 lt_prog_compiler_pic='-fPIC'
14792 lt_prog_compiler_static='-static'
14793 ;;
14794 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
14795 # Portland Group compilers (*not* the Pentium gcc compiler,
14796 # which looks to be a dead project)
14797 lt_prog_compiler_wl='-Wl,'
14798 lt_prog_compiler_pic='-fpic'
14799 lt_prog_compiler_static='-Bstatic'
14800 ;;
14801 ccc*)
14802 lt_prog_compiler_wl='-Wl,'
14803 # All Alpha code is PIC.
14804 lt_prog_compiler_static='-non_shared'
14805 ;;
14806 xl* | bgxl* | bgf* | mpixl*)
14807 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
14808 lt_prog_compiler_wl='-Wl,'
14809 lt_prog_compiler_pic='-qpic'
14810 lt_prog_compiler_static='-qstaticlink'
14811 ;;
14812 *)
14813 case `$CC -V 2>&1 | $SED 5q` in
14814 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
14815 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14816 lt_prog_compiler_pic='-KPIC'
14817 lt_prog_compiler_static='-Bstatic'
14818 lt_prog_compiler_wl=''
14819 ;;
14820 *Sun\ F* | *Sun*Fortran*)
14821 lt_prog_compiler_pic='-KPIC'
14822 lt_prog_compiler_static='-Bstatic'
14823 lt_prog_compiler_wl='-Qoption ld '
14824 ;;
14825 *Sun\ C*)
14826 # Sun C 5.9
14827 lt_prog_compiler_pic='-KPIC'
14828 lt_prog_compiler_static='-Bstatic'
14829 lt_prog_compiler_wl='-Wl,'
14830 ;;
14831 *Intel*\ [CF]*Compiler*)
14832 lt_prog_compiler_wl='-Wl,'
14833 lt_prog_compiler_pic='-fPIC'
14834 lt_prog_compiler_static='-static'
14835 ;;
14836 *Portland\ Group*)
14837 lt_prog_compiler_wl='-Wl,'
14838 lt_prog_compiler_pic='-fpic'
14839 lt_prog_compiler_static='-Bstatic'
14840 ;;
14841 esac
14842 ;;
14843 esac
14844 ;;
14845
14846 newsos6)
14847 lt_prog_compiler_pic='-KPIC'
14848 lt_prog_compiler_static='-Bstatic'
14849 ;;
14850
14851 *-mlibc)
14852 lt_prog_compiler_wl='-Wl,'
14853 lt_prog_compiler_pic='-fPIC'
14854 lt_prog_compiler_static='-static'
14855 ;;
14856
14857 *nto* | *qnx*)
14858 # QNX uses GNU C++, but need to define -shared option too, otherwise
14859 # it will coredump.
14860 lt_prog_compiler_pic='-fPIC -shared'
14861 ;;
14862
14863 osf3* | osf4* | osf5*)
14864 lt_prog_compiler_wl='-Wl,'
14865 # All OSF/1 code is PIC.
14866 lt_prog_compiler_static='-non_shared'
14867 ;;
14868
14869 rdos*)
14870 lt_prog_compiler_static='-non_shared'
14871 ;;
14872
14873 serenity*)
14874 ;;
14875
14876 solaris*)
14877 lt_prog_compiler_pic='-KPIC'
14878 lt_prog_compiler_static='-Bstatic'
14879 case $cc_basename in
14880 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
14881 lt_prog_compiler_wl='-Qoption ld ';;
14882 *)
14883 lt_prog_compiler_wl='-Wl,';;
14884 esac
14885 ;;
14886
14887 sunos4*)
14888 lt_prog_compiler_wl='-Qoption ld '
14889 lt_prog_compiler_pic='-PIC'
14890 lt_prog_compiler_static='-Bstatic'
14891 ;;
14892
14893 sysv4 | sysv4.2uw2* | sysv4.3*)
14894 lt_prog_compiler_wl='-Wl,'
14895 lt_prog_compiler_pic='-KPIC'
14896 lt_prog_compiler_static='-Bstatic'
14897 ;;
14898
14899 sysv4*MP*)
14900 if test -d /usr/nec; then
14901 lt_prog_compiler_pic='-Kconform_pic'
14902 lt_prog_compiler_static='-Bstatic'
14903 fi
14904 ;;
14905
14906 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14907 lt_prog_compiler_wl='-Wl,'
14908 lt_prog_compiler_pic='-KPIC'
14909 lt_prog_compiler_static='-Bstatic'
14910 ;;
14911
14912 unicos*)
14913 lt_prog_compiler_wl='-Wl,'
14914 lt_prog_compiler_can_build_shared=no
14915 ;;
14916
14917 uts4*)
14918 lt_prog_compiler_pic='-pic'
14919 lt_prog_compiler_static='-Bstatic'
14920 ;;
14921
14922 *)
14923 lt_prog_compiler_can_build_shared=no
14924 ;;
14925 esac
14926 fi
14927
14928 case $host_os in
14929 # For platforms that do not support PIC, -DPIC is meaningless:
14930 *djgpp*)
14931 lt_prog_compiler_pic=
14932 ;;
14933 *)
14934 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14935 ;;
14936 esac
14937
14938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14939 printf %s "checking for $compiler option to produce PIC... " >&6; }
14940 if test ${lt_cv_prog_compiler_pic+y}
14941 then :
14942 printf %s "(cached) " >&6
14943 else case e in #(
14944 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
14945 esac
14946 fi
14947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14948 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
14949 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
14950
14951 #
14952 # Check to make sure the PIC flag actually works.
14953 #
14954 if test -n "$lt_prog_compiler_pic"; then
14955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14956 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
14957 if test ${lt_cv_prog_compiler_pic_works+y}
14958 then :
14959 printf %s "(cached) " >&6
14960 else case e in #(
14961 e) lt_cv_prog_compiler_pic_works=no
14962 ac_outfile=conftest.$ac_objext
14963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14964 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
14965 # Insert the option either (1) after the last *FLAGS variable, or
14966 # (2) before a word containing "conftest.", or (3) at the end.
14967 # Note that $ac_compile itself does not contain backslashes and begins
14968 # with a dollar sign (not a hyphen), so the echo should work correctly.
14969 # The option is referenced via a variable to avoid confusing sed.
14970 lt_compile=`echo "$ac_compile" | $SED \
14971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14973 -e 's:$: $lt_compiler_flag:'`
14974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14975 (eval "$lt_compile" 2>conftest.err)
14976 ac_status=$?
14977 cat conftest.err >&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 if (exit $ac_status) && test -s "$ac_outfile"; then
14980 # The compiler can only warn and ignore the option if not recognized
14981 # So say no if there are warnings other than the usual output.
14982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14985 lt_cv_prog_compiler_pic_works=yes
14986 fi
14987 fi
14988 $RM conftest*
14989 ;;
14990 esac
14991 fi
14992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14993 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
14994
14995 if test yes = "$lt_cv_prog_compiler_pic_works"; then
14996 case $lt_prog_compiler_pic in
14997 "" | " "*) ;;
14998 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14999 esac
15000 else
15001 lt_prog_compiler_pic=
15002 lt_prog_compiler_can_build_shared=no
15003 fi
15004
15005 fi
15006
15007
15008
15009
15010
15011 #
15012 # Check to make sure the static flag actually works.
15013 #
15014 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15016 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15017 if test ${lt_cv_prog_compiler_static_works+y}
15018 then :
15019 printf %s "(cached) " >&6
15020 else case e in #(
15021 e) lt_cv_prog_compiler_static_works=no
15022 save_LDFLAGS=$LDFLAGS
15023 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15024 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15026 # The linker can only warn and ignore the option if not recognized
15027 # So say no if there are warnings
15028 if test -s conftest.err; then
15029 # Append any errors to the config.log.
15030 cat conftest.err 1>&5
15031 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15033 if diff conftest.exp conftest.er2 >/dev/null; then
15034 lt_cv_prog_compiler_static_works=yes
15035 fi
15036 else
15037 lt_cv_prog_compiler_static_works=yes
15038 fi
15039 fi
15040 $RM -r conftest*
15041 LDFLAGS=$save_LDFLAGS
15042 ;;
15043 esac
15044 fi
15045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15046 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
15047
15048 if test yes = "$lt_cv_prog_compiler_static_works"; then
15049 :
15050 else
15051 lt_prog_compiler_static=
15052 fi
15053
15054
15055
15056 ='-fPIC'
15057 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
15058 archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
15059 archive_cmds_need_lc=no
15060 no_undefined_flag=
15061 ;;
15062
15063 *)
15064 dynamic_linker=no
15065 ;;
15066 esac
15067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15068 printf "%s\n" "$dynamic_linker" >&6; }
15069 test no = "$dynamic_linker" && can_build_shared=no
15070
15071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15072 if test yes = "$GCC"; then
15073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15074 fi
15075
15076 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15077 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15078 fi
15079
15080 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15081 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15082 fi
15083
15084 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15085 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15086
15087 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15088 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15089
15090 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15091 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15190 printf %s "checking how to hardcode library paths into programs... " >&6; }
15191 hardcode_action=
15192 if test -n "$hardcode_libdir_flag_spec" ||
15193 test -n "$runpath_var" ||
15194 test yes = "$hardcode_automatic"; then
15195
15196 # We can hardcode non-existent directories.
15197 if test no != "$hardcode_direct" &&
15198 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15199 # have to relink, otherwise we might link with an installed library
15200 # when we should be linking with a yet-to-be-installed one
15201 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15202 test no != "$hardcode_minus_L"; then
15203 # Linking always hardcodes the temporary library directory.
15204 hardcode_action=relink
15205 else
15206 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15207 hardcode_action=immediate
15208 fi
15209 else
15210 # We cannot hardcode anything, or else we can only hardcode existing
15211 # directories.
15212 hardcode_action=unsupported
15213 fi
15214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15215 printf "%s\n" "$hardcode_action" >&6; }
15216
15217 if test relink = "$hardcode_action" ||
15218 test yes = "$inherit_rpath"; then
15219 # Fast installation is not supported
15220 enable_fast_install=no
15221 elif test yes = "$shlibpath_overrides_runpath" ||
15222 test no = "$enable_shared"; then
15223 # Fast installation is not necessary
15224 enable_fast_install=needless
15225 fi
15226
15227
15228
15229
15230
15231
15232 if test yes != "$enable_dlopen"; then
15233 enable_dlopen=unknown
15234 enable_dlopen_self=unknown
15235 enable_dlopen_self_static=unknown
15236 else
15237 lt_cv_dlopen=no
15238 lt_cv_dlopen_libs=
15239
15240 case $host_os in
15241 beos*)
15242 lt_cv_dlopen=load_add_on
15243 lt_cv_dlopen_libs=
15244 lt_cv_dlopen_self=yes
15245 ;;
15246
15247 mingw* | windows* | pw32* | cegcc*)
15248 lt_cv_dlopen=LoadLibrary
15249 lt_cv_dlopen_libs=
15250 ;;
15251
15252 cygwin*)
15253 lt_cv_dlopen=dlopen
15254 lt_cv_dlopen_libs=
15255 ;;
15256
15257 darwin*)
15258 # if libdl is installed we need to link against it
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15260 printf %s "checking for dlopen in -ldl... " >&6; }
15261 if test ${ac_cv_lib_dl_dlopen+y}
15262 then :
15263 printf %s "(cached) " >&6
15264 else case e in #(
15265 e) ac_check_lib_save_LIBS=$LIBS
15266 LIBS="-ldl $LIBS"
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h. */
15269
15270 /* Override any GCC internal prototype to avoid an error.
15271 Use char because int might match the return type of a GCC
15272 builtin and then its argument prototype would still apply.
15273 The 'extern "C"' is for builds by C++ compilers;
15274 although this is not generally supported in C code supporting it here
15275 has little cost and some practical benefit (sr 110532). */
15276 #ifdef __cplusplus
15277 extern "C"
15278 #endif
15279 char dlopen (void);
15280 int
15281 main (void)
15282 {
15283 return dlopen ();
15284 ;
15285 return 0;
15286 }
15287 _ACEOF
15288 if ac_fn_c_try_link "$LINENO"
15289 then :
15290 ac_cv_lib_dl_dlopen=yes
15291 else case e in #(
15292 e) ac_cv_lib_dl_dlopen=no ;;
15293 esac
15294 fi
15295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15296 conftest$ac_exeext conftest.$ac_ext
15297 LIBS=$ac_check_lib_save_LIBS ;;
15298 esac
15299 fi
15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15301 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15302 if test "x$ac_cv_lib_dl_dlopen" = xyes
15303 then :
15304 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15305 else case e in #(
15306 e)
15307 lt_cv_dlopen=dyld
15308 lt_cv_dlopen_libs=
15309 lt_cv_dlopen_self=yes
15310 ;;
15311 esac
15312 fi
15313
15314 ;;
15315
15316 tpf*)
15317 # Don't try to run any link tests for TPF. We know it's impossible
15318 # because TPF is a cross-compiler, and we know how we open DSOs.
15319 lt_cv_dlopen=dlopen
15320 lt_cv_dlopen_libs=
15321 lt_cv_dlopen_self=no
15322 ;;
15323
15324 *)
15325 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15326 if test "x$ac_cv_func_shl_load" = xyes
15327 then :
15328 lt_cv_dlopen=shl_load
15329 else case e in #(
15330 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15331 printf %s "checking for shl_load in -ldld... " >&6; }
15332 if test ${ac_cv_lib_dld_shl_load+y}
15333 then :
15334 printf %s "(cached) " >&6
15335 else case e in #(
15336 e) ac_check_lib_save_LIBS=$LIBS
15337 LIBS="-ldld $LIBS"
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340
15341 /* Override any GCC internal prototype to avoid an error.
15342 Use char because int might match the return type of a GCC
15343 builtin and then its argument prototype would still apply.
15344 The 'extern "C"' is for builds by C++ compilers;
15345 although this is not generally supported in C code supporting it here
15346 has little cost and some practical benefit (sr 110532). */
15347 #ifdef __cplusplus
15348 extern "C"
15349 #endif
15350 char shl_load (void);
15351 int
15352 main (void)
15353 {
15354 return shl_load ();
15355 ;
15356 return 0;
15357 }
15358 _ACEOF
15359 if ac_fn_c_try_link "$LINENO"
15360 then :
15361 ac_cv_lib_dld_shl_load=yes
15362 else case e in #(
15363 e) ac_cv_lib_dld_shl_load=no ;;
15364 esac
15365 fi
15366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15367 conftest$ac_exeext conftest.$ac_ext
15368 LIBS=$ac_check_lib_save_LIBS ;;
15369 esac
15370 fi
15371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15372 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15373 if test "x$ac_cv_lib_dld_shl_load" = xyes
15374 then :
15375 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15376 else case e in #(
15377 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15378 if test "x$ac_cv_func_dlopen" = xyes
15379 then :
15380 lt_cv_dlopen=dlopen
15381 else case e in #(
15382 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15383 printf %s "checking for dlopen in -ldl... " >&6; }
15384 if test ${ac_cv_lib_dl_dlopen+y}
15385 then :
15386 printf %s "(cached) " >&6
15387 else case e in #(
15388 e) ac_check_lib_save_LIBS=$LIBS
15389 LIBS="-ldl $LIBS"
15390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392
15393 /* Override any GCC internal prototype to avoid an error.
15394 Use char because int might match the return type of a GCC
15395 builtin and then its argument prototype would still apply.
15396 The 'extern "C"' is for builds by C++ compilers;
15397 although this is not generally supported in C code supporting it here
15398 has little cost and some practical benefit (sr 110532). */
15399 #ifdef __cplusplus
15400 extern "C"
15401 #endif
15402 char dlopen (void);
15403 int
15404 main (void)
15405 {
15406 return dlopen ();
15407 ;
15408 return 0;
15409 }
15410 _ACEOF
15411 if ac_fn_c_try_link "$LINENO"
15412 then :
15413 ac_cv_lib_dl_dlopen=yes
15414 else case e in #(
15415 e) ac_cv_lib_dl_dlopen=no ;;
15416 esac
15417 fi
15418 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15419 conftest$ac_exeext conftest.$ac_ext
15420 LIBS=$ac_check_lib_save_LIBS ;;
15421 esac
15422 fi
15423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15424 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15425 if test "x$ac_cv_lib_dl_dlopen" = xyes
15426 then :
15427 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15428 else case e in #(
15429 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15430 printf %s "checking for dlopen in -lsvld... " >&6; }
15431 if test ${ac_cv_lib_svld_dlopen+y}
15432 then :
15433 printf %s "(cached) " >&6
15434 else case e in #(
15435 e) ac_check_lib_save_LIBS=$LIBS
15436 LIBS="-lsvld $LIBS"
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15439
15440 /* Override any GCC internal prototype to avoid an error.
15441 Use char because int might match the return type of a GCC
15442 builtin and then its argument prototype would still apply.
15443 The 'extern "C"' is for builds by C++ compilers;
15444 although this is not generally supported in C code supporting it here
15445 has little cost and some practical benefit (sr 110532). */
15446 #ifdef __cplusplus
15447 extern "C"
15448 #endif
15449 char dlopen (void);
15450 int
15451 main (void)
15452 {
15453 return dlopen ();
15454 ;
15455 return 0;
15456 }
15457 _ACEOF
15458 if ac_fn_c_try_link "$LINENO"
15459 then :
15460 ac_cv_lib_svld_dlopen=yes
15461 else case e in #(
15462 e) ac_cv_lib_svld_dlopen=no ;;
15463 esac
15464 fi
15465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15466 conftest$ac_exeext conftest.$ac_ext
15467 LIBS=$ac_check_lib_save_LIBS ;;
15468 esac
15469 fi
15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15471 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15472 if test "x$ac_cv_lib_svld_dlopen" = xyes
15473 then :
15474 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15475 else case e in #(
15476 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15477 printf %s "checking for dld_link in -ldld... " >&6; }
15478 if test ${ac_cv_lib_dld_dld_link+y}
15479 then :
15480 printf %s "(cached) " >&6
15481 else case e in #(
15482 e) ac_check_lib_save_LIBS=$LIBS
15483 LIBS="-ldld $LIBS"
15484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15485 /* end confdefs.h. */
15486
15487 /* Override any GCC internal prototype to avoid an error.
15488 Use char because int might match the return type of a GCC
15489 builtin and then its argument prototype would still apply.
15490 The 'extern "C"' is for builds by C++ compilers;
15491 although this is not generally supported in C code supporting it here
15492 has little cost and some practical benefit (sr 110532). */
15493 #ifdef __cplusplus
15494 extern "C"
15495 #endif
15496 char dld_link (void);
15497 int
15498 main (void)
15499 {
15500 return dld_link ();
15501 ;
15502 return 0;
15503 }
15504 _ACEOF
15505 if ac_fn_c_try_link "$LINENO"
15506 then :
15507 ac_cv_lib_dld_dld_link=yes
15508 else case e in #(
15509 e) ac_cv_lib_dld_dld_link=no ;;
15510 esac
15511 fi
15512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15513 conftest$ac_exeext conftest.$ac_ext
15514 LIBS=$ac_check_lib_save_LIBS ;;
15515 esac
15516 fi
15517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15518 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15519 if test "x$ac_cv_lib_dld_dld_link" = xyes
15520 then :
15521 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15522 fi
15523
15524 ;;
15525 esac
15526 fi
15527
15528 ;;
15529 esac
15530 fi
15531
15532 ;;
15533 esac
15534 fi
15535
15536 ;;
15537 esac
15538 fi
15539
15540 ;;
15541 esac
15542 fi
15543
15544 ;;
15545 esac
15546
15547 if test no = "$lt_cv_dlopen"; then
15548 enable_dlopen=no
15549 else
15550 enable_dlopen=yes
15551 fi
15552
15553 case $lt_cv_dlopen in
15554 dlopen)
15555 save_CPPFLAGS=$CPPFLAGS
15556 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15557
15558 save_LDFLAGS=$LDFLAGS
15559 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15560
15561 save_LIBS=$LIBS
15562 LIBS="$lt_cv_dlopen_libs $LIBS"
15563
15564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15565 printf %s "checking whether a program can dlopen itself... " >&6; }
15566 if test ${lt_cv_dlopen_self+y}
15567 then :
15568 printf %s "(cached) " >&6
15569 else case e in #(
15570 e) if test yes = "$cross_compiling"; then :
15571 lt_cv_dlopen_self=cross
15572 else
15573 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15574 lt_status=$lt_dlunknown
15575 cat > conftest.$ac_ext <<_LT_EOF
15576 #line $LINENO "configure"
15577 #include "confdefs.h"
15578
15579 #if HAVE_DLFCN_H
15580 #include <dlfcn.h>
15581 #endif
15582
15583 #include <stdio.h>
15584
15585 #ifdef RTLD_GLOBAL
15586 # define LT_DLGLOBAL RTLD_GLOBAL
15587 #else
15588 # ifdef DL_GLOBAL
15589 # define LT_DLGLOBAL DL_GLOBAL
15590 # else
15591 # define LT_DLGLOBAL 0
15592 # endif
15593 #endif
15594
15595 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15596 find out it does not work in some platform. */
15597 #ifndef LT_DLLAZY_OR_NOW
15598 # ifdef RTLD_LAZY
15599 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15600 # else
15601 # ifdef DL_LAZY
15602 # define LT_DLLAZY_OR_NOW DL_LAZY
15603 # else
15604 # ifdef RTLD_NOW
15605 # define LT_DLLAZY_OR_NOW RTLD_NOW
15606 # else
15607 # ifdef DL_NOW
15608 # define LT_DLLAZY_OR_NOW DL_NOW
15609 # else
15610 # define LT_DLLAZY_OR_NOW 0
15611 # endif
15612 # endif
15613 # endif
15614 # endif
15615 #endif
15616
15617 /* When -fvisibility=hidden is used, assume the code has been annotated
15618 correspondingly for the symbols needed. */
15619 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15620 int fnord (void) __attribute__((visibility("default")));
15621 #endif
15622
15623 int fnord (void) { return 42; }
15624 int main (void)
15625 {
15626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15627 int status = $lt_dlunknown;
15628
15629 if (self)
15630 {
15631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15632 else
15633 {
15634 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15635 else puts (dlerror ());
15636 }
15637 /* dlclose (self); */
15638 }
15639 else
15640 puts (dlerror ());
15641
15642 return status;
15643 }
15644 _LT_EOF
15645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15646 (eval $ac_link) 2>&5
15647 ac_status=$?
15648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15649 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15650 (./conftest; exit; ) >&5 2>/dev/null
15651 lt_status=$?
15652 case x$lt_status in
15653 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15654 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15655 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15656 esac
15657 else :
15658 # compilation failed
15659 lt_cv_dlopen_self=no
15660 fi
15661 fi
15662 rm -fr conftest*
15663
15664 ;;
15665 esac
15666 fi
15667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15668 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15669
15670 if test yes = "$lt_cv_dlopen_self"; then
15671 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15673 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15674 if test ${lt_cv_dlopen_self_static+y}
15675 then :
15676 printf %s "(cached) " >&6
15677 else case e in #(
15678 e) if test yes = "$cross_compiling"; then :
15679 lt_cv_dlopen_self_static=cross
15680 else
15681 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15682 lt_status=$lt_dlunknown
15683 cat > conftest.$ac_ext <<_LT_EOF
15684 #line $LINENO "configure"
15685 #include "confdefs.h"
15686
15687 #if HAVE_DLFCN_H
15688 #include <dlfcn.h>
15689 #endif
15690
15691 #include <stdio.h>
15692
15693 #ifdef RTLD_GLOBAL
15694 # define LT_DLGLOBAL RTLD_GLOBAL
15695 #else
15696 # ifdef DL_GLOBAL
15697 # define LT_DLGLOBAL DL_GLOBAL
15698 # else
15699 # define LT_DLGLOBAL 0
15700 # endif
15701 #endif
15702
15703 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15704 find out it does not work in some platform. */
15705 #ifndef LT_DLLAZY_OR_NOW
15706 # ifdef RTLD_LAZY
15707 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15708 # else
15709 # ifdef DL_LAZY
15710 # define LT_DLLAZY_OR_NOW DL_LAZY
15711 # else
15712 # ifdef RTLD_NOW
15713 # define LT_DLLAZY_OR_NOW RTLD_NOW
15714 # else
15715 # ifdef DL_NOW
15716 # define LT_DLLAZY_OR_NOW DL_NOW
15717 # else
15718 # define LT_DLLAZY_OR_NOW 0
15719 # endif
15720 # endif
15721 # endif
15722 # endif
15723 #endif
15724
15725 /* When -fvisibility=hidden is used, assume the code has been annotated
15726 correspondingly for the symbols needed. */
15727 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15728 int fnord (void) __attribute__((visibility("default")));
15729 #endif
15730
15731 int fnord (void) { return 42; }
15732 int main (void)
15733 {
15734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15735 int status = $lt_dlunknown;
15736
15737 if (self)
15738 {
15739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15740 else
15741 {
15742 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15743 else puts (dlerror ());
15744 }
15745 /* dlclose (self); */
15746 }
15747 else
15748 puts (dlerror ());
15749
15750 return status;
15751 }
15752 _LT_EOF
15753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15754 (eval $ac_link) 2>&5
15755 ac_status=$?
15756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15758 (./conftest; exit; ) >&5 2>/dev/null
15759 lt_status=$?
15760 case x$lt_status in
15761 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15762 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15763 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15764 esac
15765 else :
15766 # compilation failed
15767 lt_cv_dlopen_self_static=no
15768 fi
15769 fi
15770 rm -fr conftest*
15771
15772 ;;
15773 esac
15774 fi
15775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15776 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
15777 fi
15778
15779 CPPFLAGS=$save_CPPFLAGS
15780 LDFLAGS=$save_LDFLAGS
15781 LIBS=$save_LIBS
15782 ;;
15783 esac
15784
15785 case $lt_cv_dlopen_self in
15786 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15787 *) enable_dlopen_self=unknown ;;
15788 esac
15789
15790 case $lt_cv_dlopen_self_static in
15791 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15792 *) enable_dlopen_self_static=unknown ;;
15793 esac
15794 fi
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812 striplib=
15813 old_striplib=
15814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15815 printf %s "checking whether stripping libraries is possible... " >&6; }
15816 if test -z "$STRIP"; then
15817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15818 printf "%s\n" "no" >&6; }
15819 else
15820 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15821 old_striplib="$STRIP --strip-debug"
15822 striplib="$STRIP --strip-unneeded"
15823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15824 printf "%s\n" "yes" >&6; }
15825 else
15826 case $host_os in
15827 darwin*)
15828 # FIXME - insert some real tests, host_os isn't really good enough
15829 striplib="$STRIP -x"
15830 old_striplib="$STRIP -S"
15831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15832 printf "%s\n" "yes" >&6; }
15833 ;;
15834 freebsd*)
15835 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
15836 old_striplib="$STRIP --strip-debug"
15837 striplib="$STRIP --strip-unneeded"
15838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15839 printf "%s\n" "yes" >&6; }
15840 else
15841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15842 printf "%s\n" "no" >&6; }
15843 fi
15844 ;;
15845 *)
15846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15847 printf "%s\n" "no" >&6; }
15848 ;;
15849 esac
15850 fi
15851 fi
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864 # Report what library types will actually be built
15865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15866 printf %s "checking if libtool supports shared libraries... " >&6; }
15867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15868 printf "%s\n" "$can_build_shared" >&6; }
15869
15870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15871 printf %s "checking whether to build shared libraries... " >&6; }
15872 test no = "$can_build_shared" && enable_shared=no
15873
15874 # On AIX, shared libraries and static libraries use the same namespace, and
15875 # are all built from PIC.
15876 case $host_os in
15877 aix3*)
15878 test yes = "$enable_shared" && enable_static=no
15879 if test -n "$RANLIB"; then
15880 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15881 postinstall_cmds='$RANLIB $lib'
15882 fi
15883 ;;
15884
15885 aix[4-9]*)
15886 if test ia64 != "$host_cpu"; then
15887 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15888 yes,aix,yes) ;; # shared object as lib.so file only
15889 yes,svr4,*) ;; # shared object as lib.so archive member only
15890 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15891 esac
15892 fi
15893 ;;
15894 esac
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15896 printf "%s\n" "$enable_shared" >&6; }
15897
15898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15899 printf %s "checking whether to build static libraries... " >&6; }
15900 # Make sure either enable_shared or enable_static is yes.
15901 test yes = "$enable_shared" || enable_static=yes
15902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15903 printf "%s\n" "$enable_static" >&6; }
15904
15905
15906
15907
15908 fi
15909 ac_ext=c
15910 ac_cpp='$CPP $CPPFLAGS'
15911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15914
15915 CC=$lt_save_CC
15916
15917 if test -n "$CXX" && ( test no != "$CXX" &&
15918 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15919 (test g++ != "$CXX"))); then
15920 ac_ext=cpp
15921 ac_cpp='$CXXCPP $CPPFLAGS'
15922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15926 printf %s "checking how to run the C++ preprocessor... " >&6; }
15927 if test -z "$CXXCPP"; then
15928 if test ${ac_cv_prog_CXXCPP+y}
15929 then :
15930 printf %s "(cached) " >&6
15931 else case e in #(
15932 e) # Double quotes because $CXX needs to be expanded
15933 for CXXCPP in "$CXX -E" cpp /lib/cpp
15934 do
15935 ac_preproc_ok=false
15936 for ac_cxx_preproc_warn_flag in '' yes
15937 do
15938 # Use a header file that comes with gcc, so configuring glibc
15939 # with a fresh cross-compiler works.
15940 # On the NeXT, cc -E runs the code through the compiler's parser,
15941 # not just through cpp. "Syntax error" is here to catch this case.
15942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15943 /* end confdefs.h. */
15944 #include <limits.h>
15945 Syntax error
15946 _ACEOF
15947 if ac_fn_cxx_try_cpp "$LINENO"
15948 then :
15949
15950 else case e in #(
15951 e) # Broken: fails on valid input.
15952 continue ;;
15953 esac
15954 fi
15955 rm -f conftest.err conftest.i conftest.$ac_ext
15956
15957 # OK, works on sane cases. Now check whether nonexistent headers
15958 # can be detected and how.
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15961 #include <ac_nonexistent.h>
15962 _ACEOF
15963 if ac_fn_cxx_try_cpp "$LINENO"
15964 then :
15965 # Broken: success on invalid input.
15966 continue
15967 else case e in #(
15968 e) # Passes both tests.
15969 ac_preproc_ok=:
15970 break ;;
15971 esac
15972 fi
15973 rm -f conftest.err conftest.i conftest.$ac_ext
15974
15975 done
15976 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15977 rm -f conftest.i conftest.err conftest.$ac_ext
15978 if $ac_preproc_ok
15979 then :
15980 break
15981 fi
15982
15983 done
15984 ac_cv_prog_CXXCPP=$CXXCPP
15985 ;;
15986 esac
15987 fi
15988 CXXCPP=$ac_cv_prog_CXXCPP
15989 else
15990 ac_cv_prog_CXXCPP=$CXXCPP
15991 fi
15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15993 printf "%s\n" "$CXXCPP" >&6; }
15994 ac_preproc_ok=false
15995 for ac_cxx_preproc_warn_flag in '' yes
15996 do
15997 # Use a header file that comes with gcc, so configuring glibc
15998 # with a fresh cross-compiler works.
15999 # On the NeXT, cc -E runs the code through the compiler's parser,
16000 # not just through cpp. "Syntax error" is here to catch this case.
16001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16002 /* end confdefs.h. */
16003 #include <limits.h>
16004 Syntax error
16005 _ACEOF
16006 if ac_fn_cxx_try_cpp "$LINENO"
16007 then :
16008
16009 else case e in #(
16010 e) # Broken: fails on valid input.
16011 continue ;;
16012 esac
16013 fi
16014 rm -f conftest.err conftest.i conftest.$ac_ext
16015
16016 # OK, works on sane cases. Now check whether nonexistent headers
16017 # can be detected and how.
16018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16019 /* end confdefs.h. */
16020 #include <ac_nonexistent.h>
16021 _ACEOF
16022 if ac_fn_cxx_try_cpp "$LINENO"
16023 then :
16024 # Broken: success on invalid input.
16025 continue
16026 else case e in #(
16027 e) # Passes both tests.
16028 ac_preproc_ok=:
16029 break ;;
16030 esac
16031 fi
16032 rm -f conftest.err conftest.i conftest.$ac_ext
16033
16034 done
16035 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16036 rm -f conftest.i conftest.err conftest.$ac_ext
16037 if $ac_preproc_ok
16038 then :
16039
16040 else case e in #(
16041 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
16042 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
16043 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16044 See 'config.log' for more details" "$LINENO" 5; } ;;
16045 esac
16046 fi
16047
16048 ac_ext=c
16049 ac_cpp='$CPP $CPPFLAGS'
16050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16053
16054 else
16055 _lt_caught_CXX_error=yes
16056 fi
16057
16058 ac_ext=cpp
16059 ac_cpp='$CXXCPP $CPPFLAGS'
16060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16063
16064 archive_cmds_need_lc_CXX=no
16065 allow_undefined_flag_CXX=
16066 always_export_symbols_CXX=no
16067 archive_expsym_cmds_CXX=
16068 compiler_needs_object_CXX=no
16069 export_dynamic_flag_spec_CXX=
16070 hardcode_direct_CXX=no
16071 hardcode_direct_absolute_CXX=no
16072 hardcode_libdir_flag_spec_CXX=
16073 hardcode_libdir_separator_CXX=
16074 hardcode_minus_L_CXX=no
16075 hardcode_shlibpath_var_CXX=unsupported
16076 hardcode_automatic_CXX=no
16077 inherit_rpath_CXX=no
16078 module_cmds_CXX=
16079 module_expsym_cmds_CXX=
16080 link_all_deplibs_CXX=unknown
16081 old_archive_cmds_CXX=$old_archive_cmds
16082 reload_flag_CXX=$reload_flag
16083 reload_cmds_CXX=$reload_cmds
16084 no_undefined_flag_CXX=
16085 whole_archive_flag_spec_CXX=
16086 enable_shared_with_static_runtimes_CXX=no
16087
16088 # Source file extension for C++ test sources.
16089 ac_ext=cpp
16090
16091 # Object file extension for compiled C++ test sources.
16092 objext=o
16093 objext_CXX=$objext
16094
16095 # No sense in running all these tests if we already determined that
16096 # the CXX compiler isn't working. Some variables (like enable_shared)
16097 # are currently assumed to apply to all compilers on this platform,
16098 # and will be corrupted by setting them based on a non-working compiler.
16099 if test yes != "$_lt_caught_CXX_error"; then
16100 # Code to be used in simple compile tests
16101 lt_simple_compile_test_code="int some_variable = 0;"
16102
16103 # Code to be used in simple link tests
16104 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16105
16106 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16107
16108
16109
16110
16111
16112
16113 # If no C compiler was specified, use CC.
16114 LTCC=${LTCC-"$CC"}
16115
16116 # If no C compiler flags were specified, use CFLAGS.
16117 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16118
16119 # Allow CC to be a program name with arguments.
16120 compiler=$CC
16121
16122
16123 # save warnings/boilerplate of simple test code
16124 ac_outfile=conftest.$ac_objext
16125 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16126 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16127 _lt_compiler_boilerplate=`cat conftest.err`
16128 $RM conftest*
16129
16130 ac_outfile=conftest.$ac_objext
16131 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16132 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16133 _lt_linker_boilerplate=`cat conftest.err`
16134 $RM -r conftest*
16135
16136
16137 # Allow CC to be a program name with arguments.
16138 lt_save_CC=$CC
16139 lt_save_CFLAGS=$CFLAGS
16140 lt_save_LD=$LD
16141 lt_save_GCC=$GCC
16142 GCC=$GXX
16143 lt_save_with_gnu_ld=$with_gnu_ld
16144 lt_save_path_LD=$lt_cv_path_LD
16145 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16146 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16147 else
16148 $as_unset lt_cv_prog_gnu_ld
16149 fi
16150 if test -n "${lt_cv_path_LDCXX+set}"; then
16151 lt_cv_path_LD=$lt_cv_path_LDCXX
16152 else
16153 $as_unset lt_cv_path_LD
16154 fi
16155 test -z "${LDCXX+set}" || LD=$LDCXX
16156 CC=${CXX-"c++"}
16157 CFLAGS=$CXXFLAGS
16158 compiler=$CC
16159 compiler_CXX=$CC
16160 func_cc_basename $compiler
16161 cc_basename=$func_cc_basename_result
16162
16163
16164 if test -n "$compiler"; then
16165 # We don't want -fno-exception when compiling C++ code, so set the
16166 # no_builtin_flag separately
16167 if test yes = "$GXX"; then
16168 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16169 else
16170 lt_prog_compiler_no_builtin_flag_CXX=
16171 fi
16172
16173 if test yes = "$GXX"; then
16174 # Set up default GNU C++ configuration
16175
16176
16177
16178 # Check whether --with-gnu-ld was given.
16179 if test ${with_gnu_ld+y}
16180 then :
16181 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16182 else case e in #(
16183 e) with_gnu_ld=no ;;
16184 esac
16185 fi
16186
16187 ac_prog=ld
16188 if test yes = "$GCC"; then
16189 # Check if gcc -print-prog-name=ld gives a path.
16190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16191 printf %s "checking for ld used by $CC... " >&6; }
16192 case $host in
16193 *-*-mingw* | *-*-windows*)
16194 # gcc leaves a trailing carriage return, which upsets mingw
16195 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16196 *)
16197 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16198 esac
16199 case $ac_prog in
16200 # Accept absolute paths.
16201 [\\/]* | ?:[\\/]*)
16202 re_direlt='/[^/][^/]*/\.\./'
16203 # Canonicalize the pathname of ld
16204 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16205 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16206 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16207 done
16208 test -z "$LD" && LD=$ac_prog
16209 ;;
16210 "")
16211 # If it fails, then pretend we aren't using GCC.
16212 ac_prog=ld
16213 ;;
16214 *)
16215 # If it is relative, then search for the first ld in PATH.
16216 with_gnu_ld=unknown
16217 ;;
16218 esac
16219 elif test yes = "$with_gnu_ld"; then
16220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16221 printf %s "checking for GNU ld... " >&6; }
16222 else
16223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16224 printf %s "checking for non-GNU ld... " >&6; }
16225 fi
16226 if test ${lt_cv_path_LD+y}
16227 then :
16228 printf %s "(cached) " >&6
16229 else case e in #(
16230 e) if test -z "$LD"; then
16231 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16232 for ac_dir in $PATH; do
16233 IFS=$lt_save_ifs
16234 test -z "$ac_dir" && ac_dir=.
16235 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16236 lt_cv_path_LD=$ac_dir/$ac_prog
16237 # Check to see if the program is GNU ld. I'd rather use --version,
16238 # but apparently some variants of GNU ld only accept -v.
16239 # Break only if it was the GNU/non-GNU ld that we prefer.
16240 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16241 *GNU* | *'with BFD'*)
16242 test no != "$with_gnu_ld" && break
16243 ;;
16244 *)
16245 test yes != "$with_gnu_ld" && break
16246 ;;
16247 esac
16248 fi
16249 done
16250 IFS=$lt_save_ifs
16251 else
16252 lt_cv_path_LD=$LD # Let the user override the test with a path.
16253 fi ;;
16254 esac
16255 fi
16256
16257 LD=$lt_cv_path_LD
16258 if test -n "$LD"; then
16259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16260 printf "%s\n" "$LD" >&6; }
16261 else
16262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 printf "%s\n" "no" >&6; }
16264 fi
16265 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16267 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16268 if test ${lt_cv_prog_gnu_ld+y}
16269 then :
16270 printf %s "(cached) " >&6
16271 else case e in #(
16272 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
16273 case `$LD -v 2>&1 </dev/null` in
16274 *GNU* | *'with BFD'*)
16275 lt_cv_prog_gnu_ld=yes
16276 ;;
16277 *)
16278 lt_cv_prog_gnu_ld=no
16279 ;;
16280 esac ;;
16281 esac
16282 fi
16283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16284 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16285 with_gnu_ld=$lt_cv_prog_gnu_ld
16286
16287
16288
16289
16290
16291
16292
16293 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16294 # archiving commands below assume that GNU ld is being used.
16295 if test yes = "$with_gnu_ld"; then
16296 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16297 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'
16298
16299 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16300 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16301
16302 # If archive_cmds runs LD, not CC, wlarc should be empty
16303 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16304 # investigate it a little bit more. (MM)
16305 wlarc='$wl'
16306
16307 # ancient GNU ld didn't support --whole-archive et. al.
16308 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16309 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16310 else
16311 whole_archive_flag_spec_CXX=
16312 fi
16313 else
16314 with_gnu_ld=no
16315 wlarc=
16316
16317 # A generic and very simple default shared library creation
16318 # command for GNU C++ for the case where it uses the native
16319 # linker, instead of GNU ld. If possible, this setting should
16320 # overridden to take advantage of the native linker features on
16321 # the platform it is being used on.
16322 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16323 fi
16324
16325 # Commands to make compiler produce verbose output that lists
16326 # what "hidden" libraries, object files and flags are used when
16327 # linking a shared library.
16328 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
16329
16330 else
16331 GXX=no
16332 with_gnu_ld=no
16333 wlarc=
16334 fi
16335
16336 # PORTME: fill in a description of your system's C++ link characteristics
16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16338 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16339 ld_shlibs_CXX=yes
16340 case $host_os in
16341 aix3*)
16342 # FIXME: insert proper C++ library support
16343 ld_shlibs_CXX=no
16344 ;;
16345 aix[4-9]*)
16346 if test ia64 = "$host_cpu"; then
16347 # On IA64, the linker does run time linking by default, so we don't
16348 # have to do anything special.
16349 aix_use_runtimelinking=no
16350 exp_sym_flag='-Bexport'
16351 no_entry_flag=
16352 else
16353 aix_use_runtimelinking=no
16354
16355 # Test if we are trying to use run time linking or normal
16356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16357 # have runtime linking enabled, and use it for executables.
16358 # For shared libraries, we enable/disable runtime linking
16359 # depending on the kind of the shared library created -
16360 # when "with_aix_soname,aix_use_runtimelinking" is:
16361 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16362 # "aix,yes" lib.so shared, rtl:yes, for executables
16363 # lib.a static archive
16364 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16365 # lib.a(lib.so.V) shared, rtl:no, for executables
16366 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16367 # lib.a(lib.so.V) shared, rtl:no
16368 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16369 # lib.a static archive
16370 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16371 for ld_flag in $LDFLAGS; do
16372 case $ld_flag in
16373 *-brtl*)
16374 aix_use_runtimelinking=yes
16375 break
16376 ;;
16377 esac
16378 done
16379 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16380 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16381 # so we don't have lib.a shared libs to link our executables.
16382 # We have to force runtime linking in this case.
16383 aix_use_runtimelinking=yes
16384 LDFLAGS="$LDFLAGS -Wl,-brtl"
16385 fi
16386 ;;
16387 esac
16388
16389 exp_sym_flag='-bexport'
16390 no_entry_flag='-bnoentry'
16391 fi
16392
16393 # When large executables or shared objects are built, AIX ld can
16394 # have problems creating the table of contents. If linking a library
16395 # or program results in "error TOC overflow" add -mminimal-toc to
16396 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16397 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16398
16399 archive_cmds_CXX=''
16400 hardcode_direct_CXX=yes
16401 hardcode_direct_absolute_CXX=yes
16402 hardcode_libdir_separator_CXX=':'
16403 link_all_deplibs_CXX=yes
16404 file_list_spec_CXX='$wl-f,'
16405 case $with_aix_soname,$aix_use_runtimelinking in
16406 aix,*) ;; # no import file
16407 svr4,* | *,yes) # use import file
16408 # The Import File defines what to hardcode.
16409 hardcode_direct_CXX=no
16410 hardcode_direct_absolute_CXX=no
16411 ;;
16412 esac
16413
16414 if test yes = "$GXX"; then
16415 case $host_os in aix4.[012]|aix4.[012].*)
16416 # We only want to do this on AIX 4.2 and lower, the check
16417 # below for broken collect2 doesn't work under 4.3+
16418 collect2name=`$CC -print-prog-name=collect2`
16419 if test -f "$collect2name" &&
16420 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16421 then
16422 # We have reworked collect2
16423 :
16424 else
16425 # We have old collect2
16426 hardcode_direct_CXX=unsupported
16427 # It fails to find uninstalled libraries when the uninstalled
16428 # path is not listed in the libpath. Setting hardcode_minus_L
16429 # to unsupported forces relinking
16430 hardcode_minus_L_CXX=yes
16431 hardcode_libdir_flag_spec_CXX='-L$libdir'
16432 hardcode_libdir_separator_CXX=
16433 fi
16434 esac
16435 shared_flag='-shared'
16436 if test yes = "$aix_use_runtimelinking"; then
16437 shared_flag=$shared_flag' $wl-G'
16438 fi
16439 # Need to ensure runtime linking is disabled for the traditional
16440 # shared library, or the linker may eventually find shared libraries
16441 # /with/ Import File - we do not want to mix them.
16442 shared_flag_aix='-shared'
16443 shared_flag_svr4='-shared $wl-G'
16444 else
16445 # not using gcc
16446 if test ia64 = "$host_cpu"; then
16447 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16448 # chokes on -Wl,-G. The following line is correct:
16449 shared_flag='-G'
16450 else
16451 if test yes = "$aix_use_runtimelinking"; then
16452 shared_flag='$wl-G'
16453 else
16454 shared_flag='$wl-bM:SRE'
16455 fi
16456 shared_flag_aix='$wl-bM:SRE'
16457 shared_flag_svr4='$wl-G'
16458 fi
16459 fi
16460
16461 export_dynamic_flag_spec_CXX='$wl-bexpall'
16462 # It seems that -bexpall does not export symbols beginning with
16463 # underscore (_), so it is better to generate a list of symbols to
16464 # export.
16465 always_export_symbols_CXX=yes
16466 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16467 # Warning - without using the other runtime loading flags (-brtl),
16468 # -berok will link without error, but may produce a broken library.
16469 # The "-G" linker flag allows undefined symbols.
16470 no_undefined_flag_CXX='-bernotok'
16471 # Determine the default libpath from the value encoded in an empty
16472 # executable.
16473 if test set = "${lt_cv_aix_libpath+set}"; then
16474 aix_libpath=$lt_cv_aix_libpath
16475 else
16476 if test ${lt_cv_aix_libpath__CXX+y}
16477 then :
16478 printf %s "(cached) " >&6
16479 else case e in #(
16480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16481 /* end confdefs.h. */
16482
16483 int
16484 main (void)
16485 {
16486
16487 ;
16488 return 0;
16489 }
16490 _ACEOF
16491 if ac_fn_cxx_try_link "$LINENO"
16492 then :
16493
16494 lt_aix_libpath_sed='
16495 /Import File Strings/,/^$/ {
16496 /^0/ {
16497 s/^0 *\([^ ]*\) *$/\1/
16498 p
16499 }
16500 }'
16501 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16502 # Check for a 64-bit object if we didn't find anything.
16503 if test -z "$lt_cv_aix_libpath__CXX"; then
16504 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16505 fi
16506 fi
16507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16508 conftest$ac_exeext conftest.$ac_ext
16509 if test -z "$lt_cv_aix_libpath__CXX"; then
16510 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16511 fi
16512 ;;
16513 esac
16514 fi
16515
16516 aix_libpath=$lt_cv_aix_libpath__CXX
16517 fi
16518
16519 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16520
16521 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
16522 else
16523 if test ia64 = "$host_cpu"; then
16524 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
16525 allow_undefined_flag_CXX="-z nodefs"
16526 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"
16527 else
16528 # Determine the default libpath from the value encoded in an
16529 # empty executable.
16530 if test set = "${lt_cv_aix_libpath+set}"; then
16531 aix_libpath=$lt_cv_aix_libpath
16532 else
16533 if test ${lt_cv_aix_libpath__CXX+y}
16534 then :
16535 printf %s "(cached) " >&6
16536 else case e in #(
16537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16538 /* end confdefs.h. */
16539
16540 int
16541 main (void)
16542 {
16543
16544 ;
16545 return 0;
16546 }
16547 _ACEOF
16548 if ac_fn_cxx_try_link "$LINENO"
16549 then :
16550
16551 lt_aix_libpath_sed='
16552 /Import File Strings/,/^$/ {
16553 /^0/ {
16554 s/^0 *\([^ ]*\) *$/\1/
16555 p
16556 }
16557 }'
16558 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16559 # Check for a 64-bit object if we didn't find anything.
16560 if test -z "$lt_cv_aix_libpath__CXX"; then
16561 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16562 fi
16563 fi
16564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16565 conftest$ac_exeext conftest.$ac_ext
16566 if test -z "$lt_cv_aix_libpath__CXX"; then
16567 lt_cv_aix_libpath__CXX=/usr/lib:/lib
16568 fi
16569 ;;
16570 esac
16571 fi
16572
16573 aix_libpath=$lt_cv_aix_libpath__CXX
16574 fi
16575
16576 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
16577 # Warning - without using the other run time loading flags,
16578 # -berok will link without error, but may produce a broken library.
16579 no_undefined_flag_CXX=' $wl-bernotok'
16580 allow_undefined_flag_CXX=' $wl-berok'
16581 if test yes = "$with_gnu_ld"; then
16582 # We only use this code for GNU lds that support --whole-archive.
16583 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16584 else
16585 # Exported symbols can be pulled into shared objects from archives
16586 whole_archive_flag_spec_CXX='$convenience'
16587 fi
16588 archive_cmds_need_lc_CXX=yes
16589 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16590 # -brtl affects multiple linker settings, -berok does not and is overridden later
16591 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16592 if test svr4 != "$with_aix_soname"; then
16593 # This is similar to how AIX traditionally builds its shared
16594 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16595 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'
16596 fi
16597 if test aix != "$with_aix_soname"; then
16598 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'
16599 else
16600 # used by -dlpreopen to get the symbols
16601 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16602 fi
16603 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16604 fi
16605 fi
16606 ;;
16607
16608 beos*)
16609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16610 allow_undefined_flag_CXX=unsupported
16611 # Joseph Beckenbach <[email protected]> says some releases of gcc
16612 # support --undefined. This deserves some investigation. FIXME
16613 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16614 else
16615 ld_shlibs_CXX=no
16616 fi
16617 ;;
16618
16619 chorus*)
16620 case $cc_basename in
16621 *)
16622 # FIXME: insert proper C++ library support
16623 ld_shlibs_CXX=no
16624 ;;
16625 esac
16626 ;;
16627
16628 cygwin* | mingw* | windows* | pw32* | cegcc*)
16629 case $GXX,$cc_basename in
16630 ,cl* | no,cl* | ,icl* | no,icl*)
16631 # Native MSVC or ICC
16632 # hardcode_libdir_flag_spec is actually meaningless, as there is
16633 # no search path for DLLs.
16634 hardcode_libdir_flag_spec_CXX=' '
16635 allow_undefined_flag_CXX=unsupported
16636 always_export_symbols_CXX=yes
16637 file_list_spec_CXX='@'
16638 # Tell ltmain to make .lib files, not .a files.
16639 libext=lib
16640 # Tell ltmain to make .dll files, not .so files.
16641 shrext_cmds=.dll
16642 # FIXME: Setting linknames here is a bad hack.
16643 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16644 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16645 cp "$export_symbols" "$output_objdir/$soname.def";
16646 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16647 else
16648 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16649 fi~
16650 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16651 linknames='
16652 # The linker will not automatically build a static lib if we build a DLL.
16653 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16654 enable_shared_with_static_runtimes_CXX=yes
16655 # Don't use ranlib
16656 old_postinstall_cmds_CXX='chmod 644 $oldlib'
16657 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16658 lt_tool_outputfile="@TOOL_OUTPUT@"~
16659 case $lt_outputfile in
16660 *.exe|*.EXE) ;;
16661 *)
16662 lt_outputfile=$lt_outputfile.exe
16663 lt_tool_outputfile=$lt_tool_outputfile.exe
16664 ;;
16665 esac~
16666 func_to_tool_file "$lt_outputfile"~
16667 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16668 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16669 $RM "$lt_outputfile.manifest";
16670 fi'
16671 ;;
16672 *)
16673 # g++
16674 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16675 # as there is no search path for DLLs.
16676 hardcode_libdir_flag_spec_CXX='-L$libdir'
16677 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16678 allow_undefined_flag_CXX=unsupported
16679 always_export_symbols_CXX=no
16680 enable_shared_with_static_runtimes_CXX=yes
16681 file_list_spec_CXX='@'
16682
16683 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16684 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'
16685 # If the export-symbols file already is a .def file, use it as
16686 # is; otherwise, prepend EXPORTS...
16687 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16688 cp $export_symbols $output_objdir/$soname.def;
16689 else
16690 echo EXPORTS > $output_objdir/$soname.def;
16691 cat $export_symbols >> $output_objdir/$soname.def;
16692 fi~
16693 $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'
16694 else
16695 ld_shlibs_CXX=no
16696 fi
16697 ;;
16698 esac
16699 ;;
16700 darwin* | rhapsody*)
16701
16702
16703 archive_cmds_need_lc_CXX=no
16704 hardcode_direct_CXX=no
16705 hardcode_automatic_CXX=yes
16706 hardcode_shlibpath_var_CXX=unsupported
16707 if test yes = "$lt_cv_ld_force_load"; then
16708 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\"`'
16709
16710 else
16711 whole_archive_flag_spec_CXX=''
16712 fi
16713 link_all_deplibs_CXX=yes
16714 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16715 case $cc_basename in
16716 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16717 *) _lt_dar_can_shared=$GCC ;;
16718 esac
16719 if test yes = "$_lt_dar_can_shared"; then
16720 output_verbose_link_cmd=func_echo_all
16721 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"
16722 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16723 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"
16724 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"
16725 if test yes = "$_lt_dar_needs_single_mod" -a yes != "$lt_cv_apple_cc_single_mod"; then
16726 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"
16727 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"
16728 fi
16729
16730 else
16731 ld_shlibs_CXX=no
16732 fi
16733
16734 ;;
16735
16736 os2*)
16737 hardcode_libdir_flag_spec_CXX='-L$libdir'
16738 hardcode_minus_L_CXX=yes
16739 allow_undefined_flag_CXX=unsupported
16740 shrext_cmds=.dll
16741 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16742 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16743 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16744 $ECHO EXPORTS >> $output_objdir/$libname.def~
16745 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16746 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16747 emximp -o $lib $output_objdir/$libname.def'
16748 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16749 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16750 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16751 $ECHO EXPORTS >> $output_objdir/$libname.def~
16752 prefix_cmds="$SED"~
16753 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16754 prefix_cmds="$prefix_cmds -e 1d";
16755 fi~
16756 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16757 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16758 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16759 emximp -o $lib $output_objdir/$libname.def'
16760 old_archive_from_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16761 enable_shared_with_static_runtimes_CXX=yes
16762 file_list_spec_CXX='@'
16763 ;;
16764
16765 dgux*)
16766 case $cc_basename in
16767 ec++*)
16768 # FIXME: insert proper C++ library support
16769 ld_shlibs_CXX=no
16770 ;;
16771 ghcx*)
16772 # Green Hills C++ Compiler
16773 # FIXME: insert proper C++ library support
16774 ld_shlibs_CXX=no
16775 ;;
16776 *)
16777 # FIXME: insert proper C++ library support
16778 ld_shlibs_CXX=no
16779 ;;
16780 esac
16781 ;;
16782
16783 freebsd2.*)
16784 # C++ shared libraries reported to be fairly broken before
16785 # switch to ELF
16786 ld_shlibs_CXX=no
16787 ;;
16788
16789 freebsd-elf*)
16790 archive_cmds_need_lc_CXX=no
16791 ;;
16792
16793 freebsd* | dragonfly* | midnightbsd*)
16794 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16795 # conventions
16796 ld_shlibs_CXX=yes
16797 ;;
16798
16799 haiku*)
16800 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16801 link_all_deplibs_CXX=no
16802 ;;
16803
16804 hpux9*)
16805 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16806 hardcode_libdir_separator_CXX=:
16807 export_dynamic_flag_spec_CXX='$wl-E'
16808 hardcode_direct_CXX=yes
16809 hardcode_minus_L_CXX=yes # Not in the search PATH,
16810 # but as the default
16811 # location of the library.
16812
16813 case $cc_basename in
16814 CC*)
16815 # FIXME: insert proper C++ library support
16816 ld_shlibs_CXX=no
16817 ;;
16818 aCC*)
16819 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'
16820 # Commands to make compiler produce verbose output that lists
16821 # what "hidden" libraries, object files and flags are used when
16822 # linking a shared library.
16823 #
16824 # There doesn't appear to be a way to prevent this compiler from
16825 # explicitly linking system object files so we need to strip them
16826 # from the output so that they don't get included in the library
16827 # dependencies.
16828 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"'
16829 ;;
16830 *)
16831 if test yes = "$GXX"; then
16832 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'
16833 else
16834 # FIXME: insert proper C++ library support
16835 ld_shlibs_CXX=no
16836 fi
16837 ;;
16838 esac
16839 ;;
16840
16841 hpux10*|hpux11*)
16842 if test no = "$with_gnu_ld"; then
16843 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16844 hardcode_libdir_separator_CXX=:
16845
16846 case $host_cpu in
16847 hppa*64*|ia64*)
16848 ;;
16849 *)
16850 export_dynamic_flag_spec_CXX='$wl-E'
16851 ;;
16852 esac
16853 fi
16854 case $host_cpu in
16855 hppa*64*|ia64*)
16856 hardcode_direct_CXX=no
16857 hardcode_shlibpath_var_CXX=no
16858 ;;
16859 *)
16860 hardcode_direct_CXX=yes
16861 hardcode_direct_absolute_CXX=yes
16862 hardcode_minus_L_CXX=yes # Not in the search PATH,
16863 # but as the default
16864 # location of the library.
16865 ;;
16866 esac
16867
16868 case $cc_basename in
16869 CC*)
16870 # FIXME: insert proper C++ library support
16871 ld_shlibs_CXX=no
16872 ;;
16873 aCC*)
16874 case $host_cpu in
16875 hppa*64*)
16876 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16877 ;;
16878 ia64*)
16879 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16880 ;;
16881 *)
16882 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16883 ;;
16884 esac
16885 # Commands to make compiler produce verbose output that lists
16886 # what "hidden" libraries, object files and flags are used when
16887 # linking a shared library.
16888 #
16889 # There doesn't appear to be a way to prevent this compiler from
16890 # explicitly linking system object files so we need to strip them
16891 # from the output so that they don't get included in the library
16892 # dependencies.
16893 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"'
16894 ;;
16895 *)
16896 if test yes = "$GXX"; then
16897 if test no = "$with_gnu_ld"; then
16898 case $host_cpu in
16899 hppa*64*)
16900 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16901 ;;
16902 ia64*)
16903 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16904 ;;
16905 *)
16906 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'
16907 ;;
16908 esac
16909 fi
16910 else
16911 # FIXME: insert proper C++ library support
16912 ld_shlibs_CXX=no
16913 fi
16914 ;;
16915 esac
16916 ;;
16917
16918 interix[3-9]*)
16919 hardcode_direct_CXX=no
16920 hardcode_shlibpath_var_CXX=no
16921 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16922 export_dynamic_flag_spec_CXX='$wl-E'
16923 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16924 # Instead, shared libraries are loaded at an image base (0x10000000 by
16925 # default) and relocated if they conflict, which is a slow very memory
16926 # consuming and fragmenting process. To avoid this, we pick a random,
16927 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16928 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16929 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'
16930 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'
16931 ;;
16932 irix5* | irix6*)
16933 case $cc_basename in
16934 CC*)
16935 # SGI C++
16936 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'
16937
16938 # Archives containing C++ object files must be created using
16939 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16940 # necessary to make sure instantiated templates are included
16941 # in the archive.
16942 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16943 ;;
16944 *)
16945 if test yes = "$GXX"; then
16946 if test no = "$with_gnu_ld"; then
16947 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'
16948 else
16949 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'
16950 fi
16951 fi
16952 link_all_deplibs_CXX=yes
16953 ;;
16954 esac
16955 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16956 hardcode_libdir_separator_CXX=:
16957 inherit_rpath_CXX=yes
16958 ;;
16959
16960 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16961 case $cc_basename in
16962 KCC*)
16963 # Kuck and Associates, Inc. (KAI) C++ Compiler
16964
16965 # KCC will only create a shared library if the output file
16966 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16967 # to its proper name (with version) after linking.
16968 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'
16969 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'
16970 # Commands to make compiler produce verbose output that lists
16971 # what "hidden" libraries, object files and flags are used when
16972 # linking a shared library.
16973 #
16974 # There doesn't appear to be a way to prevent this compiler from
16975 # explicitly linking system object files so we need to strip them
16976 # from the output so that they don't get included in the library
16977 # dependencies.
16978 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"'
16979
16980 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16981 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16982
16983 # Archives containing C++ object files must be created using
16984 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16985 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16986 ;;
16987 icpc* | ecpc* )
16988 # Intel C++
16989 with_gnu_ld=yes
16990 # version 8.0 and above of icpc choke on multiply defined symbols
16991 # if we add $predep_objects and $postdep_objects, however 7.1 and
16992 # earlier do not add the objects themselves.
16993 case `$CC -V 2>&1` in
16994 *"Version 7."*)
16995 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16996 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'
16997 ;;
16998 *) # Version 8.0 or newer
16999 tmp_idyn=
17000 case $host_cpu in
17001 ia64*) tmp_idyn=' -i_dynamic';;
17002 esac
17003 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17004 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'
17005 ;;
17006 esac
17007 archive_cmds_need_lc_CXX=no
17008 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17009 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17010 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17011 ;;
17012 pgCC* | pgcpp*)
17013 # Portland Group C++ compiler
17014 case `$CC -V` in
17015 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17016 prelink_cmds_CXX='tpldir=Template.dir~
17017 rm -rf $tpldir~
17018 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17019 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17020 old_archive_cmds_CXX='tpldir=Template.dir~
17021 rm -rf $tpldir~
17022 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17023 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17024 $RANLIB $oldlib'
17025 archive_cmds_CXX='tpldir=Template.dir~
17026 rm -rf $tpldir~
17027 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17028 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17029 archive_expsym_cmds_CXX='tpldir=Template.dir~
17030 rm -rf $tpldir~
17031 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17032 $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'
17033 ;;
17034 *) # Version 6 and above use weak symbols
17035 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17036 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'
17037 ;;
17038 esac
17039
17040 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17041 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17042 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'
17043 ;;
17044 cxx*)
17045 # Compaq C++
17046 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17047 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'
17048
17049 runpath_var=LD_RUN_PATH
17050 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17051 hardcode_libdir_separator_CXX=:
17052
17053 # Commands to make compiler produce verbose output that lists
17054 # what "hidden" libraries, object files and flags are used when
17055 # linking a shared library.
17056 #
17057 # There doesn't appear to be a way to prevent this compiler from
17058 # explicitly linking system object files so we need to strip them
17059 # from the output so that they don't get included in the library
17060 # dependencies.
17061 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'
17062 ;;
17063 xl* | mpixl* | bgxl*)
17064 # IBM XL 8.0 on PPC, with GNU ld
17065 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17066 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17067 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17068 if test yes = "$supports_anon_versioning"; then
17069 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17070 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17071 echo "local: *; };" >> $output_objdir/$libname.ver~
17072 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17073 fi
17074 ;;
17075 *)
17076 case `$CC -V 2>&1 | $SED 5q` in
17077 *Sun\ C*)
17078 # Sun C++ 5.9
17079 no_undefined_flag_CXX=' -zdefs'
17080 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17081 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'
17082 hardcode_libdir_flag_spec_CXX='-R$libdir'
17083 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'
17084 compiler_needs_object_CXX=yes
17085
17086 # Not sure whether something based on
17087 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17088 # would be better.
17089 output_verbose_link_cmd='func_echo_all'
17090
17091 # Archives containing C++ object files must be created using
17092 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17093 # necessary to make sure instantiated templates are included
17094 # in the archive.
17095 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17096 ;;
17097 esac
17098 ;;
17099 esac
17100 ;;
17101
17102 lynxos*)
17103 # FIXME: insert proper C++ library support
17104 ld_shlibs_CXX=no
17105 ;;
17106
17107 m88k*)
17108 # FIXME: insert proper C++ library support
17109 ld_shlibs_CXX=no
17110 ;;
17111
17112 mvs*)
17113 case $cc_basename in
17114 cxx*)
17115 # FIXME: insert proper C++ library support
17116 ld_shlibs_CXX=no
17117 ;;
17118 *)
17119 # FIXME: insert proper C++ library support
17120 ld_shlibs_CXX=no
17121 ;;
17122 esac
17123 ;;
17124
17125 *-mlibc)
17126 ld_shlibs_CXX=yes
17127 ;;
17128
17129 netbsd*)
17130 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17131 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17132 wlarc=
17133 hardcode_libdir_flag_spec_CXX='-R$libdir'
17134 hardcode_direct_CXX=yes
17135 hardcode_shlibpath_var_CXX=no
17136 fi
17137 # Workaround some broken pre-1.5 toolchains
17138 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17139 ;;
17140
17141 *nto* | *qnx*)
17142 ld_shlibs_CXX=yes
17143 ;;
17144
17145 openbsd*)
17146 if test -f /usr/libexec/ld.so; then
17147 hardcode_direct_CXX=yes
17148 hardcode_shlibpath_var_CXX=no
17149 hardcode_direct_absolute_CXX=yes
17150 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17151 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17153 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17154 export_dynamic_flag_spec_CXX='$wl-E'
17155 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17156 fi
17157 output_verbose_link_cmd=func_echo_all
17158 else
17159 ld_shlibs_CXX=no
17160 fi
17161 ;;
17162
17163 osf3* | osf4* | osf5*)
17164 case $cc_basename in
17165 KCC*)
17166 # Kuck and Associates, Inc. (KAI) C++ Compiler
17167
17168 # KCC will only create a shared library if the output file
17169 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17170 # to its proper name (with version) after linking.
17171 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'
17172
17173 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17174 hardcode_libdir_separator_CXX=:
17175
17176 # Archives containing C++ object files must be created using
17177 # the KAI C++ compiler.
17178 case $host in
17179 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17180 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17181 esac
17182 ;;
17183 RCC*)
17184 # Rational C++ 2.4.1
17185 # FIXME: insert proper C++ library support
17186 ld_shlibs_CXX=no
17187 ;;
17188 cxx*)
17189 case $host in
17190 osf3*)
17191 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17192 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'
17193 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17194 ;;
17195 *)
17196 allow_undefined_flag_CXX=' -expect_unresolved \*'
17197 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'
17198 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17199 echo "-hidden">> $lib.exp~
17200 $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~
17201 $RM $lib.exp'
17202 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17203 ;;
17204 esac
17205
17206 hardcode_libdir_separator_CXX=:
17207
17208 # Commands to make compiler produce verbose output that lists
17209 # what "hidden" libraries, object files and flags are used when
17210 # linking a shared library.
17211 #
17212 # There doesn't appear to be a way to prevent this compiler from
17213 # explicitly linking system object files so we need to strip them
17214 # from the output so that they don't get included in the library
17215 # dependencies.
17216 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"'
17217 ;;
17218 *)
17219 if test yes,no = "$GXX,$with_gnu_ld"; then
17220 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17221 case $host in
17222 osf3*)
17223 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'
17224 ;;
17225 *)
17226 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'
17227 ;;
17228 esac
17229
17230 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17231 hardcode_libdir_separator_CXX=:
17232
17233 # Commands to make compiler produce verbose output that lists
17234 # what "hidden" libraries, object files and flags are used when
17235 # linking a shared library.
17236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17237
17238 else
17239 # FIXME: insert proper C++ library support
17240 ld_shlibs_CXX=no
17241 fi
17242 ;;
17243 esac
17244 ;;
17245
17246 psos*)
17247 # FIXME: insert proper C++ library support
17248 ld_shlibs_CXX=no
17249 ;;
17250
17251 serenity*)
17252 ;;
17253
17254 sunos4*)
17255 case $cc_basename in
17256 CC*)
17257 # Sun C++ 4.x
17258 # FIXME: insert proper C++ library support
17259 ld_shlibs_CXX=no
17260 ;;
17261 lcc*)
17262 # Lucid
17263 # FIXME: insert proper C++ library support
17264 ld_shlibs_CXX=no
17265 ;;
17266 *)
17267 # FIXME: insert proper C++ library support
17268 ld_shlibs_CXX=no
17269 ;;
17270 esac
17271 ;;
17272
17273 solaris*)
17274 case $cc_basename in
17275 CC* | sunCC*)
17276 # Sun C++ 4.2, 5.x and Centerline C++
17277 archive_cmds_need_lc_CXX=yes
17278 no_undefined_flag_CXX=' -zdefs'
17279 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17280 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17281 $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'
17282
17283 hardcode_libdir_flag_spec_CXX='-R$libdir'
17284 hardcode_shlibpath_var_CXX=no
17285 case $host_os in
17286 solaris2.[0-5] | solaris2.[0-5].*) ;;
17287 *)
17288 # The compiler driver will combine and reorder linker options,
17289 # but understands '-z linker_flag'.
17290 # Supported since Solaris 2.6 (maybe 2.5.1?)
17291 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17292 ;;
17293 esac
17294 link_all_deplibs_CXX=yes
17295
17296 output_verbose_link_cmd='func_echo_all'
17297
17298 # Archives containing C++ object files must be created using
17299 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17300 # necessary to make sure instantiated templates are included
17301 # in the archive.
17302 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17303 ;;
17304 gcx*)
17305 # Green Hills C++ Compiler
17306 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17307
17308 # The C++ compiler must be used to create the archive.
17309 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17310 ;;
17311 *)
17312 # GNU C++ compiler with Solaris linker
17313 if test yes,no = "$GXX,$with_gnu_ld"; then
17314 no_undefined_flag_CXX=' $wl-z ${wl}defs'
17315 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17316 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17317 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17318 $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'
17319
17320 # Commands to make compiler produce verbose output that lists
17321 # what "hidden" libraries, object files and flags are used when
17322 # linking a shared library.
17323 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17324 else
17325 # g++ 2.7 appears to require '-G' NOT '-shared' on this
17326 # platform.
17327 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
17328 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17329 $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'
17330
17331 # Commands to make compiler produce verbose output that lists
17332 # what "hidden" libraries, object files and flags are used when
17333 # linking a shared library.
17334 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " [-]L"'
17335 fi
17336
17337 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
17338 case $host_os in
17339 solaris2.[0-5] | solaris2.[0-5].*) ;;
17340 *)
17341 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17342 ;;
17343 esac
17344 fi
17345 ;;
17346 esac
17347 ;;
17348
17349 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17350 no_undefined_flag_CXX='$wl-z,text'
17351 archive_cmds_need_lc_CXX=no
17352 hardcode_shlibpath_var_CXX=no
17353 runpath_var='LD_RUN_PATH'
17354
17355 case $cc_basename in
17356 CC*)
17357 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17358 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17359 ;;
17360 *)
17361 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17362 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17363 ;;
17364 esac
17365 ;;
17366
17367 sysv5* | sco3.2v5* | sco5v6*)
17368 # Note: We CANNOT use -z defs as we might desire, because we do not
17369 # link with -lc, and that would cause any symbols used from libc to
17370 # always be unresolved, which means just about no library would
17371 # ever link correctly. If we're not using GNU ld we use -z text
17372 # though, which does catch some bad symbols but isn't as heavy-handed
17373 # as -z defs.
17374 no_undefined_flag_CXX='$wl-z,text'
17375 allow_undefined_flag_CXX='$wl-z,nodefs'
17376 archive_cmds_need_lc_CXX=no
17377 hardcode_shlibpath_var_CXX=no
17378 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
17379 hardcode_libdir_separator_CXX=':'
17380 link_all_deplibs_CXX=yes
17381 export_dynamic_flag_spec_CXX='$wl-Bexport'
17382 runpath_var='LD_RUN_PATH'
17383
17384 case $cc_basename in
17385 CC*)
17386 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17387 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17388 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17389 '"$old_archive_cmds_CXX"
17390 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17391 '"$reload_cmds_CXX"
17392 ;;
17393 *)
17394 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17395 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17396 ;;
17397 esac
17398 ;;
17399
17400 tandem*)
17401 case $cc_basename in
17402 NCC*)
17403 # NonStop-UX NCC 3.20
17404 # FIXME: insert proper C++ library support
17405 ld_shlibs_CXX=no
17406 ;;
17407 *)
17408 # FIXME: insert proper C++ library support
17409 ld_shlibs_CXX=no
17410 ;;
17411 esac
17412 ;;
17413
17414 vxworks*)
17415 # FIXME: insert proper C++ library support
17416 ld_shlibs_CXX=no
17417 ;;
17418
17419 *)
17420 # FIXME: insert proper C++ library support
17421 ld_shlibs_CXX=no
17422 ;;
17423 esac
17424
17425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17426 printf "%s\n" "$ld_shlibs_CXX" >&6; }
17427 test no = "$ld_shlibs_CXX" && can_build_shared=no
17428
17429 GCC_CXX=$GXX
17430 LD_CXX=$LD
17431
17432 ## CAVEAT EMPTOR:
17433 ## There is no encapsulation within the following macros, do not change
17434 ## the running order or otherwise move them around unless you know exactly
17435 ## what you are doing...
17436 # Dependencies to place before and after the object being linked:
17437 predep_objects_CXX=
17438 postdep_objects_CXX=
17439 predeps_CXX=
17440 postdeps_CXX=
17441 compiler_lib_search_path_CXX=
17442
17443 cat > conftest.$ac_ext <<_LT_EOF
17444 class Foo
17445 {
17446 public:
17447 Foo (void) { a = 0; }
17448 private:
17449 int a;
17450 };
17451 _LT_EOF
17452
17453
17454 _lt_libdeps_save_CFLAGS=$CFLAGS
17455 case "$CC $CFLAGS " in #(
17456 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17457 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17458 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17459 esac
17460
17461 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17462 (eval $ac_compile) 2>&5
17463 ac_status=$?
17464 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17465 test $ac_status = 0; }; then
17466 # Parse the compiler output and extract the necessary
17467 # objects, libraries and library flags.
17468
17469 # Sentinel used to keep track of whether or not we are before
17470 # the conftest object file.
17471 pre_test_object_deps_done=no
17472
17473 for p in `eval "$output_verbose_link_cmd"`; do
17474 case $prev$p in
17475
17476 -L* | -R* | -l*)
17477 # Some compilers place space between "-{L,R,l}" and the path.
17478 # Remove the space.
17479 if test x-L = x"$p" ||
17480 test x-R = x"$p" ||
17481 test x-l = x"$p"; then
17482 prev=$p
17483 continue
17484 fi
17485
17486 # Expand the sysroot to ease extracting the directories later.
17487 if test -z "$prev"; then
17488 case $p in
17489 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17490 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17491 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17492 esac
17493 fi
17494 case $p in
17495 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17496 esac
17497 if test no = "$pre_test_object_deps_done"; then
17498 case $prev in
17499 -L | -R)
17500 # Internal compiler library paths should come after those
17501 # provided the user. The postdeps already come after the
17502 # user supplied libs so there is no need to process them.
17503 if test -z "$compiler_lib_search_path_CXX"; then
17504 compiler_lib_search_path_CXX=$prev$p
17505 else
17506 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
17507 fi
17508 ;;
17509 # The "-l" case would never come before the object being
17510 # linked, so don't bother handling this case.
17511 esac
17512 else
17513 if test -z "$postdeps_CXX"; then
17514 postdeps_CXX=$prev$p
17515 else
17516 postdeps_CXX="${postdeps_CXX} $prev$p"
17517 fi
17518 fi
17519 prev=
17520 ;;
17521
17522 *.lto.$objext) ;; # Ignore GCC LTO objects
17523 *.$objext)
17524 # This assumes that the test object file only shows up
17525 # once in the compiler output.
17526 if test "$p" = "conftest.$objext"; then
17527 pre_test_object_deps_done=yes
17528 continue
17529 fi
17530
17531 if test no = "$pre_test_object_deps_done"; then
17532 if test -z "$predep_objects_CXX"; then
17533 predep_objects_CXX=$p
17534 else
17535 predep_objects_CXX="$predep_objects_CXX $p"
17536 fi
17537 else
17538 if test -z "$postdep_objects_CXX"; then
17539 postdep_objects_CXX=$p
17540 else
17541 postdep_objects_CXX="$postdep_objects_CXX $p"
17542 fi
17543 fi
17544 ;;
17545
17546 *) ;; # Ignore the rest.
17547
17548 esac
17549 done
17550
17551 # Clean up.
17552 rm -f a.out a.exe
17553 else
17554 echo "libtool.m4: error: problem compiling CXX test program"
17555 fi
17556
17557 $RM -f confest.$objext
17558 CFLAGS=$_lt_libdeps_save_CFLAGS
17559
17560 # PORTME: override above test on systems where it is broken
17561 case $host_os in
17562 interix[3-9]*)
17563 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17564 # hack all around it, let's just trust "g++" to DTRT.
17565 predep_objects_CXX=
17566 postdep_objects_CXX=
17567 postdeps_CXX=
17568 ;;
17569 esac
17570
17571
17572 case " $postdeps_CXX " in
17573 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17574 esac
17575 compiler_lib_search_dirs_CXX=
17576 if test -n "${compiler_lib_search_path_CXX}"; then
17577 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
17578 fi
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610 lt_prog_compiler_wl_CXX=
17611 lt_prog_compiler_pic_CXX=
17612 lt_prog_compiler_static_CXX=
17613
17614
17615 # C++ specific cases for pic, static, wl, etc.
17616 if test yes = "$GXX"; then
17617 lt_prog_compiler_wl_CXX='-Wl,'
17618 lt_prog_compiler_static_CXX='-static'
17619
17620 case $host_os in
17621 aix*)
17622 # All AIX code is PIC.
17623 if test ia64 = "$host_cpu"; then
17624 # AIX 5 now supports IA64 processor
17625 lt_prog_compiler_static_CXX='-Bstatic'
17626 fi
17627 lt_prog_compiler_pic_CXX='-fPIC'
17628 ;;
17629
17630 amigaos*)
17631 case $host_cpu in
17632 powerpc)
17633 # see comment about AmigaOS4 .so support
17634 lt_prog_compiler_pic_CXX='-fPIC'
17635 ;;
17636 m68k)
17637 # FIXME: we need at least 68020 code to build shared libraries, but
17638 # adding the '-m68020' flag to GCC prevents building anything better,
17639 # like '-m68040'.
17640 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17641 ;;
17642 esac
17643 ;;
17644
17645 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17646 # PIC is the default for these OSes.
17647 ;;
17648 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17649 # This hack is so that the source file can tell whether it is being
17650 # built for inclusion in a dll (and should export symbols for example).
17651 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17652 # (--disable-auto-import) libraries
17653 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17654 case $host_os in
17655 os2*)
17656 lt_prog_compiler_static_CXX='$wl-static'
17657 ;;
17658 esac
17659 ;;
17660 darwin* | rhapsody*)
17661 # PIC is the default on this platform
17662 # Common symbols not allowed in MH_DYLIB files
17663 lt_prog_compiler_pic_CXX='-fno-common'
17664 ;;
17665 *djgpp*)
17666 # DJGPP does not support shared libraries at all
17667 lt_prog_compiler_pic_CXX=
17668 ;;
17669 haiku*)
17670 # PIC is the default for Haiku.
17671 # The "-static" flag exists, but is broken.
17672 lt_prog_compiler_static_CXX=
17673 ;;
17674 interix[3-9]*)
17675 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17676 # Instead, we relocate shared libraries at runtime.
17677 ;;
17678 sysv4*MP*)
17679 if test -d /usr/nec; then
17680 lt_prog_compiler_pic_CXX=-Kconform_pic
17681 fi
17682 ;;
17683 hpux*)
17684 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17685 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17686 # sets the default TLS model and affects inlining.
17687 case $host_cpu in
17688 hppa*64*)
17689 ;;
17690 *)
17691 lt_prog_compiler_pic_CXX='-fPIC'
17692 ;;
17693 esac
17694 ;;
17695 *qnx* | *nto*)
17696 # QNX uses GNU C++, but need to define -shared option too, otherwise
17697 # it will coredump.
17698 lt_prog_compiler_pic_CXX='-fPIC -shared'
17699 ;;
17700 *)
17701 lt_prog_compiler_pic_CXX='-fPIC'
17702 ;;
17703 esac
17704 else
17705 case $host_os in
17706 aix[4-9]*)
17707 # All AIX code is PIC.
17708 if test ia64 = "$host_cpu"; then
17709 # AIX 5 now supports IA64 processor
17710 lt_prog_compiler_static_CXX='-Bstatic'
17711 else
17712 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17713 fi
17714 ;;
17715 chorus*)
17716 case $cc_basename in
17717 cxch68*)
17718 # Green Hills C++ Compiler
17719 # _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"
17720 ;;
17721 esac
17722 ;;
17723 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
17724 # This hack is so that the source file can tell whether it is being
17725 # built for inclusion in a dll (and should export symbols for example).
17726 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17727 ;;
17728 dgux*)
17729 case $cc_basename in
17730 ec++*)
17731 lt_prog_compiler_pic_CXX='-KPIC'
17732 ;;
17733 ghcx*)
17734 # Green Hills C++ Compiler
17735 lt_prog_compiler_pic_CXX='-pic'
17736 ;;
17737 *)
17738 ;;
17739 esac
17740 ;;
17741 freebsd* | dragonfly* | midnightbsd*)
17742 # FreeBSD uses GNU C++
17743 ;;
17744 hpux9* | hpux10* | hpux11*)
17745 case $cc_basename in
17746 CC*)
17747 lt_prog_compiler_wl_CXX='-Wl,'
17748 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17749 if test ia64 != "$host_cpu"; then
17750 lt_prog_compiler_pic_CXX='+Z'
17751 fi
17752 ;;
17753 aCC*)
17754 lt_prog_compiler_wl_CXX='-Wl,'
17755 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17756 case $host_cpu in
17757 hppa*64*|ia64*)
17758 # +Z the default
17759 ;;
17760 *)
17761 lt_prog_compiler_pic_CXX='+Z'
17762 ;;
17763 esac
17764 ;;
17765 *)
17766 ;;
17767 esac
17768 ;;
17769 interix*)
17770 # This is c89, which is MS Visual C++ (no shared libs)
17771 # Anyone wants to do a port?
17772 ;;
17773 irix5* | irix6* | nonstopux*)
17774 case $cc_basename in
17775 CC*)
17776 lt_prog_compiler_wl_CXX='-Wl,'
17777 lt_prog_compiler_static_CXX='-non_shared'
17778 # CC pic flag -KPIC is the default.
17779 ;;
17780 *)
17781 ;;
17782 esac
17783 ;;
17784 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17785 case $cc_basename in
17786 KCC*)
17787 # KAI C++ Compiler
17788 lt_prog_compiler_wl_CXX='--backend -Wl,'
17789 lt_prog_compiler_pic_CXX='-fPIC'
17790 ;;
17791 ecpc* )
17792 # old Intel C++ for x86_64, which still supported -KPIC.
17793 lt_prog_compiler_wl_CXX='-Wl,'
17794 lt_prog_compiler_pic_CXX='-KPIC'
17795 lt_prog_compiler_static_CXX='-static'
17796 ;;
17797 icpc* )
17798 # Intel C++, used to be incompatible with GCC.
17799 # ICC 10 doesn't accept -KPIC any more.
17800 lt_prog_compiler_wl_CXX='-Wl,'
17801 lt_prog_compiler_pic_CXX='-fPIC'
17802 lt_prog_compiler_static_CXX='-static'
17803 ;;
17804 pgCC* | pgcpp*)
17805 # Portland Group C++ compiler
17806 lt_prog_compiler_wl_CXX='-Wl,'
17807 lt_prog_compiler_pic_CXX='-fpic'
17808 lt_prog_compiler_static_CXX='-Bstatic'
17809 ;;
17810 cxx*)
17811 # Compaq C++
17812 # Make sure the PIC flag is empty. It appears that all Alpha
17813 # Linux and Compaq Tru64 Unix objects are PIC.
17814 lt_prog_compiler_pic_CXX=
17815 lt_prog_compiler_static_CXX='-non_shared'
17816 ;;
17817 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17818 # IBM XL 8.0, 9.0 on PPC and BlueGene
17819 lt_prog_compiler_wl_CXX='-Wl,'
17820 lt_prog_compiler_pic_CXX='-qpic'
17821 lt_prog_compiler_static_CXX='-qstaticlink'
17822 ;;
17823 *)
17824 case `$CC -V 2>&1 | $SED 5q` in
17825 *Sun\ C*)
17826 # Sun C++ 5.9
17827 lt_prog_compiler_pic_CXX='-KPIC'
17828 lt_prog_compiler_static_CXX='-Bstatic'
17829 lt_prog_compiler_wl_CXX='-Qoption ld '
17830 ;;
17831 esac
17832 ;;
17833 esac
17834 ;;
17835 lynxos*)
17836 ;;
17837 m88k*)
17838 ;;
17839 mvs*)
17840 case $cc_basename in
17841 cxx*)
17842 lt_prog_compiler_pic_CXX='-W c,exportall'
17843 ;;
17844 *)
17845 ;;
17846 esac
17847 ;;
17848 netbsd* | netbsdelf*-gnu)
17849 ;;
17850 *-mlibc)
17851 ;;
17852 *qnx* | *nto*)
17853 # QNX uses GNU C++, but need to define -shared option too, otherwise
17854 # it will coredump.
17855 lt_prog_compiler_pic_CXX='-fPIC -shared'
17856 ;;
17857 osf3* | osf4* | osf5*)
17858 case $cc_basename in
17859 KCC*)
17860 lt_prog_compiler_wl_CXX='--backend -Wl,'
17861 ;;
17862 RCC*)
17863 # Rational C++ 2.4.1
17864 lt_prog_compiler_pic_CXX='-pic'
17865 ;;
17866 cxx*)
17867 # Digital/Compaq C++
17868 lt_prog_compiler_wl_CXX='-Wl,'
17869 # Make sure the PIC flag is empty. It appears that all Alpha
17870 # Linux and Compaq Tru64 Unix objects are PIC.
17871 lt_prog_compiler_pic_CXX=
17872 lt_prog_compiler_static_CXX='-non_shared'
17873 ;;
17874 *)
17875 ;;
17876 esac
17877 ;;
17878 psos*)
17879 ;;
17880 serenity*)
17881 ;;
17882 solaris*)
17883 case $cc_basename in
17884 CC* | sunCC*)
17885 # Sun C++ 4.2, 5.x and Centerline C++
17886 lt_prog_compiler_pic_CXX='-KPIC'
17887 lt_prog_compiler_static_CXX='-Bstatic'
17888 lt_prog_compiler_wl_CXX='-Qoption ld '
17889 ;;
17890 gcx*)
17891 # Green Hills C++ Compiler
17892 lt_prog_compiler_pic_CXX='-PIC'
17893 ;;
17894 *)
17895 ;;
17896 esac
17897 ;;
17898 sunos4*)
17899 case $cc_basename in
17900 CC*)
17901 # Sun C++ 4.x
17902 lt_prog_compiler_pic_CXX='-pic'
17903 lt_prog_compiler_static_CXX='-Bstatic'
17904 ;;
17905 lcc*)
17906 # Lucid
17907 lt_prog_compiler_pic_CXX='-pic'
17908 ;;
17909 *)
17910 ;;
17911 esac
17912 ;;
17913 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17914 case $cc_basename in
17915 CC*)
17916 lt_prog_compiler_wl_CXX='-Wl,'
17917 lt_prog_compiler_pic_CXX='-KPIC'
17918 lt_prog_compiler_static_CXX='-Bstatic'
17919 ;;
17920 esac
17921 ;;
17922 tandem*)
17923 case $cc_basename in
17924 NCC*)
17925 # NonStop-UX NCC 3.20
17926 lt_prog_compiler_pic_CXX='-KPIC'
17927 ;;
17928 *)
17929 ;;
17930 esac
17931 ;;
17932 vxworks*)
17933 ;;
17934 *)
17935 lt_prog_compiler_can_build_shared_CXX=no
17936 ;;
17937 esac
17938 fi
17939
17940 case $host_os in
17941 # For platforms that do not support PIC, -DPIC is meaningless:
17942 *djgpp*)
17943 lt_prog_compiler_pic_CXX=
17944 ;;
17945 *)
17946 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17947 ;;
17948 esac
17949
17950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17951 printf %s "checking for $compiler option to produce PIC... " >&6; }
17952 if test ${lt_cv_prog_compiler_pic_CXX+y}
17953 then :
17954 printf %s "(cached) " >&6
17955 else case e in #(
17956 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
17957 esac
17958 fi
17959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17960 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
17961 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17962
17963 #
17964 # Check to make sure the PIC flag actually works.
17965 #
17966 if test -n "$lt_prog_compiler_pic_CXX"; then
17967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17968 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17969 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
17970 then :
17971 printf %s "(cached) " >&6
17972 else case e in #(
17973 e) lt_cv_prog_compiler_pic_works_CXX=no
17974 ac_outfile=conftest.$ac_objext
17975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17976 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
17977 # Insert the option either (1) after the last *FLAGS variable, or
17978 # (2) before a word containing "conftest.", or (3) at the end.
17979 # Note that $ac_compile itself does not contain backslashes and begins
17980 # with a dollar sign (not a hyphen), so the echo should work correctly.
17981 # The option is referenced via a variable to avoid confusing sed.
17982 lt_compile=`echo "$ac_compile" | $SED \
17983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17985 -e 's:$: $lt_compiler_flag:'`
17986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17987 (eval "$lt_compile" 2>conftest.err)
17988 ac_status=$?
17989 cat conftest.err >&5
17990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991 if (exit $ac_status) && test -s "$ac_outfile"; then
17992 # The compiler can only warn and ignore the option if not recognized
17993 # So say no if there are warnings other than the usual output.
17994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17997 lt_cv_prog_compiler_pic_works_CXX=yes
17998 fi
17999 fi
18000 $RM conftest*
18001 ;;
18002 esac
18003 fi
18004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18005 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18006
18007 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18008 case $lt_prog_compiler_pic_CXX in
18009 "" | " "*) ;;
18010 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18011 esac
18012 else
18013 lt_prog_compiler_pic_CXX=
18014 lt_prog_compiler_can_build_shared_CXX=no
18015 fi
18016
18017 fi
18018
18019
18020
18021
18022
18023 #
18024 # Check to make sure the static flag actually works.
18025 #
18026 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18028 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18029 if test ${lt_cv_prog_compiler_static_works_CXX+y}
18030 then :
18031 printf %s "(cached) " >&6
18032 else case e in #(
18033 e) lt_cv_prog_compiler_static_works_CXX=no
18034 save_LDFLAGS=$LDFLAGS
18035 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18036 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18037 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18038 # The linker can only warn and ignore the option if not recognized
18039 # So say no if there are warnings
18040 if test -s conftest.err; then
18041 # Append any errors to the config.log.
18042 cat conftest.err 1>&5
18043 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18044 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18045 if diff conftest.exp conftest.er2 >/dev/null; then
18046 lt_cv_prog_compiler_static_works_CXX=yes
18047 fi
18048 else
18049 lt_cv_prog_compiler_static_works_CXX=yes
18050 fi
18051 fi
18052 $RM -r conftest*
18053 LDFLAGS=$save_LDFLAGS
18054 ;;
18055 esac
18056 fi
18057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18058 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18059
18060 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18061 :
18062 else
18063 lt_prog_compiler_static_CXX=
18064 fi
18065
18066
18067
18068
18069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18070 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18071 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18072 then :
18073 printf %s "(cached) " >&6
18074 else case e in #(
18075 e) lt_cv_prog_compiler_c_o_CXX=no
18076 $RM -r conftest 2>/dev/null
18077 mkdir conftest
18078 cd conftest
18079 mkdir out
18080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18081
18082 lt_compiler_flag="-o out/conftest2.$ac_objext"
18083 # Insert the option either (1) after the last *FLAGS variable, or
18084 # (2) before a word containing "conftest.", or (3) at the end.
18085 # Note that $ac_compile itself does not contain backslashes and begins
18086 # with a dollar sign (not a hyphen), so the echo should work correctly.
18087 lt_compile=`echo "$ac_compile" | $SED \
18088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18090 -e 's:$: $lt_compiler_flag:'`
18091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18092 (eval "$lt_compile" 2>out/conftest.err)
18093 ac_status=$?
18094 cat out/conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18097 then
18098 # The compiler can only warn and ignore the option if not recognized
18099 # So say no if there are warnings
18100 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18103 lt_cv_prog_compiler_c_o_CXX=yes
18104 fi
18105 fi
18106 chmod u+w . 2>&5
18107 $RM conftest*
18108 # SGI C++ compiler will create directory out/ii_files/ for
18109 # template instantiation
18110 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18111 $RM out/* && rmdir out
18112 cd ..
18113 $RM -r conftest
18114 $RM conftest*
18115 ;;
18116 esac
18117 fi
18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18119 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18120
18121
18122
18123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18124 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18125 if test ${lt_cv_prog_compiler_c_o_CXX+y}
18126 then :
18127 printf %s "(cached) " >&6
18128 else case e in #(
18129 e) lt_cv_prog_compiler_c_o_CXX=no
18130 $RM -r conftest 2>/dev/null
18131 mkdir conftest
18132 cd conftest
18133 mkdir out
18134 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18135
18136 lt_compiler_flag="-o out/conftest2.$ac_objext"
18137 # Insert the option either (1) after the last *FLAGS variable, or
18138 # (2) before a word containing "conftest.", or (3) at the end.
18139 # Note that $ac_compile itself does not contain backslashes and begins
18140 # with a dollar sign (not a hyphen), so the echo should work correctly.
18141 lt_compile=`echo "$ac_compile" | $SED \
18142 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18143 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18144 -e 's:$: $lt_compiler_flag:'`
18145 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18146 (eval "$lt_compile" 2>out/conftest.err)
18147 ac_status=$?
18148 cat out/conftest.err >&5
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18151 then
18152 # The compiler can only warn and ignore the option if not recognized
18153 # So say no if there are warnings
18154 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18155 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18156 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18157 lt_cv_prog_compiler_c_o_CXX=yes
18158 fi
18159 fi
18160 chmod u+w . 2>&5
18161 $RM conftest*
18162 # SGI C++ compiler will create directory out/ii_files/ for
18163 # template instantiation
18164 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18165 $RM out/* && rmdir out
18166 cd ..
18167 $RM -r conftest
18168 $RM conftest*
18169 ;;
18170 esac
18171 fi
18172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18173 printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18174
18175
18176
18177
18178 hard_links=nottested
18179 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18180 # do not overwrite the value of need_locks provided by the user
18181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18182 printf %s "checking if we can lock with hard links... " >&6; }
18183 hard_links=yes
18184 $RM conftest*
18185 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18186 touch conftest.a
18187 ln conftest.a conftest.b 2>&5 || hard_links=no
18188 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18190 printf "%s\n" "$hard_links" >&6; }
18191 if test no = "$hard_links"; then
18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18193 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18194 need_locks=warn
18195 fi
18196 else
18197 need_locks=no
18198 fi
18199
18200
18201
18202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18203 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18204
18205 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18206 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18207 case $host_os in
18208 aix[4-9]*)
18209 # If we're using GNU nm, then we don't want the "-C" option.
18210 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18211 # Without the "-l" option, or with the "-B" option, AIX nm treats
18212 # weak defined symbols like other global defined symbols, whereas
18213 # GNU nm marks them as "W".
18214 # While the 'weak' keyword is ignored in the Export File, we need
18215 # it in the Import File for the 'aix-soname' feature, so we have
18216 # to replace the "-B" option with "-P" for AIX nm.
18217 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18218 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'
18219 else
18220 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
18221 fi
18222 ;;
18223 pw32*)
18224 export_symbols_cmds_CXX=$ltdll_cmds
18225 ;;
18226 cygwin* | mingw* | windows* | cegcc*)
18227 case $cc_basename in
18228 cl* | icl*)
18229 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18230 ;;
18231 *)
18232 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'
18233 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18234 ;;
18235 esac
18236 ;;
18237 *)
18238 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18239 ;;
18240 esac
18241
18242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18243 printf "%s\n" "$ld_shlibs_CXX" >&6; }
18244 test no = "$ld_shlibs_CXX" && can_build_shared=no
18245
18246 with_gnu_ld_CXX=$with_gnu_ld
18247
18248
18249
18250
18251
18252
18253 #
18254 # Do we need to explicitly link libc?
18255 #
18256 case "x$archive_cmds_need_lc_CXX" in
18257 x|xyes)
18258 # Assume -lc should be added
18259 archive_cmds_need_lc_CXX=yes
18260
18261 if test yes,yes = "$GCC,$enable_shared"; then
18262 case $archive_cmds_CXX in
18263 *'~'*)
18264 # FIXME: we may have to deal with multi-command sequences.
18265 ;;
18266 '$CC '*)
18267 # Test whether the compiler implicitly links with -lc since on some
18268 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18269 # to ld, don't add -lc before -lgcc.
18270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18271 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18272 if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18273 then :
18274 printf %s "(cached) " >&6
18275 else case e in #(
18276 e) $RM conftest*
18277 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18278
18279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18280 (eval $ac_compile) 2>&5
18281 ac_status=$?
18282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18283 test $ac_status = 0; } 2>conftest.err; then
18284 soname=conftest
18285 lib=conftest
18286 libobjs=conftest.$ac_objext
18287 deplibs=
18288 wl=$lt_prog_compiler_wl_CXX
18289 pic_flag=$lt_prog_compiler_pic_CXX
18290 compiler_flags=-v
18291 linker_flags=-v
18292 verstring=
18293 output_objdir=.
18294 libname=conftest
18295 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18296 allow_undefined_flag_CXX=
18297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18298 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18299 ac_status=$?
18300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18301 test $ac_status = 0; }
18302 then
18303 lt_cv_archive_cmds_need_lc_CXX=no
18304 else
18305 lt_cv_archive_cmds_need_lc_CXX=yes
18306 fi
18307 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18308 else
18309 cat conftest.err 1>&5
18310 fi
18311 $RM conftest*
18312 ;;
18313 esac
18314 fi
18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18316 printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18317 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18318 ;;
18319 esac
18320 fi
18321 ;;
18322 esac
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18386 printf %s "checking dynamic linker characteristics... " >&6; }
18387
18388 library_names_spec=
18389 libname_spec='lib$name'
18390 soname_spec=
18391 shrext_cmds=.so
18392 postinstall_cmds=
18393 postuninstall_cmds=
18394 finish_cmds=
18395 finish_eval=
18396 shlibpath_var=
18397 shlibpath_overrides_runpath=unknown
18398 version_type=none
18399 dynamic_linker="$host_os ld.so"
18400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18401 need_lib_prefix=unknown
18402 hardcode_into_libs=no
18403
18404 # when you set need_version to no, make sure it does not cause -set_version
18405 # flags to be left without arguments
18406 need_version=unknown
18407
18408
18409
18410 case $host_os in
18411 aix3*)
18412 version_type=linux # correct to gnu/linux during the next big refactor
18413 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18414 shlibpath_var=LIBPATH
18415
18416 # AIX 3 has no versioning support, so we append a major version to the name.
18417 soname_spec='$libname$release$shared_ext$major'
18418 ;;
18419
18420 aix[4-9]*)
18421 version_type=linux # correct to gnu/linux during the next big refactor
18422 need_lib_prefix=no
18423 need_version=no
18424 hardcode_into_libs=yes
18425 if test ia64 = "$host_cpu"; then
18426 # AIX 5 supports IA64
18427 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18428 shlibpath_var=LD_LIBRARY_PATH
18429 else
18430 # With GCC up to 2.95.x, collect2 would create an import file
18431 # for dependence libraries. The import file would start with
18432 # the line '#! .'. This would cause the generated library to
18433 # depend on '.', always an invalid library. This was fixed in
18434 # development snapshots of GCC prior to 3.0.
18435 case $host_os in
18436 aix4 | aix4.[01] | aix4.[01].*)
18437 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18438 echo ' yes '
18439 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18440 :
18441 else
18442 can_build_shared=no
18443 fi
18444 ;;
18445 esac
18446 # Using Import Files as archive members, it is possible to support
18447 # filename-based versioning of shared library archives on AIX. While
18448 # this would work for both with and without runtime linking, it will
18449 # prevent static linking of such archives. So we do filename-based
18450 # shared library versioning with .so extension only, which is used
18451 # when both runtime linking and shared linking is enabled.
18452 # Unfortunately, runtime linking may impact performance, so we do
18453 # not want this to be the default eventually. Also, we use the
18454 # versioned .so libs for executables only if there is the -brtl
18455 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
18456 # To allow for filename-based versioning support, we need to create
18457 # libNAME.so.V as an archive file, containing:
18458 # *) an Import File, referring to the versioned filename of the
18459 # archive as well as the shared archive member, telling the
18460 # bitwidth (32 or 64) of that shared object, and providing the
18461 # list of exported symbols of that shared object, eventually
18462 # decorated with the 'weak' keyword
18463 # *) the shared object with the F_LOADONLY flag set, to really avoid
18464 # it being seen by the linker.
18465 # At run time we better use the real file rather than another symlink,
18466 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18467
18468 case $with_aix_soname,$aix_use_runtimelinking in
18469 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18470 # soname into executable. Probably we can add versioning support to
18471 # collect2, so additional links can be useful in future.
18472 aix,yes) # traditional libtool
18473 dynamic_linker='AIX unversionable lib.so'
18474 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18475 # instead of lib<name>.a to let people know that these are not
18476 # typical AIX shared libraries.
18477 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18478 ;;
18479 aix,no) # traditional AIX only
18480 dynamic_linker='AIX lib.a(lib.so.V)'
18481 # We preserve .a as extension for shared libraries through AIX4.2
18482 # and later when we are not doing run time linking.
18483 library_names_spec='$libname$release.a $libname.a'
18484 soname_spec='$libname$release$shared_ext$major'
18485 ;;
18486 svr4,*) # full svr4 only
18487 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18488 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18489 # We do not specify a path in Import Files, so LIBPATH fires.
18490 shlibpath_overrides_runpath=yes
18491 ;;
18492 *,yes) # both, prefer svr4
18493 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18494 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18495 # unpreferred sharedlib libNAME.a needs extra handling
18496 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"'
18497 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"'
18498 # We do not specify a path in Import Files, so LIBPATH fires.
18499 shlibpath_overrides_runpath=yes
18500 ;;
18501 *,no) # both, prefer aix
18502 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18503 library_names_spec='$libname$release.a $libname.a'
18504 soname_spec='$libname$release$shared_ext$major'
18505 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18506 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)'
18507 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"'
18508 ;;
18509 esac
18510 shlibpath_var=LIBPATH
18511 fi
18512 ;;
18513
18514 amigaos*)
18515 case $host_cpu in
18516 powerpc)
18517 # Since July 2007 AmigaOS4 officially supports .so libraries.
18518 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18519 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18520 ;;
18521 m68k)
18522 library_names_spec='$libname.ixlibrary $libname.a'
18523 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18524 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'
18525 ;;
18526 esac
18527 ;;
18528
18529 beos*)
18530 library_names_spec='$libname$shared_ext'
18531 dynamic_linker="$host_os ld.so"
18532 shlibpath_var=LIBRARY_PATH
18533 ;;
18534
18535 bsdi[45]*)
18536 version_type=linux # correct to gnu/linux during the next big refactor
18537 need_version=no
18538 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18539 soname_spec='$libname$release$shared_ext$major'
18540 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18543 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18544 # the default ld.so.conf also contains /usr/contrib/lib and
18545 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18546 # libtool to hard-code these into programs
18547 ;;
18548
18549 cygwin* | mingw* | windows* | pw32* | cegcc*)
18550 version_type=windows
18551 shrext_cmds=.dll
18552 need_version=no
18553 need_lib_prefix=no
18554
18555 case $GCC,$cc_basename in
18556 yes,*)
18557 # gcc
18558 library_names_spec='$libname.dll.a'
18559 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18560 # If user builds GCC with multilib enabled,
18561 # it should just install on $(libdir)
18562 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
18563 if test xyes = x"$multilib"; then
18564 postinstall_cmds='base_file=`basename \$file`~
18565 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18566 dldir=$destdir/`dirname \$dlpath`~
18567 $install_prog $dir/$dlname $destdir/$dlname~
18568 chmod a+x $destdir/$dlname~
18569 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18570 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
18571 fi'
18572 else
18573 postinstall_cmds='base_file=`basename \$file`~
18574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18575 dldir=$destdir/`dirname \$dlpath`~
18576 test -d \$dldir || mkdir -p \$dldir~
18577 $install_prog $dir/$dlname \$dldir/$dlname~
18578 chmod a+x \$dldir/$dlname~
18579 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18580 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18581 fi'
18582 fi
18583 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18584 dlpath=$dir/\$dldll~
18585 $RM \$dlpath'
18586 shlibpath_overrides_runpath=yes
18587
18588 case $host_os in
18589 cygwin*)
18590 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18591 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18592
18593 ;;
18594 mingw* | windows* | cegcc*)
18595 # MinGW DLLs use traditional 'lib' prefix
18596 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18597 ;;
18598 pw32*)
18599 # pw32 DLLs use 'pw' prefix rather than 'lib'
18600 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18601 ;;
18602 esac
18603 dynamic_linker='Win32 ld.exe'
18604 ;;
18605
18606 *,cl* | *,icl*)
18607 # Native MSVC or ICC
18608 libname_spec='$name'
18609 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18610 library_names_spec='$libname.dll.lib'
18611
18612 case $build_os in
18613 mingw* | windows*)
18614 sys_lib_search_path_spec=
18615 lt_save_ifs=$IFS
18616 IFS=';'
18617 for lt_path in $LIB
18618 do
18619 IFS=$lt_save_ifs
18620 # Let DOS variable expansion print the short 8.3 style file name.
18621 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18622 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18623 done
18624 IFS=$lt_save_ifs
18625 # Convert to MSYS style.
18626 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18627 ;;
18628 cygwin*)
18629 # Convert to unix form, then to dos form, then back to unix form
18630 # but this time dos style (no spaces!) so that the unix form looks
18631 # like /cygdrive/c/PROGRA~1:/cygdr...
18632 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18633 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18634 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18635 ;;
18636 *)
18637 sys_lib_search_path_spec=$LIB
18638 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18639 # It is most probably a Windows format PATH.
18640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18641 else
18642 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18643 fi
18644 # FIXME: find the short name or the path components, as spaces are
18645 # common. (e.g. "Program Files" -> "PROGRA~1")
18646 ;;
18647 esac
18648
18649 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18650 postinstall_cmds='base_file=`basename \$file`~
18651 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18652 dldir=$destdir/`dirname \$dlpath`~
18653 test -d \$dldir || mkdir -p \$dldir~
18654 $install_prog $dir/$dlname \$dldir/$dlname'
18655 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18656 dlpath=$dir/\$dldll~
18657 $RM \$dlpath'
18658 shlibpath_overrides_runpath=yes
18659 dynamic_linker='Win32 link.exe'
18660 ;;
18661
18662 *)
18663 # Assume MSVC and ICC wrapper
18664 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18665 dynamic_linker='Win32 ld.exe'
18666 ;;
18667 esac
18668 # FIXME: first we should search . and the directory the executable is in
18669 shlibpath_var=PATH
18670 ;;
18671
18672 darwin* | rhapsody*)
18673 dynamic_linker="$host_os dyld"
18674 version_type=darwin
18675 need_lib_prefix=no
18676 need_version=no
18677 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18678 soname_spec='$libname$release$major$shared_ext'
18679 shlibpath_overrides_runpath=yes
18680 shlibpath_var=DYLD_LIBRARY_PATH
18681 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18682
18683 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18684 ;;
18685
18686 dgux*)
18687 version_type=linux # correct to gnu/linux during the next big refactor
18688 need_lib_prefix=no
18689 need_version=no
18690 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18691 soname_spec='$libname$release$shared_ext$major'
18692 shlibpath_var=LD_LIBRARY_PATH
18693 ;;
18694
18695 freebsd* | dragonfly* | midnightbsd*)
18696 # DragonFly does not have aout. When/if they implement a new
18697 # versioning mechanism, adjust this.
18698 if test -x /usr/bin/objformat; then
18699 objformat=`/usr/bin/objformat`
18700 else
18701 case $host_os in
18702 freebsd[23].*) objformat=aout ;;
18703 *) objformat=elf ;;
18704 esac
18705 fi
18706 version_type=freebsd-$objformat
18707 case $version_type in
18708 freebsd-elf*)
18709 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18710 soname_spec='$libname$release$shared_ext$major'
18711 need_version=no
18712 need_lib_prefix=no
18713 ;;
18714 freebsd-*)
18715 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18716 need_version=yes
18717 ;;
18718 esac
18719 case $host_cpu in
18720 powerpc64)
18721 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
18722 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
18723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18724 /* end confdefs.h. */
18725 int test_pointer_size[sizeof (void *) - 5];
18726
18727 _ACEOF
18728 if ac_fn_cxx_try_compile "$LINENO"
18729 then :
18730 shlibpath_var=LD_LIBRARY_PATH
18731 else case e in #(
18732 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
18733 esac
18734 fi
18735 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18736 ;;
18737 *)
18738 shlibpath_var=LD_LIBRARY_PATH
18739 ;;
18740 esac
18741 case $host_os in
18742 freebsd2.*)
18743 shlibpath_overrides_runpath=yes
18744 ;;
18745 freebsd3.[01]* | freebsdelf3.[01]*)
18746 shlibpath_overrides_runpath=yes
18747 hardcode_into_libs=yes
18748 ;;
18749 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18750 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18751 shlibpath_overrides_runpath=no
18752 hardcode_into_libs=yes
18753 ;;
18754 *) # from 4.6 on, and DragonFly
18755 shlibpath_overrides_runpath=yes
18756 hardcode_into_libs=yes
18757 ;;
18758 esac
18759 ;;
18760
18761 haiku*)
18762 version_type=linux # correct to gnu/linux during the next big refactor
18763 need_lib_prefix=no
18764 need_version=no
18765 dynamic_linker="$host_os runtime_loader"
18766 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18767 soname_spec='$libname$release$shared_ext$major'
18768 shlibpath_var=LIBRARY_PATH
18769 shlibpath_overrides_runpath=no
18770 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
18771 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
18772 hardcode_into_libs=no
18773 ;;
18774
18775 hpux9* | hpux10* | hpux11*)
18776 # Give a soname corresponding to the major version so that dld.sl refuses to
18777 # link against other versions.
18778 version_type=sunos
18779 need_lib_prefix=no
18780 need_version=no
18781 case $host_cpu in
18782 ia64*)
18783 shrext_cmds='.so'
18784 hardcode_into_libs=yes
18785 dynamic_linker="$host_os dld.so"
18786 shlibpath_var=LD_LIBRARY_PATH
18787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18789 soname_spec='$libname$release$shared_ext$major'
18790 if test 32 = "$HPUX_IA64_MODE"; then
18791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18792 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18793 else
18794 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18795 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18796 fi
18797 ;;
18798 hppa*64*)
18799 shrext_cmds='.sl'
18800 hardcode_into_libs=yes
18801 dynamic_linker="$host_os dld.sl"
18802 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18805 soname_spec='$libname$release$shared_ext$major'
18806 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18808 ;;
18809 *)
18810 shrext_cmds='.sl'
18811 dynamic_linker="$host_os dld.sl"
18812 shlibpath_var=SHLIB_PATH
18813 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18814 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18815 soname_spec='$libname$release$shared_ext$major'
18816 ;;
18817 esac
18818 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18819 postinstall_cmds='chmod 555 $lib'
18820 # or fails outright, so override atomically:
18821 install_override_mode=555
18822 ;;
18823
18824 interix[3-9]*)
18825 version_type=linux # correct to gnu/linux during the next big refactor
18826 need_lib_prefix=no
18827 need_version=no
18828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18829 soname_spec='$libname$release$shared_ext$major'
18830 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18831 shlibpath_var=LD_LIBRARY_PATH
18832 shlibpath_overrides_runpath=no
18833 hardcode_into_libs=yes
18834 ;;
18835
18836 irix5* | irix6* | nonstopux*)
18837 case $host_os in
18838 nonstopux*) version_type=nonstopux ;;
18839 *)
18840 if test yes = "$lt_cv_prog_gnu_ld"; then
18841 version_type=linux # correct to gnu/linux during the next big refactor
18842 else
18843 version_type=irix
18844 fi ;;
18845 esac
18846 need_lib_prefix=no
18847 need_version=no
18848 soname_spec='$libname$release$shared_ext$major'
18849 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18850 case $host_os in
18851 irix5* | nonstopux*)
18852 libsuff= shlibsuff=
18853 ;;
18854 *)
18855 case $LD in # libtool.m4 will add one of these switches to LD
18856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18857 libsuff= shlibsuff= libmagic=32-bit;;
18858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18859 libsuff=32 shlibsuff=N32 libmagic=N32;;
18860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18861 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18862 *) libsuff= shlibsuff= libmagic=never-match;;
18863 esac
18864 ;;
18865 esac
18866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18867 shlibpath_overrides_runpath=no
18868 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18869 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18870 hardcode_into_libs=yes
18871 ;;
18872
18873 # No shared lib support for Linux oldld, aout, or coff.
18874 linux*oldld* | linux*aout* | linux*coff*)
18875 dynamic_linker=no
18876 ;;
18877
18878 linux*android*)
18879 version_type=none # Android doesn't support versioned libraries.
18880 need_lib_prefix=no
18881 need_version=no
18882 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
18883 soname_spec='$libname$release$shared_ext'
18884 finish_cmds=
18885 shlibpath_var=LD_LIBRARY_PATH
18886 shlibpath_overrides_runpath=yes
18887
18888 # This implies no fast_install, which is unacceptable.
18889 # Some rework will be needed to allow for fast_install
18890 # before this can be enabled.
18891 hardcode_into_libs=yes
18892
18893 dynamic_linker='Android linker'
18894 # -rpath works at least for libraries that are not overridden by
18895 # libraries installed in system locations.
18896 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
18897 ;;
18898
18899 # This must be glibc/ELF.
18900 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18901 version_type=linux # correct to gnu/linux during the next big refactor
18902 need_lib_prefix=no
18903 need_version=no
18904 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18905 soname_spec='$libname$release$shared_ext$major'
18906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18907 shlibpath_var=LD_LIBRARY_PATH
18908 shlibpath_overrides_runpath=no
18909
18910 # Some binutils ld are patched to set DT_RUNPATH
18911 if test ${lt_cv_shlibpath_overrides_runpath+y}
18912 then :
18913 printf %s "(cached) " >&6
18914 else case e in #(
18915 e) lt_cv_shlibpath_overrides_runpath=no
18916 save_LDFLAGS=$LDFLAGS
18917 save_libdir=$libdir
18918 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18919 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18921 /* end confdefs.h. */
18922
18923 int
18924 main (void)
18925 {
18926
18927 ;
18928 return 0;
18929 }
18930 _ACEOF
18931 if ac_fn_cxx_try_link "$LINENO"
18932 then :
18933 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
18934 then :
18935 lt_cv_shlibpath_overrides_runpath=yes
18936 fi
18937 fi
18938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18939 conftest$ac_exeext conftest.$ac_ext
18940 LDFLAGS=$save_LDFLAGS
18941 libdir=$save_libdir
18942 ;;
18943 esac
18944 fi
18945
18946 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18947
18948 # This implies no fast_install, which is unacceptable.
18949 # Some rework will be needed to allow for fast_install
18950 # before this can be enabled.
18951 hardcode_into_libs=yes
18952
18953 # Add ABI-specific directories to the system library path.
18954 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18955
18956 # Ideally, we could use ldconfig to report *all* directories which are
18957 # searched for libraries, however this is still not possible. Aside from not
18958 # being certain /sbin/ldconfig is available, command
18959 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18960 # even though it is searched at run-time. Try to do the best guess by
18961 # appending ld.so.conf contents (and includes) to the search path.
18962 if test -f /etc/ld.so.conf; then
18963 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' ' '`
18964 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18965 fi
18966
18967 # We used to test for /lib/ld.so.1 and disable shared libraries on
18968 # powerpc, because MkLinux only supported shared libraries with the
18969 # GNU dynamic linker. Since this was broken with cross compilers,
18970 # most powerpc-linux boxes support dynamic linking these days and
18971 # people can always --disable-shared, the test was removed, and we
18972 # assume the GNU/Linux dynamic linker is in use.
18973 dynamic_linker='GNU/Linux ld.so'
18974 ;;
18975
18976 netbsdelf*-gnu)
18977 version_type=linux
18978 need_lib_prefix=no
18979 need_version=no
18980 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18981 soname_spec='$libname$release$shared_ext$major'
18982 shlibpath_var=LD_LIBRARY_PATH
18983 shlibpath_overrides_runpath=no
18984 hardcode_into_libs=yes
18985 dynamic_linker='NetBSD ld.elf_so'
18986 ;;
18987
18988 netbsd*)
18989 version_type=sunos
18990 need_lib_prefix=no
18991 need_version=no
18992 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18993 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18994 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18995 dynamic_linker='NetBSD (a.out) ld.so'
18996 else
18997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18998 soname_spec='$libname$release$shared_ext$major'
18999 dynamic_linker='NetBSD ld.elf_so'
19000 fi
19001 shlibpath_var=LD_LIBRARY_PATH
19002 shlibpath_overrides_runpath=yes
19003 hardcode_into_libs=yes
19004 ;;
19005
19006 *-mlibc)
19007 version_type=linux # correct to gnu/linux during the next big refactor
19008 need_lib_prefix=no
19009 need_version=no
19010 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19011 soname_spec='$libname$release$shared_ext$major'
19012 dynamic_linker='mlibc ld.so'
19013 shlibpath_var=LD_LIBRARY_PATH
19014 shlibpath_overrides_runpath=no
19015 hardcode_into_libs=yes
19016 ;;
19017
19018 newsos6)
19019 version_type=linux # correct to gnu/linux during the next big refactor
19020 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19021 shlibpath_var=LD_LIBRARY_PATH
19022 shlibpath_overrides_runpath=yes
19023 ;;
19024
19025 *nto* | *qnx*)
19026 version_type=qnx
19027 need_lib_prefix=no
19028 need_version=no
19029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19030 soname_spec='$libname$release$shared_ext$major'
19031 shlibpath_var=LD_LIBRARY_PATH
19032 shlibpath_overrides_runpath=no
19033 hardcode_into_libs=yes
19034 dynamic_linker='ldqnx.so'
19035 ;;
19036
19037 openbsd*)
19038 version_type=sunos
19039 sys_lib_dlsearch_path_spec=/usr/lib
19040 need_lib_prefix=no
19041 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19042 need_version=no
19043 else
19044 need_version=yes
19045 fi
19046 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19047 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19048 shlibpath_var=LD_LIBRARY_PATH
19049 shlibpath_overrides_runpath=yes
19050 ;;
19051
19052 os2*)
19053 libname_spec='$name'
19054 version_type=windows
19055 shrext_cmds=.dll
19056 need_version=no
19057 need_lib_prefix=no
19058 # OS/2 can only load a DLL with a base name of 8 characters or less.
19059 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19060 v=$($ECHO $release$versuffix | tr -d .-);
19061 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19062 $ECHO $n$v`$shared_ext'
19063 library_names_spec='${libname}_dll.$libext'
19064 dynamic_linker='OS/2 ld.exe'
19065 shlibpath_var=BEGINLIBPATH
19066 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19068 postinstall_cmds='base_file=`basename \$file`~
19069 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19070 dldir=$destdir/`dirname \$dlpath`~
19071 test -d \$dldir || mkdir -p \$dldir~
19072 $install_prog $dir/$dlname \$dldir/$dlname~
19073 chmod a+x \$dldir/$dlname~
19074 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19075 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19076 fi'
19077 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19078 dlpath=$dir/\$dldll~
19079 $RM \$dlpath'
19080 ;;
19081
19082 osf3* | osf4* | osf5*)
19083 version_type=osf
19084 need_lib_prefix=no
19085 need_version=no
19086 soname_spec='$libname$release$shared_ext$major'
19087 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19088 shlibpath_var=LD_LIBRARY_PATH
19089 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19091 ;;
19092
19093 rdos*)
19094 dynamic_linker=no
19095 ;;
19096
19097 serenity*)
19098 version_type=linux # correct to gnu/linux during the next big refactor
19099 need_lib_prefix=no
19100 need_version=no
19101 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19102 soname_spec='$libname$release$shared_ext$major'
19103 shlibpath_var=LD_LIBRARY_PATH
19104 shlibpath_overrides_runpath=no
19105 dynamic_linker='SerenityOS LibELF'
19106 ;;
19107
19108 solaris*)
19109 version_type=linux # correct to gnu/linux during the next big refactor
19110 need_lib_prefix=no
19111 need_version=no
19112 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19113 soname_spec='$libname$release$shared_ext$major'
19114 shlibpath_var=LD_LIBRARY_PATH
19115 shlibpath_overrides_runpath=yes
19116 hardcode_into_libs=yes
19117 # ldd complains unless libraries are executable
19118 postinstall_cmds='chmod +x $lib'
19119 ;;
19120
19121 sunos4*)
19122 version_type=sunos
19123 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19125 shlibpath_var=LD_LIBRARY_PATH
19126 shlibpath_overrides_runpath=yes
19127 if test yes = "$with_gnu_ld"; then
19128 need_lib_prefix=no
19129 fi
19130 need_version=yes
19131 ;;
19132
19133 sysv4 | sysv4.3*)
19134 version_type=linux # correct to gnu/linux during the next big refactor
19135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19136 soname_spec='$libname$release$shared_ext$major'
19137 shlibpath_var=LD_LIBRARY_PATH
19138 case $host_vendor in
19139 sni)
19140 shlibpath_overrides_runpath=no
19141 need_lib_prefix=no
19142 runpath_var=LD_RUN_PATH
19143 ;;
19144 siemens)
19145 need_lib_prefix=no
19146 ;;
19147 motorola)
19148 need_lib_prefix=no
19149 need_version=no
19150 shlibpath_overrides_runpath=no
19151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19152 ;;
19153 esac
19154 ;;
19155
19156 sysv4*MP*)
19157 if test -d /usr/nec; then
19158 version_type=linux # correct to gnu/linux during the next big refactor
19159 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19160 soname_spec='$libname$shared_ext.$major'
19161 shlibpath_var=LD_LIBRARY_PATH
19162 fi
19163 ;;
19164
19165 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19166 version_type=sco
19167 need_lib_prefix=no
19168 need_version=no
19169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19170 soname_spec='$libname$release$shared_ext$major'
19171 shlibpath_var=LD_LIBRARY_PATH
19172 shlibpath_overrides_runpath=yes
19173 hardcode_into_libs=yes
19174 if test yes = "$with_gnu_ld"; then
19175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19176 else
19177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19178 case $host_os in
19179 sco3.2v5*)
19180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19181 ;;
19182 esac
19183 fi
19184 sys_lib_dlsearch_path_spec='/usr/lib'
19185 ;;
19186
19187 tpf*)
19188 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19189 version_type=linux # correct to gnu/linux during the next big refactor
19190 need_lib_prefix=no
19191 need_version=no
19192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19193 shlibpath_var=LD_LIBRARY_PATH
19194 shlibpath_overrides_runpath=no
19195 hardcode_into_libs=yes
19196 ;;
19197
19198 uts4*)
19199 version_type=linux # correct to gnu/linux during the next big refactor
19200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19201 soname_spec='$libname$release$shared_ext$major'
19202 shlibpath_var=LD_LIBRARY_PATH
19203 ;;
19204
19205 emscripten*)
19206 version_type=none
19207 need_lib_prefix=no
19208 need_version=no
19209 library_names_spec='$libname$release$shared_ext'
19210 soname_spec='$libname$release$shared_ext'
19211 finish_cmds=
19212 dynamic_linker="Emscripten linker"
19213 lt_prog_compiler_wl_CXX=
19214 lt_prog_compiler_pic_CXX=
19215 lt_prog_compiler_static_CXX=
19216
19217
19218 # C++ specific cases for pic, static, wl, etc.
19219 if test yes = "$GXX"; then
19220 lt_prog_compiler_wl_CXX='-Wl,'
19221 lt_prog_compiler_static_CXX='-static'
19222
19223 case $host_os in
19224 aix*)
19225 # All AIX code is PIC.
19226 if test ia64 = "$host_cpu"; then
19227 # AIX 5 now supports IA64 processor
19228 lt_prog_compiler_static_CXX='-Bstatic'
19229 fi
19230 lt_prog_compiler_pic_CXX='-fPIC'
19231 ;;
19232
19233 amigaos*)
19234 case $host_cpu in
19235 powerpc)
19236 # see comment about AmigaOS4 .so support
19237 lt_prog_compiler_pic_CXX='-fPIC'
19238 ;;
19239 m68k)
19240 # FIXME: we need at least 68020 code to build shared libraries, but
19241 # adding the '-m68020' flag to GCC prevents building anything better,
19242 # like '-m68040'.
19243 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19244 ;;
19245 esac
19246 ;;
19247
19248 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19249 # PIC is the default for these OSes.
19250 ;;
19251 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19252 # This hack is so that the source file can tell whether it is being
19253 # built for inclusion in a dll (and should export symbols for example).
19254 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19255 # (--disable-auto-import) libraries
19256 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19257 case $host_os in
19258 os2*)
19259 lt_prog_compiler_static_CXX='$wl-static'
19260 ;;
19261 esac
19262 ;;
19263 darwin* | rhapsody*)
19264 # PIC is the default on this platform
19265 # Common symbols not allowed in MH_DYLIB files
19266 lt_prog_compiler_pic_CXX='-fno-common'
19267 ;;
19268 *djgpp*)
19269 # DJGPP does not support shared libraries at all
19270 lt_prog_compiler_pic_CXX=
19271 ;;
19272 haiku*)
19273 # PIC is the default for Haiku.
19274 # The "-static" flag exists, but is broken.
19275 lt_prog_compiler_static_CXX=
19276 ;;
19277 interix[3-9]*)
19278 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19279 # Instead, we relocate shared libraries at runtime.
19280 ;;
19281 sysv4*MP*)
19282 if test -d /usr/nec; then
19283 lt_prog_compiler_pic_CXX=-Kconform_pic
19284 fi
19285 ;;
19286 hpux*)
19287 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19288 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19289 # sets the default TLS model and affects inlining.
19290 case $host_cpu in
19291 hppa*64*)
19292 ;;
19293 *)
19294 lt_prog_compiler_pic_CXX='-fPIC'
19295 ;;
19296 esac
19297 ;;
19298 *qnx* | *nto*)
19299 # QNX uses GNU C++, but need to define -shared option too, otherwise
19300 # it will coredump.
19301 lt_prog_compiler_pic_CXX='-fPIC -shared'
19302 ;;
19303 *)
19304 lt_prog_compiler_pic_CXX='-fPIC'
19305 ;;
19306 esac
19307 else
19308 case $host_os in
19309 aix[4-9]*)
19310 # All AIX code is PIC.
19311 if test ia64 = "$host_cpu"; then
19312 # AIX 5 now supports IA64 processor
19313 lt_prog_compiler_static_CXX='-Bstatic'
19314 else
19315 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19316 fi
19317 ;;
19318 chorus*)
19319 case $cc_basename in
19320 cxch68*)
19321 # Green Hills C++ Compiler
19322 # _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"
19323 ;;
19324 esac
19325 ;;
19326 mingw* | windows* | cygwin* | os2* | pw32* | cegcc*)
19327 # This hack is so that the source file can tell whether it is being
19328 # built for inclusion in a dll (and should export symbols for example).
19329 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19330 ;;
19331 dgux*)
19332 case $cc_basename in
19333 ec++*)
19334 lt_prog_compiler_pic_CXX='-KPIC'
19335 ;;
19336 ghcx*)
19337 # Green Hills C++ Compiler
19338 lt_prog_compiler_pic_CXX='-pic'
19339 ;;
19340 *)
19341 ;;
19342 esac
19343 ;;
19344 freebsd* | dragonfly* | midnightbsd*)
19345 # FreeBSD uses GNU C++
19346 ;;
19347 hpux9* | hpux10* | hpux11*)
19348 case $cc_basename in
19349 CC*)
19350 lt_prog_compiler_wl_CXX='-Wl,'
19351 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19352 if test ia64 != "$host_cpu"; then
19353 lt_prog_compiler_pic_CXX='+Z'
19354 fi
19355 ;;
19356 aCC*)
19357 lt_prog_compiler_wl_CXX='-Wl,'
19358 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
19359 case $host_cpu in
19360 hppa*64*|ia64*)
19361 # +Z the default
19362 ;;
19363 *)
19364 lt_prog_compiler_pic_CXX='+Z'
19365 ;;
19366 esac
19367 ;;
19368 *)
19369 ;;
19370 esac
19371 ;;
19372 interix*)
19373 # This is c89, which is MS Visual C++ (no shared libs)
19374 # Anyone wants to do a port?
19375 ;;
19376 irix5* | irix6* | nonstopux*)
19377 case $cc_basename in
19378 CC*)
19379 lt_prog_compiler_wl_CXX='-Wl,'
19380 lt_prog_compiler_static_CXX='-non_shared'
19381 # CC pic flag -KPIC is the default.
19382 ;;
19383 *)
19384 ;;
19385 esac
19386 ;;
19387 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19388 case $cc_basename in
19389 KCC*)
19390 # KAI C++ Compiler
19391 lt_prog_compiler_wl_CXX='--backend -Wl,'
19392 lt_prog_compiler_pic_CXX='-fPIC'
19393 ;;
19394 ecpc* )
19395 # old Intel C++ for x86_64, which still supported -KPIC.
19396 lt_prog_compiler_wl_CXX='-Wl,'
19397 lt_prog_compiler_pic_CXX='-KPIC'
19398 lt_prog_compiler_static_CXX='-static'
19399 ;;
19400 icpc* )
19401 # Intel C++, used to be incompatible with GCC.
19402 # ICC 10 doesn't accept -KPIC any more.
19403 lt_prog_compiler_wl_CXX='-Wl,'
19404 lt_prog_compiler_pic_CXX='-fPIC'
19405 lt_prog_compiler_static_CXX='-static'
19406 ;;
19407 pgCC* | pgcpp*)
19408 # Portland Group C++ compiler
19409 lt_prog_compiler_wl_CXX='-Wl,'
19410 lt_prog_compiler_pic_CXX='-fpic'
19411 lt_prog_compiler_static_CXX='-Bstatic'
19412 ;;
19413 cxx*)
19414 # Compaq C++
19415 # Make sure the PIC flag is empty. It appears that all Alpha
19416 # Linux and Compaq Tru64 Unix objects are PIC.
19417 lt_prog_compiler_pic_CXX=
19418 lt_prog_compiler_static_CXX='-non_shared'
19419 ;;
19420 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19421 # IBM XL 8.0, 9.0 on PPC and BlueGene
19422 lt_prog_compiler_wl_CXX='-Wl,'
19423 lt_prog_compiler_pic_CXX='-qpic'
19424 lt_prog_compiler_static_CXX='-qstaticlink'
19425 ;;
19426 *)
19427 case `$CC -V 2>&1 | $SED 5q` in
19428 *Sun\ C*)
19429 # Sun C++ 5.9
19430 lt_prog_compiler_pic_CXX='-KPIC'
19431 lt_prog_compiler_static_CXX='-Bstatic'
19432 lt_prog_compiler_wl_CXX='-Qoption ld '
19433 ;;
19434 esac
19435 ;;
19436 esac
19437 ;;
19438 lynxos*)
19439 ;;
19440 m88k*)
19441 ;;
19442 mvs*)
19443 case $cc_basename in
19444 cxx*)
19445 lt_prog_compiler_pic_CXX='-W c,exportall'
19446 ;;
19447 *)
19448 ;;
19449 esac
19450 ;;
19451 netbsd* | netbsdelf*-gnu)
19452 ;;
19453 *-mlibc)
19454 ;;
19455 *qnx* | *nto*)
19456 # QNX uses GNU C++, but need to define -shared option too, otherwise
19457 # it will coredump.
19458 lt_prog_compiler_pic_CXX='-fPIC -shared'
19459 ;;
19460 osf3* | osf4* | osf5*)
19461 case $cc_basename in
19462 KCC*)
19463 lt_prog_compiler_wl_CXX='--backend -Wl,'
19464 ;;
19465 RCC*)
19466 # Rational C++ 2.4.1
19467 lt_prog_compiler_pic_CXX='-pic'
19468 ;;
19469 cxx*)
19470 # Digital/Compaq C++
19471 lt_prog_compiler_wl_CXX='-Wl,'
19472 # Make sure the PIC flag is empty. It appears that all Alpha
19473 # Linux and Compaq Tru64 Unix objects are PIC.
19474 lt_prog_compiler_pic_CXX=
19475 lt_prog_compiler_static_CXX='-non_shared'
19476 ;;
19477 *)
19478 ;;
19479 esac
19480 ;;
19481 psos*)
19482 ;;
19483 serenity*)
19484 ;;
19485 solaris*)
19486 case $cc_basename in
19487 CC* | sunCC*)
19488 # Sun C++ 4.2, 5.x and Centerline C++
19489 lt_prog_compiler_pic_CXX='-KPIC'
19490 lt_prog_compiler_static_CXX='-Bstatic'
19491 lt_prog_compiler_wl_CXX='-Qoption ld '
19492 ;;
19493 gcx*)
19494 # Green Hills C++ Compiler
19495 lt_prog_compiler_pic_CXX='-PIC'
19496 ;;
19497 *)
19498 ;;
19499 esac
19500 ;;
19501 sunos4*)
19502 case $cc_basename in
19503 CC*)
19504 # Sun C++ 4.x
19505 lt_prog_compiler_pic_CXX='-pic'
19506 lt_prog_compiler_static_CXX='-Bstatic'
19507 ;;
19508 lcc*)
19509 # Lucid
19510 lt_prog_compiler_pic_CXX='-pic'
19511 ;;
19512 *)
19513 ;;
19514 esac
19515 ;;
19516 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19517 case $cc_basename in
19518 CC*)
19519 lt_prog_compiler_wl_CXX='-Wl,'
19520 lt_prog_compiler_pic_CXX='-KPIC'
19521 lt_prog_compiler_static_CXX='-Bstatic'
19522 ;;
19523 esac
19524 ;;
19525 tandem*)
19526 case $cc_basename in
19527 NCC*)
19528 # NonStop-UX NCC 3.20
19529 lt_prog_compiler_pic_CXX='-KPIC'
19530 ;;
19531 *)
19532 ;;
19533 esac
19534 ;;
19535 vxworks*)
19536 ;;
19537 *)
19538 lt_prog_compiler_can_build_shared_CXX=no
19539 ;;
19540 esac
19541 fi
19542
19543 case $host_os in
19544 # For platforms that do not support PIC, -DPIC is meaningless:
19545 *djgpp*)
19546 lt_prog_compiler_pic_CXX=
19547 ;;
19548 *)
19549 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19550 ;;
19551 esac
19552
19553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19554 printf %s "checking for $compiler option to produce PIC... " >&6; }
19555 if test ${lt_cv_prog_compiler_pic_CXX+y}
19556 then :
19557 printf %s "(cached) " >&6
19558 else case e in #(
19559 e) lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX ;;
19560 esac
19561 fi
19562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19563 printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
19564 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
19565
19566 #
19567 # Check to make sure the PIC flag actually works.
19568 #
19569 if test -n "$lt_prog_compiler_pic_CXX"; then
19570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19571 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
19572 if test ${lt_cv_prog_compiler_pic_works_CXX+y}
19573 then :
19574 printf %s "(cached) " >&6
19575 else case e in #(
19576 e) lt_cv_prog_compiler_pic_works_CXX=no
19577 ac_outfile=conftest.$ac_objext
19578 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19579 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
19580 # Insert the option either (1) after the last *FLAGS variable, or
19581 # (2) before a word containing "conftest.", or (3) at the end.
19582 # Note that $ac_compile itself does not contain backslashes and begins
19583 # with a dollar sign (not a hyphen), so the echo should work correctly.
19584 # The option is referenced via a variable to avoid confusing sed.
19585 lt_compile=`echo "$ac_compile" | $SED \
19586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19588 -e 's:$: $lt_compiler_flag:'`
19589 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
19590 (eval "$lt_compile" 2>conftest.err)
19591 ac_status=$?
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 if (exit $ac_status) && test -s "$ac_outfile"; then
19595 # The compiler can only warn and ignore the option if not recognized
19596 # So say no if there are warnings other than the usual output.
19597 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
19598 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19599 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19600 lt_cv_prog_compiler_pic_works_CXX=yes
19601 fi
19602 fi
19603 $RM conftest*
19604 ;;
19605 esac
19606 fi
19607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19608 printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19609
19610 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
19611 case $lt_prog_compiler_pic_CXX in
19612 "" | " "*) ;;
19613 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19614 esac
19615 else
19616 lt_prog_compiler_pic_CXX=
19617 lt_prog_compiler_can_build_shared_CXX=no
19618 fi
19619
19620 fi
19621
19622
19623
19624
19625
19626 #
19627 # Check to make sure the static flag actually works.
19628 #
19629 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19631 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
19632 if test ${lt_cv_prog_compiler_static_works_CXX+y}
19633 then :
19634 printf %s "(cached) " >&6
19635 else case e in #(
19636 e) lt_cv_prog_compiler_static_works_CXX=no
19637 save_LDFLAGS=$LDFLAGS
19638 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19639 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19640 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19641 # The linker can only warn and ignore the option if not recognized
19642 # So say no if there are warnings
19643 if test -s conftest.err; then
19644 # Append any errors to the config.log.
19645 cat conftest.err 1>&5
19646 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
19647 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19648 if diff conftest.exp conftest.er2 >/dev/null; then
19649 lt_cv_prog_compiler_static_works_CXX=yes
19650 fi
19651 else
19652 lt_cv_prog_compiler_static_works_CXX=yes
19653 fi
19654 fi
19655 $RM -r conftest*
19656 LDFLAGS=$save_LDFLAGS
19657 ;;
19658 esac
19659 fi
19660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19661 printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19662
19663 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
19664 :
19665 else
19666 lt_prog_compiler_static_CXX=
19667 fi
19668
19669
19670
19671 ='-fPIC'
19672 archive_cmds_CXX='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
19673 archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib -s EXPORTED_FUNCTIONS=@$output_objdir/$soname.expsym'
19674 archive_cmds_need_lc_CXX=no
19675 no_undefined_flag_CXX=
19676 ;;
19677
19678 *)
19679 dynamic_linker=no
19680 ;;
19681 esac
19682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19683 printf "%s\n" "$dynamic_linker" >&6; }
19684 test no = "$dynamic_linker" && can_build_shared=no
19685
19686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19687 if test yes = "$GCC"; then
19688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19689 fi
19690
19691 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19692 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19693 fi
19694
19695 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19696 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19697 fi
19698
19699 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19700 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19701
19702 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19703 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19704
19705 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19706 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19748 printf %s "checking how to hardcode library paths into programs... " >&6; }
19749 hardcode_action_CXX=
19750 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19751 test -n "$runpath_var_CXX" ||
19752 test yes = "$hardcode_automatic_CXX"; then
19753
19754 # We can hardcode non-existent directories.
19755 if test no != "$hardcode_direct_CXX" &&
19756 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19757 # have to relink, otherwise we might link with an installed library
19758 # when we should be linking with a yet-to-be-installed one
19759 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19760 test no != "$hardcode_minus_L_CXX"; then
19761 # Linking always hardcodes the temporary library directory.
19762 hardcode_action_CXX=relink
19763 else
19764 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19765 hardcode_action_CXX=immediate
19766 fi
19767 else
19768 # We cannot hardcode anything, or else we can only hardcode existing
19769 # directories.
19770 hardcode_action_CXX=unsupported
19771 fi
19772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19773 printf "%s\n" "$hardcode_action_CXX" >&6; }
19774
19775 if test relink = "$hardcode_action_CXX" ||
19776 test yes = "$inherit_rpath_CXX"; then
19777 # Fast installation is not supported
19778 enable_fast_install=no
19779 elif test yes = "$shlibpath_overrides_runpath" ||
19780 test no = "$enable_shared"; then
19781 # Fast installation is not necessary
19782 enable_fast_install=needless
19783 fi
19784
19785
19786
19787
19788
19789
19790
19791 fi # test -n "$compiler"
19792
19793 CC=$lt_save_CC
19794 CFLAGS=$lt_save_CFLAGS
19795 LDCXX=$LD
19796 LD=$lt_save_LD
19797 GCC=$lt_save_GCC
19798 with_gnu_ld=$lt_save_with_gnu_ld
19799 lt_cv_path_LDCXX=$lt_cv_path_LD
19800 lt_cv_path_LD=$lt_save_path_LD
19801 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19802 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19803 fi # test yes != "$_lt_caught_CXX_error"
19804
19805 ac_ext=c
19806 ac_cpp='$CPP $CPPFLAGS'
19807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825 ac_config_commands="$ac_config_commands libtool"
19826
19827
19828
19829
19830 # Only expand once:
19831
19832
19833
19834 for ac_prog in 'flex'
19835 do
19836 # Extract the first word of "$ac_prog", so it can be a program name with args.
19837 set dummy $ac_prog; ac_word=$2
19838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19839 printf %s "checking for $ac_word... " >&6; }
19840 if test ${ac_cv_prog_FLEX+y}
19841 then :
19842 printf %s "(cached) " >&6
19843 else case e in #(
19844 e) if test -n "$FLEX"; then
19845 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
19846 else
19847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19848 for as_dir in $PATH
19849 do
19850 IFS=$as_save_IFS
19851 case $as_dir in #(((
19852 '') as_dir=./ ;;
19853 */) ;;
19854 *) as_dir=$as_dir/ ;;
19855 esac
19856 for ac_exec_ext in '' $ac_executable_extensions; do
19857 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19858 ac_cv_prog_FLEX="$ac_prog"
19859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19860 break 2
19861 fi
19862 done
19863 done
19864 IFS=$as_save_IFS
19865
19866 fi ;;
19867 esac
19868 fi
19869 FLEX=$ac_cv_prog_FLEX
19870 if test -n "$FLEX"; then
19871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
19872 printf "%s\n" "$FLEX" >&6; }
19873 else
19874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19875 printf "%s\n" "no" >&6; }
19876 fi
19877
19878
19879 test -n "$FLEX" && break
19880 done
19881
19882 for ac_prog in 'bison -y'
19883 do
19884 # Extract the first word of "$ac_prog", so it can be a program name with args.
19885 set dummy $ac_prog; ac_word=$2
19886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19887 printf %s "checking for $ac_word... " >&6; }
19888 if test ${ac_cv_prog_YACC+y}
19889 then :
19890 printf %s "(cached) " >&6
19891 else case e in #(
19892 e) if test -n "$YACC"; then
19893 ac_cv_prog_YACC="$YACC" # Let the user override the test.
19894 else
19895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19896 for as_dir in $PATH
19897 do
19898 IFS=$as_save_IFS
19899 case $as_dir in #(((
19900 '') as_dir=./ ;;
19901 */) ;;
19902 *) as_dir=$as_dir/ ;;
19903 esac
19904 for ac_exec_ext in '' $ac_executable_extensions; do
19905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19906 ac_cv_prog_YACC="$ac_prog"
19907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19908 break 2
19909 fi
19910 done
19911 done
19912 IFS=$as_save_IFS
19913
19914 fi ;;
19915 esac
19916 fi
19917 YACC=$ac_cv_prog_YACC
19918 if test -n "$YACC"; then
19919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
19920 printf "%s\n" "$YACC" >&6; }
19921 else
19922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19923 printf "%s\n" "no" >&6; }
19924 fi
19925
19926
19927 test -n "$YACC" && break
19928 done
19929
19930
19931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19932 printf %s "checking for an ANSI C-conforming const... " >&6; }
19933 if test ${ac_cv_c_const+y}
19934 then :
19935 printf %s "(cached) " >&6
19936 else case e in #(
19937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19938 /* end confdefs.h. */
19939
19940 int
19941 main (void)
19942 {
19943
19944 #ifndef __cplusplus
19945 /* Ultrix mips cc rejects this sort of thing. */
19946 typedef int charset[2];
19947 const charset cs = { 0, 0 };
19948 /* SunOS 4.1.1 cc rejects this. */
19949 char const *const *pcpcc;
19950 char **ppc;
19951 /* NEC SVR4.0.2 mips cc rejects this. */
19952 struct point {int x, y;};
19953 static struct point const zero = {0,0};
19954 /* IBM XL C 1.02.0.0 rejects this.
19955 It does not let you subtract one const X* pointer from another in
19956 an arm of an if-expression whose if-part is not a constant
19957 expression */
19958 const char *g = "string";
19959 pcpcc = &g + (g ? g-g : 0);
19960 /* HPUX 7.0 cc rejects these. */
19961 ++pcpcc;
19962 ppc = (char**) pcpcc;
19963 pcpcc = (char const *const *) ppc;
19964 { /* SCO 3.2v4 cc rejects this sort of thing. */
19965 char tx;
19966 char *t = &tx;
19967 char const *s = 0 ? (char *) 0 : (char const *) 0;
19968
19969 *t++ = 0;
19970 if (s) return 0;
19971 }
19972 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19973 int x[] = {25, 17};
19974 const int *foo = &x[0];
19975 ++foo;
19976 }
19977 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19978 typedef const int *iptr;
19979 iptr p = 0;
19980 ++p;
19981 }
19982 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
19983 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19984 struct s { int j; const int *ap[3]; } bx;
19985 struct s *b = &bx; b->j = 5;
19986 }
19987 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19988 const int foo = 10;
19989 if (!foo) return 0;
19990 }
19991 return !cs[0] && !zero.x;
19992 #endif
19993
19994 ;
19995 return 0;
19996 }
19997 _ACEOF
19998 if ac_fn_c_try_compile "$LINENO"
19999 then :
20000 ac_cv_c_const=yes
20001 else case e in #(
20002 e) ac_cv_c_const=no ;;
20003 esac
20004 fi
20005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20006 esac
20007 fi
20008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20009 printf "%s\n" "$ac_cv_c_const" >&6; }
20010 if test $ac_cv_c_const = no; then
20011
20012 printf "%s\n" "#define const /**/" >>confdefs.h
20013
20014 fi
20015
20016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20017 printf %s "checking for inline... " >&6; }
20018 if test ${ac_cv_c_inline+y}
20019 then :
20020 printf %s "(cached) " >&6
20021 else case e in #(
20022 e) ac_cv_c_inline=no
20023 for ac_kw in inline __inline__ __inline; do
20024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20025 /* end confdefs.h. */
20026 #ifndef __cplusplus
20027 typedef int foo_t;
20028 static $ac_kw foo_t static_foo (void) {return 0; }
20029 $ac_kw foo_t foo (void) {return 0; }
20030 #endif
20031
20032 _ACEOF
20033 if ac_fn_c_try_compile "$LINENO"
20034 then :
20035 ac_cv_c_inline=$ac_kw
20036 fi
20037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20038 test "$ac_cv_c_inline" != no && break
20039 done
20040 ;;
20041 esac
20042 fi
20043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
20044 printf "%s\n" "$ac_cv_c_inline" >&6; }
20045
20046 case $ac_cv_c_inline in
20047 inline | yes) ;;
20048 *)
20049 case $ac_cv_c_inline in
20050 no) ac_val=;;
20051 *) ac_val=$ac_cv_c_inline;;
20052 esac
20053 cat >>confdefs.h <<_ACEOF
20054 #ifndef __cplusplus
20055 #define inline $ac_val
20056 #endif
20057 _ACEOF
20058 ;;
20059 esac
20060
20061
20062 ac_ext=cpp
20063 ac_cpp='$CXXCPP $CPPFLAGS'
20064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20067
20068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h. */
20070 #ifndef __cplusplus
20071 #error "broken C++"
20072 #endif
20073 int
20074 main (void)
20075 {
20076
20077 ;
20078 return 0;
20079 }
20080 _ACEOF
20081 if ac_fn_cxx_try_compile "$LINENO"
20082 then :
20083
20084 else case e in #(
20085 e) CXX=; ;;
20086 esac
20087 fi
20088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20089 ac_ext=c
20090 ac_cpp='$CPP $CPPFLAGS'
20091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20094
20095 if test "x$CXX" != x; then
20096 HAS_CXX_TRUE=
20097 HAS_CXX_FALSE='#'
20098 else
20099 HAS_CXX_TRUE='#'
20100 HAS_CXX_FALSE=
20101 fi
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20112 if test -n "$ac_tool_prefix"; then
20113 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20114 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20116 printf %s "checking for $ac_word... " >&6; }
20117 if test ${ac_cv_path_PKG_CONFIG+y}
20118 then :
20119 printf %s "(cached) " >&6
20120 else case e in #(
20121 e) case $PKG_CONFIG in
20122 [\\/]* | ?:[\\/]*)
20123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20124 ;;
20125 *)
20126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20127 for as_dir in $PATH
20128 do
20129 IFS=$as_save_IFS
20130 case $as_dir in #(((
20131 '') as_dir=./ ;;
20132 */) ;;
20133 *) as_dir=$as_dir/ ;;
20134 esac
20135 for ac_exec_ext in '' $ac_executable_extensions; do
20136 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20137 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20138 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20139 break 2
20140 fi
20141 done
20142 done
20143 IFS=$as_save_IFS
20144
20145 ;;
20146 esac ;;
20147 esac
20148 fi
20149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20150 if test -n "$PKG_CONFIG"; then
20151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20152 printf "%s\n" "$PKG_CONFIG" >&6; }
20153 else
20154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20155 printf "%s\n" "no" >&6; }
20156 fi
20157
20158
20159 fi
20160 if test -z "$ac_cv_path_PKG_CONFIG"; then
20161 ac_pt_PKG_CONFIG=$PKG_CONFIG
20162 # Extract the first word of "pkg-config", so it can be a program name with args.
20163 set dummy pkg-config; ac_word=$2
20164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20165 printf %s "checking for $ac_word... " >&6; }
20166 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20167 then :
20168 printf %s "(cached) " >&6
20169 else case e in #(
20170 e) case $ac_pt_PKG_CONFIG in
20171 [\\/]* | ?:[\\/]*)
20172 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20173 ;;
20174 *)
20175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20176 for as_dir in $PATH
20177 do
20178 IFS=$as_save_IFS
20179 case $as_dir in #(((
20180 '') as_dir=./ ;;
20181 */) ;;
20182 *) as_dir=$as_dir/ ;;
20183 esac
20184 for ac_exec_ext in '' $ac_executable_extensions; do
20185 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20188 break 2
20189 fi
20190 done
20191 done
20192 IFS=$as_save_IFS
20193
20194 ;;
20195 esac ;;
20196 esac
20197 fi
20198 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20199 if test -n "$ac_pt_PKG_CONFIG"; then
20200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20201 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20202 else
20203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20204 printf "%s\n" "no" >&6; }
20205 fi
20206
20207 if test "x$ac_pt_PKG_CONFIG" = x; then
20208 PKG_CONFIG=""
20209 else
20210 case $cross_compiling:$ac_tool_warned in
20211 yes:)
20212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20213 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20214 ac_tool_warned=yes ;;
20215 esac
20216 PKG_CONFIG=$ac_pt_PKG_CONFIG
20217 fi
20218 else
20219 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20220 fi
20221
20222 fi
20223 if test -n "$PKG_CONFIG"; then
20224 _pkg_min_version=0.9.0
20225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20226 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20227 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20229 printf "%s\n" "yes" >&6; }
20230 else
20231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20232 printf "%s\n" "no" >&6; }
20233 PKG_CONFIG=""
20234 fi
20235 fi
20236 if test -z "$PKG_CONFIG"; then
20237 as_fn_error $? "pkg-config not found" "$LINENO" 5
20238 fi
20239
20240 pkg_failed=no
20241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.0" >&5
20242 printf %s "checking for check >= 0.9.0... " >&6; }
20243
20244 if test -n "$CHECK_CFLAGS"; then
20245 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
20246 elif test -n "$PKG_CONFIG"; then
20247 if test -n "$PKG_CONFIG" && \
20248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
20249 ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
20250 ac_status=$?
20251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20252 test $ac_status = 0; }; then
20253 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.0" 2>/dev/null`
20254 test "x$?" != "x0" && pkg_failed=yes
20255 else
20256 pkg_failed=yes
20257 fi
20258 else
20259 pkg_failed=untried
20260 fi
20261 if test -n "$CHECK_LIBS"; then
20262 pkg_cv_CHECK_LIBS="$CHECK_LIBS"
20263 elif test -n "$PKG_CONFIG"; then
20264 if test -n "$PKG_CONFIG" && \
20265 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
20266 ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
20267 ac_status=$?
20268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20269 test $ac_status = 0; }; then
20270 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.0" 2>/dev/null`
20271 test "x$?" != "x0" && pkg_failed=yes
20272 else
20273 pkg_failed=yes
20274 fi
20275 else
20276 pkg_failed=untried
20277 fi
20278
20279
20280
20281 if test $pkg_failed = yes; then
20282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283 printf "%s\n" "no" >&6; }
20284
20285 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20286 _pkg_short_errors_supported=yes
20287 else
20288 _pkg_short_errors_supported=no
20289 fi
20290 if test $_pkg_short_errors_supported = yes; then
20291 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
20292 else
20293 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
20294 fi
20295 # Put the nasty error message in config.log where it belongs
20296 echo "$CHECK_PKG_ERRORS" >&5
20297
20298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
20299 printf "%s\n" "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
20300 has_check="no"
20301 elif test $pkg_failed = untried; then
20302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20303 printf "%s\n" "no" >&6; }
20304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
20305 printf "%s\n" "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
20306 has_check="no"
20307 else
20308 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
20309 CHECK_LIBS=$pkg_cv_CHECK_LIBS
20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20311 printf "%s\n" "yes" >&6; }
20312 has_check="yes"
20313 fi
20314 if test "$has_check" = 'yes'; then
20315 WITH_CHECK_TRUE=
20316 WITH_CHECK_FALSE='#'
20317 else
20318 WITH_CHECK_TRUE='#'
20319 WITH_CHECK_FALSE=
20320 fi
20321
20322
20323
20324 # Check whether --with-pkgconfigdir was given.
20325 if test ${with_pkgconfigdir+y}
20326 then :
20327 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
20328 else case e in #(
20329 e) pkgconfigdir='${libdir}/pkgconfig' ;;
20330 esac
20331 fi
20332
20333
20334
20335 # Check whether --enable-cli was given.
20336 if test ${enable_cli+y}
20337 then :
20338 enableval=$enable_cli; enable_cli="$enableval"
20339 else case e in #(
20340 e) enable_cli="yes" ;;
20341 esac
20342 fi
20343
20344 if test "$enable_cli" != "no" &&
20345 test "$enable_cli" != "no-inst" &&
20346 test "$enable_cli" != "sbin"; then
20347 enable_cli="bin"
20348 fi
20349 if test "$enable_cli" != "no"; then
20350 ENABLE_CLI_TRUE=
20351 ENABLE_CLI_FALSE='#'
20352 else
20353 ENABLE_CLI_TRUE='#'
20354 ENABLE_CLI_FALSE=
20355 fi
20356
20357 if test "$enable_cli" = "bin"; then
20358 ENABLE_CLI_INSTALL_BIN_TRUE=
20359 ENABLE_CLI_INSTALL_BIN_FALSE='#'
20360 else
20361 ENABLE_CLI_INSTALL_BIN_TRUE='#'
20362 ENABLE_CLI_INSTALL_BIN_FALSE=
20363 fi
20364
20365 if test "$enable_cli" = "sbin"; then
20366 ENABLE_CLI_INSTALL_SBIN_TRUE=
20367 ENABLE_CLI_INSTALL_SBIN_FALSE='#'
20368 else
20369 ENABLE_CLI_INSTALL_SBIN_TRUE='#'
20370 ENABLE_CLI_INSTALL_SBIN_FALSE=
20371 fi
20372
20373
20374 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
20375 if test "x$ac_cv_header_dlfcn_h" = xyes
20376 then :
20377 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
20378
20379 fi
20380
20381
20382 # Check whether --enable-pthreads was given.
20383 if test ${enable_pthreads+y}
20384 then :
20385 enableval=$enable_pthreads; enable_pthreads="$enableval"
20386 else case e in #(
20387 e) enable_pthreads="yes" ;;
20388 esac
20389 fi
20390
20391 if test "$enable_pthreads" = "no"; then
20392 DISABLE_PTHREADS_TRUE=
20393 DISABLE_PTHREADS_FALSE='#'
20394 else
20395 DISABLE_PTHREADS_TRUE='#'
20396 DISABLE_PTHREADS_FALSE=
20397 fi
20398
20399 if test "x$enable_pthreads" = "xno"; then
20400
20401 printf "%s\n" "#define DISABLE_PTHREADS 1" >>confdefs.h
20402
20403 else
20404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
20405 printf %s "checking for pthread_mutex_lock in -lpthread... " >&6; }
20406 if test ${ac_cv_lib_pthread_pthread_mutex_lock+y}
20407 then :
20408 printf %s "(cached) " >&6
20409 else case e in #(
20410 e) ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lpthread $LIBS"
20412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20413 /* end confdefs.h. */
20414
20415 /* Override any GCC internal prototype to avoid an error.
20416 Use char because int might match the return type of a GCC
20417 builtin and then its argument prototype would still apply.
20418 The 'extern "C"' is for builds by C++ compilers;
20419 although this is not generally supported in C code supporting it here
20420 has little cost and some practical benefit (sr 110532). */
20421 #ifdef __cplusplus
20422 extern "C"
20423 #endif
20424 char pthread_mutex_lock (void);
20425 int
20426 main (void)
20427 {
20428 return pthread_mutex_lock ();
20429 ;
20430 return 0;
20431 }
20432 _ACEOF
20433 if ac_fn_c_try_link "$LINENO"
20434 then :
20435 ac_cv_lib_pthread_pthread_mutex_lock=yes
20436 else case e in #(
20437 e) ac_cv_lib_pthread_pthread_mutex_lock=no ;;
20438 esac
20439 fi
20440 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20441 conftest$ac_exeext conftest.$ac_ext
20442 LIBS=$ac_check_lib_save_LIBS ;;
20443 esac
20444 fi
20445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
20446 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
20447 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes
20448 then :
20449 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
20450
20451 LIBS="-lpthread $LIBS"
20452
20453 else case e in #(
20454 e) as_fn_error $? "libpthread is required" "$LINENO" 5 ;;
20455 esac
20456 fi
20457
20458 fi
20459
20460 if test "$enable_static" != "no"; then
20461 ENABLE_STATIC_TRUE=
20462 ENABLE_STATIC_FALSE='#'
20463 else
20464 ENABLE_STATIC_TRUE='#'
20465 ENABLE_STATIC_FALSE=
20466 fi
20467
20468
20469 # Check whether --enable-debug was given.
20470 if test ${enable_debug+y}
20471 then :
20472 enableval=$enable_debug; enable_debug="$enableval"
20473 else case e in #(
20474 e) enable_debug="yes" ;;
20475 esac
20476 fi
20477
20478 if test "$enable_debug" = "yes"; then
20479
20480 printf "%s\n" "#define NL_DEBUG 1" >>confdefs.h
20481
20482 else
20483 enable_debug=no
20484
20485 printf "%s\n" "#define NL_DEBUG 0" >>confdefs.h
20486
20487 fi
20488
20489
20490
20491 subdirs="$subdirs doc"
20492
20493
20494 ac_fn_c_check_func "$LINENO" "strerror_l" "ac_cv_func_strerror_l"
20495 if test "x$ac_cv_func_strerror_l" = xyes
20496 then :
20497 printf "%s\n" "#define HAVE_STRERROR_L 1" >>confdefs.h
20498
20499 fi
20500
20501
20502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
20503 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
20504 if test ${ac_cv_c_undeclared_builtin_options+y}
20505 then :
20506 printf %s "(cached) " >&6
20507 else case e in #(
20508 e) ac_save_CFLAGS=$CFLAGS
20509 ac_cv_c_undeclared_builtin_options='cannot detect'
20510 for ac_arg in '' -fno-builtin; do
20511 CFLAGS="$ac_save_CFLAGS $ac_arg"
20512 # This test program should *not* compile successfully.
20513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514 /* end confdefs.h. */
20515
20516 int
20517 main (void)
20518 {
20519 (void) strchr;
20520 ;
20521 return 0;
20522 }
20523 _ACEOF
20524 if ac_fn_c_try_compile "$LINENO"
20525 then :
20526
20527 else case e in #(
20528 e) # This test program should compile successfully.
20529 # No library function is consistently available on
20530 # freestanding implementations, so test against a dummy
20531 # declaration. Include always-available headers on the
20532 # off chance that they somehow elicit warnings.
20533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20534 /* end confdefs.h. */
20535 #include <float.h>
20536 #include <limits.h>
20537 #include <stdarg.h>
20538 #include <stddef.h>
20539 extern void ac_decl (int, char *);
20540
20541 int
20542 main (void)
20543 {
20544 (void) ac_decl (0, (char *) 0);
20545 (void) ac_decl;
20546
20547 ;
20548 return 0;
20549 }
20550 _ACEOF
20551 if ac_fn_c_try_compile "$LINENO"
20552 then :
20553 if test x"$ac_arg" = x
20554 then :
20555 ac_cv_c_undeclared_builtin_options='none needed'
20556 else case e in #(
20557 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
20558 esac
20559 fi
20560 break
20561 fi
20562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20563 esac
20564 fi
20565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20566 done
20567 CFLAGS=$ac_save_CFLAGS
20568 ;;
20569 esac
20570 fi
20571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
20572 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
20573 case $ac_cv_c_undeclared_builtin_options in #(
20574 'cannot detect') :
20575 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20576 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20577 as_fn_error $? "cannot make $CC report undeclared builtins
20578 See 'config.log' for more details" "$LINENO" 5; } ;; #(
20579 'none needed') :
20580 ac_c_undeclared_builtin_options='' ;; #(
20581 *) :
20582 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
20583 esac
20584
20585 ac_fn_check_decl "$LINENO" "getprotobyname_r" "ac_cv_have_decl_getprotobyname_r" "
20586 #include <netdb.h>
20587
20588 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20589 if test "x$ac_cv_have_decl_getprotobyname_r" = xyes
20590 then :
20591 ac_have_decl=1
20592 else case e in #(
20593 e) ac_have_decl=0 ;;
20594 esac
20595 fi
20596 printf "%s\n" "#define HAVE_DECL_GETPROTOBYNAME_R $ac_have_decl" >>confdefs.h
20597 ac_fn_check_decl "$LINENO" "getprotobynumber_r" "ac_cv_have_decl_getprotobynumber_r" "
20598 #include <netdb.h>
20599
20600 " "$ac_c_undeclared_builtin_options" "CFLAGS"
20601 if test "x$ac_cv_have_decl_getprotobynumber_r" = xyes
20602 then :
20603 ac_have_decl=1
20604 else case e in #(
20605 e) ac_have_decl=0 ;;
20606 esac
20607 fi
20608 printf "%s\n" "#define HAVE_DECL_GETPROTOBYNUMBER_R $ac_have_decl" >>confdefs.h
20609
20610
20611 ac_config_files="$ac_config_files Makefile libnl-3.0.pc libnl-route-3.0.pc libnl-genl-3.0.pc libnl-nf-3.0.pc libnl-cli-3.0.pc libnl-xfrm-3.0.pc libnl-idiag-3.0.pc python/setup.py include/netlink/version.h"
20612
20613
20614 ac_errcount=0
20615 if test -z "$YACC"; then
20616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: bison not found. Please install before continuing." >&5
20617 printf "%s\n" "$as_me: WARNING: bison not found. Please install before continuing." >&2;}
20618 ac_errcount=$((ac_errcount + 1))
20619 fi
20620 if test -z "$FLEX"; then
20621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: flex not found. Please install before continuing." >&5
20622 printf "%s\n" "$as_me: WARNING: flex not found. Please install before continuing." >&2;}
20623 ac_errcount=$((ac_errcount + 1))
20624 fi
20625 if test $ac_errcount -gt 0; then
20626 as_fn_error $? "Required packages are missing. Please install them and rerun ./configure" "$LINENO" 5
20627 fi
20628
20629 cat >confcache <<\_ACEOF
20630 # This file is a shell script that caches the results of configure
20631 # tests run on this system so they can be shared between configure
20632 # scripts and configure runs, see configure's option --config-cache.
20633 # It is not useful on other systems. If it contains results you don't
20634 # want to keep, you may remove or edit it.
20635 #
20636 # config.status only pays attention to the cache file if you give it
20637 # the --recheck option to rerun configure.
20638 #
20639 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
20640 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
20641 # following values.
20642
20643 _ACEOF
20644
20645 # The following way of writing the cache mishandles newlines in values,
20646 # but we know of no workaround that is simple, portable, and efficient.
20647 # So, we kill variables containing newlines.
20648 # Ultrix sh set writes to stderr and can't be redirected directly,
20649 # and sets the high bit in the cache file unless we assign to the vars.
20650 (
20651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20652 eval ac_val=\$$ac_var
20653 case $ac_val in #(
20654 *${as_nl}*)
20655 case $ac_var in #(
20656 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20657 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20658 esac
20659 case $ac_var in #(
20660 _ | IFS | as_nl) ;; #(
20661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20662 *) { eval $ac_var=; unset $ac_var;} ;;
20663 esac ;;
20664 esac
20665 done
20666
20667 (set) 2>&1 |
20668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20669 *${as_nl}ac_space=\ *)
20670 # 'set' does not quote correctly, so add quotes: double-quote
20671 # substitution turns \\\\ into \\, and sed turns \\ into \.
20672 sed -n \
20673 "s/'/'\\\\''/g;
20674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20675 ;; #(
20676 *)
20677 # 'set' quotes correctly as required by POSIX, so do not add quotes.
20678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20679 ;;
20680 esac |
20681 sort
20682 ) |
20683 sed '
20684 /^ac_cv_env_/b end
20685 t clear
20686 :clear
20687 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20688 t end
20689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20690 :end' >>confcache
20691 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20692 if test -w "$cache_file"; then
20693 if test "x$cache_file" != "x/dev/null"; then
20694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20695 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20696 if test ! -f "$cache_file" || test -h "$cache_file"; then
20697 cat confcache >"$cache_file"
20698 else
20699 case $cache_file in #(
20700 */* | ?:*)
20701 mv -f confcache "$cache_file"$$ &&
20702 mv -f "$cache_file"$$ "$cache_file" ;; #(
20703 *)
20704 mv -f confcache "$cache_file" ;;
20705 esac
20706 fi
20707 fi
20708 else
20709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20710 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20711 fi
20712 fi
20713 rm -f confcache
20714
20715 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20716 # Let make expand exec_prefix.
20717 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20718
20719 DEFS=-DHAVE_CONFIG_H
20720
20721 ac_libobjs=
20722 ac_ltlibobjs=
20723 U=
20724 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20725 # 1. Remove the extension, and $U if already installed.
20726 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20727 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20728 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20729 # will be set to the directory where LIBOBJS objects are built.
20730 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20731 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20732 done
20733 LIBOBJS=$ac_libobjs
20734
20735 LTLIBOBJS=$ac_ltlibobjs
20736
20737
20738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20739 printf %s "checking that generated files are newer than configure... " >&6; }
20740 if test -n "$am_sleep_pid"; then
20741 # Hide warnings about reused PIDs.
20742 wait $am_sleep_pid 2>/dev/null
20743 fi
20744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20745 printf "%s\n" "done" >&6; }
20746 case $enable_silent_rules in # (((
20747 yes) AM_DEFAULT_VERBOSITY=0;;
20748 no) AM_DEFAULT_VERBOSITY=1;;
20749 esac
20750 if test $am_cv_make_support_nested_variables = yes; then
20751 AM_V='$(V)'
20752 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
20753 else
20754 AM_V=$AM_DEFAULT_VERBOSITY
20755 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
20756 fi
20757
20758 if test -n "$EXEEXT"; then
20759 am__EXEEXT_TRUE=
20760 am__EXEEXT_FALSE='#'
20761 else
20762 am__EXEEXT_TRUE='#'
20763 am__EXEEXT_FALSE=
20764 fi
20765
20766 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20767 as_fn_error $? "conditional \"AMDEP\" was never defined.
20768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20769 fi
20770 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20771 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20773 fi
20774 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20775 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20777 fi
20778 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20779 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20781 fi
20782 if test -z "${HAS_CXX_TRUE}" && test -z "${HAS_CXX_FALSE}"; then
20783 as_fn_error $? "conditional \"HAS_CXX\" was never defined.
20784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20785 fi
20786 if test -z "${WITH_CHECK_TRUE}" && test -z "${WITH_CHECK_FALSE}"; then
20787 as_fn_error $? "conditional \"WITH_CHECK\" was never defined.
20788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20789 fi
20790 if test -z "${ENABLE_CLI_TRUE}" && test -z "${ENABLE_CLI_FALSE}"; then
20791 as_fn_error $? "conditional \"ENABLE_CLI\" was never defined.
20792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20793 fi
20794 if test -z "${ENABLE_CLI_INSTALL_BIN_TRUE}" && test -z "${ENABLE_CLI_INSTALL_BIN_FALSE}"; then
20795 as_fn_error $? "conditional \"ENABLE_CLI_INSTALL_BIN\" was never defined.
20796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20797 fi
20798 if test -z "${ENABLE_CLI_INSTALL_SBIN_TRUE}" && test -z "${ENABLE_CLI_INSTALL_SBIN_FALSE}"; then
20799 as_fn_error $? "conditional \"ENABLE_CLI_INSTALL_SBIN\" was never defined.
20800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20801 fi
20802 if test -z "${DISABLE_PTHREADS_TRUE}" && test -z "${DISABLE_PTHREADS_FALSE}"; then
20803 as_fn_error $? "conditional \"DISABLE_PTHREADS\" was never defined.
20804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20805 fi
20806 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
20807 as_fn_error $? "conditional \"ENABLE_STATIC\" was never defined.
20808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20809 fi
20810
20811 : "${CONFIG_STATUS=./config.status}"
20812 ac_write_fail=0
20813 ac_clean_files_save=$ac_clean_files
20814 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20816 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20817 as_write_fail=0
20818 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20819 #! $SHELL
20820 # Generated by $as_me.
20821 # Run this file to recreate the current configuration.
20822 # Compiler output produced by configure, useful for debugging
20823 # configure, is in config.log if it exists.
20824
20825 debug=false
20826 ac_cs_recheck=false
20827 ac_cs_silent=false
20828
20829 SHELL=\${CONFIG_SHELL-$SHELL}
20830 export SHELL
20831 _ASEOF
20832 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20833 ## -------------------- ##
20834 ## M4sh Initialization. ##
20835 ## -------------------- ##
20836
20837 # Be more Bourne compatible
20838 DUALCASE=1; export DUALCASE # for MKS sh
20839 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20840 then :
20841 emulate sh
20842 NULLCMD=:
20843 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20844 # is contrary to our usage. Disable this feature.
20845 alias -g '${1+"$@"}'='"$@"'
20846 setopt NO_GLOB_SUBST
20847 else case e in #(
20848 e) case `(set -o) 2>/dev/null` in #(
20849 *posix*) :
20850 set -o posix ;; #(
20851 *) :
20852 ;;
20853 esac ;;
20854 esac
20855 fi
20856
20857
20858
20859 # Reset variables that may have inherited troublesome values from
20860 # the environment.
20861
20862 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20863 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20864 # side effect of setting IFS to empty, thus disabling word splitting.)
20865 # Quoting is to prevent editors from complaining about space-tab.
20866 as_nl='
20867 '
20868 export as_nl
20869 IFS=" "" $as_nl"
20870
20871 PS1='$ '
20872 PS2='> '
20873 PS4='+ '
20874
20875 # Ensure predictable behavior from utilities with locale-dependent output.
20876 LC_ALL=C
20877 export LC_ALL
20878 LANGUAGE=C
20879 export LANGUAGE
20880
20881 # We cannot yet rely on "unset" to work, but we need these variables
20882 # to be unset--not just set to an empty or harmless value--now, to
20883 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20884 # also avoids known problems related to "unset" and subshell syntax
20885 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20886 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20887 do eval test \${$as_var+y} \
20888 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20889 done
20890
20891 # Ensure that fds 0, 1, and 2 are open.
20892 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20893 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20894 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20895
20896 # The user is always right.
20897 if ${PATH_SEPARATOR+false} :; then
20898 PATH_SEPARATOR=:
20899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20901 PATH_SEPARATOR=';'
20902 }
20903 fi
20904
20905
20906 # Find who we are. Look in the path if we contain no directory separator.
20907 as_myself=
20908 case $0 in #((
20909 *[\\/]* ) as_myself=$0 ;;
20910 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20911 for as_dir in $PATH
20912 do
20913 IFS=$as_save_IFS
20914 case $as_dir in #(((
20915 '') as_dir=./ ;;
20916 */) ;;
20917 *) as_dir=$as_dir/ ;;
20918 esac
20919 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20920 done
20921 IFS=$as_save_IFS
20922
20923 ;;
20924 esac
20925 # We did not find ourselves, most probably we were run as 'sh COMMAND'
20926 # in which case we are not to be found in the path.
20927 if test "x$as_myself" = x; then
20928 as_myself=$0
20929 fi
20930 if test ! -f "$as_myself"; then
20931 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20932 exit 1
20933 fi
20934
20935
20936
20937 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20938 # ----------------------------------------
20939 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20940 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20941 # script with STATUS, using 1 if that was 0.
20942 as_fn_error ()
20943 {
20944 as_status=$1; test $as_status -eq 0 && as_status=1
20945 if test "$4"; then
20946 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20948 fi
20949 printf "%s\n" "$as_me: error: $2" >&2
20950 as_fn_exit $as_status
20951 } # as_fn_error
20952
20953
20954 # as_fn_set_status STATUS
20955 # -----------------------
20956 # Set $? to STATUS, without forking.
20957 as_fn_set_status ()
20958 {
20959 return $1
20960 } # as_fn_set_status
20961
20962 # as_fn_exit STATUS
20963 # -----------------
20964 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20965 as_fn_exit ()
20966 {
20967 set +e
20968 as_fn_set_status $1
20969 exit $1
20970 } # as_fn_exit
20971
20972 # as_fn_unset VAR
20973 # ---------------
20974 # Portably unset VAR.
20975 as_fn_unset ()
20976 {
20977 { eval $1=; unset $1;}
20978 }
20979 as_unset=as_fn_unset
20980
20981 # as_fn_append VAR VALUE
20982 # ----------------------
20983 # Append the text in VALUE to the end of the definition contained in VAR. Take
20984 # advantage of any shell optimizations that allow amortized linear growth over
20985 # repeated appends, instead of the typical quadratic growth present in naive
20986 # implementations.
20987 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20988 then :
20989 eval 'as_fn_append ()
20990 {
20991 eval $1+=\$2
20992 }'
20993 else case e in #(
20994 e) as_fn_append ()
20995 {
20996 eval $1=\$$1\$2
20997 } ;;
20998 esac
20999 fi # as_fn_append
21000
21001 # as_fn_arith ARG...
21002 # ------------------
21003 # Perform arithmetic evaluation on the ARGs, and store the result in the
21004 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21005 # must be portable across $(()) and expr.
21006 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21007 then :
21008 eval 'as_fn_arith ()
21009 {
21010 as_val=$(( $* ))
21011 }'
21012 else case e in #(
21013 e) as_fn_arith ()
21014 {
21015 as_val=`expr "$@" || test $? -eq 1`
21016 } ;;
21017 esac
21018 fi # as_fn_arith
21019
21020
21021 if expr a : '\(a\)' >/dev/null 2>&1 &&
21022 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21023 as_expr=expr
21024 else
21025 as_expr=false
21026 fi
21027
21028 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21029 as_basename=basename
21030 else
21031 as_basename=false
21032 fi
21033
21034 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21035 as_dirname=dirname
21036 else
21037 as_dirname=false
21038 fi
21039
21040 as_me=`$as_basename -- "$0" ||
21041 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21042 X"$0" : 'X\(//\)$' \| \
21043 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21044 printf "%s\n" X/"$0" |
21045 sed '/^.*\/\([^/][^/]*\)\/*$/{
21046 s//\1/
21047 q
21048 }
21049 /^X\/\(\/\/\)$/{
21050 s//\1/
21051 q
21052 }
21053 /^X\/\(\/\).*/{
21054 s//\1/
21055 q
21056 }
21057 s/.*/./; q'`
21058
21059 # Avoid depending upon Character Ranges.
21060 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21061 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21062 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21063 as_cr_digits='0123456789'
21064 as_cr_alnum=$as_cr_Letters$as_cr_digits
21065
21066
21067 # Determine whether it's possible to make 'echo' print without a newline.
21068 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21069 # for compatibility with existing Makefiles.
21070 ECHO_C= ECHO_N= ECHO_T=
21071 case `echo -n x` in #(((((
21072 -n*)
21073 case `echo 'xy\c'` in
21074 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21075 xy) ECHO_C='\c';;
21076 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21077 ECHO_T=' ';;
21078 esac;;
21079 *)
21080 ECHO_N='-n';;
21081 esac
21082
21083 # For backward compatibility with old third-party macros, we provide
21084 # the shell variables $as_echo and $as_echo_n. New code should use
21085 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21086 as_echo='printf %s\n'
21087 as_echo_n='printf %s'
21088
21089 rm -f conf$$ conf$$.exe conf$$.file
21090 if test -d conf$$.dir; then
21091 rm -f conf$$.dir/conf$$.file
21092 else
21093 rm -f conf$$.dir
21094 mkdir conf$$.dir 2>/dev/null
21095 fi
21096 if (echo >conf$$.file) 2>/dev/null; then
21097 if ln -s conf$$.file conf$$ 2>/dev/null; then
21098 as_ln_s='ln -s'
21099 # ... but there are two gotchas:
21100 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21101 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21102 # In both cases, we have to default to 'cp -pR'.
21103 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21104 as_ln_s='cp -pR'
21105 elif ln conf$$.file conf$$ 2>/dev/null; then
21106 as_ln_s=ln
21107 else
21108 as_ln_s='cp -pR'
21109 fi
21110 else
21111 as_ln_s='cp -pR'
21112 fi
21113 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21114 rmdir conf$$.dir 2>/dev/null
21115
21116
21117 # as_fn_mkdir_p
21118 # -------------
21119 # Create "$as_dir" as a directory, including parents if necessary.
21120 as_fn_mkdir_p ()
21121 {
21122
21123 case $as_dir in #(
21124 -*) as_dir=./$as_dir;;
21125 esac
21126 test -d "$as_dir" || eval $as_mkdir_p || {
21127 as_dirs=
21128 while :; do
21129 case $as_dir in #(
21130 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21131 *) as_qdir=$as_dir;;
21132 esac
21133 as_dirs="'$as_qdir' $as_dirs"
21134 as_dir=`$as_dirname -- "$as_dir" ||
21135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21136 X"$as_dir" : 'X\(//\)[^/]' \| \
21137 X"$as_dir" : 'X\(//\)$' \| \
21138 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21139 printf "%s\n" X"$as_dir" |
21140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21141 s//\1/
21142 q
21143 }
21144 /^X\(\/\/\)[^/].*/{
21145 s//\1/
21146 q
21147 }
21148 /^X\(\/\/\)$/{
21149 s//\1/
21150 q
21151 }
21152 /^X\(\/\).*/{
21153 s//\1/
21154 q
21155 }
21156 s/.*/./; q'`
21157 test -d "$as_dir" && break
21158 done
21159 test -z "$as_dirs" || eval "mkdir $as_dirs"
21160 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21161
21162
21163 } # as_fn_mkdir_p
21164 if mkdir -p . 2>/dev/null; then
21165 as_mkdir_p='mkdir -p "$as_dir"'
21166 else
21167 test -d ./-p && rmdir ./-p
21168 as_mkdir_p=false
21169 fi
21170
21171
21172 # as_fn_executable_p FILE
21173 # -----------------------
21174 # Test if FILE is an executable regular file.
21175 as_fn_executable_p ()
21176 {
21177 test -f "$1" && test -x "$1"
21178 } # as_fn_executable_p
21179 as_test_x='test -x'
21180 as_executable_p=as_fn_executable_p
21181
21182 # Sed expression to map a string onto a valid CPP name.
21183 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21184 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21185
21186 # Sed expression to map a string onto a valid variable name.
21187 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21188 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21189
21190
21191 exec 6>&1
21192 ## ----------------------------------- ##
21193 ## Main body of $CONFIG_STATUS script. ##
21194 ## ----------------------------------- ##
21195 _ASEOF
21196 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21197
21198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21199 # Save the log message, to keep $0 and so on meaningful, and to
21200 # report actual input values of CONFIG_FILES etc. instead of their
21201 # values after options handling.
21202 ac_log="
21203 This file was extended by libnl $as_me 3.12.0, which was
21204 generated by GNU Autoconf 2.72. Invocation command line was
21205
21206 CONFIG_FILES = $CONFIG_FILES
21207 CONFIG_HEADERS = $CONFIG_HEADERS
21208 CONFIG_LINKS = $CONFIG_LINKS
21209 CONFIG_COMMANDS = $CONFIG_COMMANDS
21210 $ $0 $@
21211
21212 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21213 "
21214
21215 _ACEOF
21216
21217 case $ac_config_files in *"
21218 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21219 esac
21220
21221 case $ac_config_headers in *"
21222 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21223 esac
21224
21225
21226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21227 # Files that config.status was made for.
21228 config_files="$ac_config_files"
21229 config_headers="$ac_config_headers"
21230 config_commands="$ac_config_commands"
21231
21232 _ACEOF
21233
21234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21235 ac_cs_usage="\
21236 '$as_me' instantiates files and other configuration actions
21237 from templates according to the current configuration. Unless the files
21238 and actions are specified as TAGs, all are instantiated by default.
21239
21240 Usage: $0 [OPTION]... [TAG]...
21241
21242 -h, --help print this help, then exit
21243 -V, --version print version number and configuration settings, then exit
21244 --config print configuration, then exit
21245 -q, --quiet, --silent
21246 do not print progress messages
21247 -d, --debug don't remove temporary files
21248 --recheck update $as_me by reconfiguring in the same conditions
21249 --file=FILE[:TEMPLATE]
21250 instantiate the configuration file FILE
21251 --header=FILE[:TEMPLATE]
21252 instantiate the configuration header FILE
21253
21254 Configuration files:
21255 $config_files
21256
21257 Configuration headers:
21258 $config_headers
21259
21260 Configuration commands:
21261 $config_commands
21262
21263 Report bugs to the package provider.
21264 libnl home page: <http://www.infradead.org/~tgr/libnl/>."
21265
21266 _ACEOF
21267 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21268 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21270 ac_cs_config='$ac_cs_config_escaped'
21271 ac_cs_version="\\
21272 libnl config.status 3.12.0
21273 configured by $0, generated by GNU Autoconf 2.72,
21274 with options \\"\$ac_cs_config\\"
21275
21276 Copyright (C) 2023 Free Software Foundation, Inc.
21277 This config.status script is free software; the Free Software Foundation
21278 gives unlimited permission to copy, distribute and modify it."
21279
21280 ac_pwd='$ac_pwd'
21281 srcdir='$srcdir'
21282 INSTALL='$INSTALL'
21283 MKDIR_P='$MKDIR_P'
21284 AWK='$AWK'
21285 test -n "\$AWK" || AWK=awk
21286 _ACEOF
21287
21288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21289 # The default lists apply if the user does not specify any file.
21290 ac_need_defaults=:
21291 while test $# != 0
21292 do
21293 case $1 in
21294 --*=?*)
21295 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21296 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21297 ac_shift=:
21298 ;;
21299 --*=)
21300 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21301 ac_optarg=
21302 ac_shift=:
21303 ;;
21304 *)
21305 ac_option=$1
21306 ac_optarg=$2
21307 ac_shift=shift
21308 ;;
21309 esac
21310
21311 case $ac_option in
21312 # Handling of the options.
21313 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21314 ac_cs_recheck=: ;;
21315 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21316 printf "%s\n" "$ac_cs_version"; exit ;;
21317 --config | --confi | --conf | --con | --co | --c )
21318 printf "%s\n" "$ac_cs_config"; exit ;;
21319 --debug | --debu | --deb | --de | --d | -d )
21320 debug=: ;;
21321 --file | --fil | --fi | --f )
21322 $ac_shift
21323 case $ac_optarg in
21324 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21325 '') as_fn_error $? "missing file argument" ;;
21326 esac
21327 as_fn_append CONFIG_FILES " '$ac_optarg'"
21328 ac_need_defaults=false;;
21329 --header | --heade | --head | --hea )
21330 $ac_shift
21331 case $ac_optarg in
21332 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21333 esac
21334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21335 ac_need_defaults=false;;
21336 --he | --h)
21337 # Conflict between --help and --header
21338 as_fn_error $? "ambiguous option: '$1'
21339 Try '$0 --help' for more information.";;
21340 --help | --hel | -h )
21341 printf "%s\n" "$ac_cs_usage"; exit ;;
21342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21344 ac_cs_silent=: ;;
21345
21346 # This is an error.
21347 -*) as_fn_error $? "unrecognized option: '$1'
21348 Try '$0 --help' for more information." ;;
21349
21350 *) as_fn_append ac_config_targets " $1"
21351 ac_need_defaults=false ;;
21352
21353 esac
21354 shift
21355 done
21356
21357 ac_configure_extra_args=
21358
21359 if $ac_cs_silent; then
21360 exec 6>/dev/null
21361 ac_configure_extra_args="$ac_configure_extra_args --silent"
21362 fi
21363
21364 _ACEOF
21365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21366 if \$ac_cs_recheck; then
21367 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21368 shift
21369 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21370 CONFIG_SHELL='$SHELL'
21371 export CONFIG_SHELL
21372 exec "\$@"
21373 fi
21374
21375 _ACEOF
21376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21377 exec 5>>config.log
21378 {
21379 echo
21380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21381 ## Running $as_me. ##
21382 _ASBOX
21383 printf "%s\n" "$ac_log"
21384 } >&5
21385
21386 _ACEOF
21387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21388 #
21389 # INIT-COMMANDS
21390 #
21391 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21392
21393
21394 # The HP-UX ksh and POSIX shell print the target directory to stdout
21395 # if CDPATH is set.
21396 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21397
21398 sed_quote_subst='$sed_quote_subst'
21399 double_quote_subst='$double_quote_subst'
21400 delay_variable_subst='$delay_variable_subst'
21401 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21402 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21403 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21404 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21405 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21406 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21407 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21408 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21409 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21410 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21411 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21412 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21413 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21414 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21415 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21416 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21417 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21418 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21419 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21420 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21421 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21422 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21423 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21424 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21425 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21426 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21427 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21428 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21429 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21430 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21431 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21432 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21433 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21434 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21435 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21436 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21437 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21438 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21439 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21440 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21441 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21442 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21443 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21444 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21445 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21446 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21447 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21448 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21449 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21450 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21451 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21452 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21453 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21454 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21455 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21456 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21457 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21458 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21459 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21460 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21461 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"`'
21462 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21463 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21464 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21465 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21466 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21467 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21468 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21469 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21470 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21471 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21472 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21473 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21474 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21475 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21476 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21477 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21478 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21479 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21480 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21481 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21482 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21483 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21484 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21485 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21486 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21487 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21488 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21489 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21490 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21491 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21492 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21493 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21494 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21495 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21496 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21497 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21498 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21499 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21500 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21501 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21502 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21503 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21504 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21505 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21506 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21507 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21508 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21509 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21510 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21511 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21512 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21513 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21514 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21515 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21516 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21517 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21518 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21519 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21520 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21521 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21522 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21523 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21524 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21525 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21526 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21527 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21528 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21529 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21530 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21531 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21532 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21533 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21534 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21535 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21536 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21537 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21538 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21539 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21540 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21541 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21542 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21543 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21544 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21545 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21546 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21547 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21548 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21549 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21550 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21551 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21552 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21553 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21554 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21555 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21556 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21557 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21558 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21559 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21560 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21561 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21562 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21563 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21564 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21565 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21566 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21567 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21568 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21569 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21570 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21571 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21572 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21573 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21574 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21575 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21576 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21577 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21578 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21579 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21580 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21581 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21582 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21583 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21584 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21585 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21586 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21587 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21588 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21589 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21590 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21591 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21592
21593 LTCC='$LTCC'
21594 LTCFLAGS='$LTCFLAGS'
21595 compiler='$compiler_DEFAULT'
21596
21597 # A function that is used when there is no print builtin or printf.
21598 func_fallback_echo ()
21599 {
21600 eval 'cat <<_LTECHO_EOF
21601 \$1
21602 _LTECHO_EOF'
21603 }
21604
21605 # Quote evaled strings.
21606 for var in SHELL \
21607 ECHO \
21608 PATH_SEPARATOR \
21609 SED \
21610 GREP \
21611 EGREP \
21612 FGREP \
21613 LD \
21614 NM \
21615 LN_S \
21616 lt_SP2NL \
21617 lt_NL2SP \
21618 reload_flag \
21619 FILECMD \
21620 OBJDUMP \
21621 deplibs_check_method \
21622 file_magic_cmd \
21623 file_magic_glob \
21624 want_nocaseglob \
21625 DLLTOOL \
21626 sharedlib_from_linklib_cmd \
21627 AR \
21628 archiver_list_spec \
21629 STRIP \
21630 RANLIB \
21631 CC \
21632 CFLAGS \
21633 compiler \
21634 lt_cv_sys_global_symbol_pipe \
21635 lt_cv_sys_global_symbol_to_cdecl \
21636 lt_cv_sys_global_symbol_to_import \
21637 lt_cv_sys_global_symbol_to_c_name_address \
21638 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21639 lt_cv_nm_interface \
21640 nm_file_list_spec \
21641 lt_cv_truncate_bin \
21642 lt_prog_compiler_no_builtin_flag \
21643 lt_prog_compiler_pic \
21644 lt_prog_compiler_wl \
21645 lt_prog_compiler_static \
21646 lt_cv_prog_compiler_c_o \
21647 need_locks \
21648 MANIFEST_TOOL \
21649 DSYMUTIL \
21650 NMEDIT \
21651 LIPO \
21652 OTOOL \
21653 OTOOL64 \
21654 shrext_cmds \
21655 export_dynamic_flag_spec \
21656 whole_archive_flag_spec \
21657 compiler_needs_object \
21658 with_gnu_ld \
21659 allow_undefined_flag \
21660 no_undefined_flag \
21661 hardcode_libdir_flag_spec \
21662 hardcode_libdir_separator \
21663 exclude_expsyms \
21664 include_expsyms \
21665 file_list_spec \
21666 variables_saved_for_relink \
21667 libname_spec \
21668 library_names_spec \
21669 soname_spec \
21670 install_override_mode \
21671 finish_eval \
21672 old_striplib \
21673 striplib \
21674 compiler_lib_search_dirs \
21675 predep_objects \
21676 postdep_objects \
21677 predeps \
21678 postdeps \
21679 compiler_lib_search_path \
21680 LD_CXX \
21681 reload_flag_CXX \
21682 compiler_CXX \
21683 lt_prog_compiler_no_builtin_flag_CXX \
21684 lt_prog_compiler_pic_CXX \
21685 lt_prog_compiler_wl_CXX \
21686 lt_prog_compiler_static_CXX \
21687 lt_cv_prog_compiler_c_o_CXX \
21688 export_dynamic_flag_spec_CXX \
21689 whole_archive_flag_spec_CXX \
21690 compiler_needs_object_CXX \
21691 with_gnu_ld_CXX \
21692 allow_undefined_flag_CXX \
21693 no_undefined_flag_CXX \
21694 hardcode_libdir_flag_spec_CXX \
21695 hardcode_libdir_separator_CXX \
21696 exclude_expsyms_CXX \
21697 include_expsyms_CXX \
21698 file_list_spec_CXX \
21699 compiler_lib_search_dirs_CXX \
21700 predep_objects_CXX \
21701 postdep_objects_CXX \
21702 predeps_CXX \
21703 postdeps_CXX \
21704 compiler_lib_search_path_CXX; do
21705 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21706 *[\\\\\\\`\\"\\\$]*)
21707 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21708 ;;
21709 *)
21710 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21711 ;;
21712 esac
21713 done
21714
21715 # Double-quote double-evaled strings.
21716 for var in reload_cmds \
21717 old_postinstall_cmds \
21718 old_postuninstall_cmds \
21719 old_archive_cmds \
21720 extract_expsyms_cmds \
21721 old_archive_from_new_cmds \
21722 old_archive_from_expsyms_cmds \
21723 archive_cmds \
21724 archive_expsym_cmds \
21725 module_cmds \
21726 module_expsym_cmds \
21727 export_symbols_cmds \
21728 prelink_cmds \
21729 postlink_cmds \
21730 postinstall_cmds \
21731 postuninstall_cmds \
21732 finish_cmds \
21733 sys_lib_search_path_spec \
21734 configure_time_dlsearch_path \
21735 configure_time_lt_sys_library_path \
21736 reload_cmds_CXX \
21737 old_archive_cmds_CXX \
21738 old_archive_from_new_cmds_CXX \
21739 old_archive_from_expsyms_cmds_CXX \
21740 archive_cmds_CXX \
21741 archive_expsym_cmds_CXX \
21742 module_cmds_CXX \
21743 module_expsym_cmds_CXX \
21744 export_symbols_cmds_CXX \
21745 prelink_cmds_CXX \
21746 postlink_cmds_CXX; do
21747 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21748 *[\\\\\\\`\\"\\\$]*)
21749 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21750 ;;
21751 *)
21752 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21753 ;;
21754 esac
21755 done
21756
21757 ac_aux_dir='$ac_aux_dir'
21758
21759 # See if we are running on zsh, and set the options that allow our
21760 # commands through without removal of \ escapes INIT.
21761 if test -n "\${ZSH_VERSION+set}"; then
21762 setopt NO_GLOB_SUBST
21763 fi
21764
21765
21766 PACKAGE='$PACKAGE'
21767 VERSION='$VERSION'
21768 RM='$RM'
21769 ofile='$ofile'
21770
21771
21772
21773
21774
21775
21776 _ACEOF
21777
21778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21779
21780 # Handling of arguments.
21781 for ac_config_target in $ac_config_targets
21782 do
21783 case $ac_config_target in
21784 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21785 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21786 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21787 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21788 "libnl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-3.0.pc" ;;
21789 "libnl-route-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-route-3.0.pc" ;;
21790 "libnl-genl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-genl-3.0.pc" ;;
21791 "libnl-nf-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-nf-3.0.pc" ;;
21792 "libnl-cli-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-cli-3.0.pc" ;;
21793 "libnl-xfrm-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-xfrm-3.0.pc" ;;
21794 "libnl-idiag-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-idiag-3.0.pc" ;;
21795 "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
21796 "include/netlink/version.h") CONFIG_FILES="$CONFIG_FILES include/netlink/version.h" ;;
21797
21798 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
21799 esac
21800 done
21801
21802
21803 # If the user did not use the arguments to specify the items to instantiate,
21804 # then the envvar interface is used. Set only those that are not.
21805 # We use the long form for the default assignment because of an extremely
21806 # bizarre bug on SunOS 4.1.3.
21807 if $ac_need_defaults; then
21808 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21809 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21810 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21811 fi
21812
21813 # Have a temporary directory for convenience. Make it in the build tree
21814 # simply because there is no reason against having it here, and in addition,
21815 # creating and moving files from /tmp can sometimes cause problems.
21816 # Hook for its removal unless debugging.
21817 # Note that there is a small window in which the directory will not be cleaned:
21818 # after its creation but before its name has been assigned to '$tmp'.
21819 $debug ||
21820 {
21821 tmp= ac_tmp=
21822 trap 'exit_status=$?
21823 : "${ac_tmp:=$tmp}"
21824 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21825 ' 0
21826 trap 'as_fn_exit 1' 1 2 13 15
21827 }
21828 # Create a (secure) tmp directory for tmp files.
21829
21830 {
21831 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21832 test -d "$tmp"
21833 } ||
21834 {
21835 tmp=./conf$$-$RANDOM
21836 (umask 077 && mkdir "$tmp")
21837 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21838 ac_tmp=$tmp
21839
21840 # Set up the scripts for CONFIG_FILES section.
21841 # No need to generate them if there are no CONFIG_FILES.
21842 # This happens for instance with './config.status config.h'.
21843 if test -n "$CONFIG_FILES"; then
21844
21845
21846 ac_cr=`echo X | tr X '\015'`
21847 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21848 # But we know of no other shell where ac_cr would be empty at this
21849 # point, so we can use a bashism as a fallback.
21850 if test "x$ac_cr" = x; then
21851 eval ac_cr=\$\'\\r\'
21852 fi
21853 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21854 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21855 ac_cs_awk_cr='\\r'
21856 else
21857 ac_cs_awk_cr=$ac_cr
21858 fi
21859
21860 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21861 _ACEOF
21862
21863
21864 {
21865 echo "cat >conf$$subs.awk <<_ACEOF" &&
21866 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21867 echo "_ACEOF"
21868 } >conf$$subs.sh ||
21869 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21870 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21871 ac_delim='%!_!# '
21872 for ac_last_try in false false false false false :; do
21873 . ./conf$$subs.sh ||
21874 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21875
21876 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21877 if test $ac_delim_n = $ac_delim_num; then
21878 break
21879 elif $ac_last_try; then
21880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21881 else
21882 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21883 fi
21884 done
21885 rm -f conf$$subs.sh
21886
21887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21888 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21889 _ACEOF
21890 sed -n '
21891 h
21892 s/^/S["/; s/!.*/"]=/
21893 p
21894 g
21895 s/^[^!]*!//
21896 :repl
21897 t repl
21898 s/'"$ac_delim"'$//
21899 t delim
21900 :nl
21901 h
21902 s/\(.\{148\}\)..*/\1/
21903 t more1
21904 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21905 p
21906 n
21907 b repl
21908 :more1
21909 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21910 p
21911 g
21912 s/.\{148\}//
21913 t nl
21914 :delim
21915 h
21916 s/\(.\{148\}\)..*/\1/
21917 t more2
21918 s/["\\]/\\&/g; s/^/"/; s/$/"/
21919 p
21920 b
21921 :more2
21922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21923 p
21924 g
21925 s/.\{148\}//
21926 t delim
21927 ' <conf$$subs.awk | sed '
21928 /^[^""]/{
21929 N
21930 s/\n//
21931 }
21932 ' >>$CONFIG_STATUS || ac_write_fail=1
21933 rm -f conf$$subs.awk
21934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21935 _ACAWK
21936 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21937 for (key in S) S_is_set[key] = 1
21938 FS = ""
21939
21940 }
21941 {
21942 line = $ 0
21943 nfields = split(line, field, "@")
21944 substed = 0
21945 len = length(field[1])
21946 for (i = 2; i < nfields; i++) {
21947 key = field[i]
21948 keylen = length(key)
21949 if (S_is_set[key]) {
21950 value = S[key]
21951 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21952 len += length(value) + length(field[++i])
21953 substed = 1
21954 } else
21955 len += 1 + keylen
21956 }
21957
21958 print line
21959 }
21960
21961 _ACAWK
21962 _ACEOF
21963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21964 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21965 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21966 else
21967 cat
21968 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21969 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21970 _ACEOF
21971
21972 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21973 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21974 # trailing colons and then remove the whole line if VPATH becomes empty
21975 # (actually we leave an empty line to preserve line numbers).
21976 if test "x$srcdir" = x.; then
21977 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21978 h
21979 s///
21980 s/^/:/
21981 s/[ ]*$/:/
21982 s/:\$(srcdir):/:/g
21983 s/:\${srcdir}:/:/g
21984 s/:@srcdir@:/:/g
21985 s/^:*//
21986 s/:*$//
21987 x
21988 s/\(=[ ]*\).*/\1/
21989 G
21990 s/\n//
21991 s/^[^=]*=[ ]*$//
21992 }'
21993 fi
21994
21995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21996 fi # test -n "$CONFIG_FILES"
21997
21998 # Set up the scripts for CONFIG_HEADERS section.
21999 # No need to generate them if there are no CONFIG_HEADERS.
22000 # This happens for instance with './config.status Makefile'.
22001 if test -n "$CONFIG_HEADERS"; then
22002 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22003 BEGIN {
22004 _ACEOF
22005
22006 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22007 # here-document in config.status, that substitutes the proper values into
22008 # config.h.in to produce config.h.
22009
22010 # Create a delimiter string that does not exist in confdefs.h, to ease
22011 # handling of long lines.
22012 ac_delim='%!_!# '
22013 for ac_last_try in false false :; do
22014 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22015 if test -z "$ac_tt"; then
22016 break
22017 elif $ac_last_try; then
22018 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22019 else
22020 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22021 fi
22022 done
22023
22024 # For the awk script, D is an array of macro values keyed by name,
22025 # likewise P contains macro parameters if any. Preserve backslash
22026 # newline sequences.
22027
22028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22029 sed -n '
22030 s/.\{148\}/&'"$ac_delim"'/g
22031 t rset
22032 :rset
22033 s/^[ ]*#[ ]*define[ ][ ]*/ /
22034 t def
22035 d
22036 :def
22037 s/\\$//
22038 t bsnl
22039 s/["\\]/\\&/g
22040 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22041 D["\1"]=" \3"/p
22042 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22043 d
22044 :bsnl
22045 s/["\\]/\\&/g
22046 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22047 D["\1"]=" \3\\\\\\n"\\/p
22048 t cont
22049 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22050 t cont
22051 d
22052 :cont
22053 n
22054 s/.\{148\}/&'"$ac_delim"'/g
22055 t clear
22056 :clear
22057 s/\\$//
22058 t bsnlc
22059 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22060 d
22061 :bsnlc
22062 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22063 b cont
22064 ' <confdefs.h | sed '
22065 s/'"$ac_delim"'/"\\\
22066 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22067
22068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22069 for (key in D) D_is_set[key] = 1
22070 FS = ""
22071 }
22072 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22073 line = \$ 0
22074 split(line, arg, " ")
22075 if (arg[1] == "#") {
22076 defundef = arg[2]
22077 mac1 = arg[3]
22078 } else {
22079 defundef = substr(arg[1], 2)
22080 mac1 = arg[2]
22081 }
22082 split(mac1, mac2, "(") #)
22083 macro = mac2[1]
22084 prefix = substr(line, 1, index(line, defundef) - 1)
22085 if (D_is_set[macro]) {
22086 # Preserve the white space surrounding the "#".
22087 print prefix "define", macro P[macro] D[macro]
22088 next
22089 } else {
22090 # Replace #undef with comments. This is necessary, for example,
22091 # in the case of _POSIX_SOURCE, which is predefined and required
22092 # on some systems where configure will not decide to define it.
22093 if (defundef == "undef") {
22094 print "/*", prefix defundef, macro, "*/"
22095 next
22096 }
22097 }
22098 }
22099 { print }
22100 _ACAWK
22101 _ACEOF
22102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22103 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22104 fi # test -n "$CONFIG_HEADERS"
22105
22106
22107 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22108 shift
22109 for ac_tag
22110 do
22111 case $ac_tag in
22112 :[FHLC]) ac_mode=$ac_tag; continue;;
22113 esac
22114 case $ac_mode$ac_tag in
22115 :[FHL]*:*);;
22116 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22117 :[FH]-) ac_tag=-:-;;
22118 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22119 esac
22120 ac_save_IFS=$IFS
22121 IFS=:
22122 set x $ac_tag
22123 IFS=$ac_save_IFS
22124 shift
22125 ac_file=$1
22126 shift
22127
22128 case $ac_mode in
22129 :L) ac_source=$1;;
22130 :[FH])
22131 ac_file_inputs=
22132 for ac_f
22133 do
22134 case $ac_f in
22135 -) ac_f="$ac_tmp/stdin";;
22136 *) # Look for the file first in the build tree, then in the source tree
22137 # (if the path is not absolute). The absolute path cannot be DOS-style,
22138 # because $ac_f cannot contain ':'.
22139 test -f "$ac_f" ||
22140 case $ac_f in
22141 [\\/$]*) false;;
22142 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22143 esac ||
22144 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22145 esac
22146 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22147 as_fn_append ac_file_inputs " '$ac_f'"
22148 done
22149
22150 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22151 # use $as_me), people would be surprised to read:
22152 # /* config.h. Generated by config.status. */
22153 configure_input='Generated from '`
22154 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22155 `' by configure.'
22156 if test x"$ac_file" != x-; then
22157 configure_input="$ac_file. $configure_input"
22158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22159 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22160 fi
22161 # Neutralize special characters interpreted by sed in replacement strings.
22162 case $configure_input in #(
22163 *\&* | *\|* | *\\* )
22164 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22165 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22166 *) ac_sed_conf_input=$configure_input;;
22167 esac
22168
22169 case $ac_tag in
22170 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22172 esac
22173 ;;
22174 esac
22175
22176 ac_dir=`$as_dirname -- "$ac_file" ||
22177 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22178 X"$ac_file" : 'X\(//\)[^/]' \| \
22179 X"$ac_file" : 'X\(//\)$' \| \
22180 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22181 printf "%s\n" X"$ac_file" |
22182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22183 s//\1/
22184 q
22185 }
22186 /^X\(\/\/\)[^/].*/{
22187 s//\1/
22188 q
22189 }
22190 /^X\(\/\/\)$/{
22191 s//\1/
22192 q
22193 }
22194 /^X\(\/\).*/{
22195 s//\1/
22196 q
22197 }
22198 s/.*/./; q'`
22199 as_dir="$ac_dir"; as_fn_mkdir_p
22200 ac_builddir=.
22201
22202 case "$ac_dir" in
22203 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22204 *)
22205 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22206 # A ".." for each directory in $ac_dir_suffix.
22207 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22208 case $ac_top_builddir_sub in
22209 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22210 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22211 esac ;;
22212 esac
22213 ac_abs_top_builddir=$ac_pwd
22214 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22215 # for backward compatibility:
22216 ac_top_builddir=$ac_top_build_prefix
22217
22218 case $srcdir in
22219 .) # We are building in place.
22220 ac_srcdir=.
22221 ac_top_srcdir=$ac_top_builddir_sub
22222 ac_abs_top_srcdir=$ac_pwd ;;
22223 [\\/]* | ?:[\\/]* ) # Absolute name.
22224 ac_srcdir=$srcdir$ac_dir_suffix;
22225 ac_top_srcdir=$srcdir
22226 ac_abs_top_srcdir=$srcdir ;;
22227 *) # Relative name.
22228 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22229 ac_top_srcdir=$ac_top_build_prefix$srcdir
22230 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22231 esac
22232 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22233
22234
22235 case $ac_mode in
22236 :F)
22237 #
22238 # CONFIG_FILE
22239 #
22240
22241 case $INSTALL in
22242 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22243 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22244 esac
22245 ac_MKDIR_P=$MKDIR_P
22246 case $MKDIR_P in
22247 [\\/$]* | ?:[\\/]* ) ;;
22248 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22249 esac
22250 _ACEOF
22251
22252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22253 # If the template does not know about datarootdir, expand it.
22254 # FIXME: This hack should be removed a few years after 2.60.
22255 ac_datarootdir_hack=; ac_datarootdir_seen=
22256 ac_sed_dataroot='
22257 /datarootdir/ {
22258 p
22259 q
22260 }
22261 /@datadir@/p
22262 /@docdir@/p
22263 /@infodir@/p
22264 /@localedir@/p
22265 /@mandir@/p'
22266 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22267 *datarootdir*) ac_datarootdir_seen=yes;;
22268 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22270 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22271 _ACEOF
22272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22273 ac_datarootdir_hack='
22274 s&@datadir@&$datadir&g
22275 s&@docdir@&$docdir&g
22276 s&@infodir@&$infodir&g
22277 s&@localedir@&$localedir&g
22278 s&@mandir@&$mandir&g
22279 s&\\\${datarootdir}&$datarootdir&g' ;;
22280 esac
22281 _ACEOF
22282
22283 # Neutralize VPATH when '$srcdir' = '.'.
22284 # Shell code in configure.ac might set extrasub.
22285 # FIXME: do we really want to maintain this feature?
22286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22287 ac_sed_extra="$ac_vpsub
22288 $extrasub
22289 _ACEOF
22290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22291 :t
22292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22293 s|@configure_input@|$ac_sed_conf_input|;t t
22294 s&@top_builddir@&$ac_top_builddir_sub&;t t
22295 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22296 s&@srcdir@&$ac_srcdir&;t t
22297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22298 s&@top_srcdir@&$ac_top_srcdir&;t t
22299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22300 s&@builddir@&$ac_builddir&;t t
22301 s&@abs_builddir@&$ac_abs_builddir&;t t
22302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22303 s&@INSTALL@&$ac_INSTALL&;t t
22304 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22305 $ac_datarootdir_hack
22306 "
22307 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22308 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22309
22310 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22311 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22312 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22313 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22315 which seems to be undefined. Please make sure it is defined" >&5
22316 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22317 which seems to be undefined. Please make sure it is defined" >&2;}
22318
22319 rm -f "$ac_tmp/stdin"
22320 case $ac_file in
22321 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22322 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22323 esac \
22324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22325 ;;
22326 :H)
22327 #
22328 # CONFIG_HEADER
22329 #
22330 if test x"$ac_file" != x-; then
22331 {
22332 printf "%s\n" "/* $configure_input */" >&1 \
22333 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22334 } >"$ac_tmp/config.h" \
22335 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22336 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22338 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22339 else
22340 rm -f "$ac_file"
22341 mv "$ac_tmp/config.h" "$ac_file" \
22342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22343 fi
22344 else
22345 printf "%s\n" "/* $configure_input */" >&1 \
22346 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22347 || as_fn_error $? "could not create -" "$LINENO" 5
22348 fi
22349 # Compute "$ac_file"'s index in $config_headers.
22350 _am_arg="$ac_file"
22351 _am_stamp_count=1
22352 for _am_header in $config_headers :; do
22353 case $_am_header in
22354 $_am_arg | $_am_arg:* )
22355 break ;;
22356 * )
22357 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22358 esac
22359 done
22360 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22361 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22362 X"$_am_arg" : 'X\(//\)[^/]' \| \
22363 X"$_am_arg" : 'X\(//\)$' \| \
22364 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22365 printf "%s\n" X"$_am_arg" |
22366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22367 s//\1/
22368 q
22369 }
22370 /^X\(\/\/\)[^/].*/{
22371 s//\1/
22372 q
22373 }
22374 /^X\(\/\/\)$/{
22375 s//\1/
22376 q
22377 }
22378 /^X\(\/\).*/{
22379 s//\1/
22380 q
22381 }
22382 s/.*/./; q'`/stamp-h$_am_stamp_count
22383 ;;
22384
22385 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22386 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22387 ;;
22388 esac
22389
22390
22391 case $ac_file$ac_mode in
22392 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22393 # Older Autoconf quotes --file arguments for eval, but not when files
22394 # are listed without --file. Let's play safe and only enable the eval
22395 # if we detect the quoting.
22396 # TODO: see whether this extra hack can be removed once we start
22397 # requiring Autoconf 2.70 or later.
22398 case $CONFIG_FILES in #(
22399 *\'*) :
22400 eval set x "$CONFIG_FILES" ;; #(
22401 *) :
22402 set x $CONFIG_FILES ;; #(
22403 *) :
22404 ;;
22405 esac
22406 shift
22407 # Used to flag and report bootstrapping failures.
22408 am_rc=0
22409 for am_mf
22410 do
22411 # Strip MF so we end up with the name of the file.
22412 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22413 # Check whether this is an Automake generated Makefile which includes
22414 # dependency-tracking related rules and includes.
22415 # Grep'ing the whole file directly is not great: AIX grep has a line
22416 # limit of 2048, but all sed's we know have understand at least 4000.
22417 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22418 || continue
22419 am_dirpart=`$as_dirname -- "$am_mf" ||
22420 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22421 X"$am_mf" : 'X\(//\)[^/]' \| \
22422 X"$am_mf" : 'X\(//\)$' \| \
22423 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22424 printf "%s\n" X"$am_mf" |
22425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22426 s//\1/
22427 q
22428 }
22429 /^X\(\/\/\)[^/].*/{
22430 s//\1/
22431 q
22432 }
22433 /^X\(\/\/\)$/{
22434 s//\1/
22435 q
22436 }
22437 /^X\(\/\).*/{
22438 s//\1/
22439 q
22440 }
22441 s/.*/./; q'`
22442 am_filepart=`$as_basename -- "$am_mf" ||
22443 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22444 X"$am_mf" : 'X\(//\)$' \| \
22445 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22446 printf "%s\n" X/"$am_mf" |
22447 sed '/^.*\/\([^/][^/]*\)\/*$/{
22448 s//\1/
22449 q
22450 }
22451 /^X\/\(\/\/\)$/{
22452 s//\1/
22453 q
22454 }
22455 /^X\/\(\/\).*/{
22456 s//\1/
22457 q
22458 }
22459 s/.*/./; q'`
22460 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22461 && sed -e '/# am--include-marker/d' "$am_filepart" \
22462 | $MAKE -f - am--depfiles" >&5
22463 (cd "$am_dirpart" \
22464 && sed -e '/# am--include-marker/d' "$am_filepart" \
22465 | $MAKE -f - am--depfiles) >&5 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } || am_rc=$?
22469 done
22470 if test $am_rc -ne 0; then
22471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22472 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22473 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22474 for automatic dependency tracking. If GNU make was not used, consider
22475 re-running the configure script with MAKE=\"gmake\" (or whatever is
22476 necessary). You can also try re-running configure with the
22477 '--disable-dependency-tracking' option to at least be able to build
22478 the package (albeit without support for automatic dependency tracking).
22479 See 'config.log' for more details" "$LINENO" 5; }
22480 fi
22481 { am_dirpart=; unset am_dirpart;}
22482 { am_filepart=; unset am_filepart;}
22483 { am_mf=; unset am_mf;}
22484 { am_rc=; unset am_rc;}
22485 rm -f conftest-deps.mk
22486 }
22487 ;;
22488 "libtool":C)
22489
22490 # See if we are running on zsh, and set the options that allow our
22491 # commands through without removal of \ escapes.
22492 if test -n "${ZSH_VERSION+set}"; then
22493 setopt NO_GLOB_SUBST
22494 fi
22495
22496 cfgfile=${ofile}T
22497 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22498 $RM "$cfgfile"
22499
22500 cat <<_LT_EOF >> "$cfgfile"
22501 #! $SHELL
22502 # Generated automatically by $as_me ($PACKAGE) $VERSION
22503 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22504
22505 # Provide generalized library-building support services.
22506 # Written by Gordon Matzigkeit, 1996
22507
22508 # Copyright (C) 2024 Free Software Foundation, Inc.
22509 # This is free software; see the source for copying conditions. There is NO
22510 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22511
22512 # GNU Libtool is free software; you can redistribute it and/or modify
22513 # it under the terms of the GNU General Public License as published by
22514 # the Free Software Foundation; either version 2 of the License, or
22515 # (at your option) any later version.
22516 #
22517 # As a special exception to the GNU General Public License, if you
22518 # distribute this file as part of a program or library that is built
22519 # using GNU Libtool, you may include this file under the same
22520 # distribution terms that you use for the rest of that program.
22521 #
22522 # GNU Libtool is distributed in the hope that it will be useful, but
22523 # WITHOUT ANY WARRANTY; without even the implied warranty of
22524 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22525 # GNU General Public License for more details.
22526 #
22527 # You should have received a copy of the GNU General Public License
22528 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22529
22530
22531 # The names of the tagged configurations supported by this script.
22532 available_tags='CXX '
22533
22534 # Configured defaults for sys_lib_dlsearch_path munging.
22535 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22536
22537 # ### BEGIN LIBTOOL CONFIG
22538
22539 # Which release of libtool.m4 was used?
22540 macro_version=$macro_version
22541 macro_revision=$macro_revision
22542
22543 # Whether or not to build shared libraries.
22544 build_libtool_libs=$enable_shared
22545
22546 # Whether or not to build static libraries.
22547 build_old_libs=$enable_static
22548
22549 # What type of objects to build.
22550 pic_mode=$pic_mode
22551
22552 # Whether or not to optimize for fast installation.
22553 fast_install=$enable_fast_install
22554
22555 # Shared archive member basename,for filename based shared library versioning on AIX.
22556 shared_archive_member_spec=$shared_archive_member_spec
22557
22558 # Shell to use when invoking shell scripts.
22559 SHELL=$lt_SHELL
22560
22561 # An echo program that protects backslashes.
22562 ECHO=$lt_ECHO
22563
22564 # The PATH separator for the build system.
22565 PATH_SEPARATOR=$lt_PATH_SEPARATOR
22566
22567 # The host system.
22568 host_alias=$host_alias
22569 host=$host
22570 host_os=$host_os
22571
22572 # The build system.
22573 build_alias=$build_alias
22574 build=$build
22575 build_os=$build_os
22576
22577 # A sed program that does not truncate output.
22578 SED=$lt_SED
22579
22580 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22581 Xsed="\$SED -e 1s/^X//"
22582
22583 # A grep program that handles long lines.
22584 GREP=$lt_GREP
22585
22586 # An ERE matcher.
22587 EGREP=$lt_EGREP
22588
22589 # A literal string matcher.
22590 FGREP=$lt_FGREP
22591
22592 # A BSD- or MS-compatible name lister.
22593 NM=$lt_NM
22594
22595 # Whether we need soft or hard links.
22596 LN_S=$lt_LN_S
22597
22598 # What is the maximum length of a command?
22599 max_cmd_len=$max_cmd_len
22600
22601 # Object file suffix (normally "o").
22602 objext=$ac_objext
22603
22604 # Executable file suffix (normally "").
22605 exeext=$exeext
22606
22607 # whether the shell understands "unset".
22608 lt_unset=$lt_unset
22609
22610 # turn spaces into newlines.
22611 SP2NL=$lt_lt_SP2NL
22612
22613 # turn newlines into spaces.
22614 NL2SP=$lt_lt_NL2SP
22615
22616 # convert \$build file names to \$host format.
22617 to_host_file_cmd=$lt_cv_to_host_file_cmd
22618
22619 # convert \$build files to toolchain format.
22620 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22621
22622 # A file(cmd) program that detects file types.
22623 FILECMD=$lt_FILECMD
22624
22625 # An object symbol dumper.
22626 OBJDUMP=$lt_OBJDUMP
22627
22628 # Method to check whether dependent libraries are shared objects.
22629 deplibs_check_method=$lt_deplibs_check_method
22630
22631 # Command to use when deplibs_check_method = "file_magic".
22632 file_magic_cmd=$lt_file_magic_cmd
22633
22634 # How to find potential files when deplibs_check_method = "file_magic".
22635 file_magic_glob=$lt_file_magic_glob
22636
22637 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22638 want_nocaseglob=$lt_want_nocaseglob
22639
22640 # DLL creation program.
22641 DLLTOOL=$lt_DLLTOOL
22642
22643 # Command to associate shared and link libraries.
22644 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22645
22646 # The archiver.
22647 AR=$lt_AR
22648
22649 # Flags to create an archive (by configure).
22650 lt_ar_flags=$lt_ar_flags
22651
22652 # Flags to create an archive.
22653 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
22654
22655 # How to feed a file listing to the archiver.
22656 archiver_list_spec=$lt_archiver_list_spec
22657
22658 # A symbol stripping program.
22659 STRIP=$lt_STRIP
22660
22661 # Commands used to install an old-style archive.
22662 RANLIB=$lt_RANLIB
22663 old_postinstall_cmds=$lt_old_postinstall_cmds
22664 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22665
22666 # Whether to use a lock for old archive extraction.
22667 lock_old_archive_extraction=$lock_old_archive_extraction
22668
22669 # A C compiler.
22670 LTCC=$lt_CC
22671
22672 # LTCC compiler flags.
22673 LTCFLAGS=$lt_CFLAGS
22674
22675 # Take the output of nm and produce a listing of raw symbols and C names.
22676 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22677
22678 # Transform the output of nm in a proper C declaration.
22679 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22680
22681 # Transform the output of nm into a list of symbols to manually relocate.
22682 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22683
22684 # Transform the output of nm in a C name address pair.
22685 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22686
22687 # Transform the output of nm in a C name address pair when lib prefix is needed.
22688 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22689
22690 # The name lister interface.
22691 nm_interface=$lt_lt_cv_nm_interface
22692
22693 # Specify filename containing input files for \$NM.
22694 nm_file_list_spec=$lt_nm_file_list_spec
22695
22696 # The root where to search for dependent libraries,and where our libraries should be installed.
22697 lt_sysroot=$lt_sysroot
22698
22699 # Command to truncate a binary pipe.
22700 lt_truncate_bin=$lt_lt_cv_truncate_bin
22701
22702 # The name of the directory that contains temporary libtool files.
22703 objdir=$objdir
22704
22705 # Used to examine libraries when file_magic_cmd begins with "file".
22706 MAGIC_CMD=$MAGIC_CMD
22707
22708 # Must we lock files when doing compilation?
22709 need_locks=$lt_need_locks
22710
22711 # Manifest tool.
22712 MANIFEST_TOOL=$lt_MANIFEST_TOOL
22713
22714 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22715 DSYMUTIL=$lt_DSYMUTIL
22716
22717 # Tool to change global to local symbols on Mac OS X.
22718 NMEDIT=$lt_NMEDIT
22719
22720 # Tool to manipulate fat objects and archives on Mac OS X.
22721 LIPO=$lt_LIPO
22722
22723 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22724 OTOOL=$lt_OTOOL
22725
22726 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22727 OTOOL64=$lt_OTOOL64
22728
22729 # Old archive suffix (normally "a").
22730 libext=$libext
22731
22732 # Shared library suffix (normally ".so").
22733 shrext_cmds=$lt_shrext_cmds
22734
22735 # The commands to extract the exported symbol list from a shared archive.
22736 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22737
22738 # Variables whose values should be saved in libtool wrapper scripts and
22739 # restored at link time.
22740 variables_saved_for_relink=$lt_variables_saved_for_relink
22741
22742 # Do we need the "lib" prefix for modules?
22743 need_lib_prefix=$need_lib_prefix
22744
22745 # Do we need a version for libraries?
22746 need_version=$need_version
22747
22748 # Library versioning type.
22749 version_type=$version_type
22750
22751 # Shared library runtime path variable.
22752 runpath_var=$runpath_var
22753
22754 # Shared library path variable.
22755 shlibpath_var=$shlibpath_var
22756
22757 # Is shlibpath searched before the hard-coded library search path?
22758 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22759
22760 # Format of library name prefix.
22761 libname_spec=$lt_libname_spec
22762
22763 # List of archive names. First name is the real one, the rest are links.
22764 # The last name is the one that the linker finds with -lNAME
22765 library_names_spec=$lt_library_names_spec
22766
22767 # The coded name of the library, if different from the real name.
22768 soname_spec=$lt_soname_spec
22769
22770 # Permission mode override for installation of shared libraries.
22771 install_override_mode=$lt_install_override_mode
22772
22773 # Command to use after installation of a shared archive.
22774 postinstall_cmds=$lt_postinstall_cmds
22775
22776 # Command to use after uninstallation of a shared archive.
22777 postuninstall_cmds=$lt_postuninstall_cmds
22778
22779 # Commands used to finish a libtool library installation in a directory.
22780 finish_cmds=$lt_finish_cmds
22781
22782 # As "finish_cmds", except a single script fragment to be evaled but
22783 # not shown.
22784 finish_eval=$lt_finish_eval
22785
22786 # Whether we should hardcode library paths into libraries.
22787 hardcode_into_libs=$hardcode_into_libs
22788
22789 # Compile-time system search path for libraries.
22790 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22791
22792 # Detected run-time system search path for libraries.
22793 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22794
22795 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22796 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22797
22798 # Whether dlopen is supported.
22799 dlopen_support=$enable_dlopen
22800
22801 # Whether dlopen of programs is supported.
22802 dlopen_self=$enable_dlopen_self
22803
22804 # Whether dlopen of statically linked programs is supported.
22805 dlopen_self_static=$enable_dlopen_self_static
22806
22807 # Commands to strip libraries.
22808 old_striplib=$lt_old_striplib
22809 striplib=$lt_striplib
22810
22811
22812 # The linker used to build libraries.
22813 LD=$lt_LD
22814
22815 # How to create reloadable object files.
22816 reload_flag=$lt_reload_flag
22817 reload_cmds=$lt_reload_cmds
22818
22819 # Commands used to build an old-style archive.
22820 old_archive_cmds=$lt_old_archive_cmds
22821
22822 # A language specific compiler.
22823 CC=$lt_compiler
22824
22825 # Is the compiler the GNU compiler?
22826 with_gcc=$GCC
22827
22828 # Compiler flag to turn off builtin functions.
22829 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22830
22831 # Additional compiler flags for building library objects.
22832 pic_flag=$lt_lt_prog_compiler_pic
22833
22834 # How to pass a linker flag through the compiler.
22835 wl=$lt_lt_prog_compiler_wl
22836
22837 # Compiler flag to prevent dynamic linking.
22838 link_static_flag=$lt_lt_prog_compiler_static
22839
22840 # Does compiler simultaneously support -c and -o options?
22841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22842
22843 # Whether or not to add -lc for building shared libraries.
22844 build_libtool_need_lc=$archive_cmds_need_lc
22845
22846 # Whether or not to disallow shared libs when runtime libs are static.
22847 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22848
22849 # Compiler flag to allow reflexive dlopens.
22850 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22851
22852 # Compiler flag to generate shared objects directly from archives.
22853 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22854
22855 # Whether the compiler copes with passing no objects directly.
22856 compiler_needs_object=$lt_compiler_needs_object
22857
22858 # Create an old-style archive from a shared archive.
22859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22860
22861 # Create a temporary old-style archive to link instead of a shared archive.
22862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22863
22864 # Commands used to build a shared archive.
22865 archive_cmds=$lt_archive_cmds
22866 archive_expsym_cmds=$lt_archive_expsym_cmds
22867
22868 # Commands used to build a loadable module if different from building
22869 # a shared archive.
22870 module_cmds=$lt_module_cmds
22871 module_expsym_cmds=$lt_module_expsym_cmds
22872
22873 # Whether we are building with GNU ld or not.
22874 with_gnu_ld=$lt_with_gnu_ld
22875
22876 # Flag that allows shared libraries with undefined symbols to be built.
22877 allow_undefined_flag=$lt_allow_undefined_flag
22878
22879 # Flag that enforces no undefined symbols.
22880 no_undefined_flag=$lt_no_undefined_flag
22881
22882 # Flag to hardcode \$libdir into a binary during linking.
22883 # This must work even if \$libdir does not exist
22884 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22885
22886 # Whether we need a single "-rpath" flag with a separated argument.
22887 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22888
22889 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22890 # DIR into the resulting binary.
22891 hardcode_direct=$hardcode_direct
22892
22893 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22894 # DIR into the resulting binary and the resulting library dependency is
22895 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
22896 # library is relocated.
22897 hardcode_direct_absolute=$hardcode_direct_absolute
22898
22899 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22900 # into the resulting binary.
22901 hardcode_minus_L=$hardcode_minus_L
22902
22903 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22904 # into the resulting binary.
22905 hardcode_shlibpath_var=$hardcode_shlibpath_var
22906
22907 # Set to "yes" if building a shared library automatically hardcodes DIR
22908 # into the library and all subsequent libraries and executables linked
22909 # against it.
22910 hardcode_automatic=$hardcode_automatic
22911
22912 # Set to yes if linker adds runtime paths of dependent libraries
22913 # to runtime path list.
22914 inherit_rpath=$inherit_rpath
22915
22916 # Whether libtool must link a program against all its dependency libraries.
22917 link_all_deplibs=$link_all_deplibs
22918
22919 # Set to "yes" if exported symbols are required.
22920 always_export_symbols=$always_export_symbols
22921
22922 # The commands to list exported symbols.
22923 export_symbols_cmds=$lt_export_symbols_cmds
22924
22925 # Symbols that should not be listed in the preloaded symbols.
22926 exclude_expsyms=$lt_exclude_expsyms
22927
22928 # Symbols that must always be exported.
22929 include_expsyms=$lt_include_expsyms
22930
22931 # Commands necessary for linking programs (against libraries) with templates.
22932 prelink_cmds=$lt_prelink_cmds
22933
22934 # Commands necessary for finishing linking programs.
22935 postlink_cmds=$lt_postlink_cmds
22936
22937 # Specify filename containing input files.
22938 file_list_spec=$lt_file_list_spec
22939
22940 # How to hardcode a shared library path into an executable.
22941 hardcode_action=$hardcode_action
22942
22943 # The directories searched by this compiler when creating a shared library.
22944 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22945
22946 # Dependencies to place before and after the objects being linked to
22947 # create a shared library.
22948 predep_objects=$lt_predep_objects
22949 postdep_objects=$lt_postdep_objects
22950 predeps=$lt_predeps
22951 postdeps=$lt_postdeps
22952
22953 # The library search path used internally by the compiler when linking
22954 # a shared library.
22955 compiler_lib_search_path=$lt_compiler_lib_search_path
22956
22957 # ### END LIBTOOL CONFIG
22958
22959 _LT_EOF
22960
22961 cat <<'_LT_EOF' >> "$cfgfile"
22962
22963 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22964
22965 # func_munge_path_list VARIABLE PATH
22966 # -----------------------------------
22967 # VARIABLE is name of variable containing _space_ separated list of
22968 # directories to be munged by the contents of PATH, which is string
22969 # having a format:
22970 # "DIR[:DIR]:"
22971 # string "DIR[ DIR]" will be prepended to VARIABLE
22972 # ":DIR[:DIR]"
22973 # string "DIR[ DIR]" will be appended to VARIABLE
22974 # "DIRP[:DIRP]::[DIRA:]DIRA"
22975 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22976 # "DIRA[ DIRA]" will be appended to VARIABLE
22977 # "DIR[:DIR]"
22978 # VARIABLE will be replaced by "DIR[ DIR]"
22979 func_munge_path_list ()
22980 {
22981 case x$2 in
22982 x)
22983 ;;
22984 *:)
22985 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22986 ;;
22987 x:*)
22988 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22989 ;;
22990 *::*)
22991 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22992 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22993 ;;
22994 *)
22995 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22996 ;;
22997 esac
22998 }
22999
23000
23001 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23002 func_cc_basename ()
23003 {
23004 for cc_temp in $*""; do
23005 case $cc_temp in
23006 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23007 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23008 \-*) ;;
23009 *) break;;
23010 esac
23011 done
23012 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23013 }
23014
23015
23016 # ### END FUNCTIONS SHARED WITH CONFIGURE
23017
23018 _LT_EOF
23019
23020 case $host_os in
23021 aix3*)
23022 cat <<\_LT_EOF >> "$cfgfile"
23023 # AIX sometimes has problems with the GCC collect2 program. For some
23024 # reason, if we set the COLLECT_NAMES environment variable, the problems
23025 # vanish in a puff of smoke.
23026 if test set != "${COLLECT_NAMES+set}"; then
23027 COLLECT_NAMES=
23028 export COLLECT_NAMES
23029 fi
23030 _LT_EOF
23031 ;;
23032 esac
23033
23034
23035
23036 ltmain=$ac_aux_dir/ltmain.sh
23037
23038
23039 # We use sed instead of cat because bash on DJGPP gets confused if
23040 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23041 # text mode, it properly converts lines to CR/LF. This bash problem
23042 # is reportedly fixed, but why not run on old versions too?
23043 $SED '$q' "$ltmain" >> "$cfgfile" \
23044 || (rm -f "$cfgfile"; exit 1)
23045
23046 mv -f "$cfgfile" "$ofile" ||
23047 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23048 chmod +x "$ofile"
23049
23050
23051 cat <<_LT_EOF >> "$ofile"
23052
23053 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23054
23055 # The linker used to build libraries.
23056 LD=$lt_LD_CXX
23057
23058 # How to create reloadable object files.
23059 reload_flag=$lt_reload_flag_CXX
23060 reload_cmds=$lt_reload_cmds_CXX
23061
23062 # Commands used to build an old-style archive.
23063 old_archive_cmds=$lt_old_archive_cmds_CXX
23064
23065 # A language specific compiler.
23066 CC=$lt_compiler_CXX
23067
23068 # Is the compiler the GNU compiler?
23069 with_gcc=$GCC_CXX
23070
23071 # Compiler flag to turn off builtin functions.
23072 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23073
23074 # Additional compiler flags for building library objects.
23075 pic_flag=$lt_lt_prog_compiler_pic_CXX
23076
23077 # How to pass a linker flag through the compiler.
23078 wl=$lt_lt_prog_compiler_wl_CXX
23079
23080 # Compiler flag to prevent dynamic linking.
23081 link_static_flag=$lt_lt_prog_compiler_static_CXX
23082
23083 # Does compiler simultaneously support -c and -o options?
23084 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23085
23086 # Whether or not to add -lc for building shared libraries.
23087 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23088
23089 # Whether or not to disallow shared libs when runtime libs are static.
23090 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23091
23092 # Compiler flag to allow reflexive dlopens.
23093 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23094
23095 # Compiler flag to generate shared objects directly from archives.
23096 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23097
23098 # Whether the compiler copes with passing no objects directly.
23099 compiler_needs_object=$lt_compiler_needs_object_CXX
23100
23101 # Create an old-style archive from a shared archive.
23102 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23103
23104 # Create a temporary old-style archive to link instead of a shared archive.
23105 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23106
23107 # Commands used to build a shared archive.
23108 archive_cmds=$lt_archive_cmds_CXX
23109 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23110
23111 # Commands used to build a loadable module if different from building
23112 # a shared archive.
23113 module_cmds=$lt_module_cmds_CXX
23114 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23115
23116 # Whether we are building with GNU ld or not.
23117 with_gnu_ld=$lt_with_gnu_ld_CXX
23118
23119 # Flag that allows shared libraries with undefined symbols to be built.
23120 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23121
23122 # Flag that enforces no undefined symbols.
23123 no_undefined_flag=$lt_no_undefined_flag_CXX
23124
23125 # Flag to hardcode \$libdir into a binary during linking.
23126 # This must work even if \$libdir does not exist
23127 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23128
23129 # Whether we need a single "-rpath" flag with a separated argument.
23130 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23131
23132 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23133 # DIR into the resulting binary.
23134 hardcode_direct=$hardcode_direct_CXX
23135
23136 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23137 # DIR into the resulting binary and the resulting library dependency is
23138 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23139 # library is relocated.
23140 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23141
23142 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23143 # into the resulting binary.
23144 hardcode_minus_L=$hardcode_minus_L_CXX
23145
23146 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23147 # into the resulting binary.
23148 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23149
23150 # Set to "yes" if building a shared library automatically hardcodes DIR
23151 # into the library and all subsequent libraries and executables linked
23152 # against it.
23153 hardcode_automatic=$hardcode_automatic_CXX
23154
23155 # Set to yes if linker adds runtime paths of dependent libraries
23156 # to runtime path list.
23157 inherit_rpath=$inherit_rpath_CXX
23158
23159 # Whether libtool must link a program against all its dependency libraries.
23160 link_all_deplibs=$link_all_deplibs_CXX
23161
23162 # Set to "yes" if exported symbols are required.
23163 always_export_symbols=$always_export_symbols_CXX
23164
23165 # The commands to list exported symbols.
23166 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23167
23168 # Symbols that should not be listed in the preloaded symbols.
23169 exclude_expsyms=$lt_exclude_expsyms_CXX
23170
23171 # Symbols that must always be exported.
23172 include_expsyms=$lt_include_expsyms_CXX
23173
23174 # Commands necessary for linking programs (against libraries) with templates.
23175 prelink_cmds=$lt_prelink_cmds_CXX
23176
23177 # Commands necessary for finishing linking programs.
23178 postlink_cmds=$lt_postlink_cmds_CXX
23179
23180 # Specify filename containing input files.
23181 file_list_spec=$lt_file_list_spec_CXX
23182
23183 # How to hardcode a shared library path into an executable.
23184 hardcode_action=$hardcode_action_CXX
23185
23186 # The directories searched by this compiler when creating a shared library.
23187 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23188
23189 # Dependencies to place before and after the objects being linked to
23190 # create a shared library.
23191 predep_objects=$lt_predep_objects_CXX
23192 postdep_objects=$lt_postdep_objects_CXX
23193 predeps=$lt_predeps_CXX
23194 postdeps=$lt_postdeps_CXX
23195
23196 # The library search path used internally by the compiler when linking
23197 # a shared library.
23198 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23199
23200 # ### END LIBTOOL TAG CONFIG: CXX
23201 _LT_EOF
23202
23203 ;;
23204
23205 esac
23206 done # for ac_tag
23207
23208
23209 as_fn_exit 0
23210 _ACEOF
23211 ac_clean_files=$ac_clean_files_save
23212
23213 test $ac_write_fail = 0 ||
23214 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23215
23216
23217 # configure is writing to config.log, and then calls config.status.
23218 # config.status does its own redirection, appending to config.log.
23219 # Unfortunately, on DOS this fails, as config.log is still kept open
23220 # by configure, so config.status won't be able to write to it; its
23221 # output is simply discarded. So we exec the FD to /dev/null,
23222 # effectively closing config.log, so it can be properly (re)opened and
23223 # appended to by config.status. When coming back to configure, we
23224 # need to make the FD available again.
23225 if test "$no_create" != yes; then
23226 ac_cs_success=:
23227 ac_config_status_args=
23228 test "$silent" = yes &&
23229 ac_config_status_args="$ac_config_status_args --quiet"
23230 exec 5>/dev/null
23231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23232 exec 5>>config.log
23233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23234 # would make configure fail if this is the last instruction.
23235 $ac_cs_success || as_fn_exit 1
23236 fi
23237
23238 #
23239 # CONFIG_SUBDIRS section.
23240 #
23241 if test "$no_recursion" != yes; then
23242
23243 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23244 # so they do not pile up.
23245 ac_sub_configure_args=
23246 ac_prev=
23247 eval "set x $ac_configure_args"
23248 shift
23249 for ac_arg
23250 do
23251 if test -n "$ac_prev"; then
23252 ac_prev=
23253 continue
23254 fi
23255 case $ac_arg in
23256 -cache-file | --cache-file | --cache-fil | --cache-fi \
23257 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23258 ac_prev=cache_file ;;
23259 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23260 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23261 | --c=*)
23262 ;;
23263 --config-cache | -C)
23264 ;;
23265 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23266 ac_prev=srcdir ;;
23267 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23268 ;;
23269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23270 ac_prev=prefix ;;
23271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23272 ;;
23273 --disable-option-checking)
23274 ;;
23275 *)
23276 case $ac_arg in
23277 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23278 esac
23279 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23280 esac
23281 done
23282
23283 # Always prepend --prefix to ensure using the same prefix
23284 # in subdir configurations.
23285 ac_arg="--prefix=$prefix"
23286 case $ac_arg in
23287 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23288 esac
23289 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23290
23291 # Pass --silent
23292 if test "$silent" = yes; then
23293 ac_sub_configure_args="--silent $ac_sub_configure_args"
23294 fi
23295
23296 # Always prepend --disable-option-checking to silence warnings, since
23297 # different subdirs can have different --enable and --with options.
23298 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23299
23300 ac_popdir=`pwd`
23301 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23302
23303 # Do not complain, so a configure script can configure whichever
23304 # parts of a large source tree are present.
23305 test -d "$srcdir/$ac_dir" || continue
23306
23307 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
23309 printf "%s\n" "$ac_msg" >&6
23310 as_dir="$ac_dir"; as_fn_mkdir_p
23311 ac_builddir=.
23312
23313 case "$ac_dir" in
23314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23315 *)
23316 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
23317 # A ".." for each directory in $ac_dir_suffix.
23318 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23319 case $ac_top_builddir_sub in
23320 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23321 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23322 esac ;;
23323 esac
23324 ac_abs_top_builddir=$ac_pwd
23325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23326 # for backward compatibility:
23327 ac_top_builddir=$ac_top_build_prefix
23328
23329 case $srcdir in
23330 .) # We are building in place.
23331 ac_srcdir=.
23332 ac_top_srcdir=$ac_top_builddir_sub
23333 ac_abs_top_srcdir=$ac_pwd ;;
23334 [\\/]* | ?:[\\/]* ) # Absolute name.
23335 ac_srcdir=$srcdir$ac_dir_suffix;
23336 ac_top_srcdir=$srcdir
23337 ac_abs_top_srcdir=$srcdir ;;
23338 *) # Relative name.
23339 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23340 ac_top_srcdir=$ac_top_build_prefix$srcdir
23341 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23342 esac
23343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23344
23345
23346 cd "$ac_dir"
23347
23348 # Check for configure.gnu first; this name is used for a wrapper for
23349 # Metaconfig's "Configure" on case-insensitive file systems.
23350 if test -f "$ac_srcdir/configure.gnu"; then
23351 ac_sub_configure=$ac_srcdir/configure.gnu
23352 elif test -f "$ac_srcdir/configure"; then
23353 ac_sub_configure=$ac_srcdir/configure
23354 else
23355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
23356 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23357 ac_sub_configure=
23358 fi
23359
23360 # The recursion is here.
23361 if test -n "$ac_sub_configure"; then
23362 # Make the cache file name correct relative to the subdirectory.
23363 case $cache_file in
23364 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23365 *) # Relative name.
23366 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23367 esac
23368
23369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23370 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23371 # The eval makes quoting arguments work.
23372 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23373 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23374 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
23375 fi
23376
23377 cd "$ac_popdir"
23378 done
23379 fi
23380 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23382 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23383 fi
23384
23385
23386 CXX_MSG="none"
23387 if test "x$CXX" != x ; then
23388 CXX_MSG="$CXX"
23389 fi
23390
23391 echo
23392 echo "libnl $LIBNL_VERSION configuration${LIBNL_GIT_SHA:+ (git:$LIBNL_GIT_SHA)}:"
23393 echo " --enable-pthreads=$enable_pthreads"
23394 echo " --enable-static=$enable_static"
23395 echo
23396 echo " --enable-debug=$enable_debug"
23397 echo " --enable-cli=$enable_cli"
23398 echo
23399 echo " check: $has_check"
23400 echo " CXX: $CXX_MSG (only used for tests)"
23401 echo
23402