Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libmnl 1.0.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libmnl'
589 PACKAGE_TARNAME='libmnl'
590 PACKAGE_VERSION='1.0.5'
591 PACKAGE_STRING='libmnl 1.0.5'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 HAVE_DOXYGEN_FALSE
636 HAVE_DOXYGEN_TRUE
637 HAVE_DOT
638 DOT
639 DOXYGEN
640 regular_CFLAGS
641 regular_CPPFLAGS
642 GCC_FVISIBILITY_HIDDEN
643 CPP
644 LT_SYS_LIBRARY_PATH
645 OTOOL64
646 OTOOL
647 LIPO
648 NMEDIT
649 DSYMUTIL
650 MANIFEST_TOOL
651 RANLIB
652 ac_ct_AR
653 AR
654 DLLTOOL
655 OBJDUMP
656 LN_S
657 NM
658 ac_ct_DUMPBIN
659 DUMPBIN
660 LD
661 FGREP
662 EGREP
663 GREP
664 SED
665 LIBTOOL
666 am__fastdepCC_FALSE
667 am__fastdepCC_TRUE
668 CCDEPMODE
669 am__nodep
670 AMDEPBACKSLASH
671 AMDEP_FALSE
672 AMDEP_TRUE
673 am__include
674 DEPDIR
675 OBJEXT
676 EXEEXT
677 ac_ct_CC
678 CPPFLAGS
679 LDFLAGS
680 CFLAGS
681 CC
682 AM_BACKSLASH
683 AM_DEFAULT_VERBOSITY
684 AM_DEFAULT_V
685 AM_V
686 am__untar
687 am__tar
688 AMTAR
689 am__leading_dot
690 SET_MAKE
691 AWK
692 mkdir_p
693 MKDIR_P
694 INSTALL_STRIP_PROGRAM
695 STRIP
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 host_os
710 host_vendor
711 host_cpu
712 host
713 build_os
714 build_vendor
715 build_cpu
716 build
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 runstatedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL
756 am__quote'
757 ac_subst_files=''
758 ac_user_opts='
759 enable_option_checking
760 enable_silent_rules
761 enable_dependency_tracking
762 enable_static
763 enable_shared
764 with_pic
765 enable_fast_install
766 with_aix_soname
767 with_gnu_ld
768 with_sysroot
769 enable_libtool_lock
770 with_doxygen
771 '
772 ac_precious_vars='build_alias
773 host_alias
774 target_alias
775 CC
776 CFLAGS
777 LDFLAGS
778 LIBS
779 CPPFLAGS
780 LT_SYS_LIBRARY_PATH
781 CPP'
782
783
784 # Initialize some variables set by options.
785 ac_init_help=
786 ac_init_version=false
787 ac_unrecognized_opts=
788 ac_unrecognized_sep=
789 # The variables have the same names as the options, with
790 # dashes changed to underlines.
791 cache_file=/dev/null
792 exec_prefix=NONE
793 no_create=
794 no_recursion=
795 prefix=NONE
796 program_prefix=NONE
797 program_suffix=NONE
798 program_transform_name=s,x,x,
799 silent=
800 site=
801 srcdir=
802 verbose=
803 x_includes=NONE
804 x_libraries=NONE
805
806 # Installation directory options.
807 # These are left unexpanded so users can "make install exec_prefix=/foo"
808 # and all the variables that are supposed to be based on exec_prefix
809 # by default will actually change.
810 # Use braces instead of parens because sh, perl, etc. also accept them.
811 # (The list follows the same order as the GNU Coding Standards.)
812 bindir='${exec_prefix}/bin'
813 sbindir='${exec_prefix}/sbin'
814 libexecdir='${exec_prefix}/libexec'
815 datarootdir='${prefix}/share'
816 datadir='${datarootdir}'
817 sysconfdir='${prefix}/etc'
818 sharedstatedir='${prefix}/com'
819 localstatedir='${prefix}/var'
820 runstatedir='${localstatedir}/run'
821 includedir='${prefix}/include'
822 oldincludedir='/usr/include'
823 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir='${datarootdir}/info'
825 htmldir='${docdir}'
826 dvidir='${docdir}'
827 pdfdir='${docdir}'
828 psdir='${docdir}'
829 libdir='${exec_prefix}/lib'
830 localedir='${datarootdir}/locale'
831 mandir='${datarootdir}/man'
832
833 ac_prev=
834 ac_dashdash=
835 for ac_option
836 do
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\$ac_option
840 ac_prev=
841 continue
842 fi
843
844 case $ac_option in
845 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
846 *=) ac_optarg= ;;
847 *) ac_optarg=yes ;;
848 esac
849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
855
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
859 bindir=$ac_optarg ;;
860
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
875
876 -datadir | --datadir | --datadi | --datad)
877 ac_prev=datadir ;;
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
880
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
888 -disable-* | --disable-*)
889 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
892 as_fn_error $? "invalid feature name: $ac_useropt"
893 ac_useropt_orig=$ac_useropt
894 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
896 *"
897 "enable_$ac_useropt"
898 "*) ;;
899 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep=', ';;
901 esac
902 eval enable_$ac_useropt=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
913
914 -enable-* | --enable-*)
915 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
918 as_fn_error $? "invalid feature name: $ac_useropt"
919 ac_useropt_orig=$ac_useropt
920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
922 *"
923 "enable_$ac_useropt"
924 "*) ;;
925 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep=', ';;
927 esac
928 eval enable_$ac_useropt=\$ac_optarg ;;
929
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev=exec_prefix ;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix=$ac_optarg ;;
938
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
941 with_gas=yes ;;
942
943 -help | --help | --hel | --he | -h)
944 ac_init_help=long ;;
945 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
946 ac_init_help=recursive ;;
947 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
948 ac_init_help=short ;;
949
950 -host | --host | --hos | --ho)
951 ac_prev=host_alias ;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias=$ac_optarg ;;
954
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
956 ac_prev=htmldir ;;
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
958 | --ht=*)
959 htmldir=$ac_optarg ;;
960
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev=includedir ;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir=$ac_optarg ;;
967
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
969 ac_prev=infodir ;;
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir=$ac_optarg ;;
972
973 -libdir | --libdir | --libdi | --libd)
974 ac_prev=libdir ;;
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
976 libdir=$ac_optarg ;;
977
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev=libexecdir ;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir=$ac_optarg ;;
984
985 -localedir | --localedir | --localedi | --localed | --locale)
986 ac_prev=localedir ;;
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir=$ac_optarg ;;
989
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev=localstatedir ;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir=$ac_optarg ;;
996
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
998 ac_prev=mandir ;;
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir=$ac_optarg ;;
1001
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1004 with_fp=no ;;
1005
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1008 no_create=yes ;;
1009
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1012 no_recursion=yes ;;
1013
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev=oldincludedir ;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir=$ac_optarg ;;
1022
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1024 ac_prev=prefix ;;
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix=$ac_optarg ;;
1027
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev=program_prefix ;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix=$ac_optarg ;;
1034
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev=program_suffix ;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix=$ac_optarg ;;
1041
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev=program_transform_name ;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name=$ac_optarg ;;
1058
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1060 ac_prev=pdfdir ;;
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir=$ac_optarg ;;
1063
1064 -psdir | --psdir | --psdi | --psd | --ps)
1065 ac_prev=psdir ;;
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1067 psdir=$ac_optarg ;;
1068
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1071 silent=yes ;;
1072
1073 -runstatedir | --runstatedir | --runstatedi | --runstated \
1074 | --runstate | --runstat | --runsta | --runst | --runs \
1075 | --run | --ru | --r)
1076 ac_prev=runstatedir ;;
1077 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1078 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1079 | --run=* | --ru=* | --r=*)
1080 runstatedir=$ac_optarg ;;
1081
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1083 ac_prev=sbindir ;;
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1085 | --sbi=* | --sb=*)
1086 sbindir=$ac_optarg ;;
1087
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1091 | --sha | --sh)
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1096 | --sha=* | --sh=*)
1097 sharedstatedir=$ac_optarg ;;
1098
1099 -site | --site | --sit)
1100 ac_prev=site ;;
1101 -site=* | --site=* | --sit=*)
1102 site=$ac_optarg ;;
1103
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1105 ac_prev=srcdir ;;
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1108
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1115
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1120
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1122 verbose=yes ;;
1123
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1126
1127 -with-* | --with-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=\$ac_optarg ;;
1142
1143 -without-* | --without-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=no ;;
1158
1159 --x)
1160 # Obsolete; use --with-x.
1161 with_x=yes ;;
1162
1163 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1164 | --x-incl | --x-inc | --x-in | --x-i)
1165 ac_prev=x_includes ;;
1166 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1167 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1168 x_includes=$ac_optarg ;;
1169
1170 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1171 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1172 ac_prev=x_libraries ;;
1173 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1174 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1175 x_libraries=$ac_optarg ;;
1176
1177 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1178 Try \`$0 --help' for more information"
1179 ;;
1180
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 case $ac_envvar in #(
1185 '' | [0-9]* | *[!_$as_cr_alnum]* )
1186 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1187 esac
1188 eval $ac_envvar=\$ac_optarg
1189 export $ac_envvar ;;
1190
1191 *)
1192 # FIXME: should be removed in autoconf 3.0.
1193 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1194 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1195 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1196 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1197 ;;
1198
1199 esac
1200 done
1201
1202 if test -n "$ac_prev"; then
1203 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1204 as_fn_error $? "missing argument to $ac_option"
1205 fi
1206
1207 if test -n "$ac_unrecognized_opts"; then
1208 case $enable_option_checking in
1209 no) ;;
1210 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1211 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212 esac
1213 fi
1214
1215 # Check all directory arguments for consistency.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir runstatedir
1220 do
1221 eval ac_val=\$$ac_var
1222 # Remove trailing slashes.
1223 case $ac_val in
1224 */ )
1225 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1226 eval $ac_var=\$ac_val;;
1227 esac
1228 # Be sure to have absolute directory names.
1229 case $ac_val in
1230 [\\/$]* | ?:[\\/]* ) continue;;
1231 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1232 esac
1233 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1234 done
1235
1236 # There might be people who depend on the old broken behavior: `$host'
1237 # used to hold the argument of --host etc.
1238 # FIXME: To remove some day.
1239 build=$build_alias
1240 host=$host_alias
1241 target=$target_alias
1242
1243 # FIXME: To remove some day.
1244 if test "x$host_alias" != x; then
1245 if test "x$build_alias" = x; then
1246 cross_compiling=maybe
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1296 fi
1297 else
1298 ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures libmnl 1.0.5 to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/libmnl]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1387
1388 cat <<\_ACEOF
1389
1390 Program names:
1391 --program-prefix=PREFIX prepend PREFIX to installed program names
1392 --program-suffix=SUFFIX append SUFFIX to installed program names
1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1394
1395 System types:
1396 --build=BUILD configure for building on BUILD [guessed]
1397 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1398 _ACEOF
1399 fi
1400
1401 if test -n "$ac_init_help"; then
1402 case $ac_init_help in
1403 short | recursive ) echo "Configuration of libmnl 1.0.5:";;
1404 esac
1405 cat <<\_ACEOF
1406
1407 Optional Features:
1408 --disable-option-checking ignore unrecognized --enable/--with options
1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1411 --enable-silent-rules less verbose build output (undo: "make V=1")
1412 --disable-silent-rules verbose build output (undo: "make V=0")
1413 --enable-dependency-tracking
1414 do not reject slow dependency extractors
1415 --disable-dependency-tracking
1416 speeds up one-time build
1417 --enable-static[=PKGS] build static libraries [default=no]
1418 --enable-shared[=PKGS] build shared libraries [default=yes]
1419 --enable-fast-install[=PKGS]
1420 optimize for fast installation [default=yes]
1421 --disable-libtool-lock avoid locking (might break parallel builds)
1422
1423 Optional Packages:
1424 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1425 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1426 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1427 both]
1428 --with-aix-soname=aix|svr4|both
1429 shared library versioning (aka "SONAME") variant to
1430 provide on AIX, [default=aix].
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1433 compiler's sysroot if not specified).
1434 --with-doxygen create doxygen documentation
1435
1436 Some influential environment variables:
1437 CC C compiler command
1438 CFLAGS C compiler flags
1439 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1440 nonstandard directory <lib dir>
1441 LIBS libraries to pass to the linker, e.g. -l<library>
1442 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1443 you have headers in a nonstandard directory <include dir>
1444 LT_SYS_LIBRARY_PATH
1445 User-defined run-time library search path.
1446 CPP C preprocessor
1447
1448 Use these variables to override the choices made by `configure' or to help
1449 it to find libraries and programs with nonstandard names/locations.
1450
1451 Report bugs to the package provider.
1452 _ACEOF
1453 ac_status=$?
1454 fi
1455
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1462 ac_builddir=.
1463
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *)
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1479
1480 case $srcdir in
1481 .) # We are building in place.
1482 ac_srcdir=.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1504 else
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1508 done
1509 fi
1510
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513 cat <<\_ACEOF
1514 libmnl configure 1.0.5
1515 generated by GNU Autoconf 2.69
1516
1517 Copyright (C) 2012 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521 exit
1522 fi
1523
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1527
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1532 {
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555 else
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559 ac_retval=1
1560 fi
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1563
1564 } # ac_fn_c_try_compile
1565
1566 # ac_fn_c_try_link LINENO
1567 # -----------------------
1568 # Try to link conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_link ()
1570 {
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext conftest$ac_exeext
1573 if { { ac_try="$ac_link"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_link") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1586 fi
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest$ac_exeext && {
1592 test "$cross_compiling" = yes ||
1593 test -x conftest$ac_exeext
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601 fi
1602 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1603 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1604 # interfere with the next link command; also delete a directory that is
1605 # left behind by Apple's compiler. We do this before executing the actions.
1606 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1607 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1608 as_fn_set_status $ac_retval
1609
1610 } # ac_fn_c_try_link
1611
1612 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1613 # -------------------------------------------------------
1614 # Tests whether HEADER exists and can be compiled using the include files in
1615 # INCLUDES, setting the cache variable VAR accordingly.
1616 ac_fn_c_check_header_compile ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1620 $as_echo_n "checking for $2... " >&6; }
1621 if eval \${$3+:} false; then :
1622 $as_echo_n "(cached) " >&6
1623 else
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1626 $4
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630 eval "$3=yes"
1631 else
1632 eval "$3=no"
1633 fi
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 fi
1636 eval ac_res=\$$3
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1638 $as_echo "$ac_res" >&6; }
1639 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
1641 } # ac_fn_c_check_header_compile
1642
1643 # ac_fn_c_try_cpp LINENO
1644 # ----------------------
1645 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_cpp ()
1647 {
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if { { ac_try="$ac_cpp conftest.$ac_ext"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } > conftest.i && {
1665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 }; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674 fi
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_cpp
1679
1680 # ac_fn_c_try_run LINENO
1681 # ----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1683 # that executables *can* be run.
1684 ac_fn_c_try_run ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>&5
1695 ac_status=$?
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1698 { { case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_try") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; }; }; then :
1708 ac_retval=0
1709 else
1710 $as_echo "$as_me: program exited with status $ac_status" >&5
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=$ac_status
1715 fi
1716 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718 as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_run
1721
1722 # ac_fn_c_check_func LINENO FUNC VAR
1723 # ----------------------------------
1724 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1725 ac_fn_c_check_func ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1729 $as_echo_n "checking for $2... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1737 #define $2 innocuous_$2
1738
1739 /* System header to define __stub macros and hopefully few prototypes,
1740 which can conflict with char $2 (); below.
1741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1742 <limits.h> exists even on freestanding compilers. */
1743
1744 #ifdef __STDC__
1745 # include <limits.h>
1746 #else
1747 # include <assert.h>
1748 #endif
1749
1750 #undef $2
1751
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1755 #ifdef __cplusplus
1756 extern "C"
1757 #endif
1758 char $2 ();
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1763 choke me
1764 #endif
1765
1766 int
1767 main ()
1768 {
1769 return $2 ();
1770 ;
1771 return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_c_try_link "$LINENO"; then :
1775 eval "$3=yes"
1776 else
1777 eval "$3=no"
1778 fi
1779 rm -f core conftest.err conftest.$ac_objext \
1780 conftest$ac_exeext conftest.$ac_ext
1781 fi
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787 } # ac_fn_c_check_func
1788 cat >config.log <<_ACEOF
1789 This file contains any messages produced by compilers while
1790 running configure, to aid debugging if configure makes a mistake.
1791
1792 It was created by libmnl $as_me 1.0.5, which was
1793 generated by GNU Autoconf 2.69. Invocation command line was
1794
1795 $ $0 $@
1796
1797 _ACEOF
1798 exec 5>>config.log
1799 {
1800 cat <<_ASUNAME
1801 ## --------- ##
1802 ## Platform. ##
1803 ## --------- ##
1804
1805 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1806 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1807 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1808 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1809 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1810
1811 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1812 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1813
1814 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1815 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1816 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1817 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1818 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1819 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1820 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1821
1822 _ASUNAME
1823
1824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1825 for as_dir in $PATH
1826 do
1827 IFS=$as_save_IFS
1828 test -z "$as_dir" && as_dir=.
1829 $as_echo "PATH: $as_dir"
1830 done
1831 IFS=$as_save_IFS
1832
1833 } >&5
1834
1835 cat >&5 <<_ACEOF
1836
1837
1838 ## ----------- ##
1839 ## Core tests. ##
1840 ## ----------- ##
1841
1842 _ACEOF
1843
1844
1845 # Keep a trace of the command line.
1846 # Strip out --no-create and --no-recursion so they do not pile up.
1847 # Strip out --silent because we don't want to record it for future runs.
1848 # Also quote any args containing shell meta-characters.
1849 # Make two passes to allow for proper duplicate-argument suppression.
1850 ac_configure_args=
1851 ac_configure_args0=
1852 ac_configure_args1=
1853 ac_must_keep_next=false
1854 for ac_pass in 1 2
1855 do
1856 for ac_arg
1857 do
1858 case $ac_arg in
1859 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1860 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1861 | -silent | --silent | --silen | --sile | --sil)
1862 continue ;;
1863 *\'*)
1864 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1865 esac
1866 case $ac_pass in
1867 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1868 2)
1869 as_fn_append ac_configure_args1 " '$ac_arg'"
1870 if test $ac_must_keep_next = true; then
1871 ac_must_keep_next=false # Got value, back to normal.
1872 else
1873 case $ac_arg in
1874 *=* | --config-cache | -C | -disable-* | --disable-* \
1875 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1876 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1877 | -with-* | --with-* | -without-* | --without-* | --x)
1878 case "$ac_configure_args0 " in
1879 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1880 esac
1881 ;;
1882 -* ) ac_must_keep_next=true ;;
1883 esac
1884 fi
1885 as_fn_append ac_configure_args " '$ac_arg'"
1886 ;;
1887 esac
1888 done
1889 done
1890 { ac_configure_args0=; unset ac_configure_args0;}
1891 { ac_configure_args1=; unset ac_configure_args1;}
1892
1893 # When interrupted or exit'd, cleanup temporary files, and complete
1894 # config.log. We remove comments because anyway the quotes in there
1895 # would cause problems or look ugly.
1896 # WARNING: Use '\'' to represent an apostrophe within the trap.
1897 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1898 trap 'exit_status=$?
1899 # Save into config.log some information that might help in debugging.
1900 {
1901 echo
1902
1903 $as_echo "## ---------------- ##
1904 ## Cache variables. ##
1905 ## ---------------- ##"
1906 echo
1907 # The following way of writing the cache mishandles newlines in values,
1908 (
1909 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1910 eval ac_val=\$$ac_var
1911 case $ac_val in #(
1912 *${as_nl}*)
1913 case $ac_var in #(
1914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1916 esac
1917 case $ac_var in #(
1918 _ | IFS | as_nl) ;; #(
1919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1920 *) { eval $ac_var=; unset $ac_var;} ;;
1921 esac ;;
1922 esac
1923 done
1924 (set) 2>&1 |
1925 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1926 *${as_nl}ac_space=\ *)
1927 sed -n \
1928 "s/'\''/'\''\\\\'\'''\''/g;
1929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1930 ;; #(
1931 *)
1932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1933 ;;
1934 esac |
1935 sort
1936 )
1937 echo
1938
1939 $as_echo "## ----------------- ##
1940 ## Output variables. ##
1941 ## ----------------- ##"
1942 echo
1943 for ac_var in $ac_subst_vars
1944 do
1945 eval ac_val=\$$ac_var
1946 case $ac_val in
1947 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1948 esac
1949 $as_echo "$ac_var='\''$ac_val'\''"
1950 done | sort
1951 echo
1952
1953 if test -n "$ac_subst_files"; then
1954 $as_echo "## ------------------- ##
1955 ## File substitutions. ##
1956 ## ------------------- ##"
1957 echo
1958 for ac_var in $ac_subst_files
1959 do
1960 eval ac_val=\$$ac_var
1961 case $ac_val in
1962 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1963 esac
1964 $as_echo "$ac_var='\''$ac_val'\''"
1965 done | sort
1966 echo
1967 fi
1968
1969 if test -s confdefs.h; then
1970 $as_echo "## ----------- ##
1971 ## confdefs.h. ##
1972 ## ----------- ##"
1973 echo
1974 cat confdefs.h
1975 echo
1976 fi
1977 test "$ac_signal" != 0 &&
1978 $as_echo "$as_me: caught signal $ac_signal"
1979 $as_echo "$as_me: exit $exit_status"
1980 } >&5
1981 rm -f core *.core core.conftest.* &&
1982 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1983 exit $exit_status
1984 ' 0
1985 for ac_signal in 1 2 13 15; do
1986 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1987 done
1988 ac_signal=0
1989
1990 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1991 rm -f -r conftest* confdefs.h
1992
1993 $as_echo "/* confdefs.h */" > confdefs.h
1994
1995 # Predefined preprocessor variables.
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_NAME "$PACKAGE_NAME"
1999 _ACEOF
2000
2001 cat >>confdefs.h <<_ACEOF
2002 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2003 _ACEOF
2004
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2007 _ACEOF
2008
2009 cat >>confdefs.h <<_ACEOF
2010 #define PACKAGE_STRING "$PACKAGE_STRING"
2011 _ACEOF
2012
2013 cat >>confdefs.h <<_ACEOF
2014 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2015 _ACEOF
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_URL "$PACKAGE_URL"
2019 _ACEOF
2020
2021
2022 # Let the site file select an alternate cache file if it wants to.
2023 # Prefer an explicitly selected file to automatically selected ones.
2024 ac_site_file1=NONE
2025 ac_site_file2=NONE
2026 if test -n "$CONFIG_SITE"; then
2027 # We do not want a PATH search for config.site.
2028 case $CONFIG_SITE in #((
2029 -*) ac_site_file1=./$CONFIG_SITE;;
2030 */*) ac_site_file1=$CONFIG_SITE;;
2031 *) ac_site_file1=./$CONFIG_SITE;;
2032 esac
2033 elif test "x$prefix" != xNONE; then
2034 ac_site_file1=$prefix/share/config.site
2035 ac_site_file2=$prefix/etc/config.site
2036 else
2037 ac_site_file1=$ac_default_prefix/share/config.site
2038 ac_site_file2=$ac_default_prefix/etc/config.site
2039 fi
2040 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2041 do
2042 test "x$ac_site_file" = xNONE && continue
2043 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2045 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2046 sed 's/^/| /' "$ac_site_file" >&5
2047 . "$ac_site_file" \
2048 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2050 as_fn_error $? "failed to load site script $ac_site_file
2051 See \`config.log' for more details" "$LINENO" 5; }
2052 fi
2053 done
2054
2055 if test -r "$cache_file"; then
2056 # Some versions of bash will fail to source /dev/null (special files
2057 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2058 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2060 $as_echo "$as_me: loading cache $cache_file" >&6;}
2061 case $cache_file in
2062 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2063 *) . "./$cache_file";;
2064 esac
2065 fi
2066 else
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2068 $as_echo "$as_me: creating cache $cache_file" >&6;}
2069 >$cache_file
2070 fi
2071
2072 # Check that the precious variables saved in the cache have kept the same
2073 # value.
2074 ac_cache_corrupted=false
2075 for ac_var in $ac_precious_vars; do
2076 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2077 eval ac_new_set=\$ac_env_${ac_var}_set
2078 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2079 eval ac_new_val=\$ac_env_${ac_var}_value
2080 case $ac_old_set,$ac_new_set in
2081 set,)
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2083 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2084 ac_cache_corrupted=: ;;
2085 ,set)
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2087 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2088 ac_cache_corrupted=: ;;
2089 ,);;
2090 *)
2091 if test "x$ac_old_val" != "x$ac_new_val"; then
2092 # differences in whitespace do not lead to failure.
2093 ac_old_val_w=`echo x $ac_old_val`
2094 ac_new_val_w=`echo x $ac_new_val`
2095 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2097 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2098 ac_cache_corrupted=:
2099 else
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2101 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2102 eval $ac_var=\$ac_old_val
2103 fi
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2105 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2107 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2108 fi;;
2109 esac
2110 # Pass precious variables to config.status.
2111 if test "$ac_new_set" = set; then
2112 case $ac_new_val in
2113 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2114 *) ac_arg=$ac_var=$ac_new_val ;;
2115 esac
2116 case " $ac_configure_args " in
2117 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2118 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2119 esac
2120 fi
2121 done
2122 if $ac_cache_corrupted; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2126 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2127 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2128 fi
2129 ## -------------------- ##
2130 ## Main body of script. ##
2131 ## -------------------- ##
2132
2133 ac_ext=c
2134 ac_cpp='$CPP $CPPFLAGS'
2135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2138
2139
2140 ac_aux_dir=
2141 for ac_dir in build-aux "$srcdir"/build-aux; do
2142 if test -f "$ac_dir/install-sh"; then
2143 ac_aux_dir=$ac_dir
2144 ac_install_sh="$ac_aux_dir/install-sh -c"
2145 break
2146 elif test -f "$ac_dir/install.sh"; then
2147 ac_aux_dir=$ac_dir
2148 ac_install_sh="$ac_aux_dir/install.sh -c"
2149 break
2150 elif test -f "$ac_dir/shtool"; then
2151 ac_aux_dir=$ac_dir
2152 ac_install_sh="$ac_aux_dir/shtool install -c"
2153 break
2154 fi
2155 done
2156 if test -z "$ac_aux_dir"; then
2157 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2158 fi
2159
2160 # These three variables are undocumented and unsupported,
2161 # and are intended to be withdrawn in a future Autoconf release.
2162 # They can cause serious problems if a builder's source tree is in a directory
2163 # whose full name contains unusual characters.
2164 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2165 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2166 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2167
2168
2169 # Make sure we can run config.sub.
2170 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2171 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2172
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2174 $as_echo_n "checking build system type... " >&6; }
2175 if ${ac_cv_build+:} false; then :
2176 $as_echo_n "(cached) " >&6
2177 else
2178 ac_build_alias=$build_alias
2179 test "x$ac_build_alias" = x &&
2180 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2181 test "x$ac_build_alias" = x &&
2182 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2183 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2184 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2185
2186 fi
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2188 $as_echo "$ac_cv_build" >&6; }
2189 case $ac_cv_build in
2190 *-*-*) ;;
2191 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2192 esac
2193 build=$ac_cv_build
2194 ac_save_IFS=$IFS; IFS='-'
2195 set x $ac_cv_build
2196 shift
2197 build_cpu=$1
2198 build_vendor=$2
2199 shift; shift
2200 # Remember, the first character of IFS is used to create $*,
2201 # except with old shells:
2202 build_os=$*
2203 IFS=$ac_save_IFS
2204 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2205
2206
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2208 $as_echo_n "checking host system type... " >&6; }
2209 if ${ac_cv_host+:} false; then :
2210 $as_echo_n "(cached) " >&6
2211 else
2212 if test "x$host_alias" = x; then
2213 ac_cv_host=$ac_cv_build
2214 else
2215 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2216 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2217 fi
2218
2219 fi
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2221 $as_echo "$ac_cv_host" >&6; }
2222 case $ac_cv_host in
2223 *-*-*) ;;
2224 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2225 esac
2226 host=$ac_cv_host
2227 ac_save_IFS=$IFS; IFS='-'
2228 set x $ac_cv_host
2229 shift
2230 host_cpu=$1
2231 host_vendor=$2
2232 shift; shift
2233 # Remember, the first character of IFS is used to create $*,
2234 # except with old shells:
2235 host_os=$*
2236 IFS=$ac_save_IFS
2237 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2238
2239
2240
2241 ac_config_headers="$ac_config_headers config.h"
2242
2243 am__api_version='1.16'
2244
2245 # Find a good install program. We prefer a C program (faster),
2246 # so one script is as good as another. But avoid the broken or
2247 # incompatible versions:
2248 # SysV /etc/install, /usr/sbin/install
2249 # SunOS /usr/etc/install
2250 # IRIX /sbin/install
2251 # AIX /bin/install
2252 # AmigaOS /C/install, which installs bootblocks on floppy discs
2253 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2254 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2255 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2256 # OS/2's system install, which has a completely different semantic
2257 # ./install, which can be erroneously created by make from ./install.sh.
2258 # Reject install programs that cannot install multiple files.
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2260 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2261 if test -z "$INSTALL"; then
2262 if ${ac_cv_path_install+:} false; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 for as_dir in $PATH
2267 do
2268 IFS=$as_save_IFS
2269 test -z "$as_dir" && as_dir=.
2270 # Account for people who put trailing slashes in PATH elements.
2271 case $as_dir/ in #((
2272 ./ | .// | /[cC]/* | \
2273 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2274 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2275 /usr/ucb/* ) ;;
2276 *)
2277 # OSF1 and SCO ODT 3.0 have their own names for install.
2278 # Don't use installbsd from OSF since it installs stuff as root
2279 # by default.
2280 for ac_prog in ginstall scoinst install; do
2281 for ac_exec_ext in '' $ac_executable_extensions; do
2282 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2283 if test $ac_prog = install &&
2284 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2285 # AIX install. It has an incompatible calling convention.
2286 :
2287 elif test $ac_prog = install &&
2288 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2289 # program-specific install script used by HP pwplus--don't use.
2290 :
2291 else
2292 rm -rf conftest.one conftest.two conftest.dir
2293 echo one > conftest.one
2294 echo two > conftest.two
2295 mkdir conftest.dir
2296 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2297 test -s conftest.one && test -s conftest.two &&
2298 test -s conftest.dir/conftest.one &&
2299 test -s conftest.dir/conftest.two
2300 then
2301 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2302 break 3
2303 fi
2304 fi
2305 fi
2306 done
2307 done
2308 ;;
2309 esac
2310
2311 done
2312 IFS=$as_save_IFS
2313
2314 rm -rf conftest.one conftest.two conftest.dir
2315
2316 fi
2317 if test "${ac_cv_path_install+set}" = set; then
2318 INSTALL=$ac_cv_path_install
2319 else
2320 # As a last resort, use the slow shell script. Don't cache a
2321 # value for INSTALL within a source directory, because that will
2322 # break other packages using the cache if that directory is
2323 # removed, or if the value is a relative name.
2324 INSTALL=$ac_install_sh
2325 fi
2326 fi
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2328 $as_echo "$INSTALL" >&6; }
2329
2330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2331 # It thinks the first close brace ends the variable substitution.
2332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2333
2334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2335
2336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2337
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2339 $as_echo_n "checking whether build environment is sane... " >&6; }
2340 # Reject unsafe characters in $srcdir or the absolute working directory
2341 # name. Accept space and tab only in the latter.
2342 am_lf='
2343 '
2344 case `pwd` in
2345 *[\\\"\#\$\&\'\`$am_lf]*)
2346 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2347 esac
2348 case $srcdir in
2349 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2350 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2351 esac
2352
2353 # Do 'set' in a subshell so we don't clobber the current shell's
2354 # arguments. Must try -L first in case configure is actually a
2355 # symlink; some systems play weird games with the mod time of symlinks
2356 # (eg FreeBSD returns the mod time of the symlink's containing
2357 # directory).
2358 if (
2359 am_has_slept=no
2360 for am_try in 1 2; do
2361 echo "timestamp, slept: $am_has_slept" > conftest.file
2362 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2363 if test "$*" = "X"; then
2364 # -L didn't work.
2365 set X `ls -t "$srcdir/configure" conftest.file`
2366 fi
2367 if test "$*" != "X $srcdir/configure conftest.file" \
2368 && test "$*" != "X conftest.file $srcdir/configure"; then
2369
2370 # If neither matched, then we have a broken ls. This can happen
2371 # if, for instance, CONFIG_SHELL is bash and it inherits a
2372 # broken ls alias from the environment. This has actually
2373 # happened. Such a system could not be considered "sane".
2374 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2375 alias in your environment" "$LINENO" 5
2376 fi
2377 if test "$2" = conftest.file || test $am_try -eq 2; then
2378 break
2379 fi
2380 # Just in case.
2381 sleep 1
2382 am_has_slept=yes
2383 done
2384 test "$2" = conftest.file
2385 )
2386 then
2387 # Ok.
2388 :
2389 else
2390 as_fn_error $? "newly created file is older than distributed files!
2391 Check your system clock" "$LINENO" 5
2392 fi
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2394 $as_echo "yes" >&6; }
2395 # If we didn't sleep, we still need to ensure time stamps of config.status and
2396 # generated files are strictly newer.
2397 am_sleep_pid=
2398 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2399 ( sleep 1 ) &
2400 am_sleep_pid=$!
2401 fi
2402
2403 rm -f conftest.file
2404
2405 test "$program_prefix" != NONE &&
2406 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2407 # Use a double $ so make ignores it.
2408 test "$program_suffix" != NONE &&
2409 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2410 # Double any \ or $.
2411 # By default was `s,x,x', remove it if useless.
2412 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2413 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2414
2415 # Expand $ac_aux_dir to an absolute path.
2416 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2417
2418 if test x"${MISSING+set}" != xset; then
2419 MISSING="\${SHELL} '$am_aux_dir/missing'"
2420 fi
2421 # Use eval to expand $SHELL
2422 if eval "$MISSING --is-lightweight"; then
2423 am_missing_run="$MISSING "
2424 else
2425 am_missing_run=
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2427 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2428 fi
2429
2430 if test x"${install_sh+set}" != xset; then
2431 case $am_aux_dir in
2432 *\ * | *\ *)
2433 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2434 *)
2435 install_sh="\${SHELL} $am_aux_dir/install-sh"
2436 esac
2437 fi
2438
2439 # Installed binaries are usually stripped using 'strip' when the user
2440 # run "make install-strip". However 'strip' might not be the right
2441 # tool to use in cross-compilation environments, therefore Automake
2442 # will honor the 'STRIP' environment variable to overrule this program.
2443 if test "$cross_compiling" != no; then
2444 if test -n "$ac_tool_prefix"; then
2445 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2446 set dummy ${ac_tool_prefix}strip; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_STRIP+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$STRIP"; then
2453 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2462 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 STRIP=$ac_cv_prog_STRIP
2473 if test -n "$STRIP"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2475 $as_echo "$STRIP" >&6; }
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2480
2481
2482 fi
2483 if test -z "$ac_cv_prog_STRIP"; then
2484 ac_ct_STRIP=$STRIP
2485 # Extract the first word of "strip", so it can be a program name with args.
2486 set dummy strip; ac_word=$2
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2488 $as_echo_n "checking for $ac_word... " >&6; }
2489 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 if test -n "$ac_ct_STRIP"; then
2493 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2494 else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 for as_dir in $PATH
2497 do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_exec_ext in '' $ac_executable_extensions; do
2501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2502 ac_cv_prog_ac_ct_STRIP="strip"
2503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2504 break 2
2505 fi
2506 done
2507 done
2508 IFS=$as_save_IFS
2509
2510 fi
2511 fi
2512 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2513 if test -n "$ac_ct_STRIP"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2515 $as_echo "$ac_ct_STRIP" >&6; }
2516 else
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2518 $as_echo "no" >&6; }
2519 fi
2520
2521 if test "x$ac_ct_STRIP" = x; then
2522 STRIP=":"
2523 else
2524 case $cross_compiling:$ac_tool_warned in
2525 yes:)
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2528 ac_tool_warned=yes ;;
2529 esac
2530 STRIP=$ac_ct_STRIP
2531 fi
2532 else
2533 STRIP="$ac_cv_prog_STRIP"
2534 fi
2535
2536 fi
2537 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2538
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2540 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2541 if test -z "$MKDIR_P"; then
2542 if ${ac_cv_path_mkdir+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2546 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2547 do
2548 IFS=$as_save_IFS
2549 test -z "$as_dir" && as_dir=.
2550 for ac_prog in mkdir gmkdir; do
2551 for ac_exec_ext in '' $ac_executable_extensions; do
2552 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2553 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2554 'mkdir (GNU coreutils) '* | \
2555 'mkdir (coreutils) '* | \
2556 'mkdir (fileutils) '4.1*)
2557 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2558 break 3;;
2559 esac
2560 done
2561 done
2562 done
2563 IFS=$as_save_IFS
2564
2565 fi
2566
2567 test -d ./--version && rmdir ./--version
2568 if test "${ac_cv_path_mkdir+set}" = set; then
2569 MKDIR_P="$ac_cv_path_mkdir -p"
2570 else
2571 # As a last resort, use the slow shell script. Don't cache a
2572 # value for MKDIR_P within a source directory, because that will
2573 # break other packages using the cache if that directory is
2574 # removed, or if the value is a relative name.
2575 MKDIR_P="$ac_install_sh -d"
2576 fi
2577 fi
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2579 $as_echo "$MKDIR_P" >&6; }
2580
2581 for ac_prog in gawk mawk nawk awk
2582 do
2583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2584 set dummy $ac_prog; ac_word=$2
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2586 $as_echo_n "checking for $ac_word... " >&6; }
2587 if ${ac_cv_prog_AWK+:} false; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 if test -n "$AWK"; then
2591 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596 IFS=$as_save_IFS
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2600 ac_cv_prog_AWK="$ac_prog"
2601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2602 break 2
2603 fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 AWK=$ac_cv_prog_AWK
2611 if test -n "$AWK"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2613 $as_echo "$AWK" >&6; }
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2617 fi
2618
2619
2620 test -n "$AWK" && break
2621 done
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2624 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2625 set x ${MAKE-make}
2626 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2627 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2628 $as_echo_n "(cached) " >&6
2629 else
2630 cat >conftest.make <<\_ACEOF
2631 SHELL = /bin/sh
2632 all:
2633 @echo '@@@%%%=$(MAKE)=@@@%%%'
2634 _ACEOF
2635 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2636 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2637 *@@@%%%=?*=@@@%%%*)
2638 eval ac_cv_prog_make_${ac_make}_set=yes;;
2639 *)
2640 eval ac_cv_prog_make_${ac_make}_set=no;;
2641 esac
2642 rm -f conftest.make
2643 fi
2644 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2646 $as_echo "yes" >&6; }
2647 SET_MAKE=
2648 else
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 SET_MAKE="MAKE=${MAKE-make}"
2652 fi
2653
2654 rm -rf .tst 2>/dev/null
2655 mkdir .tst 2>/dev/null
2656 if test -d .tst; then
2657 am__leading_dot=.
2658 else
2659 am__leading_dot=_
2660 fi
2661 rmdir .tst 2>/dev/null
2662
2663 # Check whether --enable-silent-rules was given.
2664 if test "${enable_silent_rules+set}" = set; then :
2665 enableval=$enable_silent_rules;
2666 fi
2667
2668 case $enable_silent_rules in # (((
2669 yes) AM_DEFAULT_VERBOSITY=0;;
2670 no) AM_DEFAULT_VERBOSITY=1;;
2671 *) AM_DEFAULT_VERBOSITY=1;;
2672 esac
2673 am_make=${MAKE-make}
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2675 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2676 if ${am_cv_make_support_nested_variables+:} false; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if $as_echo 'TRUE=$(BAR$(V))
2680 BAR0=false
2681 BAR1=true
2682 V=1
2683 am__doit:
2684 @$(TRUE)
2685 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2686 am_cv_make_support_nested_variables=yes
2687 else
2688 am_cv_make_support_nested_variables=no
2689 fi
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2692 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2693 if test $am_cv_make_support_nested_variables = yes; then
2694 AM_V='$(V)'
2695 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2696 else
2697 AM_V=$AM_DEFAULT_VERBOSITY
2698 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2699 fi
2700 AM_BACKSLASH='\'
2701
2702 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2703 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2704 # is not polluted with repeated "-I."
2705 am__isrc=' -I$(srcdir)'
2706 # test to see if srcdir already configured
2707 if test -f $srcdir/config.status; then
2708 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2709 fi
2710 fi
2711
2712 # test whether we have cygpath
2713 if test -z "$CYGPATH_W"; then
2714 if (cygpath --version) >/dev/null 2>/dev/null; then
2715 CYGPATH_W='cygpath -w'
2716 else
2717 CYGPATH_W=echo
2718 fi
2719 fi
2720
2721
2722 # Define the identity of the package.
2723 PACKAGE='libmnl'
2724 VERSION='1.0.5'
2725
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define PACKAGE "$PACKAGE"
2729 _ACEOF
2730
2731
2732 cat >>confdefs.h <<_ACEOF
2733 #define VERSION "$VERSION"
2734 _ACEOF
2735
2736 # Some tools Automake needs.
2737
2738 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2739
2740
2741 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2742
2743
2744 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2745
2746
2747 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2748
2749
2750 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2751
2752 # For better backward compatibility. To be removed once Automake 1.9.x
2753 # dies out for good. For more background, see:
2754 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2755 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2756 mkdir_p='$(MKDIR_P)'
2757
2758 # We need awk for the "check" target (and possibly the TAP driver). The
2759 # system "awk" is bad on some platforms.
2760 # Always define AMTAR for backward compatibility. Yes, it's still used
2761 # in the wild :-( We should find a proper way to deprecate it ...
2762 AMTAR='$${TAR-tar}'
2763
2764
2765 # We'll loop over all known methods to create a tar archive until one works.
2766 _am_tools='gnutar pax cpio none'
2767
2768
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
2771 $as_echo_n "checking how to create a pax tar archive... " >&6; }
2772
2773 # Go ahead even if we have the value already cached. We do so because we
2774 # need to set the values for the 'am__tar' and 'am__untar' variables.
2775 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
2776
2777 for _am_tool in $_am_tools; do
2778 case $_am_tool in
2779 gnutar)
2780 for _am_tar in tar gnutar gtar; do
2781 { echo "$as_me:$LINENO: $_am_tar --version" >&5
2782 ($_am_tar --version) >&5 2>&5
2783 ac_status=$?
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } && break
2786 done
2787 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
2788 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
2789 am__untar="$_am_tar -xf -"
2790 ;;
2791 plaintar)
2792 # Must skip GNU tar: if it does not support --format= it doesn't create
2793 # ustar tarball either.
2794 (tar --version) >/dev/null 2>&1 && continue
2795 am__tar='tar chf - "$$tardir"'
2796 am__tar_='tar chf - "$tardir"'
2797 am__untar='tar xf -'
2798 ;;
2799 pax)
2800 am__tar='pax -L -x pax -w "$$tardir"'
2801 am__tar_='pax -L -x pax -w "$tardir"'
2802 am__untar='pax -r'
2803 ;;
2804 cpio)
2805 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
2806 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
2807 am__untar='cpio -i -H pax -d'
2808 ;;
2809 none)
2810 am__tar=false
2811 am__tar_=false
2812 am__untar=false
2813 ;;
2814 esac
2815
2816 # If the value was cached, stop now. We just wanted to have am__tar
2817 # and am__untar set.
2818 test -n "${am_cv_prog_tar_pax}" && break
2819
2820 # tar/untar a dummy directory, and stop if the command works.
2821 rm -rf conftest.dir
2822 mkdir conftest.dir
2823 echo GrepMe > conftest.dir/file
2824 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2825 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829 rm -rf conftest.dir
2830 if test -s conftest.tar; then
2831 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2832 ($am__untar <conftest.tar) >&5 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }
2836 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
2837 (cat conftest.dir/file) >&5 2>&5
2838 ac_status=$?
2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840 (exit $ac_status); }
2841 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2842 fi
2843 done
2844 rm -rf conftest.dir
2845
2846 if ${am_cv_prog_tar_pax+:} false; then :
2847 $as_echo_n "(cached) " >&6
2848 else
2849 am_cv_prog_tar_pax=$_am_tool
2850 fi
2851
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
2853 $as_echo "$am_cv_prog_tar_pax" >&6; }
2854
2855
2856
2857
2858
2859
2860 # POSIX will say in a future version that running "rm -f" with no argument
2861 # is OK; and we want to be able to make that assumption in our Makefile
2862 # recipes. So use an aggressive probe to check that the usage we want is
2863 # actually supported "in the wild" to an acceptable degree.
2864 # See automake bug#10828.
2865 # To make any issue more visible, cause the running configure to be aborted
2866 # by default if the 'rm' program in use doesn't match our expectations; the
2867 # user can still override this though.
2868 if rm -f && rm -fr && rm -rf; then : OK; else
2869 cat >&2 <<'END'
2870 Oops!
2871
2872 Your 'rm' program seems unable to run without file operands specified
2873 on the command line, even when the '-f' option is present. This is contrary
2874 to the behaviour of most rm programs out there, and not conforming with
2875 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2876
2877 Please tell [email protected] about your system, including the value
2878 of your $PATH and any error possibly output before this message. This
2879 can help us improve future automake versions.
2880
2881 END
2882 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2883 echo 'Configuration will proceed anyway, since you have set the' >&2
2884 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2885 echo >&2
2886 else
2887 cat >&2 <<'END'
2888 Aborting the configuration process, to ensure you take notice of the issue.
2889
2890 You can download and install GNU coreutils to get an 'rm' implementation
2891 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2892
2893 If you want to complete the configuration process using your problematic
2894 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2895 to "yes", and re-run configure.
2896
2897 END
2898 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2899 fi
2900 fi
2901
2902
2903 # Check whether --enable-silent-rules was given.
2904 if test "${enable_silent_rules+set}" = set; then :
2905 enableval=$enable_silent_rules;
2906 fi
2907
2908 case $enable_silent_rules in # (((
2909 yes) AM_DEFAULT_VERBOSITY=0;;
2910 no) AM_DEFAULT_VERBOSITY=1;;
2911 *) AM_DEFAULT_VERBOSITY=0;;
2912 esac
2913 am_make=${MAKE-make}
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2915 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2916 if ${am_cv_make_support_nested_variables+:} false; then :
2917 $as_echo_n "(cached) " >&6
2918 else
2919 if $as_echo 'TRUE=$(BAR$(V))
2920 BAR0=false
2921 BAR1=true
2922 V=1
2923 am__doit:
2924 @$(TRUE)
2925 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2926 am_cv_make_support_nested_variables=yes
2927 else
2928 am_cv_make_support_nested_variables=no
2929 fi
2930 fi
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2932 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2933 if test $am_cv_make_support_nested_variables = yes; then
2934 AM_V='$(V)'
2935 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2936 else
2937 AM_V=$AM_DEFAULT_VERBOSITY
2938 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2939 fi
2940 AM_BACKSLASH='\'
2941
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC="$CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 CC=$ac_cv_prog_CC
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985
2986 fi
2987 if test -z "$ac_cv_prog_CC"; then
2988 ac_ct_CC=$CC
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy gcc; ac_word=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3006 ac_cv_prog_ac_ct_CC="gcc"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3020 else
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025 if test "x$ac_ct_CC" = x; then
3026 CC=""
3027 else
3028 case $cross_compiling:$ac_tool_warned in
3029 yes:)
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned=yes ;;
3033 esac
3034 CC=$ac_ct_CC
3035 fi
3036 else
3037 CC="$ac_cv_prog_CC"
3038 fi
3039
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3043 set dummy ${ac_tool_prefix}cc; ac_word=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if ${ac_cv_prog_CC+:} false; then :
3047 $as_echo_n "(cached) " >&6
3048 else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3054 do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 ac_cv_prog_CC="${ac_tool_prefix}cc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061 break 2
3062 fi
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068 fi
3069 CC=$ac_cv_prog_CC
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3073 else
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 fi
3077
3078
3079 fi
3080 fi
3081 if test -z "$CC"; then
3082 # Extract the first word of "cc", so it can be a program name with args.
3083 set dummy cc; ac_word=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if ${ac_cv_prog_CC+:} false; then :
3087 $as_echo_n "(cached) " >&6
3088 else
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC="$CC" # Let the user override the test.
3091 else
3092 ac_prog_rejected=no
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3101 ac_prog_rejected=yes
3102 continue
3103 fi
3104 ac_cv_prog_CC="cc"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 break 2
3107 fi
3108 done
3109 done
3110 IFS=$as_save_IFS
3111
3112 if test $ac_prog_rejected = yes; then
3113 # We found a bogon in the path, so make sure we never use it.
3114 set dummy $ac_cv_prog_CC
3115 shift
3116 if test $# != 0; then
3117 # We chose a different compiler from the bogus one.
3118 # However, it has the same basename, so the bogon will be chosen
3119 # first if we set CC to just the basename; use the full file name.
3120 shift
3121 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3122 fi
3123 fi
3124 fi
3125 fi
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135
3136 fi
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 for ac_prog in cl.exe
3140 do
3141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3142 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_CC+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147 else
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC="$CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154 IFS=$as_save_IFS
3155 test -z "$as_dir" && as_dir=.
3156 for ac_exec_ext in '' $ac_executable_extensions; do
3157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 break 2
3161 fi
3162 done
3163 done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 CC=$ac_cv_prog_CC
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177
3178 test -n "$CC" && break
3179 done
3180 fi
3181 if test -z "$CC"; then
3182 ac_ct_CC=$CC
3183 for ac_prog in cl.exe
3184 do
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186 set dummy $ac_prog; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_ac_ct_CC="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206 done
3207 done
3208 IFS=$as_save_IFS
3209
3210 fi
3211 fi
3212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3213 if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215 $as_echo "$ac_ct_CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 test -n "$ac_ct_CC" && break
3223 done
3224
3225 if test "x$ac_ct_CC" = x; then
3226 CC=""
3227 else
3228 case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234 CC=$ac_ct_CC
3235 fi
3236 fi
3237
3238 fi
3239
3240
3241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $? "no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details" "$LINENO" 5; }
3245
3246 # Provide some information about the compiler.
3247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3248 set X $ac_compile
3249 ac_compiler=$2
3250 for ac_option in --version -v -V -qversion; do
3251 { { ac_try="$ac_compiler $ac_option >&5"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3259 ac_status=$?
3260 if test -s conftest.err; then
3261 sed '10a\
3262 ... rest of stderr output deleted ...
3263 10q' conftest.err >conftest.er1
3264 cat conftest.er1 >&5
3265 fi
3266 rm -f conftest.er1 conftest.err
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269 done
3270
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3273
3274 int
3275 main ()
3276 {
3277
3278 ;
3279 return 0;
3280 }
3281 _ACEOF
3282 ac_clean_files_save=$ac_clean_files
3283 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3284 # Try to create an executable without -o first, disregard a.out.
3285 # It will help us diagnose broken compilers, and finding out an intuition
3286 # of exeext.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3288 $as_echo_n "checking whether the C compiler works... " >&6; }
3289 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3290
3291 # The possible output files:
3292 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3293
3294 ac_rmfiles=
3295 for ac_file in $ac_files
3296 do
3297 case $ac_file in
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3300 esac
3301 done
3302 rm -f $ac_rmfiles
3303
3304 if { { ac_try="$ac_link_default"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link_default") 2>&5
3312 ac_status=$?
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3318 # so that the user can short-circuit this test for compilers unknown to
3319 # Autoconf.
3320 for ac_file in $ac_files ''
3321 do
3322 test -f "$ac_file" || continue
3323 case $ac_file in
3324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3325 ;;
3326 [ab].out )
3327 # We found the default executable, but exeext='' is most
3328 # certainly right.
3329 break;;
3330 *.* )
3331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3332 then :; else
3333 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334 fi
3335 # We set ac_cv_exeext here because the later test for it is not
3336 # safe: cross compilers may not add the suffix if given an `-o'
3337 # argument, so we may need to know it at that point already.
3338 # Even if this section looks crufty: it has the advantage of
3339 # actually working.
3340 break;;
3341 * )
3342 break;;
3343 esac
3344 done
3345 test "$ac_cv_exeext" = no && ac_cv_exeext=
3346
3347 else
3348 ac_file=''
3349 fi
3350 if test -z "$ac_file"; then :
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3353 $as_echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error 77 "C compiler cannot create executables
3359 See \`config.log' for more details" "$LINENO" 5; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 $as_echo "yes" >&6; }
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3365 $as_echo_n "checking for C compiler default output file name... " >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3367 $as_echo "$ac_file" >&6; }
3368 ac_exeext=$ac_cv_exeext
3369
3370 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3371 ac_clean_files=$ac_clean_files_save
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3373 $as_echo_n "checking for suffix of executables... " >&6; }
3374 if { { ac_try="$ac_link"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link") 2>&5
3382 ac_status=$?
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3386 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3387 # work properly (i.e., refer to `conftest.exe'), while it won't with
3388 # `rm'.
3389 for ac_file in conftest.exe conftest conftest.*; do
3390 test -f "$ac_file" || continue
3391 case $ac_file in
3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3393 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3394 break;;
3395 * ) break;;
3396 esac
3397 done
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3402 See \`config.log' for more details" "$LINENO" 5; }
3403 fi
3404 rm -f conftest conftest$ac_cv_exeext
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3406 $as_echo "$ac_cv_exeext" >&6; }
3407
3408 rm -f conftest.$ac_ext
3409 EXEEXT=$ac_cv_exeext
3410 ac_exeext=$EXEEXT
3411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3413 #include <stdio.h>
3414 int
3415 main ()
3416 {
3417 FILE *f = fopen ("conftest.out", "w");
3418 return ferror (f) || fclose (f) != 0;
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 ac_clean_files="$ac_clean_files conftest.out"
3425 # Check that the compiler produces executables we can run. If not, either
3426 # the compiler is broken, or we cross compile.
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3428 $as_echo_n "checking whether we are cross compiling... " >&6; }
3429 if test "$cross_compiling" != yes; then
3430 { { ac_try="$ac_link"
3431 case "(($ac_try" in
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3434 esac
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link") 2>&5
3438 ac_status=$?
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }
3441 if { ac_try='./conftest$ac_cv_exeext'
3442 { { case "(($ac_try" in
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3445 esac
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_try") 2>&5
3449 ac_status=$?
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; }; then
3452 cross_compiling=no
3453 else
3454 if test "$cross_compiling" = maybe; then
3455 cross_compiling=yes
3456 else
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $? "cannot run C compiled programs.
3460 If you meant to cross compile, use \`--host'.
3461 See \`config.log' for more details" "$LINENO" 5; }
3462 fi
3463 fi
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3466 $as_echo "$cross_compiling" >&6; }
3467
3468 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3469 ac_clean_files=$ac_clean_files_save
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3471 $as_echo_n "checking for suffix of object files... " >&6; }
3472 if ${ac_cv_objext+:} false; then :
3473 $as_echo_n "(cached) " >&6
3474 else
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477
3478 int
3479 main ()
3480 {
3481
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 rm -f conftest.o conftest.obj
3487 if { { ac_try="$ac_compile"
3488 case "(($ac_try" in
3489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3491 esac
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_compile") 2>&5
3495 ac_status=$?
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; then :
3498 for ac_file in conftest.o conftest.obj conftest.*; do
3499 test -f "$ac_file" || continue;
3500 case $ac_file in
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3503 break;;
3504 esac
3505 done
3506 else
3507 $as_echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3509
3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error $? "cannot compute suffix of object files: cannot compile
3513 See \`config.log' for more details" "$LINENO" 5; }
3514 fi
3515 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3518 $as_echo "$ac_cv_objext" >&6; }
3519 OBJEXT=$ac_cv_objext
3520 ac_objext=$OBJEXT
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3522 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3523 if ${ac_cv_c_compiler_gnu+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3528
3529 int
3530 main ()
3531 {
3532 #ifndef __GNUC__
3533 choke me
3534 #endif
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 if ac_fn_c_try_compile "$LINENO"; then :
3541 ac_compiler_gnu=yes
3542 else
3543 ac_compiler_gnu=no
3544 fi
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3547
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3550 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3551 if test $ac_compiler_gnu = yes; then
3552 GCC=yes
3553 else
3554 GCC=
3555 fi
3556 ac_test_CFLAGS=${CFLAGS+set}
3557 ac_save_CFLAGS=$CFLAGS
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3559 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3560 if ${ac_cv_prog_cc_g+:} false; then :
3561 $as_echo_n "(cached) " >&6
3562 else
3563 ac_save_c_werror_flag=$ac_c_werror_flag
3564 ac_c_werror_flag=yes
3565 ac_cv_prog_cc_g=no
3566 CFLAGS="-g"
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3569
3570 int
3571 main ()
3572 {
3573
3574 ;
3575 return 0;
3576 }
3577 _ACEOF
3578 if ac_fn_c_try_compile "$LINENO"; then :
3579 ac_cv_prog_cc_g=yes
3580 else
3581 CFLAGS=""
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584
3585 int
3586 main ()
3587 {
3588
3589 ;
3590 return 0;
3591 }
3592 _ACEOF
3593 if ac_fn_c_try_compile "$LINENO"; then :
3594
3595 else
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3597 CFLAGS="-g"
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600
3601 int
3602 main ()
3603 {
3604
3605 ;
3606 return 0;
3607 }
3608 _ACEOF
3609 if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_cv_prog_cc_g=yes
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613 fi
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 fi
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_c_werror_flag=$ac_save_c_werror_flag
3618 fi
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3620 $as_echo "$ac_cv_prog_cc_g" >&6; }
3621 if test "$ac_test_CFLAGS" = set; then
3622 CFLAGS=$ac_save_CFLAGS
3623 elif test $ac_cv_prog_cc_g = yes; then
3624 if test "$GCC" = yes; then
3625 CFLAGS="-g -O2"
3626 else
3627 CFLAGS="-g"
3628 fi
3629 else
3630 if test "$GCC" = yes; then
3631 CFLAGS="-O2"
3632 else
3633 CFLAGS=
3634 fi
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3637 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3638 if ${ac_cv_prog_cc_c89+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 ac_cv_prog_cc_c89=no
3642 ac_save_CC=$CC
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3645 #include <stdarg.h>
3646 #include <stdio.h>
3647 struct stat;
3648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3649 struct buf { int x; };
3650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651 static char *e (p, i)
3652 char **p;
3653 int i;
3654 {
3655 return p[i];
3656 }
3657 static char *f (char * (*g) (char **, int), char **p, ...)
3658 {
3659 char *s;
3660 va_list v;
3661 va_start (v,p);
3662 s = g (p, va_arg (v,int));
3663 va_end (v);
3664 return s;
3665 }
3666
3667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3668 function prototypes and stuff, but not '\xHH' hex character constants.
3669 These don't provoke an error unfortunately, instead are silently treated
3670 as 'x'. The following induces an error, until -std is added to get
3671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3672 array size at least. It's necessary to write '\x00'==0 to get something
3673 that's true only with -std. */
3674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3675
3676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3677 inside strings and character constants. */
3678 #define FOO(x) 'x'
3679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3680
3681 int test (int i, double x);
3682 struct s1 {int (*f) (int a);};
3683 struct s2 {int (*f) (double a);};
3684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685 int argc;
3686 char **argv;
3687 int
3688 main ()
3689 {
3690 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3691 ;
3692 return 0;
3693 }
3694 _ACEOF
3695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3697 do
3698 CC="$ac_save_CC $ac_arg"
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_cv_prog_cc_c89=$ac_arg
3701 fi
3702 rm -f core conftest.err conftest.$ac_objext
3703 test "x$ac_cv_prog_cc_c89" != "xno" && break
3704 done
3705 rm -f conftest.$ac_ext
3706 CC=$ac_save_CC
3707
3708 fi
3709 # AC_CACHE_VAL
3710 case "x$ac_cv_prog_cc_c89" in
3711 x)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3713 $as_echo "none needed" >&6; } ;;
3714 xno)
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3716 $as_echo "unsupported" >&6; } ;;
3717 *)
3718 CC="$CC $ac_cv_prog_cc_c89"
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3720 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3721 esac
3722 if test "x$ac_cv_prog_cc_c89" != xno; then :
3723
3724 fi
3725
3726 ac_ext=c
3727 ac_cpp='$CPP $CPPFLAGS'
3728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3731
3732 ac_ext=c
3733 ac_cpp='$CPP $CPPFLAGS'
3734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3738 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3739 if ${am_cv_prog_cc_c_o+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 # Make sure it works both with $CC and with simple cc.
3754 # Following AC_PROG_CC_C_O, we do the test twice because some
3755 # compilers refuse to overwrite an existing .o file with -o,
3756 # though they will create one.
3757 am_cv_prog_cc_c_o=yes
3758 for am_i in 1 2; do
3759 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3760 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3761 ac_status=$?
3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763 (exit $ac_status); } \
3764 && test -f conftest2.$ac_objext; then
3765 : OK
3766 else
3767 am_cv_prog_cc_c_o=no
3768 break
3769 fi
3770 done
3771 rm -f core conftest*
3772 unset am_i
3773 fi
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3775 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3776 if test "$am_cv_prog_cc_c_o" != yes; then
3777 # Losing compiler, so override with the script.
3778 # FIXME: It is wrong to rewrite CC.
3779 # But if we don't then we get into trouble of one sort or another.
3780 # A longer-term fix would be to have automake use am__CC in this case,
3781 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3782 CC="$am_aux_dir/compile $CC"
3783 fi
3784 ac_ext=c
3785 ac_cpp='$CPP $CPPFLAGS'
3786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3789
3790 DEPDIR="${am__leading_dot}deps"
3791
3792 ac_config_commands="$ac_config_commands depfiles"
3793
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3795 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3796 cat > confinc.mk << 'END'
3797 am__doit:
3798 @echo this is the am__doit target >confinc.out
3799 .PHONY: am__doit
3800 END
3801 am__include="#"
3802 am__quote=
3803 # BSD make does it like this.
3804 echo '.include "confinc.mk" # ignored' > confmf.BSD
3805 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3806 echo 'include confinc.mk # ignored' > confmf.GNU
3807 _am_result=no
3808 for s in GNU BSD; do
3809 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3810 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }
3814 case $?:`cat confinc.out 2>/dev/null` in #(
3815 '0:this is the am__doit target') :
3816 case $s in #(
3817 BSD) :
3818 am__include='.include' am__quote='"' ;; #(
3819 *) :
3820 am__include='include' am__quote='' ;;
3821 esac ;; #(
3822 *) :
3823 ;;
3824 esac
3825 if test "$am__include" != "#"; then
3826 _am_result="yes ($s style)"
3827 break
3828 fi
3829 done
3830 rm -f confinc.* confmf.*
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3832 $as_echo "${_am_result}" >&6; }
3833
3834 # Check whether --enable-dependency-tracking was given.
3835 if test "${enable_dependency_tracking+set}" = set; then :
3836 enableval=$enable_dependency_tracking;
3837 fi
3838
3839 if test "x$enable_dependency_tracking" != xno; then
3840 am_depcomp="$ac_aux_dir/depcomp"
3841 AMDEPBACKSLASH='\'
3842 am__nodep='_no'
3843 fi
3844 if test "x$enable_dependency_tracking" != xno; then
3845 AMDEP_TRUE=
3846 AMDEP_FALSE='#'
3847 else
3848 AMDEP_TRUE='#'
3849 AMDEP_FALSE=
3850 fi
3851
3852
3853
3854 depcc="$CC" am_compiler_list=
3855
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3857 $as_echo_n "checking dependency style of $depcc... " >&6; }
3858 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3862 # We make a subdir and do the tests there. Otherwise we can end up
3863 # making bogus files that we don't know about and never remove. For
3864 # instance it was reported that on HP-UX the gcc test will end up
3865 # making a dummy file named 'D' -- because '-MD' means "put the output
3866 # in D".
3867 rm -rf conftest.dir
3868 mkdir conftest.dir
3869 # Copy depcomp to subdir because otherwise we won't find it if we're
3870 # using a relative directory.
3871 cp "$am_depcomp" conftest.dir
3872 cd conftest.dir
3873 # We will build objects and dependencies in a subdirectory because
3874 # it helps to detect inapplicable dependency modes. For instance
3875 # both Tru64's cc and ICC support -MD to output dependencies as a
3876 # side effect of compilation, but ICC will put the dependencies in
3877 # the current directory while Tru64 will put them in the object
3878 # directory.
3879 mkdir sub
3880
3881 am_cv_CC_dependencies_compiler_type=none
3882 if test "$am_compiler_list" = ""; then
3883 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3884 fi
3885 am__universal=false
3886 case " $depcc " in #(
3887 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3888 esac
3889
3890 for depmode in $am_compiler_list; do
3891 # Setup a source with many dependencies, because some compilers
3892 # like to wrap large dependency lists on column 80 (with \), and
3893 # we should not choose a depcomp mode which is confused by this.
3894 #
3895 # We need to recreate these files for each test, as the compiler may
3896 # overwrite some of them when testing with obscure command lines.
3897 # This happens at least with the AIX C compiler.
3898 : > sub/conftest.c
3899 for i in 1 2 3 4 5 6; do
3900 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3901 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3902 # Solaris 10 /bin/sh.
3903 echo '/* dummy */' > sub/conftst$i.h
3904 done
3905 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3906
3907 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3908 # mode. It turns out that the SunPro C++ compiler does not properly
3909 # handle '-M -o', and we need to detect this. Also, some Intel
3910 # versions had trouble with output in subdirs.
3911 am__obj=sub/conftest.${OBJEXT-o}
3912 am__minus_obj="-o $am__obj"
3913 case $depmode in
3914 gcc)
3915 # This depmode causes a compiler race in universal mode.
3916 test "$am__universal" = false || continue
3917 ;;
3918 nosideeffect)
3919 # After this tag, mechanisms are not by side-effect, so they'll
3920 # only be used when explicitly requested.
3921 if test "x$enable_dependency_tracking" = xyes; then
3922 continue
3923 else
3924 break
3925 fi
3926 ;;
3927 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3928 # This compiler won't grok '-c -o', but also, the minuso test has
3929 # not run yet. These depmodes are late enough in the game, and
3930 # so weak that their functioning should not be impacted.
3931 am__obj=conftest.${OBJEXT-o}
3932 am__minus_obj=
3933 ;;
3934 none) break ;;
3935 esac
3936 if depmode=$depmode \
3937 source=sub/conftest.c object=$am__obj \
3938 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3939 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3940 >/dev/null 2>conftest.err &&
3941 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3942 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3943 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3944 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3945 # icc doesn't choke on unknown options, it will just issue warnings
3946 # or remarks (even with -Werror). So we grep stderr for any message
3947 # that says an option was ignored or not supported.
3948 # When given -MP, icc 7.0 and 7.1 complain thusly:
3949 # icc: Command line warning: ignoring option '-M'; no argument required
3950 # The diagnosis changed in icc 8.0:
3951 # icc: Command line remark: option '-MP' not supported
3952 if (grep 'ignoring option' conftest.err ||
3953 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3954 am_cv_CC_dependencies_compiler_type=$depmode
3955 break
3956 fi
3957 fi
3958 done
3959
3960 cd ..
3961 rm -rf conftest.dir
3962 else
3963 am_cv_CC_dependencies_compiler_type=none
3964 fi
3965
3966 fi
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3968 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3969 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3970
3971 if
3972 test "x$enable_dependency_tracking" != xno \
3973 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3974 am__fastdepCC_TRUE=
3975 am__fastdepCC_FALSE='#'
3976 else
3977 am__fastdepCC_TRUE='#'
3978 am__fastdepCC_FALSE=
3979 fi
3980
3981
3982
3983
3984 # Check whether --enable-static was given.
3985 if test "${enable_static+set}" = set; then :
3986 enableval=$enable_static; p=${PACKAGE-default}
3987 case $enableval in
3988 yes) enable_static=yes ;;
3989 no) enable_static=no ;;
3990 *)
3991 enable_static=no
3992 # Look at the argument we got. We use all the common list separators.
3993 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3994 for pkg in $enableval; do
3995 IFS=$lt_save_ifs
3996 if test "X$pkg" = "X$p"; then
3997 enable_static=yes
3998 fi
3999 done
4000 IFS=$lt_save_ifs
4001 ;;
4002 esac
4003 else
4004 enable_static=no
4005 fi
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015 case `pwd` in
4016 *\ * | *\ *)
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4018 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4019 esac
4020
4021
4022
4023 macro_version='2.4.6'
4024 macro_revision='2.4.6'
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038 ltmain=$ac_aux_dir/ltmain.sh
4039
4040 # Backslashify metacharacters that are still active within
4041 # double-quoted strings.
4042 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4043
4044 # Same as above, but do not quote variable references.
4045 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4046
4047 # Sed substitution to delay expansion of an escaped shell variable in a
4048 # double_quote_subst'ed string.
4049 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4050
4051 # Sed substitution to delay expansion of an escaped single quote.
4052 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4053
4054 # Sed substitution to avoid accidental globbing in evaled expressions
4055 no_glob_subst='s/\*/\\\*/g'
4056
4057 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4058 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4059 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4062 $as_echo_n "checking how to print strings... " >&6; }
4063 # Test print first, because it will be a builtin if present.
4064 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4065 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4066 ECHO='print -r --'
4067 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4068 ECHO='printf %s\n'
4069 else
4070 # Use this function as a fallback that always works.
4071 func_fallback_echo ()
4072 {
4073 eval 'cat <<_LTECHO_EOF
4074 $1
4075 _LTECHO_EOF'
4076 }
4077 ECHO='func_fallback_echo'
4078 fi
4079
4080 # func_echo_all arg...
4081 # Invoke $ECHO with all args, space-separated.
4082 func_echo_all ()
4083 {
4084 $ECHO ""
4085 }
4086
4087 case $ECHO in
4088 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4089 $as_echo "printf" >&6; } ;;
4090 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4091 $as_echo "print -r" >&6; } ;;
4092 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4093 $as_echo "cat" >&6; } ;;
4094 esac
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4110 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4111 if ${ac_cv_path_SED+:} false; then :
4112 $as_echo_n "(cached) " >&6
4113 else
4114 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4115 for ac_i in 1 2 3 4 5 6 7; do
4116 ac_script="$ac_script$as_nl$ac_script"
4117 done
4118 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4119 { ac_script=; unset ac_script;}
4120 if test -z "$SED"; then
4121 ac_path_SED_found=false
4122 # Loop through the user's path and test for each of PROGNAME-LIST
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_prog in sed gsed; do
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4131 as_fn_executable_p "$ac_path_SED" || continue
4132 # Check for GNU ac_path_SED and select it if it is found.
4133 # Check for GNU $ac_path_SED
4134 case `"$ac_path_SED" --version 2>&1` in
4135 *GNU*)
4136 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4137 *)
4138 ac_count=0
4139 $as_echo_n 0123456789 >"conftest.in"
4140 while :
4141 do
4142 cat "conftest.in" "conftest.in" >"conftest.tmp"
4143 mv "conftest.tmp" "conftest.in"
4144 cp "conftest.in" "conftest.nl"
4145 $as_echo '' >> "conftest.nl"
4146 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4148 as_fn_arith $ac_count + 1 && ac_count=$as_val
4149 if test $ac_count -gt ${ac_path_SED_max-0}; then
4150 # Best one so far, save it but keep looking for a better one
4151 ac_cv_path_SED="$ac_path_SED"
4152 ac_path_SED_max=$ac_count
4153 fi
4154 # 10*(2^10) chars as input seems more than enough
4155 test $ac_count -gt 10 && break
4156 done
4157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4158 esac
4159
4160 $ac_path_SED_found && break 3
4161 done
4162 done
4163 done
4164 IFS=$as_save_IFS
4165 if test -z "$ac_cv_path_SED"; then
4166 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4167 fi
4168 else
4169 ac_cv_path_SED=$SED
4170 fi
4171
4172 fi
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4174 $as_echo "$ac_cv_path_SED" >&6; }
4175 SED="$ac_cv_path_SED"
4176 rm -f conftest.sed
4177
4178 test -z "$SED" && SED=sed
4179 Xsed="$SED -e 1s/^X//"
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4192 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4193 if ${ac_cv_path_GREP+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 if test -z "$GREP"; then
4197 ac_path_GREP_found=false
4198 # Loop through the user's path and test for each of PROGNAME-LIST
4199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4201 do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
4204 for ac_prog in grep ggrep; do
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4207 as_fn_executable_p "$ac_path_GREP" || continue
4208 # Check for GNU ac_path_GREP and select it if it is found.
4209 # Check for GNU $ac_path_GREP
4210 case `"$ac_path_GREP" --version 2>&1` in
4211 *GNU*)
4212 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4213 *)
4214 ac_count=0
4215 $as_echo_n 0123456789 >"conftest.in"
4216 while :
4217 do
4218 cat "conftest.in" "conftest.in" >"conftest.tmp"
4219 mv "conftest.tmp" "conftest.in"
4220 cp "conftest.in" "conftest.nl"
4221 $as_echo 'GREP' >> "conftest.nl"
4222 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4223 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4224 as_fn_arith $ac_count + 1 && ac_count=$as_val
4225 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4226 # Best one so far, save it but keep looking for a better one
4227 ac_cv_path_GREP="$ac_path_GREP"
4228 ac_path_GREP_max=$ac_count
4229 fi
4230 # 10*(2^10) chars as input seems more than enough
4231 test $ac_count -gt 10 && break
4232 done
4233 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4234 esac
4235
4236 $ac_path_GREP_found && break 3
4237 done
4238 done
4239 done
4240 IFS=$as_save_IFS
4241 if test -z "$ac_cv_path_GREP"; then
4242 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4243 fi
4244 else
4245 ac_cv_path_GREP=$GREP
4246 fi
4247
4248 fi
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4250 $as_echo "$ac_cv_path_GREP" >&6; }
4251 GREP="$ac_cv_path_GREP"
4252
4253
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4255 $as_echo_n "checking for egrep... " >&6; }
4256 if ${ac_cv_path_EGREP+:} false; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4260 then ac_cv_path_EGREP="$GREP -E"
4261 else
4262 if test -z "$EGREP"; then
4263 ac_path_EGREP_found=false
4264 # Loop through the user's path and test for each of PROGNAME-LIST
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_prog in egrep; do
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4273 as_fn_executable_p "$ac_path_EGREP" || continue
4274 # Check for GNU ac_path_EGREP and select it if it is found.
4275 # Check for GNU $ac_path_EGREP
4276 case `"$ac_path_EGREP" --version 2>&1` in
4277 *GNU*)
4278 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4279 *)
4280 ac_count=0
4281 $as_echo_n 0123456789 >"conftest.in"
4282 while :
4283 do
4284 cat "conftest.in" "conftest.in" >"conftest.tmp"
4285 mv "conftest.tmp" "conftest.in"
4286 cp "conftest.in" "conftest.nl"
4287 $as_echo 'EGREP' >> "conftest.nl"
4288 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4289 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4290 as_fn_arith $ac_count + 1 && ac_count=$as_val
4291 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4292 # Best one so far, save it but keep looking for a better one
4293 ac_cv_path_EGREP="$ac_path_EGREP"
4294 ac_path_EGREP_max=$ac_count
4295 fi
4296 # 10*(2^10) chars as input seems more than enough
4297 test $ac_count -gt 10 && break
4298 done
4299 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4300 esac
4301
4302 $ac_path_EGREP_found && break 3
4303 done
4304 done
4305 done
4306 IFS=$as_save_IFS
4307 if test -z "$ac_cv_path_EGREP"; then
4308 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4309 fi
4310 else
4311 ac_cv_path_EGREP=$EGREP
4312 fi
4313
4314 fi
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4317 $as_echo "$ac_cv_path_EGREP" >&6; }
4318 EGREP="$ac_cv_path_EGREP"
4319
4320
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4322 $as_echo_n "checking for fgrep... " >&6; }
4323 if ${ac_cv_path_FGREP+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4327 then ac_cv_path_FGREP="$GREP -F"
4328 else
4329 if test -z "$FGREP"; then
4330 ac_path_FGREP_found=false
4331 # Loop through the user's path and test for each of PROGNAME-LIST
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4334 do
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_prog in fgrep; do
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4340 as_fn_executable_p "$ac_path_FGREP" || continue
4341 # Check for GNU ac_path_FGREP and select it if it is found.
4342 # Check for GNU $ac_path_FGREP
4343 case `"$ac_path_FGREP" --version 2>&1` in
4344 *GNU*)
4345 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4346 *)
4347 ac_count=0
4348 $as_echo_n 0123456789 >"conftest.in"
4349 while :
4350 do
4351 cat "conftest.in" "conftest.in" >"conftest.tmp"
4352 mv "conftest.tmp" "conftest.in"
4353 cp "conftest.in" "conftest.nl"
4354 $as_echo 'FGREP' >> "conftest.nl"
4355 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4357 as_fn_arith $ac_count + 1 && ac_count=$as_val
4358 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4359 # Best one so far, save it but keep looking for a better one
4360 ac_cv_path_FGREP="$ac_path_FGREP"
4361 ac_path_FGREP_max=$ac_count
4362 fi
4363 # 10*(2^10) chars as input seems more than enough
4364 test $ac_count -gt 10 && break
4365 done
4366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367 esac
4368
4369 $ac_path_FGREP_found && break 3
4370 done
4371 done
4372 done
4373 IFS=$as_save_IFS
4374 if test -z "$ac_cv_path_FGREP"; then
4375 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4376 fi
4377 else
4378 ac_cv_path_FGREP=$FGREP
4379 fi
4380
4381 fi
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4384 $as_echo "$ac_cv_path_FGREP" >&6; }
4385 FGREP="$ac_cv_path_FGREP"
4386
4387
4388 test -z "$GREP" && GREP=grep
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408 # Check whether --with-gnu-ld was given.
4409 if test "${with_gnu_ld+set}" = set; then :
4410 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4411 else
4412 with_gnu_ld=no
4413 fi
4414
4415 ac_prog=ld
4416 if test yes = "$GCC"; then
4417 # Check if gcc -print-prog-name=ld gives a path.
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4419 $as_echo_n "checking for ld used by $CC... " >&6; }
4420 case $host in
4421 *-*-mingw*)
4422 # gcc leaves a trailing carriage return, which upsets mingw
4423 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4424 *)
4425 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4426 esac
4427 case $ac_prog in
4428 # Accept absolute paths.
4429 [\\/]* | ?:[\\/]*)
4430 re_direlt='/[^/][^/]*/\.\./'
4431 # Canonicalize the pathname of ld
4432 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4433 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4434 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4435 done
4436 test -z "$LD" && LD=$ac_prog
4437 ;;
4438 "")
4439 # If it fails, then pretend we aren't using GCC.
4440 ac_prog=ld
4441 ;;
4442 *)
4443 # If it is relative, then search for the first ld in PATH.
4444 with_gnu_ld=unknown
4445 ;;
4446 esac
4447 elif test yes = "$with_gnu_ld"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4449 $as_echo_n "checking for GNU ld... " >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4452 $as_echo_n "checking for non-GNU ld... " >&6; }
4453 fi
4454 if ${lt_cv_path_LD+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 if test -z "$LD"; then
4458 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4459 for ac_dir in $PATH; do
4460 IFS=$lt_save_ifs
4461 test -z "$ac_dir" && ac_dir=.
4462 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4463 lt_cv_path_LD=$ac_dir/$ac_prog
4464 # Check to see if the program is GNU ld. I'd rather use --version,
4465 # but apparently some variants of GNU ld only accept -v.
4466 # Break only if it was the GNU/non-GNU ld that we prefer.
4467 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4468 *GNU* | *'with BFD'*)
4469 test no != "$with_gnu_ld" && break
4470 ;;
4471 *)
4472 test yes != "$with_gnu_ld" && break
4473 ;;
4474 esac
4475 fi
4476 done
4477 IFS=$lt_save_ifs
4478 else
4479 lt_cv_path_LD=$LD # Let the user override the test with a path.
4480 fi
4481 fi
4482
4483 LD=$lt_cv_path_LD
4484 if test -n "$LD"; then
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4486 $as_echo "$LD" >&6; }
4487 else
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490 fi
4491 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4493 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4494 if ${lt_cv_prog_gnu_ld+:} false; then :
4495 $as_echo_n "(cached) " >&6
4496 else
4497 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4498 case `$LD -v 2>&1 </dev/null` in
4499 *GNU* | *'with BFD'*)
4500 lt_cv_prog_gnu_ld=yes
4501 ;;
4502 *)
4503 lt_cv_prog_gnu_ld=no
4504 ;;
4505 esac
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4508 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4509 with_gnu_ld=$lt_cv_prog_gnu_ld
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4520 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4521 if ${lt_cv_path_NM+:} false; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524 if test -n "$NM"; then
4525 # Let the user override the test.
4526 lt_cv_path_NM=$NM
4527 else
4528 lt_nm_to_check=${ac_tool_prefix}nm
4529 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4530 lt_nm_to_check="$lt_nm_to_check nm"
4531 fi
4532 for lt_tmp_nm in $lt_nm_to_check; do
4533 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4534 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4535 IFS=$lt_save_ifs
4536 test -z "$ac_dir" && ac_dir=.
4537 tmp_nm=$ac_dir/$lt_tmp_nm
4538 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4539 # Check to see if the nm accepts a BSD-compat flag.
4540 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4541 # nm: unknown option "B" ignored
4542 # Tru64's nm complains that /dev/null is an invalid object file
4543 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4544 case $build_os in
4545 mingw*) lt_bad_file=conftest.nm/nofile ;;
4546 *) lt_bad_file=/dev/null ;;
4547 esac
4548 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4549 *$lt_bad_file* | *'Invalid file or object type'*)
4550 lt_cv_path_NM="$tmp_nm -B"
4551 break 2
4552 ;;
4553 *)
4554 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4555 */dev/null*)
4556 lt_cv_path_NM="$tmp_nm -p"
4557 break 2
4558 ;;
4559 *)
4560 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4561 continue # so that we can try to find one that supports BSD flags
4562 ;;
4563 esac
4564 ;;
4565 esac
4566 fi
4567 done
4568 IFS=$lt_save_ifs
4569 done
4570 : ${lt_cv_path_NM=no}
4571 fi
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4574 $as_echo "$lt_cv_path_NM" >&6; }
4575 if test no != "$lt_cv_path_NM"; then
4576 NM=$lt_cv_path_NM
4577 else
4578 # Didn't find any BSD compatible name lister, look for dumpbin.
4579 if test -n "$DUMPBIN"; then :
4580 # Let the user override the test.
4581 else
4582 if test -n "$ac_tool_prefix"; then
4583 for ac_prog in dumpbin "link -dump"
4584 do
4585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4588 $as_echo_n "checking for $ac_word... " >&6; }
4589 if ${ac_cv_prog_DUMPBIN+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 if test -n "$DUMPBIN"; then
4593 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4594 else
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH
4597 do
4598 IFS=$as_save_IFS
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4602 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 break 2
4605 fi
4606 done
4607 done
4608 IFS=$as_save_IFS
4609
4610 fi
4611 fi
4612 DUMPBIN=$ac_cv_prog_DUMPBIN
4613 if test -n "$DUMPBIN"; then
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4615 $as_echo "$DUMPBIN" >&6; }
4616 else
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 $as_echo "no" >&6; }
4619 fi
4620
4621
4622 test -n "$DUMPBIN" && break
4623 done
4624 fi
4625 if test -z "$DUMPBIN"; then
4626 ac_ct_DUMPBIN=$DUMPBIN
4627 for ac_prog in dumpbin "link -dump"
4628 do
4629 # Extract the first word of "$ac_prog", so it can be a program name with args.
4630 set dummy $ac_prog; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$ac_ct_DUMPBIN"; then
4637 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654 fi
4655 fi
4656 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4657 if test -n "$ac_ct_DUMPBIN"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4659 $as_echo "$ac_ct_DUMPBIN" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4663 fi
4664
4665
4666 test -n "$ac_ct_DUMPBIN" && break
4667 done
4668
4669 if test "x$ac_ct_DUMPBIN" = x; then
4670 DUMPBIN=":"
4671 else
4672 case $cross_compiling:$ac_tool_warned in
4673 yes:)
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4676 ac_tool_warned=yes ;;
4677 esac
4678 DUMPBIN=$ac_ct_DUMPBIN
4679 fi
4680 fi
4681
4682 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4683 *COFF*)
4684 DUMPBIN="$DUMPBIN -symbols -headers"
4685 ;;
4686 *)
4687 DUMPBIN=:
4688 ;;
4689 esac
4690 fi
4691
4692 if test : != "$DUMPBIN"; then
4693 NM=$DUMPBIN
4694 fi
4695 fi
4696 test -z "$NM" && NM=nm
4697
4698
4699
4700
4701
4702
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4704 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4705 if ${lt_cv_nm_interface+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 lt_cv_nm_interface="BSD nm"
4709 echo "int some_variable = 0;" > conftest.$ac_ext
4710 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4711 (eval "$ac_compile" 2>conftest.err)
4712 cat conftest.err >&5
4713 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4714 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4715 cat conftest.err >&5
4716 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4717 cat conftest.out >&5
4718 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4719 lt_cv_nm_interface="MS dumpbin"
4720 fi
4721 rm -f conftest*
4722 fi
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4724 $as_echo "$lt_cv_nm_interface" >&6; }
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4727 $as_echo_n "checking whether ln -s works... " >&6; }
4728 LN_S=$as_ln_s
4729 if test "$LN_S" = "ln -s"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4731 $as_echo "yes" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4734 $as_echo "no, using $LN_S" >&6; }
4735 fi
4736
4737 # find the maximum length of command line arguments
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4739 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4740 if ${lt_cv_sys_max_cmd_len+:} false; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 i=0
4744 teststring=ABCD
4745
4746 case $build_os in
4747 msdosdjgpp*)
4748 # On DJGPP, this test can blow up pretty badly due to problems in libc
4749 # (any single argument exceeding 2000 bytes causes a buffer overrun
4750 # during glob expansion). Even if it were fixed, the result of this
4751 # check would be larger than it should be.
4752 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4753 ;;
4754
4755 gnu*)
4756 # Under GNU Hurd, this test is not required because there is
4757 # no limit to the length of command line arguments.
4758 # Libtool will interpret -1 as no limit whatsoever
4759 lt_cv_sys_max_cmd_len=-1;
4760 ;;
4761
4762 cygwin* | mingw* | cegcc*)
4763 # On Win9x/ME, this test blows up -- it succeeds, but takes
4764 # about 5 minutes as the teststring grows exponentially.
4765 # Worse, since 9x/ME are not pre-emptively multitasking,
4766 # you end up with a "frozen" computer, even though with patience
4767 # the test eventually succeeds (with a max line length of 256k).
4768 # Instead, let's just punt: use the minimum linelength reported by
4769 # all of the supported platforms: 8192 (on NT/2K/XP).
4770 lt_cv_sys_max_cmd_len=8192;
4771 ;;
4772
4773 mint*)
4774 # On MiNT this can take a long time and run out of memory.
4775 lt_cv_sys_max_cmd_len=8192;
4776 ;;
4777
4778 amigaos*)
4779 # On AmigaOS with pdksh, this test takes hours, literally.
4780 # So we just punt and use a minimum line length of 8192.
4781 lt_cv_sys_max_cmd_len=8192;
4782 ;;
4783
4784 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4785 # This has been around since 386BSD, at least. Likely further.
4786 if test -x /sbin/sysctl; then
4787 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4788 elif test -x /usr/sbin/sysctl; then
4789 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4790 else
4791 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4792 fi
4793 # And add a safety zone
4794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4796 ;;
4797
4798 interix*)
4799 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4800 lt_cv_sys_max_cmd_len=196608
4801 ;;
4802
4803 os2*)
4804 # The test takes a long time on OS/2.
4805 lt_cv_sys_max_cmd_len=8192
4806 ;;
4807
4808 osf*)
4809 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4810 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4811 # nice to cause kernel panics so lets avoid the loop below.
4812 # First set a reasonable default.
4813 lt_cv_sys_max_cmd_len=16384
4814 #
4815 if test -x /sbin/sysconfig; then
4816 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4817 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4818 esac
4819 fi
4820 ;;
4821 sco3.2v5*)
4822 lt_cv_sys_max_cmd_len=102400
4823 ;;
4824 sysv5* | sco5v6* | sysv4.2uw2*)
4825 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4826 if test -n "$kargmax"; then
4827 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4828 else
4829 lt_cv_sys_max_cmd_len=32768
4830 fi
4831 ;;
4832 *)
4833 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4834 if test -n "$lt_cv_sys_max_cmd_len" && \
4835 test undefined != "$lt_cv_sys_max_cmd_len"; then
4836 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4837 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4838 else
4839 # Make teststring a little bigger before we do anything with it.
4840 # a 1K string should be a reasonable start.
4841 for i in 1 2 3 4 5 6 7 8; do
4842 teststring=$teststring$teststring
4843 done
4844 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4845 # If test is not a shell built-in, we'll probably end up computing a
4846 # maximum length that is only half of the actual maximum length, but
4847 # we can't tell.
4848 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4849 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4850 test 17 != "$i" # 1/2 MB should be enough
4851 do
4852 i=`expr $i + 1`
4853 teststring=$teststring$teststring
4854 done
4855 # Only check the string length outside the loop.
4856 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4857 teststring=
4858 # Add a significant safety factor because C++ compilers can tack on
4859 # massive amounts of additional arguments before passing them to the
4860 # linker. It appears as though 1/2 is a usable value.
4861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4862 fi
4863 ;;
4864 esac
4865
4866 fi
4867
4868 if test -n "$lt_cv_sys_max_cmd_len"; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4870 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4871 else
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4873 $as_echo "none" >&6; }
4874 fi
4875 max_cmd_len=$lt_cv_sys_max_cmd_len
4876
4877
4878
4879
4880
4881
4882 : ${CP="cp -f"}
4883 : ${MV="mv -f"}
4884 : ${RM="rm -f"}
4885
4886 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4887 lt_unset=unset
4888 else
4889 lt_unset=false
4890 fi
4891
4892
4893
4894
4895
4896 # test EBCDIC or ASCII
4897 case `echo X|tr X '\101'` in
4898 A) # ASCII based system
4899 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4900 lt_SP2NL='tr \040 \012'
4901 lt_NL2SP='tr \015\012 \040\040'
4902 ;;
4903 *) # EBCDIC based system
4904 lt_SP2NL='tr \100 \n'
4905 lt_NL2SP='tr \r\n \100\100'
4906 ;;
4907 esac
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4918 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4919 if ${lt_cv_to_host_file_cmd+:} false; then :
4920 $as_echo_n "(cached) " >&6
4921 else
4922 case $host in
4923 *-*-mingw* )
4924 case $build in
4925 *-*-mingw* ) # actually msys
4926 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4927 ;;
4928 *-*-cygwin* )
4929 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4930 ;;
4931 * ) # otherwise, assume *nix
4932 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4933 ;;
4934 esac
4935 ;;
4936 *-*-cygwin* )
4937 case $build in
4938 *-*-mingw* ) # actually msys
4939 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4940 ;;
4941 *-*-cygwin* )
4942 lt_cv_to_host_file_cmd=func_convert_file_noop
4943 ;;
4944 * ) # otherwise, assume *nix
4945 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4946 ;;
4947 esac
4948 ;;
4949 * ) # unhandled hosts (and "normal" native builds)
4950 lt_cv_to_host_file_cmd=func_convert_file_noop
4951 ;;
4952 esac
4953
4954 fi
4955
4956 to_host_file_cmd=$lt_cv_to_host_file_cmd
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4958 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4959
4960
4961
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4965 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4966 if ${lt_cv_to_tool_file_cmd+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 #assume ordinary cross tools, or native build.
4970 lt_cv_to_tool_file_cmd=func_convert_file_noop
4971 case $host in
4972 *-*-mingw* )
4973 case $build in
4974 *-*-mingw* ) # actually msys
4975 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4976 ;;
4977 esac
4978 ;;
4979 esac
4980
4981 fi
4982
4983 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4985 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4986
4987
4988
4989
4990
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4992 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4993 if ${lt_cv_ld_reload_flag+:} false; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 lt_cv_ld_reload_flag='-r'
4997 fi
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4999 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5000 reload_flag=$lt_cv_ld_reload_flag
5001 case $reload_flag in
5002 "" | " "*) ;;
5003 *) reload_flag=" $reload_flag" ;;
5004 esac
5005 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5006 case $host_os in
5007 cygwin* | mingw* | pw32* | cegcc*)
5008 if test yes != "$GCC"; then
5009 reload_cmds=false
5010 fi
5011 ;;
5012 darwin*)
5013 if test yes = "$GCC"; then
5014 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5015 else
5016 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5017 fi
5018 ;;
5019 esac
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029 if test -n "$ac_tool_prefix"; then
5030 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5031 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_prog_OBJDUMP+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 if test -n "$OBJDUMP"; then
5038 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5050 fi
5051 done
5052 done
5053 IFS=$as_save_IFS
5054
5055 fi
5056 fi
5057 OBJDUMP=$ac_cv_prog_OBJDUMP
5058 if test -n "$OBJDUMP"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5060 $as_echo "$OBJDUMP" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065
5066
5067 fi
5068 if test -z "$ac_cv_prog_OBJDUMP"; then
5069 ac_ct_OBJDUMP=$OBJDUMP
5070 # Extract the first word of "objdump", so it can be a program name with args.
5071 set dummy objdump; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 if test -n "$ac_ct_OBJDUMP"; then
5078 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5079 else
5080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081 for as_dir in $PATH
5082 do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091 done
5092 done
5093 IFS=$as_save_IFS
5094
5095 fi
5096 fi
5097 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5098 if test -n "$ac_ct_OBJDUMP"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5100 $as_echo "$ac_ct_OBJDUMP" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105
5106 if test "x$ac_ct_OBJDUMP" = x; then
5107 OBJDUMP="false"
5108 else
5109 case $cross_compiling:$ac_tool_warned in
5110 yes:)
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5113 ac_tool_warned=yes ;;
5114 esac
5115 OBJDUMP=$ac_ct_OBJDUMP
5116 fi
5117 else
5118 OBJDUMP="$ac_cv_prog_OBJDUMP"
5119 fi
5120
5121 test -z "$OBJDUMP" && OBJDUMP=objdump
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5132 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5133 if ${lt_cv_deplibs_check_method+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 lt_cv_file_magic_cmd='$MAGIC_CMD'
5137 lt_cv_file_magic_test_file=
5138 lt_cv_deplibs_check_method='unknown'
5139 # Need to set the preceding variable on all platforms that support
5140 # interlibrary dependencies.
5141 # 'none' -- dependencies not supported.
5142 # 'unknown' -- same as none, but documents that we really don't know.
5143 # 'pass_all' -- all dependencies passed with no checks.
5144 # 'test_compile' -- check by making test program.
5145 # 'file_magic [[regex]]' -- check by looking for files in library path
5146 # that responds to the $file_magic_cmd with a given extended regex.
5147 # If you have 'file' or equivalent on your system and you're not sure
5148 # whether 'pass_all' will *always* work, you probably want this one.
5149
5150 case $host_os in
5151 aix[4-9]*)
5152 lt_cv_deplibs_check_method=pass_all
5153 ;;
5154
5155 beos*)
5156 lt_cv_deplibs_check_method=pass_all
5157 ;;
5158
5159 bsdi[45]*)
5160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5161 lt_cv_file_magic_cmd='/usr/bin/file -L'
5162 lt_cv_file_magic_test_file=/shlib/libc.so
5163 ;;
5164
5165 cygwin*)
5166 # func_win32_libid is a shell function defined in ltmain.sh
5167 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5168 lt_cv_file_magic_cmd='func_win32_libid'
5169 ;;
5170
5171 mingw* | pw32*)
5172 # Base MSYS/MinGW do not provide the 'file' command needed by
5173 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5174 # unless we find 'file', for example because we are cross-compiling.
5175 if ( file / ) >/dev/null 2>&1; then
5176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5177 lt_cv_file_magic_cmd='func_win32_libid'
5178 else
5179 # Keep this pattern in sync with the one in func_win32_libid.
5180 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5181 lt_cv_file_magic_cmd='$OBJDUMP -f'
5182 fi
5183 ;;
5184
5185 cegcc*)
5186 # use the weaker test based on 'objdump'. See mingw*.
5187 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5188 lt_cv_file_magic_cmd='$OBJDUMP -f'
5189 ;;
5190
5191 darwin* | rhapsody*)
5192 lt_cv_deplibs_check_method=pass_all
5193 ;;
5194
5195 freebsd* | dragonfly*)
5196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5197 case $host_cpu in
5198 i*86 )
5199 # Not sure whether the presence of OpenBSD here was a mistake.
5200 # Let's accept both of them until this is cleared up.
5201 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5202 lt_cv_file_magic_cmd=/usr/bin/file
5203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5204 ;;
5205 esac
5206 else
5207 lt_cv_deplibs_check_method=pass_all
5208 fi
5209 ;;
5210
5211 haiku*)
5212 lt_cv_deplibs_check_method=pass_all
5213 ;;
5214
5215 hpux10.20* | hpux11*)
5216 lt_cv_file_magic_cmd=/usr/bin/file
5217 case $host_cpu in
5218 ia64*)
5219 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5220 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5221 ;;
5222 hppa*64*)
5223 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]'
5224 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5225 ;;
5226 *)
5227 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5228 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5229 ;;
5230 esac
5231 ;;
5232
5233 interix[3-9]*)
5234 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5236 ;;
5237
5238 irix5* | irix6* | nonstopux*)
5239 case $LD in
5240 *-32|*"-32 ") libmagic=32-bit;;
5241 *-n32|*"-n32 ") libmagic=N32;;
5242 *-64|*"-64 ") libmagic=64-bit;;
5243 *) libmagic=never-match;;
5244 esac
5245 lt_cv_deplibs_check_method=pass_all
5246 ;;
5247
5248 # This must be glibc/ELF.
5249 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5250 lt_cv_deplibs_check_method=pass_all
5251 ;;
5252
5253 netbsd* | netbsdelf*-gnu)
5254 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5255 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5256 else
5257 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5258 fi
5259 ;;
5260
5261 newos6*)
5262 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5263 lt_cv_file_magic_cmd=/usr/bin/file
5264 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5265 ;;
5266
5267 *nto* | *qnx*)
5268 lt_cv_deplibs_check_method=pass_all
5269 ;;
5270
5271 openbsd* | bitrig*)
5272 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5274 else
5275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5276 fi
5277 ;;
5278
5279 osf3* | osf4* | osf5*)
5280 lt_cv_deplibs_check_method=pass_all
5281 ;;
5282
5283 rdos*)
5284 lt_cv_deplibs_check_method=pass_all
5285 ;;
5286
5287 solaris*)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
5290
5291 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295 sysv4 | sysv4.3*)
5296 case $host_vendor in
5297 motorola)
5298 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]'
5299 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5300 ;;
5301 ncr)
5302 lt_cv_deplibs_check_method=pass_all
5303 ;;
5304 sequent)
5305 lt_cv_file_magic_cmd='/bin/file'
5306 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5307 ;;
5308 sni)
5309 lt_cv_file_magic_cmd='/bin/file'
5310 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5311 lt_cv_file_magic_test_file=/lib/libc.so
5312 ;;
5313 siemens)
5314 lt_cv_deplibs_check_method=pass_all
5315 ;;
5316 pc)
5317 lt_cv_deplibs_check_method=pass_all
5318 ;;
5319 esac
5320 ;;
5321
5322 tpf*)
5323 lt_cv_deplibs_check_method=pass_all
5324 ;;
5325 os2*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328 esac
5329
5330 fi
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5332 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5333
5334 file_magic_glob=
5335 want_nocaseglob=no
5336 if test "$build" = "$host"; then
5337 case $host_os in
5338 mingw* | pw32*)
5339 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5340 want_nocaseglob=yes
5341 else
5342 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5343 fi
5344 ;;
5345 esac
5346 fi
5347
5348 file_magic_cmd=$lt_cv_file_magic_cmd
5349 deplibs_check_method=$lt_cv_deplibs_check_method
5350 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373 if test -n "$ac_tool_prefix"; then
5374 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5375 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_DLLTOOL+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$DLLTOOL"; then
5382 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 DLLTOOL=$ac_cv_prog_DLLTOOL
5402 if test -n "$DLLTOOL"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5404 $as_echo "$DLLTOOL" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410
5411 fi
5412 if test -z "$ac_cv_prog_DLLTOOL"; then
5413 ac_ct_DLLTOOL=$DLLTOOL
5414 # Extract the first word of "dlltool", so it can be a program name with args.
5415 set dummy dlltool; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5419 $as_echo_n "(cached) " >&6
5420 else
5421 if test -n "$ac_ct_DLLTOOL"; then
5422 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5423 else
5424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5425 for as_dir in $PATH
5426 do
5427 IFS=$as_save_IFS
5428 test -z "$as_dir" && as_dir=.
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5431 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435 done
5436 done
5437 IFS=$as_save_IFS
5438
5439 fi
5440 fi
5441 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5442 if test -n "$ac_ct_DLLTOOL"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5444 $as_echo "$ac_ct_DLLTOOL" >&6; }
5445 else
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447 $as_echo "no" >&6; }
5448 fi
5449
5450 if test "x$ac_ct_DLLTOOL" = x; then
5451 DLLTOOL="false"
5452 else
5453 case $cross_compiling:$ac_tool_warned in
5454 yes:)
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5457 ac_tool_warned=yes ;;
5458 esac
5459 DLLTOOL=$ac_ct_DLLTOOL
5460 fi
5461 else
5462 DLLTOOL="$ac_cv_prog_DLLTOOL"
5463 fi
5464
5465 test -z "$DLLTOOL" && DLLTOOL=dlltool
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5477 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5478 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5479 $as_echo_n "(cached) " >&6
5480 else
5481 lt_cv_sharedlib_from_linklib_cmd='unknown'
5482
5483 case $host_os in
5484 cygwin* | mingw* | pw32* | cegcc*)
5485 # two different shell functions defined in ltmain.sh;
5486 # decide which one to use based on capabilities of $DLLTOOL
5487 case `$DLLTOOL --help 2>&1` in
5488 *--identify-strict*)
5489 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5490 ;;
5491 *)
5492 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5493 ;;
5494 esac
5495 ;;
5496 *)
5497 # fallback: assume linklib IS sharedlib
5498 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5499 ;;
5500 esac
5501
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5504 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5505 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5506 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5507
5508
5509
5510
5511
5512
5513
5514
5515 if test -n "$ac_tool_prefix"; then
5516 for ac_prog in ar
5517 do
5518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_AR+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 if test -n "$AR"; then
5526 ac_cv_prog_AR="$AR" # Let the user override the test.
5527 else
5528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 for as_dir in $PATH
5530 do
5531 IFS=$as_save_IFS
5532 test -z "$as_dir" && as_dir=.
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 break 2
5538 fi
5539 done
5540 done
5541 IFS=$as_save_IFS
5542
5543 fi
5544 fi
5545 AR=$ac_cv_prog_AR
5546 if test -n "$AR"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5548 $as_echo "$AR" >&6; }
5549 else
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5552 fi
5553
5554
5555 test -n "$AR" && break
5556 done
5557 fi
5558 if test -z "$AR"; then
5559 ac_ct_AR=$AR
5560 for ac_prog in ar
5561 do
5562 # Extract the first word of "$ac_prog", so it can be a program name with args.
5563 set dummy $ac_prog; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 if test -n "$ac_ct_AR"; then
5570 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_exec_ext in '' $ac_executable_extensions; do
5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5579 ac_cv_prog_ac_ct_AR="$ac_prog"
5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581 break 2
5582 fi
5583 done
5584 done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5590 if test -n "$ac_ct_AR"; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5592 $as_echo "$ac_ct_AR" >&6; }
5593 else
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598
5599 test -n "$ac_ct_AR" && break
5600 done
5601
5602 if test "x$ac_ct_AR" = x; then
5603 AR="false"
5604 else
5605 case $cross_compiling:$ac_tool_warned in
5606 yes:)
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5609 ac_tool_warned=yes ;;
5610 esac
5611 AR=$ac_ct_AR
5612 fi
5613 fi
5614
5615 : ${AR=ar}
5616 : ${AR_FLAGS=cr}
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5629 $as_echo_n "checking for archiver @FILE support... " >&6; }
5630 if ${lt_cv_ar_at_file+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 lt_cv_ar_at_file=no
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5636
5637 int
5638 main ()
5639 {
5640
5641 ;
5642 return 0;
5643 }
5644 _ACEOF
5645 if ac_fn_c_try_compile "$LINENO"; then :
5646 echo conftest.$ac_objext > conftest.lst
5647 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5649 (eval $lt_ar_try) 2>&5
5650 ac_status=$?
5651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5652 test $ac_status = 0; }
5653 if test 0 -eq "$ac_status"; then
5654 # Ensure the archiver fails upon bogus file names.
5655 rm -f conftest.$ac_objext libconftest.a
5656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5657 (eval $lt_ar_try) 2>&5
5658 ac_status=$?
5659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5660 test $ac_status = 0; }
5661 if test 0 -ne "$ac_status"; then
5662 lt_cv_ar_at_file=@
5663 fi
5664 fi
5665 rm -f conftest.* libconftest.a
5666
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5669
5670 fi
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5672 $as_echo "$lt_cv_ar_at_file" >&6; }
5673
5674 if test no = "$lt_cv_ar_at_file"; then
5675 archiver_list_spec=
5676 else
5677 archiver_list_spec=$lt_cv_ar_at_file
5678 fi
5679
5680
5681
5682
5683
5684
5685
5686 if test -n "$ac_tool_prefix"; then
5687 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5688 set dummy ${ac_tool_prefix}strip; ac_word=$2
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690 $as_echo_n "checking for $ac_word... " >&6; }
5691 if ${ac_cv_prog_STRIP+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693 else
5694 if test -n "$STRIP"; then
5695 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5696 else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708 done
5709 done
5710 IFS=$as_save_IFS
5711
5712 fi
5713 fi
5714 STRIP=$ac_cv_prog_STRIP
5715 if test -n "$STRIP"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5717 $as_echo "$STRIP" >&6; }
5718 else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720 $as_echo "no" >&6; }
5721 fi
5722
5723
5724 fi
5725 if test -z "$ac_cv_prog_STRIP"; then
5726 ac_ct_STRIP=$STRIP
5727 # Extract the first word of "strip", so it can be a program name with args.
5728 set dummy strip; ac_word=$2
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730 $as_echo_n "checking for $ac_word... " >&6; }
5731 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733 else
5734 if test -n "$ac_ct_STRIP"; then
5735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5736 else
5737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 for as_dir in $PATH
5739 do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_ac_ct_STRIP="strip"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748 done
5749 done
5750 IFS=$as_save_IFS
5751
5752 fi
5753 fi
5754 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5755 if test -n "$ac_ct_STRIP"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5757 $as_echo "$ac_ct_STRIP" >&6; }
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763 if test "x$ac_ct_STRIP" = x; then
5764 STRIP=":"
5765 else
5766 case $cross_compiling:$ac_tool_warned in
5767 yes:)
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770 ac_tool_warned=yes ;;
5771 esac
5772 STRIP=$ac_ct_STRIP
5773 fi
5774 else
5775 STRIP="$ac_cv_prog_STRIP"
5776 fi
5777
5778 test -z "$STRIP" && STRIP=:
5779
5780
5781
5782
5783
5784
5785 if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5789 $as_echo_n "checking for $ac_word... " >&6; }
5790 if ${ac_cv_prog_RANLIB+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792 else
5793 if test -n "$RANLIB"; then
5794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5795 else
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 for as_dir in $PATH
5798 do
5799 IFS=$as_save_IFS
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 break 2
5806 fi
5807 done
5808 done
5809 IFS=$as_save_IFS
5810
5811 fi
5812 fi
5813 RANLIB=$ac_cv_prog_RANLIB
5814 if test -n "$RANLIB"; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5816 $as_echo "$RANLIB" >&6; }
5817 else
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 fi
5821
5822
5823 fi
5824 if test -z "$ac_cv_prog_RANLIB"; then
5825 ac_ct_RANLIB=$RANLIB
5826 # Extract the first word of "ranlib", so it can be a program name with args.
5827 set dummy ranlib; ac_word=$2
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5829 $as_echo_n "checking for $ac_word... " >&6; }
5830 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5831 $as_echo_n "(cached) " >&6
5832 else
5833 if test -n "$ac_ct_RANLIB"; then
5834 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5835 else
5836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5837 for as_dir in $PATH
5838 do
5839 IFS=$as_save_IFS
5840 test -z "$as_dir" && as_dir=.
5841 for ac_exec_ext in '' $ac_executable_extensions; do
5842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5843 ac_cv_prog_ac_ct_RANLIB="ranlib"
5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 break 2
5846 fi
5847 done
5848 done
5849 IFS=$as_save_IFS
5850
5851 fi
5852 fi
5853 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5854 if test -n "$ac_ct_RANLIB"; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5856 $as_echo "$ac_ct_RANLIB" >&6; }
5857 else
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862 if test "x$ac_ct_RANLIB" = x; then
5863 RANLIB=":"
5864 else
5865 case $cross_compiling:$ac_tool_warned in
5866 yes:)
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5869 ac_tool_warned=yes ;;
5870 esac
5871 RANLIB=$ac_ct_RANLIB
5872 fi
5873 else
5874 RANLIB="$ac_cv_prog_RANLIB"
5875 fi
5876
5877 test -z "$RANLIB" && RANLIB=:
5878
5879
5880
5881
5882
5883
5884 # Determine commands to create old-style static archives.
5885 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5886 old_postinstall_cmds='chmod 644 $oldlib'
5887 old_postuninstall_cmds=
5888
5889 if test -n "$RANLIB"; then
5890 case $host_os in
5891 bitrig* | openbsd*)
5892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5893 ;;
5894 *)
5895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5896 ;;
5897 esac
5898 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5899 fi
5900
5901 case $host_os in
5902 darwin*)
5903 lock_old_archive_extraction=yes ;;
5904 *)
5905 lock_old_archive_extraction=no ;;
5906 esac
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946 # If no C compiler was specified, use CC.
5947 LTCC=${LTCC-"$CC"}
5948
5949 # If no C compiler flags were specified, use CFLAGS.
5950 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5951
5952 # Allow CC to be a program name with arguments.
5953 compiler=$CC
5954
5955
5956 # Check for command to grab the raw symbol name followed by C symbol from nm.
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5958 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5959 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962
5963 # These are sane defaults that work on at least a few old systems.
5964 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5965
5966 # Character class describing NM global symbol codes.
5967 symcode='[BCDEGRST]'
5968
5969 # Regexp to match symbols that can be accessed directly from C.
5970 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5971
5972 # Define system-specific variables.
5973 case $host_os in
5974 aix*)
5975 symcode='[BCDT]'
5976 ;;
5977 cygwin* | mingw* | pw32* | cegcc*)
5978 symcode='[ABCDGISTW]'
5979 ;;
5980 hpux*)
5981 if test ia64 = "$host_cpu"; then
5982 symcode='[ABCDEGRST]'
5983 fi
5984 ;;
5985 irix* | nonstopux*)
5986 symcode='[BCDEGRST]'
5987 ;;
5988 osf*)
5989 symcode='[BCDEGQRST]'
5990 ;;
5991 solaris*)
5992 symcode='[BDRT]'
5993 ;;
5994 sco3.2v5*)
5995 symcode='[DT]'
5996 ;;
5997 sysv4.2uw2*)
5998 symcode='[DT]'
5999 ;;
6000 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6001 symcode='[ABDT]'
6002 ;;
6003 sysv4)
6004 symcode='[DFNSTU]'
6005 ;;
6006 esac
6007
6008 # If we're using GNU nm, then use its standard symbol codes.
6009 case `$NM -V 2>&1` in
6010 *GNU* | *'with BFD'*)
6011 symcode='[ABCDGIRSTW]' ;;
6012 esac
6013
6014 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6015 # Gets list of data symbols to import.
6016 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6017 # Adjust the below global symbol transforms to fixup imported variables.
6018 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6019 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6020 lt_c_name_lib_hook="\
6021 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6022 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6023 else
6024 # Disable hooks by default.
6025 lt_cv_sys_global_symbol_to_import=
6026 lt_cdecl_hook=
6027 lt_c_name_hook=
6028 lt_c_name_lib_hook=
6029 fi
6030
6031 # Transform an extracted symbol line into a proper C declaration.
6032 # Some systems (esp. on ia64) link data and code symbols differently,
6033 # so use this general approach.
6034 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6035 $lt_cdecl_hook\
6036 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6037 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6038
6039 # Transform an extracted symbol line into symbol name and symbol address
6040 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6041 $lt_c_name_hook\
6042 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6043 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6044
6045 # Transform an extracted symbol line into symbol name with lib prefix and
6046 # symbol address.
6047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6048 $lt_c_name_lib_hook\
6049 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6050 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6051 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6052
6053 # Handle CRLF in mingw tool chain
6054 opt_cr=
6055 case $build_os in
6056 mingw*)
6057 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6058 ;;
6059 esac
6060
6061 # Try without a prefix underscore, then with it.
6062 for ac_symprfx in "" "_"; do
6063
6064 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6065 symxfrm="\\1 $ac_symprfx\\2 \\2"
6066
6067 # Write the raw and C identifiers.
6068 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6069 # Fake it for dumpbin and say T for any non-static function,
6070 # D for any global variable and I for any imported variable.
6071 # Also find C++ and __fastcall symbols from MSVC++,
6072 # which start with @ or ?.
6073 lt_cv_sys_global_symbol_pipe="$AWK '"\
6074 " {last_section=section; section=\$ 3};"\
6075 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6076 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6077 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6078 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6079 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6080 " \$ 0!~/External *\|/{next};"\
6081 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6082 " {if(hide[section]) next};"\
6083 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6084 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6085 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6086 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6087 " ' prfx=^$ac_symprfx"
6088 else
6089 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6090 fi
6091 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6092
6093 # Check to see that the pipe works correctly.
6094 pipe_works=no
6095
6096 rm -f conftest*
6097 cat > conftest.$ac_ext <<_LT_EOF
6098 #ifdef __cplusplus
6099 extern "C" {
6100 #endif
6101 char nm_test_var;
6102 void nm_test_func(void);
6103 void nm_test_func(void){}
6104 #ifdef __cplusplus
6105 }
6106 #endif
6107 int main(){nm_test_var='a';nm_test_func();return(0);}
6108 _LT_EOF
6109
6110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6111 (eval $ac_compile) 2>&5
6112 ac_status=$?
6113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6114 test $ac_status = 0; }; then
6115 # Now try to grab the symbols.
6116 nlist=conftest.nm
6117 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6118 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6119 # Try sorting and uniquifying the output.
6120 if sort "$nlist" | uniq > "$nlist"T; then
6121 mv -f "$nlist"T "$nlist"
6122 else
6123 rm -f "$nlist"T
6124 fi
6125
6126 # Make sure that we snagged all the symbols we need.
6127 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6128 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6129 cat <<_LT_EOF > conftest.$ac_ext
6130 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6131 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6132 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6133 relocations are performed -- see ld's documentation on pseudo-relocs. */
6134 # define LT_DLSYM_CONST
6135 #elif defined __osf__
6136 /* This system does not cope well with relocations in const data. */
6137 # define LT_DLSYM_CONST
6138 #else
6139 # define LT_DLSYM_CONST const
6140 #endif
6141
6142 #ifdef __cplusplus
6143 extern "C" {
6144 #endif
6145
6146 _LT_EOF
6147 # Now generate the symbol file.
6148 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6149
6150 cat <<_LT_EOF >> conftest.$ac_ext
6151
6152 /* The mapping between symbol names and symbols. */
6153 LT_DLSYM_CONST struct {
6154 const char *name;
6155 void *address;
6156 }
6157 lt__PROGRAM__LTX_preloaded_symbols[] =
6158 {
6159 { "@PROGRAM@", (void *) 0 },
6160 _LT_EOF
6161 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6162 cat <<\_LT_EOF >> conftest.$ac_ext
6163 {0, (void *) 0}
6164 };
6165
6166 /* This works around a problem in FreeBSD linker */
6167 #ifdef FREEBSD_WORKAROUND
6168 static const void *lt_preloaded_setup() {
6169 return lt__PROGRAM__LTX_preloaded_symbols;
6170 }
6171 #endif
6172
6173 #ifdef __cplusplus
6174 }
6175 #endif
6176 _LT_EOF
6177 # Now try linking the two files.
6178 mv conftest.$ac_objext conftstm.$ac_objext
6179 lt_globsym_save_LIBS=$LIBS
6180 lt_globsym_save_CFLAGS=$CFLAGS
6181 LIBS=conftstm.$ac_objext
6182 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6184 (eval $ac_link) 2>&5
6185 ac_status=$?
6186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6187 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6188 pipe_works=yes
6189 fi
6190 LIBS=$lt_globsym_save_LIBS
6191 CFLAGS=$lt_globsym_save_CFLAGS
6192 else
6193 echo "cannot find nm_test_func in $nlist" >&5
6194 fi
6195 else
6196 echo "cannot find nm_test_var in $nlist" >&5
6197 fi
6198 else
6199 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6200 fi
6201 else
6202 echo "$progname: failed program was:" >&5
6203 cat conftest.$ac_ext >&5
6204 fi
6205 rm -rf conftest* conftst*
6206
6207 # Do not use the global_symbol_pipe unless it works.
6208 if test yes = "$pipe_works"; then
6209 break
6210 else
6211 lt_cv_sys_global_symbol_pipe=
6212 fi
6213 done
6214
6215 fi
6216
6217 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6218 lt_cv_sys_global_symbol_to_cdecl=
6219 fi
6220 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6222 $as_echo "failed" >&6; }
6223 else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6225 $as_echo "ok" >&6; }
6226 fi
6227
6228 # Response file support.
6229 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6230 nm_file_list_spec='@'
6231 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6232 nm_file_list_spec='@'
6233 fi
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6272 $as_echo_n "checking for sysroot... " >&6; }
6273
6274 # Check whether --with-sysroot was given.
6275 if test "${with_sysroot+set}" = set; then :
6276 withval=$with_sysroot;
6277 else
6278 with_sysroot=no
6279 fi
6280
6281
6282 lt_sysroot=
6283 case $with_sysroot in #(
6284 yes)
6285 if test yes = "$GCC"; then
6286 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6287 fi
6288 ;; #(
6289 /*)
6290 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6291 ;; #(
6292 no|'')
6293 ;; #(
6294 *)
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6296 $as_echo "$with_sysroot" >&6; }
6297 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6298 ;;
6299 esac
6300
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6302 $as_echo "${lt_sysroot:-no}" >&6; }
6303
6304
6305
6306
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6309 $as_echo_n "checking for a working dd... " >&6; }
6310 if ${ac_cv_path_lt_DD+:} false; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 printf 0123456789abcdef0123456789abcdef >conftest.i
6314 cat conftest.i conftest.i >conftest2.i
6315 : ${lt_DD:=$DD}
6316 if test -z "$lt_DD"; then
6317 ac_path_lt_DD_found=false
6318 # Loop through the user's path and test for each of PROGNAME-LIST
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6321 do
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_prog in dd; do
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6327 as_fn_executable_p "$ac_path_lt_DD" || continue
6328 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6329 cmp -s conftest.i conftest.out \
6330 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6331 fi
6332 $ac_path_lt_DD_found && break 3
6333 done
6334 done
6335 done
6336 IFS=$as_save_IFS
6337 if test -z "$ac_cv_path_lt_DD"; then
6338 :
6339 fi
6340 else
6341 ac_cv_path_lt_DD=$lt_DD
6342 fi
6343
6344 rm -f conftest.i conftest2.i conftest.out
6345 fi
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6347 $as_echo "$ac_cv_path_lt_DD" >&6; }
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6351 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6352 if ${lt_cv_truncate_bin+:} false; then :
6353 $as_echo_n "(cached) " >&6
6354 else
6355 printf 0123456789abcdef0123456789abcdef >conftest.i
6356 cat conftest.i conftest.i >conftest2.i
6357 lt_cv_truncate_bin=
6358 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6359 cmp -s conftest.i conftest.out \
6360 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6361 fi
6362 rm -f conftest.i conftest2.i conftest.out
6363 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6366 $as_echo "$lt_cv_truncate_bin" >&6; }
6367
6368
6369
6370
6371
6372
6373
6374 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6375 func_cc_basename ()
6376 {
6377 for cc_temp in $*""; do
6378 case $cc_temp in
6379 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6380 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6381 \-*) ;;
6382 *) break;;
6383 esac
6384 done
6385 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6386 }
6387
6388 # Check whether --enable-libtool-lock was given.
6389 if test "${enable_libtool_lock+set}" = set; then :
6390 enableval=$enable_libtool_lock;
6391 fi
6392
6393 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6394
6395 # Some flags need to be propagated to the compiler or linker for good
6396 # libtool support.
6397 case $host in
6398 ia64-*-hpux*)
6399 # Find out what ABI is being produced by ac_compile, and set mode
6400 # options accordingly.
6401 echo 'int i;' > conftest.$ac_ext
6402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6403 (eval $ac_compile) 2>&5
6404 ac_status=$?
6405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6406 test $ac_status = 0; }; then
6407 case `/usr/bin/file conftest.$ac_objext` in
6408 *ELF-32*)
6409 HPUX_IA64_MODE=32
6410 ;;
6411 *ELF-64*)
6412 HPUX_IA64_MODE=64
6413 ;;
6414 esac
6415 fi
6416 rm -rf conftest*
6417 ;;
6418 *-*-irix6*)
6419 # Find out what ABI is being produced by ac_compile, and set linker
6420 # options accordingly.
6421 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6423 (eval $ac_compile) 2>&5
6424 ac_status=$?
6425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6426 test $ac_status = 0; }; then
6427 if test yes = "$lt_cv_prog_gnu_ld"; then
6428 case `/usr/bin/file conftest.$ac_objext` in
6429 *32-bit*)
6430 LD="${LD-ld} -melf32bsmip"
6431 ;;
6432 *N32*)
6433 LD="${LD-ld} -melf32bmipn32"
6434 ;;
6435 *64-bit*)
6436 LD="${LD-ld} -melf64bmip"
6437 ;;
6438 esac
6439 else
6440 case `/usr/bin/file conftest.$ac_objext` in
6441 *32-bit*)
6442 LD="${LD-ld} -32"
6443 ;;
6444 *N32*)
6445 LD="${LD-ld} -n32"
6446 ;;
6447 *64-bit*)
6448 LD="${LD-ld} -64"
6449 ;;
6450 esac
6451 fi
6452 fi
6453 rm -rf conftest*
6454 ;;
6455
6456 mips64*-*linux*)
6457 # Find out what ABI is being produced by ac_compile, and set linker
6458 # options accordingly.
6459 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6461 (eval $ac_compile) 2>&5
6462 ac_status=$?
6463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6464 test $ac_status = 0; }; then
6465 emul=elf
6466 case `/usr/bin/file conftest.$ac_objext` in
6467 *32-bit*)
6468 emul="${emul}32"
6469 ;;
6470 *64-bit*)
6471 emul="${emul}64"
6472 ;;
6473 esac
6474 case `/usr/bin/file conftest.$ac_objext` in
6475 *MSB*)
6476 emul="${emul}btsmip"
6477 ;;
6478 *LSB*)
6479 emul="${emul}ltsmip"
6480 ;;
6481 esac
6482 case `/usr/bin/file conftest.$ac_objext` in
6483 *N32*)
6484 emul="${emul}n32"
6485 ;;
6486 esac
6487 LD="${LD-ld} -m $emul"
6488 fi
6489 rm -rf conftest*
6490 ;;
6491
6492 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6493 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6494 # Find out what ABI is being produced by ac_compile, and set linker
6495 # options accordingly. Note that the listed cases only cover the
6496 # situations where additional linker options are needed (such as when
6497 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6498 # vice versa); the common cases where no linker options are needed do
6499 # not appear in the list.
6500 echo 'int i;' > conftest.$ac_ext
6501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6502 (eval $ac_compile) 2>&5
6503 ac_status=$?
6504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6505 test $ac_status = 0; }; then
6506 case `/usr/bin/file conftest.o` in
6507 *32-bit*)
6508 case $host in
6509 x86_64-*kfreebsd*-gnu)
6510 LD="${LD-ld} -m elf_i386_fbsd"
6511 ;;
6512 x86_64-*linux*)
6513 case `/usr/bin/file conftest.o` in
6514 *x86-64*)
6515 LD="${LD-ld} -m elf32_x86_64"
6516 ;;
6517 *)
6518 LD="${LD-ld} -m elf_i386"
6519 ;;
6520 esac
6521 ;;
6522 powerpc64le-*linux*)
6523 LD="${LD-ld} -m elf32lppclinux"
6524 ;;
6525 powerpc64-*linux*)
6526 LD="${LD-ld} -m elf32ppclinux"
6527 ;;
6528 s390x-*linux*)
6529 LD="${LD-ld} -m elf_s390"
6530 ;;
6531 sparc64-*linux*)
6532 LD="${LD-ld} -m elf32_sparc"
6533 ;;
6534 esac
6535 ;;
6536 *64-bit*)
6537 case $host in
6538 x86_64-*kfreebsd*-gnu)
6539 LD="${LD-ld} -m elf_x86_64_fbsd"
6540 ;;
6541 x86_64-*linux*)
6542 LD="${LD-ld} -m elf_x86_64"
6543 ;;
6544 powerpcle-*linux*)
6545 LD="${LD-ld} -m elf64lppc"
6546 ;;
6547 powerpc-*linux*)
6548 LD="${LD-ld} -m elf64ppc"
6549 ;;
6550 s390*-*linux*|s390*-*tpf*)
6551 LD="${LD-ld} -m elf64_s390"
6552 ;;
6553 sparc*-*linux*)
6554 LD="${LD-ld} -m elf64_sparc"
6555 ;;
6556 esac
6557 ;;
6558 esac
6559 fi
6560 rm -rf conftest*
6561 ;;
6562
6563 *-*-sco3.2v5*)
6564 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6565 SAVE_CFLAGS=$CFLAGS
6566 CFLAGS="$CFLAGS -belf"
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6568 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6569 if ${lt_cv_cc_needs_belf+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572 ac_ext=c
6573 ac_cpp='$CPP $CPPFLAGS'
6574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577
6578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6579 /* end confdefs.h. */
6580
6581 int
6582 main ()
6583 {
6584
6585 ;
6586 return 0;
6587 }
6588 _ACEOF
6589 if ac_fn_c_try_link "$LINENO"; then :
6590 lt_cv_cc_needs_belf=yes
6591 else
6592 lt_cv_cc_needs_belf=no
6593 fi
6594 rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596 ac_ext=c
6597 ac_cpp='$CPP $CPPFLAGS'
6598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601
6602 fi
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6604 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6605 if test yes != "$lt_cv_cc_needs_belf"; then
6606 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6607 CFLAGS=$SAVE_CFLAGS
6608 fi
6609 ;;
6610 *-*solaris*)
6611 # Find out what ABI is being produced by ac_compile, and set linker
6612 # options accordingly.
6613 echo 'int i;' > conftest.$ac_ext
6614 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6615 (eval $ac_compile) 2>&5
6616 ac_status=$?
6617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6618 test $ac_status = 0; }; then
6619 case `/usr/bin/file conftest.o` in
6620 *64-bit*)
6621 case $lt_cv_prog_gnu_ld in
6622 yes*)
6623 case $host in
6624 i?86-*-solaris*|x86_64-*-solaris*)
6625 LD="${LD-ld} -m elf_x86_64"
6626 ;;
6627 sparc*-*-solaris*)
6628 LD="${LD-ld} -m elf64_sparc"
6629 ;;
6630 esac
6631 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6632 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6633 LD=${LD-ld}_sol2
6634 fi
6635 ;;
6636 *)
6637 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6638 LD="${LD-ld} -64"
6639 fi
6640 ;;
6641 esac
6642 ;;
6643 esac
6644 fi
6645 rm -rf conftest*
6646 ;;
6647 esac
6648
6649 need_locks=$enable_libtool_lock
6650
6651 if test -n "$ac_tool_prefix"; then
6652 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6653 set dummy ${ac_tool_prefix}mt; ac_word=$2
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655 $as_echo_n "checking for $ac_word... " >&6; }
6656 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6657 $as_echo_n "(cached) " >&6
6658 else
6659 if test -n "$MANIFEST_TOOL"; then
6660 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
6668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6669 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673 done
6674 done
6675 IFS=$as_save_IFS
6676
6677 fi
6678 fi
6679 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6680 if test -n "$MANIFEST_TOOL"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6682 $as_echo "$MANIFEST_TOOL" >&6; }
6683 else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 $as_echo "no" >&6; }
6686 fi
6687
6688
6689 fi
6690 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6691 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6692 # Extract the first word of "mt", so it can be a program name with args.
6693 set dummy mt; ac_word=$2
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695 $as_echo_n "checking for $ac_word... " >&6; }
6696 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699 if test -n "$ac_ct_MANIFEST_TOOL"; then
6700 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6701 else
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703 for as_dir in $PATH
6704 do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713 done
6714 done
6715 IFS=$as_save_IFS
6716
6717 fi
6718 fi
6719 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6720 if test -n "$ac_ct_MANIFEST_TOOL"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6722 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6723 else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725 $as_echo "no" >&6; }
6726 fi
6727
6728 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6729 MANIFEST_TOOL=":"
6730 else
6731 case $cross_compiling:$ac_tool_warned in
6732 yes:)
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6735 ac_tool_warned=yes ;;
6736 esac
6737 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6738 fi
6739 else
6740 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6741 fi
6742
6743 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6745 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6746 if ${lt_cv_path_mainfest_tool+:} false; then :
6747 $as_echo_n "(cached) " >&6
6748 else
6749 lt_cv_path_mainfest_tool=no
6750 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6751 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6752 cat conftest.err >&5
6753 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6754 lt_cv_path_mainfest_tool=yes
6755 fi
6756 rm -f conftest*
6757 fi
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6759 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6760 if test yes != "$lt_cv_path_mainfest_tool"; then
6761 MANIFEST_TOOL=:
6762 fi
6763
6764
6765
6766
6767
6768
6769 case $host_os in
6770 rhapsody* | darwin*)
6771 if test -n "$ac_tool_prefix"; then
6772 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6773 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6775 $as_echo_n "checking for $ac_word... " >&6; }
6776 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 if test -n "$DSYMUTIL"; then
6780 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6781 else
6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 for as_dir in $PATH
6784 do
6785 IFS=$as_save_IFS
6786 test -z "$as_dir" && as_dir=.
6787 for ac_exec_ext in '' $ac_executable_extensions; do
6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6789 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6791 break 2
6792 fi
6793 done
6794 done
6795 IFS=$as_save_IFS
6796
6797 fi
6798 fi
6799 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6800 if test -n "$DSYMUTIL"; then
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6802 $as_echo "$DSYMUTIL" >&6; }
6803 else
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6805 $as_echo "no" >&6; }
6806 fi
6807
6808
6809 fi
6810 if test -z "$ac_cv_prog_DSYMUTIL"; then
6811 ac_ct_DSYMUTIL=$DSYMUTIL
6812 # Extract the first word of "dsymutil", so it can be a program name with args.
6813 set dummy dsymutil; ac_word=$2
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 $as_echo_n "checking for $ac_word... " >&6; }
6816 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818 else
6819 if test -n "$ac_ct_DSYMUTIL"; then
6820 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6840 if test -n "$ac_ct_DSYMUTIL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6842 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6843 else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 $as_echo "no" >&6; }
6846 fi
6847
6848 if test "x$ac_ct_DSYMUTIL" = x; then
6849 DSYMUTIL=":"
6850 else
6851 case $cross_compiling:$ac_tool_warned in
6852 yes:)
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6855 ac_tool_warned=yes ;;
6856 esac
6857 DSYMUTIL=$ac_ct_DSYMUTIL
6858 fi
6859 else
6860 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6861 fi
6862
6863 if test -n "$ac_tool_prefix"; then
6864 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6865 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if ${ac_cv_prog_NMEDIT+:} false; then :
6869 $as_echo_n "(cached) " >&6
6870 else
6871 if test -n "$NMEDIT"; then
6872 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6873 else
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875 for as_dir in $PATH
6876 do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6881 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885 done
6886 done
6887 IFS=$as_save_IFS
6888
6889 fi
6890 fi
6891 NMEDIT=$ac_cv_prog_NMEDIT
6892 if test -n "$NMEDIT"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6894 $as_echo "$NMEDIT" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6898 fi
6899
6900
6901 fi
6902 if test -z "$ac_cv_prog_NMEDIT"; then
6903 ac_ct_NMEDIT=$NMEDIT
6904 # Extract the first word of "nmedit", so it can be a program name with args.
6905 set dummy nmedit; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 if test -n "$ac_ct_NMEDIT"; then
6912 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925 done
6926 done
6927 IFS=$as_save_IFS
6928
6929 fi
6930 fi
6931 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6932 if test -n "$ac_ct_NMEDIT"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6934 $as_echo "$ac_ct_NMEDIT" >&6; }
6935 else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 $as_echo "no" >&6; }
6938 fi
6939
6940 if test "x$ac_ct_NMEDIT" = x; then
6941 NMEDIT=":"
6942 else
6943 case $cross_compiling:$ac_tool_warned in
6944 yes:)
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6947 ac_tool_warned=yes ;;
6948 esac
6949 NMEDIT=$ac_ct_NMEDIT
6950 fi
6951 else
6952 NMEDIT="$ac_cv_prog_NMEDIT"
6953 fi
6954
6955 if test -n "$ac_tool_prefix"; then
6956 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6957 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_LIPO+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$LIPO"; then
6964 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6968 do
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6976 fi
6977 done
6978 done
6979 IFS=$as_save_IFS
6980
6981 fi
6982 fi
6983 LIPO=$ac_cv_prog_LIPO
6984 if test -n "$LIPO"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6986 $as_echo "$LIPO" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6990 fi
6991
6992
6993 fi
6994 if test -z "$ac_cv_prog_LIPO"; then
6995 ac_ct_LIPO=$LIPO
6996 # Extract the first word of "lipo", so it can be a program name with args.
6997 set dummy lipo; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$ac_ct_LIPO"; then
7004 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_ac_ct_LIPO="lipo"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017 done
7018 done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7024 if test -n "$ac_ct_LIPO"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7026 $as_echo "$ac_ct_LIPO" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032 if test "x$ac_ct_LIPO" = x; then
7033 LIPO=":"
7034 else
7035 case $cross_compiling:$ac_tool_warned in
7036 yes:)
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7039 ac_tool_warned=yes ;;
7040 esac
7041 LIPO=$ac_ct_LIPO
7042 fi
7043 else
7044 LIPO="$ac_cv_prog_LIPO"
7045 fi
7046
7047 if test -n "$ac_tool_prefix"; then
7048 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7049 set dummy ${ac_tool_prefix}otool; ac_word=$2
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7051 $as_echo_n "checking for $ac_word... " >&6; }
7052 if ${ac_cv_prog_OTOOL+:} false; then :
7053 $as_echo_n "(cached) " >&6
7054 else
7055 if test -n "$OTOOL"; then
7056 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7057 else
7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059 for as_dir in $PATH
7060 do
7061 IFS=$as_save_IFS
7062 test -z "$as_dir" && as_dir=.
7063 for ac_exec_ext in '' $ac_executable_extensions; do
7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7065 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7067 break 2
7068 fi
7069 done
7070 done
7071 IFS=$as_save_IFS
7072
7073 fi
7074 fi
7075 OTOOL=$ac_cv_prog_OTOOL
7076 if test -n "$OTOOL"; then
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7078 $as_echo "$OTOOL" >&6; }
7079 else
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7081 $as_echo "no" >&6; }
7082 fi
7083
7084
7085 fi
7086 if test -z "$ac_cv_prog_OTOOL"; then
7087 ac_ct_OTOOL=$OTOOL
7088 # Extract the first word of "otool", so it can be a program name with args.
7089 set dummy otool; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$ac_ct_OTOOL"; then
7096 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7100 do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_ac_ct_OTOOL="otool"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109 done
7110 done
7111 IFS=$as_save_IFS
7112
7113 fi
7114 fi
7115 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7116 if test -n "$ac_ct_OTOOL"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7118 $as_echo "$ac_ct_OTOOL" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7122 fi
7123
7124 if test "x$ac_ct_OTOOL" = x; then
7125 OTOOL=":"
7126 else
7127 case $cross_compiling:$ac_tool_warned in
7128 yes:)
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7131 ac_tool_warned=yes ;;
7132 esac
7133 OTOOL=$ac_ct_OTOOL
7134 fi
7135 else
7136 OTOOL="$ac_cv_prog_OTOOL"
7137 fi
7138
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7143 $as_echo_n "checking for $ac_word... " >&6; }
7144 if ${ac_cv_prog_OTOOL64+:} false; then :
7145 $as_echo_n "(cached) " >&6
7146 else
7147 if test -n "$OTOOL64"; then
7148 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165 fi
7166 fi
7167 OTOOL64=$ac_cv_prog_OTOOL64
7168 if test -n "$OTOOL64"; then
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7170 $as_echo "$OTOOL64" >&6; }
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7174 fi
7175
7176
7177 fi
7178 if test -z "$ac_cv_prog_OTOOL64"; then
7179 ac_ct_OTOOL64=$OTOOL64
7180 # Extract the first word of "otool64", so it can be a program name with args.
7181 set dummy otool64; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 if test -n "$ac_ct_OTOOL64"; then
7188 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_ac_ct_OTOOL64="otool64"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7208 if test -n "$ac_ct_OTOOL64"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7210 $as_echo "$ac_ct_OTOOL64" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7214 fi
7215
7216 if test "x$ac_ct_OTOOL64" = x; then
7217 OTOOL64=":"
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7223 ac_tool_warned=yes ;;
7224 esac
7225 OTOOL64=$ac_ct_OTOOL64
7226 fi
7227 else
7228 OTOOL64="$ac_cv_prog_OTOOL64"
7229 fi
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7258 $as_echo_n "checking for -single_module linker flag... " >&6; }
7259 if ${lt_cv_apple_cc_single_mod+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 lt_cv_apple_cc_single_mod=no
7263 if test -z "$LT_MULTI_MODULE"; then
7264 # By default we will add the -single_module flag. You can override
7265 # by either setting the environment variable LT_MULTI_MODULE
7266 # non-empty at configure time, or by adding -multi_module to the
7267 # link flags.
7268 rm -rf libconftest.dylib*
7269 echo "int foo(void){return 1;}" > conftest.c
7270 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7271 -dynamiclib -Wl,-single_module conftest.c" >&5
7272 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7273 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7274 _lt_result=$?
7275 # If there is a non-empty error log, and "single_module"
7276 # appears in it, assume the flag caused a linker warning
7277 if test -s conftest.err && $GREP single_module conftest.err; then
7278 cat conftest.err >&5
7279 # Otherwise, if the output was created with a 0 exit code from
7280 # the compiler, it worked.
7281 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7282 lt_cv_apple_cc_single_mod=yes
7283 else
7284 cat conftest.err >&5
7285 fi
7286 rm -rf libconftest.dylib*
7287 rm -f conftest.*
7288 fi
7289 fi
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7291 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7292
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7294 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7295 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 lt_cv_ld_exported_symbols_list=no
7299 save_LDFLAGS=$LDFLAGS
7300 echo "_main" > conftest.sym
7301 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7303 /* end confdefs.h. */
7304
7305 int
7306 main ()
7307 {
7308
7309 ;
7310 return 0;
7311 }
7312 _ACEOF
7313 if ac_fn_c_try_link "$LINENO"; then :
7314 lt_cv_ld_exported_symbols_list=yes
7315 else
7316 lt_cv_ld_exported_symbols_list=no
7317 fi
7318 rm -f core conftest.err conftest.$ac_objext \
7319 conftest$ac_exeext conftest.$ac_ext
7320 LDFLAGS=$save_LDFLAGS
7321
7322 fi
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7324 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7325
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7327 $as_echo_n "checking for -force_load linker flag... " >&6; }
7328 if ${lt_cv_ld_force_load+:} false; then :
7329 $as_echo_n "(cached) " >&6
7330 else
7331 lt_cv_ld_force_load=no
7332 cat > conftest.c << _LT_EOF
7333 int forced_loaded() { return 2;}
7334 _LT_EOF
7335 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7336 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7337 echo "$AR cr libconftest.a conftest.o" >&5
7338 $AR cr libconftest.a conftest.o 2>&5
7339 echo "$RANLIB libconftest.a" >&5
7340 $RANLIB libconftest.a 2>&5
7341 cat > conftest.c << _LT_EOF
7342 int main() { return 0;}
7343 _LT_EOF
7344 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7345 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7346 _lt_result=$?
7347 if test -s conftest.err && $GREP force_load conftest.err; then
7348 cat conftest.err >&5
7349 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7350 lt_cv_ld_force_load=yes
7351 else
7352 cat conftest.err >&5
7353 fi
7354 rm -f conftest.err libconftest.a conftest conftest.c
7355 rm -rf conftest.dSYM
7356
7357 fi
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7359 $as_echo "$lt_cv_ld_force_load" >&6; }
7360 case $host_os in
7361 rhapsody* | darwin1.[012])
7362 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7363 darwin1.*)
7364 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7365 darwin*) # darwin 5.x on
7366 # if running on 10.5 or later, the deployment target defaults
7367 # to the OS version, if on x86, and 10.4, the deployment
7368 # target defaults to 10.4. Don't you love it?
7369 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7370 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
7371 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7372 10.[012][,.]*)
7373 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7374 10.*|11.*)
7375 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7376 esac
7377 ;;
7378 esac
7379 if test yes = "$lt_cv_apple_cc_single_mod"; then
7380 _lt_dar_single_mod='$single_module'
7381 fi
7382 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7383 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7384 else
7385 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7386 fi
7387 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7388 _lt_dsymutil='~$DSYMUTIL $lib || :'
7389 else
7390 _lt_dsymutil=
7391 fi
7392 ;;
7393 esac
7394
7395 # func_munge_path_list VARIABLE PATH
7396 # -----------------------------------
7397 # VARIABLE is name of variable containing _space_ separated list of
7398 # directories to be munged by the contents of PATH, which is string
7399 # having a format:
7400 # "DIR[:DIR]:"
7401 # string "DIR[ DIR]" will be prepended to VARIABLE
7402 # ":DIR[:DIR]"
7403 # string "DIR[ DIR]" will be appended to VARIABLE
7404 # "DIRP[:DIRP]::[DIRA:]DIRA"
7405 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7406 # "DIRA[ DIRA]" will be appended to VARIABLE
7407 # "DIR[:DIR]"
7408 # VARIABLE will be replaced by "DIR[ DIR]"
7409 func_munge_path_list ()
7410 {
7411 case x$2 in
7412 x)
7413 ;;
7414 *:)
7415 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7416 ;;
7417 x:*)
7418 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7419 ;;
7420 *::*)
7421 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7422 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7423 ;;
7424 *)
7425 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7426 ;;
7427 esac
7428 }
7429
7430 ac_ext=c
7431 ac_cpp='$CPP $CPPFLAGS'
7432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7436 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7437 # On Suns, sometimes $CPP names a directory.
7438 if test -n "$CPP" && test -d "$CPP"; then
7439 CPP=
7440 fi
7441 if test -z "$CPP"; then
7442 if ${ac_cv_prog_CPP+:} false; then :
7443 $as_echo_n "(cached) " >&6
7444 else
7445 # Double quotes because CPP needs to be expanded
7446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7447 do
7448 ac_preproc_ok=false
7449 for ac_c_preproc_warn_flag in '' yes
7450 do
7451 # Use a header file that comes with gcc, so configuring glibc
7452 # with a fresh cross-compiler works.
7453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454 # <limits.h> exists even on freestanding compilers.
7455 # On the NeXT, cc -E runs the code through the compiler's parser,
7456 # not just through cpp. "Syntax error" is here to catch this case.
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #ifdef __STDC__
7460 # include <limits.h>
7461 #else
7462 # include <assert.h>
7463 #endif
7464 Syntax error
7465 _ACEOF
7466 if ac_fn_c_try_cpp "$LINENO"; then :
7467
7468 else
7469 # Broken: fails on valid input.
7470 continue
7471 fi
7472 rm -f conftest.err conftest.i conftest.$ac_ext
7473
7474 # OK, works on sane cases. Now check whether nonexistent headers
7475 # can be detected and how.
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478 #include <ac_nonexistent.h>
7479 _ACEOF
7480 if ac_fn_c_try_cpp "$LINENO"; then :
7481 # Broken: success on invalid input.
7482 continue
7483 else
7484 # Passes both tests.
7485 ac_preproc_ok=:
7486 break
7487 fi
7488 rm -f conftest.err conftest.i conftest.$ac_ext
7489
7490 done
7491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7492 rm -f conftest.i conftest.err conftest.$ac_ext
7493 if $ac_preproc_ok; then :
7494 break
7495 fi
7496
7497 done
7498 ac_cv_prog_CPP=$CPP
7499
7500 fi
7501 CPP=$ac_cv_prog_CPP
7502 else
7503 ac_cv_prog_CPP=$CPP
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7506 $as_echo "$CPP" >&6; }
7507 ac_preproc_ok=false
7508 for ac_c_preproc_warn_flag in '' yes
7509 do
7510 # Use a header file that comes with gcc, so configuring glibc
7511 # with a fresh cross-compiler works.
7512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513 # <limits.h> exists even on freestanding compilers.
7514 # On the NeXT, cc -E runs the code through the compiler's parser,
7515 # not just through cpp. "Syntax error" is here to catch this case.
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 #ifdef __STDC__
7519 # include <limits.h>
7520 #else
7521 # include <assert.h>
7522 #endif
7523 Syntax error
7524 _ACEOF
7525 if ac_fn_c_try_cpp "$LINENO"; then :
7526
7527 else
7528 # Broken: fails on valid input.
7529 continue
7530 fi
7531 rm -f conftest.err conftest.i conftest.$ac_ext
7532
7533 # OK, works on sane cases. Now check whether nonexistent headers
7534 # can be detected and how.
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 #include <ac_nonexistent.h>
7538 _ACEOF
7539 if ac_fn_c_try_cpp "$LINENO"; then :
7540 # Broken: success on invalid input.
7541 continue
7542 else
7543 # Passes both tests.
7544 ac_preproc_ok=:
7545 break
7546 fi
7547 rm -f conftest.err conftest.i conftest.$ac_ext
7548
7549 done
7550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7551 rm -f conftest.i conftest.err conftest.$ac_ext
7552 if $ac_preproc_ok; then :
7553
7554 else
7555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7558 See \`config.log' for more details" "$LINENO" 5; }
7559 fi
7560
7561 ac_ext=c
7562 ac_cpp='$CPP $CPPFLAGS'
7563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7566
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7569 $as_echo_n "checking for ANSI C header files... " >&6; }
7570 if ${ac_cv_header_stdc+:} false; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 #include <stdlib.h>
7576 #include <stdarg.h>
7577 #include <string.h>
7578 #include <float.h>
7579
7580 int
7581 main ()
7582 {
7583
7584 ;
7585 return 0;
7586 }
7587 _ACEOF
7588 if ac_fn_c_try_compile "$LINENO"; then :
7589 ac_cv_header_stdc=yes
7590 else
7591 ac_cv_header_stdc=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594
7595 if test $ac_cv_header_stdc = yes; then
7596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7598 /* end confdefs.h. */
7599 #include <string.h>
7600
7601 _ACEOF
7602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7603 $EGREP "memchr" >/dev/null 2>&1; then :
7604
7605 else
7606 ac_cv_header_stdc=no
7607 fi
7608 rm -f conftest*
7609
7610 fi
7611
7612 if test $ac_cv_header_stdc = yes; then
7613 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 #include <stdlib.h>
7617
7618 _ACEOF
7619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7620 $EGREP "free" >/dev/null 2>&1; then :
7621
7622 else
7623 ac_cv_header_stdc=no
7624 fi
7625 rm -f conftest*
7626
7627 fi
7628
7629 if test $ac_cv_header_stdc = yes; then
7630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7631 if test "$cross_compiling" = yes; then :
7632 :
7633 else
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 #include <ctype.h>
7637 #include <stdlib.h>
7638 #if ((' ' & 0x0FF) == 0x020)
7639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7641 #else
7642 # define ISLOWER(c) \
7643 (('a' <= (c) && (c) <= 'i') \
7644 || ('j' <= (c) && (c) <= 'r') \
7645 || ('s' <= (c) && (c) <= 'z'))
7646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7647 #endif
7648
7649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7650 int
7651 main ()
7652 {
7653 int i;
7654 for (i = 0; i < 256; i++)
7655 if (XOR (islower (i), ISLOWER (i))
7656 || toupper (i) != TOUPPER (i))
7657 return 2;
7658 return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_run "$LINENO"; then :
7662
7663 else
7664 ac_cv_header_stdc=no
7665 fi
7666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7667 conftest.$ac_objext conftest.beam conftest.$ac_ext
7668 fi
7669
7670 fi
7671 fi
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7673 $as_echo "$ac_cv_header_stdc" >&6; }
7674 if test $ac_cv_header_stdc = yes; then
7675
7676 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7677
7678 fi
7679
7680 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7681 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7682 inttypes.h stdint.h unistd.h
7683 do :
7684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7685 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7686 "
7687 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7688 cat >>confdefs.h <<_ACEOF
7689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7690 _ACEOF
7691
7692 fi
7693
7694 done
7695
7696
7697 for ac_header in dlfcn.h
7698 do :
7699 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7700 "
7701 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7702 cat >>confdefs.h <<_ACEOF
7703 #define HAVE_DLFCN_H 1
7704 _ACEOF
7705
7706 fi
7707
7708 done
7709
7710
7711
7712
7713
7714 # Set options
7715
7716
7717
7718 enable_dlopen=no
7719
7720
7721 enable_win32_dll=no
7722
7723
7724 # Check whether --enable-shared was given.
7725 if test "${enable_shared+set}" = set; then :
7726 enableval=$enable_shared; p=${PACKAGE-default}
7727 case $enableval in
7728 yes) enable_shared=yes ;;
7729 no) enable_shared=no ;;
7730 *)
7731 enable_shared=no
7732 # Look at the argument we got. We use all the common list separators.
7733 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7734 for pkg in $enableval; do
7735 IFS=$lt_save_ifs
7736 if test "X$pkg" = "X$p"; then
7737 enable_shared=yes
7738 fi
7739 done
7740 IFS=$lt_save_ifs
7741 ;;
7742 esac
7743 else
7744 enable_shared=yes
7745 fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757 # Check whether --with-pic was given.
7758 if test "${with_pic+set}" = set; then :
7759 withval=$with_pic; lt_p=${PACKAGE-default}
7760 case $withval in
7761 yes|no) pic_mode=$withval ;;
7762 *)
7763 pic_mode=default
7764 # Look at the argument we got. We use all the common list separators.
7765 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7766 for lt_pkg in $withval; do
7767 IFS=$lt_save_ifs
7768 if test "X$lt_pkg" = "X$lt_p"; then
7769 pic_mode=yes
7770 fi
7771 done
7772 IFS=$lt_save_ifs
7773 ;;
7774 esac
7775 else
7776 pic_mode=default
7777 fi
7778
7779
7780
7781
7782
7783
7784
7785
7786 # Check whether --enable-fast-install was given.
7787 if test "${enable_fast_install+set}" = set; then :
7788 enableval=$enable_fast_install; p=${PACKAGE-default}
7789 case $enableval in
7790 yes) enable_fast_install=yes ;;
7791 no) enable_fast_install=no ;;
7792 *)
7793 enable_fast_install=no
7794 # Look at the argument we got. We use all the common list separators.
7795 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7796 for pkg in $enableval; do
7797 IFS=$lt_save_ifs
7798 if test "X$pkg" = "X$p"; then
7799 enable_fast_install=yes
7800 fi
7801 done
7802 IFS=$lt_save_ifs
7803 ;;
7804 esac
7805 else
7806 enable_fast_install=yes
7807 fi
7808
7809
7810
7811
7812
7813
7814
7815
7816 shared_archive_member_spec=
7817 case $host,$enable_shared in
7818 power*-*-aix[5-9]*,yes)
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7820 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7821
7822 # Check whether --with-aix-soname was given.
7823 if test "${with_aix_soname+set}" = set; then :
7824 withval=$with_aix_soname; case $withval in
7825 aix|svr4|both)
7826 ;;
7827 *)
7828 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7829 ;;
7830 esac
7831 lt_cv_with_aix_soname=$with_aix_soname
7832 else
7833 if ${lt_cv_with_aix_soname+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 lt_cv_with_aix_soname=aix
7837 fi
7838
7839 with_aix_soname=$lt_cv_with_aix_soname
7840 fi
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7843 $as_echo "$with_aix_soname" >&6; }
7844 if test aix != "$with_aix_soname"; then
7845 # For the AIX way of multilib, we name the shared archive member
7846 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7847 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7848 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7849 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7850 if test 64 = "${OBJECT_MODE-32}"; then
7851 shared_archive_member_spec=shr_64
7852 else
7853 shared_archive_member_spec=shr
7854 fi
7855 fi
7856 ;;
7857 *)
7858 with_aix_soname=aix
7859 ;;
7860 esac
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871 # This can be used to rebuild libtool when needed
7872 LIBTOOL_DEPS=$ltmain
7873
7874 # Always use our own libtool.
7875 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906 test -z "$LN_S" && LN_S="ln -s"
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921 if test -n "${ZSH_VERSION+set}"; then
7922 setopt NO_GLOB_SUBST
7923 fi
7924
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7926 $as_echo_n "checking for objdir... " >&6; }
7927 if ${lt_cv_objdir+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929 else
7930 rm -f .libs 2>/dev/null
7931 mkdir .libs 2>/dev/null
7932 if test -d .libs; then
7933 lt_cv_objdir=.libs
7934 else
7935 # MS-DOS does not allow filenames that begin with a dot.
7936 lt_cv_objdir=_libs
7937 fi
7938 rmdir .libs 2>/dev/null
7939 fi
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7941 $as_echo "$lt_cv_objdir" >&6; }
7942 objdir=$lt_cv_objdir
7943
7944
7945
7946
7947
7948 cat >>confdefs.h <<_ACEOF
7949 #define LT_OBJDIR "$lt_cv_objdir/"
7950 _ACEOF
7951
7952
7953
7954
7955 case $host_os in
7956 aix3*)
7957 # AIX sometimes has problems with the GCC collect2 program. For some
7958 # reason, if we set the COLLECT_NAMES environment variable, the problems
7959 # vanish in a puff of smoke.
7960 if test set != "${COLLECT_NAMES+set}"; then
7961 COLLECT_NAMES=
7962 export COLLECT_NAMES
7963 fi
7964 ;;
7965 esac
7966
7967 # Global variables:
7968 ofile=libtool
7969 can_build_shared=yes
7970
7971 # All known linkers require a '.a' archive for static linking (except MSVC,
7972 # which needs '.lib').
7973 libext=a
7974
7975 with_gnu_ld=$lt_cv_prog_gnu_ld
7976
7977 old_CC=$CC
7978 old_CFLAGS=$CFLAGS
7979
7980 # Set sane defaults for various variables
7981 test -z "$CC" && CC=cc
7982 test -z "$LTCC" && LTCC=$CC
7983 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7984 test -z "$LD" && LD=ld
7985 test -z "$ac_objext" && ac_objext=o
7986
7987 func_cc_basename $compiler
7988 cc_basename=$func_cc_basename_result
7989
7990
7991 # Only perform the check for file, if the check method requires it
7992 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7993 case $deplibs_check_method in
7994 file_magic*)
7995 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7997 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7998 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000 else
8001 case $MAGIC_CMD in
8002 [\\/*] | ?:[\\/]*)
8003 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8004 ;;
8005 *)
8006 lt_save_MAGIC_CMD=$MAGIC_CMD
8007 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8008 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8009 for ac_dir in $ac_dummy; do
8010 IFS=$lt_save_ifs
8011 test -z "$ac_dir" && ac_dir=.
8012 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8013 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8014 if test -n "$file_magic_test_file"; then
8015 case $deplibs_check_method in
8016 "file_magic "*)
8017 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8018 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8019 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8020 $EGREP "$file_magic_regex" > /dev/null; then
8021 :
8022 else
8023 cat <<_LT_EOF 1>&2
8024
8025 *** Warning: the command libtool uses to detect shared libraries,
8026 *** $file_magic_cmd, produces output that libtool cannot recognize.
8027 *** The result is that libtool may fail to recognize shared libraries
8028 *** as such. This will affect the creation of libtool libraries that
8029 *** depend on shared libraries, but programs linked with such libtool
8030 *** libraries will work regardless of this problem. Nevertheless, you
8031 *** may want to report the problem to your system manager and/or to
8032 *** [email protected]
8033
8034 _LT_EOF
8035 fi ;;
8036 esac
8037 fi
8038 break
8039 fi
8040 done
8041 IFS=$lt_save_ifs
8042 MAGIC_CMD=$lt_save_MAGIC_CMD
8043 ;;
8044 esac
8045 fi
8046
8047 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8048 if test -n "$MAGIC_CMD"; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8050 $as_echo "$MAGIC_CMD" >&6; }
8051 else
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056
8057
8058
8059
8060 if test -z "$lt_cv_path_MAGIC_CMD"; then
8061 if test -n "$ac_tool_prefix"; then
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8063 $as_echo_n "checking for file... " >&6; }
8064 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066 else
8067 case $MAGIC_CMD in
8068 [\\/*] | ?:[\\/]*)
8069 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8070 ;;
8071 *)
8072 lt_save_MAGIC_CMD=$MAGIC_CMD
8073 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8074 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8075 for ac_dir in $ac_dummy; do
8076 IFS=$lt_save_ifs
8077 test -z "$ac_dir" && ac_dir=.
8078 if test -f "$ac_dir/file"; then
8079 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8080 if test -n "$file_magic_test_file"; then
8081 case $deplibs_check_method in
8082 "file_magic "*)
8083 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8084 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8085 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8086 $EGREP "$file_magic_regex" > /dev/null; then
8087 :
8088 else
8089 cat <<_LT_EOF 1>&2
8090
8091 *** Warning: the command libtool uses to detect shared libraries,
8092 *** $file_magic_cmd, produces output that libtool cannot recognize.
8093 *** The result is that libtool may fail to recognize shared libraries
8094 *** as such. This will affect the creation of libtool libraries that
8095 *** depend on shared libraries, but programs linked with such libtool
8096 *** libraries will work regardless of this problem. Nevertheless, you
8097 *** may want to report the problem to your system manager and/or to
8098 *** [email protected]
8099
8100 _LT_EOF
8101 fi ;;
8102 esac
8103 fi
8104 break
8105 fi
8106 done
8107 IFS=$lt_save_ifs
8108 MAGIC_CMD=$lt_save_MAGIC_CMD
8109 ;;
8110 esac
8111 fi
8112
8113 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8114 if test -n "$MAGIC_CMD"; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8116 $as_echo "$MAGIC_CMD" >&6; }
8117 else
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123 else
8124 MAGIC_CMD=:
8125 fi
8126 fi
8127
8128 fi
8129 ;;
8130 esac
8131
8132 # Use C for the default configuration in the libtool script
8133
8134 lt_save_CC=$CC
8135 ac_ext=c
8136 ac_cpp='$CPP $CPPFLAGS'
8137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8140
8141
8142 # Source file extension for C test sources.
8143 ac_ext=c
8144
8145 # Object file extension for compiled C test sources.
8146 objext=o
8147 objext=$objext
8148
8149 # Code to be used in simple compile tests
8150 lt_simple_compile_test_code="int some_variable = 0;"
8151
8152 # Code to be used in simple link tests
8153 lt_simple_link_test_code='int main(){return(0);}'
8154
8155
8156
8157
8158
8159
8160
8161 # If no C compiler was specified, use CC.
8162 LTCC=${LTCC-"$CC"}
8163
8164 # If no C compiler flags were specified, use CFLAGS.
8165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8166
8167 # Allow CC to be a program name with arguments.
8168 compiler=$CC
8169
8170 # Save the default compiler, since it gets overwritten when the other
8171 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8172 compiler_DEFAULT=$CC
8173
8174 # save warnings/boilerplate of simple test code
8175 ac_outfile=conftest.$ac_objext
8176 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8178 _lt_compiler_boilerplate=`cat conftest.err`
8179 $RM conftest*
8180
8181 ac_outfile=conftest.$ac_objext
8182 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8184 _lt_linker_boilerplate=`cat conftest.err`
8185 $RM -r conftest*
8186
8187
8188 ## CAVEAT EMPTOR:
8189 ## There is no encapsulation within the following macros, do not change
8190 ## the running order or otherwise move them around unless you know exactly
8191 ## what you are doing...
8192 if test -n "$compiler"; then
8193
8194 lt_prog_compiler_no_builtin_flag=
8195
8196 if test yes = "$GCC"; then
8197 case $cc_basename in
8198 nvcc*)
8199 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8200 *)
8201 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8202 esac
8203
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8205 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8206 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 lt_cv_prog_compiler_rtti_exceptions=no
8210 ac_outfile=conftest.$ac_objext
8211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8212 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8213 # Insert the option either (1) after the last *FLAGS variable, or
8214 # (2) before a word containing "conftest.", or (3) at the end.
8215 # Note that $ac_compile itself does not contain backslashes and begins
8216 # with a dollar sign (not a hyphen), so the echo should work correctly.
8217 # The option is referenced via a variable to avoid confusing sed.
8218 lt_compile=`echo "$ac_compile" | $SED \
8219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8221 -e 's:$: $lt_compiler_flag:'`
8222 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8223 (eval "$lt_compile" 2>conftest.err)
8224 ac_status=$?
8225 cat conftest.err >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 if (exit $ac_status) && test -s "$ac_outfile"; then
8228 # The compiler can only warn and ignore the option if not recognized
8229 # So say no if there are warnings other than the usual output.
8230 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8232 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8233 lt_cv_prog_compiler_rtti_exceptions=yes
8234 fi
8235 fi
8236 $RM conftest*
8237
8238 fi
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8240 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8241
8242 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8243 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8244 else
8245 :
8246 fi
8247
8248 fi
8249
8250
8251
8252
8253
8254
8255 lt_prog_compiler_wl=
8256 lt_prog_compiler_pic=
8257 lt_prog_compiler_static=
8258
8259
8260 if test yes = "$GCC"; then
8261 lt_prog_compiler_wl='-Wl,'
8262 lt_prog_compiler_static='-static'
8263
8264 case $host_os in
8265 aix*)
8266 # All AIX code is PIC.
8267 if test ia64 = "$host_cpu"; then
8268 # AIX 5 now supports IA64 processor
8269 lt_prog_compiler_static='-Bstatic'
8270 fi
8271 lt_prog_compiler_pic='-fPIC'
8272 ;;
8273
8274 amigaos*)
8275 case $host_cpu in
8276 powerpc)
8277 # see comment about AmigaOS4 .so support
8278 lt_prog_compiler_pic='-fPIC'
8279 ;;
8280 m68k)
8281 # FIXME: we need at least 68020 code to build shared libraries, but
8282 # adding the '-m68020' flag to GCC prevents building anything better,
8283 # like '-m68040'.
8284 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8285 ;;
8286 esac
8287 ;;
8288
8289 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8290 # PIC is the default for these OSes.
8291 ;;
8292
8293 mingw* | cygwin* | pw32* | os2* | cegcc*)
8294 # This hack is so that the source file can tell whether it is being
8295 # built for inclusion in a dll (and should export symbols for example).
8296 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8297 # (--disable-auto-import) libraries
8298 lt_prog_compiler_pic='-DDLL_EXPORT'
8299 case $host_os in
8300 os2*)
8301 lt_prog_compiler_static='$wl-static'
8302 ;;
8303 esac
8304 ;;
8305
8306 darwin* | rhapsody*)
8307 # PIC is the default on this platform
8308 # Common symbols not allowed in MH_DYLIB files
8309 lt_prog_compiler_pic='-fno-common'
8310 ;;
8311
8312 haiku*)
8313 # PIC is the default for Haiku.
8314 # The "-static" flag exists, but is broken.
8315 lt_prog_compiler_static=
8316 ;;
8317
8318 hpux*)
8319 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8320 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8321 # sets the default TLS model and affects inlining.
8322 case $host_cpu in
8323 hppa*64*)
8324 # +Z the default
8325 ;;
8326 *)
8327 lt_prog_compiler_pic='-fPIC'
8328 ;;
8329 esac
8330 ;;
8331
8332 interix[3-9]*)
8333 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8334 # Instead, we relocate shared libraries at runtime.
8335 ;;
8336
8337 msdosdjgpp*)
8338 # Just because we use GCC doesn't mean we suddenly get shared libraries
8339 # on systems that don't support them.
8340 lt_prog_compiler_can_build_shared=no
8341 enable_shared=no
8342 ;;
8343
8344 *nto* | *qnx*)
8345 # QNX uses GNU C++, but need to define -shared option too, otherwise
8346 # it will coredump.
8347 lt_prog_compiler_pic='-fPIC -shared'
8348 ;;
8349
8350 sysv4*MP*)
8351 if test -d /usr/nec; then
8352 lt_prog_compiler_pic=-Kconform_pic
8353 fi
8354 ;;
8355
8356 *)
8357 lt_prog_compiler_pic='-fPIC'
8358 ;;
8359 esac
8360
8361 case $cc_basename in
8362 nvcc*) # Cuda Compiler Driver 2.2
8363 lt_prog_compiler_wl='-Xlinker '
8364 if test -n "$lt_prog_compiler_pic"; then
8365 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8366 fi
8367 ;;
8368 esac
8369 else
8370 # PORTME Check for flag to pass linker flags through the system compiler.
8371 case $host_os in
8372 aix*)
8373 lt_prog_compiler_wl='-Wl,'
8374 if test ia64 = "$host_cpu"; then
8375 # AIX 5 now supports IA64 processor
8376 lt_prog_compiler_static='-Bstatic'
8377 else
8378 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8379 fi
8380 ;;
8381
8382 darwin* | rhapsody*)
8383 # PIC is the default on this platform
8384 # Common symbols not allowed in MH_DYLIB files
8385 lt_prog_compiler_pic='-fno-common'
8386 case $cc_basename in
8387 nagfor*)
8388 # NAG Fortran compiler
8389 lt_prog_compiler_wl='-Wl,-Wl,,'
8390 lt_prog_compiler_pic='-PIC'
8391 lt_prog_compiler_static='-Bstatic'
8392 ;;
8393 esac
8394 ;;
8395
8396 mingw* | cygwin* | pw32* | os2* | cegcc*)
8397 # This hack is so that the source file can tell whether it is being
8398 # built for inclusion in a dll (and should export symbols for example).
8399 lt_prog_compiler_pic='-DDLL_EXPORT'
8400 case $host_os in
8401 os2*)
8402 lt_prog_compiler_static='$wl-static'
8403 ;;
8404 esac
8405 ;;
8406
8407 hpux9* | hpux10* | hpux11*)
8408 lt_prog_compiler_wl='-Wl,'
8409 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8410 # not for PA HP-UX.
8411 case $host_cpu in
8412 hppa*64*|ia64*)
8413 # +Z the default
8414 ;;
8415 *)
8416 lt_prog_compiler_pic='+Z'
8417 ;;
8418 esac
8419 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8420 lt_prog_compiler_static='$wl-a ${wl}archive'
8421 ;;
8422
8423 irix5* | irix6* | nonstopux*)
8424 lt_prog_compiler_wl='-Wl,'
8425 # PIC (with -KPIC) is the default.
8426 lt_prog_compiler_static='-non_shared'
8427 ;;
8428
8429 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8430 case $cc_basename in
8431 # old Intel for x86_64, which still supported -KPIC.
8432 ecc*)
8433 lt_prog_compiler_wl='-Wl,'
8434 lt_prog_compiler_pic='-KPIC'
8435 lt_prog_compiler_static='-static'
8436 ;;
8437 # flang / f18. f95 an alias for gfortran or flang on Debian
8438 flang* | f18* | f95*)
8439 lt_prog_compiler_wl='-Wl,'
8440 lt_prog_compiler_pic='-fPIC'
8441 lt_prog_compiler_static='-static'
8442 ;;
8443 # icc used to be incompatible with GCC.
8444 # ICC 10 doesn't accept -KPIC any more.
8445 icc* | ifort*)
8446 lt_prog_compiler_wl='-Wl,'
8447 lt_prog_compiler_pic='-fPIC'
8448 lt_prog_compiler_static='-static'
8449 ;;
8450 # Lahey Fortran 8.1.
8451 lf95*)
8452 lt_prog_compiler_wl='-Wl,'
8453 lt_prog_compiler_pic='--shared'
8454 lt_prog_compiler_static='--static'
8455 ;;
8456 nagfor*)
8457 # NAG Fortran compiler
8458 lt_prog_compiler_wl='-Wl,-Wl,,'
8459 lt_prog_compiler_pic='-PIC'
8460 lt_prog_compiler_static='-Bstatic'
8461 ;;
8462 tcc*)
8463 # Fabrice Bellard et al's Tiny C Compiler
8464 lt_prog_compiler_wl='-Wl,'
8465 lt_prog_compiler_pic='-fPIC'
8466 lt_prog_compiler_static='-static'
8467 ;;
8468 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8469 # Portland Group compilers (*not* the Pentium gcc compiler,
8470 # which looks to be a dead project)
8471 lt_prog_compiler_wl='-Wl,'
8472 lt_prog_compiler_pic='-fpic'
8473 lt_prog_compiler_static='-Bstatic'
8474 ;;
8475 ccc*)
8476 lt_prog_compiler_wl='-Wl,'
8477 # All Alpha code is PIC.
8478 lt_prog_compiler_static='-non_shared'
8479 ;;
8480 xl* | bgxl* | bgf* | mpixl*)
8481 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_pic='-qpic'
8484 lt_prog_compiler_static='-qstaticlink'
8485 ;;
8486 *)
8487 case `$CC -V 2>&1 | sed 5q` in
8488 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8489 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8490 lt_prog_compiler_pic='-KPIC'
8491 lt_prog_compiler_static='-Bstatic'
8492 lt_prog_compiler_wl=''
8493 ;;
8494 *Sun\ F* | *Sun*Fortran*)
8495 lt_prog_compiler_pic='-KPIC'
8496 lt_prog_compiler_static='-Bstatic'
8497 lt_prog_compiler_wl='-Qoption ld '
8498 ;;
8499 *Sun\ C*)
8500 # Sun C 5.9
8501 lt_prog_compiler_pic='-KPIC'
8502 lt_prog_compiler_static='-Bstatic'
8503 lt_prog_compiler_wl='-Wl,'
8504 ;;
8505 *Intel*\ [CF]*Compiler*)
8506 lt_prog_compiler_wl='-Wl,'
8507 lt_prog_compiler_pic='-fPIC'
8508 lt_prog_compiler_static='-static'
8509 ;;
8510 *Portland\ Group*)
8511 lt_prog_compiler_wl='-Wl,'
8512 lt_prog_compiler_pic='-fpic'
8513 lt_prog_compiler_static='-Bstatic'
8514 ;;
8515 esac
8516 ;;
8517 esac
8518 ;;
8519
8520 newsos6)
8521 lt_prog_compiler_pic='-KPIC'
8522 lt_prog_compiler_static='-Bstatic'
8523 ;;
8524
8525 *nto* | *qnx*)
8526 # QNX uses GNU C++, but need to define -shared option too, otherwise
8527 # it will coredump.
8528 lt_prog_compiler_pic='-fPIC -shared'
8529 ;;
8530
8531 osf3* | osf4* | osf5*)
8532 lt_prog_compiler_wl='-Wl,'
8533 # All OSF/1 code is PIC.
8534 lt_prog_compiler_static='-non_shared'
8535 ;;
8536
8537 rdos*)
8538 lt_prog_compiler_static='-non_shared'
8539 ;;
8540
8541 solaris*)
8542 lt_prog_compiler_pic='-KPIC'
8543 lt_prog_compiler_static='-Bstatic'
8544 case $cc_basename in
8545 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8546 lt_prog_compiler_wl='-Qoption ld ';;
8547 *)
8548 lt_prog_compiler_wl='-Wl,';;
8549 esac
8550 ;;
8551
8552 sunos4*)
8553 lt_prog_compiler_wl='-Qoption ld '
8554 lt_prog_compiler_pic='-PIC'
8555 lt_prog_compiler_static='-Bstatic'
8556 ;;
8557
8558 sysv4 | sysv4.2uw2* | sysv4.3*)
8559 lt_prog_compiler_wl='-Wl,'
8560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-Bstatic'
8562 ;;
8563
8564 sysv4*MP*)
8565 if test -d /usr/nec; then
8566 lt_prog_compiler_pic='-Kconform_pic'
8567 lt_prog_compiler_static='-Bstatic'
8568 fi
8569 ;;
8570
8571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8572 lt_prog_compiler_wl='-Wl,'
8573 lt_prog_compiler_pic='-KPIC'
8574 lt_prog_compiler_static='-Bstatic'
8575 ;;
8576
8577 unicos*)
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_can_build_shared=no
8580 ;;
8581
8582 uts4*)
8583 lt_prog_compiler_pic='-pic'
8584 lt_prog_compiler_static='-Bstatic'
8585 ;;
8586
8587 *)
8588 lt_prog_compiler_can_build_shared=no
8589 ;;
8590 esac
8591 fi
8592
8593 case $host_os in
8594 # For platforms that do not support PIC, -DPIC is meaningless:
8595 *djgpp*)
8596 lt_prog_compiler_pic=
8597 ;;
8598 *)
8599 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8600 ;;
8601 esac
8602
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8604 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8605 if ${lt_cv_prog_compiler_pic+:} false; then :
8606 $as_echo_n "(cached) " >&6
8607 else
8608 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8609 fi
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8611 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8612 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8613
8614 #
8615 # Check to make sure the PIC flag actually works.
8616 #
8617 if test -n "$lt_prog_compiler_pic"; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8619 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8620 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8621 $as_echo_n "(cached) " >&6
8622 else
8623 lt_cv_prog_compiler_pic_works=no
8624 ac_outfile=conftest.$ac_objext
8625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8626 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8627 # Insert the option either (1) after the last *FLAGS variable, or
8628 # (2) before a word containing "conftest.", or (3) at the end.
8629 # Note that $ac_compile itself does not contain backslashes and begins
8630 # with a dollar sign (not a hyphen), so the echo should work correctly.
8631 # The option is referenced via a variable to avoid confusing sed.
8632 lt_compile=`echo "$ac_compile" | $SED \
8633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8635 -e 's:$: $lt_compiler_flag:'`
8636 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8637 (eval "$lt_compile" 2>conftest.err)
8638 ac_status=$?
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 if (exit $ac_status) && test -s "$ac_outfile"; then
8642 # The compiler can only warn and ignore the option if not recognized
8643 # So say no if there are warnings other than the usual output.
8644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8647 lt_cv_prog_compiler_pic_works=yes
8648 fi
8649 fi
8650 $RM conftest*
8651
8652 fi
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8654 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8655
8656 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8657 case $lt_prog_compiler_pic in
8658 "" | " "*) ;;
8659 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8660 esac
8661 else
8662 lt_prog_compiler_pic=
8663 lt_prog_compiler_can_build_shared=no
8664 fi
8665
8666 fi
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678 #
8679 # Check to make sure the static flag actually works.
8680 #
8681 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8683 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8684 if ${lt_cv_prog_compiler_static_works+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686 else
8687 lt_cv_prog_compiler_static_works=no
8688 save_LDFLAGS=$LDFLAGS
8689 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8692 # The linker can only warn and ignore the option if not recognized
8693 # So say no if there are warnings
8694 if test -s conftest.err; then
8695 # Append any errors to the config.log.
8696 cat conftest.err 1>&5
8697 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8699 if diff conftest.exp conftest.er2 >/dev/null; then
8700 lt_cv_prog_compiler_static_works=yes
8701 fi
8702 else
8703 lt_cv_prog_compiler_static_works=yes
8704 fi
8705 fi
8706 $RM -r conftest*
8707 LDFLAGS=$save_LDFLAGS
8708
8709 fi
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8711 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8712
8713 if test yes = "$lt_cv_prog_compiler_static_works"; then
8714 :
8715 else
8716 lt_prog_compiler_static=
8717 fi
8718
8719
8720
8721
8722
8723
8724
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8726 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8727 if ${lt_cv_prog_compiler_c_o+:} false; then :
8728 $as_echo_n "(cached) " >&6
8729 else
8730 lt_cv_prog_compiler_c_o=no
8731 $RM -r conftest 2>/dev/null
8732 mkdir conftest
8733 cd conftest
8734 mkdir out
8735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8736
8737 lt_compiler_flag="-o out/conftest2.$ac_objext"
8738 # Insert the option either (1) after the last *FLAGS variable, or
8739 # (2) before a word containing "conftest.", or (3) at the end.
8740 # Note that $ac_compile itself does not contain backslashes and begins
8741 # with a dollar sign (not a hyphen), so the echo should work correctly.
8742 lt_compile=`echo "$ac_compile" | $SED \
8743 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8744 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8745 -e 's:$: $lt_compiler_flag:'`
8746 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8747 (eval "$lt_compile" 2>out/conftest.err)
8748 ac_status=$?
8749 cat out/conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8752 then
8753 # The compiler can only warn and ignore the option if not recognized
8754 # So say no if there are warnings
8755 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8756 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8757 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8758 lt_cv_prog_compiler_c_o=yes
8759 fi
8760 fi
8761 chmod u+w . 2>&5
8762 $RM conftest*
8763 # SGI C++ compiler will create directory out/ii_files/ for
8764 # template instantiation
8765 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8766 $RM out/* && rmdir out
8767 cd ..
8768 $RM -r conftest
8769 $RM conftest*
8770
8771 fi
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8773 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8774
8775
8776
8777
8778
8779
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8781 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8782 if ${lt_cv_prog_compiler_c_o+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 lt_cv_prog_compiler_c_o=no
8786 $RM -r conftest 2>/dev/null
8787 mkdir conftest
8788 cd conftest
8789 mkdir out
8790 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8791
8792 lt_compiler_flag="-o out/conftest2.$ac_objext"
8793 # Insert the option either (1) after the last *FLAGS variable, or
8794 # (2) before a word containing "conftest.", or (3) at the end.
8795 # Note that $ac_compile itself does not contain backslashes and begins
8796 # with a dollar sign (not a hyphen), so the echo should work correctly.
8797 lt_compile=`echo "$ac_compile" | $SED \
8798 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8800 -e 's:$: $lt_compiler_flag:'`
8801 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8802 (eval "$lt_compile" 2>out/conftest.err)
8803 ac_status=$?
8804 cat out/conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8807 then
8808 # The compiler can only warn and ignore the option if not recognized
8809 # So say no if there are warnings
8810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8811 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8812 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8813 lt_cv_prog_compiler_c_o=yes
8814 fi
8815 fi
8816 chmod u+w . 2>&5
8817 $RM conftest*
8818 # SGI C++ compiler will create directory out/ii_files/ for
8819 # template instantiation
8820 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8821 $RM out/* && rmdir out
8822 cd ..
8823 $RM -r conftest
8824 $RM conftest*
8825
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8828 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8829
8830
8831
8832
8833 hard_links=nottested
8834 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8835 # do not overwrite the value of need_locks provided by the user
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8837 $as_echo_n "checking if we can lock with hard links... " >&6; }
8838 hard_links=yes
8839 $RM conftest*
8840 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8841 touch conftest.a
8842 ln conftest.a conftest.b 2>&5 || hard_links=no
8843 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8845 $as_echo "$hard_links" >&6; }
8846 if test no = "$hard_links"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8848 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8849 need_locks=warn
8850 fi
8851 else
8852 need_locks=no
8853 fi
8854
8855
8856
8857
8858
8859
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8861 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8862
8863 runpath_var=
8864 allow_undefined_flag=
8865 always_export_symbols=no
8866 archive_cmds=
8867 archive_expsym_cmds=
8868 compiler_needs_object=no
8869 enable_shared_with_static_runtimes=no
8870 export_dynamic_flag_spec=
8871 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8872 hardcode_automatic=no
8873 hardcode_direct=no
8874 hardcode_direct_absolute=no
8875 hardcode_libdir_flag_spec=
8876 hardcode_libdir_separator=
8877 hardcode_minus_L=no
8878 hardcode_shlibpath_var=unsupported
8879 inherit_rpath=no
8880 link_all_deplibs=unknown
8881 module_cmds=
8882 module_expsym_cmds=
8883 old_archive_from_new_cmds=
8884 old_archive_from_expsyms_cmds=
8885 thread_safe_flag_spec=
8886 whole_archive_flag_spec=
8887 # include_expsyms should be a list of space-separated symbols to be *always*
8888 # included in the symbol list
8889 include_expsyms=
8890 # exclude_expsyms can be an extended regexp of symbols to exclude
8891 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8892 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8893 # as well as any symbol that contains 'd'.
8894 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8895 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8896 # platforms (ab)use it in PIC code, but their linkers get confused if
8897 # the symbol is explicitly referenced. Since portable code cannot
8898 # rely on this symbol name, it's probably fine to never include it in
8899 # preloaded symbol tables.
8900 # Exclude shared library initialization/finalization symbols.
8901 extract_expsyms_cmds=
8902
8903 case $host_os in
8904 cygwin* | mingw* | pw32* | cegcc*)
8905 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8906 # When not using gcc, we currently assume that we are using
8907 # Microsoft Visual C++.
8908 if test yes != "$GCC"; then
8909 with_gnu_ld=no
8910 fi
8911 ;;
8912 interix*)
8913 # we just hope/assume this is gcc and not c89 (= MSVC++)
8914 with_gnu_ld=yes
8915 ;;
8916 openbsd* | bitrig*)
8917 with_gnu_ld=no
8918 ;;
8919 linux* | k*bsd*-gnu | gnu*)
8920 link_all_deplibs=no
8921 ;;
8922 esac
8923
8924 ld_shlibs=yes
8925
8926 # On some targets, GNU ld is compatible enough with the native linker
8927 # that we're better off using the native interface for both.
8928 lt_use_gnu_ld_interface=no
8929 if test yes = "$with_gnu_ld"; then
8930 case $host_os in
8931 aix*)
8932 # The AIX port of GNU ld has always aspired to compatibility
8933 # with the native linker. However, as the warning in the GNU ld
8934 # block says, versions before 2.19.5* couldn't really create working
8935 # shared libraries, regardless of the interface used.
8936 case `$LD -v 2>&1` in
8937 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8938 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8939 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8940 *)
8941 lt_use_gnu_ld_interface=yes
8942 ;;
8943 esac
8944 ;;
8945 *)
8946 lt_use_gnu_ld_interface=yes
8947 ;;
8948 esac
8949 fi
8950
8951 if test yes = "$lt_use_gnu_ld_interface"; then
8952 # If archive_cmds runs LD, not CC, wlarc should be empty
8953 wlarc='$wl'
8954
8955 # Set some defaults for GNU ld with shared library support. These
8956 # are reset later if shared libraries are not supported. Putting them
8957 # here allows them to be overridden if necessary.
8958 runpath_var=LD_RUN_PATH
8959 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8960 export_dynamic_flag_spec='$wl--export-dynamic'
8961 # ancient GNU ld didn't support --whole-archive et. al.
8962 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8963 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8964 else
8965 whole_archive_flag_spec=
8966 fi
8967 supports_anon_versioning=no
8968 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8969 *GNU\ gold*) supports_anon_versioning=yes ;;
8970 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8971 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8972 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8973 *\ 2.11.*) ;; # other 2.11 versions
8974 *) supports_anon_versioning=yes ;;
8975 esac
8976
8977 # See if GNU ld supports shared libraries.
8978 case $host_os in
8979 aix[3-9]*)
8980 # On AIX/PPC, the GNU linker is very broken
8981 if test ia64 != "$host_cpu"; then
8982 ld_shlibs=no
8983 cat <<_LT_EOF 1>&2
8984
8985 *** Warning: the GNU linker, at least up to release 2.19, is reported
8986 *** to be unable to reliably create shared libraries on AIX.
8987 *** Therefore, libtool is disabling shared libraries support. If you
8988 *** really care for shared libraries, you may want to install binutils
8989 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8990 *** You will then need to restart the configuration process.
8991
8992 _LT_EOF
8993 fi
8994 ;;
8995
8996 amigaos*)
8997 case $host_cpu in
8998 powerpc)
8999 # see comment about AmigaOS4 .so support
9000 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9001 archive_expsym_cmds=''
9002 ;;
9003 m68k)
9004 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)'
9005 hardcode_libdir_flag_spec='-L$libdir'
9006 hardcode_minus_L=yes
9007 ;;
9008 esac
9009 ;;
9010
9011 beos*)
9012 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9013 allow_undefined_flag=unsupported
9014 # Joseph Beckenbach <[email protected]> says some releases of gcc
9015 # support --undefined. This deserves some investigation. FIXME
9016 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9017 else
9018 ld_shlibs=no
9019 fi
9020 ;;
9021
9022 cygwin* | mingw* | pw32* | cegcc*)
9023 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9024 # as there is no search path for DLLs.
9025 hardcode_libdir_flag_spec='-L$libdir'
9026 export_dynamic_flag_spec='$wl--export-all-symbols'
9027 allow_undefined_flag=unsupported
9028 always_export_symbols=no
9029 enable_shared_with_static_runtimes=yes
9030 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'
9031 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9032
9033 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9035 # If the export-symbols file already is a .def file, use it as
9036 # is; otherwise, prepend EXPORTS...
9037 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9038 cp $export_symbols $output_objdir/$soname.def;
9039 else
9040 echo EXPORTS > $output_objdir/$soname.def;
9041 cat $export_symbols >> $output_objdir/$soname.def;
9042 fi~
9043 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9044 else
9045 ld_shlibs=no
9046 fi
9047 ;;
9048
9049 haiku*)
9050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9051 link_all_deplibs=yes
9052 ;;
9053
9054 os2*)
9055 hardcode_libdir_flag_spec='-L$libdir'
9056 hardcode_minus_L=yes
9057 allow_undefined_flag=unsupported
9058 shrext_cmds=.dll
9059 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9060 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9061 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9062 $ECHO EXPORTS >> $output_objdir/$libname.def~
9063 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9064 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9065 emximp -o $lib $output_objdir/$libname.def'
9066 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9067 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9068 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9069 $ECHO EXPORTS >> $output_objdir/$libname.def~
9070 prefix_cmds="$SED"~
9071 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9072 prefix_cmds="$prefix_cmds -e 1d";
9073 fi~
9074 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9075 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9076 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9077 emximp -o $lib $output_objdir/$libname.def'
9078 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9079 enable_shared_with_static_runtimes=yes
9080 ;;
9081
9082 interix[3-9]*)
9083 hardcode_direct=no
9084 hardcode_shlibpath_var=no
9085 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9086 export_dynamic_flag_spec='$wl-E'
9087 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9088 # Instead, shared libraries are loaded at an image base (0x10000000 by
9089 # default) and relocated if they conflict, which is a slow very memory
9090 # consuming and fragmenting process. To avoid this, we pick a random,
9091 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9092 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9093 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9094 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'
9095 ;;
9096
9097 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9098 tmp_diet=no
9099 if test linux-dietlibc = "$host_os"; then
9100 case $cc_basename in
9101 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9102 esac
9103 fi
9104 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9105 && test no = "$tmp_diet"
9106 then
9107 tmp_addflag=' $pic_flag'
9108 tmp_sharedflag='-shared'
9109 case $cc_basename,$host_cpu in
9110 pgcc*) # Portland Group C compiler
9111 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'
9112 tmp_addflag=' $pic_flag'
9113 ;;
9114 pgf77* | pgf90* | pgf95* | pgfortran*)
9115 # Portland Group f77 and f90 compilers
9116 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'
9117 tmp_addflag=' $pic_flag -Mnomain' ;;
9118 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9119 tmp_addflag=' -i_dynamic' ;;
9120 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9121 tmp_addflag=' -i_dynamic -nofor_main' ;;
9122 ifc* | ifort*) # Intel Fortran compiler
9123 tmp_addflag=' -nofor_main' ;;
9124 lf95*) # Lahey Fortran 8.1
9125 whole_archive_flag_spec=
9126 tmp_sharedflag='--shared' ;;
9127 nagfor*) # NAGFOR 5.3
9128 tmp_sharedflag='-Wl,-shared' ;;
9129 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9130 tmp_sharedflag='-qmkshrobj'
9131 tmp_addflag= ;;
9132 nvcc*) # Cuda Compiler Driver 2.2
9133 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'
9134 compiler_needs_object=yes
9135 ;;
9136 esac
9137 case `$CC -V 2>&1 | sed 5q` in
9138 *Sun\ C*) # Sun C 5.9
9139 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'
9140 compiler_needs_object=yes
9141 tmp_sharedflag='-G' ;;
9142 *Sun\ F*) # Sun Fortran 8.3
9143 tmp_sharedflag='-G' ;;
9144 esac
9145 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9146
9147 if test yes = "$supports_anon_versioning"; then
9148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9150 echo "local: *; };" >> $output_objdir/$libname.ver~
9151 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9152 fi
9153
9154 case $cc_basename in
9155 tcc*)
9156 export_dynamic_flag_spec='-rdynamic'
9157 ;;
9158 xlf* | bgf* | bgxlf* | mpixlf*)
9159 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9160 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9161 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9162 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9163 if test yes = "$supports_anon_versioning"; then
9164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9166 echo "local: *; };" >> $output_objdir/$libname.ver~
9167 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9168 fi
9169 ;;
9170 esac
9171 else
9172 ld_shlibs=no
9173 fi
9174 ;;
9175
9176 netbsd* | netbsdelf*-gnu)
9177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9178 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9179 wlarc=
9180 else
9181 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9182 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9183 fi
9184 ;;
9185
9186 solaris*)
9187 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9188 ld_shlibs=no
9189 cat <<_LT_EOF 1>&2
9190
9191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9192 *** create shared libraries on Solaris systems. Therefore, libtool
9193 *** is disabling shared libraries support. We urge you to upgrade GNU
9194 *** binutils to release 2.9.1 or newer. Another option is to modify
9195 *** your PATH or compiler configuration so that the native linker is
9196 *** used, and then restart.
9197
9198 _LT_EOF
9199 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9200 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9201 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9202 else
9203 ld_shlibs=no
9204 fi
9205 ;;
9206
9207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9208 case `$LD -v 2>&1` in
9209 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9210 ld_shlibs=no
9211 cat <<_LT_EOF 1>&2
9212
9213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9214 *** reliably create shared libraries on SCO systems. Therefore, libtool
9215 *** is disabling shared libraries support. We urge you to upgrade GNU
9216 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9217 *** your PATH or compiler configuration so that the native linker is
9218 *** used, and then restart.
9219
9220 _LT_EOF
9221 ;;
9222 *)
9223 # For security reasons, it is highly recommended that you always
9224 # use absolute paths for naming shared libraries, and exclude the
9225 # DT_RUNPATH tag from executables and libraries. But doing so
9226 # requires that you compile everything twice, which is a pain.
9227 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9229 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9230 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9231 else
9232 ld_shlibs=no
9233 fi
9234 ;;
9235 esac
9236 ;;
9237
9238 sunos4*)
9239 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9240 wlarc=
9241 hardcode_direct=yes
9242 hardcode_shlibpath_var=no
9243 ;;
9244
9245 *)
9246 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9247 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9248 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9249 else
9250 ld_shlibs=no
9251 fi
9252 ;;
9253 esac
9254
9255 if test no = "$ld_shlibs"; then
9256 runpath_var=
9257 hardcode_libdir_flag_spec=
9258 export_dynamic_flag_spec=
9259 whole_archive_flag_spec=
9260 fi
9261 else
9262 # PORTME fill in a description of your system's linker (not GNU ld)
9263 case $host_os in
9264 aix3*)
9265 allow_undefined_flag=unsupported
9266 always_export_symbols=yes
9267 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'
9268 # Note: this linker hardcodes the directories in LIBPATH if there
9269 # are no directories specified by -L.
9270 hardcode_minus_L=yes
9271 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9272 # Neither direct hardcoding nor static linking is supported with a
9273 # broken collect2.
9274 hardcode_direct=unsupported
9275 fi
9276 ;;
9277
9278 aix[4-9]*)
9279 if test ia64 = "$host_cpu"; then
9280 # On IA64, the linker does run time linking by default, so we don't
9281 # have to do anything special.
9282 aix_use_runtimelinking=no
9283 exp_sym_flag='-Bexport'
9284 no_entry_flag=
9285 else
9286 # If we're using GNU nm, then we don't want the "-C" option.
9287 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9288 # Without the "-l" option, or with the "-B" option, AIX nm treats
9289 # weak defined symbols like other global defined symbols, whereas
9290 # GNU nm marks them as "W".
9291 # While the 'weak' keyword is ignored in the Export File, we need
9292 # it in the Import File for the 'aix-soname' feature, so we have
9293 # to replace the "-B" option with "-P" for AIX nm.
9294 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9295 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'
9296 else
9297 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9298 fi
9299 aix_use_runtimelinking=no
9300
9301 # Test if we are trying to use run time linking or normal
9302 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9303 # have runtime linking enabled, and use it for executables.
9304 # For shared libraries, we enable/disable runtime linking
9305 # depending on the kind of the shared library created -
9306 # when "with_aix_soname,aix_use_runtimelinking" is:
9307 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9308 # "aix,yes" lib.so shared, rtl:yes, for executables
9309 # lib.a static archive
9310 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9311 # lib.a(lib.so.V) shared, rtl:no, for executables
9312 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9313 # lib.a(lib.so.V) shared, rtl:no
9314 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9315 # lib.a static archive
9316 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9317 for ld_flag in $LDFLAGS; do
9318 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9319 aix_use_runtimelinking=yes
9320 break
9321 fi
9322 done
9323 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9324 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9325 # so we don't have lib.a shared libs to link our executables.
9326 # We have to force runtime linking in this case.
9327 aix_use_runtimelinking=yes
9328 LDFLAGS="$LDFLAGS -Wl,-brtl"
9329 fi
9330 ;;
9331 esac
9332
9333 exp_sym_flag='-bexport'
9334 no_entry_flag='-bnoentry'
9335 fi
9336
9337 # When large executables or shared objects are built, AIX ld can
9338 # have problems creating the table of contents. If linking a library
9339 # or program results in "error TOC overflow" add -mminimal-toc to
9340 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9341 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9342
9343 archive_cmds=''
9344 hardcode_direct=yes
9345 hardcode_direct_absolute=yes
9346 hardcode_libdir_separator=':'
9347 link_all_deplibs=yes
9348 file_list_spec='$wl-f,'
9349 case $with_aix_soname,$aix_use_runtimelinking in
9350 aix,*) ;; # traditional, no import file
9351 svr4,* | *,yes) # use import file
9352 # The Import File defines what to hardcode.
9353 hardcode_direct=no
9354 hardcode_direct_absolute=no
9355 ;;
9356 esac
9357
9358 if test yes = "$GCC"; then
9359 case $host_os in aix4.[012]|aix4.[012].*)
9360 # We only want to do this on AIX 4.2 and lower, the check
9361 # below for broken collect2 doesn't work under 4.3+
9362 collect2name=`$CC -print-prog-name=collect2`
9363 if test -f "$collect2name" &&
9364 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9365 then
9366 # We have reworked collect2
9367 :
9368 else
9369 # We have old collect2
9370 hardcode_direct=unsupported
9371 # It fails to find uninstalled libraries when the uninstalled
9372 # path is not listed in the libpath. Setting hardcode_minus_L
9373 # to unsupported forces relinking
9374 hardcode_minus_L=yes
9375 hardcode_libdir_flag_spec='-L$libdir'
9376 hardcode_libdir_separator=
9377 fi
9378 ;;
9379 esac
9380 shared_flag='-shared'
9381 if test yes = "$aix_use_runtimelinking"; then
9382 shared_flag="$shared_flag "'$wl-G'
9383 fi
9384 # Need to ensure runtime linking is disabled for the traditional
9385 # shared library, or the linker may eventually find shared libraries
9386 # /with/ Import File - we do not want to mix them.
9387 shared_flag_aix='-shared'
9388 shared_flag_svr4='-shared $wl-G'
9389 else
9390 # not using gcc
9391 if test ia64 = "$host_cpu"; then
9392 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9393 # chokes on -Wl,-G. The following line is correct:
9394 shared_flag='-G'
9395 else
9396 if test yes = "$aix_use_runtimelinking"; then
9397 shared_flag='$wl-G'
9398 else
9399 shared_flag='$wl-bM:SRE'
9400 fi
9401 shared_flag_aix='$wl-bM:SRE'
9402 shared_flag_svr4='$wl-G'
9403 fi
9404 fi
9405
9406 export_dynamic_flag_spec='$wl-bexpall'
9407 # It seems that -bexpall does not export symbols beginning with
9408 # underscore (_), so it is better to generate a list of symbols to export.
9409 always_export_symbols=yes
9410 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9411 # Warning - without using the other runtime loading flags (-brtl),
9412 # -berok will link without error, but may produce a broken library.
9413 allow_undefined_flag='-berok'
9414 # Determine the default libpath from the value encoded in an
9415 # empty executable.
9416 if test set = "${lt_cv_aix_libpath+set}"; then
9417 aix_libpath=$lt_cv_aix_libpath
9418 else
9419 if ${lt_cv_aix_libpath_+:} false; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9423 /* end confdefs.h. */
9424
9425 int
9426 main ()
9427 {
9428
9429 ;
9430 return 0;
9431 }
9432 _ACEOF
9433 if ac_fn_c_try_link "$LINENO"; then :
9434
9435 lt_aix_libpath_sed='
9436 /Import File Strings/,/^$/ {
9437 /^0/ {
9438 s/^0 *\([^ ]*\) *$/\1/
9439 p
9440 }
9441 }'
9442 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9443 # Check for a 64-bit object if we didn't find anything.
9444 if test -z "$lt_cv_aix_libpath_"; then
9445 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9446 fi
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext \
9449 conftest$ac_exeext conftest.$ac_ext
9450 if test -z "$lt_cv_aix_libpath_"; then
9451 lt_cv_aix_libpath_=/usr/lib:/lib
9452 fi
9453
9454 fi
9455
9456 aix_libpath=$lt_cv_aix_libpath_
9457 fi
9458
9459 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9460 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
9461 else
9462 if test ia64 = "$host_cpu"; then
9463 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9464 allow_undefined_flag="-z nodefs"
9465 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"
9466 else
9467 # Determine the default libpath from the value encoded in an
9468 # empty executable.
9469 if test set = "${lt_cv_aix_libpath+set}"; then
9470 aix_libpath=$lt_cv_aix_libpath
9471 else
9472 if ${lt_cv_aix_libpath_+:} false; then :
9473 $as_echo_n "(cached) " >&6
9474 else
9475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9476 /* end confdefs.h. */
9477
9478 int
9479 main ()
9480 {
9481
9482 ;
9483 return 0;
9484 }
9485 _ACEOF
9486 if ac_fn_c_try_link "$LINENO"; then :
9487
9488 lt_aix_libpath_sed='
9489 /Import File Strings/,/^$/ {
9490 /^0/ {
9491 s/^0 *\([^ ]*\) *$/\1/
9492 p
9493 }
9494 }'
9495 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9496 # Check for a 64-bit object if we didn't find anything.
9497 if test -z "$lt_cv_aix_libpath_"; then
9498 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9499 fi
9500 fi
9501 rm -f core conftest.err conftest.$ac_objext \
9502 conftest$ac_exeext conftest.$ac_ext
9503 if test -z "$lt_cv_aix_libpath_"; then
9504 lt_cv_aix_libpath_=/usr/lib:/lib
9505 fi
9506
9507 fi
9508
9509 aix_libpath=$lt_cv_aix_libpath_
9510 fi
9511
9512 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9513 # Warning - without using the other run time loading flags,
9514 # -berok will link without error, but may produce a broken library.
9515 no_undefined_flag=' $wl-bernotok'
9516 allow_undefined_flag=' $wl-berok'
9517 if test yes = "$with_gnu_ld"; then
9518 # We only use this code for GNU lds that support --whole-archive.
9519 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9520 else
9521 # Exported symbols can be pulled into shared objects from archives
9522 whole_archive_flag_spec='$convenience'
9523 fi
9524 archive_cmds_need_lc=yes
9525 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9526 # -brtl affects multiple linker settings, -berok does not and is overridden later
9527 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9528 if test svr4 != "$with_aix_soname"; then
9529 # This is similar to how AIX traditionally builds its shared libraries.
9530 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'
9531 fi
9532 if test aix != "$with_aix_soname"; then
9533 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'
9534 else
9535 # used by -dlpreopen to get the symbols
9536 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9537 fi
9538 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9539 fi
9540 fi
9541 ;;
9542
9543 amigaos*)
9544 case $host_cpu in
9545 powerpc)
9546 # see comment about AmigaOS4 .so support
9547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9548 archive_expsym_cmds=''
9549 ;;
9550 m68k)
9551 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)'
9552 hardcode_libdir_flag_spec='-L$libdir'
9553 hardcode_minus_L=yes
9554 ;;
9555 esac
9556 ;;
9557
9558 bsdi[45]*)
9559 export_dynamic_flag_spec=-rdynamic
9560 ;;
9561
9562 cygwin* | mingw* | pw32* | cegcc*)
9563 # When not using gcc, we currently assume that we are using
9564 # Microsoft Visual C++.
9565 # hardcode_libdir_flag_spec is actually meaningless, as there is
9566 # no search path for DLLs.
9567 case $cc_basename in
9568 cl*)
9569 # Native MSVC
9570 hardcode_libdir_flag_spec=' '
9571 allow_undefined_flag=unsupported
9572 always_export_symbols=yes
9573 file_list_spec='@'
9574 # Tell ltmain to make .lib files, not .a files.
9575 libext=lib
9576 # Tell ltmain to make .dll files, not .so files.
9577 shrext_cmds=.dll
9578 # FIXME: Setting linknames here is a bad hack.
9579 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9580 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9581 cp "$export_symbols" "$output_objdir/$soname.def";
9582 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9583 else
9584 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9585 fi~
9586 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9587 linknames='
9588 # The linker will not automatically build a static lib if we build a DLL.
9589 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9590 enable_shared_with_static_runtimes=yes
9591 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9592 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9593 # Don't use ranlib
9594 old_postinstall_cmds='chmod 644 $oldlib'
9595 postlink_cmds='lt_outputfile="@OUTPUT@"~
9596 lt_tool_outputfile="@TOOL_OUTPUT@"~
9597 case $lt_outputfile in
9598 *.exe|*.EXE) ;;
9599 *)
9600 lt_outputfile=$lt_outputfile.exe
9601 lt_tool_outputfile=$lt_tool_outputfile.exe
9602 ;;
9603 esac~
9604 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9605 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9606 $RM "$lt_outputfile.manifest";
9607 fi'
9608 ;;
9609 *)
9610 # Assume MSVC wrapper
9611 hardcode_libdir_flag_spec=' '
9612 allow_undefined_flag=unsupported
9613 # Tell ltmain to make .lib files, not .a files.
9614 libext=lib
9615 # Tell ltmain to make .dll files, not .so files.
9616 shrext_cmds=.dll
9617 # FIXME: Setting linknames here is a bad hack.
9618 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9619 # The linker will automatically build a .lib file if we build a DLL.
9620 old_archive_from_new_cmds='true'
9621 # FIXME: Should let the user specify the lib program.
9622 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9623 enable_shared_with_static_runtimes=yes
9624 ;;
9625 esac
9626 ;;
9627
9628 darwin* | rhapsody*)
9629
9630
9631 archive_cmds_need_lc=no
9632 hardcode_direct=no
9633 hardcode_automatic=yes
9634 hardcode_shlibpath_var=unsupported
9635 if test yes = "$lt_cv_ld_force_load"; then
9636 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\"`'
9637
9638 else
9639 whole_archive_flag_spec=''
9640 fi
9641 link_all_deplibs=yes
9642 allow_undefined_flag=$_lt_dar_allow_undefined
9643 case $cc_basename in
9644 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9645 *) _lt_dar_can_shared=$GCC ;;
9646 esac
9647 if test yes = "$_lt_dar_can_shared"; then
9648 output_verbose_link_cmd=func_echo_all
9649 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9650 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9651 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"
9652 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"
9653
9654 else
9655 ld_shlibs=no
9656 fi
9657
9658 ;;
9659
9660 dgux*)
9661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9662 hardcode_libdir_flag_spec='-L$libdir'
9663 hardcode_shlibpath_var=no
9664 ;;
9665
9666 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9667 # support. Future versions do this automatically, but an explicit c++rt0.o
9668 # does not break anything, and helps significantly (at the cost of a little
9669 # extra space).
9670 freebsd2.2*)
9671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9672 hardcode_libdir_flag_spec='-R$libdir'
9673 hardcode_direct=yes
9674 hardcode_shlibpath_var=no
9675 ;;
9676
9677 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9678 freebsd2.*)
9679 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_direct=yes
9681 hardcode_minus_L=yes
9682 hardcode_shlibpath_var=no
9683 ;;
9684
9685 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9686 freebsd* | dragonfly*)
9687 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9688 hardcode_libdir_flag_spec='-R$libdir'
9689 hardcode_direct=yes
9690 hardcode_shlibpath_var=no
9691 ;;
9692
9693 hpux9*)
9694 if test yes = "$GCC"; then
9695 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'
9696 else
9697 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'
9698 fi
9699 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9700 hardcode_libdir_separator=:
9701 hardcode_direct=yes
9702
9703 # hardcode_minus_L: Not really in the search PATH,
9704 # but as the default location of the library.
9705 hardcode_minus_L=yes
9706 export_dynamic_flag_spec='$wl-E'
9707 ;;
9708
9709 hpux10*)
9710 if test yes,no = "$GCC,$with_gnu_ld"; then
9711 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9712 else
9713 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9714 fi
9715 if test no = "$with_gnu_ld"; then
9716 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9717 hardcode_libdir_separator=:
9718 hardcode_direct=yes
9719 hardcode_direct_absolute=yes
9720 export_dynamic_flag_spec='$wl-E'
9721 # hardcode_minus_L: Not really in the search PATH,
9722 # but as the default location of the library.
9723 hardcode_minus_L=yes
9724 fi
9725 ;;
9726
9727 hpux11*)
9728 if test yes,no = "$GCC,$with_gnu_ld"; then
9729 case $host_cpu in
9730 hppa*64*)
9731 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 ;;
9733 ia64*)
9734 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9735 ;;
9736 *)
9737 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9738 ;;
9739 esac
9740 else
9741 case $host_cpu in
9742 hppa*64*)
9743 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9744 ;;
9745 ia64*)
9746 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9747 ;;
9748 *)
9749
9750 # Older versions of the 11.00 compiler do not understand -b yet
9751 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9753 $as_echo_n "checking if $CC understands -b... " >&6; }
9754 if ${lt_cv_prog_compiler__b+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 lt_cv_prog_compiler__b=no
9758 save_LDFLAGS=$LDFLAGS
9759 LDFLAGS="$LDFLAGS -b"
9760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9762 # The linker can only warn and ignore the option if not recognized
9763 # So say no if there are warnings
9764 if test -s conftest.err; then
9765 # Append any errors to the config.log.
9766 cat conftest.err 1>&5
9767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9769 if diff conftest.exp conftest.er2 >/dev/null; then
9770 lt_cv_prog_compiler__b=yes
9771 fi
9772 else
9773 lt_cv_prog_compiler__b=yes
9774 fi
9775 fi
9776 $RM -r conftest*
9777 LDFLAGS=$save_LDFLAGS
9778
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9781 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9782
9783 if test yes = "$lt_cv_prog_compiler__b"; then
9784 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9785 else
9786 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9787 fi
9788
9789 ;;
9790 esac
9791 fi
9792 if test no = "$with_gnu_ld"; then
9793 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9794 hardcode_libdir_separator=:
9795
9796 case $host_cpu in
9797 hppa*64*|ia64*)
9798 hardcode_direct=no
9799 hardcode_shlibpath_var=no
9800 ;;
9801 *)
9802 hardcode_direct=yes
9803 hardcode_direct_absolute=yes
9804 export_dynamic_flag_spec='$wl-E'
9805
9806 # hardcode_minus_L: Not really in the search PATH,
9807 # but as the default location of the library.
9808 hardcode_minus_L=yes
9809 ;;
9810 esac
9811 fi
9812 ;;
9813
9814 irix5* | irix6* | nonstopux*)
9815 if test yes = "$GCC"; then
9816 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'
9817 # Try to use the -exported_symbol ld option, if it does not
9818 # work, assume that -exports_file does not work either and
9819 # implicitly export all symbols.
9820 # This should be the same for all languages, so no per-tag cache variable.
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9822 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9823 if ${lt_cv_irix_exported_symbol+:} false; then :
9824 $as_echo_n "(cached) " >&6
9825 else
9826 save_LDFLAGS=$LDFLAGS
9827 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9830 int foo (void) { return 0; }
9831 _ACEOF
9832 if ac_fn_c_try_link "$LINENO"; then :
9833 lt_cv_irix_exported_symbol=yes
9834 else
9835 lt_cv_irix_exported_symbol=no
9836 fi
9837 rm -f core conftest.err conftest.$ac_objext \
9838 conftest$ac_exeext conftest.$ac_ext
9839 LDFLAGS=$save_LDFLAGS
9840 fi
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9842 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9843 if test yes = "$lt_cv_irix_exported_symbol"; then
9844 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'
9845 fi
9846 link_all_deplibs=no
9847 else
9848 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'
9849 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'
9850 fi
9851 archive_cmds_need_lc='no'
9852 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9853 hardcode_libdir_separator=:
9854 inherit_rpath=yes
9855 link_all_deplibs=yes
9856 ;;
9857
9858 linux*)
9859 case $cc_basename in
9860 tcc*)
9861 # Fabrice Bellard et al's Tiny C Compiler
9862 ld_shlibs=yes
9863 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9864 ;;
9865 esac
9866 ;;
9867
9868 netbsd* | netbsdelf*-gnu)
9869 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9871 else
9872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9873 fi
9874 hardcode_libdir_flag_spec='-R$libdir'
9875 hardcode_direct=yes
9876 hardcode_shlibpath_var=no
9877 ;;
9878
9879 newsos6)
9880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9881 hardcode_direct=yes
9882 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9883 hardcode_libdir_separator=:
9884 hardcode_shlibpath_var=no
9885 ;;
9886
9887 *nto* | *qnx*)
9888 ;;
9889
9890 openbsd* | bitrig*)
9891 if test -f /usr/libexec/ld.so; then
9892 hardcode_direct=yes
9893 hardcode_shlibpath_var=no
9894 hardcode_direct_absolute=yes
9895 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9896 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9897 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9898 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9899 export_dynamic_flag_spec='$wl-E'
9900 else
9901 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9902 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9903 fi
9904 else
9905 ld_shlibs=no
9906 fi
9907 ;;
9908
9909 os2*)
9910 hardcode_libdir_flag_spec='-L$libdir'
9911 hardcode_minus_L=yes
9912 allow_undefined_flag=unsupported
9913 shrext_cmds=.dll
9914 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9915 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9916 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9917 $ECHO EXPORTS >> $output_objdir/$libname.def~
9918 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9919 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9920 emximp -o $lib $output_objdir/$libname.def'
9921 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9922 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9923 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9924 $ECHO EXPORTS >> $output_objdir/$libname.def~
9925 prefix_cmds="$SED"~
9926 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9927 prefix_cmds="$prefix_cmds -e 1d";
9928 fi~
9929 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9930 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9931 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9932 emximp -o $lib $output_objdir/$libname.def'
9933 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9934 enable_shared_with_static_runtimes=yes
9935 ;;
9936
9937 osf3*)
9938 if test yes = "$GCC"; then
9939 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9940 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'
9941 else
9942 allow_undefined_flag=' -expect_unresolved \*'
9943 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'
9944 fi
9945 archive_cmds_need_lc='no'
9946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9947 hardcode_libdir_separator=:
9948 ;;
9949
9950 osf4* | osf5*) # as osf3* with the addition of -msym flag
9951 if test yes = "$GCC"; then
9952 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9953 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'
9954 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9955 else
9956 allow_undefined_flag=' -expect_unresolved \*'
9957 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'
9958 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~
9959 $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'
9960
9961 # Both c and cxx compiler support -rpath directly
9962 hardcode_libdir_flag_spec='-rpath $libdir'
9963 fi
9964 archive_cmds_need_lc='no'
9965 hardcode_libdir_separator=:
9966 ;;
9967
9968 solaris*)
9969 no_undefined_flag=' -z defs'
9970 if test yes = "$GCC"; then
9971 wlarc='$wl'
9972 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9973 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9974 $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'
9975 else
9976 case `$CC -V 2>&1` in
9977 *"Compilers 5.0"*)
9978 wlarc=''
9979 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9981 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9982 ;;
9983 *)
9984 wlarc='$wl'
9985 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9986 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9987 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9988 ;;
9989 esac
9990 fi
9991 hardcode_libdir_flag_spec='-R$libdir'
9992 hardcode_shlibpath_var=no
9993 case $host_os in
9994 solaris2.[0-5] | solaris2.[0-5].*) ;;
9995 *)
9996 # The compiler driver will combine and reorder linker options,
9997 # but understands '-z linker_flag'. GCC discards it without '$wl',
9998 # but is careful enough not to reorder.
9999 # Supported since Solaris 2.6 (maybe 2.5.1?)
10000 if test yes = "$GCC"; then
10001 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10002 else
10003 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10004 fi
10005 ;;
10006 esac
10007 link_all_deplibs=yes
10008 ;;
10009
10010 sunos4*)
10011 if test sequent = "$host_vendor"; then
10012 # Use $CC to link under sequent, because it throws in some extra .o
10013 # files that make .init and .fini sections work.
10014 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10015 else
10016 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10017 fi
10018 hardcode_libdir_flag_spec='-L$libdir'
10019 hardcode_direct=yes
10020 hardcode_minus_L=yes
10021 hardcode_shlibpath_var=no
10022 ;;
10023
10024 sysv4)
10025 case $host_vendor in
10026 sni)
10027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028 hardcode_direct=yes # is this really true???
10029 ;;
10030 siemens)
10031 ## LD is ld it makes a PLAMLIB
10032 ## CC just makes a GrossModule.
10033 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10034 reload_cmds='$CC -r -o $output$reload_objs'
10035 hardcode_direct=no
10036 ;;
10037 motorola)
10038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10040 ;;
10041 esac
10042 runpath_var='LD_RUN_PATH'
10043 hardcode_shlibpath_var=no
10044 ;;
10045
10046 sysv4.3*)
10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10048 hardcode_shlibpath_var=no
10049 export_dynamic_flag_spec='-Bexport'
10050 ;;
10051
10052 sysv4*MP*)
10053 if test -d /usr/nec; then
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_shlibpath_var=no
10056 runpath_var=LD_RUN_PATH
10057 hardcode_runpath_var=yes
10058 ld_shlibs=yes
10059 fi
10060 ;;
10061
10062 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10063 no_undefined_flag='$wl-z,text'
10064 archive_cmds_need_lc=no
10065 hardcode_shlibpath_var=no
10066 runpath_var='LD_RUN_PATH'
10067
10068 if test yes = "$GCC"; then
10069 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071 else
10072 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10074 fi
10075 ;;
10076
10077 sysv5* | sco3.2v5* | sco5v6*)
10078 # Note: We CANNOT use -z defs as we might desire, because we do not
10079 # link with -lc, and that would cause any symbols used from libc to
10080 # always be unresolved, which means just about no library would
10081 # ever link correctly. If we're not using GNU ld we use -z text
10082 # though, which does catch some bad symbols but isn't as heavy-handed
10083 # as -z defs.
10084 no_undefined_flag='$wl-z,text'
10085 allow_undefined_flag='$wl-z,nodefs'
10086 archive_cmds_need_lc=no
10087 hardcode_shlibpath_var=no
10088 hardcode_libdir_flag_spec='$wl-R,$libdir'
10089 hardcode_libdir_separator=':'
10090 link_all_deplibs=yes
10091 export_dynamic_flag_spec='$wl-Bexport'
10092 runpath_var='LD_RUN_PATH'
10093
10094 if test yes = "$GCC"; then
10095 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 else
10098 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10099 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 fi
10101 ;;
10102
10103 uts4*)
10104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10105 hardcode_libdir_flag_spec='-L$libdir'
10106 hardcode_shlibpath_var=no
10107 ;;
10108
10109 *)
10110 ld_shlibs=no
10111 ;;
10112 esac
10113
10114 if test sni = "$host_vendor"; then
10115 case $host in
10116 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10117 export_dynamic_flag_spec='$wl-Blargedynsym'
10118 ;;
10119 esac
10120 fi
10121 fi
10122
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10124 $as_echo "$ld_shlibs" >&6; }
10125 test no = "$ld_shlibs" && can_build_shared=no
10126
10127 with_gnu_ld=$with_gnu_ld
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143 #
10144 # Do we need to explicitly link libc?
10145 #
10146 case "x$archive_cmds_need_lc" in
10147 x|xyes)
10148 # Assume -lc should be added
10149 archive_cmds_need_lc=yes
10150
10151 if test yes,yes = "$GCC,$enable_shared"; then
10152 case $archive_cmds in
10153 *'~'*)
10154 # FIXME: we may have to deal with multi-command sequences.
10155 ;;
10156 '$CC '*)
10157 # Test whether the compiler implicitly links with -lc since on some
10158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10159 # to ld, don't add -lc before -lgcc.
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10161 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10162 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 $RM conftest*
10166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10167
10168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10169 (eval $ac_compile) 2>&5
10170 ac_status=$?
10171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10172 test $ac_status = 0; } 2>conftest.err; then
10173 soname=conftest
10174 lib=conftest
10175 libobjs=conftest.$ac_objext
10176 deplibs=
10177 wl=$lt_prog_compiler_wl
10178 pic_flag=$lt_prog_compiler_pic
10179 compiler_flags=-v
10180 linker_flags=-v
10181 verstring=
10182 output_objdir=.
10183 libname=conftest
10184 lt_save_allow_undefined_flag=$allow_undefined_flag
10185 allow_undefined_flag=
10186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10187 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10188 ac_status=$?
10189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; }
10191 then
10192 lt_cv_archive_cmds_need_lc=no
10193 else
10194 lt_cv_archive_cmds_need_lc=yes
10195 fi
10196 allow_undefined_flag=$lt_save_allow_undefined_flag
10197 else
10198 cat conftest.err 1>&5
10199 fi
10200 $RM conftest*
10201
10202 fi
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10204 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10205 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10206 ;;
10207 esac
10208 fi
10209 ;;
10210 esac
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10364 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10365
10366 if test yes = "$GCC"; then
10367 case $host_os in
10368 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10369 *) lt_awk_arg='/^libraries:/' ;;
10370 esac
10371 case $host_os in
10372 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10373 *) lt_sed_strip_eq='s|=/|/|g' ;;
10374 esac
10375 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10376 case $lt_search_path_spec in
10377 *\;*)
10378 # if the path contains ";" then we assume it to be the separator
10379 # otherwise default to the standard path separator (i.e. ":") - it is
10380 # assumed that no part of a normal pathname contains ";" but that should
10381 # okay in the real world where ";" in dirpaths is itself problematic.
10382 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10383 ;;
10384 *)
10385 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10386 ;;
10387 esac
10388 # Ok, now we have the path, separated by spaces, we can step through it
10389 # and add multilib dir if necessary...
10390 lt_tmp_lt_search_path_spec=
10391 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10392 # ...but if some path component already ends with the multilib dir we assume
10393 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10394 case "$lt_multi_os_dir; $lt_search_path_spec " in
10395 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10396 lt_multi_os_dir=
10397 ;;
10398 esac
10399 for lt_sys_path in $lt_search_path_spec; do
10400 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10401 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10402 elif test -n "$lt_multi_os_dir"; then
10403 test -d "$lt_sys_path" && \
10404 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10405 fi
10406 done
10407 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10408 BEGIN {RS = " "; FS = "/|\n";} {
10409 lt_foo = "";
10410 lt_count = 0;
10411 for (lt_i = NF; lt_i > 0; lt_i--) {
10412 if ($lt_i != "" && $lt_i != ".") {
10413 if ($lt_i == "..") {
10414 lt_count++;
10415 } else {
10416 if (lt_count == 0) {
10417 lt_foo = "/" $lt_i lt_foo;
10418 } else {
10419 lt_count--;
10420 }
10421 }
10422 }
10423 }
10424 if (lt_foo != "") { lt_freq[lt_foo]++; }
10425 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10426 }'`
10427 # AWK program above erroneously prepends '/' to C:/dos/paths
10428 # for these hosts.
10429 case $host_os in
10430 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10431 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10432 esac
10433 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10434 else
10435 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10436 fi
10437 library_names_spec=
10438 libname_spec='lib$name'
10439 soname_spec=
10440 shrext_cmds=.so
10441 postinstall_cmds=
10442 postuninstall_cmds=
10443 finish_cmds=
10444 finish_eval=
10445 shlibpath_var=
10446 shlibpath_overrides_runpath=unknown
10447 version_type=none
10448 dynamic_linker="$host_os ld.so"
10449 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10450 need_lib_prefix=unknown
10451 hardcode_into_libs=no
10452
10453 # when you set need_version to no, make sure it does not cause -set_version
10454 # flags to be left without arguments
10455 need_version=unknown
10456
10457
10458
10459 case $host_os in
10460 aix3*)
10461 version_type=linux # correct to gnu/linux during the next big refactor
10462 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10463 shlibpath_var=LIBPATH
10464
10465 # AIX 3 has no versioning support, so we append a major version to the name.
10466 soname_spec='$libname$release$shared_ext$major'
10467 ;;
10468
10469 aix[4-9]*)
10470 version_type=linux # correct to gnu/linux during the next big refactor
10471 need_lib_prefix=no
10472 need_version=no
10473 hardcode_into_libs=yes
10474 if test ia64 = "$host_cpu"; then
10475 # AIX 5 supports IA64
10476 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10477 shlibpath_var=LD_LIBRARY_PATH
10478 else
10479 # With GCC up to 2.95.x, collect2 would create an import file
10480 # for dependence libraries. The import file would start with
10481 # the line '#! .'. This would cause the generated library to
10482 # depend on '.', always an invalid library. This was fixed in
10483 # development snapshots of GCC prior to 3.0.
10484 case $host_os in
10485 aix4 | aix4.[01] | aix4.[01].*)
10486 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10487 echo ' yes '
10488 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10489 :
10490 else
10491 can_build_shared=no
10492 fi
10493 ;;
10494 esac
10495 # Using Import Files as archive members, it is possible to support
10496 # filename-based versioning of shared library archives on AIX. While
10497 # this would work for both with and without runtime linking, it will
10498 # prevent static linking of such archives. So we do filename-based
10499 # shared library versioning with .so extension only, which is used
10500 # when both runtime linking and shared linking is enabled.
10501 # Unfortunately, runtime linking may impact performance, so we do
10502 # not want this to be the default eventually. Also, we use the
10503 # versioned .so libs for executables only if there is the -brtl
10504 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10505 # To allow for filename-based versioning support, we need to create
10506 # libNAME.so.V as an archive file, containing:
10507 # *) an Import File, referring to the versioned filename of the
10508 # archive as well as the shared archive member, telling the
10509 # bitwidth (32 or 64) of that shared object, and providing the
10510 # list of exported symbols of that shared object, eventually
10511 # decorated with the 'weak' keyword
10512 # *) the shared object with the F_LOADONLY flag set, to really avoid
10513 # it being seen by the linker.
10514 # At run time we better use the real file rather than another symlink,
10515 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10516
10517 case $with_aix_soname,$aix_use_runtimelinking in
10518 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10519 # soname into executable. Probably we can add versioning support to
10520 # collect2, so additional links can be useful in future.
10521 aix,yes) # traditional libtool
10522 dynamic_linker='AIX unversionable lib.so'
10523 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10524 # instead of lib<name>.a to let people know that these are not
10525 # typical AIX shared libraries.
10526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10527 ;;
10528 aix,no) # traditional AIX only
10529 dynamic_linker='AIX lib.a(lib.so.V)'
10530 # We preserve .a as extension for shared libraries through AIX4.2
10531 # and later when we are not doing run time linking.
10532 library_names_spec='$libname$release.a $libname.a'
10533 soname_spec='$libname$release$shared_ext$major'
10534 ;;
10535 svr4,*) # full svr4 only
10536 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10537 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10538 # We do not specify a path in Import Files, so LIBPATH fires.
10539 shlibpath_overrides_runpath=yes
10540 ;;
10541 *,yes) # both, prefer svr4
10542 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10543 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10544 # unpreferred sharedlib libNAME.a needs extra handling
10545 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"'
10546 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"'
10547 # We do not specify a path in Import Files, so LIBPATH fires.
10548 shlibpath_overrides_runpath=yes
10549 ;;
10550 *,no) # both, prefer aix
10551 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10552 library_names_spec='$libname$release.a $libname.a'
10553 soname_spec='$libname$release$shared_ext$major'
10554 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10555 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)'
10556 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"'
10557 ;;
10558 esac
10559 shlibpath_var=LIBPATH
10560 fi
10561 ;;
10562
10563 amigaos*)
10564 case $host_cpu in
10565 powerpc)
10566 # Since July 2007 AmigaOS4 officially supports .so libraries.
10567 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10568 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10569 ;;
10570 m68k)
10571 library_names_spec='$libname.ixlibrary $libname.a'
10572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10573 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'
10574 ;;
10575 esac
10576 ;;
10577
10578 beos*)
10579 library_names_spec='$libname$shared_ext'
10580 dynamic_linker="$host_os ld.so"
10581 shlibpath_var=LIBRARY_PATH
10582 ;;
10583
10584 bsdi[45]*)
10585 version_type=linux # correct to gnu/linux during the next big refactor
10586 need_version=no
10587 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10588 soname_spec='$libname$release$shared_ext$major'
10589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10593 # the default ld.so.conf also contains /usr/contrib/lib and
10594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10595 # libtool to hard-code these into programs
10596 ;;
10597
10598 cygwin* | mingw* | pw32* | cegcc*)
10599 version_type=windows
10600 shrext_cmds=.dll
10601 need_version=no
10602 need_lib_prefix=no
10603
10604 case $GCC,$cc_basename in
10605 yes,*)
10606 # gcc
10607 library_names_spec='$libname.dll.a'
10608 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10609 postinstall_cmds='base_file=`basename \$file`~
10610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10611 dldir=$destdir/`dirname \$dlpath`~
10612 test -d \$dldir || mkdir -p \$dldir~
10613 $install_prog $dir/$dlname \$dldir/$dlname~
10614 chmod a+x \$dldir/$dlname~
10615 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10616 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10617 fi'
10618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10619 dlpath=$dir/\$dldll~
10620 $RM \$dlpath'
10621 shlibpath_overrides_runpath=yes
10622
10623 case $host_os in
10624 cygwin*)
10625 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10626 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10627
10628 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10629 ;;
10630 mingw* | cegcc*)
10631 # MinGW DLLs use traditional 'lib' prefix
10632 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10633 ;;
10634 pw32*)
10635 # pw32 DLLs use 'pw' prefix rather than 'lib'
10636 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10637 ;;
10638 esac
10639 dynamic_linker='Win32 ld.exe'
10640 ;;
10641
10642 *,cl*)
10643 # Native MSVC
10644 libname_spec='$name'
10645 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10646 library_names_spec='$libname.dll.lib'
10647
10648 case $build_os in
10649 mingw*)
10650 sys_lib_search_path_spec=
10651 lt_save_ifs=$IFS
10652 IFS=';'
10653 for lt_path in $LIB
10654 do
10655 IFS=$lt_save_ifs
10656 # Let DOS variable expansion print the short 8.3 style file name.
10657 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10658 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10659 done
10660 IFS=$lt_save_ifs
10661 # Convert to MSYS style.
10662 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10663 ;;
10664 cygwin*)
10665 # Convert to unix form, then to dos form, then back to unix form
10666 # but this time dos style (no spaces!) so that the unix form looks
10667 # like /cygdrive/c/PROGRA~1:/cygdr...
10668 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10669 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10670 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10671 ;;
10672 *)
10673 sys_lib_search_path_spec=$LIB
10674 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10675 # It is most probably a Windows format PATH.
10676 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10677 else
10678 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10679 fi
10680 # FIXME: find the short name or the path components, as spaces are
10681 # common. (e.g. "Program Files" -> "PROGRA~1")
10682 ;;
10683 esac
10684
10685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10686 postinstall_cmds='base_file=`basename \$file`~
10687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10688 dldir=$destdir/`dirname \$dlpath`~
10689 test -d \$dldir || mkdir -p \$dldir~
10690 $install_prog $dir/$dlname \$dldir/$dlname'
10691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10692 dlpath=$dir/\$dldll~
10693 $RM \$dlpath'
10694 shlibpath_overrides_runpath=yes
10695 dynamic_linker='Win32 link.exe'
10696 ;;
10697
10698 *)
10699 # Assume MSVC wrapper
10700 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10701 dynamic_linker='Win32 ld.exe'
10702 ;;
10703 esac
10704 # FIXME: first we should search . and the directory the executable is in
10705 shlibpath_var=PATH
10706 ;;
10707
10708 darwin* | rhapsody*)
10709 dynamic_linker="$host_os dyld"
10710 version_type=darwin
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10714 soname_spec='$libname$release$major$shared_ext'
10715 shlibpath_overrides_runpath=yes
10716 shlibpath_var=DYLD_LIBRARY_PATH
10717 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10718
10719 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10720 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10721 ;;
10722
10723 dgux*)
10724 version_type=linux # correct to gnu/linux during the next big refactor
10725 need_lib_prefix=no
10726 need_version=no
10727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10728 soname_spec='$libname$release$shared_ext$major'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 ;;
10731
10732 freebsd* | dragonfly*)
10733 # DragonFly does not have aout. When/if they implement a new
10734 # versioning mechanism, adjust this.
10735 if test -x /usr/bin/objformat; then
10736 objformat=`/usr/bin/objformat`
10737 else
10738 case $host_os in
10739 freebsd[23].*) objformat=aout ;;
10740 *) objformat=elf ;;
10741 esac
10742 fi
10743 version_type=freebsd-$objformat
10744 case $version_type in
10745 freebsd-elf*)
10746 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10747 soname_spec='$libname$release$shared_ext$major'
10748 need_version=no
10749 need_lib_prefix=no
10750 ;;
10751 freebsd-*)
10752 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10753 need_version=yes
10754 ;;
10755 esac
10756 shlibpath_var=LD_LIBRARY_PATH
10757 case $host_os in
10758 freebsd2.*)
10759 shlibpath_overrides_runpath=yes
10760 ;;
10761 freebsd3.[01]* | freebsdelf3.[01]*)
10762 shlibpath_overrides_runpath=yes
10763 hardcode_into_libs=yes
10764 ;;
10765 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10766 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10767 shlibpath_overrides_runpath=no
10768 hardcode_into_libs=yes
10769 ;;
10770 *) # from 4.6 on, and DragonFly
10771 shlibpath_overrides_runpath=yes
10772 hardcode_into_libs=yes
10773 ;;
10774 esac
10775 ;;
10776
10777 haiku*)
10778 version_type=linux # correct to gnu/linux during the next big refactor
10779 need_lib_prefix=no
10780 need_version=no
10781 dynamic_linker="$host_os runtime_loader"
10782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10783 soname_spec='$libname$release$shared_ext$major'
10784 shlibpath_var=LIBRARY_PATH
10785 shlibpath_overrides_runpath=no
10786 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10787 hardcode_into_libs=yes
10788 ;;
10789
10790 hpux9* | hpux10* | hpux11*)
10791 # Give a soname corresponding to the major version so that dld.sl refuses to
10792 # link against other versions.
10793 version_type=sunos
10794 need_lib_prefix=no
10795 need_version=no
10796 case $host_cpu in
10797 ia64*)
10798 shrext_cmds='.so'
10799 hardcode_into_libs=yes
10800 dynamic_linker="$host_os dld.so"
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10804 soname_spec='$libname$release$shared_ext$major'
10805 if test 32 = "$HPUX_IA64_MODE"; then
10806 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10807 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10808 else
10809 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10810 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10811 fi
10812 ;;
10813 hppa*64*)
10814 shrext_cmds='.sl'
10815 hardcode_into_libs=yes
10816 dynamic_linker="$host_os dld.sl"
10817 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10818 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10819 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10820 soname_spec='$libname$release$shared_ext$major'
10821 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10822 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10823 ;;
10824 *)
10825 shrext_cmds='.sl'
10826 dynamic_linker="$host_os dld.sl"
10827 shlibpath_var=SHLIB_PATH
10828 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10830 soname_spec='$libname$release$shared_ext$major'
10831 ;;
10832 esac
10833 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10834 postinstall_cmds='chmod 555 $lib'
10835 # or fails outright, so override atomically:
10836 install_override_mode=555
10837 ;;
10838
10839 interix[3-9]*)
10840 version_type=linux # correct to gnu/linux during the next big refactor
10841 need_lib_prefix=no
10842 need_version=no
10843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10844 soname_spec='$libname$release$shared_ext$major'
10845 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10846 shlibpath_var=LD_LIBRARY_PATH
10847 shlibpath_overrides_runpath=no
10848 hardcode_into_libs=yes
10849 ;;
10850
10851 irix5* | irix6* | nonstopux*)
10852 case $host_os in
10853 nonstopux*) version_type=nonstopux ;;
10854 *)
10855 if test yes = "$lt_cv_prog_gnu_ld"; then
10856 version_type=linux # correct to gnu/linux during the next big refactor
10857 else
10858 version_type=irix
10859 fi ;;
10860 esac
10861 need_lib_prefix=no
10862 need_version=no
10863 soname_spec='$libname$release$shared_ext$major'
10864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10865 case $host_os in
10866 irix5* | nonstopux*)
10867 libsuff= shlibsuff=
10868 ;;
10869 *)
10870 case $LD in # libtool.m4 will add one of these switches to LD
10871 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10872 libsuff= shlibsuff= libmagic=32-bit;;
10873 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10874 libsuff=32 shlibsuff=N32 libmagic=N32;;
10875 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10876 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10877 *) libsuff= shlibsuff= libmagic=never-match;;
10878 esac
10879 ;;
10880 esac
10881 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10882 shlibpath_overrides_runpath=no
10883 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10884 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10885 hardcode_into_libs=yes
10886 ;;
10887
10888 # No shared lib support for Linux oldld, aout, or coff.
10889 linux*oldld* | linux*aout* | linux*coff*)
10890 dynamic_linker=no
10891 ;;
10892
10893 linux*android*)
10894 version_type=none # Android doesn't support versioned libraries.
10895 need_lib_prefix=no
10896 need_version=no
10897 library_names_spec='$libname$release$shared_ext'
10898 soname_spec='$libname$release$shared_ext'
10899 finish_cmds=
10900 shlibpath_var=LD_LIBRARY_PATH
10901 shlibpath_overrides_runpath=yes
10902
10903 # This implies no fast_install, which is unacceptable.
10904 # Some rework will be needed to allow for fast_install
10905 # before this can be enabled.
10906 hardcode_into_libs=yes
10907
10908 dynamic_linker='Android linker'
10909 # Don't embed -rpath directories since the linker doesn't support them.
10910 hardcode_libdir_flag_spec='-L$libdir'
10911 ;;
10912
10913 # This must be glibc/ELF.
10914 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10915 version_type=linux # correct to gnu/linux during the next big refactor
10916 need_lib_prefix=no
10917 need_version=no
10918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10919 soname_spec='$libname$release$shared_ext$major'
10920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10921 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=no
10923
10924 # Some binutils ld are patched to set DT_RUNPATH
10925 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10926 $as_echo_n "(cached) " >&6
10927 else
10928 lt_cv_shlibpath_overrides_runpath=no
10929 save_LDFLAGS=$LDFLAGS
10930 save_libdir=$libdir
10931 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10932 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10934 /* end confdefs.h. */
10935
10936 int
10937 main ()
10938 {
10939
10940 ;
10941 return 0;
10942 }
10943 _ACEOF
10944 if ac_fn_c_try_link "$LINENO"; then :
10945 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10946 lt_cv_shlibpath_overrides_runpath=yes
10947 fi
10948 fi
10949 rm -f core conftest.err conftest.$ac_objext \
10950 conftest$ac_exeext conftest.$ac_ext
10951 LDFLAGS=$save_LDFLAGS
10952 libdir=$save_libdir
10953
10954 fi
10955
10956 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10957
10958 # This implies no fast_install, which is unacceptable.
10959 # Some rework will be needed to allow for fast_install
10960 # before this can be enabled.
10961 hardcode_into_libs=yes
10962
10963 # Ideally, we could use ldconfig to report *all* directores which are
10964 # searched for libraries, however this is still not possible. Aside from not
10965 # being certain /sbin/ldconfig is available, command
10966 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10967 # even though it is searched at run-time. Try to do the best guess by
10968 # appending ld.so.conf contents (and includes) to the search path.
10969 if test -f /etc/ld.so.conf; then
10970 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' ' '`
10971 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10972 fi
10973
10974 # We used to test for /lib/ld.so.1 and disable shared libraries on
10975 # powerpc, because MkLinux only supported shared libraries with the
10976 # GNU dynamic linker. Since this was broken with cross compilers,
10977 # most powerpc-linux boxes support dynamic linking these days and
10978 # people can always --disable-shared, the test was removed, and we
10979 # assume the GNU/Linux dynamic linker is in use.
10980 dynamic_linker='GNU/Linux ld.so'
10981 ;;
10982
10983 netbsdelf*-gnu)
10984 version_type=linux
10985 need_lib_prefix=no
10986 need_version=no
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=no
10991 hardcode_into_libs=yes
10992 dynamic_linker='NetBSD ld.elf_so'
10993 ;;
10994
10995 netbsd*)
10996 version_type=sunos
10997 need_lib_prefix=no
10998 need_version=no
10999 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11000 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11002 dynamic_linker='NetBSD (a.out) ld.so'
11003 else
11004 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11005 soname_spec='$libname$release$shared_ext$major'
11006 dynamic_linker='NetBSD ld.elf_so'
11007 fi
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes
11010 hardcode_into_libs=yes
11011 ;;
11012
11013 newsos6)
11014 version_type=linux # correct to gnu/linux during the next big refactor
11015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11016 shlibpath_var=LD_LIBRARY_PATH
11017 shlibpath_overrides_runpath=yes
11018 ;;
11019
11020 *nto* | *qnx*)
11021 version_type=qnx
11022 need_lib_prefix=no
11023 need_version=no
11024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11025 soname_spec='$libname$release$shared_ext$major'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 shlibpath_overrides_runpath=no
11028 hardcode_into_libs=yes
11029 dynamic_linker='ldqnx.so'
11030 ;;
11031
11032 openbsd* | bitrig*)
11033 version_type=sunos
11034 sys_lib_dlsearch_path_spec=/usr/lib
11035 need_lib_prefix=no
11036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11037 need_version=no
11038 else
11039 need_version=yes
11040 fi
11041 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 ;;
11046
11047 os2*)
11048 libname_spec='$name'
11049 version_type=windows
11050 shrext_cmds=.dll
11051 need_version=no
11052 need_lib_prefix=no
11053 # OS/2 can only load a DLL with a base name of 8 characters or less.
11054 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11055 v=$($ECHO $release$versuffix | tr -d .-);
11056 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11057 $ECHO $n$v`$shared_ext'
11058 library_names_spec='${libname}_dll.$libext'
11059 dynamic_linker='OS/2 ld.exe'
11060 shlibpath_var=BEGINLIBPATH
11061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11063 postinstall_cmds='base_file=`basename \$file`~
11064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11065 dldir=$destdir/`dirname \$dlpath`~
11066 test -d \$dldir || mkdir -p \$dldir~
11067 $install_prog $dir/$dlname \$dldir/$dlname~
11068 chmod a+x \$dldir/$dlname~
11069 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11070 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11071 fi'
11072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11073 dlpath=$dir/\$dldll~
11074 $RM \$dlpath'
11075 ;;
11076
11077 osf3* | osf4* | osf5*)
11078 version_type=osf
11079 need_lib_prefix=no
11080 need_version=no
11081 soname_spec='$libname$release$shared_ext$major'
11082 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11085 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11086 ;;
11087
11088 rdos*)
11089 dynamic_linker=no
11090 ;;
11091
11092 solaris*)
11093 version_type=linux # correct to gnu/linux during the next big refactor
11094 need_lib_prefix=no
11095 need_version=no
11096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097 soname_spec='$libname$release$shared_ext$major'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11100 hardcode_into_libs=yes
11101 # ldd complains unless libraries are executable
11102 postinstall_cmds='chmod +x $lib'
11103 ;;
11104
11105 sunos4*)
11106 version_type=sunos
11107 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11109 shlibpath_var=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath=yes
11111 if test yes = "$with_gnu_ld"; then
11112 need_lib_prefix=no
11113 fi
11114 need_version=yes
11115 ;;
11116
11117 sysv4 | sysv4.3*)
11118 version_type=linux # correct to gnu/linux during the next big refactor
11119 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11120 soname_spec='$libname$release$shared_ext$major'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 case $host_vendor in
11123 sni)
11124 shlibpath_overrides_runpath=no
11125 need_lib_prefix=no
11126 runpath_var=LD_RUN_PATH
11127 ;;
11128 siemens)
11129 need_lib_prefix=no
11130 ;;
11131 motorola)
11132 need_lib_prefix=no
11133 need_version=no
11134 shlibpath_overrides_runpath=no
11135 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11136 ;;
11137 esac
11138 ;;
11139
11140 sysv4*MP*)
11141 if test -d /usr/nec; then
11142 version_type=linux # correct to gnu/linux during the next big refactor
11143 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11144 soname_spec='$libname$shared_ext.$major'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 fi
11147 ;;
11148
11149 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11150 version_type=sco
11151 need_lib_prefix=no
11152 need_version=no
11153 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11154 soname_spec='$libname$release$shared_ext$major'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath=yes
11157 hardcode_into_libs=yes
11158 if test yes = "$with_gnu_ld"; then
11159 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11160 else
11161 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11162 case $host_os in
11163 sco3.2v5*)
11164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11165 ;;
11166 esac
11167 fi
11168 sys_lib_dlsearch_path_spec='/usr/lib'
11169 ;;
11170
11171 tpf*)
11172 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11173 version_type=linux # correct to gnu/linux during the next big refactor
11174 need_lib_prefix=no
11175 need_version=no
11176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=no
11179 hardcode_into_libs=yes
11180 ;;
11181
11182 uts4*)
11183 version_type=linux # correct to gnu/linux during the next big refactor
11184 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11185 soname_spec='$libname$release$shared_ext$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11187 ;;
11188
11189 *)
11190 dynamic_linker=no
11191 ;;
11192 esac
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11194 $as_echo "$dynamic_linker" >&6; }
11195 test no = "$dynamic_linker" && can_build_shared=no
11196
11197 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11198 if test yes = "$GCC"; then
11199 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11200 fi
11201
11202 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11203 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11204 fi
11205
11206 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11207 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11208 fi
11209
11210 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11211 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11212
11213 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11214 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11215
11216 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11217 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11316 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11317 hardcode_action=
11318 if test -n "$hardcode_libdir_flag_spec" ||
11319 test -n "$runpath_var" ||
11320 test yes = "$hardcode_automatic"; then
11321
11322 # We can hardcode non-existent directories.
11323 if test no != "$hardcode_direct" &&
11324 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11325 # have to relink, otherwise we might link with an installed library
11326 # when we should be linking with a yet-to-be-installed one
11327 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11328 test no != "$hardcode_minus_L"; then
11329 # Linking always hardcodes the temporary library directory.
11330 hardcode_action=relink
11331 else
11332 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11333 hardcode_action=immediate
11334 fi
11335 else
11336 # We cannot hardcode anything, or else we can only hardcode existing
11337 # directories.
11338 hardcode_action=unsupported
11339 fi
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11341 $as_echo "$hardcode_action" >&6; }
11342
11343 if test relink = "$hardcode_action" ||
11344 test yes = "$inherit_rpath"; then
11345 # Fast installation is not supported
11346 enable_fast_install=no
11347 elif test yes = "$shlibpath_overrides_runpath" ||
11348 test no = "$enable_shared"; then
11349 # Fast installation is not necessary
11350 enable_fast_install=needless
11351 fi
11352
11353
11354
11355
11356
11357
11358 if test yes != "$enable_dlopen"; then
11359 enable_dlopen=unknown
11360 enable_dlopen_self=unknown
11361 enable_dlopen_self_static=unknown
11362 else
11363 lt_cv_dlopen=no
11364 lt_cv_dlopen_libs=
11365
11366 case $host_os in
11367 beos*)
11368 lt_cv_dlopen=load_add_on
11369 lt_cv_dlopen_libs=
11370 lt_cv_dlopen_self=yes
11371 ;;
11372
11373 mingw* | pw32* | cegcc*)
11374 lt_cv_dlopen=LoadLibrary
11375 lt_cv_dlopen_libs=
11376 ;;
11377
11378 cygwin*)
11379 lt_cv_dlopen=dlopen
11380 lt_cv_dlopen_libs=
11381 ;;
11382
11383 darwin*)
11384 # if libdl is installed we need to link against it
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11386 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11387 if ${ac_cv_lib_dl_dlopen+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 ac_check_lib_save_LIBS=$LIBS
11391 LIBS="-ldl $LIBS"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 char dlopen ();
11402 int
11403 main ()
11404 {
11405 return dlopen ();
11406 ;
11407 return 0;
11408 }
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_lib_dl_dlopen=yes
11412 else
11413 ac_cv_lib_dl_dlopen=no
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LIBS=$ac_check_lib_save_LIBS
11418 fi
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11420 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11421 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11422 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11423 else
11424
11425 lt_cv_dlopen=dyld
11426 lt_cv_dlopen_libs=
11427 lt_cv_dlopen_self=yes
11428
11429 fi
11430
11431 ;;
11432
11433 tpf*)
11434 # Don't try to run any link tests for TPF. We know it's impossible
11435 # because TPF is a cross-compiler, and we know how we open DSOs.
11436 lt_cv_dlopen=dlopen
11437 lt_cv_dlopen_libs=
11438 lt_cv_dlopen_self=no
11439 ;;
11440
11441 *)
11442 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11443 if test "x$ac_cv_func_shl_load" = xyes; then :
11444 lt_cv_dlopen=shl_load
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11447 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11448 if ${ac_cv_lib_dld_shl_load+:} false; then :
11449 $as_echo_n "(cached) " >&6
11450 else
11451 ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-ldld $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455
11456 /* Override any GCC internal prototype to avoid an error.
11457 Use char because int might match the return type of a GCC
11458 builtin and then its argument prototype would still apply. */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char shl_load ();
11463 int
11464 main ()
11465 {
11466 return shl_load ();
11467 ;
11468 return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472 ac_cv_lib_dld_shl_load=yes
11473 else
11474 ac_cv_lib_dld_shl_load=no
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477 conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_lib_save_LIBS
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11481 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11482 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11483 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11484 else
11485 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11486 if test "x$ac_cv_func_dlopen" = xyes; then :
11487 lt_cv_dlopen=dlopen
11488 else
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11490 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11491 if ${ac_cv_lib_dl_dlopen+:} false; then :
11492 $as_echo_n "(cached) " >&6
11493 else
11494 ac_check_lib_save_LIBS=$LIBS
11495 LIBS="-ldl $LIBS"
11496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11498
11499 /* Override any GCC internal prototype to avoid an error.
11500 Use char because int might match the return type of a GCC
11501 builtin and then its argument prototype would still apply. */
11502 #ifdef __cplusplus
11503 extern "C"
11504 #endif
11505 char dlopen ();
11506 int
11507 main ()
11508 {
11509 return dlopen ();
11510 ;
11511 return 0;
11512 }
11513 _ACEOF
11514 if ac_fn_c_try_link "$LINENO"; then :
11515 ac_cv_lib_dl_dlopen=yes
11516 else
11517 ac_cv_lib_dl_dlopen=no
11518 fi
11519 rm -f core conftest.err conftest.$ac_objext \
11520 conftest$ac_exeext conftest.$ac_ext
11521 LIBS=$ac_check_lib_save_LIBS
11522 fi
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11524 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11525 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11526 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11527 else
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11529 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11530 if ${ac_cv_lib_svld_dlopen+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 ac_check_lib_save_LIBS=$LIBS
11534 LIBS="-lsvld $LIBS"
11535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11536 /* end confdefs.h. */
11537
11538 /* Override any GCC internal prototype to avoid an error.
11539 Use char because int might match the return type of a GCC
11540 builtin and then its argument prototype would still apply. */
11541 #ifdef __cplusplus
11542 extern "C"
11543 #endif
11544 char dlopen ();
11545 int
11546 main ()
11547 {
11548 return dlopen ();
11549 ;
11550 return 0;
11551 }
11552 _ACEOF
11553 if ac_fn_c_try_link "$LINENO"; then :
11554 ac_cv_lib_svld_dlopen=yes
11555 else
11556 ac_cv_lib_svld_dlopen=no
11557 fi
11558 rm -f core conftest.err conftest.$ac_objext \
11559 conftest$ac_exeext conftest.$ac_ext
11560 LIBS=$ac_check_lib_save_LIBS
11561 fi
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11563 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11564 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11565 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11566 else
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11568 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11569 if ${ac_cv_lib_dld_dld_link+:} false; then :
11570 $as_echo_n "(cached) " >&6
11571 else
11572 ac_check_lib_save_LIBS=$LIBS
11573 LIBS="-ldld $LIBS"
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char dld_link ();
11584 int
11585 main ()
11586 {
11587 return dld_link ();
11588 ;
11589 return 0;
11590 }
11591 _ACEOF
11592 if ac_fn_c_try_link "$LINENO"; then :
11593 ac_cv_lib_dld_dld_link=yes
11594 else
11595 ac_cv_lib_dld_dld_link=no
11596 fi
11597 rm -f core conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11600 fi
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11602 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11603 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11604 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11605 fi
11606
11607
11608 fi
11609
11610
11611 fi
11612
11613
11614 fi
11615
11616
11617 fi
11618
11619
11620 fi
11621
11622 ;;
11623 esac
11624
11625 if test no = "$lt_cv_dlopen"; then
11626 enable_dlopen=no
11627 else
11628 enable_dlopen=yes
11629 fi
11630
11631 case $lt_cv_dlopen in
11632 dlopen)
11633 save_CPPFLAGS=$CPPFLAGS
11634 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11635
11636 save_LDFLAGS=$LDFLAGS
11637 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11638
11639 save_LIBS=$LIBS
11640 LIBS="$lt_cv_dlopen_libs $LIBS"
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11643 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11644 if ${lt_cv_dlopen_self+:} false; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647 if test yes = "$cross_compiling"; then :
11648 lt_cv_dlopen_self=cross
11649 else
11650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11651 lt_status=$lt_dlunknown
11652 cat > conftest.$ac_ext <<_LT_EOF
11653 #line $LINENO "configure"
11654 #include "confdefs.h"
11655
11656 #if HAVE_DLFCN_H
11657 #include <dlfcn.h>
11658 #endif
11659
11660 #include <stdio.h>
11661
11662 #ifdef RTLD_GLOBAL
11663 # define LT_DLGLOBAL RTLD_GLOBAL
11664 #else
11665 # ifdef DL_GLOBAL
11666 # define LT_DLGLOBAL DL_GLOBAL
11667 # else
11668 # define LT_DLGLOBAL 0
11669 # endif
11670 #endif
11671
11672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11673 find out it does not work in some platform. */
11674 #ifndef LT_DLLAZY_OR_NOW
11675 # ifdef RTLD_LAZY
11676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11677 # else
11678 # ifdef DL_LAZY
11679 # define LT_DLLAZY_OR_NOW DL_LAZY
11680 # else
11681 # ifdef RTLD_NOW
11682 # define LT_DLLAZY_OR_NOW RTLD_NOW
11683 # else
11684 # ifdef DL_NOW
11685 # define LT_DLLAZY_OR_NOW DL_NOW
11686 # else
11687 # define LT_DLLAZY_OR_NOW 0
11688 # endif
11689 # endif
11690 # endif
11691 # endif
11692 #endif
11693
11694 /* When -fvisibility=hidden is used, assume the code has been annotated
11695 correspondingly for the symbols needed. */
11696 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11697 int fnord () __attribute__((visibility("default")));
11698 #endif
11699
11700 int fnord () { return 42; }
11701 int main ()
11702 {
11703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11704 int status = $lt_dlunknown;
11705
11706 if (self)
11707 {
11708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11709 else
11710 {
11711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11712 else puts (dlerror ());
11713 }
11714 /* dlclose (self); */
11715 }
11716 else
11717 puts (dlerror ());
11718
11719 return status;
11720 }
11721 _LT_EOF
11722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11723 (eval $ac_link) 2>&5
11724 ac_status=$?
11725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11726 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11727 (./conftest; exit; ) >&5 2>/dev/null
11728 lt_status=$?
11729 case x$lt_status in
11730 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11731 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11732 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11733 esac
11734 else :
11735 # compilation failed
11736 lt_cv_dlopen_self=no
11737 fi
11738 fi
11739 rm -fr conftest*
11740
11741
11742 fi
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11744 $as_echo "$lt_cv_dlopen_self" >&6; }
11745
11746 if test yes = "$lt_cv_dlopen_self"; then
11747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11749 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11750 if ${lt_cv_dlopen_self_static+:} false; then :
11751 $as_echo_n "(cached) " >&6
11752 else
11753 if test yes = "$cross_compiling"; then :
11754 lt_cv_dlopen_self_static=cross
11755 else
11756 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11757 lt_status=$lt_dlunknown
11758 cat > conftest.$ac_ext <<_LT_EOF
11759 #line $LINENO "configure"
11760 #include "confdefs.h"
11761
11762 #if HAVE_DLFCN_H
11763 #include <dlfcn.h>
11764 #endif
11765
11766 #include <stdio.h>
11767
11768 #ifdef RTLD_GLOBAL
11769 # define LT_DLGLOBAL RTLD_GLOBAL
11770 #else
11771 # ifdef DL_GLOBAL
11772 # define LT_DLGLOBAL DL_GLOBAL
11773 # else
11774 # define LT_DLGLOBAL 0
11775 # endif
11776 #endif
11777
11778 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11779 find out it does not work in some platform. */
11780 #ifndef LT_DLLAZY_OR_NOW
11781 # ifdef RTLD_LAZY
11782 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11783 # else
11784 # ifdef DL_LAZY
11785 # define LT_DLLAZY_OR_NOW DL_LAZY
11786 # else
11787 # ifdef RTLD_NOW
11788 # define LT_DLLAZY_OR_NOW RTLD_NOW
11789 # else
11790 # ifdef DL_NOW
11791 # define LT_DLLAZY_OR_NOW DL_NOW
11792 # else
11793 # define LT_DLLAZY_OR_NOW 0
11794 # endif
11795 # endif
11796 # endif
11797 # endif
11798 #endif
11799
11800 /* When -fvisibility=hidden is used, assume the code has been annotated
11801 correspondingly for the symbols needed. */
11802 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11803 int fnord () __attribute__((visibility("default")));
11804 #endif
11805
11806 int fnord () { return 42; }
11807 int main ()
11808 {
11809 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11810 int status = $lt_dlunknown;
11811
11812 if (self)
11813 {
11814 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11815 else
11816 {
11817 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11818 else puts (dlerror ());
11819 }
11820 /* dlclose (self); */
11821 }
11822 else
11823 puts (dlerror ());
11824
11825 return status;
11826 }
11827 _LT_EOF
11828 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11829 (eval $ac_link) 2>&5
11830 ac_status=$?
11831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11832 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11833 (./conftest; exit; ) >&5 2>/dev/null
11834 lt_status=$?
11835 case x$lt_status in
11836 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11837 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11838 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11839 esac
11840 else :
11841 # compilation failed
11842 lt_cv_dlopen_self_static=no
11843 fi
11844 fi
11845 rm -fr conftest*
11846
11847
11848 fi
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11850 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11851 fi
11852
11853 CPPFLAGS=$save_CPPFLAGS
11854 LDFLAGS=$save_LDFLAGS
11855 LIBS=$save_LIBS
11856 ;;
11857 esac
11858
11859 case $lt_cv_dlopen_self in
11860 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11861 *) enable_dlopen_self=unknown ;;
11862 esac
11863
11864 case $lt_cv_dlopen_self_static in
11865 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11866 *) enable_dlopen_self_static=unknown ;;
11867 esac
11868 fi
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886 striplib=
11887 old_striplib=
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11889 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11890 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11891 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11892 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11894 $as_echo "yes" >&6; }
11895 else
11896 # FIXME - insert some real tests, host_os isn't really good enough
11897 case $host_os in
11898 darwin*)
11899 if test -n "$STRIP"; then
11900 striplib="$STRIP -x"
11901 old_striplib="$STRIP -S"
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11903 $as_echo "yes" >&6; }
11904 else
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11906 $as_echo "no" >&6; }
11907 fi
11908 ;;
11909 *)
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11911 $as_echo "no" >&6; }
11912 ;;
11913 esac
11914 fi
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927 # Report what library types will actually be built
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11929 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11931 $as_echo "$can_build_shared" >&6; }
11932
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11934 $as_echo_n "checking whether to build shared libraries... " >&6; }
11935 test no = "$can_build_shared" && enable_shared=no
11936
11937 # On AIX, shared libraries and static libraries use the same namespace, and
11938 # are all built from PIC.
11939 case $host_os in
11940 aix3*)
11941 test yes = "$enable_shared" && enable_static=no
11942 if test -n "$RANLIB"; then
11943 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11944 postinstall_cmds='$RANLIB $lib'
11945 fi
11946 ;;
11947
11948 aix[4-9]*)
11949 if test ia64 != "$host_cpu"; then
11950 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11951 yes,aix,yes) ;; # shared object as lib.so file only
11952 yes,svr4,*) ;; # shared object as lib.so archive member only
11953 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11954 esac
11955 fi
11956 ;;
11957 esac
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11959 $as_echo "$enable_shared" >&6; }
11960
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11962 $as_echo_n "checking whether to build static libraries... " >&6; }
11963 # Make sure either enable_shared or enable_static is yes.
11964 test yes = "$enable_shared" || enable_static=yes
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11966 $as_echo "$enable_static" >&6; }
11967
11968
11969
11970
11971 fi
11972 ac_ext=c
11973 ac_cpp='$CPP $CPPFLAGS'
11974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11977
11978 CC=$lt_save_CC
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994 ac_config_commands="$ac_config_commands libtool"
11995
11996
11997
11998
11999 # Only expand once:
12000
12001
12002
12003 ac_ext=c
12004 ac_cpp='$CPP $CPPFLAGS'
12005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12008
12009 saved_CFLAGS="$CFLAGS"
12010 CFLAGS="$saved_CFLAGS -fvisibility=hidden"
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler accepts -fvisibility=hidden" >&5
12012 $as_echo_n "checking whether compiler accepts -fvisibility=hidden... " >&6; }
12013 if ${ac_cv_fvisibility_hidden+:} false; then :
12014 $as_echo_n "(cached) " >&6
12015 else
12016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12017 /* end confdefs.h. */
12018
12019 _ACEOF
12020 if ac_fn_c_try_compile "$LINENO"; then :
12021 ac_cv_fvisibility_hidden=yes
12022 else
12023 ac_cv_fvisibility_hidden=no
12024
12025 fi
12026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12027 fi
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fvisibility_hidden" >&5
12029 $as_echo "$ac_cv_fvisibility_hidden" >&6; }
12030 if test "$ac_cv_fvisibility_hidden" = "yes"; then
12031
12032 $as_echo "#define HAVE_VISIBILITY_HIDDEN 1" >>confdefs.h
12033
12034 GCC_FVISIBILITY_HIDDEN=-fvisibility=hidden
12035
12036 fi
12037 CFLAGS="$saved_CFLAGS"
12038 ac_ext=c
12039 ac_cpp='$CPP $CPPFLAGS'
12040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12043
12044
12045 case "$host" in
12046 *-*-linux* | *-*-uclinux*) ;;
12047 *) as_fn_error $? "Linux only, dude!" "$LINENO" 5;;
12048 esac
12049
12050 regular_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_REENTRANT"
12051 regular_CFLAGS="-Wall -Waggregate-return -Wmissing-declarations \
12052 -Wmissing-prototypes -Wshadow -Wstrict-prototypes \
12053 -Wformat=2 -pipe"
12054
12055
12056 ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile include/libmnl/Makefile include/linux/Makefile include/linux/netfilter/Makefile examples/Makefile examples/genl/Makefile examples/kobject/Makefile examples/netfilter/Makefile examples/rtnl/Makefile libmnl.pc doxygen.cfg doxygen/Makefile"
12057
12058
12059
12060 # Check whether --with-doxygen was given.
12061 if test "${with_doxygen+set}" = set; then :
12062 withval=$with_doxygen; with_doxygen="$withval"
12063 else
12064 with_doxygen=yes
12065 fi
12066
12067
12068 if test "x$with_doxygen" != xno; then :
12069
12070 for ac_prog in doxygen
12071 do
12072 # Extract the first word of "$ac_prog", so it can be a program name with args.
12073 set dummy $ac_prog; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if ${ac_cv_prog_DOXYGEN+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 if test -n "$DOXYGEN"; then
12080 ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
12081 else
12082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12083 for as_dir in $PATH
12084 do
12085 IFS=$as_save_IFS
12086 test -z "$as_dir" && as_dir=.
12087 for ac_exec_ext in '' $ac_executable_extensions; do
12088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12089 ac_cv_prog_DOXYGEN="$ac_prog"
12090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12091 break 2
12092 fi
12093 done
12094 done
12095 IFS=$as_save_IFS
12096
12097 fi
12098 fi
12099 DOXYGEN=$ac_cv_prog_DOXYGEN
12100 if test -n "$DOXYGEN"; then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12102 $as_echo "$DOXYGEN" >&6; }
12103 else
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105 $as_echo "no" >&6; }
12106 fi
12107
12108
12109 test -n "$DOXYGEN" && break
12110 done
12111
12112 for ac_prog in dot
12113 do
12114 # Extract the first word of "$ac_prog", so it can be a program name with args.
12115 set dummy $ac_prog; ac_word=$2
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117 $as_echo_n "checking for $ac_word... " >&6; }
12118 if ${ac_cv_prog_DOT+:} false; then :
12119 $as_echo_n "(cached) " >&6
12120 else
12121 if test -n "$DOT"; then
12122 ac_cv_prog_DOT="$DOT" # Let the user override the test.
12123 else
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125 for as_dir in $PATH
12126 do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12131 ac_cv_prog_DOT="$ac_prog"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12134 fi
12135 done
12136 done
12137 IFS=$as_save_IFS
12138
12139 fi
12140 fi
12141 DOT=$ac_cv_prog_DOT
12142 if test -n "$DOT"; then
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
12144 $as_echo "$DOT" >&6; }
12145 else
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12147 $as_echo "no" >&6; }
12148 fi
12149
12150
12151 test -n "$DOT" && break
12152 done
12153 test -n "$DOT" || DOT=""""
12154
12155 if test "x$DOT" != "x"; then :
12156 HAVE_DOT=YES
12157
12158 else
12159 HAVE_DOT=NO
12160
12161 fi
12162
12163 fi
12164
12165 if test -n "$DOXYGEN"; then
12166 HAVE_DOXYGEN_TRUE=
12167 HAVE_DOXYGEN_FALSE='#'
12168 else
12169 HAVE_DOXYGEN_TRUE='#'
12170 HAVE_DOXYGEN_FALSE=
12171 fi
12172
12173 if test "x$DOXYGEN" = x; then :
12174
12175 if test "x$with_doxygen" != xno; then :
12176
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Doxygen not found - continuing without Doxygen support" >&5
12178 $as_echo "$as_me: WARNING: Doxygen not found - continuing without Doxygen support" >&2;}
12179 with_doxygen=no
12180
12181 fi
12182
12183 fi
12184 cat >confcache <<\_ACEOF
12185 # This file is a shell script that caches the results of configure
12186 # tests run on this system so they can be shared between configure
12187 # scripts and configure runs, see configure's option --config-cache.
12188 # It is not useful on other systems. If it contains results you don't
12189 # want to keep, you may remove or edit it.
12190 #
12191 # config.status only pays attention to the cache file if you give it
12192 # the --recheck option to rerun configure.
12193 #
12194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12196 # following values.
12197
12198 _ACEOF
12199
12200 # The following way of writing the cache mishandles newlines in values,
12201 # but we know of no workaround that is simple, portable, and efficient.
12202 # So, we kill variables containing newlines.
12203 # Ultrix sh set writes to stderr and can't be redirected directly,
12204 # and sets the high bit in the cache file unless we assign to the vars.
12205 (
12206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12207 eval ac_val=\$$ac_var
12208 case $ac_val in #(
12209 *${as_nl}*)
12210 case $ac_var in #(
12211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12213 esac
12214 case $ac_var in #(
12215 _ | IFS | as_nl) ;; #(
12216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12217 *) { eval $ac_var=; unset $ac_var;} ;;
12218 esac ;;
12219 esac
12220 done
12221
12222 (set) 2>&1 |
12223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12224 *${as_nl}ac_space=\ *)
12225 # `set' does not quote correctly, so add quotes: double-quote
12226 # substitution turns \\\\ into \\, and sed turns \\ into \.
12227 sed -n \
12228 "s/'/'\\\\''/g;
12229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12230 ;; #(
12231 *)
12232 # `set' quotes correctly as required by POSIX, so do not add quotes.
12233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12234 ;;
12235 esac |
12236 sort
12237 ) |
12238 sed '
12239 /^ac_cv_env_/b end
12240 t clear
12241 :clear
12242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12243 t end
12244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12245 :end' >>confcache
12246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12247 if test -w "$cache_file"; then
12248 if test "x$cache_file" != "x/dev/null"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12250 $as_echo "$as_me: updating cache $cache_file" >&6;}
12251 if test ! -f "$cache_file" || test -h "$cache_file"; then
12252 cat confcache >"$cache_file"
12253 else
12254 case $cache_file in #(
12255 */* | ?:*)
12256 mv -f confcache "$cache_file"$$ &&
12257 mv -f "$cache_file"$$ "$cache_file" ;; #(
12258 *)
12259 mv -f confcache "$cache_file" ;;
12260 esac
12261 fi
12262 fi
12263 else
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12265 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12266 fi
12267 fi
12268 rm -f confcache
12269
12270 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12271 # Let make expand exec_prefix.
12272 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12273
12274 DEFS=-DHAVE_CONFIG_H
12275
12276 ac_libobjs=
12277 ac_ltlibobjs=
12278 U=
12279 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12280 # 1. Remove the extension, and $U if already installed.
12281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12282 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12284 # will be set to the directory where LIBOBJS objects are built.
12285 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12286 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12287 done
12288 LIBOBJS=$ac_libobjs
12289
12290 LTLIBOBJS=$ac_ltlibobjs
12291
12292
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12294 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12295 if test -n "$am_sleep_pid"; then
12296 # Hide warnings about reused PIDs.
12297 wait $am_sleep_pid 2>/dev/null
12298 fi
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12300 $as_echo "done" >&6; }
12301 if test -n "$EXEEXT"; then
12302 am__EXEEXT_TRUE=
12303 am__EXEEXT_FALSE='#'
12304 else
12305 am__EXEEXT_TRUE='#'
12306 am__EXEEXT_FALSE=
12307 fi
12308
12309 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12310 as_fn_error $? "conditional \"AMDEP\" was never defined.
12311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12312 fi
12313 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12314 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12316 fi
12317 if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
12318 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
12319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12320 fi
12321
12322 : "${CONFIG_STATUS=./config.status}"
12323 ac_write_fail=0
12324 ac_clean_files_save=$ac_clean_files
12325 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12327 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12328 as_write_fail=0
12329 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12330 #! $SHELL
12331 # Generated by $as_me.
12332 # Run this file to recreate the current configuration.
12333 # Compiler output produced by configure, useful for debugging
12334 # configure, is in config.log if it exists.
12335
12336 debug=false
12337 ac_cs_recheck=false
12338 ac_cs_silent=false
12339
12340 SHELL=\${CONFIG_SHELL-$SHELL}
12341 export SHELL
12342 _ASEOF
12343 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12344 ## -------------------- ##
12345 ## M4sh Initialization. ##
12346 ## -------------------- ##
12347
12348 # Be more Bourne compatible
12349 DUALCASE=1; export DUALCASE # for MKS sh
12350 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12351 emulate sh
12352 NULLCMD=:
12353 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12354 # is contrary to our usage. Disable this feature.
12355 alias -g '${1+"$@"}'='"$@"'
12356 setopt NO_GLOB_SUBST
12357 else
12358 case `(set -o) 2>/dev/null` in #(
12359 *posix*) :
12360 set -o posix ;; #(
12361 *) :
12362 ;;
12363 esac
12364 fi
12365
12366
12367 as_nl='
12368 '
12369 export as_nl
12370 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12371 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12372 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12373 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12374 # Prefer a ksh shell builtin over an external printf program on Solaris,
12375 # but without wasting forks for bash or zsh.
12376 if test -z "$BASH_VERSION$ZSH_VERSION" \
12377 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12378 as_echo='print -r --'
12379 as_echo_n='print -rn --'
12380 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12381 as_echo='printf %s\n'
12382 as_echo_n='printf %s'
12383 else
12384 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12385 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12386 as_echo_n='/usr/ucb/echo -n'
12387 else
12388 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12389 as_echo_n_body='eval
12390 arg=$1;
12391 case $arg in #(
12392 *"$as_nl"*)
12393 expr "X$arg" : "X\\(.*\\)$as_nl";
12394 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12395 esac;
12396 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12397 '
12398 export as_echo_n_body
12399 as_echo_n='sh -c $as_echo_n_body as_echo'
12400 fi
12401 export as_echo_body
12402 as_echo='sh -c $as_echo_body as_echo'
12403 fi
12404
12405 # The user is always right.
12406 if test "${PATH_SEPARATOR+set}" != set; then
12407 PATH_SEPARATOR=:
12408 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12409 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12410 PATH_SEPARATOR=';'
12411 }
12412 fi
12413
12414
12415 # IFS
12416 # We need space, tab and new line, in precisely that order. Quoting is
12417 # there to prevent editors from complaining about space-tab.
12418 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12419 # splitting by setting IFS to empty value.)
12420 IFS=" "" $as_nl"
12421
12422 # Find who we are. Look in the path if we contain no directory separator.
12423 as_myself=
12424 case $0 in #((
12425 *[\\/]* ) as_myself=$0 ;;
12426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427 for as_dir in $PATH
12428 do
12429 IFS=$as_save_IFS
12430 test -z "$as_dir" && as_dir=.
12431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12432 done
12433 IFS=$as_save_IFS
12434
12435 ;;
12436 esac
12437 # We did not find ourselves, most probably we were run as `sh COMMAND'
12438 # in which case we are not to be found in the path.
12439 if test "x$as_myself" = x; then
12440 as_myself=$0
12441 fi
12442 if test ! -f "$as_myself"; then
12443 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12444 exit 1
12445 fi
12446
12447 # Unset variables that we do not need and which cause bugs (e.g. in
12448 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12449 # suppresses any "Segmentation fault" message there. '((' could
12450 # trigger a bug in pdksh 5.2.14.
12451 for as_var in BASH_ENV ENV MAIL MAILPATH
12452 do eval test x\${$as_var+set} = xset \
12453 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12454 done
12455 PS1='$ '
12456 PS2='> '
12457 PS4='+ '
12458
12459 # NLS nuisances.
12460 LC_ALL=C
12461 export LC_ALL
12462 LANGUAGE=C
12463 export LANGUAGE
12464
12465 # CDPATH.
12466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12467
12468
12469 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12470 # ----------------------------------------
12471 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12472 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12473 # script with STATUS, using 1 if that was 0.
12474 as_fn_error ()
12475 {
12476 as_status=$1; test $as_status -eq 0 && as_status=1
12477 if test "$4"; then
12478 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12479 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12480 fi
12481 $as_echo "$as_me: error: $2" >&2
12482 as_fn_exit $as_status
12483 } # as_fn_error
12484
12485
12486 # as_fn_set_status STATUS
12487 # -----------------------
12488 # Set $? to STATUS, without forking.
12489 as_fn_set_status ()
12490 {
12491 return $1
12492 } # as_fn_set_status
12493
12494 # as_fn_exit STATUS
12495 # -----------------
12496 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12497 as_fn_exit ()
12498 {
12499 set +e
12500 as_fn_set_status $1
12501 exit $1
12502 } # as_fn_exit
12503
12504 # as_fn_unset VAR
12505 # ---------------
12506 # Portably unset VAR.
12507 as_fn_unset ()
12508 {
12509 { eval $1=; unset $1;}
12510 }
12511 as_unset=as_fn_unset
12512 # as_fn_append VAR VALUE
12513 # ----------------------
12514 # Append the text in VALUE to the end of the definition contained in VAR. Take
12515 # advantage of any shell optimizations that allow amortized linear growth over
12516 # repeated appends, instead of the typical quadratic growth present in naive
12517 # implementations.
12518 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12519 eval 'as_fn_append ()
12520 {
12521 eval $1+=\$2
12522 }'
12523 else
12524 as_fn_append ()
12525 {
12526 eval $1=\$$1\$2
12527 }
12528 fi # as_fn_append
12529
12530 # as_fn_arith ARG...
12531 # ------------------
12532 # Perform arithmetic evaluation on the ARGs, and store the result in the
12533 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12534 # must be portable across $(()) and expr.
12535 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12536 eval 'as_fn_arith ()
12537 {
12538 as_val=$(( $* ))
12539 }'
12540 else
12541 as_fn_arith ()
12542 {
12543 as_val=`expr "$@" || test $? -eq 1`
12544 }
12545 fi # as_fn_arith
12546
12547
12548 if expr a : '\(a\)' >/dev/null 2>&1 &&
12549 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12550 as_expr=expr
12551 else
12552 as_expr=false
12553 fi
12554
12555 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12556 as_basename=basename
12557 else
12558 as_basename=false
12559 fi
12560
12561 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12562 as_dirname=dirname
12563 else
12564 as_dirname=false
12565 fi
12566
12567 as_me=`$as_basename -- "$0" ||
12568 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12569 X"$0" : 'X\(//\)$' \| \
12570 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12571 $as_echo X/"$0" |
12572 sed '/^.*\/\([^/][^/]*\)\/*$/{
12573 s//\1/
12574 q
12575 }
12576 /^X\/\(\/\/\)$/{
12577 s//\1/
12578 q
12579 }
12580 /^X\/\(\/\).*/{
12581 s//\1/
12582 q
12583 }
12584 s/.*/./; q'`
12585
12586 # Avoid depending upon Character Ranges.
12587 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12588 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12589 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12590 as_cr_digits='0123456789'
12591 as_cr_alnum=$as_cr_Letters$as_cr_digits
12592
12593 ECHO_C= ECHO_N= ECHO_T=
12594 case `echo -n x` in #(((((
12595 -n*)
12596 case `echo 'xy\c'` in
12597 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12598 xy) ECHO_C='\c';;
12599 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12600 ECHO_T=' ';;
12601 esac;;
12602 *)
12603 ECHO_N='-n';;
12604 esac
12605
12606 rm -f conf$$ conf$$.exe conf$$.file
12607 if test -d conf$$.dir; then
12608 rm -f conf$$.dir/conf$$.file
12609 else
12610 rm -f conf$$.dir
12611 mkdir conf$$.dir 2>/dev/null
12612 fi
12613 if (echo >conf$$.file) 2>/dev/null; then
12614 if ln -s conf$$.file conf$$ 2>/dev/null; then
12615 as_ln_s='ln -s'
12616 # ... but there are two gotchas:
12617 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12618 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12619 # In both cases, we have to default to `cp -pR'.
12620 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12621 as_ln_s='cp -pR'
12622 elif ln conf$$.file conf$$ 2>/dev/null; then
12623 as_ln_s=ln
12624 else
12625 as_ln_s='cp -pR'
12626 fi
12627 else
12628 as_ln_s='cp -pR'
12629 fi
12630 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12631 rmdir conf$$.dir 2>/dev/null
12632
12633
12634 # as_fn_mkdir_p
12635 # -------------
12636 # Create "$as_dir" as a directory, including parents if necessary.
12637 as_fn_mkdir_p ()
12638 {
12639
12640 case $as_dir in #(
12641 -*) as_dir=./$as_dir;;
12642 esac
12643 test -d "$as_dir" || eval $as_mkdir_p || {
12644 as_dirs=
12645 while :; do
12646 case $as_dir in #(
12647 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12648 *) as_qdir=$as_dir;;
12649 esac
12650 as_dirs="'$as_qdir' $as_dirs"
12651 as_dir=`$as_dirname -- "$as_dir" ||
12652 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12653 X"$as_dir" : 'X\(//\)[^/]' \| \
12654 X"$as_dir" : 'X\(//\)$' \| \
12655 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12656 $as_echo X"$as_dir" |
12657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12658 s//\1/
12659 q
12660 }
12661 /^X\(\/\/\)[^/].*/{
12662 s//\1/
12663 q
12664 }
12665 /^X\(\/\/\)$/{
12666 s//\1/
12667 q
12668 }
12669 /^X\(\/\).*/{
12670 s//\1/
12671 q
12672 }
12673 s/.*/./; q'`
12674 test -d "$as_dir" && break
12675 done
12676 test -z "$as_dirs" || eval "mkdir $as_dirs"
12677 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12678
12679
12680 } # as_fn_mkdir_p
12681 if mkdir -p . 2>/dev/null; then
12682 as_mkdir_p='mkdir -p "$as_dir"'
12683 else
12684 test -d ./-p && rmdir ./-p
12685 as_mkdir_p=false
12686 fi
12687
12688
12689 # as_fn_executable_p FILE
12690 # -----------------------
12691 # Test if FILE is an executable regular file.
12692 as_fn_executable_p ()
12693 {
12694 test -f "$1" && test -x "$1"
12695 } # as_fn_executable_p
12696 as_test_x='test -x'
12697 as_executable_p=as_fn_executable_p
12698
12699 # Sed expression to map a string onto a valid CPP name.
12700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12701
12702 # Sed expression to map a string onto a valid variable name.
12703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12704
12705
12706 exec 6>&1
12707 ## ----------------------------------- ##
12708 ## Main body of $CONFIG_STATUS script. ##
12709 ## ----------------------------------- ##
12710 _ASEOF
12711 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12712
12713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12714 # Save the log message, to keep $0 and so on meaningful, and to
12715 # report actual input values of CONFIG_FILES etc. instead of their
12716 # values after options handling.
12717 ac_log="
12718 This file was extended by libmnl $as_me 1.0.5, which was
12719 generated by GNU Autoconf 2.69. Invocation command line was
12720
12721 CONFIG_FILES = $CONFIG_FILES
12722 CONFIG_HEADERS = $CONFIG_HEADERS
12723 CONFIG_LINKS = $CONFIG_LINKS
12724 CONFIG_COMMANDS = $CONFIG_COMMANDS
12725 $ $0 $@
12726
12727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12728 "
12729
12730 _ACEOF
12731
12732 case $ac_config_files in *"
12733 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12734 esac
12735
12736 case $ac_config_headers in *"
12737 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12738 esac
12739
12740
12741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12742 # Files that config.status was made for.
12743 config_files="$ac_config_files"
12744 config_headers="$ac_config_headers"
12745 config_commands="$ac_config_commands"
12746
12747 _ACEOF
12748
12749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12750 ac_cs_usage="\
12751 \`$as_me' instantiates files and other configuration actions
12752 from templates according to the current configuration. Unless the files
12753 and actions are specified as TAGs, all are instantiated by default.
12754
12755 Usage: $0 [OPTION]... [TAG]...
12756
12757 -h, --help print this help, then exit
12758 -V, --version print version number and configuration settings, then exit
12759 --config print configuration, then exit
12760 -q, --quiet, --silent
12761 do not print progress messages
12762 -d, --debug don't remove temporary files
12763 --recheck update $as_me by reconfiguring in the same conditions
12764 --file=FILE[:TEMPLATE]
12765 instantiate the configuration file FILE
12766 --header=FILE[:TEMPLATE]
12767 instantiate the configuration header FILE
12768
12769 Configuration files:
12770 $config_files
12771
12772 Configuration headers:
12773 $config_headers
12774
12775 Configuration commands:
12776 $config_commands
12777
12778 Report bugs to the package provider."
12779
12780 _ACEOF
12781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12782 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12783 ac_cs_version="\\
12784 libmnl config.status 1.0.5
12785 configured by $0, generated by GNU Autoconf 2.69,
12786 with options \\"\$ac_cs_config\\"
12787
12788 Copyright (C) 2012 Free Software Foundation, Inc.
12789 This config.status script is free software; the Free Software Foundation
12790 gives unlimited permission to copy, distribute and modify it."
12791
12792 ac_pwd='$ac_pwd'
12793 srcdir='$srcdir'
12794 INSTALL='$INSTALL'
12795 MKDIR_P='$MKDIR_P'
12796 AWK='$AWK'
12797 test -n "\$AWK" || AWK=awk
12798 _ACEOF
12799
12800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12801 # The default lists apply if the user does not specify any file.
12802 ac_need_defaults=:
12803 while test $# != 0
12804 do
12805 case $1 in
12806 --*=?*)
12807 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12808 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12809 ac_shift=:
12810 ;;
12811 --*=)
12812 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12813 ac_optarg=
12814 ac_shift=:
12815 ;;
12816 *)
12817 ac_option=$1
12818 ac_optarg=$2
12819 ac_shift=shift
12820 ;;
12821 esac
12822
12823 case $ac_option in
12824 # Handling of the options.
12825 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12826 ac_cs_recheck=: ;;
12827 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12828 $as_echo "$ac_cs_version"; exit ;;
12829 --config | --confi | --conf | --con | --co | --c )
12830 $as_echo "$ac_cs_config"; exit ;;
12831 --debug | --debu | --deb | --de | --d | -d )
12832 debug=: ;;
12833 --file | --fil | --fi | --f )
12834 $ac_shift
12835 case $ac_optarg in
12836 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12837 '') as_fn_error $? "missing file argument" ;;
12838 esac
12839 as_fn_append CONFIG_FILES " '$ac_optarg'"
12840 ac_need_defaults=false;;
12841 --header | --heade | --head | --hea )
12842 $ac_shift
12843 case $ac_optarg in
12844 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12845 esac
12846 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12847 ac_need_defaults=false;;
12848 --he | --h)
12849 # Conflict between --help and --header
12850 as_fn_error $? "ambiguous option: \`$1'
12851 Try \`$0 --help' for more information.";;
12852 --help | --hel | -h )
12853 $as_echo "$ac_cs_usage"; exit ;;
12854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12855 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12856 ac_cs_silent=: ;;
12857
12858 # This is an error.
12859 -*) as_fn_error $? "unrecognized option: \`$1'
12860 Try \`$0 --help' for more information." ;;
12861
12862 *) as_fn_append ac_config_targets " $1"
12863 ac_need_defaults=false ;;
12864
12865 esac
12866 shift
12867 done
12868
12869 ac_configure_extra_args=
12870
12871 if $ac_cs_silent; then
12872 exec 6>/dev/null
12873 ac_configure_extra_args="$ac_configure_extra_args --silent"
12874 fi
12875
12876 _ACEOF
12877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12878 if \$ac_cs_recheck; then
12879 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12880 shift
12881 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12882 CONFIG_SHELL='$SHELL'
12883 export CONFIG_SHELL
12884 exec "\$@"
12885 fi
12886
12887 _ACEOF
12888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12889 exec 5>>config.log
12890 {
12891 echo
12892 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12893 ## Running $as_me. ##
12894 _ASBOX
12895 $as_echo "$ac_log"
12896 } >&5
12897
12898 _ACEOF
12899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12900 #
12901 # INIT-COMMANDS
12902 #
12903 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12904
12905
12906 # The HP-UX ksh and POSIX shell print the target directory to stdout
12907 # if CDPATH is set.
12908 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12909
12910 sed_quote_subst='$sed_quote_subst'
12911 double_quote_subst='$double_quote_subst'
12912 delay_variable_subst='$delay_variable_subst'
12913 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12914 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12915 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12916 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12917 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12918 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12919 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
12920 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12921 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12922 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12923 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12924 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12925 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12926 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12927 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12928 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12929 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12930 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12931 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12932 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12933 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12934 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12935 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12936 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12937 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12938 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12939 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12940 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12941 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12942 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12943 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12944 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12945 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12946 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12947 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12948 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12949 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12950 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12951 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12952 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12953 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12954 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12955 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12956 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12957 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12958 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12959 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12960 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12961 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12962 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12963 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12964 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12965 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12966 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12967 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12968 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12969 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
12970 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12971 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"`'
12972 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
12973 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12974 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12975 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
12976 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12977 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12978 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12979 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12980 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12981 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12982 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12983 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12984 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12985 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12986 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12987 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12988 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12989 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12990 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12991 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12992 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12993 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12994 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12995 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12996 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12997 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12998 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12999 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13000 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13001 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13002 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13003 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13004 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13005 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13006 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13007 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13008 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13009 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13010 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13011 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13012 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13013 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13014 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13015 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13016 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13017 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13018 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13019 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13020 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13021 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13022 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13023 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13024 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13025 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13026 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13027 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13028 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13029 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13030 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13031 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13032 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13033 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13034 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13035 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13036 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13037 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13038 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13039 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13040 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13041 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13042 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13043 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13044 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13045 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13046 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13047 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13048
13049 LTCC='$LTCC'
13050 LTCFLAGS='$LTCFLAGS'
13051 compiler='$compiler_DEFAULT'
13052
13053 # A function that is used when there is no print builtin or printf.
13054 func_fallback_echo ()
13055 {
13056 eval 'cat <<_LTECHO_EOF
13057 \$1
13058 _LTECHO_EOF'
13059 }
13060
13061 # Quote evaled strings.
13062 for var in SHELL \
13063 ECHO \
13064 PATH_SEPARATOR \
13065 SED \
13066 GREP \
13067 EGREP \
13068 FGREP \
13069 LD \
13070 NM \
13071 LN_S \
13072 lt_SP2NL \
13073 lt_NL2SP \
13074 reload_flag \
13075 OBJDUMP \
13076 deplibs_check_method \
13077 file_magic_cmd \
13078 file_magic_glob \
13079 want_nocaseglob \
13080 DLLTOOL \
13081 sharedlib_from_linklib_cmd \
13082 AR \
13083 AR_FLAGS \
13084 archiver_list_spec \
13085 STRIP \
13086 RANLIB \
13087 CC \
13088 CFLAGS \
13089 compiler \
13090 lt_cv_sys_global_symbol_pipe \
13091 lt_cv_sys_global_symbol_to_cdecl \
13092 lt_cv_sys_global_symbol_to_import \
13093 lt_cv_sys_global_symbol_to_c_name_address \
13094 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13095 lt_cv_nm_interface \
13096 nm_file_list_spec \
13097 lt_cv_truncate_bin \
13098 lt_prog_compiler_no_builtin_flag \
13099 lt_prog_compiler_pic \
13100 lt_prog_compiler_wl \
13101 lt_prog_compiler_static \
13102 lt_cv_prog_compiler_c_o \
13103 need_locks \
13104 MANIFEST_TOOL \
13105 DSYMUTIL \
13106 NMEDIT \
13107 LIPO \
13108 OTOOL \
13109 OTOOL64 \
13110 shrext_cmds \
13111 export_dynamic_flag_spec \
13112 whole_archive_flag_spec \
13113 compiler_needs_object \
13114 with_gnu_ld \
13115 allow_undefined_flag \
13116 no_undefined_flag \
13117 hardcode_libdir_flag_spec \
13118 hardcode_libdir_separator \
13119 exclude_expsyms \
13120 include_expsyms \
13121 file_list_spec \
13122 variables_saved_for_relink \
13123 libname_spec \
13124 library_names_spec \
13125 soname_spec \
13126 install_override_mode \
13127 finish_eval \
13128 old_striplib \
13129 striplib; do
13130 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13131 *[\\\\\\\`\\"\\\$]*)
13132 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13133 ;;
13134 *)
13135 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13136 ;;
13137 esac
13138 done
13139
13140 # Double-quote double-evaled strings.
13141 for var in reload_cmds \
13142 old_postinstall_cmds \
13143 old_postuninstall_cmds \
13144 old_archive_cmds \
13145 extract_expsyms_cmds \
13146 old_archive_from_new_cmds \
13147 old_archive_from_expsyms_cmds \
13148 archive_cmds \
13149 archive_expsym_cmds \
13150 module_cmds \
13151 module_expsym_cmds \
13152 export_symbols_cmds \
13153 prelink_cmds \
13154 postlink_cmds \
13155 postinstall_cmds \
13156 postuninstall_cmds \
13157 finish_cmds \
13158 sys_lib_search_path_spec \
13159 configure_time_dlsearch_path \
13160 configure_time_lt_sys_library_path; do
13161 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13162 *[\\\\\\\`\\"\\\$]*)
13163 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13164 ;;
13165 *)
13166 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13167 ;;
13168 esac
13169 done
13170
13171 ac_aux_dir='$ac_aux_dir'
13172
13173 # See if we are running on zsh, and set the options that allow our
13174 # commands through without removal of \ escapes INIT.
13175 if test -n "\${ZSH_VERSION+set}"; then
13176 setopt NO_GLOB_SUBST
13177 fi
13178
13179
13180 PACKAGE='$PACKAGE'
13181 VERSION='$VERSION'
13182 RM='$RM'
13183 ofile='$ofile'
13184
13185
13186
13187
13188 _ACEOF
13189
13190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13191
13192 # Handling of arguments.
13193 for ac_config_target in $ac_config_targets
13194 do
13195 case $ac_config_target in
13196 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13197 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13198 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13199 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13200 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13201 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13202 "include/libmnl/Makefile") CONFIG_FILES="$CONFIG_FILES include/libmnl/Makefile" ;;
13203 "include/linux/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/Makefile" ;;
13204 "include/linux/netfilter/Makefile") CONFIG_FILES="$CONFIG_FILES include/linux/netfilter/Makefile" ;;
13205 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13206 "examples/genl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/genl/Makefile" ;;
13207 "examples/kobject/Makefile") CONFIG_FILES="$CONFIG_FILES examples/kobject/Makefile" ;;
13208 "examples/netfilter/Makefile") CONFIG_FILES="$CONFIG_FILES examples/netfilter/Makefile" ;;
13209 "examples/rtnl/Makefile") CONFIG_FILES="$CONFIG_FILES examples/rtnl/Makefile" ;;
13210 "libmnl.pc") CONFIG_FILES="$CONFIG_FILES libmnl.pc" ;;
13211 "doxygen.cfg") CONFIG_FILES="$CONFIG_FILES doxygen.cfg" ;;
13212 "doxygen/Makefile") CONFIG_FILES="$CONFIG_FILES doxygen/Makefile" ;;
13213
13214 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13215 esac
13216 done
13217
13218
13219 # If the user did not use the arguments to specify the items to instantiate,
13220 # then the envvar interface is used. Set only those that are not.
13221 # We use the long form for the default assignment because of an extremely
13222 # bizarre bug on SunOS 4.1.3.
13223 if $ac_need_defaults; then
13224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13225 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13226 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13227 fi
13228
13229 # Have a temporary directory for convenience. Make it in the build tree
13230 # simply because there is no reason against having it here, and in addition,
13231 # creating and moving files from /tmp can sometimes cause problems.
13232 # Hook for its removal unless debugging.
13233 # Note that there is a small window in which the directory will not be cleaned:
13234 # after its creation but before its name has been assigned to `$tmp'.
13235 $debug ||
13236 {
13237 tmp= ac_tmp=
13238 trap 'exit_status=$?
13239 : "${ac_tmp:=$tmp}"
13240 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13241 ' 0
13242 trap 'as_fn_exit 1' 1 2 13 15
13243 }
13244 # Create a (secure) tmp directory for tmp files.
13245
13246 {
13247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13248 test -d "$tmp"
13249 } ||
13250 {
13251 tmp=./conf$$-$RANDOM
13252 (umask 077 && mkdir "$tmp")
13253 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13254 ac_tmp=$tmp
13255
13256 # Set up the scripts for CONFIG_FILES section.
13257 # No need to generate them if there are no CONFIG_FILES.
13258 # This happens for instance with `./config.status config.h'.
13259 if test -n "$CONFIG_FILES"; then
13260
13261
13262 ac_cr=`echo X | tr X '\015'`
13263 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13264 # But we know of no other shell where ac_cr would be empty at this
13265 # point, so we can use a bashism as a fallback.
13266 if test "x$ac_cr" = x; then
13267 eval ac_cr=\$\'\\r\'
13268 fi
13269 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13270 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13271 ac_cs_awk_cr='\\r'
13272 else
13273 ac_cs_awk_cr=$ac_cr
13274 fi
13275
13276 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13277 _ACEOF
13278
13279
13280 {
13281 echo "cat >conf$$subs.awk <<_ACEOF" &&
13282 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13283 echo "_ACEOF"
13284 } >conf$$subs.sh ||
13285 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13286 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13287 ac_delim='%!_!# '
13288 for ac_last_try in false false false false false :; do
13289 . ./conf$$subs.sh ||
13290 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13291
13292 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13293 if test $ac_delim_n = $ac_delim_num; then
13294 break
13295 elif $ac_last_try; then
13296 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13297 else
13298 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13299 fi
13300 done
13301 rm -f conf$$subs.sh
13302
13303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13304 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13305 _ACEOF
13306 sed -n '
13307 h
13308 s/^/S["/; s/!.*/"]=/
13309 p
13310 g
13311 s/^[^!]*!//
13312 :repl
13313 t repl
13314 s/'"$ac_delim"'$//
13315 t delim
13316 :nl
13317 h
13318 s/\(.\{148\}\)..*/\1/
13319 t more1
13320 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13321 p
13322 n
13323 b repl
13324 :more1
13325 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13326 p
13327 g
13328 s/.\{148\}//
13329 t nl
13330 :delim
13331 h
13332 s/\(.\{148\}\)..*/\1/
13333 t more2
13334 s/["\\]/\\&/g; s/^/"/; s/$/"/
13335 p
13336 b
13337 :more2
13338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13339 p
13340 g
13341 s/.\{148\}//
13342 t delim
13343 ' <conf$$subs.awk | sed '
13344 /^[^""]/{
13345 N
13346 s/\n//
13347 }
13348 ' >>$CONFIG_STATUS || ac_write_fail=1
13349 rm -f conf$$subs.awk
13350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13351 _ACAWK
13352 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13353 for (key in S) S_is_set[key] = 1
13354 FS = ""
13355
13356 }
13357 {
13358 line = $ 0
13359 nfields = split(line, field, "@")
13360 substed = 0
13361 len = length(field[1])
13362 for (i = 2; i < nfields; i++) {
13363 key = field[i]
13364 keylen = length(key)
13365 if (S_is_set[key]) {
13366 value = S[key]
13367 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13368 len += length(value) + length(field[++i])
13369 substed = 1
13370 } else
13371 len += 1 + keylen
13372 }
13373
13374 print line
13375 }
13376
13377 _ACAWK
13378 _ACEOF
13379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13380 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13381 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13382 else
13383 cat
13384 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13385 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13386 _ACEOF
13387
13388 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13389 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13390 # trailing colons and then remove the whole line if VPATH becomes empty
13391 # (actually we leave an empty line to preserve line numbers).
13392 if test "x$srcdir" = x.; then
13393 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13394 h
13395 s///
13396 s/^/:/
13397 s/[ ]*$/:/
13398 s/:\$(srcdir):/:/g
13399 s/:\${srcdir}:/:/g
13400 s/:@srcdir@:/:/g
13401 s/^:*//
13402 s/:*$//
13403 x
13404 s/\(=[ ]*\).*/\1/
13405 G
13406 s/\n//
13407 s/^[^=]*=[ ]*$//
13408 }'
13409 fi
13410
13411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13412 fi # test -n "$CONFIG_FILES"
13413
13414 # Set up the scripts for CONFIG_HEADERS section.
13415 # No need to generate them if there are no CONFIG_HEADERS.
13416 # This happens for instance with `./config.status Makefile'.
13417 if test -n "$CONFIG_HEADERS"; then
13418 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13419 BEGIN {
13420 _ACEOF
13421
13422 # Transform confdefs.h into an awk script `defines.awk', embedded as
13423 # here-document in config.status, that substitutes the proper values into
13424 # config.h.in to produce config.h.
13425
13426 # Create a delimiter string that does not exist in confdefs.h, to ease
13427 # handling of long lines.
13428 ac_delim='%!_!# '
13429 for ac_last_try in false false :; do
13430 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13431 if test -z "$ac_tt"; then
13432 break
13433 elif $ac_last_try; then
13434 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13435 else
13436 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13437 fi
13438 done
13439
13440 # For the awk script, D is an array of macro values keyed by name,
13441 # likewise P contains macro parameters if any. Preserve backslash
13442 # newline sequences.
13443
13444 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13445 sed -n '
13446 s/.\{148\}/&'"$ac_delim"'/g
13447 t rset
13448 :rset
13449 s/^[ ]*#[ ]*define[ ][ ]*/ /
13450 t def
13451 d
13452 :def
13453 s/\\$//
13454 t bsnl
13455 s/["\\]/\\&/g
13456 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13457 D["\1"]=" \3"/p
13458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13459 d
13460 :bsnl
13461 s/["\\]/\\&/g
13462 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13463 D["\1"]=" \3\\\\\\n"\\/p
13464 t cont
13465 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13466 t cont
13467 d
13468 :cont
13469 n
13470 s/.\{148\}/&'"$ac_delim"'/g
13471 t clear
13472 :clear
13473 s/\\$//
13474 t bsnlc
13475 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13476 d
13477 :bsnlc
13478 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13479 b cont
13480 ' <confdefs.h | sed '
13481 s/'"$ac_delim"'/"\\\
13482 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13483
13484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13485 for (key in D) D_is_set[key] = 1
13486 FS = ""
13487 }
13488 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13489 line = \$ 0
13490 split(line, arg, " ")
13491 if (arg[1] == "#") {
13492 defundef = arg[2]
13493 mac1 = arg[3]
13494 } else {
13495 defundef = substr(arg[1], 2)
13496 mac1 = arg[2]
13497 }
13498 split(mac1, mac2, "(") #)
13499 macro = mac2[1]
13500 prefix = substr(line, 1, index(line, defundef) - 1)
13501 if (D_is_set[macro]) {
13502 # Preserve the white space surrounding the "#".
13503 print prefix "define", macro P[macro] D[macro]
13504 next
13505 } else {
13506 # Replace #undef with comments. This is necessary, for example,
13507 # in the case of _POSIX_SOURCE, which is predefined and required
13508 # on some systems where configure will not decide to define it.
13509 if (defundef == "undef") {
13510 print "/*", prefix defundef, macro, "*/"
13511 next
13512 }
13513 }
13514 }
13515 { print }
13516 _ACAWK
13517 _ACEOF
13518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13519 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13520 fi # test -n "$CONFIG_HEADERS"
13521
13522
13523 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13524 shift
13525 for ac_tag
13526 do
13527 case $ac_tag in
13528 :[FHLC]) ac_mode=$ac_tag; continue;;
13529 esac
13530 case $ac_mode$ac_tag in
13531 :[FHL]*:*);;
13532 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13533 :[FH]-) ac_tag=-:-;;
13534 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13535 esac
13536 ac_save_IFS=$IFS
13537 IFS=:
13538 set x $ac_tag
13539 IFS=$ac_save_IFS
13540 shift
13541 ac_file=$1
13542 shift
13543
13544 case $ac_mode in
13545 :L) ac_source=$1;;
13546 :[FH])
13547 ac_file_inputs=
13548 for ac_f
13549 do
13550 case $ac_f in
13551 -) ac_f="$ac_tmp/stdin";;
13552 *) # Look for the file first in the build tree, then in the source tree
13553 # (if the path is not absolute). The absolute path cannot be DOS-style,
13554 # because $ac_f cannot contain `:'.
13555 test -f "$ac_f" ||
13556 case $ac_f in
13557 [\\/$]*) false;;
13558 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13559 esac ||
13560 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13561 esac
13562 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13563 as_fn_append ac_file_inputs " '$ac_f'"
13564 done
13565
13566 # Let's still pretend it is `configure' which instantiates (i.e., don't
13567 # use $as_me), people would be surprised to read:
13568 # /* config.h. Generated by config.status. */
13569 configure_input='Generated from '`
13570 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13571 `' by configure.'
13572 if test x"$ac_file" != x-; then
13573 configure_input="$ac_file. $configure_input"
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13575 $as_echo "$as_me: creating $ac_file" >&6;}
13576 fi
13577 # Neutralize special characters interpreted by sed in replacement strings.
13578 case $configure_input in #(
13579 *\&* | *\|* | *\\* )
13580 ac_sed_conf_input=`$as_echo "$configure_input" |
13581 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13582 *) ac_sed_conf_input=$configure_input;;
13583 esac
13584
13585 case $ac_tag in
13586 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13588 esac
13589 ;;
13590 esac
13591
13592 ac_dir=`$as_dirname -- "$ac_file" ||
13593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13594 X"$ac_file" : 'X\(//\)[^/]' \| \
13595 X"$ac_file" : 'X\(//\)$' \| \
13596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13597 $as_echo X"$ac_file" |
13598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13599 s//\1/
13600 q
13601 }
13602 /^X\(\/\/\)[^/].*/{
13603 s//\1/
13604 q
13605 }
13606 /^X\(\/\/\)$/{
13607 s//\1/
13608 q
13609 }
13610 /^X\(\/\).*/{
13611 s//\1/
13612 q
13613 }
13614 s/.*/./; q'`
13615 as_dir="$ac_dir"; as_fn_mkdir_p
13616 ac_builddir=.
13617
13618 case "$ac_dir" in
13619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13620 *)
13621 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13622 # A ".." for each directory in $ac_dir_suffix.
13623 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13624 case $ac_top_builddir_sub in
13625 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13626 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13627 esac ;;
13628 esac
13629 ac_abs_top_builddir=$ac_pwd
13630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13631 # for backward compatibility:
13632 ac_top_builddir=$ac_top_build_prefix
13633
13634 case $srcdir in
13635 .) # We are building in place.
13636 ac_srcdir=.
13637 ac_top_srcdir=$ac_top_builddir_sub
13638 ac_abs_top_srcdir=$ac_pwd ;;
13639 [\\/]* | ?:[\\/]* ) # Absolute name.
13640 ac_srcdir=$srcdir$ac_dir_suffix;
13641 ac_top_srcdir=$srcdir
13642 ac_abs_top_srcdir=$srcdir ;;
13643 *) # Relative name.
13644 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13645 ac_top_srcdir=$ac_top_build_prefix$srcdir
13646 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13647 esac
13648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13649
13650
13651 case $ac_mode in
13652 :F)
13653 #
13654 # CONFIG_FILE
13655 #
13656
13657 case $INSTALL in
13658 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13659 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13660 esac
13661 ac_MKDIR_P=$MKDIR_P
13662 case $MKDIR_P in
13663 [\\/$]* | ?:[\\/]* ) ;;
13664 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13665 esac
13666 _ACEOF
13667
13668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13669 # If the template does not know about datarootdir, expand it.
13670 # FIXME: This hack should be removed a few years after 2.60.
13671 ac_datarootdir_hack=; ac_datarootdir_seen=
13672 ac_sed_dataroot='
13673 /datarootdir/ {
13674 p
13675 q
13676 }
13677 /@datadir@/p
13678 /@docdir@/p
13679 /@infodir@/p
13680 /@localedir@/p
13681 /@mandir@/p'
13682 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13683 *datarootdir*) ac_datarootdir_seen=yes;;
13684 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13686 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13687 _ACEOF
13688 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13689 ac_datarootdir_hack='
13690 s&@datadir@&$datadir&g
13691 s&@docdir@&$docdir&g
13692 s&@infodir@&$infodir&g
13693 s&@localedir@&$localedir&g
13694 s&@mandir@&$mandir&g
13695 s&\\\${datarootdir}&$datarootdir&g' ;;
13696 esac
13697 _ACEOF
13698
13699 # Neutralize VPATH when `$srcdir' = `.'.
13700 # Shell code in configure.ac might set extrasub.
13701 # FIXME: do we really want to maintain this feature?
13702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13703 ac_sed_extra="$ac_vpsub
13704 $extrasub
13705 _ACEOF
13706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13707 :t
13708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13709 s|@configure_input@|$ac_sed_conf_input|;t t
13710 s&@top_builddir@&$ac_top_builddir_sub&;t t
13711 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13712 s&@srcdir@&$ac_srcdir&;t t
13713 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13714 s&@top_srcdir@&$ac_top_srcdir&;t t
13715 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13716 s&@builddir@&$ac_builddir&;t t
13717 s&@abs_builddir@&$ac_abs_builddir&;t t
13718 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13719 s&@INSTALL@&$ac_INSTALL&;t t
13720 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13721 $ac_datarootdir_hack
13722 "
13723 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13724 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13725
13726 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13727 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13728 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13729 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13731 which seems to be undefined. Please make sure it is defined" >&5
13732 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13733 which seems to be undefined. Please make sure it is defined" >&2;}
13734
13735 rm -f "$ac_tmp/stdin"
13736 case $ac_file in
13737 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13738 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13739 esac \
13740 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13741 ;;
13742 :H)
13743 #
13744 # CONFIG_HEADER
13745 #
13746 if test x"$ac_file" != x-; then
13747 {
13748 $as_echo "/* $configure_input */" \
13749 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13750 } >"$ac_tmp/config.h" \
13751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13752 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13754 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13755 else
13756 rm -f "$ac_file"
13757 mv "$ac_tmp/config.h" "$ac_file" \
13758 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13759 fi
13760 else
13761 $as_echo "/* $configure_input */" \
13762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13763 || as_fn_error $? "could not create -" "$LINENO" 5
13764 fi
13765 # Compute "$ac_file"'s index in $config_headers.
13766 _am_arg="$ac_file"
13767 _am_stamp_count=1
13768 for _am_header in $config_headers :; do
13769 case $_am_header in
13770 $_am_arg | $_am_arg:* )
13771 break ;;
13772 * )
13773 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13774 esac
13775 done
13776 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13777 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13778 X"$_am_arg" : 'X\(//\)[^/]' \| \
13779 X"$_am_arg" : 'X\(//\)$' \| \
13780 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13781 $as_echo X"$_am_arg" |
13782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13783 s//\1/
13784 q
13785 }
13786 /^X\(\/\/\)[^/].*/{
13787 s//\1/
13788 q
13789 }
13790 /^X\(\/\/\)$/{
13791 s//\1/
13792 q
13793 }
13794 /^X\(\/\).*/{
13795 s//\1/
13796 q
13797 }
13798 s/.*/./; q'`/stamp-h$_am_stamp_count
13799 ;;
13800
13801 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13802 $as_echo "$as_me: executing $ac_file commands" >&6;}
13803 ;;
13804 esac
13805
13806
13807 case $ac_file$ac_mode in
13808 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13809 # Older Autoconf quotes --file arguments for eval, but not when files
13810 # are listed without --file. Let's play safe and only enable the eval
13811 # if we detect the quoting.
13812 # TODO: see whether this extra hack can be removed once we start
13813 # requiring Autoconf 2.70 or later.
13814 case $CONFIG_FILES in #(
13815 *\'*) :
13816 eval set x "$CONFIG_FILES" ;; #(
13817 *) :
13818 set x $CONFIG_FILES ;; #(
13819 *) :
13820 ;;
13821 esac
13822 shift
13823 # Used to flag and report bootstrapping failures.
13824 am_rc=0
13825 for am_mf
13826 do
13827 # Strip MF so we end up with the name of the file.
13828 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
13829 # Check whether this is an Automake generated Makefile which includes
13830 # dependency-tracking related rules and includes.
13831 # Grep'ing the whole file directly is not great: AIX grep has a line
13832 # limit of 2048, but all sed's we know have understand at least 4000.
13833 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13834 || continue
13835 am_dirpart=`$as_dirname -- "$am_mf" ||
13836 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13837 X"$am_mf" : 'X\(//\)[^/]' \| \
13838 X"$am_mf" : 'X\(//\)$' \| \
13839 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13840 $as_echo X"$am_mf" |
13841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13842 s//\1/
13843 q
13844 }
13845 /^X\(\/\/\)[^/].*/{
13846 s//\1/
13847 q
13848 }
13849 /^X\(\/\/\)$/{
13850 s//\1/
13851 q
13852 }
13853 /^X\(\/\).*/{
13854 s//\1/
13855 q
13856 }
13857 s/.*/./; q'`
13858 am_filepart=`$as_basename -- "$am_mf" ||
13859 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13860 X"$am_mf" : 'X\(//\)$' \| \
13861 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13862 $as_echo X/"$am_mf" |
13863 sed '/^.*\/\([^/][^/]*\)\/*$/{
13864 s//\1/
13865 q
13866 }
13867 /^X\/\(\/\/\)$/{
13868 s//\1/
13869 q
13870 }
13871 /^X\/\(\/\).*/{
13872 s//\1/
13873 q
13874 }
13875 s/.*/./; q'`
13876 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13877 && sed -e '/# am--include-marker/d' "$am_filepart" \
13878 | $MAKE -f - am--depfiles" >&5
13879 (cd "$am_dirpart" \
13880 && sed -e '/# am--include-marker/d' "$am_filepart" \
13881 | $MAKE -f - am--depfiles) >&5 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } || am_rc=$?
13885 done
13886 if test $am_rc -ne 0; then
13887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13889 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13890 for automatic dependency tracking. If GNU make was not used, consider
13891 re-running the configure script with MAKE=\"gmake\" (or whatever is
13892 necessary). You can also try re-running configure with the
13893 '--disable-dependency-tracking' option to at least be able to build
13894 the package (albeit without support for automatic dependency tracking).
13895 See \`config.log' for more details" "$LINENO" 5; }
13896 fi
13897 { am_dirpart=; unset am_dirpart;}
13898 { am_filepart=; unset am_filepart;}
13899 { am_mf=; unset am_mf;}
13900 { am_rc=; unset am_rc;}
13901 rm -f conftest-deps.mk
13902 }
13903 ;;
13904 "libtool":C)
13905
13906 # See if we are running on zsh, and set the options that allow our
13907 # commands through without removal of \ escapes.
13908 if test -n "${ZSH_VERSION+set}"; then
13909 setopt NO_GLOB_SUBST
13910 fi
13911
13912 cfgfile=${ofile}T
13913 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13914 $RM "$cfgfile"
13915
13916 cat <<_LT_EOF >> "$cfgfile"
13917 #! $SHELL
13918 # Generated automatically by $as_me ($PACKAGE) $VERSION
13919 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13920
13921 # Provide generalized library-building support services.
13922 # Written by Gordon Matzigkeit, 1996
13923
13924 # Copyright (C) 2014 Free Software Foundation, Inc.
13925 # This is free software; see the source for copying conditions. There is NO
13926 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13927
13928 # GNU Libtool is free software; you can redistribute it and/or modify
13929 # it under the terms of the GNU General Public License as published by
13930 # the Free Software Foundation; either version 2 of of the License, or
13931 # (at your option) any later version.
13932 #
13933 # As a special exception to the GNU General Public License, if you
13934 # distribute this file as part of a program or library that is built
13935 # using GNU Libtool, you may include this file under the same
13936 # distribution terms that you use for the rest of that program.
13937 #
13938 # GNU Libtool is distributed in the hope that it will be useful, but
13939 # WITHOUT ANY WARRANTY; without even the implied warranty of
13940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13941 # GNU General Public License for more details.
13942 #
13943 # You should have received a copy of the GNU General Public License
13944 # along with this program. If not, see <http://www.gnu.org/licenses/>.
13945
13946
13947 # The names of the tagged configurations supported by this script.
13948 available_tags=''
13949
13950 # Configured defaults for sys_lib_dlsearch_path munging.
13951 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
13952
13953 # ### BEGIN LIBTOOL CONFIG
13954
13955 # Whether or not to build static libraries.
13956 build_old_libs=$enable_static
13957
13958 # Which release of libtool.m4 was used?
13959 macro_version=$macro_version
13960 macro_revision=$macro_revision
13961
13962 # Whether or not to build shared libraries.
13963 build_libtool_libs=$enable_shared
13964
13965 # What type of objects to build.
13966 pic_mode=$pic_mode
13967
13968 # Whether or not to optimize for fast installation.
13969 fast_install=$enable_fast_install
13970
13971 # Shared archive member basename,for filename based shared library versioning on AIX.
13972 shared_archive_member_spec=$shared_archive_member_spec
13973
13974 # Shell to use when invoking shell scripts.
13975 SHELL=$lt_SHELL
13976
13977 # An echo program that protects backslashes.
13978 ECHO=$lt_ECHO
13979
13980 # The PATH separator for the build system.
13981 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13982
13983 # The host system.
13984 host_alias=$host_alias
13985 host=$host
13986 host_os=$host_os
13987
13988 # The build system.
13989 build_alias=$build_alias
13990 build=$build
13991 build_os=$build_os
13992
13993 # A sed program that does not truncate output.
13994 SED=$lt_SED
13995
13996 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13997 Xsed="\$SED -e 1s/^X//"
13998
13999 # A grep program that handles long lines.
14000 GREP=$lt_GREP
14001
14002 # An ERE matcher.
14003 EGREP=$lt_EGREP
14004
14005 # A literal string matcher.
14006 FGREP=$lt_FGREP
14007
14008 # A BSD- or MS-compatible name lister.
14009 NM=$lt_NM
14010
14011 # Whether we need soft or hard links.
14012 LN_S=$lt_LN_S
14013
14014 # What is the maximum length of a command?
14015 max_cmd_len=$max_cmd_len
14016
14017 # Object file suffix (normally "o").
14018 objext=$ac_objext
14019
14020 # Executable file suffix (normally "").
14021 exeext=$exeext
14022
14023 # whether the shell understands "unset".
14024 lt_unset=$lt_unset
14025
14026 # turn spaces into newlines.
14027 SP2NL=$lt_lt_SP2NL
14028
14029 # turn newlines into spaces.
14030 NL2SP=$lt_lt_NL2SP
14031
14032 # convert \$build file names to \$host format.
14033 to_host_file_cmd=$lt_cv_to_host_file_cmd
14034
14035 # convert \$build files to toolchain format.
14036 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14037
14038 # An object symbol dumper.
14039 OBJDUMP=$lt_OBJDUMP
14040
14041 # Method to check whether dependent libraries are shared objects.
14042 deplibs_check_method=$lt_deplibs_check_method
14043
14044 # Command to use when deplibs_check_method = "file_magic".
14045 file_magic_cmd=$lt_file_magic_cmd
14046
14047 # How to find potential files when deplibs_check_method = "file_magic".
14048 file_magic_glob=$lt_file_magic_glob
14049
14050 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14051 want_nocaseglob=$lt_want_nocaseglob
14052
14053 # DLL creation program.
14054 DLLTOOL=$lt_DLLTOOL
14055
14056 # Command to associate shared and link libraries.
14057 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14058
14059 # The archiver.
14060 AR=$lt_AR
14061
14062 # Flags to create an archive.
14063 AR_FLAGS=$lt_AR_FLAGS
14064
14065 # How to feed a file listing to the archiver.
14066 archiver_list_spec=$lt_archiver_list_spec
14067
14068 # A symbol stripping program.
14069 STRIP=$lt_STRIP
14070
14071 # Commands used to install an old-style archive.
14072 RANLIB=$lt_RANLIB
14073 old_postinstall_cmds=$lt_old_postinstall_cmds
14074 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14075
14076 # Whether to use a lock for old archive extraction.
14077 lock_old_archive_extraction=$lock_old_archive_extraction
14078
14079 # A C compiler.
14080 LTCC=$lt_CC
14081
14082 # LTCC compiler flags.
14083 LTCFLAGS=$lt_CFLAGS
14084
14085 # Take the output of nm and produce a listing of raw symbols and C names.
14086 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14087
14088 # Transform the output of nm in a proper C declaration.
14089 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14090
14091 # Transform the output of nm into a list of symbols to manually relocate.
14092 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14093
14094 # Transform the output of nm in a C name address pair.
14095 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14096
14097 # Transform the output of nm in a C name address pair when lib prefix is needed.
14098 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14099
14100 # The name lister interface.
14101 nm_interface=$lt_lt_cv_nm_interface
14102
14103 # Specify filename containing input files for \$NM.
14104 nm_file_list_spec=$lt_nm_file_list_spec
14105
14106 # The root where to search for dependent libraries,and where our libraries should be installed.
14107 lt_sysroot=$lt_sysroot
14108
14109 # Command to truncate a binary pipe.
14110 lt_truncate_bin=$lt_lt_cv_truncate_bin
14111
14112 # The name of the directory that contains temporary libtool files.
14113 objdir=$objdir
14114
14115 # Used to examine libraries when file_magic_cmd begins with "file".
14116 MAGIC_CMD=$MAGIC_CMD
14117
14118 # Must we lock files when doing compilation?
14119 need_locks=$lt_need_locks
14120
14121 # Manifest tool.
14122 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14123
14124 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14125 DSYMUTIL=$lt_DSYMUTIL
14126
14127 # Tool to change global to local symbols on Mac OS X.
14128 NMEDIT=$lt_NMEDIT
14129
14130 # Tool to manipulate fat objects and archives on Mac OS X.
14131 LIPO=$lt_LIPO
14132
14133 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14134 OTOOL=$lt_OTOOL
14135
14136 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14137 OTOOL64=$lt_OTOOL64
14138
14139 # Old archive suffix (normally "a").
14140 libext=$libext
14141
14142 # Shared library suffix (normally ".so").
14143 shrext_cmds=$lt_shrext_cmds
14144
14145 # The commands to extract the exported symbol list from a shared archive.
14146 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14147
14148 # Variables whose values should be saved in libtool wrapper scripts and
14149 # restored at link time.
14150 variables_saved_for_relink=$lt_variables_saved_for_relink
14151
14152 # Do we need the "lib" prefix for modules?
14153 need_lib_prefix=$need_lib_prefix
14154
14155 # Do we need a version for libraries?
14156 need_version=$need_version
14157
14158 # Library versioning type.
14159 version_type=$version_type
14160
14161 # Shared library runtime path variable.
14162 runpath_var=$runpath_var
14163
14164 # Shared library path variable.
14165 shlibpath_var=$shlibpath_var
14166
14167 # Is shlibpath searched before the hard-coded library search path?
14168 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14169
14170 # Format of library name prefix.
14171 libname_spec=$lt_libname_spec
14172
14173 # List of archive names. First name is the real one, the rest are links.
14174 # The last name is the one that the linker finds with -lNAME
14175 library_names_spec=$lt_library_names_spec
14176
14177 # The coded name of the library, if different from the real name.
14178 soname_spec=$lt_soname_spec
14179
14180 # Permission mode override for installation of shared libraries.
14181 install_override_mode=$lt_install_override_mode
14182
14183 # Command to use after installation of a shared archive.
14184 postinstall_cmds=$lt_postinstall_cmds
14185
14186 # Command to use after uninstallation of a shared archive.
14187 postuninstall_cmds=$lt_postuninstall_cmds
14188
14189 # Commands used to finish a libtool library installation in a directory.
14190 finish_cmds=$lt_finish_cmds
14191
14192 # As "finish_cmds", except a single script fragment to be evaled but
14193 # not shown.
14194 finish_eval=$lt_finish_eval
14195
14196 # Whether we should hardcode library paths into libraries.
14197 hardcode_into_libs=$hardcode_into_libs
14198
14199 # Compile-time system search path for libraries.
14200 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14201
14202 # Detected run-time system search path for libraries.
14203 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14204
14205 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14206 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14207
14208 # Whether dlopen is supported.
14209 dlopen_support=$enable_dlopen
14210
14211 # Whether dlopen of programs is supported.
14212 dlopen_self=$enable_dlopen_self
14213
14214 # Whether dlopen of statically linked programs is supported.
14215 dlopen_self_static=$enable_dlopen_self_static
14216
14217 # Commands to strip libraries.
14218 old_striplib=$lt_old_striplib
14219 striplib=$lt_striplib
14220
14221
14222 # The linker used to build libraries.
14223 LD=$lt_LD
14224
14225 # How to create reloadable object files.
14226 reload_flag=$lt_reload_flag
14227 reload_cmds=$lt_reload_cmds
14228
14229 # Commands used to build an old-style archive.
14230 old_archive_cmds=$lt_old_archive_cmds
14231
14232 # A language specific compiler.
14233 CC=$lt_compiler
14234
14235 # Is the compiler the GNU compiler?
14236 with_gcc=$GCC
14237
14238 # Compiler flag to turn off builtin functions.
14239 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14240
14241 # Additional compiler flags for building library objects.
14242 pic_flag=$lt_lt_prog_compiler_pic
14243
14244 # How to pass a linker flag through the compiler.
14245 wl=$lt_lt_prog_compiler_wl
14246
14247 # Compiler flag to prevent dynamic linking.
14248 link_static_flag=$lt_lt_prog_compiler_static
14249
14250 # Does compiler simultaneously support -c and -o options?
14251 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14252
14253 # Whether or not to add -lc for building shared libraries.
14254 build_libtool_need_lc=$archive_cmds_need_lc
14255
14256 # Whether or not to disallow shared libs when runtime libs are static.
14257 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14258
14259 # Compiler flag to allow reflexive dlopens.
14260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14261
14262 # Compiler flag to generate shared objects directly from archives.
14263 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14264
14265 # Whether the compiler copes with passing no objects directly.
14266 compiler_needs_object=$lt_compiler_needs_object
14267
14268 # Create an old-style archive from a shared archive.
14269 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14270
14271 # Create a temporary old-style archive to link instead of a shared archive.
14272 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14273
14274 # Commands used to build a shared archive.
14275 archive_cmds=$lt_archive_cmds
14276 archive_expsym_cmds=$lt_archive_expsym_cmds
14277
14278 # Commands used to build a loadable module if different from building
14279 # a shared archive.
14280 module_cmds=$lt_module_cmds
14281 module_expsym_cmds=$lt_module_expsym_cmds
14282
14283 # Whether we are building with GNU ld or not.
14284 with_gnu_ld=$lt_with_gnu_ld
14285
14286 # Flag that allows shared libraries with undefined symbols to be built.
14287 allow_undefined_flag=$lt_allow_undefined_flag
14288
14289 # Flag that enforces no undefined symbols.
14290 no_undefined_flag=$lt_no_undefined_flag
14291
14292 # Flag to hardcode \$libdir into a binary during linking.
14293 # This must work even if \$libdir does not exist
14294 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14295
14296 # Whether we need a single "-rpath" flag with a separated argument.
14297 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14298
14299 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14300 # DIR into the resulting binary.
14301 hardcode_direct=$hardcode_direct
14302
14303 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14304 # DIR into the resulting binary and the resulting library dependency is
14305 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14306 # library is relocated.
14307 hardcode_direct_absolute=$hardcode_direct_absolute
14308
14309 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14310 # into the resulting binary.
14311 hardcode_minus_L=$hardcode_minus_L
14312
14313 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14314 # into the resulting binary.
14315 hardcode_shlibpath_var=$hardcode_shlibpath_var
14316
14317 # Set to "yes" if building a shared library automatically hardcodes DIR
14318 # into the library and all subsequent libraries and executables linked
14319 # against it.
14320 hardcode_automatic=$hardcode_automatic
14321
14322 # Set to yes if linker adds runtime paths of dependent libraries
14323 # to runtime path list.
14324 inherit_rpath=$inherit_rpath
14325
14326 # Whether libtool must link a program against all its dependency libraries.
14327 link_all_deplibs=$link_all_deplibs
14328
14329 # Set to "yes" if exported symbols are required.
14330 always_export_symbols=$always_export_symbols
14331
14332 # The commands to list exported symbols.
14333 export_symbols_cmds=$lt_export_symbols_cmds
14334
14335 # Symbols that should not be listed in the preloaded symbols.
14336 exclude_expsyms=$lt_exclude_expsyms
14337
14338 # Symbols that must always be exported.
14339 include_expsyms=$lt_include_expsyms
14340
14341 # Commands necessary for linking programs (against libraries) with templates.
14342 prelink_cmds=$lt_prelink_cmds
14343
14344 # Commands necessary for finishing linking programs.
14345 postlink_cmds=$lt_postlink_cmds
14346
14347 # Specify filename containing input files.
14348 file_list_spec=$lt_file_list_spec
14349
14350 # How to hardcode a shared library path into an executable.
14351 hardcode_action=$hardcode_action
14352
14353 # ### END LIBTOOL CONFIG
14354
14355 _LT_EOF
14356
14357 cat <<'_LT_EOF' >> "$cfgfile"
14358
14359 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14360
14361 # func_munge_path_list VARIABLE PATH
14362 # -----------------------------------
14363 # VARIABLE is name of variable containing _space_ separated list of
14364 # directories to be munged by the contents of PATH, which is string
14365 # having a format:
14366 # "DIR[:DIR]:"
14367 # string "DIR[ DIR]" will be prepended to VARIABLE
14368 # ":DIR[:DIR]"
14369 # string "DIR[ DIR]" will be appended to VARIABLE
14370 # "DIRP[:DIRP]::[DIRA:]DIRA"
14371 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14372 # "DIRA[ DIRA]" will be appended to VARIABLE
14373 # "DIR[:DIR]"
14374 # VARIABLE will be replaced by "DIR[ DIR]"
14375 func_munge_path_list ()
14376 {
14377 case x$2 in
14378 x)
14379 ;;
14380 *:)
14381 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14382 ;;
14383 x:*)
14384 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14385 ;;
14386 *::*)
14387 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14388 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14389 ;;
14390 *)
14391 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14392 ;;
14393 esac
14394 }
14395
14396
14397 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14398 func_cc_basename ()
14399 {
14400 for cc_temp in $*""; do
14401 case $cc_temp in
14402 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14403 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14404 \-*) ;;
14405 *) break;;
14406 esac
14407 done
14408 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14409 }
14410
14411
14412 # ### END FUNCTIONS SHARED WITH CONFIGURE
14413
14414 _LT_EOF
14415
14416 case $host_os in
14417 aix3*)
14418 cat <<\_LT_EOF >> "$cfgfile"
14419 # AIX sometimes has problems with the GCC collect2 program. For some
14420 # reason, if we set the COLLECT_NAMES environment variable, the problems
14421 # vanish in a puff of smoke.
14422 if test set != "${COLLECT_NAMES+set}"; then
14423 COLLECT_NAMES=
14424 export COLLECT_NAMES
14425 fi
14426 _LT_EOF
14427 ;;
14428 esac
14429
14430
14431 ltmain=$ac_aux_dir/ltmain.sh
14432
14433
14434 # We use sed instead of cat because bash on DJGPP gets confused if
14435 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14436 # text mode, it properly converts lines to CR/LF. This bash problem
14437 # is reportedly fixed, but why not run on old versions too?
14438 sed '$q' "$ltmain" >> "$cfgfile" \
14439 || (rm -f "$cfgfile"; exit 1)
14440
14441 mv -f "$cfgfile" "$ofile" ||
14442 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14443 chmod +x "$ofile"
14444
14445 ;;
14446
14447 esac
14448 done # for ac_tag
14449
14450
14451 as_fn_exit 0
14452 _ACEOF
14453 ac_clean_files=$ac_clean_files_save
14454
14455 test $ac_write_fail = 0 ||
14456 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14457
14458
14459 # configure is writing to config.log, and then calls config.status.
14460 # config.status does its own redirection, appending to config.log.
14461 # Unfortunately, on DOS this fails, as config.log is still kept open
14462 # by configure, so config.status won't be able to write to it; its
14463 # output is simply discarded. So we exec the FD to /dev/null,
14464 # effectively closing config.log, so it can be properly (re)opened and
14465 # appended to by config.status. When coming back to configure, we
14466 # need to make the FD available again.
14467 if test "$no_create" != yes; then
14468 ac_cs_success=:
14469 ac_config_status_args=
14470 test "$silent" = yes &&
14471 ac_config_status_args="$ac_config_status_args --quiet"
14472 exec 5>/dev/null
14473 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14474 exec 5>>config.log
14475 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14476 # would make configure fail if this is the last instruction.
14477 $ac_cs_success || as_fn_exit 1
14478 fi
14479 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14481 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14482 fi
14483
14484
14485 echo "
14486 libmnl configuration:
14487 doxygen: ${with_doxygen}"