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 librevisa 0.0.20130812.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: [email protected] about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='librevisa'
592 PACKAGE_TARNAME='librevisa'
593 PACKAGE_VERSION='0.0.20130812'
594 PACKAGE_STRING='librevisa 0.0.20130812'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 WITH_AVAHI_FALSE
639 WITH_AVAHI_TRUE
640 WITH_VXI_FALSE
641 WITH_VXI_TRUE
642 WITH_USB_FALSE
643 WITH_USB_TRUE
644 LIBREVISA_PKGLIBS
645 avahi_client_LIBS
646 avahi_client_CFLAGS
647 libusb_LIBS
648 libusb_CFLAGS
649 CXXCPP
650 am__fastdepCXX_FALSE
651 am__fastdepCXX_TRUE
652 CXXDEPMODE
653 ac_ct_CXX
654 CXXFLAGS
655 CXX
656 PKG_CONFIG_LIBDIR
657 PKG_CONFIG_PATH
658 PKG_CONFIG
659 CPP
660 OTOOL64
661 OTOOL
662 LIPO
663 NMEDIT
664 DSYMUTIL
665 MANIFEST_TOOL
666 RANLIB
667 ac_ct_AR
668 AR
669 DLLTOOL
670 OBJDUMP
671 LN_S
672 NM
673 ac_ct_DUMPBIN
674 DUMPBIN
675 LD
676 FGREP
677 EGREP
678 GREP
679 SED
680 am__fastdepCC_FALSE
681 am__fastdepCC_TRUE
682 CCDEPMODE
683 am__nodep
684 AMDEPBACKSLASH
685 AMDEP_FALSE
686 AMDEP_TRUE
687 am__quote
688 am__include
689 DEPDIR
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 host_os
698 host_vendor
699 host_cpu
700 host
701 build_os
702 build_vendor
703 build_cpu
704 build
705 LIBTOOL
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_silent_rules
775 enable_shared
776 enable_static
777 with_pic
778 enable_fast_install
779 enable_dependency_tracking
780 with_gnu_ld
781 with_sysroot
782 enable_libtool_lock
783 '
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 CPP
793 PKG_CONFIG
794 PKG_CONFIG_PATH
795 PKG_CONFIG_LIBDIR
796 CXX
797 CXXFLAGS
798 CCC
799 CXXCPP
800 libusb_CFLAGS
801 libusb_LIBS
802 avahi_client_CFLAGS
803 avahi_client_LIBS'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 includedir='${prefix}/include'
843 oldincludedir='/usr/include'
844 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
845 infodir='${datarootdir}/info'
846 htmldir='${docdir}'
847 dvidir='${docdir}'
848 pdfdir='${docdir}'
849 psdir='${docdir}'
850 libdir='${exec_prefix}/lib'
851 localedir='${datarootdir}/locale'
852 mandir='${datarootdir}/man'
853
854 ac_prev=
855 ac_dashdash=
856 for ac_option
857 do
858 # If the previous option needs an argument, assign it.
859 if test -n "$ac_prev"; then
860 eval $ac_prev=\$ac_option
861 ac_prev=
862 continue
863 fi
864
865 case $ac_option in
866 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
867 *=) ac_optarg= ;;
868 *) ac_optarg=yes ;;
869 esac
870
871 # Accept the important Cygnus configure options, so we can diagnose typos.
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1099
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1110
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1115
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1120
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1127
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1132
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1135
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1138
1139 -with-* | --with-*)
1140 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143 as_fn_error $? "invalid package name: $ac_useropt"
1144 ac_useropt_orig=$ac_useropt
1145 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146 case $ac_user_opts in
1147 *"
1148 "with_$ac_useropt"
1149 "*) ;;
1150 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1151 ac_unrecognized_sep=', ';;
1152 esac
1153 eval with_$ac_useropt=\$ac_optarg ;;
1154
1155 -without-* | --without-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1163 *"
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=no ;;
1170
1171 --x)
1172 # Obsolete; use --with-x.
1173 with_x=yes ;;
1174
1175 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1176 | --x-incl | --x-inc | --x-in | --x-i)
1177 ac_prev=x_includes ;;
1178 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1179 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1180 x_includes=$ac_optarg ;;
1181
1182 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1183 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1184 ac_prev=x_libraries ;;
1185 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1186 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1187 x_libraries=$ac_optarg ;;
1188
1189 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1190 Try \`$0 --help' for more information"
1191 ;;
1192
1193 *=*)
1194 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1195 # Reject names that are not valid shell variable names.
1196 case $ac_envvar in #(
1197 '' | [0-9]* | *[!_$as_cr_alnum]* )
1198 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 esac
1200 eval $ac_envvar=\$ac_optarg
1201 export $ac_envvar ;;
1202
1203 *)
1204 # FIXME: should be removed in autoconf 3.0.
1205 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1206 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1208 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1209 ;;
1210
1211 esac
1212 done
1213
1214 if test -n "$ac_prev"; then
1215 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1216 as_fn_error $? "missing argument to $ac_option"
1217 fi
1218
1219 if test -n "$ac_unrecognized_opts"; then
1220 case $enable_option_checking in
1221 no) ;;
1222 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1223 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1224 esac
1225 fi
1226
1227 # Check all directory arguments for consistency.
1228 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1229 datadir sysconfdir sharedstatedir localstatedir includedir \
1230 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1231 libdir localedir mandir
1232 do
1233 eval ac_val=\$$ac_var
1234 # Remove trailing slashes.
1235 case $ac_val in
1236 */ )
1237 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1238 eval $ac_var=\$ac_val;;
1239 esac
1240 # Be sure to have absolute directory names.
1241 case $ac_val in
1242 [\\/$]* | ?:[\\/]* ) continue;;
1243 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 esac
1245 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1246 done
1247
1248 # There might be people who depend on the old broken behavior: `$host'
1249 # used to hold the argument of --host etc.
1250 # FIXME: To remove some day.
1251 build=$build_alias
1252 host=$host_alias
1253 target=$target_alias
1254
1255 # FIXME: To remove some day.
1256 if test "x$host_alias" != x; then
1257 if test "x$build_alias" = x; then
1258 cross_compiling=maybe
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1261 fi
1262 fi
1263
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266
1267 test "$silent" = yes && exec 6>/dev/null
1268
1269
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 as_fn_error $? "working directory cannot be determined"
1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1275 as_fn_error $? "pwd does not report name of working directory"
1276
1277
1278 # Find the source files, if location was not specified.
1279 if test -z "$srcdir"; then
1280 ac_srcdir_defaulted=yes
1281 # Try the directory containing this script, then the parent directory.
1282 ac_confdir=`$as_dirname -- "$as_myself" ||
1283 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1284 X"$as_myself" : 'X\(//\)[^/]' \| \
1285 X"$as_myself" : 'X\(//\)$' \| \
1286 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1287 $as_echo X"$as_myself" |
1288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)[^/].*/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\).*/{
1301 s//\1/
1302 q
1303 }
1304 s/.*/./; q'`
1305 srcdir=$ac_confdir
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 srcdir=..
1308 fi
1309 else
1310 ac_srcdir_defaulted=no
1311 fi
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1314 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 fi
1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 ac_abs_confdir=`(
1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 pwd)`
1320 # When building in place, set srcdir=.
1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1322 srcdir=.
1323 fi
1324 # Remove unnecessary trailing slashes from srcdir.
1325 # Double slashes in file names in object file debugging info
1326 # mess up M-x gdb in Emacs.
1327 case $srcdir in
1328 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 esac
1330 for ac_var in $ac_precious_vars; do
1331 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1332 eval ac_env_${ac_var}_value=\$${ac_var}
1333 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1334 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1335 done
1336
1337 #
1338 # Report the --help message.
1339 #
1340 if test "$ac_init_help" = "long"; then
1341 # Omit some internal or obsolete options to make the list less imposing.
1342 # This message is too long to be a string in the A/UX 3.1 sh.
1343 cat <<_ACEOF
1344 \`configure' configures librevisa 0.0.20130812 to adapt to many kinds of systems.
1345
1346 Usage: $0 [OPTION]... [VAR=VALUE]...
1347
1348 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1349 VAR=VALUE. See below for descriptions of some of the useful variables.
1350
1351 Defaults for the options are specified in brackets.
1352
1353 Configuration:
1354 -h, --help display this help and exit
1355 --help=short display options specific to this package
1356 --help=recursive display the short help of all the included packages
1357 -V, --version display version information and exit
1358 -q, --quiet, --silent do not print \`checking ...' messages
1359 --cache-file=FILE cache test results in FILE [disabled]
1360 -C, --config-cache alias for \`--cache-file=config.cache'
1361 -n, --no-create do not create output files
1362 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363
1364 Installation directories:
1365 --prefix=PREFIX install architecture-independent files in PREFIX
1366 [$ac_default_prefix]
1367 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1368 [PREFIX]
1369
1370 By default, \`make install' will install all the files in
1371 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1372 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1373 for instance \`--prefix=\$HOME'.
1374
1375 For better control, use the options below.
1376
1377 Fine tuning of the installation directories:
1378 --bindir=DIR user executables [EPREFIX/bin]
1379 --sbindir=DIR system admin executables [EPREFIX/sbin]
1380 --libexecdir=DIR program executables [EPREFIX/libexec]
1381 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1382 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1383 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1384 --libdir=DIR object code libraries [EPREFIX/lib]
1385 --includedir=DIR C header files [PREFIX/include]
1386 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1387 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1388 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1389 --infodir=DIR info documentation [DATAROOTDIR/info]
1390 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1391 --mandir=DIR man documentation [DATAROOTDIR/man]
1392 --docdir=DIR documentation root [DATAROOTDIR/doc/librevisa]
1393 --htmldir=DIR html documentation [DOCDIR]
1394 --dvidir=DIR dvi documentation [DOCDIR]
1395 --pdfdir=DIR pdf documentation [DOCDIR]
1396 --psdir=DIR ps documentation [DOCDIR]
1397 _ACEOF
1398
1399 cat <<\_ACEOF
1400
1401 Program names:
1402 --program-prefix=PREFIX prepend PREFIX to installed program names
1403 --program-suffix=SUFFIX append SUFFIX to installed program names
1404 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1405
1406 System types:
1407 --build=BUILD configure for building on BUILD [guessed]
1408 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1409 _ACEOF
1410 fi
1411
1412 if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of librevisa 0.0.20130812:";;
1415 esac
1416 cat <<\_ACEOF
1417
1418 Optional Features:
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-silent-rules less verbose build output (undo: "make V=1")
1423 --disable-silent-rules verbose build output (undo: "make V=0")
1424 --enable-shared[=PKGS] build shared libraries [default=yes]
1425 --enable-static[=PKGS] build static libraries [default=yes]
1426 --enable-fast-install[=PKGS]
1427 optimize for fast installation [default=yes]
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433
1434 Optional Packages:
1435 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1438 both]
1439 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1440 --with-sysroot=DIR Search for dependent libraries within DIR
1441 (or the compiler's sysroot if not specified).
1442
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CPP C preprocessor
1452 PKG_CONFIG path to pkg-config utility
1453 PKG_CONFIG_PATH
1454 directories to add to pkg-config's search path
1455 PKG_CONFIG_LIBDIR
1456 path overriding pkg-config's built-in search path
1457 CXX C++ compiler command
1458 CXXFLAGS C++ compiler flags
1459 CXXCPP C++ preprocessor
1460 libusb_CFLAGS
1461 C compiler flags for libusb, overriding pkg-config
1462 libusb_LIBS linker flags for libusb, overriding pkg-config
1463 avahi_client_CFLAGS
1464 C compiler flags for avahi_client, overriding pkg-config
1465 avahi_client_LIBS
1466 linker flags for avahi_client, overriding pkg-config
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <[email protected]>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for guested configure.
1518 if test -f "$ac_srcdir/configure.gnu"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1521 elif test -f "$ac_srcdir/configure"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure" --help=recursive
1524 else
1525 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 fi || ac_status=$?
1527 cd "$ac_pwd" || { ac_status=$?; break; }
1528 done
1529 fi
1530
1531 test -n "$ac_init_help" && exit $ac_status
1532 if $ac_init_version; then
1533 cat <<\_ACEOF
1534 librevisa configure 0.0.20130812
1535 generated by GNU Autoconf 2.69
1536
1537 Copyright (C) 2012 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1540 _ACEOF
1541 exit
1542 fi
1543
1544 ## ------------------------ ##
1545 ## Autoconf initialization. ##
1546 ## ------------------------ ##
1547
1548 # ac_fn_c_try_compile LINENO
1549 # --------------------------
1550 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1551 ac_fn_c_try_compile ()
1552 {
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext
1555 if { { ac_try="$ac_compile"
1556 case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559 esac
1560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561 $as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_compile") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest.$ac_objext; then :
1574 ac_retval=0
1575 else
1576 $as_echo "$as_me: failed program was:" >&5
1577 sed 's/^/| /' conftest.$ac_ext >&5
1578
1579 ac_retval=1
1580 fi
1581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1582 as_fn_set_status $ac_retval
1583
1584 } # ac_fn_c_try_compile
1585
1586 # ac_fn_c_try_link LINENO
1587 # -----------------------
1588 # Try to link conftest.$ac_ext, and return whether this succeeded.
1589 ac_fn_c_try_link ()
1590 {
1591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1592 rm -f conftest.$ac_objext conftest$ac_exeext
1593 if { { ac_try="$ac_link"
1594 case "(($ac_try" in
1595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1596 *) ac_try_echo=$ac_try;;
1597 esac
1598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1599 $as_echo "$ac_try_echo"; } >&5
1600 (eval "$ac_link") 2>conftest.err
1601 ac_status=$?
1602 if test -s conftest.err; then
1603 grep -v '^ *+' conftest.err >conftest.er1
1604 cat conftest.er1 >&5
1605 mv -f conftest.er1 conftest.err
1606 fi
1607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1608 test $ac_status = 0; } && {
1609 test -z "$ac_c_werror_flag" ||
1610 test ! -s conftest.err
1611 } && test -s conftest$ac_exeext && {
1612 test "$cross_compiling" = yes ||
1613 test -x conftest$ac_exeext
1614 }; then :
1615 ac_retval=0
1616 else
1617 $as_echo "$as_me: failed program was:" >&5
1618 sed 's/^/| /' conftest.$ac_ext >&5
1619
1620 ac_retval=1
1621 fi
1622 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1623 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1624 # interfere with the next link command; also delete a directory that is
1625 # left behind by Apple's compiler. We do this before executing the actions.
1626 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1629
1630 } # ac_fn_c_try_link
1631
1632 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1633 # -------------------------------------------------------
1634 # Tests whether HEADER exists and can be compiled using the include files in
1635 # INCLUDES, setting the cache variable VAR accordingly.
1636 ac_fn_c_check_header_compile ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1640 $as_echo_n "checking for $2... " >&6; }
1641 if eval \${$3+:} false; then :
1642 $as_echo_n "(cached) " >&6
1643 else
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_compile "$LINENO"; then :
1650 eval "$3=yes"
1651 else
1652 eval "$3=no"
1653 fi
1654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1655 fi
1656 eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
1661 } # ac_fn_c_check_header_compile
1662
1663 # ac_fn_c_try_cpp LINENO
1664 # ----------------------
1665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_cpp ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1682 fi
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } > conftest.i && {
1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693 ac_retval=1
1694 fi
1695 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 as_fn_set_status $ac_retval
1697
1698 } # ac_fn_c_try_cpp
1699
1700 # ac_fn_c_try_run LINENO
1701 # ----------------------
1702 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1703 # that executables *can* be run.
1704 ac_fn_c_try_run ()
1705 {
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_link"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_link") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1718 { { case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_try") 2>&5
1725 ac_status=$?
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; }; }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: program exited with status $ac_status" >&5
1731 $as_echo "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734 ac_retval=$ac_status
1735 fi
1736 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status $ac_retval
1739
1740 } # ac_fn_c_try_run
1741
1742 # ac_fn_c_check_func LINENO FUNC VAR
1743 # ----------------------------------
1744 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1745 ac_fn_c_check_func ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1749 $as_echo_n "checking for $2... " >&6; }
1750 if eval \${$3+:} false; then :
1751 $as_echo_n "(cached) " >&6
1752 else
1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1757 #define $2 innocuous_$2
1758
1759 /* System header to define __stub macros and hopefully few prototypes,
1760 which can conflict with char $2 (); below.
1761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1762 <limits.h> exists even on freestanding compilers. */
1763
1764 #ifdef __STDC__
1765 # include <limits.h>
1766 #else
1767 # include <assert.h>
1768 #endif
1769
1770 #undef $2
1771
1772 /* Override any GCC internal prototype to avoid an error.
1773 Use char because int might match the return type of a GCC
1774 builtin and then its argument prototype would still apply. */
1775 #ifdef __cplusplus
1776 extern "C"
1777 #endif
1778 char $2 ();
1779 /* The GNU C library defines this for functions which it implements
1780 to always fail with ENOSYS. Some functions are actually named
1781 something starting with __ and the normal name is an alias. */
1782 #if defined __stub_$2 || defined __stub___$2
1783 choke me
1784 #endif
1785
1786 int
1787 main ()
1788 {
1789 return $2 ();
1790 ;
1791 return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_link "$LINENO"; then :
1795 eval "$3=yes"
1796 else
1797 eval "$3=no"
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext \
1800 conftest$ac_exeext conftest.$ac_ext
1801 fi
1802 eval ac_res=\$$3
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 $as_echo "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_func
1808
1809 # ac_fn_cxx_try_compile LINENO
1810 # ----------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_cxx_try_compile ()
1813 {
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_cxx_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841 fi
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845 } # ac_fn_cxx_try_compile
1846
1847 # ac_fn_cxx_try_cpp LINENO
1848 # ------------------------
1849 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_cxx_try_cpp ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 if { { ac_try="$ac_cpp conftest.$ac_ext"
1854 case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } > conftest.i && {
1869 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 }; then :
1872 ac_retval=0
1873 else
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877 ac_retval=1
1878 fi
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1881
1882 } # ac_fn_cxx_try_cpp
1883
1884 # ac_fn_cxx_try_link LINENO
1885 # -------------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_cxx_try_link ()
1888 {
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1904 fi
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_cxx_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 test -x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=1
1919 fi
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928 } # ac_fn_cxx_try_link
1929
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1934 # accordingly.
1935 ac_fn_c_check_header_mongrel ()
1936 {
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if eval \${$3+:} false; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 fi
1944 eval ac_res=\$$3
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1947 else
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $4
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_header_compiler=yes
1958 else
1959 ac_header_compiler=no
1960 fi
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1964
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1970 #include <$2>
1971 _ACEOF
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 ac_header_preproc=yes
1974 else
1975 ac_header_preproc=no
1976 fi
1977 rm -f conftest.err conftest.i conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1980
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1983 yes:no: )
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1988 ;;
1989 no:yes:* )
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2000 ( $as_echo "## --------------------------------------- ##
2001 ## Report this to [email protected] ##
2002 ## --------------------------------------- ##"
2003 ) | sed "s/^/$as_me: WARNING: /" >&2
2004 ;;
2005 esac
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007 $as_echo_n "checking for $2... " >&6; }
2008 if eval \${$3+:} false; then :
2009 $as_echo_n "(cached) " >&6
2010 else
2011 eval "$3=\$ac_header_compiler"
2012 fi
2013 eval ac_res=\$$3
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016 fi
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018
2019 } # ac_fn_c_check_header_mongrel
2020 cat >config.log <<_ACEOF
2021 This file contains any messages produced by compilers while
2022 running configure, to aid debugging if configure makes a mistake.
2023
2024 It was created by librevisa $as_me 0.0.20130812, which was
2025 generated by GNU Autoconf 2.69. Invocation command line was
2026
2027 $ $0 $@
2028
2029 _ACEOF
2030 exec 5>>config.log
2031 {
2032 cat <<_ASUNAME
2033 ## --------- ##
2034 ## Platform. ##
2035 ## --------- ##
2036
2037 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2038 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2039 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2040 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2041 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2042
2043 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2044 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2045
2046 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2047 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2048 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2049 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2050 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2051 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2052 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2053
2054 _ASUNAME
2055
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 for as_dir in $PATH
2058 do
2059 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=.
2061 $as_echo "PATH: $as_dir"
2062 done
2063 IFS=$as_save_IFS
2064
2065 } >&5
2066
2067 cat >&5 <<_ACEOF
2068
2069
2070 ## ----------- ##
2071 ## Core tests. ##
2072 ## ----------- ##
2073
2074 _ACEOF
2075
2076
2077 # Keep a trace of the command line.
2078 # Strip out --no-create and --no-recursion so they do not pile up.
2079 # Strip out --silent because we don't want to record it for future runs.
2080 # Also quote any args containing shell meta-characters.
2081 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_configure_args=
2083 ac_configure_args0=
2084 ac_configure_args1=
2085 ac_must_keep_next=false
2086 for ac_pass in 1 2
2087 do
2088 for ac_arg
2089 do
2090 case $ac_arg in
2091 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2092 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2093 | -silent | --silent | --silen | --sile | --sil)
2094 continue ;;
2095 *\'*)
2096 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097 esac
2098 case $ac_pass in
2099 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2100 2)
2101 as_fn_append ac_configure_args1 " '$ac_arg'"
2102 if test $ac_must_keep_next = true; then
2103 ac_must_keep_next=false # Got value, back to normal.
2104 else
2105 case $ac_arg in
2106 *=* | --config-cache | -C | -disable-* | --disable-* \
2107 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2108 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2109 | -with-* | --with-* | -without-* | --without-* | --x)
2110 case "$ac_configure_args0 " in
2111 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112 esac
2113 ;;
2114 -* ) ac_must_keep_next=true ;;
2115 esac
2116 fi
2117 as_fn_append ac_configure_args " '$ac_arg'"
2118 ;;
2119 esac
2120 done
2121 done
2122 { ac_configure_args0=; unset ac_configure_args0;}
2123 { ac_configure_args1=; unset ac_configure_args1;}
2124
2125 # When interrupted or exit'd, cleanup temporary files, and complete
2126 # config.log. We remove comments because anyway the quotes in there
2127 # would cause problems or look ugly.
2128 # WARNING: Use '\'' to represent an apostrophe within the trap.
2129 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2130 trap 'exit_status=$?
2131 # Save into config.log some information that might help in debugging.
2132 {
2133 echo
2134
2135 $as_echo "## ---------------- ##
2136 ## Cache variables. ##
2137 ## ---------------- ##"
2138 echo
2139 # The following way of writing the cache mishandles newlines in values,
2140 (
2141 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2142 eval ac_val=\$$ac_var
2143 case $ac_val in #(
2144 *${as_nl}*)
2145 case $ac_var in #(
2146 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2147 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2148 esac
2149 case $ac_var in #(
2150 _ | IFS | as_nl) ;; #(
2151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2152 *) { eval $ac_var=; unset $ac_var;} ;;
2153 esac ;;
2154 esac
2155 done
2156 (set) 2>&1 |
2157 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2158 *${as_nl}ac_space=\ *)
2159 sed -n \
2160 "s/'\''/'\''\\\\'\'''\''/g;
2161 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2162 ;; #(
2163 *)
2164 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2165 ;;
2166 esac |
2167 sort
2168 )
2169 echo
2170
2171 $as_echo "## ----------------- ##
2172 ## Output variables. ##
2173 ## ----------------- ##"
2174 echo
2175 for ac_var in $ac_subst_vars
2176 do
2177 eval ac_val=\$$ac_var
2178 case $ac_val in
2179 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2180 esac
2181 $as_echo "$ac_var='\''$ac_val'\''"
2182 done | sort
2183 echo
2184
2185 if test -n "$ac_subst_files"; then
2186 $as_echo "## ------------------- ##
2187 ## File substitutions. ##
2188 ## ------------------- ##"
2189 echo
2190 for ac_var in $ac_subst_files
2191 do
2192 eval ac_val=\$$ac_var
2193 case $ac_val in
2194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2195 esac
2196 $as_echo "$ac_var='\''$ac_val'\''"
2197 done | sort
2198 echo
2199 fi
2200
2201 if test -s confdefs.h; then
2202 $as_echo "## ----------- ##
2203 ## confdefs.h. ##
2204 ## ----------- ##"
2205 echo
2206 cat confdefs.h
2207 echo
2208 fi
2209 test "$ac_signal" != 0 &&
2210 $as_echo "$as_me: caught signal $ac_signal"
2211 $as_echo "$as_me: exit $exit_status"
2212 } >&5
2213 rm -f core *.core core.conftest.* &&
2214 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2215 exit $exit_status
2216 ' 0
2217 for ac_signal in 1 2 13 15; do
2218 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2219 done
2220 ac_signal=0
2221
2222 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2223 rm -f -r conftest* confdefs.h
2224
2225 $as_echo "/* confdefs.h */" > confdefs.h
2226
2227 # Predefined preprocessor variables.
2228
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_NAME "$PACKAGE_NAME"
2231 _ACEOF
2232
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2235 _ACEOF
2236
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2239 _ACEOF
2240
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_STRING "$PACKAGE_STRING"
2243 _ACEOF
2244
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2247 _ACEOF
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_URL "$PACKAGE_URL"
2251 _ACEOF
2252
2253
2254 # Let the site file select an alternate cache file if it wants to.
2255 # Prefer an explicitly selected file to automatically selected ones.
2256 ac_site_file1=NONE
2257 ac_site_file2=NONE
2258 if test -n "$CONFIG_SITE"; then
2259 # We do not want a PATH search for config.site.
2260 case $CONFIG_SITE in #((
2261 -*) ac_site_file1=./$CONFIG_SITE;;
2262 */*) ac_site_file1=$CONFIG_SITE;;
2263 *) ac_site_file1=./$CONFIG_SITE;;
2264 esac
2265 elif test "x$prefix" != xNONE; then
2266 ac_site_file1=$prefix/share/config.site
2267 ac_site_file2=$prefix/etc/config.site
2268 else
2269 ac_site_file1=$ac_default_prefix/share/config.site
2270 ac_site_file2=$ac_default_prefix/etc/config.site
2271 fi
2272 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2273 do
2274 test "x$ac_site_file" = xNONE && continue
2275 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2277 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2278 sed 's/^/| /' "$ac_site_file" >&5
2279 . "$ac_site_file" \
2280 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2281 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2282 as_fn_error $? "failed to load site script $ac_site_file
2283 See \`config.log' for more details" "$LINENO" 5; }
2284 fi
2285 done
2286
2287 if test -r "$cache_file"; then
2288 # Some versions of bash will fail to source /dev/null (special files
2289 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2290 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2292 $as_echo "$as_me: loading cache $cache_file" >&6;}
2293 case $cache_file in
2294 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2295 *) . "./$cache_file";;
2296 esac
2297 fi
2298 else
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2300 $as_echo "$as_me: creating cache $cache_file" >&6;}
2301 >$cache_file
2302 fi
2303
2304 # Check that the precious variables saved in the cache have kept the same
2305 # value.
2306 ac_cache_corrupted=false
2307 for ac_var in $ac_precious_vars; do
2308 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2309 eval ac_new_set=\$ac_env_${ac_var}_set
2310 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2311 eval ac_new_val=\$ac_env_${ac_var}_value
2312 case $ac_old_set,$ac_new_set in
2313 set,)
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2315 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2316 ac_cache_corrupted=: ;;
2317 ,set)
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2319 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2320 ac_cache_corrupted=: ;;
2321 ,);;
2322 *)
2323 if test "x$ac_old_val" != "x$ac_new_val"; then
2324 # differences in whitespace do not lead to failure.
2325 ac_old_val_w=`echo x $ac_old_val`
2326 ac_new_val_w=`echo x $ac_new_val`
2327 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2329 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2330 ac_cache_corrupted=:
2331 else
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2333 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2334 eval $ac_var=\$ac_old_val
2335 fi
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2337 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2339 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2340 fi;;
2341 esac
2342 # Pass precious variables to config.status.
2343 if test "$ac_new_set" = set; then
2344 case $ac_new_val in
2345 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2346 *) ac_arg=$ac_var=$ac_new_val ;;
2347 esac
2348 case " $ac_configure_args " in
2349 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2350 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2351 esac
2352 fi
2353 done
2354 if $ac_cache_corrupted; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2356 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2358 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2359 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2360 fi
2361 ## -------------------- ##
2362 ## Main body of script. ##
2363 ## -------------------- ##
2364
2365 ac_ext=c
2366 ac_cpp='$CPP $CPPFLAGS'
2367 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2368 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2369 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370
2371
2372 am__api_version='1.13'
2373
2374 ac_aux_dir=
2375 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2376 if test -f "$ac_dir/install-sh"; then
2377 ac_aux_dir=$ac_dir
2378 ac_install_sh="$ac_aux_dir/install-sh -c"
2379 break
2380 elif test -f "$ac_dir/install.sh"; then
2381 ac_aux_dir=$ac_dir
2382 ac_install_sh="$ac_aux_dir/install.sh -c"
2383 break
2384 elif test -f "$ac_dir/shtool"; then
2385 ac_aux_dir=$ac_dir
2386 ac_install_sh="$ac_aux_dir/shtool install -c"
2387 break
2388 fi
2389 done
2390 if test -z "$ac_aux_dir"; then
2391 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2392 fi
2393
2394 # These three variables are undocumented and unsupported,
2395 # and are intended to be withdrawn in a future Autoconf release.
2396 # They can cause serious problems if a builder's source tree is in a directory
2397 # whose full name contains unusual characters.
2398 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2399 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2400 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2401
2402
2403 # Find a good install program. We prefer a C program (faster),
2404 # so one script is as good as another. But avoid the broken or
2405 # incompatible versions:
2406 # SysV /etc/install, /usr/sbin/install
2407 # SunOS /usr/etc/install
2408 # IRIX /sbin/install
2409 # AIX /bin/install
2410 # AmigaOS /C/install, which installs bootblocks on floppy discs
2411 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2412 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2413 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2414 # OS/2's system install, which has a completely different semantic
2415 # ./install, which can be erroneously created by make from ./install.sh.
2416 # Reject install programs that cannot install multiple files.
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2418 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2419 if test -z "$INSTALL"; then
2420 if ${ac_cv_path_install+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 for as_dir in $PATH
2425 do
2426 IFS=$as_save_IFS
2427 test -z "$as_dir" && as_dir=.
2428 # Account for people who put trailing slashes in PATH elements.
2429 case $as_dir/ in #((
2430 ./ | .// | /[cC]/* | \
2431 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2432 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2433 /usr/ucb/* ) ;;
2434 *)
2435 # OSF1 and SCO ODT 3.0 have their own names for install.
2436 # Don't use installbsd from OSF since it installs stuff as root
2437 # by default.
2438 for ac_prog in ginstall scoinst install; do
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2441 if test $ac_prog = install &&
2442 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2443 # AIX install. It has an incompatible calling convention.
2444 :
2445 elif test $ac_prog = install &&
2446 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2447 # program-specific install script used by HP pwplus--don't use.
2448 :
2449 else
2450 rm -rf conftest.one conftest.two conftest.dir
2451 echo one > conftest.one
2452 echo two > conftest.two
2453 mkdir conftest.dir
2454 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2455 test -s conftest.one && test -s conftest.two &&
2456 test -s conftest.dir/conftest.one &&
2457 test -s conftest.dir/conftest.two
2458 then
2459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2460 break 3
2461 fi
2462 fi
2463 fi
2464 done
2465 done
2466 ;;
2467 esac
2468
2469 done
2470 IFS=$as_save_IFS
2471
2472 rm -rf conftest.one conftest.two conftest.dir
2473
2474 fi
2475 if test "${ac_cv_path_install+set}" = set; then
2476 INSTALL=$ac_cv_path_install
2477 else
2478 # As a last resort, use the slow shell script. Don't cache a
2479 # value for INSTALL within a source directory, because that will
2480 # break other packages using the cache if that directory is
2481 # removed, or if the value is a relative name.
2482 INSTALL=$ac_install_sh
2483 fi
2484 fi
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2486 $as_echo "$INSTALL" >&6; }
2487
2488 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2489 # It thinks the first close brace ends the variable substitution.
2490 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2491
2492 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2493
2494 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2497 $as_echo_n "checking whether build environment is sane... " >&6; }
2498 # Reject unsafe characters in $srcdir or the absolute working directory
2499 # name. Accept space and tab only in the latter.
2500 am_lf='
2501 '
2502 case `pwd` in
2503 *[\\\"\#\$\&\'\`$am_lf]*)
2504 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2505 esac
2506 case $srcdir in
2507 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2508 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2509 esac
2510
2511 # Do 'set' in a subshell so we don't clobber the current shell's
2512 # arguments. Must try -L first in case configure is actually a
2513 # symlink; some systems play weird games with the mod time of symlinks
2514 # (eg FreeBSD returns the mod time of the symlink's containing
2515 # directory).
2516 if (
2517 am_has_slept=no
2518 for am_try in 1 2; do
2519 echo "timestamp, slept: $am_has_slept" > conftest.file
2520 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2521 if test "$*" = "X"; then
2522 # -L didn't work.
2523 set X `ls -t "$srcdir/configure" conftest.file`
2524 fi
2525 if test "$*" != "X $srcdir/configure conftest.file" \
2526 && test "$*" != "X conftest.file $srcdir/configure"; then
2527
2528 # If neither matched, then we have a broken ls. This can happen
2529 # if, for instance, CONFIG_SHELL is bash and it inherits a
2530 # broken ls alias from the environment. This has actually
2531 # happened. Such a system could not be considered "sane".
2532 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2533 alias in your environment" "$LINENO" 5
2534 fi
2535 if test "$2" = conftest.file || test $am_try -eq 2; then
2536 break
2537 fi
2538 # Just in case.
2539 sleep 1
2540 am_has_slept=yes
2541 done
2542 test "$2" = conftest.file
2543 )
2544 then
2545 # Ok.
2546 :
2547 else
2548 as_fn_error $? "newly created file is older than distributed files!
2549 Check your system clock" "$LINENO" 5
2550 fi
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2552 $as_echo "yes" >&6; }
2553 # If we didn't sleep, we still need to ensure time stamps of config.status and
2554 # generated files are strictly newer.
2555 am_sleep_pid=
2556 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2557 ( sleep 1 ) &
2558 am_sleep_pid=$!
2559 fi
2560
2561 rm -f conftest.file
2562
2563 test "$program_prefix" != NONE &&
2564 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2565 # Use a double $ so make ignores it.
2566 test "$program_suffix" != NONE &&
2567 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2568 # Double any \ or $.
2569 # By default was `s,x,x', remove it if useless.
2570 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2571 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2572
2573 # expand $ac_aux_dir to an absolute path
2574 am_aux_dir=`cd $ac_aux_dir && pwd`
2575
2576 if test x"${MISSING+set}" != xset; then
2577 case $am_aux_dir in
2578 *\ * | *\ *)
2579 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2580 *)
2581 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2582 esac
2583 fi
2584 # Use eval to expand $SHELL
2585 if eval "$MISSING --is-lightweight"; then
2586 am_missing_run="$MISSING "
2587 else
2588 am_missing_run=
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2590 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2591 fi
2592
2593 if test x"${install_sh}" != xset; then
2594 case $am_aux_dir in
2595 *\ * | *\ *)
2596 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2597 *)
2598 install_sh="\${SHELL} $am_aux_dir/install-sh"
2599 esac
2600 fi
2601
2602 # Installed binaries are usually stripped using 'strip' when the user
2603 # run "make install-strip". However 'strip' might not be the right
2604 # tool to use in cross-compilation environments, therefore Automake
2605 # will honor the 'STRIP' environment variable to overrule this program.
2606 if test "$cross_compiling" != no; then
2607 if test -n "$ac_tool_prefix"; then
2608 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}strip; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_STRIP+:} false; then :
2613 $as_echo_n "(cached) " >&6
2614 else
2615 if test -n "$STRIP"; then
2616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2625 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 break 2
2628 fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 STRIP=$ac_cv_prog_STRIP
2636 if test -n "$STRIP"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2638 $as_echo "$STRIP" >&6; }
2639 else
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2642 fi
2643
2644
2645 fi
2646 if test -z "$ac_cv_prog_STRIP"; then
2647 ac_ct_STRIP=$STRIP
2648 # Extract the first word of "strip", so it can be a program name with args.
2649 set dummy strip; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$ac_ct_STRIP"; then
2656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2665 ac_cv_prog_ac_ct_STRIP="strip"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2676 if test -n "$ac_ct_STRIP"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2678 $as_echo "$ac_ct_STRIP" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2683
2684 if test "x$ac_ct_STRIP" = x; then
2685 STRIP=":"
2686 else
2687 case $cross_compiling:$ac_tool_warned in
2688 yes:)
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2691 ac_tool_warned=yes ;;
2692 esac
2693 STRIP=$ac_ct_STRIP
2694 fi
2695 else
2696 STRIP="$ac_cv_prog_STRIP"
2697 fi
2698
2699 fi
2700 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2701
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2703 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2704 if test -z "$MKDIR_P"; then
2705 if ${ac_cv_path_mkdir+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2710 do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_prog in mkdir gmkdir; do
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2716 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2717 'mkdir (GNU coreutils) '* | \
2718 'mkdir (coreutils) '* | \
2719 'mkdir (fileutils) '4.1*)
2720 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2721 break 3;;
2722 esac
2723 done
2724 done
2725 done
2726 IFS=$as_save_IFS
2727
2728 fi
2729
2730 test -d ./--version && rmdir ./--version
2731 if test "${ac_cv_path_mkdir+set}" = set; then
2732 MKDIR_P="$ac_cv_path_mkdir -p"
2733 else
2734 # As a last resort, use the slow shell script. Don't cache a
2735 # value for MKDIR_P within a source directory, because that will
2736 # break other packages using the cache if that directory is
2737 # removed, or if the value is a relative name.
2738 MKDIR_P="$ac_install_sh -d"
2739 fi
2740 fi
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2742 $as_echo "$MKDIR_P" >&6; }
2743
2744 for ac_prog in gawk mawk nawk awk
2745 do
2746 # Extract the first word of "$ac_prog", so it can be a program name with args.
2747 set dummy $ac_prog; ac_word=$2
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2749 $as_echo_n "checking for $ac_word... " >&6; }
2750 if ${ac_cv_prog_AWK+:} false; then :
2751 $as_echo_n "(cached) " >&6
2752 else
2753 if test -n "$AWK"; then
2754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2755 else
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759 IFS=$as_save_IFS
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_AWK="$ac_prog"
2764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi
2772 fi
2773 AWK=$ac_cv_prog_AWK
2774 if test -n "$AWK"; then
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2776 $as_echo "$AWK" >&6; }
2777 else
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 fi
2781
2782
2783 test -n "$AWK" && break
2784 done
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2787 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2788 set x ${MAKE-make}
2789 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2790 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2791 $as_echo_n "(cached) " >&6
2792 else
2793 cat >conftest.make <<\_ACEOF
2794 SHELL = /bin/sh
2795 all:
2796 @echo '@@@%%%=$(MAKE)=@@@%%%'
2797 _ACEOF
2798 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2799 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2800 *@@@%%%=?*=@@@%%%*)
2801 eval ac_cv_prog_make_${ac_make}_set=yes;;
2802 *)
2803 eval ac_cv_prog_make_${ac_make}_set=no;;
2804 esac
2805 rm -f conftest.make
2806 fi
2807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2809 $as_echo "yes" >&6; }
2810 SET_MAKE=
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 SET_MAKE="MAKE=${MAKE-make}"
2815 fi
2816
2817 rm -rf .tst 2>/dev/null
2818 mkdir .tst 2>/dev/null
2819 if test -d .tst; then
2820 am__leading_dot=.
2821 else
2822 am__leading_dot=_
2823 fi
2824 rmdir .tst 2>/dev/null
2825
2826 # Check whether --enable-silent-rules was given.
2827 if test "${enable_silent_rules+set}" = set; then :
2828 enableval=$enable_silent_rules;
2829 fi
2830
2831 case $enable_silent_rules in # (((
2832 yes) AM_DEFAULT_VERBOSITY=0;;
2833 no) AM_DEFAULT_VERBOSITY=1;;
2834 *) AM_DEFAULT_VERBOSITY=1;;
2835 esac
2836 am_make=${MAKE-make}
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2838 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2839 if ${am_cv_make_support_nested_variables+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if $as_echo 'TRUE=$(BAR$(V))
2843 BAR0=false
2844 BAR1=true
2845 V=1
2846 am__doit:
2847 @$(TRUE)
2848 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2849 am_cv_make_support_nested_variables=yes
2850 else
2851 am_cv_make_support_nested_variables=no
2852 fi
2853 fi
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2855 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2856 if test $am_cv_make_support_nested_variables = yes; then
2857 AM_V='$(V)'
2858 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2859 else
2860 AM_V=$AM_DEFAULT_VERBOSITY
2861 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2862 fi
2863 AM_BACKSLASH='\'
2864
2865 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2866 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2867 # is not polluted with repeated "-I."
2868 am__isrc=' -I$(srcdir)'
2869 # test to see if srcdir already configured
2870 if test -f $srcdir/config.status; then
2871 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2872 fi
2873 fi
2874
2875 # test whether we have cygpath
2876 if test -z "$CYGPATH_W"; then
2877 if (cygpath --version) >/dev/null 2>/dev/null; then
2878 CYGPATH_W='cygpath -w'
2879 else
2880 CYGPATH_W=echo
2881 fi
2882 fi
2883
2884
2885 # Define the identity of the package.
2886 PACKAGE='librevisa'
2887 VERSION='0.0.20130812'
2888
2889
2890 cat >>confdefs.h <<_ACEOF
2891 #define PACKAGE "$PACKAGE"
2892 _ACEOF
2893
2894
2895 cat >>confdefs.h <<_ACEOF
2896 #define VERSION "$VERSION"
2897 _ACEOF
2898
2899 # Some tools Automake needs.
2900
2901 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2902
2903
2904 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2905
2906
2907 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2908
2909
2910 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2911
2912
2913 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2914
2915 # For better backward compatibility. To be removed once Automake 1.9.x
2916 # dies out for good. For more background, see:
2917 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2918 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2919 mkdir_p='$(MKDIR_P)'
2920
2921 # We need awk for the "check" target. The system "awk" is bad on
2922 # some platforms.
2923 # Always define AMTAR for backward compatibility. Yes, it's still used
2924 # in the wild :-( We should find a proper way to deprecate it ...
2925 AMTAR='$${TAR-tar}'
2926
2927
2928 # We'll loop over all known methods to create a tar archive until one works.
2929 _am_tools='gnutar pax cpio none'
2930
2931 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2932
2933
2934
2935
2936
2937
2938 case `pwd` in
2939 *\ * | *\ *)
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2941 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2942 esac
2943
2944
2945
2946 macro_version='2.4.2'
2947 macro_revision='1.3337'
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961 ltmain="$ac_aux_dir/ltmain.sh"
2962
2963 # Make sure we can run config.sub.
2964 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2965 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2966
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2968 $as_echo_n "checking build system type... " >&6; }
2969 if ${ac_cv_build+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971 else
2972 ac_build_alias=$build_alias
2973 test "x$ac_build_alias" = x &&
2974 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2975 test "x$ac_build_alias" = x &&
2976 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2977 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2978 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2979
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2982 $as_echo "$ac_cv_build" >&6; }
2983 case $ac_cv_build in
2984 *-*-*) ;;
2985 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2986 esac
2987 build=$ac_cv_build
2988 ac_save_IFS=$IFS; IFS='-'
2989 set x $ac_cv_build
2990 shift
2991 build_cpu=$1
2992 build_vendor=$2
2993 shift; shift
2994 # Remember, the first character of IFS is used to create $*,
2995 # except with old shells:
2996 build_os=$*
2997 IFS=$ac_save_IFS
2998 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2999
3000
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3002 $as_echo_n "checking host system type... " >&6; }
3003 if ${ac_cv_host+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if test "x$host_alias" = x; then
3007 ac_cv_host=$ac_cv_build
3008 else
3009 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3010 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3011 fi
3012
3013 fi
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3015 $as_echo "$ac_cv_host" >&6; }
3016 case $ac_cv_host in
3017 *-*-*) ;;
3018 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3019 esac
3020 host=$ac_cv_host
3021 ac_save_IFS=$IFS; IFS='-'
3022 set x $ac_cv_host
3023 shift
3024 host_cpu=$1
3025 host_vendor=$2
3026 shift; shift
3027 # Remember, the first character of IFS is used to create $*,
3028 # except with old shells:
3029 host_os=$*
3030 IFS=$ac_save_IFS
3031 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3032
3033
3034 # Backslashify metacharacters that are still active within
3035 # double-quoted strings.
3036 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3037
3038 # Same as above, but do not quote variable references.
3039 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3040
3041 # Sed substitution to delay expansion of an escaped shell variable in a
3042 # double_quote_subst'ed string.
3043 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3044
3045 # Sed substitution to delay expansion of an escaped single quote.
3046 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3047
3048 # Sed substitution to avoid accidental globbing in evaled expressions
3049 no_glob_subst='s/\*/\\\*/g'
3050
3051 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3052 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3053 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3054
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3056 $as_echo_n "checking how to print strings... " >&6; }
3057 # Test print first, because it will be a builtin if present.
3058 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3059 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3060 ECHO='print -r --'
3061 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3062 ECHO='printf %s\n'
3063 else
3064 # Use this function as a fallback that always works.
3065 func_fallback_echo ()
3066 {
3067 eval 'cat <<_LTECHO_EOF
3068 $1
3069 _LTECHO_EOF'
3070 }
3071 ECHO='func_fallback_echo'
3072 fi
3073
3074 # func_echo_all arg...
3075 # Invoke $ECHO with all args, space-separated.
3076 func_echo_all ()
3077 {
3078 $ECHO ""
3079 }
3080
3081 case "$ECHO" in
3082 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3083 $as_echo "printf" >&6; } ;;
3084 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3085 $as_echo "print -r" >&6; } ;;
3086 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3087 $as_echo "cat" >&6; } ;;
3088 esac
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103 DEPDIR="${am__leading_dot}deps"
3104
3105 ac_config_commands="$ac_config_commands depfiles"
3106
3107
3108 am_make=${MAKE-make}
3109 cat > confinc << 'END'
3110 am__doit:
3111 @echo this is the am__doit target
3112 .PHONY: am__doit
3113 END
3114 # If we don't find an include directive, just comment out the code.
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3116 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3117 am__include="#"
3118 am__quote=
3119 _am_result=none
3120 # First try GNU make style include.
3121 echo "include confinc" > confmf
3122 # Ignore all kinds of additional output from 'make'.
3123 case `$am_make -s -f confmf 2> /dev/null` in #(
3124 *the\ am__doit\ target*)
3125 am__include=include
3126 am__quote=
3127 _am_result=GNU
3128 ;;
3129 esac
3130 # Now try BSD make style include.
3131 if test "$am__include" = "#"; then
3132 echo '.include "confinc"' > confmf
3133 case `$am_make -s -f confmf 2> /dev/null` in #(
3134 *the\ am__doit\ target*)
3135 am__include=.include
3136 am__quote="\""
3137 _am_result=BSD
3138 ;;
3139 esac
3140 fi
3141
3142
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3144 $as_echo "$_am_result" >&6; }
3145 rm -f confinc confmf
3146
3147 # Check whether --enable-dependency-tracking was given.
3148 if test "${enable_dependency_tracking+set}" = set; then :
3149 enableval=$enable_dependency_tracking;
3150 fi
3151
3152 if test "x$enable_dependency_tracking" != xno; then
3153 am_depcomp="$ac_aux_dir/depcomp"
3154 AMDEPBACKSLASH='\'
3155 am__nodep='_no'
3156 fi
3157 if test "x$enable_dependency_tracking" != xno; then
3158 AMDEP_TRUE=
3159 AMDEP_FALSE='#'
3160 else
3161 AMDEP_TRUE='#'
3162 AMDEP_FALSE=
3163 fi
3164
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 if test -n "$ac_tool_prefix"; then
3172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175 $as_echo_n "checking for $ac_word... " >&6; }
3176 if ${ac_cv_prog_CC+:} false; then :
3177 $as_echo_n "(cached) " >&6
3178 else
3179 if test -n "$CC"; then
3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193 done
3194 done
3195 IFS=$as_save_IFS
3196
3197 fi
3198 fi
3199 CC=$ac_cv_prog_CC
3200 if test -n "$CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3202 $as_echo "$CC" >&6; }
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209 fi
3210 if test -z "$ac_cv_prog_CC"; then
3211 ac_ct_CC=$CC
3212 # Extract the first word of "gcc", so it can be a program name with args.
3213 set dummy gcc; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 if test -n "$ac_ct_CC"; then
3220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH
3224 do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3229 ac_cv_prog_ac_ct_CC="gcc"
3230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231 break 2
3232 fi
3233 done
3234 done
3235 IFS=$as_save_IFS
3236
3237 fi
3238 fi
3239 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3240 if test -n "$ac_ct_CC"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3242 $as_echo "$ac_ct_CC" >&6; }
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 fi
3247
3248 if test "x$ac_ct_CC" = x; then
3249 CC=""
3250 else
3251 case $cross_compiling:$ac_tool_warned in
3252 yes:)
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3255 ac_tool_warned=yes ;;
3256 esac
3257 CC=$ac_ct_CC
3258 fi
3259 else
3260 CC="$ac_cv_prog_CC"
3261 fi
3262
3263 if test -z "$CC"; then
3264 if test -n "$ac_tool_prefix"; then
3265 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3266 set dummy ${ac_tool_prefix}cc; ac_word=$2
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 $as_echo_n "checking for $ac_word... " >&6; }
3269 if ${ac_cv_prog_CC+:} false; then :
3270 $as_echo_n "(cached) " >&6
3271 else
3272 if test -n "$CC"; then
3273 ac_cv_prog_CC="$CC" # Let the user override the test.
3274 else
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH
3277 do
3278 IFS=$as_save_IFS
3279 test -z "$as_dir" && as_dir=.
3280 for ac_exec_ext in '' $ac_executable_extensions; do
3281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3282 ac_cv_prog_CC="${ac_tool_prefix}cc"
3283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 break 2
3285 fi
3286 done
3287 done
3288 IFS=$as_save_IFS
3289
3290 fi
3291 fi
3292 CC=$ac_cv_prog_CC
3293 if test -n "$CC"; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3295 $as_echo "$CC" >&6; }
3296 else
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3299 fi
3300
3301
3302 fi
3303 fi
3304 if test -z "$CC"; then
3305 # Extract the first word of "cc", so it can be a program name with args.
3306 set dummy cc; ac_word=$2
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3308 $as_echo_n "checking for $ac_word... " >&6; }
3309 if ${ac_cv_prog_CC+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 if test -n "$CC"; then
3313 ac_cv_prog_CC="$CC" # Let the user override the test.
3314 else
3315 ac_prog_rejected=no
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3324 ac_prog_rejected=yes
3325 continue
3326 fi
3327 ac_cv_prog_CC="cc"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 if test $ac_prog_rejected = yes; then
3336 # We found a bogon in the path, so make sure we never use it.
3337 set dummy $ac_cv_prog_CC
3338 shift
3339 if test $# != 0; then
3340 # We chose a different compiler from the bogus one.
3341 # However, it has the same basename, so the bogon will be chosen
3342 # first if we set CC to just the basename; use the full file name.
3343 shift
3344 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3345 fi
3346 fi
3347 fi
3348 fi
3349 CC=$ac_cv_prog_CC
3350 if test -n "$CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3352 $as_echo "$CC" >&6; }
3353 else
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3356 fi
3357
3358
3359 fi
3360 if test -z "$CC"; then
3361 if test -n "$ac_tool_prefix"; then
3362 for ac_prog in cl.exe
3363 do
3364 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3365 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367 $as_echo_n "checking for $ac_word... " >&6; }
3368 if ${ac_cv_prog_CC+:} false; then :
3369 $as_echo_n "(cached) " >&6
3370 else
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 else
3374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375 for as_dir in $PATH
3376 do
3377 IFS=$as_save_IFS
3378 test -z "$as_dir" && as_dir=.
3379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3381 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 break 2
3384 fi
3385 done
3386 done
3387 IFS=$as_save_IFS
3388
3389 fi
3390 fi
3391 CC=$ac_cv_prog_CC
3392 if test -n "$CC"; then
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3394 $as_echo "$CC" >&6; }
3395 else
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397 $as_echo "no" >&6; }
3398 fi
3399
3400
3401 test -n "$CC" && break
3402 done
3403 fi
3404 if test -z "$CC"; then
3405 ac_ct_CC=$CC
3406 for ac_prog in cl.exe
3407 do
3408 # Extract the first word of "$ac_prog", so it can be a program name with args.
3409 set dummy $ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$ac_ct_CC"; then
3416 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425 ac_cv_prog_ac_ct_CC="$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 $as_echo "$ac_ct_CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445 test -n "$ac_ct_CC" && break
3446 done
3447
3448 if test "x$ac_ct_CC" = x; then
3449 CC=""
3450 else
3451 case $cross_compiling:$ac_tool_warned in
3452 yes:)
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455 ac_tool_warned=yes ;;
3456 esac
3457 CC=$ac_ct_CC
3458 fi
3459 fi
3460
3461 fi
3462
3463
3464 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3466 as_fn_error $? "no acceptable C compiler found in \$PATH
3467 See \`config.log' for more details" "$LINENO" 5; }
3468
3469 # Provide some information about the compiler.
3470 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3471 set X $ac_compile
3472 ac_compiler=$2
3473 for ac_option in --version -v -V -qversion; do
3474 { { ac_try="$ac_compiler $ac_option >&5"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3482 ac_status=$?
3483 if test -s conftest.err; then
3484 sed '10a\
3485 ... rest of stderr output deleted ...
3486 10q' conftest.err >conftest.er1
3487 cat conftest.er1 >&5
3488 fi
3489 rm -f conftest.er1 conftest.err
3490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3491 test $ac_status = 0; }
3492 done
3493
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3496
3497 int
3498 main ()
3499 {
3500
3501 ;
3502 return 0;
3503 }
3504 _ACEOF
3505 ac_clean_files_save=$ac_clean_files
3506 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3507 # Try to create an executable without -o first, disregard a.out.
3508 # It will help us diagnose broken compilers, and finding out an intuition
3509 # of exeext.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3511 $as_echo_n "checking whether the C compiler works... " >&6; }
3512 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3513
3514 # The possible output files:
3515 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3516
3517 ac_rmfiles=
3518 for ac_file in $ac_files
3519 do
3520 case $ac_file in
3521 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3522 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3523 esac
3524 done
3525 rm -f $ac_rmfiles
3526
3527 if { { ac_try="$ac_link_default"
3528 case "(($ac_try" in
3529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3531 esac
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link_default") 2>&5
3535 ac_status=$?
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }; then :
3538 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3540 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3541 # so that the user can short-circuit this test for compilers unknown to
3542 # Autoconf.
3543 for ac_file in $ac_files ''
3544 do
3545 test -f "$ac_file" || continue
3546 case $ac_file in
3547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3548 ;;
3549 [ab].out )
3550 # We found the default executable, but exeext='' is most
3551 # certainly right.
3552 break;;
3553 *.* )
3554 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3555 then :; else
3556 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3557 fi
3558 # We set ac_cv_exeext here because the later test for it is not
3559 # safe: cross compilers may not add the suffix if given an `-o'
3560 # argument, so we may need to know it at that point already.
3561 # Even if this section looks crufty: it has the advantage of
3562 # actually working.
3563 break;;
3564 * )
3565 break;;
3566 esac
3567 done
3568 test "$ac_cv_exeext" = no && ac_cv_exeext=
3569
3570 else
3571 ac_file=''
3572 fi
3573 if test -z "$ac_file"; then :
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3576 $as_echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3578
3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3581 as_fn_error 77 "C compiler cannot create executables
3582 See \`config.log' for more details" "$LINENO" 5; }
3583 else
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3585 $as_echo "yes" >&6; }
3586 fi
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3588 $as_echo_n "checking for C compiler default output file name... " >&6; }
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3590 $as_echo "$ac_file" >&6; }
3591 ac_exeext=$ac_cv_exeext
3592
3593 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3596 $as_echo_n "checking for suffix of executables... " >&6; }
3597 if { { ac_try="$ac_link"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }; then :
3608 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3609 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3610 # work properly (i.e., refer to `conftest.exe'), while it won't with
3611 # `rm'.
3612 for ac_file in conftest.exe conftest conftest.*; do
3613 test -f "$ac_file" || continue
3614 case $ac_file in
3615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3616 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3617 break;;
3618 * ) break;;
3619 esac
3620 done
3621 else
3622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3623 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3624 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3625 See \`config.log' for more details" "$LINENO" 5; }
3626 fi
3627 rm -f conftest conftest$ac_cv_exeext
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3629 $as_echo "$ac_cv_exeext" >&6; }
3630
3631 rm -f conftest.$ac_ext
3632 EXEEXT=$ac_cv_exeext
3633 ac_exeext=$EXEEXT
3634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635 /* end confdefs.h. */
3636 #include <stdio.h>
3637 int
3638 main ()
3639 {
3640 FILE *f = fopen ("conftest.out", "w");
3641 return ferror (f) || fclose (f) != 0;
3642
3643 ;
3644 return 0;
3645 }
3646 _ACEOF
3647 ac_clean_files="$ac_clean_files conftest.out"
3648 # Check that the compiler produces executables we can run. If not, either
3649 # the compiler is broken, or we cross compile.
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3651 $as_echo_n "checking whether we are cross compiling... " >&6; }
3652 if test "$cross_compiling" != yes; then
3653 { { ac_try="$ac_link"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_link") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3664 if { ac_try='./conftest$ac_cv_exeext'
3665 { { case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_try") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; }; then
3675 cross_compiling=no
3676 else
3677 if test "$cross_compiling" = maybe; then
3678 cross_compiling=yes
3679 else
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error $? "cannot run C compiled programs.
3683 If you meant to cross compile, use \`--host'.
3684 See \`config.log' for more details" "$LINENO" 5; }
3685 fi
3686 fi
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3689 $as_echo "$cross_compiling" >&6; }
3690
3691 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3692 ac_clean_files=$ac_clean_files_save
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3694 $as_echo_n "checking for suffix of object files... " >&6; }
3695 if ${ac_cv_objext+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699 /* end confdefs.h. */
3700
3701 int
3702 main ()
3703 {
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 rm -f conftest.o conftest.obj
3710 if { { ac_try="$ac_compile"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716 $as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_compile") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }; then :
3721 for ac_file in conftest.o conftest.obj conftest.*; do
3722 test -f "$ac_file" || continue;
3723 case $ac_file in
3724 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3725 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3726 break;;
3727 esac
3728 done
3729 else
3730 $as_echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error $? "cannot compute suffix of object files: cannot compile
3736 See \`config.log' for more details" "$LINENO" 5; }
3737 fi
3738 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3741 $as_echo "$ac_cv_objext" >&6; }
3742 OBJEXT=$ac_cv_objext
3743 ac_objext=$OBJEXT
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3745 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3746 if ${ac_cv_c_compiler_gnu+:} false; then :
3747 $as_echo_n "(cached) " >&6
3748 else
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3751
3752 int
3753 main ()
3754 {
3755 #ifndef __GNUC__
3756 choke me
3757 #endif
3758
3759 ;
3760 return 0;
3761 }
3762 _ACEOF
3763 if ac_fn_c_try_compile "$LINENO"; then :
3764 ac_compiler_gnu=yes
3765 else
3766 ac_compiler_gnu=no
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3770
3771 fi
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3773 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3774 if test $ac_compiler_gnu = yes; then
3775 GCC=yes
3776 else
3777 GCC=
3778 fi
3779 ac_test_CFLAGS=${CFLAGS+set}
3780 ac_save_CFLAGS=$CFLAGS
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3782 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3783 if ${ac_cv_prog_cc_g+:} false; then :
3784 $as_echo_n "(cached) " >&6
3785 else
3786 ac_save_c_werror_flag=$ac_c_werror_flag
3787 ac_c_werror_flag=yes
3788 ac_cv_prog_cc_g=no
3789 CFLAGS="-g"
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792
3793 int
3794 main ()
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"; then :
3802 ac_cv_prog_cc_g=yes
3803 else
3804 CFLAGS=""
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807
3808 int
3809 main ()
3810 {
3811
3812 ;
3813 return 0;
3814 }
3815 _ACEOF
3816 if ac_fn_c_try_compile "$LINENO"; then :
3817
3818 else
3819 ac_c_werror_flag=$ac_save_c_werror_flag
3820 CFLAGS="-g"
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823
3824 int
3825 main ()
3826 {
3827
3828 ;
3829 return 0;
3830 }
3831 _ACEOF
3832 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_cv_prog_cc_g=yes
3834 fi
3835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 fi
3837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3838 fi
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 ac_c_werror_flag=$ac_save_c_werror_flag
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3843 $as_echo "$ac_cv_prog_cc_g" >&6; }
3844 if test "$ac_test_CFLAGS" = set; then
3845 CFLAGS=$ac_save_CFLAGS
3846 elif test $ac_cv_prog_cc_g = yes; then
3847 if test "$GCC" = yes; then
3848 CFLAGS="-g -O2"
3849 else
3850 CFLAGS="-g"
3851 fi
3852 else
3853 if test "$GCC" = yes; then
3854 CFLAGS="-O2"
3855 else
3856 CFLAGS=
3857 fi
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3860 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3861 if ${ac_cv_prog_cc_c89+:} false; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 ac_cv_prog_cc_c89=no
3865 ac_save_CC=$CC
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3868 #include <stdarg.h>
3869 #include <stdio.h>
3870 struct stat;
3871 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3872 struct buf { int x; };
3873 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3874 static char *e (p, i)
3875 char **p;
3876 int i;
3877 {
3878 return p[i];
3879 }
3880 static char *f (char * (*g) (char **, int), char **p, ...)
3881 {
3882 char *s;
3883 va_list v;
3884 va_start (v,p);
3885 s = g (p, va_arg (v,int));
3886 va_end (v);
3887 return s;
3888 }
3889
3890 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3891 function prototypes and stuff, but not '\xHH' hex character constants.
3892 These don't provoke an error unfortunately, instead are silently treated
3893 as 'x'. The following induces an error, until -std is added to get
3894 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3895 array size at least. It's necessary to write '\x00'==0 to get something
3896 that's true only with -std. */
3897 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3898
3899 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3900 inside strings and character constants. */
3901 #define FOO(x) 'x'
3902 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3903
3904 int test (int i, double x);
3905 struct s1 {int (*f) (int a);};
3906 struct s2 {int (*f) (double a);};
3907 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3908 int argc;
3909 char **argv;
3910 int
3911 main ()
3912 {
3913 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3914 ;
3915 return 0;
3916 }
3917 _ACEOF
3918 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3919 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3920 do
3921 CC="$ac_save_CC $ac_arg"
3922 if ac_fn_c_try_compile "$LINENO"; then :
3923 ac_cv_prog_cc_c89=$ac_arg
3924 fi
3925 rm -f core conftest.err conftest.$ac_objext
3926 test "x$ac_cv_prog_cc_c89" != "xno" && break
3927 done
3928 rm -f conftest.$ac_ext
3929 CC=$ac_save_CC
3930
3931 fi
3932 # AC_CACHE_VAL
3933 case "x$ac_cv_prog_cc_c89" in
3934 x)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3936 $as_echo "none needed" >&6; } ;;
3937 xno)
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3939 $as_echo "unsupported" >&6; } ;;
3940 *)
3941 CC="$CC $ac_cv_prog_cc_c89"
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3943 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3944 esac
3945 if test "x$ac_cv_prog_cc_c89" != xno; then :
3946
3947 fi
3948
3949 ac_ext=c
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3954
3955 depcc="$CC" am_compiler_list=
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3958 $as_echo_n "checking dependency style of $depcc... " >&6; }
3959 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3963 # We make a subdir and do the tests there. Otherwise we can end up
3964 # making bogus files that we don't know about and never remove. For
3965 # instance it was reported that on HP-UX the gcc test will end up
3966 # making a dummy file named 'D' -- because '-MD' means "put the output
3967 # in D".
3968 rm -rf conftest.dir
3969 mkdir conftest.dir
3970 # Copy depcomp to subdir because otherwise we won't find it if we're
3971 # using a relative directory.
3972 cp "$am_depcomp" conftest.dir
3973 cd conftest.dir
3974 # We will build objects and dependencies in a subdirectory because
3975 # it helps to detect inapplicable dependency modes. For instance
3976 # both Tru64's cc and ICC support -MD to output dependencies as a
3977 # side effect of compilation, but ICC will put the dependencies in
3978 # the current directory while Tru64 will put them in the object
3979 # directory.
3980 mkdir sub
3981
3982 am_cv_CC_dependencies_compiler_type=none
3983 if test "$am_compiler_list" = ""; then
3984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3985 fi
3986 am__universal=false
3987 case " $depcc " in #(
3988 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3989 esac
3990
3991 for depmode in $am_compiler_list; do
3992 # Setup a source with many dependencies, because some compilers
3993 # like to wrap large dependency lists on column 80 (with \), and
3994 # we should not choose a depcomp mode which is confused by this.
3995 #
3996 # We need to recreate these files for each test, as the compiler may
3997 # overwrite some of them when testing with obscure command lines.
3998 # This happens at least with the AIX C compiler.
3999 : > sub/conftest.c
4000 for i in 1 2 3 4 5 6; do
4001 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4002 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4003 # Solaris 10 /bin/sh.
4004 echo '/* dummy */' > sub/conftst$i.h
4005 done
4006 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4007
4008 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4009 # mode. It turns out that the SunPro C++ compiler does not properly
4010 # handle '-M -o', and we need to detect this. Also, some Intel
4011 # versions had trouble with output in subdirs.
4012 am__obj=sub/conftest.${OBJEXT-o}
4013 am__minus_obj="-o $am__obj"
4014 case $depmode in
4015 gcc)
4016 # This depmode causes a compiler race in universal mode.
4017 test "$am__universal" = false || continue
4018 ;;
4019 nosideeffect)
4020 # After this tag, mechanisms are not by side-effect, so they'll
4021 # only be used when explicitly requested.
4022 if test "x$enable_dependency_tracking" = xyes; then
4023 continue
4024 else
4025 break
4026 fi
4027 ;;
4028 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4029 # This compiler won't grok '-c -o', but also, the minuso test has
4030 # not run yet. These depmodes are late enough in the game, and
4031 # so weak that their functioning should not be impacted.
4032 am__obj=conftest.${OBJEXT-o}
4033 am__minus_obj=
4034 ;;
4035 none) break ;;
4036 esac
4037 if depmode=$depmode \
4038 source=sub/conftest.c object=$am__obj \
4039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4040 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4041 >/dev/null 2>conftest.err &&
4042 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4044 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4046 # icc doesn't choke on unknown options, it will just issue warnings
4047 # or remarks (even with -Werror). So we grep stderr for any message
4048 # that says an option was ignored or not supported.
4049 # When given -MP, icc 7.0 and 7.1 complain thusly:
4050 # icc: Command line warning: ignoring option '-M'; no argument required
4051 # The diagnosis changed in icc 8.0:
4052 # icc: Command line remark: option '-MP' not supported
4053 if (grep 'ignoring option' conftest.err ||
4054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4055 am_cv_CC_dependencies_compiler_type=$depmode
4056 break
4057 fi
4058 fi
4059 done
4060
4061 cd ..
4062 rm -rf conftest.dir
4063 else
4064 am_cv_CC_dependencies_compiler_type=none
4065 fi
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4069 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4070 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4071
4072 if
4073 test "x$enable_dependency_tracking" != xno \
4074 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4075 am__fastdepCC_TRUE=
4076 am__fastdepCC_FALSE='#'
4077 else
4078 am__fastdepCC_TRUE='#'
4079 am__fastdepCC_FALSE=
4080 fi
4081
4082
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4084 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4085 if ${ac_cv_path_SED+:} false; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4089 for ac_i in 1 2 3 4 5 6 7; do
4090 ac_script="$ac_script$as_nl$ac_script"
4091 done
4092 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4093 { ac_script=; unset ac_script;}
4094 if test -z "$SED"; then
4095 ac_path_SED_found=false
4096 # Loop through the user's path and test for each of PROGNAME-LIST
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100 IFS=$as_save_IFS
4101 test -z "$as_dir" && as_dir=.
4102 for ac_prog in sed gsed; do
4103 for ac_exec_ext in '' $ac_executable_extensions; do
4104 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4105 as_fn_executable_p "$ac_path_SED" || continue
4106 # Check for GNU ac_path_SED and select it if it is found.
4107 # Check for GNU $ac_path_SED
4108 case `"$ac_path_SED" --version 2>&1` in
4109 *GNU*)
4110 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4111 *)
4112 ac_count=0
4113 $as_echo_n 0123456789 >"conftest.in"
4114 while :
4115 do
4116 cat "conftest.in" "conftest.in" >"conftest.tmp"
4117 mv "conftest.tmp" "conftest.in"
4118 cp "conftest.in" "conftest.nl"
4119 $as_echo '' >> "conftest.nl"
4120 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4122 as_fn_arith $ac_count + 1 && ac_count=$as_val
4123 if test $ac_count -gt ${ac_path_SED_max-0}; then
4124 # Best one so far, save it but keep looking for a better one
4125 ac_cv_path_SED="$ac_path_SED"
4126 ac_path_SED_max=$ac_count
4127 fi
4128 # 10*(2^10) chars as input seems more than enough
4129 test $ac_count -gt 10 && break
4130 done
4131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4132 esac
4133
4134 $ac_path_SED_found && break 3
4135 done
4136 done
4137 done
4138 IFS=$as_save_IFS
4139 if test -z "$ac_cv_path_SED"; then
4140 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4141 fi
4142 else
4143 ac_cv_path_SED=$SED
4144 fi
4145
4146 fi
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4148 $as_echo "$ac_cv_path_SED" >&6; }
4149 SED="$ac_cv_path_SED"
4150 rm -f conftest.sed
4151
4152 test -z "$SED" && SED=sed
4153 Xsed="$SED -e 1s/^X//"
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4166 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4167 if ${ac_cv_path_GREP+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 if test -z "$GREP"; then
4171 ac_path_GREP_found=false
4172 # Loop through the user's path and test for each of PROGNAME-LIST
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4175 do
4176 IFS=$as_save_IFS
4177 test -z "$as_dir" && as_dir=.
4178 for ac_prog in grep ggrep; do
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4181 as_fn_executable_p "$ac_path_GREP" || continue
4182 # Check for GNU ac_path_GREP and select it if it is found.
4183 # Check for GNU $ac_path_GREP
4184 case `"$ac_path_GREP" --version 2>&1` in
4185 *GNU*)
4186 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4187 *)
4188 ac_count=0
4189 $as_echo_n 0123456789 >"conftest.in"
4190 while :
4191 do
4192 cat "conftest.in" "conftest.in" >"conftest.tmp"
4193 mv "conftest.tmp" "conftest.in"
4194 cp "conftest.in" "conftest.nl"
4195 $as_echo 'GREP' >> "conftest.nl"
4196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4198 as_fn_arith $ac_count + 1 && ac_count=$as_val
4199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4200 # Best one so far, save it but keep looking for a better one
4201 ac_cv_path_GREP="$ac_path_GREP"
4202 ac_path_GREP_max=$ac_count
4203 fi
4204 # 10*(2^10) chars as input seems more than enough
4205 test $ac_count -gt 10 && break
4206 done
4207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4208 esac
4209
4210 $ac_path_GREP_found && break 3
4211 done
4212 done
4213 done
4214 IFS=$as_save_IFS
4215 if test -z "$ac_cv_path_GREP"; then
4216 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4217 fi
4218 else
4219 ac_cv_path_GREP=$GREP
4220 fi
4221
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4224 $as_echo "$ac_cv_path_GREP" >&6; }
4225 GREP="$ac_cv_path_GREP"
4226
4227
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4229 $as_echo_n "checking for egrep... " >&6; }
4230 if ${ac_cv_path_EGREP+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4234 then ac_cv_path_EGREP="$GREP -E"
4235 else
4236 if test -z "$EGREP"; then
4237 ac_path_EGREP_found=false
4238 # Loop through the user's path and test for each of PROGNAME-LIST
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4241 do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_prog in egrep; do
4245 for ac_exec_ext in '' $ac_executable_extensions; do
4246 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4247 as_fn_executable_p "$ac_path_EGREP" || continue
4248 # Check for GNU ac_path_EGREP and select it if it is found.
4249 # Check for GNU $ac_path_EGREP
4250 case `"$ac_path_EGREP" --version 2>&1` in
4251 *GNU*)
4252 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4253 *)
4254 ac_count=0
4255 $as_echo_n 0123456789 >"conftest.in"
4256 while :
4257 do
4258 cat "conftest.in" "conftest.in" >"conftest.tmp"
4259 mv "conftest.tmp" "conftest.in"
4260 cp "conftest.in" "conftest.nl"
4261 $as_echo 'EGREP' >> "conftest.nl"
4262 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4264 as_fn_arith $ac_count + 1 && ac_count=$as_val
4265 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4266 # Best one so far, save it but keep looking for a better one
4267 ac_cv_path_EGREP="$ac_path_EGREP"
4268 ac_path_EGREP_max=$ac_count
4269 fi
4270 # 10*(2^10) chars as input seems more than enough
4271 test $ac_count -gt 10 && break
4272 done
4273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4274 esac
4275
4276 $ac_path_EGREP_found && break 3
4277 done
4278 done
4279 done
4280 IFS=$as_save_IFS
4281 if test -z "$ac_cv_path_EGREP"; then
4282 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4283 fi
4284 else
4285 ac_cv_path_EGREP=$EGREP
4286 fi
4287
4288 fi
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4291 $as_echo "$ac_cv_path_EGREP" >&6; }
4292 EGREP="$ac_cv_path_EGREP"
4293
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4296 $as_echo_n "checking for fgrep... " >&6; }
4297 if ${ac_cv_path_FGREP+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4301 then ac_cv_path_FGREP="$GREP -F"
4302 else
4303 if test -z "$FGREP"; then
4304 ac_path_FGREP_found=false
4305 # Loop through the user's path and test for each of PROGNAME-LIST
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4308 do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
4311 for ac_prog in fgrep; do
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4314 as_fn_executable_p "$ac_path_FGREP" || continue
4315 # Check for GNU ac_path_FGREP and select it if it is found.
4316 # Check for GNU $ac_path_FGREP
4317 case `"$ac_path_FGREP" --version 2>&1` in
4318 *GNU*)
4319 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4320 *)
4321 ac_count=0
4322 $as_echo_n 0123456789 >"conftest.in"
4323 while :
4324 do
4325 cat "conftest.in" "conftest.in" >"conftest.tmp"
4326 mv "conftest.tmp" "conftest.in"
4327 cp "conftest.in" "conftest.nl"
4328 $as_echo 'FGREP' >> "conftest.nl"
4329 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4331 as_fn_arith $ac_count + 1 && ac_count=$as_val
4332 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4333 # Best one so far, save it but keep looking for a better one
4334 ac_cv_path_FGREP="$ac_path_FGREP"
4335 ac_path_FGREP_max=$ac_count
4336 fi
4337 # 10*(2^10) chars as input seems more than enough
4338 test $ac_count -gt 10 && break
4339 done
4340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4341 esac
4342
4343 $ac_path_FGREP_found && break 3
4344 done
4345 done
4346 done
4347 IFS=$as_save_IFS
4348 if test -z "$ac_cv_path_FGREP"; then
4349 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4350 fi
4351 else
4352 ac_cv_path_FGREP=$FGREP
4353 fi
4354
4355 fi
4356 fi
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4358 $as_echo "$ac_cv_path_FGREP" >&6; }
4359 FGREP="$ac_cv_path_FGREP"
4360
4361
4362 test -z "$GREP" && GREP=grep
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382 # Check whether --with-gnu-ld was given.
4383 if test "${with_gnu_ld+set}" = set; then :
4384 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4385 else
4386 with_gnu_ld=no
4387 fi
4388
4389 ac_prog=ld
4390 if test "$GCC" = yes; then
4391 # Check if gcc -print-prog-name=ld gives a path.
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4393 $as_echo_n "checking for ld used by $CC... " >&6; }
4394 case $host in
4395 *-*-mingw*)
4396 # gcc leaves a trailing carriage return which upsets mingw
4397 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4398 *)
4399 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4400 esac
4401 case $ac_prog in
4402 # Accept absolute paths.
4403 [\\/]* | ?:[\\/]*)
4404 re_direlt='/[^/][^/]*/\.\./'
4405 # Canonicalize the pathname of ld
4406 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4407 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4408 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4409 done
4410 test -z "$LD" && LD="$ac_prog"
4411 ;;
4412 "")
4413 # If it fails, then pretend we aren't using GCC.
4414 ac_prog=ld
4415 ;;
4416 *)
4417 # If it is relative, then search for the first ld in PATH.
4418 with_gnu_ld=unknown
4419 ;;
4420 esac
4421 elif test "$with_gnu_ld" = yes; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4423 $as_echo_n "checking for GNU ld... " >&6; }
4424 else
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4426 $as_echo_n "checking for non-GNU ld... " >&6; }
4427 fi
4428 if ${lt_cv_path_LD+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 if test -z "$LD"; then
4432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4433 for ac_dir in $PATH; do
4434 IFS="$lt_save_ifs"
4435 test -z "$ac_dir" && ac_dir=.
4436 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4437 lt_cv_path_LD="$ac_dir/$ac_prog"
4438 # Check to see if the program is GNU ld. I'd rather use --version,
4439 # but apparently some variants of GNU ld only accept -v.
4440 # Break only if it was the GNU/non-GNU ld that we prefer.
4441 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4442 *GNU* | *'with BFD'*)
4443 test "$with_gnu_ld" != no && break
4444 ;;
4445 *)
4446 test "$with_gnu_ld" != yes && break
4447 ;;
4448 esac
4449 fi
4450 done
4451 IFS="$lt_save_ifs"
4452 else
4453 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4454 fi
4455 fi
4456
4457 LD="$lt_cv_path_LD"
4458 if test -n "$LD"; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4460 $as_echo "$LD" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4464 fi
4465 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4467 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4468 if ${lt_cv_prog_gnu_ld+:} false; then :
4469 $as_echo_n "(cached) " >&6
4470 else
4471 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4472 case `$LD -v 2>&1 </dev/null` in
4473 *GNU* | *'with BFD'*)
4474 lt_cv_prog_gnu_ld=yes
4475 ;;
4476 *)
4477 lt_cv_prog_gnu_ld=no
4478 ;;
4479 esac
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4482 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4483 with_gnu_ld=$lt_cv_prog_gnu_ld
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4494 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4495 if ${lt_cv_path_NM+:} false; then :
4496 $as_echo_n "(cached) " >&6
4497 else
4498 if test -n "$NM"; then
4499 # Let the user override the test.
4500 lt_cv_path_NM="$NM"
4501 else
4502 lt_nm_to_check="${ac_tool_prefix}nm"
4503 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4504 lt_nm_to_check="$lt_nm_to_check nm"
4505 fi
4506 for lt_tmp_nm in $lt_nm_to_check; do
4507 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4508 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4509 IFS="$lt_save_ifs"
4510 test -z "$ac_dir" && ac_dir=.
4511 tmp_nm="$ac_dir/$lt_tmp_nm"
4512 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4513 # Check to see if the nm accepts a BSD-compat flag.
4514 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4515 # nm: unknown option "B" ignored
4516 # Tru64's nm complains that /dev/null is an invalid object file
4517 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4518 */dev/null* | *'Invalid file or object type'*)
4519 lt_cv_path_NM="$tmp_nm -B"
4520 break
4521 ;;
4522 *)
4523 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4524 */dev/null*)
4525 lt_cv_path_NM="$tmp_nm -p"
4526 break
4527 ;;
4528 *)
4529 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4530 continue # so that we can try to find one that supports BSD flags
4531 ;;
4532 esac
4533 ;;
4534 esac
4535 fi
4536 done
4537 IFS="$lt_save_ifs"
4538 done
4539 : ${lt_cv_path_NM=no}
4540 fi
4541 fi
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4543 $as_echo "$lt_cv_path_NM" >&6; }
4544 if test "$lt_cv_path_NM" != "no"; then
4545 NM="$lt_cv_path_NM"
4546 else
4547 # Didn't find any BSD compatible name lister, look for dumpbin.
4548 if test -n "$DUMPBIN"; then :
4549 # Let the user override the test.
4550 else
4551 if test -n "$ac_tool_prefix"; then
4552 for ac_prog in dumpbin "link -dump"
4553 do
4554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4557 $as_echo_n "checking for $ac_word... " >&6; }
4558 if ${ac_cv_prog_DUMPBIN+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 if test -n "$DUMPBIN"; then
4562 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567 IFS=$as_save_IFS
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573 break 2
4574 fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 DUMPBIN=$ac_cv_prog_DUMPBIN
4582 if test -n "$DUMPBIN"; then
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4584 $as_echo "$DUMPBIN" >&6; }
4585 else
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4587 $as_echo "no" >&6; }
4588 fi
4589
4590
4591 test -n "$DUMPBIN" && break
4592 done
4593 fi
4594 if test -z "$DUMPBIN"; then
4595 ac_ct_DUMPBIN=$DUMPBIN
4596 for ac_prog in dumpbin "link -dump"
4597 do
4598 # Extract the first word of "$ac_prog", so it can be a program name with args.
4599 set dummy $ac_prog; ac_word=$2
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4601 $as_echo_n "checking for $ac_word... " >&6; }
4602 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4603 $as_echo_n "(cached) " >&6
4604 else
4605 if test -n "$ac_ct_DUMPBIN"; then
4606 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4607 else
4608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 for as_dir in $PATH
4610 do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619 done
4620 done
4621 IFS=$as_save_IFS
4622
4623 fi
4624 fi
4625 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4626 if test -n "$ac_ct_DUMPBIN"; then
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4628 $as_echo "$ac_ct_DUMPBIN" >&6; }
4629 else
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631 $as_echo "no" >&6; }
4632 fi
4633
4634
4635 test -n "$ac_ct_DUMPBIN" && break
4636 done
4637
4638 if test "x$ac_ct_DUMPBIN" = x; then
4639 DUMPBIN=":"
4640 else
4641 case $cross_compiling:$ac_tool_warned in
4642 yes:)
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4645 ac_tool_warned=yes ;;
4646 esac
4647 DUMPBIN=$ac_ct_DUMPBIN
4648 fi
4649 fi
4650
4651 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4652 *COFF*)
4653 DUMPBIN="$DUMPBIN -symbols"
4654 ;;
4655 *)
4656 DUMPBIN=:
4657 ;;
4658 esac
4659 fi
4660
4661 if test "$DUMPBIN" != ":"; then
4662 NM="$DUMPBIN"
4663 fi
4664 fi
4665 test -z "$NM" && NM=nm
4666
4667
4668
4669
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4673 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4674 if ${lt_cv_nm_interface+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 lt_cv_nm_interface="BSD nm"
4678 echo "int some_variable = 0;" > conftest.$ac_ext
4679 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4680 (eval "$ac_compile" 2>conftest.err)
4681 cat conftest.err >&5
4682 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4683 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4684 cat conftest.err >&5
4685 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4686 cat conftest.out >&5
4687 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4688 lt_cv_nm_interface="MS dumpbin"
4689 fi
4690 rm -f conftest*
4691 fi
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4693 $as_echo "$lt_cv_nm_interface" >&6; }
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4696 $as_echo_n "checking whether ln -s works... " >&6; }
4697 LN_S=$as_ln_s
4698 if test "$LN_S" = "ln -s"; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4700 $as_echo "yes" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4703 $as_echo "no, using $LN_S" >&6; }
4704 fi
4705
4706 # find the maximum length of command line arguments
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4708 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4709 if ${lt_cv_sys_max_cmd_len+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 i=0
4713 teststring="ABCD"
4714
4715 case $build_os in
4716 msdosdjgpp*)
4717 # On DJGPP, this test can blow up pretty badly due to problems in libc
4718 # (any single argument exceeding 2000 bytes causes a buffer overrun
4719 # during glob expansion). Even if it were fixed, the result of this
4720 # check would be larger than it should be.
4721 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4722 ;;
4723
4724 gnu*)
4725 # Under GNU Hurd, this test is not required because there is
4726 # no limit to the length of command line arguments.
4727 # Libtool will interpret -1 as no limit whatsoever
4728 lt_cv_sys_max_cmd_len=-1;
4729 ;;
4730
4731 cygwin* | mingw* | cegcc*)
4732 # On Win9x/ME, this test blows up -- it succeeds, but takes
4733 # about 5 minutes as the teststring grows exponentially.
4734 # Worse, since 9x/ME are not pre-emptively multitasking,
4735 # you end up with a "frozen" computer, even though with patience
4736 # the test eventually succeeds (with a max line length of 256k).
4737 # Instead, let's just punt: use the minimum linelength reported by
4738 # all of the supported platforms: 8192 (on NT/2K/XP).
4739 lt_cv_sys_max_cmd_len=8192;
4740 ;;
4741
4742 mint*)
4743 # On MiNT this can take a long time and run out of memory.
4744 lt_cv_sys_max_cmd_len=8192;
4745 ;;
4746
4747 amigaos*)
4748 # On AmigaOS with pdksh, this test takes hours, literally.
4749 # So we just punt and use a minimum line length of 8192.
4750 lt_cv_sys_max_cmd_len=8192;
4751 ;;
4752
4753 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4754 # This has been around since 386BSD, at least. Likely further.
4755 if test -x /sbin/sysctl; then
4756 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4757 elif test -x /usr/sbin/sysctl; then
4758 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4759 else
4760 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4761 fi
4762 # And add a safety zone
4763 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4764 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4765 ;;
4766
4767 interix*)
4768 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4769 lt_cv_sys_max_cmd_len=196608
4770 ;;
4771
4772 os2*)
4773 # The test takes a long time on OS/2.
4774 lt_cv_sys_max_cmd_len=8192
4775 ;;
4776
4777 osf*)
4778 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4779 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4780 # nice to cause kernel panics so lets avoid the loop below.
4781 # First set a reasonable default.
4782 lt_cv_sys_max_cmd_len=16384
4783 #
4784 if test -x /sbin/sysconfig; then
4785 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4786 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4787 esac
4788 fi
4789 ;;
4790 sco3.2v5*)
4791 lt_cv_sys_max_cmd_len=102400
4792 ;;
4793 sysv5* | sco5v6* | sysv4.2uw2*)
4794 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4795 if test -n "$kargmax"; then
4796 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4797 else
4798 lt_cv_sys_max_cmd_len=32768
4799 fi
4800 ;;
4801 *)
4802 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4803 if test -n "$lt_cv_sys_max_cmd_len"; then
4804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4805 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4806 else
4807 # Make teststring a little bigger before we do anything with it.
4808 # a 1K string should be a reasonable start.
4809 for i in 1 2 3 4 5 6 7 8 ; do
4810 teststring=$teststring$teststring
4811 done
4812 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4813 # If test is not a shell built-in, we'll probably end up computing a
4814 # maximum length that is only half of the actual maximum length, but
4815 # we can't tell.
4816 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4817 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4818 test $i != 17 # 1/2 MB should be enough
4819 do
4820 i=`expr $i + 1`
4821 teststring=$teststring$teststring
4822 done
4823 # Only check the string length outside the loop.
4824 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4825 teststring=
4826 # Add a significant safety factor because C++ compilers can tack on
4827 # massive amounts of additional arguments before passing them to the
4828 # linker. It appears as though 1/2 is a usable value.
4829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4830 fi
4831 ;;
4832 esac
4833
4834 fi
4835
4836 if test -n $lt_cv_sys_max_cmd_len ; then
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4838 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4839 else
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4841 $as_echo "none" >&6; }
4842 fi
4843 max_cmd_len=$lt_cv_sys_max_cmd_len
4844
4845
4846
4847
4848
4849
4850 : ${CP="cp -f"}
4851 : ${MV="mv -f"}
4852 : ${RM="rm -f"}
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4855 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4856 # Try some XSI features
4857 xsi_shell=no
4858 ( _lt_dummy="a/b/c"
4859 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4860 = c,a/b,b/c, \
4861 && eval 'test $(( 1 + 1 )) -eq 2 \
4862 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4863 && xsi_shell=yes
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4865 $as_echo "$xsi_shell" >&6; }
4866
4867
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4869 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4870 lt_shell_append=no
4871 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4872 >/dev/null 2>&1 \
4873 && lt_shell_append=yes
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4875 $as_echo "$lt_shell_append" >&6; }
4876
4877
4878 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4879 lt_unset=unset
4880 else
4881 lt_unset=false
4882 fi
4883
4884
4885
4886
4887
4888 # test EBCDIC or ASCII
4889 case `echo X|tr X '\101'` in
4890 A) # ASCII based system
4891 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4892 lt_SP2NL='tr \040 \012'
4893 lt_NL2SP='tr \015\012 \040\040'
4894 ;;
4895 *) # EBCDIC based system
4896 lt_SP2NL='tr \100 \n'
4897 lt_NL2SP='tr \r\n \100\100'
4898 ;;
4899 esac
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4910 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4911 if ${lt_cv_to_host_file_cmd+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 case $host in
4915 *-*-mingw* )
4916 case $build in
4917 *-*-mingw* ) # actually msys
4918 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4919 ;;
4920 *-*-cygwin* )
4921 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4922 ;;
4923 * ) # otherwise, assume *nix
4924 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4925 ;;
4926 esac
4927 ;;
4928 *-*-cygwin* )
4929 case $build in
4930 *-*-mingw* ) # actually msys
4931 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4932 ;;
4933 *-*-cygwin* )
4934 lt_cv_to_host_file_cmd=func_convert_file_noop
4935 ;;
4936 * ) # otherwise, assume *nix
4937 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4938 ;;
4939 esac
4940 ;;
4941 * ) # unhandled hosts (and "normal" native builds)
4942 lt_cv_to_host_file_cmd=func_convert_file_noop
4943 ;;
4944 esac
4945
4946 fi
4947
4948 to_host_file_cmd=$lt_cv_to_host_file_cmd
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4950 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4951
4952
4953
4954
4955
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4957 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4958 if ${lt_cv_to_tool_file_cmd+:} false; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 #assume ordinary cross tools, or native build.
4962 lt_cv_to_tool_file_cmd=func_convert_file_noop
4963 case $host in
4964 *-*-mingw* )
4965 case $build in
4966 *-*-mingw* ) # actually msys
4967 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4968 ;;
4969 esac
4970 ;;
4971 esac
4972
4973 fi
4974
4975 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4977 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4978
4979
4980
4981
4982
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4984 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4985 if ${lt_cv_ld_reload_flag+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 lt_cv_ld_reload_flag='-r'
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4991 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4992 reload_flag=$lt_cv_ld_reload_flag
4993 case $reload_flag in
4994 "" | " "*) ;;
4995 *) reload_flag=" $reload_flag" ;;
4996 esac
4997 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4998 case $host_os in
4999 cygwin* | mingw* | pw32* | cegcc*)
5000 if test "$GCC" != yes; then
5001 reload_cmds=false
5002 fi
5003 ;;
5004 darwin*)
5005 if test "$GCC" = yes; then
5006 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5007 else
5008 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5009 fi
5010 ;;
5011 esac
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if ${ac_cv_prog_OBJDUMP+:} false; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$OBJDUMP"; then
5030 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5031 else
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH
5034 do
5035 IFS=$as_save_IFS
5036 test -z "$as_dir" && as_dir=.
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5041 break 2
5042 fi
5043 done
5044 done
5045 IFS=$as_save_IFS
5046
5047 fi
5048 fi
5049 OBJDUMP=$ac_cv_prog_OBJDUMP
5050 if test -n "$OBJDUMP"; then
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5052 $as_echo "$OBJDUMP" >&6; }
5053 else
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057
5058
5059 fi
5060 if test -z "$ac_cv_prog_OBJDUMP"; then
5061 ac_ct_OBJDUMP=$OBJDUMP
5062 # Extract the first word of "objdump", so it can be a program name with args.
5063 set dummy objdump; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -n "$ac_ct_OBJDUMP"; then
5070 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5071 else
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH
5074 do
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5090 if test -n "$ac_ct_OBJDUMP"; then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5092 $as_echo "$ac_ct_OBJDUMP" >&6; }
5093 else
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 $as_echo "no" >&6; }
5096 fi
5097
5098 if test "x$ac_ct_OBJDUMP" = x; then
5099 OBJDUMP="false"
5100 else
5101 case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105 ac_tool_warned=yes ;;
5106 esac
5107 OBJDUMP=$ac_ct_OBJDUMP
5108 fi
5109 else
5110 OBJDUMP="$ac_cv_prog_OBJDUMP"
5111 fi
5112
5113 test -z "$OBJDUMP" && OBJDUMP=objdump
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5124 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5125 if ${lt_cv_deplibs_check_method+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 lt_cv_file_magic_cmd='$MAGIC_CMD'
5129 lt_cv_file_magic_test_file=
5130 lt_cv_deplibs_check_method='unknown'
5131 # Need to set the preceding variable on all platforms that support
5132 # interlibrary dependencies.
5133 # 'none' -- dependencies not supported.
5134 # `unknown' -- same as none, but documents that we really don't know.
5135 # 'pass_all' -- all dependencies passed with no checks.
5136 # 'test_compile' -- check by making test program.
5137 # 'file_magic [[regex]]' -- check by looking for files in library path
5138 # which responds to the $file_magic_cmd with a given extended regex.
5139 # If you have `file' or equivalent on your system and you're not sure
5140 # whether `pass_all' will *always* work, you probably want this one.
5141
5142 case $host_os in
5143 aix[4-9]*)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146
5147 beos*)
5148 lt_cv_deplibs_check_method=pass_all
5149 ;;
5150
5151 bsdi[45]*)
5152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5153 lt_cv_file_magic_cmd='/usr/bin/file -L'
5154 lt_cv_file_magic_test_file=/shlib/libc.so
5155 ;;
5156
5157 cygwin*)
5158 # func_win32_libid is a shell function defined in ltmain.sh
5159 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5160 lt_cv_file_magic_cmd='func_win32_libid'
5161 ;;
5162
5163 mingw* | pw32*)
5164 # Base MSYS/MinGW do not provide the 'file' command needed by
5165 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5166 # unless we find 'file', for example because we are cross-compiling.
5167 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5168 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5169 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5170 lt_cv_file_magic_cmd='func_win32_libid'
5171 else
5172 # Keep this pattern in sync with the one in func_win32_libid.
5173 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5174 lt_cv_file_magic_cmd='$OBJDUMP -f'
5175 fi
5176 ;;
5177
5178 cegcc*)
5179 # use the weaker test based on 'objdump'. See mingw*.
5180 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5181 lt_cv_file_magic_cmd='$OBJDUMP -f'
5182 ;;
5183
5184 darwin* | rhapsody*)
5185 lt_cv_deplibs_check_method=pass_all
5186 ;;
5187
5188 freebsd* | dragonfly*)
5189 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5190 case $host_cpu in
5191 i*86 )
5192 # Not sure whether the presence of OpenBSD here was a mistake.
5193 # Let's accept both of them until this is cleared up.
5194 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5195 lt_cv_file_magic_cmd=/usr/bin/file
5196 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5197 ;;
5198 esac
5199 else
5200 lt_cv_deplibs_check_method=pass_all
5201 fi
5202 ;;
5203
5204 haiku*)
5205 lt_cv_deplibs_check_method=pass_all
5206 ;;
5207
5208 hpux10.20* | hpux11*)
5209 lt_cv_file_magic_cmd=/usr/bin/file
5210 case $host_cpu in
5211 ia64*)
5212 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5213 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5214 ;;
5215 hppa*64*)
5216 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]'
5217 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5218 ;;
5219 *)
5220 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5221 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5222 ;;
5223 esac
5224 ;;
5225
5226 interix[3-9]*)
5227 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5229 ;;
5230
5231 irix5* | irix6* | nonstopux*)
5232 case $LD in
5233 *-32|*"-32 ") libmagic=32-bit;;
5234 *-n32|*"-n32 ") libmagic=N32;;
5235 *-64|*"-64 ") libmagic=64-bit;;
5236 *) libmagic=never-match;;
5237 esac
5238 lt_cv_deplibs_check_method=pass_all
5239 ;;
5240
5241 # This must be glibc/ELF.
5242 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5243 lt_cv_deplibs_check_method=pass_all
5244 ;;
5245
5246 netbsd* | netbsdelf*-gnu)
5247 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5248 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5249 else
5250 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5251 fi
5252 ;;
5253
5254 newos6*)
5255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5256 lt_cv_file_magic_cmd=/usr/bin/file
5257 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5258 ;;
5259
5260 *nto* | *qnx*)
5261 lt_cv_deplibs_check_method=pass_all
5262 ;;
5263
5264 openbsd*)
5265 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5267 else
5268 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5269 fi
5270 ;;
5271
5272 osf3* | osf4* | osf5*)
5273 lt_cv_deplibs_check_method=pass_all
5274 ;;
5275
5276 rdos*)
5277 lt_cv_deplibs_check_method=pass_all
5278 ;;
5279
5280 solaris*)
5281 lt_cv_deplibs_check_method=pass_all
5282 ;;
5283
5284 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5285 lt_cv_deplibs_check_method=pass_all
5286 ;;
5287
5288 sysv4 | sysv4.3*)
5289 case $host_vendor in
5290 motorola)
5291 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]'
5292 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5293 ;;
5294 ncr)
5295 lt_cv_deplibs_check_method=pass_all
5296 ;;
5297 sequent)
5298 lt_cv_file_magic_cmd='/bin/file'
5299 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5300 ;;
5301 sni)
5302 lt_cv_file_magic_cmd='/bin/file'
5303 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5304 lt_cv_file_magic_test_file=/lib/libc.so
5305 ;;
5306 siemens)
5307 lt_cv_deplibs_check_method=pass_all
5308 ;;
5309 pc)
5310 lt_cv_deplibs_check_method=pass_all
5311 ;;
5312 esac
5313 ;;
5314
5315 tpf*)
5316 lt_cv_deplibs_check_method=pass_all
5317 ;;
5318 esac
5319
5320 fi
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5322 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5323
5324 file_magic_glob=
5325 want_nocaseglob=no
5326 if test "$build" = "$host"; then
5327 case $host_os in
5328 mingw* | pw32*)
5329 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5330 want_nocaseglob=yes
5331 else
5332 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5333 fi
5334 ;;
5335 esac
5336 fi
5337
5338 file_magic_cmd=$lt_cv_file_magic_cmd
5339 deplibs_check_method=$lt_cv_deplibs_check_method
5340 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363 if test -n "$ac_tool_prefix"; then
5364 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5365 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_prog_DLLTOOL+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370 else
5371 if test -n "$DLLTOOL"; then
5372 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 test -z "$as_dir" && as_dir=.
5379 for ac_exec_ext in '' $ac_executable_extensions; do
5380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5381 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 break 2
5384 fi
5385 done
5386 done
5387 IFS=$as_save_IFS
5388
5389 fi
5390 fi
5391 DLLTOOL=$ac_cv_prog_DLLTOOL
5392 if test -n "$DLLTOOL"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5394 $as_echo "$DLLTOOL" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399
5400
5401 fi
5402 if test -z "$ac_cv_prog_DLLTOOL"; then
5403 ac_ct_DLLTOOL=$DLLTOOL
5404 # Extract the first word of "dlltool", so it can be a program name with args.
5405 set dummy dlltool; ac_word=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test -n "$ac_ct_DLLTOOL"; then
5412 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5413 else
5414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5415 for as_dir in $PATH
5416 do
5417 IFS=$as_save_IFS
5418 test -z "$as_dir" && as_dir=.
5419 for ac_exec_ext in '' $ac_executable_extensions; do
5420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5421 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5423 break 2
5424 fi
5425 done
5426 done
5427 IFS=$as_save_IFS
5428
5429 fi
5430 fi
5431 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5432 if test -n "$ac_ct_DLLTOOL"; then
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5434 $as_echo "$ac_ct_DLLTOOL" >&6; }
5435 else
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439
5440 if test "x$ac_ct_DLLTOOL" = x; then
5441 DLLTOOL="false"
5442 else
5443 case $cross_compiling:$ac_tool_warned in
5444 yes:)
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5447 ac_tool_warned=yes ;;
5448 esac
5449 DLLTOOL=$ac_ct_DLLTOOL
5450 fi
5451 else
5452 DLLTOOL="$ac_cv_prog_DLLTOOL"
5453 fi
5454
5455 test -z "$DLLTOOL" && DLLTOOL=dlltool
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5467 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5468 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 lt_cv_sharedlib_from_linklib_cmd='unknown'
5472
5473 case $host_os in
5474 cygwin* | mingw* | pw32* | cegcc*)
5475 # two different shell functions defined in ltmain.sh
5476 # decide which to use based on capabilities of $DLLTOOL
5477 case `$DLLTOOL --help 2>&1` in
5478 *--identify-strict*)
5479 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5480 ;;
5481 *)
5482 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5483 ;;
5484 esac
5485 ;;
5486 *)
5487 # fallback: assume linklib IS sharedlib
5488 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5489 ;;
5490 esac
5491
5492 fi
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5494 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5495 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5496 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5497
5498
5499
5500
5501
5502
5503
5504
5505 if test -n "$ac_tool_prefix"; then
5506 for ac_prog in ar
5507 do
5508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_prog_AR+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 if test -n "$AR"; then
5516 ac_cv_prog_AR="$AR" # Let the user override the test.
5517 else
5518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521 IFS=$as_save_IFS
5522 test -z "$as_dir" && as_dir=.
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527 break 2
5528 fi
5529 done
5530 done
5531 IFS=$as_save_IFS
5532
5533 fi
5534 fi
5535 AR=$ac_cv_prog_AR
5536 if test -n "$AR"; then
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5538 $as_echo "$AR" >&6; }
5539 else
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541 $as_echo "no" >&6; }
5542 fi
5543
5544
5545 test -n "$AR" && break
5546 done
5547 fi
5548 if test -z "$AR"; then
5549 ac_ct_AR=$AR
5550 for ac_prog in ar
5551 do
5552 # Extract the first word of "$ac_prog", so it can be a program name with args.
5553 set dummy $ac_prog; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test -n "$ac_ct_AR"; then
5560 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_ac_ct_AR="$ac_prog"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573 done
5574 done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5580 if test -n "$ac_ct_AR"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5582 $as_echo "$ac_ct_AR" >&6; }
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588
5589 test -n "$ac_ct_AR" && break
5590 done
5591
5592 if test "x$ac_ct_AR" = x; then
5593 AR="false"
5594 else
5595 case $cross_compiling:$ac_tool_warned in
5596 yes:)
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5600 esac
5601 AR=$ac_ct_AR
5602 fi
5603 fi
5604
5605 : ${AR=ar}
5606 : ${AR_FLAGS=cru}
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5619 $as_echo_n "checking for archiver @FILE support... " >&6; }
5620 if ${lt_cv_ar_at_file+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 lt_cv_ar_at_file=no
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626
5627 int
5628 main ()
5629 {
5630
5631 ;
5632 return 0;
5633 }
5634 _ACEOF
5635 if ac_fn_c_try_compile "$LINENO"; then :
5636 echo conftest.$ac_objext > conftest.lst
5637 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5639 (eval $lt_ar_try) 2>&5
5640 ac_status=$?
5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5642 test $ac_status = 0; }
5643 if test "$ac_status" -eq 0; then
5644 # Ensure the archiver fails upon bogus file names.
5645 rm -f conftest.$ac_objext libconftest.a
5646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5647 (eval $lt_ar_try) 2>&5
5648 ac_status=$?
5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5650 test $ac_status = 0; }
5651 if test "$ac_status" -ne 0; then
5652 lt_cv_ar_at_file=@
5653 fi
5654 fi
5655 rm -f conftest.* libconftest.a
5656
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5659
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5662 $as_echo "$lt_cv_ar_at_file" >&6; }
5663
5664 if test "x$lt_cv_ar_at_file" = xno; then
5665 archiver_list_spec=
5666 else
5667 archiver_list_spec=$lt_cv_ar_at_file
5668 fi
5669
5670
5671
5672
5673
5674
5675
5676 if test -n "$ac_tool_prefix"; then
5677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5678 set dummy ${ac_tool_prefix}strip; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_STRIP+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$STRIP"; then
5685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698 done
5699 done
5700 IFS=$as_save_IFS
5701
5702 fi
5703 fi
5704 STRIP=$ac_cv_prog_STRIP
5705 if test -n "$STRIP"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5707 $as_echo "$STRIP" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712
5713
5714 fi
5715 if test -z "$ac_cv_prog_STRIP"; then
5716 ac_ct_STRIP=$STRIP
5717 # Extract the first word of "strip", so it can be a program name with args.
5718 set dummy strip; ac_word=$2
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5720 $as_echo_n "checking for $ac_word... " >&6; }
5721 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 if test -n "$ac_ct_STRIP"; then
5725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5726 else
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5729 do
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5734 ac_cv_prog_ac_ct_STRIP="strip"
5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5736 break 2
5737 fi
5738 done
5739 done
5740 IFS=$as_save_IFS
5741
5742 fi
5743 fi
5744 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5745 if test -n "$ac_ct_STRIP"; then
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5747 $as_echo "$ac_ct_STRIP" >&6; }
5748 else
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753 if test "x$ac_ct_STRIP" = x; then
5754 STRIP=":"
5755 else
5756 case $cross_compiling:$ac_tool_warned in
5757 yes:)
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760 ac_tool_warned=yes ;;
5761 esac
5762 STRIP=$ac_ct_STRIP
5763 fi
5764 else
5765 STRIP="$ac_cv_prog_STRIP"
5766 fi
5767
5768 test -z "$STRIP" && STRIP=:
5769
5770
5771
5772
5773
5774
5775 if test -n "$ac_tool_prefix"; then
5776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5777 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5779 $as_echo_n "checking for $ac_word... " >&6; }
5780 if ${ac_cv_prog_RANLIB+:} false; then :
5781 $as_echo_n "(cached) " >&6
5782 else
5783 if test -n "$RANLIB"; then
5784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5785 else
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 for as_dir in $PATH
5788 do
5789 IFS=$as_save_IFS
5790 test -z "$as_dir" && as_dir=.
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5795 break 2
5796 fi
5797 done
5798 done
5799 IFS=$as_save_IFS
5800
5801 fi
5802 fi
5803 RANLIB=$ac_cv_prog_RANLIB
5804 if test -n "$RANLIB"; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5806 $as_echo "$RANLIB" >&6; }
5807 else
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 fi
5811
5812
5813 fi
5814 if test -z "$ac_cv_prog_RANLIB"; then
5815 ac_ct_RANLIB=$RANLIB
5816 # Extract the first word of "ranlib", so it can be a program name with args.
5817 set dummy ranlib; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5819 $as_echo_n "checking for $ac_word... " >&6; }
5820 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5821 $as_echo_n "(cached) " >&6
5822 else
5823 if test -n "$ac_ct_RANLIB"; then
5824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5825 else
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827 for as_dir in $PATH
5828 do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5833 ac_cv_prog_ac_ct_RANLIB="ranlib"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837 done
5838 done
5839 IFS=$as_save_IFS
5840
5841 fi
5842 fi
5843 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5844 if test -n "$ac_ct_RANLIB"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5846 $as_echo "$ac_ct_RANLIB" >&6; }
5847 else
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5849 $as_echo "no" >&6; }
5850 fi
5851
5852 if test "x$ac_ct_RANLIB" = x; then
5853 RANLIB=":"
5854 else
5855 case $cross_compiling:$ac_tool_warned in
5856 yes:)
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5859 ac_tool_warned=yes ;;
5860 esac
5861 RANLIB=$ac_ct_RANLIB
5862 fi
5863 else
5864 RANLIB="$ac_cv_prog_RANLIB"
5865 fi
5866
5867 test -z "$RANLIB" && RANLIB=:
5868
5869
5870
5871
5872
5873
5874 # Determine commands to create old-style static archives.
5875 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5876 old_postinstall_cmds='chmod 644 $oldlib'
5877 old_postuninstall_cmds=
5878
5879 if test -n "$RANLIB"; then
5880 case $host_os in
5881 openbsd*)
5882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5883 ;;
5884 *)
5885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5886 ;;
5887 esac
5888 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5889 fi
5890
5891 case $host_os in
5892 darwin*)
5893 lock_old_archive_extraction=yes ;;
5894 *)
5895 lock_old_archive_extraction=no ;;
5896 esac
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
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 # If no C compiler was specified, use CC.
5937 LTCC=${LTCC-"$CC"}
5938
5939 # If no C compiler flags were specified, use CFLAGS.
5940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5941
5942 # Allow CC to be a program name with arguments.
5943 compiler=$CC
5944
5945
5946 # Check for command to grab the raw symbol name followed by C symbol from nm.
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5948 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5949 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5950 $as_echo_n "(cached) " >&6
5951 else
5952
5953 # These are sane defaults that work on at least a few old systems.
5954 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5955
5956 # Character class describing NM global symbol codes.
5957 symcode='[BCDEGRST]'
5958
5959 # Regexp to match symbols that can be accessed directly from C.
5960 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5961
5962 # Define system-specific variables.
5963 case $host_os in
5964 aix*)
5965 symcode='[BCDT]'
5966 ;;
5967 cygwin* | mingw* | pw32* | cegcc*)
5968 symcode='[ABCDGISTW]'
5969 ;;
5970 hpux*)
5971 if test "$host_cpu" = ia64; then
5972 symcode='[ABCDEGRST]'
5973 fi
5974 ;;
5975 irix* | nonstopux*)
5976 symcode='[BCDEGRST]'
5977 ;;
5978 osf*)
5979 symcode='[BCDEGQRST]'
5980 ;;
5981 solaris*)
5982 symcode='[BDRT]'
5983 ;;
5984 sco3.2v5*)
5985 symcode='[DT]'
5986 ;;
5987 sysv4.2uw2*)
5988 symcode='[DT]'
5989 ;;
5990 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5991 symcode='[ABDT]'
5992 ;;
5993 sysv4)
5994 symcode='[DFNSTU]'
5995 ;;
5996 esac
5997
5998 # If we're using GNU nm, then use its standard symbol codes.
5999 case `$NM -V 2>&1` in
6000 *GNU* | *'with BFD'*)
6001 symcode='[ABCDGIRSTW]' ;;
6002 esac
6003
6004 # Transform an extracted symbol line into a proper C declaration.
6005 # Some systems (esp. on ia64) link data and code symbols differently,
6006 # so use this general approach.
6007 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6008
6009 # Transform an extracted symbol line into symbol name and symbol address
6010 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6011 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6012
6013 # Handle CRLF in mingw tool chain
6014 opt_cr=
6015 case $build_os in
6016 mingw*)
6017 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6018 ;;
6019 esac
6020
6021 # Try without a prefix underscore, then with it.
6022 for ac_symprfx in "" "_"; do
6023
6024 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6025 symxfrm="\\1 $ac_symprfx\\2 \\2"
6026
6027 # Write the raw and C identifiers.
6028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6029 # Fake it for dumpbin and say T for any non-static function
6030 # and D for any global variable.
6031 # Also find C++ and __fastcall symbols from MSVC++,
6032 # which start with @ or ?.
6033 lt_cv_sys_global_symbol_pipe="$AWK '"\
6034 " {last_section=section; section=\$ 3};"\
6035 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6036 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6037 " \$ 0!~/External *\|/{next};"\
6038 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6039 " {if(hide[section]) next};"\
6040 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6041 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6042 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6043 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6044 " ' prfx=^$ac_symprfx"
6045 else
6046 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6047 fi
6048 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6049
6050 # Check to see that the pipe works correctly.
6051 pipe_works=no
6052
6053 rm -f conftest*
6054 cat > conftest.$ac_ext <<_LT_EOF
6055 #ifdef __cplusplus
6056 extern "C" {
6057 #endif
6058 char nm_test_var;
6059 void nm_test_func(void);
6060 void nm_test_func(void){}
6061 #ifdef __cplusplus
6062 }
6063 #endif
6064 int main(){nm_test_var='a';nm_test_func();return(0);}
6065 _LT_EOF
6066
6067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6068 (eval $ac_compile) 2>&5
6069 ac_status=$?
6070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6071 test $ac_status = 0; }; then
6072 # Now try to grab the symbols.
6073 nlist=conftest.nm
6074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6075 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6076 ac_status=$?
6077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6078 test $ac_status = 0; } && test -s "$nlist"; then
6079 # Try sorting and uniquifying the output.
6080 if sort "$nlist" | uniq > "$nlist"T; then
6081 mv -f "$nlist"T "$nlist"
6082 else
6083 rm -f "$nlist"T
6084 fi
6085
6086 # Make sure that we snagged all the symbols we need.
6087 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6088 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6089 cat <<_LT_EOF > conftest.$ac_ext
6090 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6091 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6092 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6093 relocations are performed -- see ld's documentation on pseudo-relocs. */
6094 # define LT_DLSYM_CONST
6095 #elif defined(__osf__)
6096 /* This system does not cope well with relocations in const data. */
6097 # define LT_DLSYM_CONST
6098 #else
6099 # define LT_DLSYM_CONST const
6100 #endif
6101
6102 #ifdef __cplusplus
6103 extern "C" {
6104 #endif
6105
6106 _LT_EOF
6107 # Now generate the symbol file.
6108 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6109
6110 cat <<_LT_EOF >> conftest.$ac_ext
6111
6112 /* The mapping between symbol names and symbols. */
6113 LT_DLSYM_CONST struct {
6114 const char *name;
6115 void *address;
6116 }
6117 lt__PROGRAM__LTX_preloaded_symbols[] =
6118 {
6119 { "@PROGRAM@", (void *) 0 },
6120 _LT_EOF
6121 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6122 cat <<\_LT_EOF >> conftest.$ac_ext
6123 {0, (void *) 0}
6124 };
6125
6126 /* This works around a problem in FreeBSD linker */
6127 #ifdef FREEBSD_WORKAROUND
6128 static const void *lt_preloaded_setup() {
6129 return lt__PROGRAM__LTX_preloaded_symbols;
6130 }
6131 #endif
6132
6133 #ifdef __cplusplus
6134 }
6135 #endif
6136 _LT_EOF
6137 # Now try linking the two files.
6138 mv conftest.$ac_objext conftstm.$ac_objext
6139 lt_globsym_save_LIBS=$LIBS
6140 lt_globsym_save_CFLAGS=$CFLAGS
6141 LIBS="conftstm.$ac_objext"
6142 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6144 (eval $ac_link) 2>&5
6145 ac_status=$?
6146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6147 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6148 pipe_works=yes
6149 fi
6150 LIBS=$lt_globsym_save_LIBS
6151 CFLAGS=$lt_globsym_save_CFLAGS
6152 else
6153 echo "cannot find nm_test_func in $nlist" >&5
6154 fi
6155 else
6156 echo "cannot find nm_test_var in $nlist" >&5
6157 fi
6158 else
6159 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6160 fi
6161 else
6162 echo "$progname: failed program was:" >&5
6163 cat conftest.$ac_ext >&5
6164 fi
6165 rm -rf conftest* conftst*
6166
6167 # Do not use the global_symbol_pipe unless it works.
6168 if test "$pipe_works" = yes; then
6169 break
6170 else
6171 lt_cv_sys_global_symbol_pipe=
6172 fi
6173 done
6174
6175 fi
6176
6177 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6178 lt_cv_sys_global_symbol_to_cdecl=
6179 fi
6180 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6182 $as_echo "failed" >&6; }
6183 else
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6185 $as_echo "ok" >&6; }
6186 fi
6187
6188 # Response file support.
6189 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6190 nm_file_list_spec='@'
6191 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6192 nm_file_list_spec='@'
6193 fi
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6222 $as_echo_n "checking for sysroot... " >&6; }
6223
6224 # Check whether --with-sysroot was given.
6225 if test "${with_sysroot+set}" = set; then :
6226 withval=$with_sysroot;
6227 else
6228 with_sysroot=no
6229 fi
6230
6231
6232 lt_sysroot=
6233 case ${with_sysroot} in #(
6234 yes)
6235 if test "$GCC" = yes; then
6236 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6237 fi
6238 ;; #(
6239 /*)
6240 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6241 ;; #(
6242 no|'')
6243 ;; #(
6244 *)
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6246 $as_echo "${with_sysroot}" >&6; }
6247 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6248 ;;
6249 esac
6250
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6252 $as_echo "${lt_sysroot:-no}" >&6; }
6253
6254
6255
6256
6257
6258 # Check whether --enable-libtool-lock was given.
6259 if test "${enable_libtool_lock+set}" = set; then :
6260 enableval=$enable_libtool_lock;
6261 fi
6262
6263 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6264
6265 # Some flags need to be propagated to the compiler or linker for good
6266 # libtool support.
6267 case $host in
6268 ia64-*-hpux*)
6269 # Find out which ABI we are using.
6270 echo 'int i;' > conftest.$ac_ext
6271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6272 (eval $ac_compile) 2>&5
6273 ac_status=$?
6274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6275 test $ac_status = 0; }; then
6276 case `/usr/bin/file conftest.$ac_objext` in
6277 *ELF-32*)
6278 HPUX_IA64_MODE="32"
6279 ;;
6280 *ELF-64*)
6281 HPUX_IA64_MODE="64"
6282 ;;
6283 esac
6284 fi
6285 rm -rf conftest*
6286 ;;
6287 *-*-irix6*)
6288 # Find out which ABI we are using.
6289 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6291 (eval $ac_compile) 2>&5
6292 ac_status=$?
6293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6294 test $ac_status = 0; }; then
6295 if test "$lt_cv_prog_gnu_ld" = yes; then
6296 case `/usr/bin/file conftest.$ac_objext` in
6297 *32-bit*)
6298 LD="${LD-ld} -melf32bsmip"
6299 ;;
6300 *N32*)
6301 LD="${LD-ld} -melf32bmipn32"
6302 ;;
6303 *64-bit*)
6304 LD="${LD-ld} -melf64bmip"
6305 ;;
6306 esac
6307 else
6308 case `/usr/bin/file conftest.$ac_objext` in
6309 *32-bit*)
6310 LD="${LD-ld} -32"
6311 ;;
6312 *N32*)
6313 LD="${LD-ld} -n32"
6314 ;;
6315 *64-bit*)
6316 LD="${LD-ld} -64"
6317 ;;
6318 esac
6319 fi
6320 fi
6321 rm -rf conftest*
6322 ;;
6323
6324 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6325 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6326 # Find out which ABI we are using.
6327 echo 'int i;' > conftest.$ac_ext
6328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6329 (eval $ac_compile) 2>&5
6330 ac_status=$?
6331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6332 test $ac_status = 0; }; then
6333 case `/usr/bin/file conftest.o` in
6334 *32-bit*)
6335 case $host in
6336 x86_64-*kfreebsd*-gnu)
6337 LD="${LD-ld} -m elf_i386_fbsd"
6338 ;;
6339 x86_64-*linux*)
6340 LD="${LD-ld} -m elf_i386"
6341 ;;
6342 ppc64-*linux*|powerpc64-*linux*)
6343 LD="${LD-ld} -m elf32ppclinux"
6344 ;;
6345 s390x-*linux*)
6346 LD="${LD-ld} -m elf_s390"
6347 ;;
6348 sparc64-*linux*)
6349 LD="${LD-ld} -m elf32_sparc"
6350 ;;
6351 esac
6352 ;;
6353 *64-bit*)
6354 case $host in
6355 x86_64-*kfreebsd*-gnu)
6356 LD="${LD-ld} -m elf_x86_64_fbsd"
6357 ;;
6358 x86_64-*linux*)
6359 LD="${LD-ld} -m elf_x86_64"
6360 ;;
6361 ppc*-*linux*|powerpc*-*linux*)
6362 LD="${LD-ld} -m elf64ppc"
6363 ;;
6364 s390*-*linux*|s390*-*tpf*)
6365 LD="${LD-ld} -m elf64_s390"
6366 ;;
6367 sparc*-*linux*)
6368 LD="${LD-ld} -m elf64_sparc"
6369 ;;
6370 esac
6371 ;;
6372 esac
6373 fi
6374 rm -rf conftest*
6375 ;;
6376
6377 *-*-sco3.2v5*)
6378 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6379 SAVE_CFLAGS="$CFLAGS"
6380 CFLAGS="$CFLAGS -belf"
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6382 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6383 if ${lt_cv_cc_needs_belf+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 ac_ext=c
6387 ac_cpp='$CPP $CPPFLAGS'
6388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6391
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394
6395 int
6396 main ()
6397 {
6398
6399 ;
6400 return 0;
6401 }
6402 _ACEOF
6403 if ac_fn_c_try_link "$LINENO"; then :
6404 lt_cv_cc_needs_belf=yes
6405 else
6406 lt_cv_cc_needs_belf=no
6407 fi
6408 rm -f core conftest.err conftest.$ac_objext \
6409 conftest$ac_exeext conftest.$ac_ext
6410 ac_ext=c
6411 ac_cpp='$CPP $CPPFLAGS'
6412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6415
6416 fi
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6418 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6419 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6420 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6421 CFLAGS="$SAVE_CFLAGS"
6422 fi
6423 ;;
6424 *-*solaris*)
6425 # Find out which ABI we are using.
6426 echo 'int i;' > conftest.$ac_ext
6427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6428 (eval $ac_compile) 2>&5
6429 ac_status=$?
6430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431 test $ac_status = 0; }; then
6432 case `/usr/bin/file conftest.o` in
6433 *64-bit*)
6434 case $lt_cv_prog_gnu_ld in
6435 yes*)
6436 case $host in
6437 i?86-*-solaris*)
6438 LD="${LD-ld} -m elf_x86_64"
6439 ;;
6440 sparc*-*-solaris*)
6441 LD="${LD-ld} -m elf64_sparc"
6442 ;;
6443 esac
6444 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6445 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6446 LD="${LD-ld}_sol2"
6447 fi
6448 ;;
6449 *)
6450 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6451 LD="${LD-ld} -64"
6452 fi
6453 ;;
6454 esac
6455 ;;
6456 esac
6457 fi
6458 rm -rf conftest*
6459 ;;
6460 esac
6461
6462 need_locks="$enable_libtool_lock"
6463
6464 if test -n "$ac_tool_prefix"; then
6465 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6466 set dummy ${ac_tool_prefix}mt; ac_word=$2
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6468 $as_echo_n "checking for $ac_word... " >&6; }
6469 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 if test -n "$MANIFEST_TOOL"; then
6473 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6474 else
6475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6476 for as_dir in $PATH
6477 do
6478 IFS=$as_save_IFS
6479 test -z "$as_dir" && as_dir=.
6480 for ac_exec_ext in '' $ac_executable_extensions; do
6481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6482 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 break 2
6485 fi
6486 done
6487 done
6488 IFS=$as_save_IFS
6489
6490 fi
6491 fi
6492 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6493 if test -n "$MANIFEST_TOOL"; then
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6495 $as_echo "$MANIFEST_TOOL" >&6; }
6496 else
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498 $as_echo "no" >&6; }
6499 fi
6500
6501
6502 fi
6503 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6504 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6505 # Extract the first word of "mt", so it can be a program name with args.
6506 set dummy mt; ac_word=$2
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6508 $as_echo_n "checking for $ac_word... " >&6; }
6509 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6510 $as_echo_n "(cached) " >&6
6511 else
6512 if test -n "$ac_ct_MANIFEST_TOOL"; then
6513 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6514 else
6515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6516 for as_dir in $PATH
6517 do
6518 IFS=$as_save_IFS
6519 test -z "$as_dir" && as_dir=.
6520 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6522 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 break 2
6525 fi
6526 done
6527 done
6528 IFS=$as_save_IFS
6529
6530 fi
6531 fi
6532 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6533 if test -n "$ac_ct_MANIFEST_TOOL"; then
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6535 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6536 else
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6538 $as_echo "no" >&6; }
6539 fi
6540
6541 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6542 MANIFEST_TOOL=":"
6543 else
6544 case $cross_compiling:$ac_tool_warned in
6545 yes:)
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548 ac_tool_warned=yes ;;
6549 esac
6550 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6551 fi
6552 else
6553 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6554 fi
6555
6556 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6558 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6559 if ${lt_cv_path_mainfest_tool+:} false; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562 lt_cv_path_mainfest_tool=no
6563 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6564 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6565 cat conftest.err >&5
6566 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6567 lt_cv_path_mainfest_tool=yes
6568 fi
6569 rm -f conftest*
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6572 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6573 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6574 MANIFEST_TOOL=:
6575 fi
6576
6577
6578
6579
6580
6581
6582 case $host_os in
6583 rhapsody* | darwin*)
6584 if test -n "$ac_tool_prefix"; then
6585 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6586 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588 $as_echo_n "checking for $ac_word... " >&6; }
6589 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591 else
6592 if test -n "$DSYMUTIL"; then
6593 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606 done
6607 done
6608 IFS=$as_save_IFS
6609
6610 fi
6611 fi
6612 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6613 if test -n "$DSYMUTIL"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6615 $as_echo "$DSYMUTIL" >&6; }
6616 else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 $as_echo "no" >&6; }
6619 fi
6620
6621
6622 fi
6623 if test -z "$ac_cv_prog_DSYMUTIL"; then
6624 ac_ct_DSYMUTIL=$DSYMUTIL
6625 # Extract the first word of "dsymutil", so it can be a program name with args.
6626 set dummy dsymutil; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$ac_ct_DSYMUTIL"; then
6633 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6637 do
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6642 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6645 fi
6646 done
6647 done
6648 IFS=$as_save_IFS
6649
6650 fi
6651 fi
6652 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6653 if test -n "$ac_ct_DSYMUTIL"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6655 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6659 fi
6660
6661 if test "x$ac_ct_DSYMUTIL" = x; then
6662 DSYMUTIL=":"
6663 else
6664 case $cross_compiling:$ac_tool_warned in
6665 yes:)
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668 ac_tool_warned=yes ;;
6669 esac
6670 DSYMUTIL=$ac_ct_DSYMUTIL
6671 fi
6672 else
6673 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6674 fi
6675
6676 if test -n "$ac_tool_prefix"; then
6677 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6678 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6680 $as_echo_n "checking for $ac_word... " >&6; }
6681 if ${ac_cv_prog_NMEDIT+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 if test -n "$NMEDIT"; then
6685 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6686 else
6687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690 IFS=$as_save_IFS
6691 test -z "$as_dir" && as_dir=.
6692 for ac_exec_ext in '' $ac_executable_extensions; do
6693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 break 2
6697 fi
6698 done
6699 done
6700 IFS=$as_save_IFS
6701
6702 fi
6703 fi
6704 NMEDIT=$ac_cv_prog_NMEDIT
6705 if test -n "$NMEDIT"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6707 $as_echo "$NMEDIT" >&6; }
6708 else
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6710 $as_echo "no" >&6; }
6711 fi
6712
6713
6714 fi
6715 if test -z "$ac_cv_prog_NMEDIT"; then
6716 ac_ct_NMEDIT=$NMEDIT
6717 # Extract the first word of "nmedit", so it can be a program name with args.
6718 set dummy nmedit; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$ac_ct_NMEDIT"; then
6725 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6729 do
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6734 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6737 fi
6738 done
6739 done
6740 IFS=$as_save_IFS
6741
6742 fi
6743 fi
6744 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6745 if test -n "$ac_ct_NMEDIT"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6747 $as_echo "$ac_ct_NMEDIT" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6751 fi
6752
6753 if test "x$ac_ct_NMEDIT" = x; then
6754 NMEDIT=":"
6755 else
6756 case $cross_compiling:$ac_tool_warned in
6757 yes:)
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6760 ac_tool_warned=yes ;;
6761 esac
6762 NMEDIT=$ac_ct_NMEDIT
6763 fi
6764 else
6765 NMEDIT="$ac_cv_prog_NMEDIT"
6766 fi
6767
6768 if test -n "$ac_tool_prefix"; then
6769 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6770 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_LIPO+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 if test -n "$LIPO"; then
6777 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 LIPO=$ac_cv_prog_LIPO
6797 if test -n "$LIPO"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6799 $as_echo "$LIPO" >&6; }
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805
6806 fi
6807 if test -z "$ac_cv_prog_LIPO"; then
6808 ac_ct_LIPO=$LIPO
6809 # Extract the first word of "lipo", so it can be a program name with args.
6810 set dummy lipo; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$ac_ct_LIPO"; then
6817 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6821 do
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6826 ac_cv_prog_ac_ct_LIPO="lipo"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6829 fi
6830 done
6831 done
6832 IFS=$as_save_IFS
6833
6834 fi
6835 fi
6836 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6837 if test -n "$ac_ct_LIPO"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6839 $as_echo "$ac_ct_LIPO" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6843 fi
6844
6845 if test "x$ac_ct_LIPO" = x; then
6846 LIPO=":"
6847 else
6848 case $cross_compiling:$ac_tool_warned in
6849 yes:)
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6852 ac_tool_warned=yes ;;
6853 esac
6854 LIPO=$ac_ct_LIPO
6855 fi
6856 else
6857 LIPO="$ac_cv_prog_LIPO"
6858 fi
6859
6860 if test -n "$ac_tool_prefix"; then
6861 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6862 set dummy ${ac_tool_prefix}otool; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_OTOOL+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$OTOOL"; then
6869 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 OTOOL=$ac_cv_prog_OTOOL
6889 if test -n "$OTOOL"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6891 $as_echo "$OTOOL" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897
6898 fi
6899 if test -z "$ac_cv_prog_OTOOL"; then
6900 ac_ct_OTOOL=$OTOOL
6901 # Extract the first word of "otool", so it can be a program name with args.
6902 set dummy otool; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908 if test -n "$ac_ct_OTOOL"; then
6909 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914 IFS=$as_save_IFS
6915 test -z "$as_dir" && as_dir=.
6916 for ac_exec_ext in '' $ac_executable_extensions; do
6917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6918 ac_cv_prog_ac_ct_OTOOL="otool"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 break 2
6921 fi
6922 done
6923 done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6929 if test -n "$ac_ct_OTOOL"; then
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6931 $as_echo "$ac_ct_OTOOL" >&6; }
6932 else
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937 if test "x$ac_ct_OTOOL" = x; then
6938 OTOOL=":"
6939 else
6940 case $cross_compiling:$ac_tool_warned in
6941 yes:)
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944 ac_tool_warned=yes ;;
6945 esac
6946 OTOOL=$ac_ct_OTOOL
6947 fi
6948 else
6949 OTOOL="$ac_cv_prog_OTOOL"
6950 fi
6951
6952 if test -n "$ac_tool_prefix"; then
6953 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6954 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_OTOOL64+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test -n "$OTOOL64"; then
6961 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 OTOOL64=$ac_cv_prog_OTOOL64
6981 if test -n "$OTOOL64"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6983 $as_echo "$OTOOL64" >&6; }
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989
6990 fi
6991 if test -z "$ac_cv_prog_OTOOL64"; then
6992 ac_ct_OTOOL64=$OTOOL64
6993 # Extract the first word of "otool64", so it can be a program name with args.
6994 set dummy otool64; ac_word=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6998 $as_echo_n "(cached) " >&6
6999 else
7000 if test -n "$ac_ct_OTOOL64"; then
7001 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7002 else
7003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 for as_dir in $PATH
7005 do
7006 IFS=$as_save_IFS
7007 test -z "$as_dir" && as_dir=.
7008 for ac_exec_ext in '' $ac_executable_extensions; do
7009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7010 ac_cv_prog_ac_ct_OTOOL64="otool64"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7012 break 2
7013 fi
7014 done
7015 done
7016 IFS=$as_save_IFS
7017
7018 fi
7019 fi
7020 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7021 if test -n "$ac_ct_OTOOL64"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7023 $as_echo "$ac_ct_OTOOL64" >&6; }
7024 else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7027 fi
7028
7029 if test "x$ac_ct_OTOOL64" = x; then
7030 OTOOL64=":"
7031 else
7032 case $cross_compiling:$ac_tool_warned in
7033 yes:)
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7036 ac_tool_warned=yes ;;
7037 esac
7038 OTOOL64=$ac_ct_OTOOL64
7039 fi
7040 else
7041 OTOOL64="$ac_cv_prog_OTOOL64"
7042 fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7071 $as_echo_n "checking for -single_module linker flag... " >&6; }
7072 if ${lt_cv_apple_cc_single_mod+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 lt_cv_apple_cc_single_mod=no
7076 if test -z "${LT_MULTI_MODULE}"; then
7077 # By default we will add the -single_module flag. You can override
7078 # by either setting the environment variable LT_MULTI_MODULE
7079 # non-empty at configure time, or by adding -multi_module to the
7080 # link flags.
7081 rm -rf libconftest.dylib*
7082 echo "int foo(void){return 1;}" > conftest.c
7083 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7084 -dynamiclib -Wl,-single_module conftest.c" >&5
7085 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7086 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7087 _lt_result=$?
7088 # If there is a non-empty error log, and "single_module"
7089 # appears in it, assume the flag caused a linker warning
7090 if test -s conftest.err && $GREP single_module conftest.err; then
7091 cat conftest.err >&5
7092 # Otherwise, if the output was created with a 0 exit code from
7093 # the compiler, it worked.
7094 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7095 lt_cv_apple_cc_single_mod=yes
7096 else
7097 cat conftest.err >&5
7098 fi
7099 rm -rf libconftest.dylib*
7100 rm -f conftest.*
7101 fi
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7104 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7107 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7108 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111 lt_cv_ld_exported_symbols_list=no
7112 save_LDFLAGS=$LDFLAGS
7113 echo "_main" > conftest.sym
7114 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117
7118 int
7119 main ()
7120 {
7121
7122 ;
7123 return 0;
7124 }
7125 _ACEOF
7126 if ac_fn_c_try_link "$LINENO"; then :
7127 lt_cv_ld_exported_symbols_list=yes
7128 else
7129 lt_cv_ld_exported_symbols_list=no
7130 fi
7131 rm -f core conftest.err conftest.$ac_objext \
7132 conftest$ac_exeext conftest.$ac_ext
7133 LDFLAGS="$save_LDFLAGS"
7134
7135 fi
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7137 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7138
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7140 $as_echo_n "checking for -force_load linker flag... " >&6; }
7141 if ${lt_cv_ld_force_load+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 lt_cv_ld_force_load=no
7145 cat > conftest.c << _LT_EOF
7146 int forced_loaded() { return 2;}
7147 _LT_EOF
7148 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7149 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7150 echo "$AR cru libconftest.a conftest.o" >&5
7151 $AR cru libconftest.a conftest.o 2>&5
7152 echo "$RANLIB libconftest.a" >&5
7153 $RANLIB libconftest.a 2>&5
7154 cat > conftest.c << _LT_EOF
7155 int main() { return 0;}
7156 _LT_EOF
7157 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7158 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7159 _lt_result=$?
7160 if test -s conftest.err && $GREP force_load conftest.err; then
7161 cat conftest.err >&5
7162 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7163 lt_cv_ld_force_load=yes
7164 else
7165 cat conftest.err >&5
7166 fi
7167 rm -f conftest.err libconftest.a conftest conftest.c
7168 rm -rf conftest.dSYM
7169
7170 fi
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7172 $as_echo "$lt_cv_ld_force_load" >&6; }
7173 case $host_os in
7174 rhapsody* | darwin1.[012])
7175 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7176 darwin1.*)
7177 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7178 darwin*) # darwin 5.x on
7179 # if running on 10.5 or later, the deployment target defaults
7180 # to the OS version, if on x86, and 10.4, the deployment
7181 # target defaults to 10.4. Don't you love it?
7182 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7183 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7184 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7185 10.[012]*)
7186 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7187 10.*)
7188 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7189 esac
7190 ;;
7191 esac
7192 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7193 _lt_dar_single_mod='$single_module'
7194 fi
7195 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7196 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7197 else
7198 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7199 fi
7200 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7201 _lt_dsymutil='~$DSYMUTIL $lib || :'
7202 else
7203 _lt_dsymutil=
7204 fi
7205 ;;
7206 esac
7207
7208 ac_ext=c
7209 ac_cpp='$CPP $CPPFLAGS'
7210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7215 # On Suns, sometimes $CPP names a directory.
7216 if test -n "$CPP" && test -d "$CPP"; then
7217 CPP=
7218 fi
7219 if test -z "$CPP"; then
7220 if ${ac_cv_prog_CPP+:} false; then :
7221 $as_echo_n "(cached) " >&6
7222 else
7223 # Double quotes because CPP needs to be expanded
7224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7225 do
7226 ac_preproc_ok=false
7227 for ac_c_preproc_warn_flag in '' yes
7228 do
7229 # Use a header file that comes with gcc, so configuring glibc
7230 # with a fresh cross-compiler works.
7231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7232 # <limits.h> exists even on freestanding compilers.
7233 # On the NeXT, cc -E runs the code through the compiler's parser,
7234 # not just through cpp. "Syntax error" is here to catch this case.
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7237 #ifdef __STDC__
7238 # include <limits.h>
7239 #else
7240 # include <assert.h>
7241 #endif
7242 Syntax error
7243 _ACEOF
7244 if ac_fn_c_try_cpp "$LINENO"; then :
7245
7246 else
7247 # Broken: fails on valid input.
7248 continue
7249 fi
7250 rm -f conftest.err conftest.i conftest.$ac_ext
7251
7252 # OK, works on sane cases. Now check whether nonexistent headers
7253 # can be detected and how.
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256 #include <ac_nonexistent.h>
7257 _ACEOF
7258 if ac_fn_c_try_cpp "$LINENO"; then :
7259 # Broken: success on invalid input.
7260 continue
7261 else
7262 # Passes both tests.
7263 ac_preproc_ok=:
7264 break
7265 fi
7266 rm -f conftest.err conftest.i conftest.$ac_ext
7267
7268 done
7269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7270 rm -f conftest.i conftest.err conftest.$ac_ext
7271 if $ac_preproc_ok; then :
7272 break
7273 fi
7274
7275 done
7276 ac_cv_prog_CPP=$CPP
7277
7278 fi
7279 CPP=$ac_cv_prog_CPP
7280 else
7281 ac_cv_prog_CPP=$CPP
7282 fi
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7284 $as_echo "$CPP" >&6; }
7285 ac_preproc_ok=false
7286 for ac_c_preproc_warn_flag in '' yes
7287 do
7288 # Use a header file that comes with gcc, so configuring glibc
7289 # with a fresh cross-compiler works.
7290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7291 # <limits.h> exists even on freestanding compilers.
7292 # On the NeXT, cc -E runs the code through the compiler's parser,
7293 # not just through cpp. "Syntax error" is here to catch this case.
7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7295 /* end confdefs.h. */
7296 #ifdef __STDC__
7297 # include <limits.h>
7298 #else
7299 # include <assert.h>
7300 #endif
7301 Syntax error
7302 _ACEOF
7303 if ac_fn_c_try_cpp "$LINENO"; then :
7304
7305 else
7306 # Broken: fails on valid input.
7307 continue
7308 fi
7309 rm -f conftest.err conftest.i conftest.$ac_ext
7310
7311 # OK, works on sane cases. Now check whether nonexistent headers
7312 # can be detected and how.
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7315 #include <ac_nonexistent.h>
7316 _ACEOF
7317 if ac_fn_c_try_cpp "$LINENO"; then :
7318 # Broken: success on invalid input.
7319 continue
7320 else
7321 # Passes both tests.
7322 ac_preproc_ok=:
7323 break
7324 fi
7325 rm -f conftest.err conftest.i conftest.$ac_ext
7326
7327 done
7328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7329 rm -f conftest.i conftest.err conftest.$ac_ext
7330 if $ac_preproc_ok; then :
7331
7332 else
7333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7335 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7336 See \`config.log' for more details" "$LINENO" 5; }
7337 fi
7338
7339 ac_ext=c
7340 ac_cpp='$CPP $CPPFLAGS'
7341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7344
7345
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7347 $as_echo_n "checking for ANSI C header files... " >&6; }
7348 if ${ac_cv_header_stdc+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352 /* end confdefs.h. */
7353 #include <stdlib.h>
7354 #include <stdarg.h>
7355 #include <string.h>
7356 #include <float.h>
7357
7358 int
7359 main ()
7360 {
7361
7362 ;
7363 return 0;
7364 }
7365 _ACEOF
7366 if ac_fn_c_try_compile "$LINENO"; then :
7367 ac_cv_header_stdc=yes
7368 else
7369 ac_cv_header_stdc=no
7370 fi
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372
7373 if test $ac_cv_header_stdc = yes; then
7374 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 #include <string.h>
7378
7379 _ACEOF
7380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7381 $EGREP "memchr" >/dev/null 2>&1; then :
7382
7383 else
7384 ac_cv_header_stdc=no
7385 fi
7386 rm -f conftest*
7387
7388 fi
7389
7390 if test $ac_cv_header_stdc = yes; then
7391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7394 #include <stdlib.h>
7395
7396 _ACEOF
7397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7398 $EGREP "free" >/dev/null 2>&1; then :
7399
7400 else
7401 ac_cv_header_stdc=no
7402 fi
7403 rm -f conftest*
7404
7405 fi
7406
7407 if test $ac_cv_header_stdc = yes; then
7408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7409 if test "$cross_compiling" = yes; then :
7410 :
7411 else
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7414 #include <ctype.h>
7415 #include <stdlib.h>
7416 #if ((' ' & 0x0FF) == 0x020)
7417 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7418 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7419 #else
7420 # define ISLOWER(c) \
7421 (('a' <= (c) && (c) <= 'i') \
7422 || ('j' <= (c) && (c) <= 'r') \
7423 || ('s' <= (c) && (c) <= 'z'))
7424 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7425 #endif
7426
7427 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7428 int
7429 main ()
7430 {
7431 int i;
7432 for (i = 0; i < 256; i++)
7433 if (XOR (islower (i), ISLOWER (i))
7434 || toupper (i) != TOUPPER (i))
7435 return 2;
7436 return 0;
7437 }
7438 _ACEOF
7439 if ac_fn_c_try_run "$LINENO"; then :
7440
7441 else
7442 ac_cv_header_stdc=no
7443 fi
7444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7445 conftest.$ac_objext conftest.beam conftest.$ac_ext
7446 fi
7447
7448 fi
7449 fi
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7451 $as_echo "$ac_cv_header_stdc" >&6; }
7452 if test $ac_cv_header_stdc = yes; then
7453
7454 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7455
7456 fi
7457
7458 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7459 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7460 inttypes.h stdint.h unistd.h
7461 do :
7462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7463 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7464 "
7465 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7466 cat >>confdefs.h <<_ACEOF
7467 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 _ACEOF
7469
7470 fi
7471
7472 done
7473
7474
7475 for ac_header in dlfcn.h
7476 do :
7477 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7478 "
7479 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7480 cat >>confdefs.h <<_ACEOF
7481 #define HAVE_DLFCN_H 1
7482 _ACEOF
7483
7484 fi
7485
7486 done
7487
7488
7489
7490
7491
7492 # Set options
7493
7494
7495
7496 enable_dlopen=no
7497
7498
7499 enable_win32_dll=no
7500
7501
7502 # Check whether --enable-shared was given.
7503 if test "${enable_shared+set}" = set; then :
7504 enableval=$enable_shared; p=${PACKAGE-default}
7505 case $enableval in
7506 yes) enable_shared=yes ;;
7507 no) enable_shared=no ;;
7508 *)
7509 enable_shared=no
7510 # Look at the argument we got. We use all the common list separators.
7511 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7512 for pkg in $enableval; do
7513 IFS="$lt_save_ifs"
7514 if test "X$pkg" = "X$p"; then
7515 enable_shared=yes
7516 fi
7517 done
7518 IFS="$lt_save_ifs"
7519 ;;
7520 esac
7521 else
7522 enable_shared=yes
7523 fi
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533 # Check whether --enable-static was given.
7534 if test "${enable_static+set}" = set; then :
7535 enableval=$enable_static; p=${PACKAGE-default}
7536 case $enableval in
7537 yes) enable_static=yes ;;
7538 no) enable_static=no ;;
7539 *)
7540 enable_static=no
7541 # Look at the argument we got. We use all the common list separators.
7542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7543 for pkg in $enableval; do
7544 IFS="$lt_save_ifs"
7545 if test "X$pkg" = "X$p"; then
7546 enable_static=yes
7547 fi
7548 done
7549 IFS="$lt_save_ifs"
7550 ;;
7551 esac
7552 else
7553 enable_static=yes
7554 fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565 # Check whether --with-pic was given.
7566 if test "${with_pic+set}" = set; then :
7567 withval=$with_pic; lt_p=${PACKAGE-default}
7568 case $withval in
7569 yes|no) pic_mode=$withval ;;
7570 *)
7571 pic_mode=default
7572 # Look at the argument we got. We use all the common list separators.
7573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7574 for lt_pkg in $withval; do
7575 IFS="$lt_save_ifs"
7576 if test "X$lt_pkg" = "X$lt_p"; then
7577 pic_mode=yes
7578 fi
7579 done
7580 IFS="$lt_save_ifs"
7581 ;;
7582 esac
7583 else
7584 pic_mode=default
7585 fi
7586
7587
7588 test -z "$pic_mode" && pic_mode=default
7589
7590
7591
7592
7593
7594
7595
7596 # Check whether --enable-fast-install was given.
7597 if test "${enable_fast_install+set}" = set; then :
7598 enableval=$enable_fast_install; p=${PACKAGE-default}
7599 case $enableval in
7600 yes) enable_fast_install=yes ;;
7601 no) enable_fast_install=no ;;
7602 *)
7603 enable_fast_install=no
7604 # Look at the argument we got. We use all the common list separators.
7605 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7606 for pkg in $enableval; do
7607 IFS="$lt_save_ifs"
7608 if test "X$pkg" = "X$p"; then
7609 enable_fast_install=yes
7610 fi
7611 done
7612 IFS="$lt_save_ifs"
7613 ;;
7614 esac
7615 else
7616 enable_fast_install=yes
7617 fi
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629 # This can be used to rebuild libtool when needed
7630 LIBTOOL_DEPS="$ltmain"
7631
7632 # Always use our own libtool.
7633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664 test -z "$LN_S" && LN_S="ln -s"
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679 if test -n "${ZSH_VERSION+set}" ; then
7680 setopt NO_GLOB_SUBST
7681 fi
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7684 $as_echo_n "checking for objdir... " >&6; }
7685 if ${lt_cv_objdir+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 rm -f .libs 2>/dev/null
7689 mkdir .libs 2>/dev/null
7690 if test -d .libs; then
7691 lt_cv_objdir=.libs
7692 else
7693 # MS-DOS does not allow filenames that begin with a dot.
7694 lt_cv_objdir=_libs
7695 fi
7696 rmdir .libs 2>/dev/null
7697 fi
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7699 $as_echo "$lt_cv_objdir" >&6; }
7700 objdir=$lt_cv_objdir
7701
7702
7703
7704
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define LT_OBJDIR "$lt_cv_objdir/"
7708 _ACEOF
7709
7710
7711
7712
7713 case $host_os in
7714 aix3*)
7715 # AIX sometimes has problems with the GCC collect2 program. For some
7716 # reason, if we set the COLLECT_NAMES environment variable, the problems
7717 # vanish in a puff of smoke.
7718 if test "X${COLLECT_NAMES+set}" != Xset; then
7719 COLLECT_NAMES=
7720 export COLLECT_NAMES
7721 fi
7722 ;;
7723 esac
7724
7725 # Global variables:
7726 ofile=libtool
7727 can_build_shared=yes
7728
7729 # All known linkers require a `.a' archive for static linking (except MSVC,
7730 # which needs '.lib').
7731 libext=a
7732
7733 with_gnu_ld="$lt_cv_prog_gnu_ld"
7734
7735 old_CC="$CC"
7736 old_CFLAGS="$CFLAGS"
7737
7738 # Set sane defaults for various variables
7739 test -z "$CC" && CC=cc
7740 test -z "$LTCC" && LTCC=$CC
7741 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7742 test -z "$LD" && LD=ld
7743 test -z "$ac_objext" && ac_objext=o
7744
7745 for cc_temp in $compiler""; do
7746 case $cc_temp in
7747 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7748 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7749 \-*) ;;
7750 *) break;;
7751 esac
7752 done
7753 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7754
7755
7756 # Only perform the check for file, if the check method requires it
7757 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7758 case $deplibs_check_method in
7759 file_magic*)
7760 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7762 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7763 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7766 case $MAGIC_CMD in
7767 [\\/*] | ?:[\\/]*)
7768 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7769 ;;
7770 *)
7771 lt_save_MAGIC_CMD="$MAGIC_CMD"
7772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7773 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7774 for ac_dir in $ac_dummy; do
7775 IFS="$lt_save_ifs"
7776 test -z "$ac_dir" && ac_dir=.
7777 if test -f $ac_dir/${ac_tool_prefix}file; then
7778 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7779 if test -n "$file_magic_test_file"; then
7780 case $deplibs_check_method in
7781 "file_magic "*)
7782 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7783 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7784 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7785 $EGREP "$file_magic_regex" > /dev/null; then
7786 :
7787 else
7788 cat <<_LT_EOF 1>&2
7789
7790 *** Warning: the command libtool uses to detect shared libraries,
7791 *** $file_magic_cmd, produces output that libtool cannot recognize.
7792 *** The result is that libtool may fail to recognize shared libraries
7793 *** as such. This will affect the creation of libtool libraries that
7794 *** depend on shared libraries, but programs linked with such libtool
7795 *** libraries will work regardless of this problem. Nevertheless, you
7796 *** may want to report the problem to your system manager and/or to
7797 *** [email protected]
7798
7799 _LT_EOF
7800 fi ;;
7801 esac
7802 fi
7803 break
7804 fi
7805 done
7806 IFS="$lt_save_ifs"
7807 MAGIC_CMD="$lt_save_MAGIC_CMD"
7808 ;;
7809 esac
7810 fi
7811
7812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7813 if test -n "$MAGIC_CMD"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7815 $as_echo "$MAGIC_CMD" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 fi
7820
7821
7822
7823
7824
7825 if test -z "$lt_cv_path_MAGIC_CMD"; then
7826 if test -n "$ac_tool_prefix"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7828 $as_echo_n "checking for file... " >&6; }
7829 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7830 $as_echo_n "(cached) " >&6
7831 else
7832 case $MAGIC_CMD in
7833 [\\/*] | ?:[\\/]*)
7834 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7835 ;;
7836 *)
7837 lt_save_MAGIC_CMD="$MAGIC_CMD"
7838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7839 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7840 for ac_dir in $ac_dummy; do
7841 IFS="$lt_save_ifs"
7842 test -z "$ac_dir" && ac_dir=.
7843 if test -f $ac_dir/file; then
7844 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7845 if test -n "$file_magic_test_file"; then
7846 case $deplibs_check_method in
7847 "file_magic "*)
7848 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7849 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7850 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7851 $EGREP "$file_magic_regex" > /dev/null; then
7852 :
7853 else
7854 cat <<_LT_EOF 1>&2
7855
7856 *** Warning: the command libtool uses to detect shared libraries,
7857 *** $file_magic_cmd, produces output that libtool cannot recognize.
7858 *** The result is that libtool may fail to recognize shared libraries
7859 *** as such. This will affect the creation of libtool libraries that
7860 *** depend on shared libraries, but programs linked with such libtool
7861 *** libraries will work regardless of this problem. Nevertheless, you
7862 *** may want to report the problem to your system manager and/or to
7863 *** [email protected]
7864
7865 _LT_EOF
7866 fi ;;
7867 esac
7868 fi
7869 break
7870 fi
7871 done
7872 IFS="$lt_save_ifs"
7873 MAGIC_CMD="$lt_save_MAGIC_CMD"
7874 ;;
7875 esac
7876 fi
7877
7878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7879 if test -n "$MAGIC_CMD"; then
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7881 $as_echo "$MAGIC_CMD" >&6; }
7882 else
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7885 fi
7886
7887
7888 else
7889 MAGIC_CMD=:
7890 fi
7891 fi
7892
7893 fi
7894 ;;
7895 esac
7896
7897 # Use C for the default configuration in the libtool script
7898
7899 lt_save_CC="$CC"
7900 ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906
7907 # Source file extension for C test sources.
7908 ac_ext=c
7909
7910 # Object file extension for compiled C test sources.
7911 objext=o
7912 objext=$objext
7913
7914 # Code to be used in simple compile tests
7915 lt_simple_compile_test_code="int some_variable = 0;"
7916
7917 # Code to be used in simple link tests
7918 lt_simple_link_test_code='int main(){return(0);}'
7919
7920
7921
7922
7923
7924
7925
7926 # If no C compiler was specified, use CC.
7927 LTCC=${LTCC-"$CC"}
7928
7929 # If no C compiler flags were specified, use CFLAGS.
7930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7931
7932 # Allow CC to be a program name with arguments.
7933 compiler=$CC
7934
7935 # Save the default compiler, since it gets overwritten when the other
7936 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7937 compiler_DEFAULT=$CC
7938
7939 # save warnings/boilerplate of simple test code
7940 ac_outfile=conftest.$ac_objext
7941 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7942 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7943 _lt_compiler_boilerplate=`cat conftest.err`
7944 $RM conftest*
7945
7946 ac_outfile=conftest.$ac_objext
7947 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7948 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7949 _lt_linker_boilerplate=`cat conftest.err`
7950 $RM -r conftest*
7951
7952
7953 if test -n "$compiler"; then
7954
7955 lt_prog_compiler_no_builtin_flag=
7956
7957 if test "$GCC" = yes; then
7958 case $cc_basename in
7959 nvcc*)
7960 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7961 *)
7962 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7963 esac
7964
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7966 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7967 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7968 $as_echo_n "(cached) " >&6
7969 else
7970 lt_cv_prog_compiler_rtti_exceptions=no
7971 ac_outfile=conftest.$ac_objext
7972 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7973 lt_compiler_flag="-fno-rtti -fno-exceptions"
7974 # Insert the option either (1) after the last *FLAGS variable, or
7975 # (2) before a word containing "conftest.", or (3) at the end.
7976 # Note that $ac_compile itself does not contain backslashes and begins
7977 # with a dollar sign (not a hyphen), so the echo should work correctly.
7978 # The option is referenced via a variable to avoid confusing sed.
7979 lt_compile=`echo "$ac_compile" | $SED \
7980 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7981 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7982 -e 's:$: $lt_compiler_flag:'`
7983 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7984 (eval "$lt_compile" 2>conftest.err)
7985 ac_status=$?
7986 cat conftest.err >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 if (exit $ac_status) && test -s "$ac_outfile"; then
7989 # The compiler can only warn and ignore the option if not recognized
7990 # So say no if there are warnings other than the usual output.
7991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7993 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7994 lt_cv_prog_compiler_rtti_exceptions=yes
7995 fi
7996 fi
7997 $RM conftest*
7998
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8001 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8002
8003 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8004 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8005 else
8006 :
8007 fi
8008
8009 fi
8010
8011
8012
8013
8014
8015
8016 lt_prog_compiler_wl=
8017 lt_prog_compiler_pic=
8018 lt_prog_compiler_static=
8019
8020
8021 if test "$GCC" = yes; then
8022 lt_prog_compiler_wl='-Wl,'
8023 lt_prog_compiler_static='-static'
8024
8025 case $host_os in
8026 aix*)
8027 # All AIX code is PIC.
8028 if test "$host_cpu" = ia64; then
8029 # AIX 5 now supports IA64 processor
8030 lt_prog_compiler_static='-Bstatic'
8031 fi
8032 ;;
8033
8034 amigaos*)
8035 case $host_cpu in
8036 powerpc)
8037 # see comment about AmigaOS4 .so support
8038 lt_prog_compiler_pic='-fPIC'
8039 ;;
8040 m68k)
8041 # FIXME: we need at least 68020 code to build shared libraries, but
8042 # adding the `-m68020' flag to GCC prevents building anything better,
8043 # like `-m68040'.
8044 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8045 ;;
8046 esac
8047 ;;
8048
8049 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8050 # PIC is the default for these OSes.
8051 ;;
8052
8053 mingw* | cygwin* | pw32* | os2* | cegcc*)
8054 # This hack is so that the source file can tell whether it is being
8055 # built for inclusion in a dll (and should export symbols for example).
8056 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8057 # (--disable-auto-import) libraries
8058 lt_prog_compiler_pic='-DDLL_EXPORT'
8059 ;;
8060
8061 darwin* | rhapsody*)
8062 # PIC is the default on this platform
8063 # Common symbols not allowed in MH_DYLIB files
8064 lt_prog_compiler_pic='-fno-common'
8065 ;;
8066
8067 haiku*)
8068 # PIC is the default for Haiku.
8069 # The "-static" flag exists, but is broken.
8070 lt_prog_compiler_static=
8071 ;;
8072
8073 hpux*)
8074 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8075 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8076 # sets the default TLS model and affects inlining.
8077 case $host_cpu in
8078 hppa*64*)
8079 # +Z the default
8080 ;;
8081 *)
8082 lt_prog_compiler_pic='-fPIC'
8083 ;;
8084 esac
8085 ;;
8086
8087 interix[3-9]*)
8088 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8089 # Instead, we relocate shared libraries at runtime.
8090 ;;
8091
8092 msdosdjgpp*)
8093 # Just because we use GCC doesn't mean we suddenly get shared libraries
8094 # on systems that don't support them.
8095 lt_prog_compiler_can_build_shared=no
8096 enable_shared=no
8097 ;;
8098
8099 *nto* | *qnx*)
8100 # QNX uses GNU C++, but need to define -shared option too, otherwise
8101 # it will coredump.
8102 lt_prog_compiler_pic='-fPIC -shared'
8103 ;;
8104
8105 sysv4*MP*)
8106 if test -d /usr/nec; then
8107 lt_prog_compiler_pic=-Kconform_pic
8108 fi
8109 ;;
8110
8111 *)
8112 lt_prog_compiler_pic='-fPIC'
8113 ;;
8114 esac
8115
8116 case $cc_basename in
8117 nvcc*) # Cuda Compiler Driver 2.2
8118 lt_prog_compiler_wl='-Xlinker '
8119 if test -n "$lt_prog_compiler_pic"; then
8120 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8121 fi
8122 ;;
8123 esac
8124 else
8125 # PORTME Check for flag to pass linker flags through the system compiler.
8126 case $host_os in
8127 aix*)
8128 lt_prog_compiler_wl='-Wl,'
8129 if test "$host_cpu" = ia64; then
8130 # AIX 5 now supports IA64 processor
8131 lt_prog_compiler_static='-Bstatic'
8132 else
8133 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8134 fi
8135 ;;
8136
8137 mingw* | cygwin* | pw32* | os2* | cegcc*)
8138 # This hack is so that the source file can tell whether it is being
8139 # built for inclusion in a dll (and should export symbols for example).
8140 lt_prog_compiler_pic='-DDLL_EXPORT'
8141 ;;
8142
8143 hpux9* | hpux10* | hpux11*)
8144 lt_prog_compiler_wl='-Wl,'
8145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8146 # not for PA HP-UX.
8147 case $host_cpu in
8148 hppa*64*|ia64*)
8149 # +Z the default
8150 ;;
8151 *)
8152 lt_prog_compiler_pic='+Z'
8153 ;;
8154 esac
8155 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8156 lt_prog_compiler_static='${wl}-a ${wl}archive'
8157 ;;
8158
8159 irix5* | irix6* | nonstopux*)
8160 lt_prog_compiler_wl='-Wl,'
8161 # PIC (with -KPIC) is the default.
8162 lt_prog_compiler_static='-non_shared'
8163 ;;
8164
8165 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8166 case $cc_basename in
8167 # old Intel for x86_64 which still supported -KPIC.
8168 ecc*)
8169 lt_prog_compiler_wl='-Wl,'
8170 lt_prog_compiler_pic='-KPIC'
8171 lt_prog_compiler_static='-static'
8172 ;;
8173 # icc used to be incompatible with GCC.
8174 # ICC 10 doesn't accept -KPIC any more.
8175 icc* | ifort*)
8176 lt_prog_compiler_wl='-Wl,'
8177 lt_prog_compiler_pic='-fPIC'
8178 lt_prog_compiler_static='-static'
8179 ;;
8180 # Lahey Fortran 8.1.
8181 lf95*)
8182 lt_prog_compiler_wl='-Wl,'
8183 lt_prog_compiler_pic='--shared'
8184 lt_prog_compiler_static='--static'
8185 ;;
8186 nagfor*)
8187 # NAG Fortran compiler
8188 lt_prog_compiler_wl='-Wl,-Wl,,'
8189 lt_prog_compiler_pic='-PIC'
8190 lt_prog_compiler_static='-Bstatic'
8191 ;;
8192 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8193 # Portland Group compilers (*not* the Pentium gcc compiler,
8194 # which looks to be a dead project)
8195 lt_prog_compiler_wl='-Wl,'
8196 lt_prog_compiler_pic='-fpic'
8197 lt_prog_compiler_static='-Bstatic'
8198 ;;
8199 ccc*)
8200 lt_prog_compiler_wl='-Wl,'
8201 # All Alpha code is PIC.
8202 lt_prog_compiler_static='-non_shared'
8203 ;;
8204 xl* | bgxl* | bgf* | mpixl*)
8205 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8206 lt_prog_compiler_wl='-Wl,'
8207 lt_prog_compiler_pic='-qpic'
8208 lt_prog_compiler_static='-qstaticlink'
8209 ;;
8210 *)
8211 case `$CC -V 2>&1 | sed 5q` in
8212 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8213 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8214 lt_prog_compiler_pic='-KPIC'
8215 lt_prog_compiler_static='-Bstatic'
8216 lt_prog_compiler_wl=''
8217 ;;
8218 *Sun\ F* | *Sun*Fortran*)
8219 lt_prog_compiler_pic='-KPIC'
8220 lt_prog_compiler_static='-Bstatic'
8221 lt_prog_compiler_wl='-Qoption ld '
8222 ;;
8223 *Sun\ C*)
8224 # Sun C 5.9
8225 lt_prog_compiler_pic='-KPIC'
8226 lt_prog_compiler_static='-Bstatic'
8227 lt_prog_compiler_wl='-Wl,'
8228 ;;
8229 *Intel*\ [CF]*Compiler*)
8230 lt_prog_compiler_wl='-Wl,'
8231 lt_prog_compiler_pic='-fPIC'
8232 lt_prog_compiler_static='-static'
8233 ;;
8234 *Portland\ Group*)
8235 lt_prog_compiler_wl='-Wl,'
8236 lt_prog_compiler_pic='-fpic'
8237 lt_prog_compiler_static='-Bstatic'
8238 ;;
8239 esac
8240 ;;
8241 esac
8242 ;;
8243
8244 newsos6)
8245 lt_prog_compiler_pic='-KPIC'
8246 lt_prog_compiler_static='-Bstatic'
8247 ;;
8248
8249 *nto* | *qnx*)
8250 # QNX uses GNU C++, but need to define -shared option too, otherwise
8251 # it will coredump.
8252 lt_prog_compiler_pic='-fPIC -shared'
8253 ;;
8254
8255 osf3* | osf4* | osf5*)
8256 lt_prog_compiler_wl='-Wl,'
8257 # All OSF/1 code is PIC.
8258 lt_prog_compiler_static='-non_shared'
8259 ;;
8260
8261 rdos*)
8262 lt_prog_compiler_static='-non_shared'
8263 ;;
8264
8265 solaris*)
8266 lt_prog_compiler_pic='-KPIC'
8267 lt_prog_compiler_static='-Bstatic'
8268 case $cc_basename in
8269 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8270 lt_prog_compiler_wl='-Qoption ld ';;
8271 *)
8272 lt_prog_compiler_wl='-Wl,';;
8273 esac
8274 ;;
8275
8276 sunos4*)
8277 lt_prog_compiler_wl='-Qoption ld '
8278 lt_prog_compiler_pic='-PIC'
8279 lt_prog_compiler_static='-Bstatic'
8280 ;;
8281
8282 sysv4 | sysv4.2uw2* | sysv4.3*)
8283 lt_prog_compiler_wl='-Wl,'
8284 lt_prog_compiler_pic='-KPIC'
8285 lt_prog_compiler_static='-Bstatic'
8286 ;;
8287
8288 sysv4*MP*)
8289 if test -d /usr/nec ;then
8290 lt_prog_compiler_pic='-Kconform_pic'
8291 lt_prog_compiler_static='-Bstatic'
8292 fi
8293 ;;
8294
8295 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8296 lt_prog_compiler_wl='-Wl,'
8297 lt_prog_compiler_pic='-KPIC'
8298 lt_prog_compiler_static='-Bstatic'
8299 ;;
8300
8301 unicos*)
8302 lt_prog_compiler_wl='-Wl,'
8303 lt_prog_compiler_can_build_shared=no
8304 ;;
8305
8306 uts4*)
8307 lt_prog_compiler_pic='-pic'
8308 lt_prog_compiler_static='-Bstatic'
8309 ;;
8310
8311 *)
8312 lt_prog_compiler_can_build_shared=no
8313 ;;
8314 esac
8315 fi
8316
8317 case $host_os in
8318 # For platforms which do not support PIC, -DPIC is meaningless:
8319 *djgpp*)
8320 lt_prog_compiler_pic=
8321 ;;
8322 *)
8323 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8324 ;;
8325 esac
8326
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8328 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8329 if ${lt_cv_prog_compiler_pic+:} false; then :
8330 $as_echo_n "(cached) " >&6
8331 else
8332 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8333 fi
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8335 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8336 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8337
8338 #
8339 # Check to make sure the PIC flag actually works.
8340 #
8341 if test -n "$lt_prog_compiler_pic"; then
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8343 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8344 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 lt_cv_prog_compiler_pic_works=no
8348 ac_outfile=conftest.$ac_objext
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8351 # Insert the option either (1) after the last *FLAGS variable, or
8352 # (2) before a word containing "conftest.", or (3) at the end.
8353 # Note that $ac_compile itself does not contain backslashes and begins
8354 # with a dollar sign (not a hyphen), so the echo should work correctly.
8355 # The option is referenced via a variable to avoid confusing sed.
8356 lt_compile=`echo "$ac_compile" | $SED \
8357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359 -e 's:$: $lt_compiler_flag:'`
8360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8361 (eval "$lt_compile" 2>conftest.err)
8362 ac_status=$?
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 if (exit $ac_status) && test -s "$ac_outfile"; then
8366 # The compiler can only warn and ignore the option if not recognized
8367 # So say no if there are warnings other than the usual output.
8368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8370 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8371 lt_cv_prog_compiler_pic_works=yes
8372 fi
8373 fi
8374 $RM conftest*
8375
8376 fi
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8378 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8379
8380 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8381 case $lt_prog_compiler_pic in
8382 "" | " "*) ;;
8383 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8384 esac
8385 else
8386 lt_prog_compiler_pic=
8387 lt_prog_compiler_can_build_shared=no
8388 fi
8389
8390 fi
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402 #
8403 # Check to make sure the static flag actually works.
8404 #
8405 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8407 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8408 if ${lt_cv_prog_compiler_static_works+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 lt_cv_prog_compiler_static_works=no
8412 save_LDFLAGS="$LDFLAGS"
8413 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8414 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8415 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8416 # The linker can only warn and ignore the option if not recognized
8417 # So say no if there are warnings
8418 if test -s conftest.err; then
8419 # Append any errors to the config.log.
8420 cat conftest.err 1>&5
8421 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8422 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8423 if diff conftest.exp conftest.er2 >/dev/null; then
8424 lt_cv_prog_compiler_static_works=yes
8425 fi
8426 else
8427 lt_cv_prog_compiler_static_works=yes
8428 fi
8429 fi
8430 $RM -r conftest*
8431 LDFLAGS="$save_LDFLAGS"
8432
8433 fi
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8435 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8436
8437 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8438 :
8439 else
8440 lt_prog_compiler_static=
8441 fi
8442
8443
8444
8445
8446
8447
8448
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8450 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8451 if ${lt_cv_prog_compiler_c_o+:} false; then :
8452 $as_echo_n "(cached) " >&6
8453 else
8454 lt_cv_prog_compiler_c_o=no
8455 $RM -r conftest 2>/dev/null
8456 mkdir conftest
8457 cd conftest
8458 mkdir out
8459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8460
8461 lt_compiler_flag="-o out/conftest2.$ac_objext"
8462 # Insert the option either (1) after the last *FLAGS variable, or
8463 # (2) before a word containing "conftest.", or (3) at the end.
8464 # Note that $ac_compile itself does not contain backslashes and begins
8465 # with a dollar sign (not a hyphen), so the echo should work correctly.
8466 lt_compile=`echo "$ac_compile" | $SED \
8467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8469 -e 's:$: $lt_compiler_flag:'`
8470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8471 (eval "$lt_compile" 2>out/conftest.err)
8472 ac_status=$?
8473 cat out/conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8476 then
8477 # The compiler can only warn and ignore the option if not recognized
8478 # So say no if there are warnings
8479 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8480 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8481 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8482 lt_cv_prog_compiler_c_o=yes
8483 fi
8484 fi
8485 chmod u+w . 2>&5
8486 $RM conftest*
8487 # SGI C++ compiler will create directory out/ii_files/ for
8488 # template instantiation
8489 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8490 $RM out/* && rmdir out
8491 cd ..
8492 $RM -r conftest
8493 $RM conftest*
8494
8495 fi
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8497 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8498
8499
8500
8501
8502
8503
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8505 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8506 if ${lt_cv_prog_compiler_c_o+:} false; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 lt_cv_prog_compiler_c_o=no
8510 $RM -r conftest 2>/dev/null
8511 mkdir conftest
8512 cd conftest
8513 mkdir out
8514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8515
8516 lt_compiler_flag="-o out/conftest2.$ac_objext"
8517 # Insert the option either (1) after the last *FLAGS variable, or
8518 # (2) before a word containing "conftest.", or (3) at the end.
8519 # Note that $ac_compile itself does not contain backslashes and begins
8520 # with a dollar sign (not a hyphen), so the echo should work correctly.
8521 lt_compile=`echo "$ac_compile" | $SED \
8522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8524 -e 's:$: $lt_compiler_flag:'`
8525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8526 (eval "$lt_compile" 2>out/conftest.err)
8527 ac_status=$?
8528 cat out/conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8531 then
8532 # The compiler can only warn and ignore the option if not recognized
8533 # So say no if there are warnings
8534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8537 lt_cv_prog_compiler_c_o=yes
8538 fi
8539 fi
8540 chmod u+w . 2>&5
8541 $RM conftest*
8542 # SGI C++ compiler will create directory out/ii_files/ for
8543 # template instantiation
8544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8545 $RM out/* && rmdir out
8546 cd ..
8547 $RM -r conftest
8548 $RM conftest*
8549
8550 fi
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8552 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8553
8554
8555
8556
8557 hard_links="nottested"
8558 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8559 # do not overwrite the value of need_locks provided by the user
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8561 $as_echo_n "checking if we can lock with hard links... " >&6; }
8562 hard_links=yes
8563 $RM conftest*
8564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8565 touch conftest.a
8566 ln conftest.a conftest.b 2>&5 || hard_links=no
8567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8569 $as_echo "$hard_links" >&6; }
8570 if test "$hard_links" = no; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8572 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8573 need_locks=warn
8574 fi
8575 else
8576 need_locks=no
8577 fi
8578
8579
8580
8581
8582
8583
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8585 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8586
8587 runpath_var=
8588 allow_undefined_flag=
8589 always_export_symbols=no
8590 archive_cmds=
8591 archive_expsym_cmds=
8592 compiler_needs_object=no
8593 enable_shared_with_static_runtimes=no
8594 export_dynamic_flag_spec=
8595 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8596 hardcode_automatic=no
8597 hardcode_direct=no
8598 hardcode_direct_absolute=no
8599 hardcode_libdir_flag_spec=
8600 hardcode_libdir_separator=
8601 hardcode_minus_L=no
8602 hardcode_shlibpath_var=unsupported
8603 inherit_rpath=no
8604 link_all_deplibs=unknown
8605 module_cmds=
8606 module_expsym_cmds=
8607 old_archive_from_new_cmds=
8608 old_archive_from_expsyms_cmds=
8609 thread_safe_flag_spec=
8610 whole_archive_flag_spec=
8611 # include_expsyms should be a list of space-separated symbols to be *always*
8612 # included in the symbol list
8613 include_expsyms=
8614 # exclude_expsyms can be an extended regexp of symbols to exclude
8615 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8616 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8617 # as well as any symbol that contains `d'.
8618 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8619 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8620 # platforms (ab)use it in PIC code, but their linkers get confused if
8621 # the symbol is explicitly referenced. Since portable code cannot
8622 # rely on this symbol name, it's probably fine to never include it in
8623 # preloaded symbol tables.
8624 # Exclude shared library initialization/finalization symbols.
8625 extract_expsyms_cmds=
8626
8627 case $host_os in
8628 cygwin* | mingw* | pw32* | cegcc*)
8629 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8630 # When not using gcc, we currently assume that we are using
8631 # Microsoft Visual C++.
8632 if test "$GCC" != yes; then
8633 with_gnu_ld=no
8634 fi
8635 ;;
8636 interix*)
8637 # we just hope/assume this is gcc and not c89 (= MSVC++)
8638 with_gnu_ld=yes
8639 ;;
8640 openbsd*)
8641 with_gnu_ld=no
8642 ;;
8643 linux* | k*bsd*-gnu | gnu*)
8644 link_all_deplibs=no
8645 ;;
8646 esac
8647
8648 ld_shlibs=yes
8649
8650 # On some targets, GNU ld is compatible enough with the native linker
8651 # that we're better off using the native interface for both.
8652 lt_use_gnu_ld_interface=no
8653 if test "$with_gnu_ld" = yes; then
8654 case $host_os in
8655 aix*)
8656 # The AIX port of GNU ld has always aspired to compatibility
8657 # with the native linker. However, as the warning in the GNU ld
8658 # block says, versions before 2.19.5* couldn't really create working
8659 # shared libraries, regardless of the interface used.
8660 case `$LD -v 2>&1` in
8661 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8662 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8663 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8664 *)
8665 lt_use_gnu_ld_interface=yes
8666 ;;
8667 esac
8668 ;;
8669 *)
8670 lt_use_gnu_ld_interface=yes
8671 ;;
8672 esac
8673 fi
8674
8675 if test "$lt_use_gnu_ld_interface" = yes; then
8676 # If archive_cmds runs LD, not CC, wlarc should be empty
8677 wlarc='${wl}'
8678
8679 # Set some defaults for GNU ld with shared library support. These
8680 # are reset later if shared libraries are not supported. Putting them
8681 # here allows them to be overridden if necessary.
8682 runpath_var=LD_RUN_PATH
8683 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8684 export_dynamic_flag_spec='${wl}--export-dynamic'
8685 # ancient GNU ld didn't support --whole-archive et. al.
8686 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8687 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8688 else
8689 whole_archive_flag_spec=
8690 fi
8691 supports_anon_versioning=no
8692 case `$LD -v 2>&1` in
8693 *GNU\ gold*) supports_anon_versioning=yes ;;
8694 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8695 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8696 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8697 *\ 2.11.*) ;; # other 2.11 versions
8698 *) supports_anon_versioning=yes ;;
8699 esac
8700
8701 # See if GNU ld supports shared libraries.
8702 case $host_os in
8703 aix[3-9]*)
8704 # On AIX/PPC, the GNU linker is very broken
8705 if test "$host_cpu" != ia64; then
8706 ld_shlibs=no
8707 cat <<_LT_EOF 1>&2
8708
8709 *** Warning: the GNU linker, at least up to release 2.19, is reported
8710 *** to be unable to reliably create shared libraries on AIX.
8711 *** Therefore, libtool is disabling shared libraries support. If you
8712 *** really care for shared libraries, you may want to install binutils
8713 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8714 *** You will then need to restart the configuration process.
8715
8716 _LT_EOF
8717 fi
8718 ;;
8719
8720 amigaos*)
8721 case $host_cpu in
8722 powerpc)
8723 # see comment about AmigaOS4 .so support
8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds=''
8726 ;;
8727 m68k)
8728 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)'
8729 hardcode_libdir_flag_spec='-L$libdir'
8730 hardcode_minus_L=yes
8731 ;;
8732 esac
8733 ;;
8734
8735 beos*)
8736 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8737 allow_undefined_flag=unsupported
8738 # Joseph Beckenbach <[email protected]> says some releases of gcc
8739 # support --undefined. This deserves some investigation. FIXME
8740 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741 else
8742 ld_shlibs=no
8743 fi
8744 ;;
8745
8746 cygwin* | mingw* | pw32* | cegcc*)
8747 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8748 # as there is no search path for DLLs.
8749 hardcode_libdir_flag_spec='-L$libdir'
8750 export_dynamic_flag_spec='${wl}--export-all-symbols'
8751 allow_undefined_flag=unsupported
8752 always_export_symbols=no
8753 enable_shared_with_static_runtimes=yes
8754 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'
8755 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8756
8757 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8759 # If the export-symbols file already is a .def file (1st line
8760 # is EXPORTS), use it as is; otherwise, prepend...
8761 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8762 cp $export_symbols $output_objdir/$soname.def;
8763 else
8764 echo EXPORTS > $output_objdir/$soname.def;
8765 cat $export_symbols >> $output_objdir/$soname.def;
8766 fi~
8767 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8768 else
8769 ld_shlibs=no
8770 fi
8771 ;;
8772
8773 haiku*)
8774 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8775 link_all_deplibs=yes
8776 ;;
8777
8778 interix[3-9]*)
8779 hardcode_direct=no
8780 hardcode_shlibpath_var=no
8781 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8782 export_dynamic_flag_spec='${wl}-E'
8783 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8784 # Instead, shared libraries are loaded at an image base (0x10000000 by
8785 # default) and relocated if they conflict, which is a slow very memory
8786 # consuming and fragmenting process. To avoid this, we pick a random,
8787 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8788 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8789 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8790 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'
8791 ;;
8792
8793 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8794 tmp_diet=no
8795 if test "$host_os" = linux-dietlibc; then
8796 case $cc_basename in
8797 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8798 esac
8799 fi
8800 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8801 && test "$tmp_diet" = no
8802 then
8803 tmp_addflag=' $pic_flag'
8804 tmp_sharedflag='-shared'
8805 case $cc_basename,$host_cpu in
8806 pgcc*) # Portland Group C compiler
8807 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'
8808 tmp_addflag=' $pic_flag'
8809 ;;
8810 pgf77* | pgf90* | pgf95* | pgfortran*)
8811 # Portland Group f77 and f90 compilers
8812 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'
8813 tmp_addflag=' $pic_flag -Mnomain' ;;
8814 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8815 tmp_addflag=' -i_dynamic' ;;
8816 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8817 tmp_addflag=' -i_dynamic -nofor_main' ;;
8818 ifc* | ifort*) # Intel Fortran compiler
8819 tmp_addflag=' -nofor_main' ;;
8820 lf95*) # Lahey Fortran 8.1
8821 whole_archive_flag_spec=
8822 tmp_sharedflag='--shared' ;;
8823 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8824 tmp_sharedflag='-qmkshrobj'
8825 tmp_addflag= ;;
8826 nvcc*) # Cuda Compiler Driver 2.2
8827 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'
8828 compiler_needs_object=yes
8829 ;;
8830 esac
8831 case `$CC -V 2>&1 | sed 5q` in
8832 *Sun\ C*) # Sun C 5.9
8833 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'
8834 compiler_needs_object=yes
8835 tmp_sharedflag='-G' ;;
8836 *Sun\ F*) # Sun Fortran 8.3
8837 tmp_sharedflag='-G' ;;
8838 esac
8839 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8840
8841 if test "x$supports_anon_versioning" = xyes; then
8842 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8843 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8844 echo "local: *; };" >> $output_objdir/$libname.ver~
8845 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8846 fi
8847
8848 case $cc_basename in
8849 xlf* | bgf* | bgxlf* | mpixlf*)
8850 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8851 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8853 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8854 if test "x$supports_anon_versioning" = xyes; then
8855 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8857 echo "local: *; };" >> $output_objdir/$libname.ver~
8858 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8859 fi
8860 ;;
8861 esac
8862 else
8863 ld_shlibs=no
8864 fi
8865 ;;
8866
8867 netbsd* | netbsdelf*-gnu)
8868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8869 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8870 wlarc=
8871 else
8872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8874 fi
8875 ;;
8876
8877 solaris*)
8878 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8879 ld_shlibs=no
8880 cat <<_LT_EOF 1>&2
8881
8882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8883 *** create shared libraries on Solaris systems. Therefore, libtool
8884 *** is disabling shared libraries support. We urge you to upgrade GNU
8885 *** binutils to release 2.9.1 or newer. Another option is to modify
8886 *** your PATH or compiler configuration so that the native linker is
8887 *** used, and then restart.
8888
8889 _LT_EOF
8890 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8892 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8893 else
8894 ld_shlibs=no
8895 fi
8896 ;;
8897
8898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8899 case `$LD -v 2>&1` in
8900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8901 ld_shlibs=no
8902 cat <<_LT_EOF 1>&2
8903
8904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8905 *** reliably create shared libraries on SCO systems. Therefore, libtool
8906 *** is disabling shared libraries support. We urge you to upgrade GNU
8907 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8908 *** your PATH or compiler configuration so that the native linker is
8909 *** used, and then restart.
8910
8911 _LT_EOF
8912 ;;
8913 *)
8914 # For security reasons, it is highly recommended that you always
8915 # use absolute paths for naming shared libraries, and exclude the
8916 # DT_RUNPATH tag from executables and libraries. But doing so
8917 # requires that you compile everything twice, which is a pain.
8918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8919 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8922 else
8923 ld_shlibs=no
8924 fi
8925 ;;
8926 esac
8927 ;;
8928
8929 sunos4*)
8930 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8931 wlarc=
8932 hardcode_direct=yes
8933 hardcode_shlibpath_var=no
8934 ;;
8935
8936 *)
8937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8939 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8940 else
8941 ld_shlibs=no
8942 fi
8943 ;;
8944 esac
8945
8946 if test "$ld_shlibs" = no; then
8947 runpath_var=
8948 hardcode_libdir_flag_spec=
8949 export_dynamic_flag_spec=
8950 whole_archive_flag_spec=
8951 fi
8952 else
8953 # PORTME fill in a description of your system's linker (not GNU ld)
8954 case $host_os in
8955 aix3*)
8956 allow_undefined_flag=unsupported
8957 always_export_symbols=yes
8958 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'
8959 # Note: this linker hardcodes the directories in LIBPATH if there
8960 # are no directories specified by -L.
8961 hardcode_minus_L=yes
8962 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8963 # Neither direct hardcoding nor static linking is supported with a
8964 # broken collect2.
8965 hardcode_direct=unsupported
8966 fi
8967 ;;
8968
8969 aix[4-9]*)
8970 if test "$host_cpu" = ia64; then
8971 # On IA64, the linker does run time linking by default, so we don't
8972 # have to do anything special.
8973 aix_use_runtimelinking=no
8974 exp_sym_flag='-Bexport'
8975 no_entry_flag=""
8976 else
8977 # If we're using GNU nm, then we don't want the "-C" option.
8978 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8979 # Also, AIX nm treats weak defined symbols like other global
8980 # defined symbols, whereas GNU nm marks them as "W".
8981 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8982 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8983 else
8984 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8985 fi
8986 aix_use_runtimelinking=no
8987
8988 # Test if we are trying to use run time linking or normal
8989 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8990 # need to do runtime linking.
8991 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8992 for ld_flag in $LDFLAGS; do
8993 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8994 aix_use_runtimelinking=yes
8995 break
8996 fi
8997 done
8998 ;;
8999 esac
9000
9001 exp_sym_flag='-bexport'
9002 no_entry_flag='-bnoentry'
9003 fi
9004
9005 # When large executables or shared objects are built, AIX ld can
9006 # have problems creating the table of contents. If linking a library
9007 # or program results in "error TOC overflow" add -mminimal-toc to
9008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9010
9011 archive_cmds=''
9012 hardcode_direct=yes
9013 hardcode_direct_absolute=yes
9014 hardcode_libdir_separator=':'
9015 link_all_deplibs=yes
9016 file_list_spec='${wl}-f,'
9017
9018 if test "$GCC" = yes; then
9019 case $host_os in aix4.[012]|aix4.[012].*)
9020 # We only want to do this on AIX 4.2 and lower, the check
9021 # below for broken collect2 doesn't work under 4.3+
9022 collect2name=`${CC} -print-prog-name=collect2`
9023 if test -f "$collect2name" &&
9024 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9025 then
9026 # We have reworked collect2
9027 :
9028 else
9029 # We have old collect2
9030 hardcode_direct=unsupported
9031 # It fails to find uninstalled libraries when the uninstalled
9032 # path is not listed in the libpath. Setting hardcode_minus_L
9033 # to unsupported forces relinking
9034 hardcode_minus_L=yes
9035 hardcode_libdir_flag_spec='-L$libdir'
9036 hardcode_libdir_separator=
9037 fi
9038 ;;
9039 esac
9040 shared_flag='-shared'
9041 if test "$aix_use_runtimelinking" = yes; then
9042 shared_flag="$shared_flag "'${wl}-G'
9043 fi
9044 link_all_deplibs=no
9045 else
9046 # not using gcc
9047 if test "$host_cpu" = ia64; then
9048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9049 # chokes on -Wl,-G. The following line is correct:
9050 shared_flag='-G'
9051 else
9052 if test "$aix_use_runtimelinking" = yes; then
9053 shared_flag='${wl}-G'
9054 else
9055 shared_flag='${wl}-bM:SRE'
9056 fi
9057 fi
9058 fi
9059
9060 export_dynamic_flag_spec='${wl}-bexpall'
9061 # It seems that -bexpall does not export symbols beginning with
9062 # underscore (_), so it is better to generate a list of symbols to export.
9063 always_export_symbols=yes
9064 if test "$aix_use_runtimelinking" = yes; then
9065 # Warning - without using the other runtime loading flags (-brtl),
9066 # -berok will link without error, but may produce a broken library.
9067 allow_undefined_flag='-berok'
9068 # Determine the default libpath from the value encoded in an
9069 # empty executable.
9070 if test "${lt_cv_aix_libpath+set}" = set; then
9071 aix_libpath=$lt_cv_aix_libpath
9072 else
9073 if ${lt_cv_aix_libpath_+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078
9079 int
9080 main ()
9081 {
9082
9083 ;
9084 return 0;
9085 }
9086 _ACEOF
9087 if ac_fn_c_try_link "$LINENO"; then :
9088
9089 lt_aix_libpath_sed='
9090 /Import File Strings/,/^$/ {
9091 /^0/ {
9092 s/^0 *\([^ ]*\) *$/\1/
9093 p
9094 }
9095 }'
9096 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9097 # Check for a 64-bit object if we didn't find anything.
9098 if test -z "$lt_cv_aix_libpath_"; then
9099 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9100 fi
9101 fi
9102 rm -f core conftest.err conftest.$ac_objext \
9103 conftest$ac_exeext conftest.$ac_ext
9104 if test -z "$lt_cv_aix_libpath_"; then
9105 lt_cv_aix_libpath_="/usr/lib:/lib"
9106 fi
9107
9108 fi
9109
9110 aix_libpath=$lt_cv_aix_libpath_
9111 fi
9112
9113 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9114 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9115 else
9116 if test "$host_cpu" = ia64; then
9117 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9118 allow_undefined_flag="-z nodefs"
9119 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"
9120 else
9121 # Determine the default libpath from the value encoded in an
9122 # empty executable.
9123 if test "${lt_cv_aix_libpath+set}" = set; then
9124 aix_libpath=$lt_cv_aix_libpath
9125 else
9126 if ${lt_cv_aix_libpath_+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131
9132 int
9133 main ()
9134 {
9135
9136 ;
9137 return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_link "$LINENO"; then :
9141
9142 lt_aix_libpath_sed='
9143 /Import File Strings/,/^$/ {
9144 /^0/ {
9145 s/^0 *\([^ ]*\) *$/\1/
9146 p
9147 }
9148 }'
9149 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9150 # Check for a 64-bit object if we didn't find anything.
9151 if test -z "$lt_cv_aix_libpath_"; then
9152 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9153 fi
9154 fi
9155 rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157 if test -z "$lt_cv_aix_libpath_"; then
9158 lt_cv_aix_libpath_="/usr/lib:/lib"
9159 fi
9160
9161 fi
9162
9163 aix_libpath=$lt_cv_aix_libpath_
9164 fi
9165
9166 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9167 # Warning - without using the other run time loading flags,
9168 # -berok will link without error, but may produce a broken library.
9169 no_undefined_flag=' ${wl}-bernotok'
9170 allow_undefined_flag=' ${wl}-berok'
9171 if test "$with_gnu_ld" = yes; then
9172 # We only use this code for GNU lds that support --whole-archive.
9173 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9174 else
9175 # Exported symbols can be pulled into shared objects from archives
9176 whole_archive_flag_spec='$convenience'
9177 fi
9178 archive_cmds_need_lc=yes
9179 # This is similar to how AIX traditionally builds its shared libraries.
9180 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9181 fi
9182 fi
9183 ;;
9184
9185 amigaos*)
9186 case $host_cpu in
9187 powerpc)
9188 # see comment about AmigaOS4 .so support
9189 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9190 archive_expsym_cmds=''
9191 ;;
9192 m68k)
9193 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)'
9194 hardcode_libdir_flag_spec='-L$libdir'
9195 hardcode_minus_L=yes
9196 ;;
9197 esac
9198 ;;
9199
9200 bsdi[45]*)
9201 export_dynamic_flag_spec=-rdynamic
9202 ;;
9203
9204 cygwin* | mingw* | pw32* | cegcc*)
9205 # When not using gcc, we currently assume that we are using
9206 # Microsoft Visual C++.
9207 # hardcode_libdir_flag_spec is actually meaningless, as there is
9208 # no search path for DLLs.
9209 case $cc_basename in
9210 cl*)
9211 # Native MSVC
9212 hardcode_libdir_flag_spec=' '
9213 allow_undefined_flag=unsupported
9214 always_export_symbols=yes
9215 file_list_spec='@'
9216 # Tell ltmain to make .lib files, not .a files.
9217 libext=lib
9218 # Tell ltmain to make .dll files, not .so files.
9219 shrext_cmds=".dll"
9220 # FIXME: Setting linknames here is a bad hack.
9221 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9222 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9223 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9224 else
9225 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9226 fi~
9227 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9228 linknames='
9229 # The linker will not automatically build a static lib if we build a DLL.
9230 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9231 enable_shared_with_static_runtimes=yes
9232 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9233 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9234 # Don't use ranlib
9235 old_postinstall_cmds='chmod 644 $oldlib'
9236 postlink_cmds='lt_outputfile="@OUTPUT@"~
9237 lt_tool_outputfile="@TOOL_OUTPUT@"~
9238 case $lt_outputfile in
9239 *.exe|*.EXE) ;;
9240 *)
9241 lt_outputfile="$lt_outputfile.exe"
9242 lt_tool_outputfile="$lt_tool_outputfile.exe"
9243 ;;
9244 esac~
9245 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9246 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9247 $RM "$lt_outputfile.manifest";
9248 fi'
9249 ;;
9250 *)
9251 # Assume MSVC wrapper
9252 hardcode_libdir_flag_spec=' '
9253 allow_undefined_flag=unsupported
9254 # Tell ltmain to make .lib files, not .a files.
9255 libext=lib
9256 # Tell ltmain to make .dll files, not .so files.
9257 shrext_cmds=".dll"
9258 # FIXME: Setting linknames here is a bad hack.
9259 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9260 # The linker will automatically build a .lib file if we build a DLL.
9261 old_archive_from_new_cmds='true'
9262 # FIXME: Should let the user specify the lib program.
9263 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9264 enable_shared_with_static_runtimes=yes
9265 ;;
9266 esac
9267 ;;
9268
9269 darwin* | rhapsody*)
9270
9271
9272 archive_cmds_need_lc=no
9273 hardcode_direct=no
9274 hardcode_automatic=yes
9275 hardcode_shlibpath_var=unsupported
9276 if test "$lt_cv_ld_force_load" = "yes"; then
9277 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\"`'
9278
9279 else
9280 whole_archive_flag_spec=''
9281 fi
9282 link_all_deplibs=yes
9283 allow_undefined_flag="$_lt_dar_allow_undefined"
9284 case $cc_basename in
9285 ifort*) _lt_dar_can_shared=yes ;;
9286 *) _lt_dar_can_shared=$GCC ;;
9287 esac
9288 if test "$_lt_dar_can_shared" = "yes"; then
9289 output_verbose_link_cmd=func_echo_all
9290 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9291 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9292 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}"
9293 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}"
9294
9295 else
9296 ld_shlibs=no
9297 fi
9298
9299 ;;
9300
9301 dgux*)
9302 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9303 hardcode_libdir_flag_spec='-L$libdir'
9304 hardcode_shlibpath_var=no
9305 ;;
9306
9307 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9308 # support. Future versions do this automatically, but an explicit c++rt0.o
9309 # does not break anything, and helps significantly (at the cost of a little
9310 # extra space).
9311 freebsd2.2*)
9312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9313 hardcode_libdir_flag_spec='-R$libdir'
9314 hardcode_direct=yes
9315 hardcode_shlibpath_var=no
9316 ;;
9317
9318 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9319 freebsd2.*)
9320 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9321 hardcode_direct=yes
9322 hardcode_minus_L=yes
9323 hardcode_shlibpath_var=no
9324 ;;
9325
9326 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9327 freebsd* | dragonfly*)
9328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9329 hardcode_libdir_flag_spec='-R$libdir'
9330 hardcode_direct=yes
9331 hardcode_shlibpath_var=no
9332 ;;
9333
9334 hpux9*)
9335 if test "$GCC" = yes; then
9336 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9337 else
9338 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9339 fi
9340 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9341 hardcode_libdir_separator=:
9342 hardcode_direct=yes
9343
9344 # hardcode_minus_L: Not really in the search PATH,
9345 # but as the default location of the library.
9346 hardcode_minus_L=yes
9347 export_dynamic_flag_spec='${wl}-E'
9348 ;;
9349
9350 hpux10*)
9351 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9352 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9353 else
9354 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9355 fi
9356 if test "$with_gnu_ld" = no; then
9357 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9358 hardcode_libdir_separator=:
9359 hardcode_direct=yes
9360 hardcode_direct_absolute=yes
9361 export_dynamic_flag_spec='${wl}-E'
9362 # hardcode_minus_L: Not really in the search PATH,
9363 # but as the default location of the library.
9364 hardcode_minus_L=yes
9365 fi
9366 ;;
9367
9368 hpux11*)
9369 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9370 case $host_cpu in
9371 hppa*64*)
9372 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9373 ;;
9374 ia64*)
9375 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9376 ;;
9377 *)
9378 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9379 ;;
9380 esac
9381 else
9382 case $host_cpu in
9383 hppa*64*)
9384 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9385 ;;
9386 ia64*)
9387 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9388 ;;
9389 *)
9390
9391 # Older versions of the 11.00 compiler do not understand -b yet
9392 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9394 $as_echo_n "checking if $CC understands -b... " >&6; }
9395 if ${lt_cv_prog_compiler__b+:} false; then :
9396 $as_echo_n "(cached) " >&6
9397 else
9398 lt_cv_prog_compiler__b=no
9399 save_LDFLAGS="$LDFLAGS"
9400 LDFLAGS="$LDFLAGS -b"
9401 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9402 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9403 # The linker can only warn and ignore the option if not recognized
9404 # So say no if there are warnings
9405 if test -s conftest.err; then
9406 # Append any errors to the config.log.
9407 cat conftest.err 1>&5
9408 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9410 if diff conftest.exp conftest.er2 >/dev/null; then
9411 lt_cv_prog_compiler__b=yes
9412 fi
9413 else
9414 lt_cv_prog_compiler__b=yes
9415 fi
9416 fi
9417 $RM -r conftest*
9418 LDFLAGS="$save_LDFLAGS"
9419
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9422 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9423
9424 if test x"$lt_cv_prog_compiler__b" = xyes; then
9425 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9426 else
9427 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9428 fi
9429
9430 ;;
9431 esac
9432 fi
9433 if test "$with_gnu_ld" = no; then
9434 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9435 hardcode_libdir_separator=:
9436
9437 case $host_cpu in
9438 hppa*64*|ia64*)
9439 hardcode_direct=no
9440 hardcode_shlibpath_var=no
9441 ;;
9442 *)
9443 hardcode_direct=yes
9444 hardcode_direct_absolute=yes
9445 export_dynamic_flag_spec='${wl}-E'
9446
9447 # hardcode_minus_L: Not really in the search PATH,
9448 # but as the default location of the library.
9449 hardcode_minus_L=yes
9450 ;;
9451 esac
9452 fi
9453 ;;
9454
9455 irix5* | irix6* | nonstopux*)
9456 if test "$GCC" = yes; then
9457 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'
9458 # Try to use the -exported_symbol ld option, if it does not
9459 # work, assume that -exports_file does not work either and
9460 # implicitly export all symbols.
9461 # This should be the same for all languages, so no per-tag cache variable.
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9463 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9464 if ${lt_cv_irix_exported_symbol+:} false; then :
9465 $as_echo_n "(cached) " >&6
9466 else
9467 save_LDFLAGS="$LDFLAGS"
9468 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9470 /* end confdefs.h. */
9471 int foo (void) { return 0; }
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"; then :
9474 lt_cv_irix_exported_symbol=yes
9475 else
9476 lt_cv_irix_exported_symbol=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 LDFLAGS="$save_LDFLAGS"
9481 fi
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9483 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9484 if test "$lt_cv_irix_exported_symbol" = yes; then
9485 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'
9486 fi
9487 else
9488 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'
9489 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'
9490 fi
9491 archive_cmds_need_lc='no'
9492 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493 hardcode_libdir_separator=:
9494 inherit_rpath=yes
9495 link_all_deplibs=yes
9496 ;;
9497
9498 netbsd* | netbsdelf*-gnu)
9499 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9500 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9501 else
9502 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9503 fi
9504 hardcode_libdir_flag_spec='-R$libdir'
9505 hardcode_direct=yes
9506 hardcode_shlibpath_var=no
9507 ;;
9508
9509 newsos6)
9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_direct=yes
9512 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9513 hardcode_libdir_separator=:
9514 hardcode_shlibpath_var=no
9515 ;;
9516
9517 *nto* | *qnx*)
9518 ;;
9519
9520 openbsd*)
9521 if test -f /usr/libexec/ld.so; then
9522 hardcode_direct=yes
9523 hardcode_shlibpath_var=no
9524 hardcode_direct_absolute=yes
9525 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9526 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9527 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9528 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9529 export_dynamic_flag_spec='${wl}-E'
9530 else
9531 case $host_os in
9532 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9534 hardcode_libdir_flag_spec='-R$libdir'
9535 ;;
9536 *)
9537 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9538 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9539 ;;
9540 esac
9541 fi
9542 else
9543 ld_shlibs=no
9544 fi
9545 ;;
9546
9547 os2*)
9548 hardcode_libdir_flag_spec='-L$libdir'
9549 hardcode_minus_L=yes
9550 allow_undefined_flag=unsupported
9551 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9552 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9553 ;;
9554
9555 osf3*)
9556 if test "$GCC" = yes; then
9557 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9558 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'
9559 else
9560 allow_undefined_flag=' -expect_unresolved \*'
9561 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'
9562 fi
9563 archive_cmds_need_lc='no'
9564 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9565 hardcode_libdir_separator=:
9566 ;;
9567
9568 osf4* | osf5*) # as osf3* with the addition of -msym flag
9569 if test "$GCC" = yes; then
9570 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9571 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'
9572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9573 else
9574 allow_undefined_flag=' -expect_unresolved \*'
9575 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'
9576 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~
9577 $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'
9578
9579 # Both c and cxx compiler support -rpath directly
9580 hardcode_libdir_flag_spec='-rpath $libdir'
9581 fi
9582 archive_cmds_need_lc='no'
9583 hardcode_libdir_separator=:
9584 ;;
9585
9586 solaris*)
9587 no_undefined_flag=' -z defs'
9588 if test "$GCC" = yes; then
9589 wlarc='${wl}'
9590 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9591 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9592 $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'
9593 else
9594 case `$CC -V 2>&1` in
9595 *"Compilers 5.0"*)
9596 wlarc=''
9597 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9600 ;;
9601 *)
9602 wlarc='${wl}'
9603 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9604 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9605 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9606 ;;
9607 esac
9608 fi
9609 hardcode_libdir_flag_spec='-R$libdir'
9610 hardcode_shlibpath_var=no
9611 case $host_os in
9612 solaris2.[0-5] | solaris2.[0-5].*) ;;
9613 *)
9614 # The compiler driver will combine and reorder linker options,
9615 # but understands `-z linker_flag'. GCC discards it without `$wl',
9616 # but is careful enough not to reorder.
9617 # Supported since Solaris 2.6 (maybe 2.5.1?)
9618 if test "$GCC" = yes; then
9619 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9620 else
9621 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9622 fi
9623 ;;
9624 esac
9625 link_all_deplibs=yes
9626 ;;
9627
9628 sunos4*)
9629 if test "x$host_vendor" = xsequent; then
9630 # Use $CC to link under sequent, because it throws in some extra .o
9631 # files that make .init and .fini sections work.
9632 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9633 else
9634 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9635 fi
9636 hardcode_libdir_flag_spec='-L$libdir'
9637 hardcode_direct=yes
9638 hardcode_minus_L=yes
9639 hardcode_shlibpath_var=no
9640 ;;
9641
9642 sysv4)
9643 case $host_vendor in
9644 sni)
9645 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646 hardcode_direct=yes # is this really true???
9647 ;;
9648 siemens)
9649 ## LD is ld it makes a PLAMLIB
9650 ## CC just makes a GrossModule.
9651 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9652 reload_cmds='$CC -r -o $output$reload_objs'
9653 hardcode_direct=no
9654 ;;
9655 motorola)
9656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9657 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9658 ;;
9659 esac
9660 runpath_var='LD_RUN_PATH'
9661 hardcode_shlibpath_var=no
9662 ;;
9663
9664 sysv4.3*)
9665 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666 hardcode_shlibpath_var=no
9667 export_dynamic_flag_spec='-Bexport'
9668 ;;
9669
9670 sysv4*MP*)
9671 if test -d /usr/nec; then
9672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_shlibpath_var=no
9674 runpath_var=LD_RUN_PATH
9675 hardcode_runpath_var=yes
9676 ld_shlibs=yes
9677 fi
9678 ;;
9679
9680 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9681 no_undefined_flag='${wl}-z,text'
9682 archive_cmds_need_lc=no
9683 hardcode_shlibpath_var=no
9684 runpath_var='LD_RUN_PATH'
9685
9686 if test "$GCC" = yes; then
9687 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9688 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9689 else
9690 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9691 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 fi
9693 ;;
9694
9695 sysv5* | sco3.2v5* | sco5v6*)
9696 # Note: We can NOT use -z defs as we might desire, because we do not
9697 # link with -lc, and that would cause any symbols used from libc to
9698 # always be unresolved, which means just about no library would
9699 # ever link correctly. If we're not using GNU ld we use -z text
9700 # though, which does catch some bad symbols but isn't as heavy-handed
9701 # as -z defs.
9702 no_undefined_flag='${wl}-z,text'
9703 allow_undefined_flag='${wl}-z,nodefs'
9704 archive_cmds_need_lc=no
9705 hardcode_shlibpath_var=no
9706 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9707 hardcode_libdir_separator=':'
9708 link_all_deplibs=yes
9709 export_dynamic_flag_spec='${wl}-Bexport'
9710 runpath_var='LD_RUN_PATH'
9711
9712 if test "$GCC" = yes; then
9713 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9714 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9715 else
9716 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9718 fi
9719 ;;
9720
9721 uts4*)
9722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_shlibpath_var=no
9725 ;;
9726
9727 *)
9728 ld_shlibs=no
9729 ;;
9730 esac
9731
9732 if test x$host_vendor = xsni; then
9733 case $host in
9734 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9735 export_dynamic_flag_spec='${wl}-Blargedynsym'
9736 ;;
9737 esac
9738 fi
9739 fi
9740
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9742 $as_echo "$ld_shlibs" >&6; }
9743 test "$ld_shlibs" = no && can_build_shared=no
9744
9745 with_gnu_ld=$with_gnu_ld
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761 #
9762 # Do we need to explicitly link libc?
9763 #
9764 case "x$archive_cmds_need_lc" in
9765 x|xyes)
9766 # Assume -lc should be added
9767 archive_cmds_need_lc=yes
9768
9769 if test "$enable_shared" = yes && test "$GCC" = yes; then
9770 case $archive_cmds in
9771 *'~'*)
9772 # FIXME: we may have to deal with multi-command sequences.
9773 ;;
9774 '$CC '*)
9775 # Test whether the compiler implicitly links with -lc since on some
9776 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9777 # to ld, don't add -lc before -lgcc.
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9779 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9780 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9781 $as_echo_n "(cached) " >&6
9782 else
9783 $RM conftest*
9784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9785
9786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9787 (eval $ac_compile) 2>&5
9788 ac_status=$?
9789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9790 test $ac_status = 0; } 2>conftest.err; then
9791 soname=conftest
9792 lib=conftest
9793 libobjs=conftest.$ac_objext
9794 deplibs=
9795 wl=$lt_prog_compiler_wl
9796 pic_flag=$lt_prog_compiler_pic
9797 compiler_flags=-v
9798 linker_flags=-v
9799 verstring=
9800 output_objdir=.
9801 libname=conftest
9802 lt_save_allow_undefined_flag=$allow_undefined_flag
9803 allow_undefined_flag=
9804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9805 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9806 ac_status=$?
9807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9808 test $ac_status = 0; }
9809 then
9810 lt_cv_archive_cmds_need_lc=no
9811 else
9812 lt_cv_archive_cmds_need_lc=yes
9813 fi
9814 allow_undefined_flag=$lt_save_allow_undefined_flag
9815 else
9816 cat conftest.err 1>&5
9817 fi
9818 $RM conftest*
9819
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9822 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9823 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9824 ;;
9825 esac
9826 fi
9827 ;;
9828 esac
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9982 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9983
9984 if test "$GCC" = yes; then
9985 case $host_os in
9986 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9987 *) lt_awk_arg="/^libraries:/" ;;
9988 esac
9989 case $host_os in
9990 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9991 *) lt_sed_strip_eq="s,=/,/,g" ;;
9992 esac
9993 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9994 case $lt_search_path_spec in
9995 *\;*)
9996 # if the path contains ";" then we assume it to be the separator
9997 # otherwise default to the standard path separator (i.e. ":") - it is
9998 # assumed that no part of a normal pathname contains ";" but that should
9999 # okay in the real world where ";" in dirpaths is itself problematic.
10000 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10001 ;;
10002 *)
10003 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10004 ;;
10005 esac
10006 # Ok, now we have the path, separated by spaces, we can step through it
10007 # and add multilib dir if necessary.
10008 lt_tmp_lt_search_path_spec=
10009 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10010 for lt_sys_path in $lt_search_path_spec; do
10011 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10012 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10013 else
10014 test -d "$lt_sys_path" && \
10015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10016 fi
10017 done
10018 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10019 BEGIN {RS=" "; FS="/|\n";} {
10020 lt_foo="";
10021 lt_count=0;
10022 for (lt_i = NF; lt_i > 0; lt_i--) {
10023 if ($lt_i != "" && $lt_i != ".") {
10024 if ($lt_i == "..") {
10025 lt_count++;
10026 } else {
10027 if (lt_count == 0) {
10028 lt_foo="/" $lt_i lt_foo;
10029 } else {
10030 lt_count--;
10031 }
10032 }
10033 }
10034 }
10035 if (lt_foo != "") { lt_freq[lt_foo]++; }
10036 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10037 }'`
10038 # AWK program above erroneously prepends '/' to C:/dos/paths
10039 # for these hosts.
10040 case $host_os in
10041 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10042 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10043 esac
10044 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10045 else
10046 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10047 fi
10048 library_names_spec=
10049 libname_spec='lib$name'
10050 soname_spec=
10051 shrext_cmds=".so"
10052 postinstall_cmds=
10053 postuninstall_cmds=
10054 finish_cmds=
10055 finish_eval=
10056 shlibpath_var=
10057 shlibpath_overrides_runpath=unknown
10058 version_type=none
10059 dynamic_linker="$host_os ld.so"
10060 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10061 need_lib_prefix=unknown
10062 hardcode_into_libs=no
10063
10064 # when you set need_version to no, make sure it does not cause -set_version
10065 # flags to be left without arguments
10066 need_version=unknown
10067
10068 case $host_os in
10069 aix3*)
10070 version_type=linux # correct to gnu/linux during the next big refactor
10071 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10072 shlibpath_var=LIBPATH
10073
10074 # AIX 3 has no versioning support, so we append a major version to the name.
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 ;;
10077
10078 aix[4-9]*)
10079 version_type=linux # correct to gnu/linux during the next big refactor
10080 need_lib_prefix=no
10081 need_version=no
10082 hardcode_into_libs=yes
10083 if test "$host_cpu" = ia64; then
10084 # AIX 5 supports IA64
10085 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10086 shlibpath_var=LD_LIBRARY_PATH
10087 else
10088 # With GCC up to 2.95.x, collect2 would create an import file
10089 # for dependence libraries. The import file would start with
10090 # the line `#! .'. This would cause the generated library to
10091 # depend on `.', always an invalid library. This was fixed in
10092 # development snapshots of GCC prior to 3.0.
10093 case $host_os in
10094 aix4 | aix4.[01] | aix4.[01].*)
10095 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10096 echo ' yes '
10097 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10098 :
10099 else
10100 can_build_shared=no
10101 fi
10102 ;;
10103 esac
10104 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10105 # soname into executable. Probably we can add versioning support to
10106 # collect2, so additional links can be useful in future.
10107 if test "$aix_use_runtimelinking" = yes; then
10108 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10109 # instead of lib<name>.a to let people know that these are not
10110 # typical AIX shared libraries.
10111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10112 else
10113 # We preserve .a as extension for shared libraries through AIX4.2
10114 # and later when we are not doing run time linking.
10115 library_names_spec='${libname}${release}.a $libname.a'
10116 soname_spec='${libname}${release}${shared_ext}$major'
10117 fi
10118 shlibpath_var=LIBPATH
10119 fi
10120 ;;
10121
10122 amigaos*)
10123 case $host_cpu in
10124 powerpc)
10125 # Since July 2007 AmigaOS4 officially supports .so libraries.
10126 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10128 ;;
10129 m68k)
10130 library_names_spec='$libname.ixlibrary $libname.a'
10131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10132 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10133 ;;
10134 esac
10135 ;;
10136
10137 beos*)
10138 library_names_spec='${libname}${shared_ext}'
10139 dynamic_linker="$host_os ld.so"
10140 shlibpath_var=LIBRARY_PATH
10141 ;;
10142
10143 bsdi[45]*)
10144 version_type=linux # correct to gnu/linux during the next big refactor
10145 need_version=no
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10149 shlibpath_var=LD_LIBRARY_PATH
10150 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10151 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10152 # the default ld.so.conf also contains /usr/contrib/lib and
10153 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10154 # libtool to hard-code these into programs
10155 ;;
10156
10157 cygwin* | mingw* | pw32* | cegcc*)
10158 version_type=windows
10159 shrext_cmds=".dll"
10160 need_version=no
10161 need_lib_prefix=no
10162
10163 case $GCC,$cc_basename in
10164 yes,*)
10165 # gcc
10166 library_names_spec='$libname.dll.a'
10167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10168 postinstall_cmds='base_file=`basename \${file}`~
10169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10170 dldir=$destdir/`dirname \$dlpath`~
10171 test -d \$dldir || mkdir -p \$dldir~
10172 $install_prog $dir/$dlname \$dldir/$dlname~
10173 chmod a+x \$dldir/$dlname~
10174 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10175 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10176 fi'
10177 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10178 dlpath=$dir/\$dldll~
10179 $RM \$dlpath'
10180 shlibpath_overrides_runpath=yes
10181
10182 case $host_os in
10183 cygwin*)
10184 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10185 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10186
10187 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10188 ;;
10189 mingw* | cegcc*)
10190 # MinGW DLLs use traditional 'lib' prefix
10191 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10192 ;;
10193 pw32*)
10194 # pw32 DLLs use 'pw' prefix rather than 'lib'
10195 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10196 ;;
10197 esac
10198 dynamic_linker='Win32 ld.exe'
10199 ;;
10200
10201 *,cl*)
10202 # Native MSVC
10203 libname_spec='$name'
10204 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10205 library_names_spec='${libname}.dll.lib'
10206
10207 case $build_os in
10208 mingw*)
10209 sys_lib_search_path_spec=
10210 lt_save_ifs=$IFS
10211 IFS=';'
10212 for lt_path in $LIB
10213 do
10214 IFS=$lt_save_ifs
10215 # Let DOS variable expansion print the short 8.3 style file name.
10216 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10217 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10218 done
10219 IFS=$lt_save_ifs
10220 # Convert to MSYS style.
10221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10222 ;;
10223 cygwin*)
10224 # Convert to unix form, then to dos form, then back to unix form
10225 # but this time dos style (no spaces!) so that the unix form looks
10226 # like /cygdrive/c/PROGRA~1:/cygdr...
10227 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10228 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10229 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10230 ;;
10231 *)
10232 sys_lib_search_path_spec="$LIB"
10233 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10234 # It is most probably a Windows format PATH.
10235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10236 else
10237 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10238 fi
10239 # FIXME: find the short name or the path components, as spaces are
10240 # common. (e.g. "Program Files" -> "PROGRA~1")
10241 ;;
10242 esac
10243
10244 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10245 postinstall_cmds='base_file=`basename \${file}`~
10246 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10247 dldir=$destdir/`dirname \$dlpath`~
10248 test -d \$dldir || mkdir -p \$dldir~
10249 $install_prog $dir/$dlname \$dldir/$dlname'
10250 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10251 dlpath=$dir/\$dldll~
10252 $RM \$dlpath'
10253 shlibpath_overrides_runpath=yes
10254 dynamic_linker='Win32 link.exe'
10255 ;;
10256
10257 *)
10258 # Assume MSVC wrapper
10259 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10260 dynamic_linker='Win32 ld.exe'
10261 ;;
10262 esac
10263 # FIXME: first we should search . and the directory the executable is in
10264 shlibpath_var=PATH
10265 ;;
10266
10267 darwin* | rhapsody*)
10268 dynamic_linker="$host_os dyld"
10269 version_type=darwin
10270 need_lib_prefix=no
10271 need_version=no
10272 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10273 soname_spec='${libname}${release}${major}$shared_ext'
10274 shlibpath_overrides_runpath=yes
10275 shlibpath_var=DYLD_LIBRARY_PATH
10276 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10277
10278 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10280 ;;
10281
10282 dgux*)
10283 version_type=linux # correct to gnu/linux during the next big refactor
10284 need_lib_prefix=no
10285 need_version=no
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10287 soname_spec='${libname}${release}${shared_ext}$major'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 ;;
10290
10291 freebsd* | dragonfly*)
10292 # DragonFly does not have aout. When/if they implement a new
10293 # versioning mechanism, adjust this.
10294 if test -x /usr/bin/objformat; then
10295 objformat=`/usr/bin/objformat`
10296 else
10297 case $host_os in
10298 freebsd[23].*) objformat=aout ;;
10299 *) objformat=elf ;;
10300 esac
10301 fi
10302 version_type=freebsd-$objformat
10303 case $version_type in
10304 freebsd-elf*)
10305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10306 need_version=no
10307 need_lib_prefix=no
10308 ;;
10309 freebsd-*)
10310 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10311 need_version=yes
10312 ;;
10313 esac
10314 shlibpath_var=LD_LIBRARY_PATH
10315 case $host_os in
10316 freebsd2.*)
10317 shlibpath_overrides_runpath=yes
10318 ;;
10319 freebsd3.[01]* | freebsdelf3.[01]*)
10320 shlibpath_overrides_runpath=yes
10321 hardcode_into_libs=yes
10322 ;;
10323 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10324 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10327 ;;
10328 *) # from 4.6 on, and DragonFly
10329 shlibpath_overrides_runpath=yes
10330 hardcode_into_libs=yes
10331 ;;
10332 esac
10333 ;;
10334
10335 haiku*)
10336 version_type=linux # correct to gnu/linux during the next big refactor
10337 need_lib_prefix=no
10338 need_version=no
10339 dynamic_linker="$host_os runtime_loader"
10340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 shlibpath_var=LIBRARY_PATH
10343 shlibpath_overrides_runpath=yes
10344 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10345 hardcode_into_libs=yes
10346 ;;
10347
10348 hpux9* | hpux10* | hpux11*)
10349 # Give a soname corresponding to the major version so that dld.sl refuses to
10350 # link against other versions.
10351 version_type=sunos
10352 need_lib_prefix=no
10353 need_version=no
10354 case $host_cpu in
10355 ia64*)
10356 shrext_cmds='.so'
10357 hardcode_into_libs=yes
10358 dynamic_linker="$host_os dld.so"
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10362 soname_spec='${libname}${release}${shared_ext}$major'
10363 if test "X$HPUX_IA64_MODE" = X32; then
10364 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10365 else
10366 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10367 fi
10368 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10369 ;;
10370 hppa*64*)
10371 shrext_cmds='.sl'
10372 hardcode_into_libs=yes
10373 dynamic_linker="$host_os dld.sl"
10374 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10375 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10379 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10380 ;;
10381 *)
10382 shrext_cmds='.sl'
10383 dynamic_linker="$host_os dld.sl"
10384 shlibpath_var=SHLIB_PATH
10385 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10387 soname_spec='${libname}${release}${shared_ext}$major'
10388 ;;
10389 esac
10390 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10391 postinstall_cmds='chmod 555 $lib'
10392 # or fails outright, so override atomically:
10393 install_override_mode=555
10394 ;;
10395
10396 interix[3-9]*)
10397 version_type=linux # correct to gnu/linux during the next big refactor
10398 need_lib_prefix=no
10399 need_version=no
10400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10401 soname_spec='${libname}${release}${shared_ext}$major'
10402 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 shlibpath_overrides_runpath=no
10405 hardcode_into_libs=yes
10406 ;;
10407
10408 irix5* | irix6* | nonstopux*)
10409 case $host_os in
10410 nonstopux*) version_type=nonstopux ;;
10411 *)
10412 if test "$lt_cv_prog_gnu_ld" = yes; then
10413 version_type=linux # correct to gnu/linux during the next big refactor
10414 else
10415 version_type=irix
10416 fi ;;
10417 esac
10418 need_lib_prefix=no
10419 need_version=no
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10422 case $host_os in
10423 irix5* | nonstopux*)
10424 libsuff= shlibsuff=
10425 ;;
10426 *)
10427 case $LD in # libtool.m4 will add one of these switches to LD
10428 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10429 libsuff= shlibsuff= libmagic=32-bit;;
10430 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10431 libsuff=32 shlibsuff=N32 libmagic=N32;;
10432 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10433 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10434 *) libsuff= shlibsuff= libmagic=never-match;;
10435 esac
10436 ;;
10437 esac
10438 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10439 shlibpath_overrides_runpath=no
10440 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10441 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10442 hardcode_into_libs=yes
10443 ;;
10444
10445 # No shared lib support for Linux oldld, aout, or coff.
10446 linux*oldld* | linux*aout* | linux*coff*)
10447 dynamic_linker=no
10448 ;;
10449
10450 # This must be glibc/ELF.
10451 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10452 version_type=linux # correct to gnu/linux during the next big refactor
10453 need_lib_prefix=no
10454 need_version=no
10455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10456 soname_spec='${libname}${release}${shared_ext}$major'
10457 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10458 shlibpath_var=LD_LIBRARY_PATH
10459 shlibpath_overrides_runpath=no
10460
10461 # Some binutils ld are patched to set DT_RUNPATH
10462 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10463 $as_echo_n "(cached) " >&6
10464 else
10465 lt_cv_shlibpath_overrides_runpath=no
10466 save_LDFLAGS=$LDFLAGS
10467 save_libdir=$libdir
10468 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10469 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10472
10473 int
10474 main ()
10475 {
10476
10477 ;
10478 return 0;
10479 }
10480 _ACEOF
10481 if ac_fn_c_try_link "$LINENO"; then :
10482 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10483 lt_cv_shlibpath_overrides_runpath=yes
10484 fi
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10488 LDFLAGS=$save_LDFLAGS
10489 libdir=$save_libdir
10490
10491 fi
10492
10493 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10494
10495 # This implies no fast_install, which is unacceptable.
10496 # Some rework will be needed to allow for fast_install
10497 # before this can be enabled.
10498 hardcode_into_libs=yes
10499
10500 # Append ld.so.conf contents to the search path
10501 if test -f /etc/ld.so.conf; then
10502 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' ' '`
10503 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10504 fi
10505
10506 # We used to test for /lib/ld.so.1 and disable shared libraries on
10507 # powerpc, because MkLinux only supported shared libraries with the
10508 # GNU dynamic linker. Since this was broken with cross compilers,
10509 # most powerpc-linux boxes support dynamic linking these days and
10510 # people can always --disable-shared, the test was removed, and we
10511 # assume the GNU/Linux dynamic linker is in use.
10512 dynamic_linker='GNU/Linux ld.so'
10513 ;;
10514
10515 netbsdelf*-gnu)
10516 version_type=linux
10517 need_lib_prefix=no
10518 need_version=no
10519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10520 soname_spec='${libname}${release}${shared_ext}$major'
10521 shlibpath_var=LD_LIBRARY_PATH
10522 shlibpath_overrides_runpath=no
10523 hardcode_into_libs=yes
10524 dynamic_linker='NetBSD ld.elf_so'
10525 ;;
10526
10527 netbsd*)
10528 version_type=sunos
10529 need_lib_prefix=no
10530 need_version=no
10531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10534 dynamic_linker='NetBSD (a.out) ld.so'
10535 else
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 dynamic_linker='NetBSD ld.elf_so'
10539 fi
10540 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=yes
10542 hardcode_into_libs=yes
10543 ;;
10544
10545 newsos6)
10546 version_type=linux # correct to gnu/linux during the next big refactor
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10548 shlibpath_var=LD_LIBRARY_PATH
10549 shlibpath_overrides_runpath=yes
10550 ;;
10551
10552 *nto* | *qnx*)
10553 version_type=qnx
10554 need_lib_prefix=no
10555 need_version=no
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 shlibpath_var=LD_LIBRARY_PATH
10559 shlibpath_overrides_runpath=no
10560 hardcode_into_libs=yes
10561 dynamic_linker='ldqnx.so'
10562 ;;
10563
10564 openbsd*)
10565 version_type=sunos
10566 sys_lib_dlsearch_path_spec="/usr/lib"
10567 need_lib_prefix=no
10568 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10569 case $host_os in
10570 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10571 *) need_version=no ;;
10572 esac
10573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10575 shlibpath_var=LD_LIBRARY_PATH
10576 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10577 case $host_os in
10578 openbsd2.[89] | openbsd2.[89].*)
10579 shlibpath_overrides_runpath=no
10580 ;;
10581 *)
10582 shlibpath_overrides_runpath=yes
10583 ;;
10584 esac
10585 else
10586 shlibpath_overrides_runpath=yes
10587 fi
10588 ;;
10589
10590 os2*)
10591 libname_spec='$name'
10592 shrext_cmds=".dll"
10593 need_lib_prefix=no
10594 library_names_spec='$libname${shared_ext} $libname.a'
10595 dynamic_linker='OS/2 ld.exe'
10596 shlibpath_var=LIBPATH
10597 ;;
10598
10599 osf3* | osf4* | osf5*)
10600 version_type=osf
10601 need_lib_prefix=no
10602 need_version=no
10603 soname_spec='${libname}${release}${shared_ext}$major'
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 shlibpath_var=LD_LIBRARY_PATH
10606 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10607 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10608 ;;
10609
10610 rdos*)
10611 dynamic_linker=no
10612 ;;
10613
10614 solaris*)
10615 version_type=linux # correct to gnu/linux during the next big refactor
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=yes
10622 hardcode_into_libs=yes
10623 # ldd complains unless libraries are executable
10624 postinstall_cmds='chmod +x $lib'
10625 ;;
10626
10627 sunos4*)
10628 version_type=sunos
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10631 shlibpath_var=LD_LIBRARY_PATH
10632 shlibpath_overrides_runpath=yes
10633 if test "$with_gnu_ld" = yes; then
10634 need_lib_prefix=no
10635 fi
10636 need_version=yes
10637 ;;
10638
10639 sysv4 | sysv4.3*)
10640 version_type=linux # correct to gnu/linux during the next big refactor
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 shlibpath_var=LD_LIBRARY_PATH
10644 case $host_vendor in
10645 sni)
10646 shlibpath_overrides_runpath=no
10647 need_lib_prefix=no
10648 runpath_var=LD_RUN_PATH
10649 ;;
10650 siemens)
10651 need_lib_prefix=no
10652 ;;
10653 motorola)
10654 need_lib_prefix=no
10655 need_version=no
10656 shlibpath_overrides_runpath=no
10657 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10658 ;;
10659 esac
10660 ;;
10661
10662 sysv4*MP*)
10663 if test -d /usr/nec ;then
10664 version_type=linux # correct to gnu/linux during the next big refactor
10665 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10666 soname_spec='$libname${shared_ext}.$major'
10667 shlibpath_var=LD_LIBRARY_PATH
10668 fi
10669 ;;
10670
10671 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10672 version_type=freebsd-elf
10673 need_lib_prefix=no
10674 need_version=no
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10677 shlibpath_var=LD_LIBRARY_PATH
10678 shlibpath_overrides_runpath=yes
10679 hardcode_into_libs=yes
10680 if test "$with_gnu_ld" = yes; then
10681 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10682 else
10683 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10684 case $host_os in
10685 sco3.2v5*)
10686 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10687 ;;
10688 esac
10689 fi
10690 sys_lib_dlsearch_path_spec='/usr/lib'
10691 ;;
10692
10693 tpf*)
10694 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10695 version_type=linux # correct to gnu/linux during the next big refactor
10696 need_lib_prefix=no
10697 need_version=no
10698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10699 shlibpath_var=LD_LIBRARY_PATH
10700 shlibpath_overrides_runpath=no
10701 hardcode_into_libs=yes
10702 ;;
10703
10704 uts4*)
10705 version_type=linux # correct to gnu/linux during the next big refactor
10706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10707 soname_spec='${libname}${release}${shared_ext}$major'
10708 shlibpath_var=LD_LIBRARY_PATH
10709 ;;
10710
10711 *)
10712 dynamic_linker=no
10713 ;;
10714 esac
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10716 $as_echo "$dynamic_linker" >&6; }
10717 test "$dynamic_linker" = no && can_build_shared=no
10718
10719 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10720 if test "$GCC" = yes; then
10721 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10722 fi
10723
10724 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10725 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10726 fi
10727 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10728 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10729 fi
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10823 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10824 hardcode_action=
10825 if test -n "$hardcode_libdir_flag_spec" ||
10826 test -n "$runpath_var" ||
10827 test "X$hardcode_automatic" = "Xyes" ; then
10828
10829 # We can hardcode non-existent directories.
10830 if test "$hardcode_direct" != no &&
10831 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10832 # have to relink, otherwise we might link with an installed library
10833 # when we should be linking with a yet-to-be-installed one
10834 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10835 test "$hardcode_minus_L" != no; then
10836 # Linking always hardcodes the temporary library directory.
10837 hardcode_action=relink
10838 else
10839 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10840 hardcode_action=immediate
10841 fi
10842 else
10843 # We cannot hardcode anything, or else we can only hardcode existing
10844 # directories.
10845 hardcode_action=unsupported
10846 fi
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10848 $as_echo "$hardcode_action" >&6; }
10849
10850 if test "$hardcode_action" = relink ||
10851 test "$inherit_rpath" = yes; then
10852 # Fast installation is not supported
10853 enable_fast_install=no
10854 elif test "$shlibpath_overrides_runpath" = yes ||
10855 test "$enable_shared" = no; then
10856 # Fast installation is not necessary
10857 enable_fast_install=needless
10858 fi
10859
10860
10861
10862
10863
10864
10865 if test "x$enable_dlopen" != xyes; then
10866 enable_dlopen=unknown
10867 enable_dlopen_self=unknown
10868 enable_dlopen_self_static=unknown
10869 else
10870 lt_cv_dlopen=no
10871 lt_cv_dlopen_libs=
10872
10873 case $host_os in
10874 beos*)
10875 lt_cv_dlopen="load_add_on"
10876 lt_cv_dlopen_libs=
10877 lt_cv_dlopen_self=yes
10878 ;;
10879
10880 mingw* | pw32* | cegcc*)
10881 lt_cv_dlopen="LoadLibrary"
10882 lt_cv_dlopen_libs=
10883 ;;
10884
10885 cygwin*)
10886 lt_cv_dlopen="dlopen"
10887 lt_cv_dlopen_libs=
10888 ;;
10889
10890 darwin*)
10891 # if libdl is installed we need to link against it
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10893 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10894 if ${ac_cv_lib_dl_dlopen+:} false; then :
10895 $as_echo_n "(cached) " >&6
10896 else
10897 ac_check_lib_save_LIBS=$LIBS
10898 LIBS="-ldl $LIBS"
10899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10900 /* end confdefs.h. */
10901
10902 /* Override any GCC internal prototype to avoid an error.
10903 Use char because int might match the return type of a GCC
10904 builtin and then its argument prototype would still apply. */
10905 #ifdef __cplusplus
10906 extern "C"
10907 #endif
10908 char dlopen ();
10909 int
10910 main ()
10911 {
10912 return dlopen ();
10913 ;
10914 return 0;
10915 }
10916 _ACEOF
10917 if ac_fn_c_try_link "$LINENO"; then :
10918 ac_cv_lib_dl_dlopen=yes
10919 else
10920 ac_cv_lib_dl_dlopen=no
10921 fi
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 LIBS=$ac_check_lib_save_LIBS
10925 fi
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10927 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10928 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10929 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10930 else
10931
10932 lt_cv_dlopen="dyld"
10933 lt_cv_dlopen_libs=
10934 lt_cv_dlopen_self=yes
10935
10936 fi
10937
10938 ;;
10939
10940 *)
10941 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10942 if test "x$ac_cv_func_shl_load" = xyes; then :
10943 lt_cv_dlopen="shl_load"
10944 else
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10946 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10947 if ${ac_cv_lib_dld_shl_load+:} false; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 ac_check_lib_save_LIBS=$LIBS
10951 LIBS="-ldld $LIBS"
10952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10953 /* end confdefs.h. */
10954
10955 /* Override any GCC internal prototype to avoid an error.
10956 Use char because int might match the return type of a GCC
10957 builtin and then its argument prototype would still apply. */
10958 #ifdef __cplusplus
10959 extern "C"
10960 #endif
10961 char shl_load ();
10962 int
10963 main ()
10964 {
10965 return shl_load ();
10966 ;
10967 return 0;
10968 }
10969 _ACEOF
10970 if ac_fn_c_try_link "$LINENO"; then :
10971 ac_cv_lib_dld_shl_load=yes
10972 else
10973 ac_cv_lib_dld_shl_load=no
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 LIBS=$ac_check_lib_save_LIBS
10978 fi
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10980 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10981 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10982 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10983 else
10984 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10985 if test "x$ac_cv_func_dlopen" = xyes; then :
10986 lt_cv_dlopen="dlopen"
10987 else
10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10989 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10990 if ${ac_cv_lib_dl_dlopen+:} false; then :
10991 $as_echo_n "(cached) " >&6
10992 else
10993 ac_check_lib_save_LIBS=$LIBS
10994 LIBS="-ldl $LIBS"
10995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997
10998 /* Override any GCC internal prototype to avoid an error.
10999 Use char because int might match the return type of a GCC
11000 builtin and then its argument prototype would still apply. */
11001 #ifdef __cplusplus
11002 extern "C"
11003 #endif
11004 char dlopen ();
11005 int
11006 main ()
11007 {
11008 return dlopen ();
11009 ;
11010 return 0;
11011 }
11012 _ACEOF
11013 if ac_fn_c_try_link "$LINENO"; then :
11014 ac_cv_lib_dl_dlopen=yes
11015 else
11016 ac_cv_lib_dl_dlopen=no
11017 fi
11018 rm -f core conftest.err conftest.$ac_objext \
11019 conftest$ac_exeext conftest.$ac_ext
11020 LIBS=$ac_check_lib_save_LIBS
11021 fi
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11023 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11024 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11025 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11026 else
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11028 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11029 if ${ac_cv_lib_svld_dlopen+:} false; then :
11030 $as_echo_n "(cached) " >&6
11031 else
11032 ac_check_lib_save_LIBS=$LIBS
11033 LIBS="-lsvld $LIBS"
11034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035 /* end confdefs.h. */
11036
11037 /* Override any GCC internal prototype to avoid an error.
11038 Use char because int might match the return type of a GCC
11039 builtin and then its argument prototype would still apply. */
11040 #ifdef __cplusplus
11041 extern "C"
11042 #endif
11043 char dlopen ();
11044 int
11045 main ()
11046 {
11047 return dlopen ();
11048 ;
11049 return 0;
11050 }
11051 _ACEOF
11052 if ac_fn_c_try_link "$LINENO"; then :
11053 ac_cv_lib_svld_dlopen=yes
11054 else
11055 ac_cv_lib_svld_dlopen=no
11056 fi
11057 rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
11059 LIBS=$ac_check_lib_save_LIBS
11060 fi
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11062 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11063 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11064 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11065 else
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11067 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11068 if ${ac_cv_lib_dld_dld_link+:} false; then :
11069 $as_echo_n "(cached) " >&6
11070 else
11071 ac_check_lib_save_LIBS=$LIBS
11072 LIBS="-ldld $LIBS"
11073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074 /* end confdefs.h. */
11075
11076 /* Override any GCC internal prototype to avoid an error.
11077 Use char because int might match the return type of a GCC
11078 builtin and then its argument prototype would still apply. */
11079 #ifdef __cplusplus
11080 extern "C"
11081 #endif
11082 char dld_link ();
11083 int
11084 main ()
11085 {
11086 return dld_link ();
11087 ;
11088 return 0;
11089 }
11090 _ACEOF
11091 if ac_fn_c_try_link "$LINENO"; then :
11092 ac_cv_lib_dld_dld_link=yes
11093 else
11094 ac_cv_lib_dld_dld_link=no
11095 fi
11096 rm -f core conftest.err conftest.$ac_objext \
11097 conftest$ac_exeext conftest.$ac_ext
11098 LIBS=$ac_check_lib_save_LIBS
11099 fi
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11101 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11102 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11103 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11104 fi
11105
11106
11107 fi
11108
11109
11110 fi
11111
11112
11113 fi
11114
11115
11116 fi
11117
11118
11119 fi
11120
11121 ;;
11122 esac
11123
11124 if test "x$lt_cv_dlopen" != xno; then
11125 enable_dlopen=yes
11126 else
11127 enable_dlopen=no
11128 fi
11129
11130 case $lt_cv_dlopen in
11131 dlopen)
11132 save_CPPFLAGS="$CPPFLAGS"
11133 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11134
11135 save_LDFLAGS="$LDFLAGS"
11136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11137
11138 save_LIBS="$LIBS"
11139 LIBS="$lt_cv_dlopen_libs $LIBS"
11140
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11142 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11143 if ${lt_cv_dlopen_self+:} false; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 if test "$cross_compiling" = yes; then :
11147 lt_cv_dlopen_self=cross
11148 else
11149 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11150 lt_status=$lt_dlunknown
11151 cat > conftest.$ac_ext <<_LT_EOF
11152 #line $LINENO "configure"
11153 #include "confdefs.h"
11154
11155 #if HAVE_DLFCN_H
11156 #include <dlfcn.h>
11157 #endif
11158
11159 #include <stdio.h>
11160
11161 #ifdef RTLD_GLOBAL
11162 # define LT_DLGLOBAL RTLD_GLOBAL
11163 #else
11164 # ifdef DL_GLOBAL
11165 # define LT_DLGLOBAL DL_GLOBAL
11166 # else
11167 # define LT_DLGLOBAL 0
11168 # endif
11169 #endif
11170
11171 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11172 find out it does not work in some platform. */
11173 #ifndef LT_DLLAZY_OR_NOW
11174 # ifdef RTLD_LAZY
11175 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11176 # else
11177 # ifdef DL_LAZY
11178 # define LT_DLLAZY_OR_NOW DL_LAZY
11179 # else
11180 # ifdef RTLD_NOW
11181 # define LT_DLLAZY_OR_NOW RTLD_NOW
11182 # else
11183 # ifdef DL_NOW
11184 # define LT_DLLAZY_OR_NOW DL_NOW
11185 # else
11186 # define LT_DLLAZY_OR_NOW 0
11187 # endif
11188 # endif
11189 # endif
11190 # endif
11191 #endif
11192
11193 /* When -fvisbility=hidden is used, assume the code has been annotated
11194 correspondingly for the symbols needed. */
11195 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11196 int fnord () __attribute__((visibility("default")));
11197 #endif
11198
11199 int fnord () { return 42; }
11200 int main ()
11201 {
11202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11203 int status = $lt_dlunknown;
11204
11205 if (self)
11206 {
11207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11208 else
11209 {
11210 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11211 else puts (dlerror ());
11212 }
11213 /* dlclose (self); */
11214 }
11215 else
11216 puts (dlerror ());
11217
11218 return status;
11219 }
11220 _LT_EOF
11221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11222 (eval $ac_link) 2>&5
11223 ac_status=$?
11224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11226 (./conftest; exit; ) >&5 2>/dev/null
11227 lt_status=$?
11228 case x$lt_status in
11229 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11230 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11231 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11232 esac
11233 else :
11234 # compilation failed
11235 lt_cv_dlopen_self=no
11236 fi
11237 fi
11238 rm -fr conftest*
11239
11240
11241 fi
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11243 $as_echo "$lt_cv_dlopen_self" >&6; }
11244
11245 if test "x$lt_cv_dlopen_self" = xyes; then
11246 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11248 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11249 if ${lt_cv_dlopen_self_static+:} false; then :
11250 $as_echo_n "(cached) " >&6
11251 else
11252 if test "$cross_compiling" = yes; then :
11253 lt_cv_dlopen_self_static=cross
11254 else
11255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11256 lt_status=$lt_dlunknown
11257 cat > conftest.$ac_ext <<_LT_EOF
11258 #line $LINENO "configure"
11259 #include "confdefs.h"
11260
11261 #if HAVE_DLFCN_H
11262 #include <dlfcn.h>
11263 #endif
11264
11265 #include <stdio.h>
11266
11267 #ifdef RTLD_GLOBAL
11268 # define LT_DLGLOBAL RTLD_GLOBAL
11269 #else
11270 # ifdef DL_GLOBAL
11271 # define LT_DLGLOBAL DL_GLOBAL
11272 # else
11273 # define LT_DLGLOBAL 0
11274 # endif
11275 #endif
11276
11277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11278 find out it does not work in some platform. */
11279 #ifndef LT_DLLAZY_OR_NOW
11280 # ifdef RTLD_LAZY
11281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11282 # else
11283 # ifdef DL_LAZY
11284 # define LT_DLLAZY_OR_NOW DL_LAZY
11285 # else
11286 # ifdef RTLD_NOW
11287 # define LT_DLLAZY_OR_NOW RTLD_NOW
11288 # else
11289 # ifdef DL_NOW
11290 # define LT_DLLAZY_OR_NOW DL_NOW
11291 # else
11292 # define LT_DLLAZY_OR_NOW 0
11293 # endif
11294 # endif
11295 # endif
11296 # endif
11297 #endif
11298
11299 /* When -fvisbility=hidden is used, assume the code has been annotated
11300 correspondingly for the symbols needed. */
11301 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11302 int fnord () __attribute__((visibility("default")));
11303 #endif
11304
11305 int fnord () { return 42; }
11306 int main ()
11307 {
11308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11309 int status = $lt_dlunknown;
11310
11311 if (self)
11312 {
11313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11314 else
11315 {
11316 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11317 else puts (dlerror ());
11318 }
11319 /* dlclose (self); */
11320 }
11321 else
11322 puts (dlerror ());
11323
11324 return status;
11325 }
11326 _LT_EOF
11327 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11328 (eval $ac_link) 2>&5
11329 ac_status=$?
11330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11331 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11332 (./conftest; exit; ) >&5 2>/dev/null
11333 lt_status=$?
11334 case x$lt_status in
11335 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11336 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11337 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11338 esac
11339 else :
11340 # compilation failed
11341 lt_cv_dlopen_self_static=no
11342 fi
11343 fi
11344 rm -fr conftest*
11345
11346
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11349 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11350 fi
11351
11352 CPPFLAGS="$save_CPPFLAGS"
11353 LDFLAGS="$save_LDFLAGS"
11354 LIBS="$save_LIBS"
11355 ;;
11356 esac
11357
11358 case $lt_cv_dlopen_self in
11359 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11360 *) enable_dlopen_self=unknown ;;
11361 esac
11362
11363 case $lt_cv_dlopen_self_static in
11364 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11365 *) enable_dlopen_self_static=unknown ;;
11366 esac
11367 fi
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385 striplib=
11386 old_striplib=
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11388 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11389 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11390 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11391 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11393 $as_echo "yes" >&6; }
11394 else
11395 # FIXME - insert some real tests, host_os isn't really good enough
11396 case $host_os in
11397 darwin*)
11398 if test -n "$STRIP" ; then
11399 striplib="$STRIP -x"
11400 old_striplib="$STRIP -S"
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11402 $as_echo "yes" >&6; }
11403 else
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11406 fi
11407 ;;
11408 *)
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11411 ;;
11412 esac
11413 fi
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426 # Report which library types will actually be built
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11428 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11430 $as_echo "$can_build_shared" >&6; }
11431
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11433 $as_echo_n "checking whether to build shared libraries... " >&6; }
11434 test "$can_build_shared" = "no" && enable_shared=no
11435
11436 # On AIX, shared libraries and static libraries use the same namespace, and
11437 # are all built from PIC.
11438 case $host_os in
11439 aix3*)
11440 test "$enable_shared" = yes && enable_static=no
11441 if test -n "$RANLIB"; then
11442 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11443 postinstall_cmds='$RANLIB $lib'
11444 fi
11445 ;;
11446
11447 aix[4-9]*)
11448 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11449 test "$enable_shared" = yes && enable_static=no
11450 fi
11451 ;;
11452 esac
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11454 $as_echo "$enable_shared" >&6; }
11455
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11457 $as_echo_n "checking whether to build static libraries... " >&6; }
11458 # Make sure either enable_shared or enable_static is yes.
11459 test "$enable_shared" = yes || enable_static=yes
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11461 $as_echo "$enable_static" >&6; }
11462
11463
11464
11465
11466 fi
11467 ac_ext=c
11468 ac_cpp='$CPP $CPPFLAGS'
11469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11470 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11472
11473 CC="$lt_save_CC"
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489 ac_config_commands="$ac_config_commands libtool"
11490
11491
11492
11493
11494 # Only expand once:
11495
11496
11497
11498 # Initialize pkg-config.
11499 # We require at least 0.22, as "Requires.private" behaviour changed there.
11500
11501
11502
11503
11504
11505
11506
11507 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11508 if test -n "$ac_tool_prefix"; then
11509 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11510 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11514 $as_echo_n "(cached) " >&6
11515 else
11516 case $PKG_CONFIG in
11517 [\\/]* | ?:[\\/]*)
11518 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11519 ;;
11520 *)
11521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in $PATH
11523 do
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11528 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530 break 2
11531 fi
11532 done
11533 done
11534 IFS=$as_save_IFS
11535
11536 ;;
11537 esac
11538 fi
11539 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11540 if test -n "$PKG_CONFIG"; then
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11542 $as_echo "$PKG_CONFIG" >&6; }
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11546 fi
11547
11548
11549 fi
11550 if test -z "$ac_cv_path_PKG_CONFIG"; then
11551 ac_pt_PKG_CONFIG=$PKG_CONFIG
11552 # Extract the first word of "pkg-config", so it can be a program name with args.
11553 set dummy pkg-config; ac_word=$2
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11555 $as_echo_n "checking for $ac_word... " >&6; }
11556 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 case $ac_pt_PKG_CONFIG in
11560 [\\/]* | ?:[\\/]*)
11561 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11562 ;;
11563 *)
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575 done
11576 done
11577 IFS=$as_save_IFS
11578
11579 ;;
11580 esac
11581 fi
11582 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11583 if test -n "$ac_pt_PKG_CONFIG"; then
11584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11585 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11586 else
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588 $as_echo "no" >&6; }
11589 fi
11590
11591 if test "x$ac_pt_PKG_CONFIG" = x; then
11592 PKG_CONFIG=""
11593 else
11594 case $cross_compiling:$ac_tool_warned in
11595 yes:)
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11598 ac_tool_warned=yes ;;
11599 esac
11600 PKG_CONFIG=$ac_pt_PKG_CONFIG
11601 fi
11602 else
11603 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11604 fi
11605
11606 fi
11607 if test -n "$PKG_CONFIG"; then
11608 _pkg_min_version=0.22
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11610 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11611 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11613 $as_echo "yes" >&6; }
11614 else
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616 $as_echo "no" >&6; }
11617 PKG_CONFIG=""
11618 fi
11619 fi
11620
11621 ac_config_headers="$ac_config_headers config.h"
11622
11623 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tests/Makefile librevisa.pc"
11624
11625
11626 # Checks for programs.
11627 ac_ext=cpp
11628 ac_cpp='$CXXCPP $CPPFLAGS'
11629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11632 if test -z "$CXX"; then
11633 if test -n "$CCC"; then
11634 CXX=$CCC
11635 else
11636 if test -n "$ac_tool_prefix"; then
11637 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11638 do
11639 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11640 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642 $as_echo_n "checking for $ac_word... " >&6; }
11643 if ${ac_cv_prog_CXX+:} false; then :
11644 $as_echo_n "(cached) " >&6
11645 else
11646 if test -n "$CXX"; then
11647 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11648 else
11649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650 for as_dir in $PATH
11651 do
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11656 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11658 break 2
11659 fi
11660 done
11661 done
11662 IFS=$as_save_IFS
11663
11664 fi
11665 fi
11666 CXX=$ac_cv_prog_CXX
11667 if test -n "$CXX"; then
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11669 $as_echo "$CXX" >&6; }
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672 $as_echo "no" >&6; }
11673 fi
11674
11675
11676 test -n "$CXX" && break
11677 done
11678 fi
11679 if test -z "$CXX"; then
11680 ac_ct_CXX=$CXX
11681 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11682 do
11683 # Extract the first word of "$ac_prog", so it can be a program name with args.
11684 set dummy $ac_prog; ac_word=$2
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11686 $as_echo_n "checking for $ac_word... " >&6; }
11687 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
11688 $as_echo_n "(cached) " >&6
11689 else
11690 if test -n "$ac_ct_CXX"; then
11691 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11692 else
11693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694 for as_dir in $PATH
11695 do
11696 IFS=$as_save_IFS
11697 test -z "$as_dir" && as_dir=.
11698 for ac_exec_ext in '' $ac_executable_extensions; do
11699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11700 ac_cv_prog_ac_ct_CXX="$ac_prog"
11701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11702 break 2
11703 fi
11704 done
11705 done
11706 IFS=$as_save_IFS
11707
11708 fi
11709 fi
11710 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11711 if test -n "$ac_ct_CXX"; then
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11713 $as_echo "$ac_ct_CXX" >&6; }
11714 else
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11716 $as_echo "no" >&6; }
11717 fi
11718
11719
11720 test -n "$ac_ct_CXX" && break
11721 done
11722
11723 if test "x$ac_ct_CXX" = x; then
11724 CXX="g++"
11725 else
11726 case $cross_compiling:$ac_tool_warned in
11727 yes:)
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11729 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11730 ac_tool_warned=yes ;;
11731 esac
11732 CXX=$ac_ct_CXX
11733 fi
11734 fi
11735
11736 fi
11737 fi
11738 # Provide some information about the compiler.
11739 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11740 set X $ac_compile
11741 ac_compiler=$2
11742 for ac_option in --version -v -V -qversion; do
11743 { { ac_try="$ac_compiler $ac_option >&5"
11744 case "(($ac_try" in
11745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746 *) ac_try_echo=$ac_try;;
11747 esac
11748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11749 $as_echo "$ac_try_echo"; } >&5
11750 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11751 ac_status=$?
11752 if test -s conftest.err; then
11753 sed '10a\
11754 ... rest of stderr output deleted ...
11755 10q' conftest.err >conftest.er1
11756 cat conftest.er1 >&5
11757 fi
11758 rm -f conftest.er1 conftest.err
11759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11760 test $ac_status = 0; }
11761 done
11762
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11764 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11765 if ${ac_cv_cxx_compiler_gnu+:} false; then :
11766 $as_echo_n "(cached) " >&6
11767 else
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11770
11771 int
11772 main ()
11773 {
11774 #ifndef __GNUC__
11775 choke me
11776 #endif
11777
11778 ;
11779 return 0;
11780 }
11781 _ACEOF
11782 if ac_fn_cxx_try_compile "$LINENO"; then :
11783 ac_compiler_gnu=yes
11784 else
11785 ac_compiler_gnu=no
11786 fi
11787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11788 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11789
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11792 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11793 if test $ac_compiler_gnu = yes; then
11794 GXX=yes
11795 else
11796 GXX=
11797 fi
11798 ac_test_CXXFLAGS=${CXXFLAGS+set}
11799 ac_save_CXXFLAGS=$CXXFLAGS
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11801 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11802 if ${ac_cv_prog_cxx_g+:} false; then :
11803 $as_echo_n "(cached) " >&6
11804 else
11805 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11806 ac_cxx_werror_flag=yes
11807 ac_cv_prog_cxx_g=no
11808 CXXFLAGS="-g"
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811
11812 int
11813 main ()
11814 {
11815
11816 ;
11817 return 0;
11818 }
11819 _ACEOF
11820 if ac_fn_cxx_try_compile "$LINENO"; then :
11821 ac_cv_prog_cxx_g=yes
11822 else
11823 CXXFLAGS=""
11824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11825 /* end confdefs.h. */
11826
11827 int
11828 main ()
11829 {
11830
11831 ;
11832 return 0;
11833 }
11834 _ACEOF
11835 if ac_fn_cxx_try_compile "$LINENO"; then :
11836
11837 else
11838 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11839 CXXFLAGS="-g"
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11842
11843 int
11844 main ()
11845 {
11846
11847 ;
11848 return 0;
11849 }
11850 _ACEOF
11851 if ac_fn_cxx_try_compile "$LINENO"; then :
11852 ac_cv_prog_cxx_g=yes
11853 fi
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 fi
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 fi
11858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11859 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11862 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11863 if test "$ac_test_CXXFLAGS" = set; then
11864 CXXFLAGS=$ac_save_CXXFLAGS
11865 elif test $ac_cv_prog_cxx_g = yes; then
11866 if test "$GXX" = yes; then
11867 CXXFLAGS="-g -O2"
11868 else
11869 CXXFLAGS="-g"
11870 fi
11871 else
11872 if test "$GXX" = yes; then
11873 CXXFLAGS="-O2"
11874 else
11875 CXXFLAGS=
11876 fi
11877 fi
11878 ac_ext=c
11879 ac_cpp='$CPP $CPPFLAGS'
11880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11883
11884 depcc="$CXX" am_compiler_list=
11885
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11887 $as_echo_n "checking dependency style of $depcc... " >&6; }
11888 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11892 # We make a subdir and do the tests there. Otherwise we can end up
11893 # making bogus files that we don't know about and never remove. For
11894 # instance it was reported that on HP-UX the gcc test will end up
11895 # making a dummy file named 'D' -- because '-MD' means "put the output
11896 # in D".
11897 rm -rf conftest.dir
11898 mkdir conftest.dir
11899 # Copy depcomp to subdir because otherwise we won't find it if we're
11900 # using a relative directory.
11901 cp "$am_depcomp" conftest.dir
11902 cd conftest.dir
11903 # We will build objects and dependencies in a subdirectory because
11904 # it helps to detect inapplicable dependency modes. For instance
11905 # both Tru64's cc and ICC support -MD to output dependencies as a
11906 # side effect of compilation, but ICC will put the dependencies in
11907 # the current directory while Tru64 will put them in the object
11908 # directory.
11909 mkdir sub
11910
11911 am_cv_CXX_dependencies_compiler_type=none
11912 if test "$am_compiler_list" = ""; then
11913 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11914 fi
11915 am__universal=false
11916 case " $depcc " in #(
11917 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11918 esac
11919
11920 for depmode in $am_compiler_list; do
11921 # Setup a source with many dependencies, because some compilers
11922 # like to wrap large dependency lists on column 80 (with \), and
11923 # we should not choose a depcomp mode which is confused by this.
11924 #
11925 # We need to recreate these files for each test, as the compiler may
11926 # overwrite some of them when testing with obscure command lines.
11927 # This happens at least with the AIX C compiler.
11928 : > sub/conftest.c
11929 for i in 1 2 3 4 5 6; do
11930 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11931 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11932 # Solaris 10 /bin/sh.
11933 echo '/* dummy */' > sub/conftst$i.h
11934 done
11935 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11936
11937 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11938 # mode. It turns out that the SunPro C++ compiler does not properly
11939 # handle '-M -o', and we need to detect this. Also, some Intel
11940 # versions had trouble with output in subdirs.
11941 am__obj=sub/conftest.${OBJEXT-o}
11942 am__minus_obj="-o $am__obj"
11943 case $depmode in
11944 gcc)
11945 # This depmode causes a compiler race in universal mode.
11946 test "$am__universal" = false || continue
11947 ;;
11948 nosideeffect)
11949 # After this tag, mechanisms are not by side-effect, so they'll
11950 # only be used when explicitly requested.
11951 if test "x$enable_dependency_tracking" = xyes; then
11952 continue
11953 else
11954 break
11955 fi
11956 ;;
11957 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11958 # This compiler won't grok '-c -o', but also, the minuso test has
11959 # not run yet. These depmodes are late enough in the game, and
11960 # so weak that their functioning should not be impacted.
11961 am__obj=conftest.${OBJEXT-o}
11962 am__minus_obj=
11963 ;;
11964 none) break ;;
11965 esac
11966 if depmode=$depmode \
11967 source=sub/conftest.c object=$am__obj \
11968 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11969 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11970 >/dev/null 2>conftest.err &&
11971 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11972 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11973 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11974 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11975 # icc doesn't choke on unknown options, it will just issue warnings
11976 # or remarks (even with -Werror). So we grep stderr for any message
11977 # that says an option was ignored or not supported.
11978 # When given -MP, icc 7.0 and 7.1 complain thusly:
11979 # icc: Command line warning: ignoring option '-M'; no argument required
11980 # The diagnosis changed in icc 8.0:
11981 # icc: Command line remark: option '-MP' not supported
11982 if (grep 'ignoring option' conftest.err ||
11983 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11984 am_cv_CXX_dependencies_compiler_type=$depmode
11985 break
11986 fi
11987 fi
11988 done
11989
11990 cd ..
11991 rm -rf conftest.dir
11992 else
11993 am_cv_CXX_dependencies_compiler_type=none
11994 fi
11995
11996 fi
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11998 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11999 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12000
12001 if
12002 test "x$enable_dependency_tracking" != xno \
12003 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12004 am__fastdepCXX_TRUE=
12005 am__fastdepCXX_FALSE='#'
12006 else
12007 am__fastdepCXX_TRUE='#'
12008 am__fastdepCXX_FALSE=
12009 fi
12010
12011
12012
12013
12014 func_stripname_cnf ()
12015 {
12016 case ${2} in
12017 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12018 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12019 esac
12020 } # func_stripname_cnf
12021
12022 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12023 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12024 (test "X$CXX" != "Xg++"))) ; then
12025 ac_ext=cpp
12026 ac_cpp='$CXXCPP $CPPFLAGS'
12027 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12028 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12029 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12031 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12032 if test -z "$CXXCPP"; then
12033 if ${ac_cv_prog_CXXCPP+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 # Double quotes because CXXCPP needs to be expanded
12037 for CXXCPP in "$CXX -E" "/lib/cpp"
12038 do
12039 ac_preproc_ok=false
12040 for ac_cxx_preproc_warn_flag in '' yes
12041 do
12042 # Use a header file that comes with gcc, so configuring glibc
12043 # with a fresh cross-compiler works.
12044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12045 # <limits.h> exists even on freestanding compilers.
12046 # On the NeXT, cc -E runs the code through the compiler's parser,
12047 # not just through cpp. "Syntax error" is here to catch this case.
12048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12049 /* end confdefs.h. */
12050 #ifdef __STDC__
12051 # include <limits.h>
12052 #else
12053 # include <assert.h>
12054 #endif
12055 Syntax error
12056 _ACEOF
12057 if ac_fn_cxx_try_cpp "$LINENO"; then :
12058
12059 else
12060 # Broken: fails on valid input.
12061 continue
12062 fi
12063 rm -f conftest.err conftest.i conftest.$ac_ext
12064
12065 # OK, works on sane cases. Now check whether nonexistent headers
12066 # can be detected and how.
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069 #include <ac_nonexistent.h>
12070 _ACEOF
12071 if ac_fn_cxx_try_cpp "$LINENO"; then :
12072 # Broken: success on invalid input.
12073 continue
12074 else
12075 # Passes both tests.
12076 ac_preproc_ok=:
12077 break
12078 fi
12079 rm -f conftest.err conftest.i conftest.$ac_ext
12080
12081 done
12082 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12083 rm -f conftest.i conftest.err conftest.$ac_ext
12084 if $ac_preproc_ok; then :
12085 break
12086 fi
12087
12088 done
12089 ac_cv_prog_CXXCPP=$CXXCPP
12090
12091 fi
12092 CXXCPP=$ac_cv_prog_CXXCPP
12093 else
12094 ac_cv_prog_CXXCPP=$CXXCPP
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12097 $as_echo "$CXXCPP" >&6; }
12098 ac_preproc_ok=false
12099 for ac_cxx_preproc_warn_flag in '' yes
12100 do
12101 # Use a header file that comes with gcc, so configuring glibc
12102 # with a fresh cross-compiler works.
12103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12104 # <limits.h> exists even on freestanding compilers.
12105 # On the NeXT, cc -E runs the code through the compiler's parser,
12106 # not just through cpp. "Syntax error" is here to catch this case.
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12109 #ifdef __STDC__
12110 # include <limits.h>
12111 #else
12112 # include <assert.h>
12113 #endif
12114 Syntax error
12115 _ACEOF
12116 if ac_fn_cxx_try_cpp "$LINENO"; then :
12117
12118 else
12119 # Broken: fails on valid input.
12120 continue
12121 fi
12122 rm -f conftest.err conftest.i conftest.$ac_ext
12123
12124 # OK, works on sane cases. Now check whether nonexistent headers
12125 # can be detected and how.
12126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12127 /* end confdefs.h. */
12128 #include <ac_nonexistent.h>
12129 _ACEOF
12130 if ac_fn_cxx_try_cpp "$LINENO"; then :
12131 # Broken: success on invalid input.
12132 continue
12133 else
12134 # Passes both tests.
12135 ac_preproc_ok=:
12136 break
12137 fi
12138 rm -f conftest.err conftest.i conftest.$ac_ext
12139
12140 done
12141 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12142 rm -f conftest.i conftest.err conftest.$ac_ext
12143 if $ac_preproc_ok; then :
12144
12145 else
12146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12148 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12149 See \`config.log' for more details" "$LINENO" 5; }
12150 fi
12151
12152 ac_ext=c
12153 ac_cpp='$CPP $CPPFLAGS'
12154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12157
12158 else
12159 _lt_caught_CXX_error=yes
12160 fi
12161
12162 ac_ext=cpp
12163 ac_cpp='$CXXCPP $CPPFLAGS'
12164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12167
12168 archive_cmds_need_lc_CXX=no
12169 allow_undefined_flag_CXX=
12170 always_export_symbols_CXX=no
12171 archive_expsym_cmds_CXX=
12172 compiler_needs_object_CXX=no
12173 export_dynamic_flag_spec_CXX=
12174 hardcode_direct_CXX=no
12175 hardcode_direct_absolute_CXX=no
12176 hardcode_libdir_flag_spec_CXX=
12177 hardcode_libdir_separator_CXX=
12178 hardcode_minus_L_CXX=no
12179 hardcode_shlibpath_var_CXX=unsupported
12180 hardcode_automatic_CXX=no
12181 inherit_rpath_CXX=no
12182 module_cmds_CXX=
12183 module_expsym_cmds_CXX=
12184 link_all_deplibs_CXX=unknown
12185 old_archive_cmds_CXX=$old_archive_cmds
12186 reload_flag_CXX=$reload_flag
12187 reload_cmds_CXX=$reload_cmds
12188 no_undefined_flag_CXX=
12189 whole_archive_flag_spec_CXX=
12190 enable_shared_with_static_runtimes_CXX=no
12191
12192 # Source file extension for C++ test sources.
12193 ac_ext=cpp
12194
12195 # Object file extension for compiled C++ test sources.
12196 objext=o
12197 objext_CXX=$objext
12198
12199 # No sense in running all these tests if we already determined that
12200 # the CXX compiler isn't working. Some variables (like enable_shared)
12201 # are currently assumed to apply to all compilers on this platform,
12202 # and will be corrupted by setting them based on a non-working compiler.
12203 if test "$_lt_caught_CXX_error" != yes; then
12204 # Code to be used in simple compile tests
12205 lt_simple_compile_test_code="int some_variable = 0;"
12206
12207 # Code to be used in simple link tests
12208 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12209
12210 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12211
12212
12213
12214
12215
12216
12217 # If no C compiler was specified, use CC.
12218 LTCC=${LTCC-"$CC"}
12219
12220 # If no C compiler flags were specified, use CFLAGS.
12221 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12222
12223 # Allow CC to be a program name with arguments.
12224 compiler=$CC
12225
12226
12227 # save warnings/boilerplate of simple test code
12228 ac_outfile=conftest.$ac_objext
12229 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12230 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12231 _lt_compiler_boilerplate=`cat conftest.err`
12232 $RM conftest*
12233
12234 ac_outfile=conftest.$ac_objext
12235 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12236 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12237 _lt_linker_boilerplate=`cat conftest.err`
12238 $RM -r conftest*
12239
12240
12241 # Allow CC to be a program name with arguments.
12242 lt_save_CC=$CC
12243 lt_save_CFLAGS=$CFLAGS
12244 lt_save_LD=$LD
12245 lt_save_GCC=$GCC
12246 GCC=$GXX
12247 lt_save_with_gnu_ld=$with_gnu_ld
12248 lt_save_path_LD=$lt_cv_path_LD
12249 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12250 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12251 else
12252 $as_unset lt_cv_prog_gnu_ld
12253 fi
12254 if test -n "${lt_cv_path_LDCXX+set}"; then
12255 lt_cv_path_LD=$lt_cv_path_LDCXX
12256 else
12257 $as_unset lt_cv_path_LD
12258 fi
12259 test -z "${LDCXX+set}" || LD=$LDCXX
12260 CC=${CXX-"c++"}
12261 CFLAGS=$CXXFLAGS
12262 compiler=$CC
12263 compiler_CXX=$CC
12264 for cc_temp in $compiler""; do
12265 case $cc_temp in
12266 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12267 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12268 \-*) ;;
12269 *) break;;
12270 esac
12271 done
12272 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12273
12274
12275 if test -n "$compiler"; then
12276 # We don't want -fno-exception when compiling C++ code, so set the
12277 # no_builtin_flag separately
12278 if test "$GXX" = yes; then
12279 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12280 else
12281 lt_prog_compiler_no_builtin_flag_CXX=
12282 fi
12283
12284 if test "$GXX" = yes; then
12285 # Set up default GNU C++ configuration
12286
12287
12288
12289 # Check whether --with-gnu-ld was given.
12290 if test "${with_gnu_ld+set}" = set; then :
12291 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12292 else
12293 with_gnu_ld=no
12294 fi
12295
12296 ac_prog=ld
12297 if test "$GCC" = yes; then
12298 # Check if gcc -print-prog-name=ld gives a path.
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12300 $as_echo_n "checking for ld used by $CC... " >&6; }
12301 case $host in
12302 *-*-mingw*)
12303 # gcc leaves a trailing carriage return which upsets mingw
12304 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12305 *)
12306 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12307 esac
12308 case $ac_prog in
12309 # Accept absolute paths.
12310 [\\/]* | ?:[\\/]*)
12311 re_direlt='/[^/][^/]*/\.\./'
12312 # Canonicalize the pathname of ld
12313 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12314 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12315 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12316 done
12317 test -z "$LD" && LD="$ac_prog"
12318 ;;
12319 "")
12320 # If it fails, then pretend we aren't using GCC.
12321 ac_prog=ld
12322 ;;
12323 *)
12324 # If it is relative, then search for the first ld in PATH.
12325 with_gnu_ld=unknown
12326 ;;
12327 esac
12328 elif test "$with_gnu_ld" = yes; then
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12330 $as_echo_n "checking for GNU ld... " >&6; }
12331 else
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12333 $as_echo_n "checking for non-GNU ld... " >&6; }
12334 fi
12335 if ${lt_cv_path_LD+:} false; then :
12336 $as_echo_n "(cached) " >&6
12337 else
12338 if test -z "$LD"; then
12339 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12340 for ac_dir in $PATH; do
12341 IFS="$lt_save_ifs"
12342 test -z "$ac_dir" && ac_dir=.
12343 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12344 lt_cv_path_LD="$ac_dir/$ac_prog"
12345 # Check to see if the program is GNU ld. I'd rather use --version,
12346 # but apparently some variants of GNU ld only accept -v.
12347 # Break only if it was the GNU/non-GNU ld that we prefer.
12348 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12349 *GNU* | *'with BFD'*)
12350 test "$with_gnu_ld" != no && break
12351 ;;
12352 *)
12353 test "$with_gnu_ld" != yes && break
12354 ;;
12355 esac
12356 fi
12357 done
12358 IFS="$lt_save_ifs"
12359 else
12360 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12361 fi
12362 fi
12363
12364 LD="$lt_cv_path_LD"
12365 if test -n "$LD"; then
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12367 $as_echo "$LD" >&6; }
12368 else
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12370 $as_echo "no" >&6; }
12371 fi
12372 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12374 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12375 if ${lt_cv_prog_gnu_ld+:} false; then :
12376 $as_echo_n "(cached) " >&6
12377 else
12378 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12379 case `$LD -v 2>&1 </dev/null` in
12380 *GNU* | *'with BFD'*)
12381 lt_cv_prog_gnu_ld=yes
12382 ;;
12383 *)
12384 lt_cv_prog_gnu_ld=no
12385 ;;
12386 esac
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12389 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12390 with_gnu_ld=$lt_cv_prog_gnu_ld
12391
12392
12393
12394
12395
12396
12397
12398 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12399 # archiving commands below assume that GNU ld is being used.
12400 if test "$with_gnu_ld" = yes; then
12401 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12403
12404 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12405 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12406
12407 # If archive_cmds runs LD, not CC, wlarc should be empty
12408 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12409 # investigate it a little bit more. (MM)
12410 wlarc='${wl}'
12411
12412 # ancient GNU ld didn't support --whole-archive et. al.
12413 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12414 $GREP 'no-whole-archive' > /dev/null; then
12415 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12416 else
12417 whole_archive_flag_spec_CXX=
12418 fi
12419 else
12420 with_gnu_ld=no
12421 wlarc=
12422
12423 # A generic and very simple default shared library creation
12424 # command for GNU C++ for the case where it uses the native
12425 # linker, instead of GNU ld. If possible, this setting should
12426 # overridden to take advantage of the native linker features on
12427 # the platform it is being used on.
12428 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12429 fi
12430
12431 # Commands to make compiler produce verbose output that lists
12432 # what "hidden" libraries, object files and flags are used when
12433 # linking a shared library.
12434 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12435
12436 else
12437 GXX=no
12438 with_gnu_ld=no
12439 wlarc=
12440 fi
12441
12442 # PORTME: fill in a description of your system's C++ link characteristics
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12444 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12445 ld_shlibs_CXX=yes
12446 case $host_os in
12447 aix3*)
12448 # FIXME: insert proper C++ library support
12449 ld_shlibs_CXX=no
12450 ;;
12451 aix[4-9]*)
12452 if test "$host_cpu" = ia64; then
12453 # On IA64, the linker does run time linking by default, so we don't
12454 # have to do anything special.
12455 aix_use_runtimelinking=no
12456 exp_sym_flag='-Bexport'
12457 no_entry_flag=""
12458 else
12459 aix_use_runtimelinking=no
12460
12461 # Test if we are trying to use run time linking or normal
12462 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12463 # need to do runtime linking.
12464 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12465 for ld_flag in $LDFLAGS; do
12466 case $ld_flag in
12467 *-brtl*)
12468 aix_use_runtimelinking=yes
12469 break
12470 ;;
12471 esac
12472 done
12473 ;;
12474 esac
12475
12476 exp_sym_flag='-bexport'
12477 no_entry_flag='-bnoentry'
12478 fi
12479
12480 # When large executables or shared objects are built, AIX ld can
12481 # have problems creating the table of contents. If linking a library
12482 # or program results in "error TOC overflow" add -mminimal-toc to
12483 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12484 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12485
12486 archive_cmds_CXX=''
12487 hardcode_direct_CXX=yes
12488 hardcode_direct_absolute_CXX=yes
12489 hardcode_libdir_separator_CXX=':'
12490 link_all_deplibs_CXX=yes
12491 file_list_spec_CXX='${wl}-f,'
12492
12493 if test "$GXX" = yes; then
12494 case $host_os in aix4.[012]|aix4.[012].*)
12495 # We only want to do this on AIX 4.2 and lower, the check
12496 # below for broken collect2 doesn't work under 4.3+
12497 collect2name=`${CC} -print-prog-name=collect2`
12498 if test -f "$collect2name" &&
12499 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12500 then
12501 # We have reworked collect2
12502 :
12503 else
12504 # We have old collect2
12505 hardcode_direct_CXX=unsupported
12506 # It fails to find uninstalled libraries when the uninstalled
12507 # path is not listed in the libpath. Setting hardcode_minus_L
12508 # to unsupported forces relinking
12509 hardcode_minus_L_CXX=yes
12510 hardcode_libdir_flag_spec_CXX='-L$libdir'
12511 hardcode_libdir_separator_CXX=
12512 fi
12513 esac
12514 shared_flag='-shared'
12515 if test "$aix_use_runtimelinking" = yes; then
12516 shared_flag="$shared_flag "'${wl}-G'
12517 fi
12518 else
12519 # not using gcc
12520 if test "$host_cpu" = ia64; then
12521 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12522 # chokes on -Wl,-G. The following line is correct:
12523 shared_flag='-G'
12524 else
12525 if test "$aix_use_runtimelinking" = yes; then
12526 shared_flag='${wl}-G'
12527 else
12528 shared_flag='${wl}-bM:SRE'
12529 fi
12530 fi
12531 fi
12532
12533 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12534 # It seems that -bexpall does not export symbols beginning with
12535 # underscore (_), so it is better to generate a list of symbols to
12536 # export.
12537 always_export_symbols_CXX=yes
12538 if test "$aix_use_runtimelinking" = yes; then
12539 # Warning - without using the other runtime loading flags (-brtl),
12540 # -berok will link without error, but may produce a broken library.
12541 allow_undefined_flag_CXX='-berok'
12542 # Determine the default libpath from the value encoded in an empty
12543 # executable.
12544 if test "${lt_cv_aix_libpath+set}" = set; then
12545 aix_libpath=$lt_cv_aix_libpath
12546 else
12547 if ${lt_cv_aix_libpath__CXX+:} false; then :
12548 $as_echo_n "(cached) " >&6
12549 else
12550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12551 /* end confdefs.h. */
12552
12553 int
12554 main ()
12555 {
12556
12557 ;
12558 return 0;
12559 }
12560 _ACEOF
12561 if ac_fn_cxx_try_link "$LINENO"; then :
12562
12563 lt_aix_libpath_sed='
12564 /Import File Strings/,/^$/ {
12565 /^0/ {
12566 s/^0 *\([^ ]*\) *$/\1/
12567 p
12568 }
12569 }'
12570 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12571 # Check for a 64-bit object if we didn't find anything.
12572 if test -z "$lt_cv_aix_libpath__CXX"; then
12573 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12574 fi
12575 fi
12576 rm -f core conftest.err conftest.$ac_objext \
12577 conftest$ac_exeext conftest.$ac_ext
12578 if test -z "$lt_cv_aix_libpath__CXX"; then
12579 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12580 fi
12581
12582 fi
12583
12584 aix_libpath=$lt_cv_aix_libpath__CXX
12585 fi
12586
12587 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12588
12589 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12590 else
12591 if test "$host_cpu" = ia64; then
12592 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12593 allow_undefined_flag_CXX="-z nodefs"
12594 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12595 else
12596 # Determine the default libpath from the value encoded in an
12597 # empty executable.
12598 if test "${lt_cv_aix_libpath+set}" = set; then
12599 aix_libpath=$lt_cv_aix_libpath
12600 else
12601 if ${lt_cv_aix_libpath__CXX+:} false; then :
12602 $as_echo_n "(cached) " >&6
12603 else
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h. */
12606
12607 int
12608 main ()
12609 {
12610
12611 ;
12612 return 0;
12613 }
12614 _ACEOF
12615 if ac_fn_cxx_try_link "$LINENO"; then :
12616
12617 lt_aix_libpath_sed='
12618 /Import File Strings/,/^$/ {
12619 /^0/ {
12620 s/^0 *\([^ ]*\) *$/\1/
12621 p
12622 }
12623 }'
12624 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12625 # Check for a 64-bit object if we didn't find anything.
12626 if test -z "$lt_cv_aix_libpath__CXX"; then
12627 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12628 fi
12629 fi
12630 rm -f core conftest.err conftest.$ac_objext \
12631 conftest$ac_exeext conftest.$ac_ext
12632 if test -z "$lt_cv_aix_libpath__CXX"; then
12633 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12634 fi
12635
12636 fi
12637
12638 aix_libpath=$lt_cv_aix_libpath__CXX
12639 fi
12640
12641 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12642 # Warning - without using the other run time loading flags,
12643 # -berok will link without error, but may produce a broken library.
12644 no_undefined_flag_CXX=' ${wl}-bernotok'
12645 allow_undefined_flag_CXX=' ${wl}-berok'
12646 if test "$with_gnu_ld" = yes; then
12647 # We only use this code for GNU lds that support --whole-archive.
12648 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12649 else
12650 # Exported symbols can be pulled into shared objects from archives
12651 whole_archive_flag_spec_CXX='$convenience'
12652 fi
12653 archive_cmds_need_lc_CXX=yes
12654 # This is similar to how AIX traditionally builds its shared
12655 # libraries.
12656 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12657 fi
12658 fi
12659 ;;
12660
12661 beos*)
12662 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12663 allow_undefined_flag_CXX=unsupported
12664 # Joseph Beckenbach <[email protected]> says some releases of gcc
12665 # support --undefined. This deserves some investigation. FIXME
12666 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12667 else
12668 ld_shlibs_CXX=no
12669 fi
12670 ;;
12671
12672 chorus*)
12673 case $cc_basename in
12674 *)
12675 # FIXME: insert proper C++ library support
12676 ld_shlibs_CXX=no
12677 ;;
12678 esac
12679 ;;
12680
12681 cygwin* | mingw* | pw32* | cegcc*)
12682 case $GXX,$cc_basename in
12683 ,cl* | no,cl*)
12684 # Native MSVC
12685 # hardcode_libdir_flag_spec is actually meaningless, as there is
12686 # no search path for DLLs.
12687 hardcode_libdir_flag_spec_CXX=' '
12688 allow_undefined_flag_CXX=unsupported
12689 always_export_symbols_CXX=yes
12690 file_list_spec_CXX='@'
12691 # Tell ltmain to make .lib files, not .a files.
12692 libext=lib
12693 # Tell ltmain to make .dll files, not .so files.
12694 shrext_cmds=".dll"
12695 # FIXME: Setting linknames here is a bad hack.
12696 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12697 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12698 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12699 else
12700 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12701 fi~
12702 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12703 linknames='
12704 # The linker will not automatically build a static lib if we build a DLL.
12705 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12706 enable_shared_with_static_runtimes_CXX=yes
12707 # Don't use ranlib
12708 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12709 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12710 lt_tool_outputfile="@TOOL_OUTPUT@"~
12711 case $lt_outputfile in
12712 *.exe|*.EXE) ;;
12713 *)
12714 lt_outputfile="$lt_outputfile.exe"
12715 lt_tool_outputfile="$lt_tool_outputfile.exe"
12716 ;;
12717 esac~
12718 func_to_tool_file "$lt_outputfile"~
12719 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12720 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12721 $RM "$lt_outputfile.manifest";
12722 fi'
12723 ;;
12724 *)
12725 # g++
12726 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12727 # as there is no search path for DLLs.
12728 hardcode_libdir_flag_spec_CXX='-L$libdir'
12729 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12730 allow_undefined_flag_CXX=unsupported
12731 always_export_symbols_CXX=no
12732 enable_shared_with_static_runtimes_CXX=yes
12733
12734 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12735 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12736 # If the export-symbols file already is a .def file (1st line
12737 # is EXPORTS), use it as is; otherwise, prepend...
12738 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12739 cp $export_symbols $output_objdir/$soname.def;
12740 else
12741 echo EXPORTS > $output_objdir/$soname.def;
12742 cat $export_symbols >> $output_objdir/$soname.def;
12743 fi~
12744 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12745 else
12746 ld_shlibs_CXX=no
12747 fi
12748 ;;
12749 esac
12750 ;;
12751 darwin* | rhapsody*)
12752
12753
12754 archive_cmds_need_lc_CXX=no
12755 hardcode_direct_CXX=no
12756 hardcode_automatic_CXX=yes
12757 hardcode_shlibpath_var_CXX=unsupported
12758 if test "$lt_cv_ld_force_load" = "yes"; then
12759 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12760
12761 else
12762 whole_archive_flag_spec_CXX=''
12763 fi
12764 link_all_deplibs_CXX=yes
12765 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12766 case $cc_basename in
12767 ifort*) _lt_dar_can_shared=yes ;;
12768 *) _lt_dar_can_shared=$GCC ;;
12769 esac
12770 if test "$_lt_dar_can_shared" = "yes"; then
12771 output_verbose_link_cmd=func_echo_all
12772 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12773 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12774 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12775 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12776 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12777 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12778 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12779 fi
12780
12781 else
12782 ld_shlibs_CXX=no
12783 fi
12784
12785 ;;
12786
12787 dgux*)
12788 case $cc_basename in
12789 ec++*)
12790 # FIXME: insert proper C++ library support
12791 ld_shlibs_CXX=no
12792 ;;
12793 ghcx*)
12794 # Green Hills C++ Compiler
12795 # FIXME: insert proper C++ library support
12796 ld_shlibs_CXX=no
12797 ;;
12798 *)
12799 # FIXME: insert proper C++ library support
12800 ld_shlibs_CXX=no
12801 ;;
12802 esac
12803 ;;
12804
12805 freebsd2.*)
12806 # C++ shared libraries reported to be fairly broken before
12807 # switch to ELF
12808 ld_shlibs_CXX=no
12809 ;;
12810
12811 freebsd-elf*)
12812 archive_cmds_need_lc_CXX=no
12813 ;;
12814
12815 freebsd* | dragonfly*)
12816 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12817 # conventions
12818 ld_shlibs_CXX=yes
12819 ;;
12820
12821 haiku*)
12822 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12823 link_all_deplibs_CXX=yes
12824 ;;
12825
12826 hpux9*)
12827 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12828 hardcode_libdir_separator_CXX=:
12829 export_dynamic_flag_spec_CXX='${wl}-E'
12830 hardcode_direct_CXX=yes
12831 hardcode_minus_L_CXX=yes # Not in the search PATH,
12832 # but as the default
12833 # location of the library.
12834
12835 case $cc_basename in
12836 CC*)
12837 # FIXME: insert proper C++ library support
12838 ld_shlibs_CXX=no
12839 ;;
12840 aCC*)
12841 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12842 # Commands to make compiler produce verbose output that lists
12843 # what "hidden" libraries, object files and flags are used when
12844 # linking a shared library.
12845 #
12846 # There doesn't appear to be a way to prevent this compiler from
12847 # explicitly linking system object files so we need to strip them
12848 # from the output so that they don't get included in the library
12849 # dependencies.
12850 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12851 ;;
12852 *)
12853 if test "$GXX" = yes; then
12854 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12855 else
12856 # FIXME: insert proper C++ library support
12857 ld_shlibs_CXX=no
12858 fi
12859 ;;
12860 esac
12861 ;;
12862
12863 hpux10*|hpux11*)
12864 if test $with_gnu_ld = no; then
12865 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12866 hardcode_libdir_separator_CXX=:
12867
12868 case $host_cpu in
12869 hppa*64*|ia64*)
12870 ;;
12871 *)
12872 export_dynamic_flag_spec_CXX='${wl}-E'
12873 ;;
12874 esac
12875 fi
12876 case $host_cpu in
12877 hppa*64*|ia64*)
12878 hardcode_direct_CXX=no
12879 hardcode_shlibpath_var_CXX=no
12880 ;;
12881 *)
12882 hardcode_direct_CXX=yes
12883 hardcode_direct_absolute_CXX=yes
12884 hardcode_minus_L_CXX=yes # Not in the search PATH,
12885 # but as the default
12886 # location of the library.
12887 ;;
12888 esac
12889
12890 case $cc_basename in
12891 CC*)
12892 # FIXME: insert proper C++ library support
12893 ld_shlibs_CXX=no
12894 ;;
12895 aCC*)
12896 case $host_cpu in
12897 hppa*64*)
12898 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12899 ;;
12900 ia64*)
12901 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12902 ;;
12903 *)
12904 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12905 ;;
12906 esac
12907 # Commands to make compiler produce verbose output that lists
12908 # what "hidden" libraries, object files and flags are used when
12909 # linking a shared library.
12910 #
12911 # There doesn't appear to be a way to prevent this compiler from
12912 # explicitly linking system object files so we need to strip them
12913 # from the output so that they don't get included in the library
12914 # dependencies.
12915 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12916 ;;
12917 *)
12918 if test "$GXX" = yes; then
12919 if test $with_gnu_ld = no; then
12920 case $host_cpu in
12921 hppa*64*)
12922 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12923 ;;
12924 ia64*)
12925 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12926 ;;
12927 *)
12928 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12929 ;;
12930 esac
12931 fi
12932 else
12933 # FIXME: insert proper C++ library support
12934 ld_shlibs_CXX=no
12935 fi
12936 ;;
12937 esac
12938 ;;
12939
12940 interix[3-9]*)
12941 hardcode_direct_CXX=no
12942 hardcode_shlibpath_var_CXX=no
12943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12944 export_dynamic_flag_spec_CXX='${wl}-E'
12945 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12946 # Instead, shared libraries are loaded at an image base (0x10000000 by
12947 # default) and relocated if they conflict, which is a slow very memory
12948 # consuming and fragmenting process. To avoid this, we pick a random,
12949 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12950 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12951 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12952 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12953 ;;
12954 irix5* | irix6*)
12955 case $cc_basename in
12956 CC*)
12957 # SGI C++
12958 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12959
12960 # Archives containing C++ object files must be created using
12961 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12962 # necessary to make sure instantiated templates are included
12963 # in the archive.
12964 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12965 ;;
12966 *)
12967 if test "$GXX" = yes; then
12968 if test "$with_gnu_ld" = no; then
12969 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12970 else
12971 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12972 fi
12973 fi
12974 link_all_deplibs_CXX=yes
12975 ;;
12976 esac
12977 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12978 hardcode_libdir_separator_CXX=:
12979 inherit_rpath_CXX=yes
12980 ;;
12981
12982 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12983 case $cc_basename in
12984 KCC*)
12985 # Kuck and Associates, Inc. (KAI) C++ Compiler
12986
12987 # KCC will only create a shared library if the output file
12988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12989 # to its proper name (with version) after linking.
12990 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12991 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12992 # Commands to make compiler produce verbose output that lists
12993 # what "hidden" libraries, object files and flags are used when
12994 # linking a shared library.
12995 #
12996 # There doesn't appear to be a way to prevent this compiler from
12997 # explicitly linking system object files so we need to strip them
12998 # from the output so that they don't get included in the library
12999 # dependencies.
13000 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13001
13002 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13003 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13004
13005 # Archives containing C++ object files must be created using
13006 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13007 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13008 ;;
13009 icpc* | ecpc* )
13010 # Intel C++
13011 with_gnu_ld=yes
13012 # version 8.0 and above of icpc choke on multiply defined symbols
13013 # if we add $predep_objects and $postdep_objects, however 7.1 and
13014 # earlier do not add the objects themselves.
13015 case `$CC -V 2>&1` in
13016 *"Version 7."*)
13017 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13018 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13019 ;;
13020 *) # Version 8.0 or newer
13021 tmp_idyn=
13022 case $host_cpu in
13023 ia64*) tmp_idyn=' -i_dynamic';;
13024 esac
13025 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13026 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13027 ;;
13028 esac
13029 archive_cmds_need_lc_CXX=no
13030 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13031 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13032 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13033 ;;
13034 pgCC* | pgcpp*)
13035 # Portland Group C++ compiler
13036 case `$CC -V` in
13037 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13038 prelink_cmds_CXX='tpldir=Template.dir~
13039 rm -rf $tpldir~
13040 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13041 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13042 old_archive_cmds_CXX='tpldir=Template.dir~
13043 rm -rf $tpldir~
13044 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13045 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13046 $RANLIB $oldlib'
13047 archive_cmds_CXX='tpldir=Template.dir~
13048 rm -rf $tpldir~
13049 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13050 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13051 archive_expsym_cmds_CXX='tpldir=Template.dir~
13052 rm -rf $tpldir~
13053 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13054 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13055 ;;
13056 *) # Version 6 and above use weak symbols
13057 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13058 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13059 ;;
13060 esac
13061
13062 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13063 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13064 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13065 ;;
13066 cxx*)
13067 # Compaq C++
13068 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13069 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13070
13071 runpath_var=LD_RUN_PATH
13072 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13073 hardcode_libdir_separator_CXX=:
13074
13075 # Commands to make compiler produce verbose output that lists
13076 # what "hidden" libraries, object files and flags are used when
13077 # linking a shared library.
13078 #
13079 # There doesn't appear to be a way to prevent this compiler from
13080 # explicitly linking system object files so we need to strip them
13081 # from the output so that they don't get included in the library
13082 # dependencies.
13083 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13084 ;;
13085 xl* | mpixl* | bgxl*)
13086 # IBM XL 8.0 on PPC, with GNU ld
13087 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13089 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13090 if test "x$supports_anon_versioning" = xyes; then
13091 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13093 echo "local: *; };" >> $output_objdir/$libname.ver~
13094 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13095 fi
13096 ;;
13097 *)
13098 case `$CC -V 2>&1 | sed 5q` in
13099 *Sun\ C*)
13100 # Sun C++ 5.9
13101 no_undefined_flag_CXX=' -zdefs'
13102 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13103 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13104 hardcode_libdir_flag_spec_CXX='-R$libdir'
13105 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13106 compiler_needs_object_CXX=yes
13107
13108 # Not sure whether something based on
13109 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13110 # would be better.
13111 output_verbose_link_cmd='func_echo_all'
13112
13113 # Archives containing C++ object files must be created using
13114 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13115 # necessary to make sure instantiated templates are included
13116 # in the archive.
13117 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13118 ;;
13119 esac
13120 ;;
13121 esac
13122 ;;
13123
13124 lynxos*)
13125 # FIXME: insert proper C++ library support
13126 ld_shlibs_CXX=no
13127 ;;
13128
13129 m88k*)
13130 # FIXME: insert proper C++ library support
13131 ld_shlibs_CXX=no
13132 ;;
13133
13134 mvs*)
13135 case $cc_basename in
13136 cxx*)
13137 # FIXME: insert proper C++ library support
13138 ld_shlibs_CXX=no
13139 ;;
13140 *)
13141 # FIXME: insert proper C++ library support
13142 ld_shlibs_CXX=no
13143 ;;
13144 esac
13145 ;;
13146
13147 netbsd*)
13148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13149 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13150 wlarc=
13151 hardcode_libdir_flag_spec_CXX='-R$libdir'
13152 hardcode_direct_CXX=yes
13153 hardcode_shlibpath_var_CXX=no
13154 fi
13155 # Workaround some broken pre-1.5 toolchains
13156 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13157 ;;
13158
13159 *nto* | *qnx*)
13160 ld_shlibs_CXX=yes
13161 ;;
13162
13163 openbsd2*)
13164 # C++ shared libraries are fairly broken
13165 ld_shlibs_CXX=no
13166 ;;
13167
13168 openbsd*)
13169 if test -f /usr/libexec/ld.so; then
13170 hardcode_direct_CXX=yes
13171 hardcode_shlibpath_var_CXX=no
13172 hardcode_direct_absolute_CXX=yes
13173 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13174 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13175 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13176 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13177 export_dynamic_flag_spec_CXX='${wl}-E'
13178 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13179 fi
13180 output_verbose_link_cmd=func_echo_all
13181 else
13182 ld_shlibs_CXX=no
13183 fi
13184 ;;
13185
13186 osf3* | osf4* | osf5*)
13187 case $cc_basename in
13188 KCC*)
13189 # Kuck and Associates, Inc. (KAI) C++ Compiler
13190
13191 # KCC will only create a shared library if the output file
13192 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13193 # to its proper name (with version) after linking.
13194 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13195
13196 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13197 hardcode_libdir_separator_CXX=:
13198
13199 # Archives containing C++ object files must be created using
13200 # the KAI C++ compiler.
13201 case $host in
13202 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13203 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13204 esac
13205 ;;
13206 RCC*)
13207 # Rational C++ 2.4.1
13208 # FIXME: insert proper C++ library support
13209 ld_shlibs_CXX=no
13210 ;;
13211 cxx*)
13212 case $host in
13213 osf3*)
13214 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13215 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13217 ;;
13218 *)
13219 allow_undefined_flag_CXX=' -expect_unresolved \*'
13220 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13221 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13222 echo "-hidden">> $lib.exp~
13223 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13224 $RM $lib.exp'
13225 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13226 ;;
13227 esac
13228
13229 hardcode_libdir_separator_CXX=:
13230
13231 # Commands to make compiler produce verbose output that lists
13232 # what "hidden" libraries, object files and flags are used when
13233 # linking a shared library.
13234 #
13235 # There doesn't appear to be a way to prevent this compiler from
13236 # explicitly linking system object files so we need to strip them
13237 # from the output so that they don't get included in the library
13238 # dependencies.
13239 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13240 ;;
13241 *)
13242 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13243 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13244 case $host in
13245 osf3*)
13246 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13247 ;;
13248 *)
13249 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13250 ;;
13251 esac
13252
13253 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13254 hardcode_libdir_separator_CXX=:
13255
13256 # Commands to make compiler produce verbose output that lists
13257 # what "hidden" libraries, object files and flags are used when
13258 # linking a shared library.
13259 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13260
13261 else
13262 # FIXME: insert proper C++ library support
13263 ld_shlibs_CXX=no
13264 fi
13265 ;;
13266 esac
13267 ;;
13268
13269 psos*)
13270 # FIXME: insert proper C++ library support
13271 ld_shlibs_CXX=no
13272 ;;
13273
13274 sunos4*)
13275 case $cc_basename in
13276 CC*)
13277 # Sun C++ 4.x
13278 # FIXME: insert proper C++ library support
13279 ld_shlibs_CXX=no
13280 ;;
13281 lcc*)
13282 # Lucid
13283 # FIXME: insert proper C++ library support
13284 ld_shlibs_CXX=no
13285 ;;
13286 *)
13287 # FIXME: insert proper C++ library support
13288 ld_shlibs_CXX=no
13289 ;;
13290 esac
13291 ;;
13292
13293 solaris*)
13294 case $cc_basename in
13295 CC* | sunCC*)
13296 # Sun C++ 4.2, 5.x and Centerline C++
13297 archive_cmds_need_lc_CXX=yes
13298 no_undefined_flag_CXX=' -zdefs'
13299 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13300 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13301 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13302
13303 hardcode_libdir_flag_spec_CXX='-R$libdir'
13304 hardcode_shlibpath_var_CXX=no
13305 case $host_os in
13306 solaris2.[0-5] | solaris2.[0-5].*) ;;
13307 *)
13308 # The compiler driver will combine and reorder linker options,
13309 # but understands `-z linker_flag'.
13310 # Supported since Solaris 2.6 (maybe 2.5.1?)
13311 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13312 ;;
13313 esac
13314 link_all_deplibs_CXX=yes
13315
13316 output_verbose_link_cmd='func_echo_all'
13317
13318 # Archives containing C++ object files must be created using
13319 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13320 # necessary to make sure instantiated templates are included
13321 # in the archive.
13322 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13323 ;;
13324 gcx*)
13325 # Green Hills C++ Compiler
13326 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13327
13328 # The C++ compiler must be used to create the archive.
13329 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13330 ;;
13331 *)
13332 # GNU C++ compiler with Solaris linker
13333 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13334 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13335 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13336 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13337 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13338 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13339
13340 # Commands to make compiler produce verbose output that lists
13341 # what "hidden" libraries, object files and flags are used when
13342 # linking a shared library.
13343 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13344 else
13345 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13346 # platform.
13347 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13348 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13349 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13350
13351 # Commands to make compiler produce verbose output that lists
13352 # what "hidden" libraries, object files and flags are used when
13353 # linking a shared library.
13354 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13355 fi
13356
13357 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13358 case $host_os in
13359 solaris2.[0-5] | solaris2.[0-5].*) ;;
13360 *)
13361 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13362 ;;
13363 esac
13364 fi
13365 ;;
13366 esac
13367 ;;
13368
13369 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13370 no_undefined_flag_CXX='${wl}-z,text'
13371 archive_cmds_need_lc_CXX=no
13372 hardcode_shlibpath_var_CXX=no
13373 runpath_var='LD_RUN_PATH'
13374
13375 case $cc_basename in
13376 CC*)
13377 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13378 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13379 ;;
13380 *)
13381 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13382 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13383 ;;
13384 esac
13385 ;;
13386
13387 sysv5* | sco3.2v5* | sco5v6*)
13388 # Note: We can NOT use -z defs as we might desire, because we do not
13389 # link with -lc, and that would cause any symbols used from libc to
13390 # always be unresolved, which means just about no library would
13391 # ever link correctly. If we're not using GNU ld we use -z text
13392 # though, which does catch some bad symbols but isn't as heavy-handed
13393 # as -z defs.
13394 no_undefined_flag_CXX='${wl}-z,text'
13395 allow_undefined_flag_CXX='${wl}-z,nodefs'
13396 archive_cmds_need_lc_CXX=no
13397 hardcode_shlibpath_var_CXX=no
13398 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13399 hardcode_libdir_separator_CXX=':'
13400 link_all_deplibs_CXX=yes
13401 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13402 runpath_var='LD_RUN_PATH'
13403
13404 case $cc_basename in
13405 CC*)
13406 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13407 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13408 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13409 '"$old_archive_cmds_CXX"
13410 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13411 '"$reload_cmds_CXX"
13412 ;;
13413 *)
13414 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13415 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13416 ;;
13417 esac
13418 ;;
13419
13420 tandem*)
13421 case $cc_basename in
13422 NCC*)
13423 # NonStop-UX NCC 3.20
13424 # FIXME: insert proper C++ library support
13425 ld_shlibs_CXX=no
13426 ;;
13427 *)
13428 # FIXME: insert proper C++ library support
13429 ld_shlibs_CXX=no
13430 ;;
13431 esac
13432 ;;
13433
13434 vxworks*)
13435 # FIXME: insert proper C++ library support
13436 ld_shlibs_CXX=no
13437 ;;
13438
13439 *)
13440 # FIXME: insert proper C++ library support
13441 ld_shlibs_CXX=no
13442 ;;
13443 esac
13444
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13446 $as_echo "$ld_shlibs_CXX" >&6; }
13447 test "$ld_shlibs_CXX" = no && can_build_shared=no
13448
13449 GCC_CXX="$GXX"
13450 LD_CXX="$LD"
13451
13452 ## CAVEAT EMPTOR:
13453 ## There is no encapsulation within the following macros, do not change
13454 ## the running order or otherwise move them around unless you know exactly
13455 ## what you are doing...
13456 # Dependencies to place before and after the object being linked:
13457 predep_objects_CXX=
13458 postdep_objects_CXX=
13459 predeps_CXX=
13460 postdeps_CXX=
13461 compiler_lib_search_path_CXX=
13462
13463 cat > conftest.$ac_ext <<_LT_EOF
13464 class Foo
13465 {
13466 public:
13467 Foo (void) { a = 0; }
13468 private:
13469 int a;
13470 };
13471 _LT_EOF
13472
13473
13474 _lt_libdeps_save_CFLAGS=$CFLAGS
13475 case "$CC $CFLAGS " in #(
13476 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13477 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13478 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13479 esac
13480
13481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13482 (eval $ac_compile) 2>&5
13483 ac_status=$?
13484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13485 test $ac_status = 0; }; then
13486 # Parse the compiler output and extract the necessary
13487 # objects, libraries and library flags.
13488
13489 # Sentinel used to keep track of whether or not we are before
13490 # the conftest object file.
13491 pre_test_object_deps_done=no
13492
13493 for p in `eval "$output_verbose_link_cmd"`; do
13494 case ${prev}${p} in
13495
13496 -L* | -R* | -l*)
13497 # Some compilers place space between "-{L,R}" and the path.
13498 # Remove the space.
13499 if test $p = "-L" ||
13500 test $p = "-R"; then
13501 prev=$p
13502 continue
13503 fi
13504
13505 # Expand the sysroot to ease extracting the directories later.
13506 if test -z "$prev"; then
13507 case $p in
13508 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13509 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13510 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13511 esac
13512 fi
13513 case $p in
13514 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13515 esac
13516 if test "$pre_test_object_deps_done" = no; then
13517 case ${prev} in
13518 -L | -R)
13519 # Internal compiler library paths should come after those
13520 # provided the user. The postdeps already come after the
13521 # user supplied libs so there is no need to process them.
13522 if test -z "$compiler_lib_search_path_CXX"; then
13523 compiler_lib_search_path_CXX="${prev}${p}"
13524 else
13525 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13526 fi
13527 ;;
13528 # The "-l" case would never come before the object being
13529 # linked, so don't bother handling this case.
13530 esac
13531 else
13532 if test -z "$postdeps_CXX"; then
13533 postdeps_CXX="${prev}${p}"
13534 else
13535 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13536 fi
13537 fi
13538 prev=
13539 ;;
13540
13541 *.lto.$objext) ;; # Ignore GCC LTO objects
13542 *.$objext)
13543 # This assumes that the test object file only shows up
13544 # once in the compiler output.
13545 if test "$p" = "conftest.$objext"; then
13546 pre_test_object_deps_done=yes
13547 continue
13548 fi
13549
13550 if test "$pre_test_object_deps_done" = no; then
13551 if test -z "$predep_objects_CXX"; then
13552 predep_objects_CXX="$p"
13553 else
13554 predep_objects_CXX="$predep_objects_CXX $p"
13555 fi
13556 else
13557 if test -z "$postdep_objects_CXX"; then
13558 postdep_objects_CXX="$p"
13559 else
13560 postdep_objects_CXX="$postdep_objects_CXX $p"
13561 fi
13562 fi
13563 ;;
13564
13565 *) ;; # Ignore the rest.
13566
13567 esac
13568 done
13569
13570 # Clean up.
13571 rm -f a.out a.exe
13572 else
13573 echo "libtool.m4: error: problem compiling CXX test program"
13574 fi
13575
13576 $RM -f confest.$objext
13577 CFLAGS=$_lt_libdeps_save_CFLAGS
13578
13579 # PORTME: override above test on systems where it is broken
13580 case $host_os in
13581 interix[3-9]*)
13582 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13583 # hack all around it, let's just trust "g++" to DTRT.
13584 predep_objects_CXX=
13585 postdep_objects_CXX=
13586 postdeps_CXX=
13587 ;;
13588
13589 linux*)
13590 case `$CC -V 2>&1 | sed 5q` in
13591 *Sun\ C*)
13592 # Sun C++ 5.9
13593
13594 # The more standards-conforming stlport4 library is
13595 # incompatible with the Cstd library. Avoid specifying
13596 # it if it's in CXXFLAGS. Ignore libCrun as
13597 # -library=stlport4 depends on it.
13598 case " $CXX $CXXFLAGS " in
13599 *" -library=stlport4 "*)
13600 solaris_use_stlport4=yes
13601 ;;
13602 esac
13603
13604 if test "$solaris_use_stlport4" != yes; then
13605 postdeps_CXX='-library=Cstd -library=Crun'
13606 fi
13607 ;;
13608 esac
13609 ;;
13610
13611 solaris*)
13612 case $cc_basename in
13613 CC* | sunCC*)
13614 # The more standards-conforming stlport4 library is
13615 # incompatible with the Cstd library. Avoid specifying
13616 # it if it's in CXXFLAGS. Ignore libCrun as
13617 # -library=stlport4 depends on it.
13618 case " $CXX $CXXFLAGS " in
13619 *" -library=stlport4 "*)
13620 solaris_use_stlport4=yes
13621 ;;
13622 esac
13623
13624 # Adding this requires a known-good setup of shared libraries for
13625 # Sun compiler versions before 5.6, else PIC objects from an old
13626 # archive will be linked into the output, leading to subtle bugs.
13627 if test "$solaris_use_stlport4" != yes; then
13628 postdeps_CXX='-library=Cstd -library=Crun'
13629 fi
13630 ;;
13631 esac
13632 ;;
13633 esac
13634
13635
13636 case " $postdeps_CXX " in
13637 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13638 esac
13639 compiler_lib_search_dirs_CXX=
13640 if test -n "${compiler_lib_search_path_CXX}"; then
13641 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13642 fi
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674 lt_prog_compiler_wl_CXX=
13675 lt_prog_compiler_pic_CXX=
13676 lt_prog_compiler_static_CXX=
13677
13678
13679 # C++ specific cases for pic, static, wl, etc.
13680 if test "$GXX" = yes; then
13681 lt_prog_compiler_wl_CXX='-Wl,'
13682 lt_prog_compiler_static_CXX='-static'
13683
13684 case $host_os in
13685 aix*)
13686 # All AIX code is PIC.
13687 if test "$host_cpu" = ia64; then
13688 # AIX 5 now supports IA64 processor
13689 lt_prog_compiler_static_CXX='-Bstatic'
13690 fi
13691 ;;
13692
13693 amigaos*)
13694 case $host_cpu in
13695 powerpc)
13696 # see comment about AmigaOS4 .so support
13697 lt_prog_compiler_pic_CXX='-fPIC'
13698 ;;
13699 m68k)
13700 # FIXME: we need at least 68020 code to build shared libraries, but
13701 # adding the `-m68020' flag to GCC prevents building anything better,
13702 # like `-m68040'.
13703 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13704 ;;
13705 esac
13706 ;;
13707
13708 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13709 # PIC is the default for these OSes.
13710 ;;
13711 mingw* | cygwin* | os2* | pw32* | cegcc*)
13712 # This hack is so that the source file can tell whether it is being
13713 # built for inclusion in a dll (and should export symbols for example).
13714 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13715 # (--disable-auto-import) libraries
13716 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13717 ;;
13718 darwin* | rhapsody*)
13719 # PIC is the default on this platform
13720 # Common symbols not allowed in MH_DYLIB files
13721 lt_prog_compiler_pic_CXX='-fno-common'
13722 ;;
13723 *djgpp*)
13724 # DJGPP does not support shared libraries at all
13725 lt_prog_compiler_pic_CXX=
13726 ;;
13727 haiku*)
13728 # PIC is the default for Haiku.
13729 # The "-static" flag exists, but is broken.
13730 lt_prog_compiler_static_CXX=
13731 ;;
13732 interix[3-9]*)
13733 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13734 # Instead, we relocate shared libraries at runtime.
13735 ;;
13736 sysv4*MP*)
13737 if test -d /usr/nec; then
13738 lt_prog_compiler_pic_CXX=-Kconform_pic
13739 fi
13740 ;;
13741 hpux*)
13742 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13743 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13744 # sets the default TLS model and affects inlining.
13745 case $host_cpu in
13746 hppa*64*)
13747 ;;
13748 *)
13749 lt_prog_compiler_pic_CXX='-fPIC'
13750 ;;
13751 esac
13752 ;;
13753 *qnx* | *nto*)
13754 # QNX uses GNU C++, but need to define -shared option too, otherwise
13755 # it will coredump.
13756 lt_prog_compiler_pic_CXX='-fPIC -shared'
13757 ;;
13758 *)
13759 lt_prog_compiler_pic_CXX='-fPIC'
13760 ;;
13761 esac
13762 else
13763 case $host_os in
13764 aix[4-9]*)
13765 # All AIX code is PIC.
13766 if test "$host_cpu" = ia64; then
13767 # AIX 5 now supports IA64 processor
13768 lt_prog_compiler_static_CXX='-Bstatic'
13769 else
13770 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13771 fi
13772 ;;
13773 chorus*)
13774 case $cc_basename in
13775 cxch68*)
13776 # Green Hills C++ Compiler
13777 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13778 ;;
13779 esac
13780 ;;
13781 mingw* | cygwin* | os2* | pw32* | cegcc*)
13782 # This hack is so that the source file can tell whether it is being
13783 # built for inclusion in a dll (and should export symbols for example).
13784 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13785 ;;
13786 dgux*)
13787 case $cc_basename in
13788 ec++*)
13789 lt_prog_compiler_pic_CXX='-KPIC'
13790 ;;
13791 ghcx*)
13792 # Green Hills C++ Compiler
13793 lt_prog_compiler_pic_CXX='-pic'
13794 ;;
13795 *)
13796 ;;
13797 esac
13798 ;;
13799 freebsd* | dragonfly*)
13800 # FreeBSD uses GNU C++
13801 ;;
13802 hpux9* | hpux10* | hpux11*)
13803 case $cc_basename in
13804 CC*)
13805 lt_prog_compiler_wl_CXX='-Wl,'
13806 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13807 if test "$host_cpu" != ia64; then
13808 lt_prog_compiler_pic_CXX='+Z'
13809 fi
13810 ;;
13811 aCC*)
13812 lt_prog_compiler_wl_CXX='-Wl,'
13813 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13814 case $host_cpu in
13815 hppa*64*|ia64*)
13816 # +Z the default
13817 ;;
13818 *)
13819 lt_prog_compiler_pic_CXX='+Z'
13820 ;;
13821 esac
13822 ;;
13823 *)
13824 ;;
13825 esac
13826 ;;
13827 interix*)
13828 # This is c89, which is MS Visual C++ (no shared libs)
13829 # Anyone wants to do a port?
13830 ;;
13831 irix5* | irix6* | nonstopux*)
13832 case $cc_basename in
13833 CC*)
13834 lt_prog_compiler_wl_CXX='-Wl,'
13835 lt_prog_compiler_static_CXX='-non_shared'
13836 # CC pic flag -KPIC is the default.
13837 ;;
13838 *)
13839 ;;
13840 esac
13841 ;;
13842 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13843 case $cc_basename in
13844 KCC*)
13845 # KAI C++ Compiler
13846 lt_prog_compiler_wl_CXX='--backend -Wl,'
13847 lt_prog_compiler_pic_CXX='-fPIC'
13848 ;;
13849 ecpc* )
13850 # old Intel C++ for x86_64 which still supported -KPIC.
13851 lt_prog_compiler_wl_CXX='-Wl,'
13852 lt_prog_compiler_pic_CXX='-KPIC'
13853 lt_prog_compiler_static_CXX='-static'
13854 ;;
13855 icpc* )
13856 # Intel C++, used to be incompatible with GCC.
13857 # ICC 10 doesn't accept -KPIC any more.
13858 lt_prog_compiler_wl_CXX='-Wl,'
13859 lt_prog_compiler_pic_CXX='-fPIC'
13860 lt_prog_compiler_static_CXX='-static'
13861 ;;
13862 pgCC* | pgcpp*)
13863 # Portland Group C++ compiler
13864 lt_prog_compiler_wl_CXX='-Wl,'
13865 lt_prog_compiler_pic_CXX='-fpic'
13866 lt_prog_compiler_static_CXX='-Bstatic'
13867 ;;
13868 cxx*)
13869 # Compaq C++
13870 # Make sure the PIC flag is empty. It appears that all Alpha
13871 # Linux and Compaq Tru64 Unix objects are PIC.
13872 lt_prog_compiler_pic_CXX=
13873 lt_prog_compiler_static_CXX='-non_shared'
13874 ;;
13875 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13876 # IBM XL 8.0, 9.0 on PPC and BlueGene
13877 lt_prog_compiler_wl_CXX='-Wl,'
13878 lt_prog_compiler_pic_CXX='-qpic'
13879 lt_prog_compiler_static_CXX='-qstaticlink'
13880 ;;
13881 *)
13882 case `$CC -V 2>&1 | sed 5q` in
13883 *Sun\ C*)
13884 # Sun C++ 5.9
13885 lt_prog_compiler_pic_CXX='-KPIC'
13886 lt_prog_compiler_static_CXX='-Bstatic'
13887 lt_prog_compiler_wl_CXX='-Qoption ld '
13888 ;;
13889 esac
13890 ;;
13891 esac
13892 ;;
13893 lynxos*)
13894 ;;
13895 m88k*)
13896 ;;
13897 mvs*)
13898 case $cc_basename in
13899 cxx*)
13900 lt_prog_compiler_pic_CXX='-W c,exportall'
13901 ;;
13902 *)
13903 ;;
13904 esac
13905 ;;
13906 netbsd* | netbsdelf*-gnu)
13907 ;;
13908 *qnx* | *nto*)
13909 # QNX uses GNU C++, but need to define -shared option too, otherwise
13910 # it will coredump.
13911 lt_prog_compiler_pic_CXX='-fPIC -shared'
13912 ;;
13913 osf3* | osf4* | osf5*)
13914 case $cc_basename in
13915 KCC*)
13916 lt_prog_compiler_wl_CXX='--backend -Wl,'
13917 ;;
13918 RCC*)
13919 # Rational C++ 2.4.1
13920 lt_prog_compiler_pic_CXX='-pic'
13921 ;;
13922 cxx*)
13923 # Digital/Compaq C++
13924 lt_prog_compiler_wl_CXX='-Wl,'
13925 # Make sure the PIC flag is empty. It appears that all Alpha
13926 # Linux and Compaq Tru64 Unix objects are PIC.
13927 lt_prog_compiler_pic_CXX=
13928 lt_prog_compiler_static_CXX='-non_shared'
13929 ;;
13930 *)
13931 ;;
13932 esac
13933 ;;
13934 psos*)
13935 ;;
13936 solaris*)
13937 case $cc_basename in
13938 CC* | sunCC*)
13939 # Sun C++ 4.2, 5.x and Centerline C++
13940 lt_prog_compiler_pic_CXX='-KPIC'
13941 lt_prog_compiler_static_CXX='-Bstatic'
13942 lt_prog_compiler_wl_CXX='-Qoption ld '
13943 ;;
13944 gcx*)
13945 # Green Hills C++ Compiler
13946 lt_prog_compiler_pic_CXX='-PIC'
13947 ;;
13948 *)
13949 ;;
13950 esac
13951 ;;
13952 sunos4*)
13953 case $cc_basename in
13954 CC*)
13955 # Sun C++ 4.x
13956 lt_prog_compiler_pic_CXX='-pic'
13957 lt_prog_compiler_static_CXX='-Bstatic'
13958 ;;
13959 lcc*)
13960 # Lucid
13961 lt_prog_compiler_pic_CXX='-pic'
13962 ;;
13963 *)
13964 ;;
13965 esac
13966 ;;
13967 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13968 case $cc_basename in
13969 CC*)
13970 lt_prog_compiler_wl_CXX='-Wl,'
13971 lt_prog_compiler_pic_CXX='-KPIC'
13972 lt_prog_compiler_static_CXX='-Bstatic'
13973 ;;
13974 esac
13975 ;;
13976 tandem*)
13977 case $cc_basename in
13978 NCC*)
13979 # NonStop-UX NCC 3.20
13980 lt_prog_compiler_pic_CXX='-KPIC'
13981 ;;
13982 *)
13983 ;;
13984 esac
13985 ;;
13986 vxworks*)
13987 ;;
13988 *)
13989 lt_prog_compiler_can_build_shared_CXX=no
13990 ;;
13991 esac
13992 fi
13993
13994 case $host_os in
13995 # For platforms which do not support PIC, -DPIC is meaningless:
13996 *djgpp*)
13997 lt_prog_compiler_pic_CXX=
13998 ;;
13999 *)
14000 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14001 ;;
14002 esac
14003
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14005 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14006 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14010 fi
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14012 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14013 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14014
14015 #
14016 # Check to make sure the PIC flag actually works.
14017 #
14018 if test -n "$lt_prog_compiler_pic_CXX"; then
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14020 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14021 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14022 $as_echo_n "(cached) " >&6
14023 else
14024 lt_cv_prog_compiler_pic_works_CXX=no
14025 ac_outfile=conftest.$ac_objext
14026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14027 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14028 # Insert the option either (1) after the last *FLAGS variable, or
14029 # (2) before a word containing "conftest.", or (3) at the end.
14030 # Note that $ac_compile itself does not contain backslashes and begins
14031 # with a dollar sign (not a hyphen), so the echo should work correctly.
14032 # The option is referenced via a variable to avoid confusing sed.
14033 lt_compile=`echo "$ac_compile" | $SED \
14034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14036 -e 's:$: $lt_compiler_flag:'`
14037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14038 (eval "$lt_compile" 2>conftest.err)
14039 ac_status=$?
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 if (exit $ac_status) && test -s "$ac_outfile"; then
14043 # The compiler can only warn and ignore the option if not recognized
14044 # So say no if there are warnings other than the usual output.
14045 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14046 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14047 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14048 lt_cv_prog_compiler_pic_works_CXX=yes
14049 fi
14050 fi
14051 $RM conftest*
14052
14053 fi
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14055 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14056
14057 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14058 case $lt_prog_compiler_pic_CXX in
14059 "" | " "*) ;;
14060 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14061 esac
14062 else
14063 lt_prog_compiler_pic_CXX=
14064 lt_prog_compiler_can_build_shared_CXX=no
14065 fi
14066
14067 fi
14068
14069
14070
14071
14072
14073 #
14074 # Check to make sure the static flag actually works.
14075 #
14076 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14078 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14079 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14080 $as_echo_n "(cached) " >&6
14081 else
14082 lt_cv_prog_compiler_static_works_CXX=no
14083 save_LDFLAGS="$LDFLAGS"
14084 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14085 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14086 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14087 # The linker can only warn and ignore the option if not recognized
14088 # So say no if there are warnings
14089 if test -s conftest.err; then
14090 # Append any errors to the config.log.
14091 cat conftest.err 1>&5
14092 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14093 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14094 if diff conftest.exp conftest.er2 >/dev/null; then
14095 lt_cv_prog_compiler_static_works_CXX=yes
14096 fi
14097 else
14098 lt_cv_prog_compiler_static_works_CXX=yes
14099 fi
14100 fi
14101 $RM -r conftest*
14102 LDFLAGS="$save_LDFLAGS"
14103
14104 fi
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14106 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14107
14108 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14109 :
14110 else
14111 lt_prog_compiler_static_CXX=
14112 fi
14113
14114
14115
14116
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14118 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14119 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14120 $as_echo_n "(cached) " >&6
14121 else
14122 lt_cv_prog_compiler_c_o_CXX=no
14123 $RM -r conftest 2>/dev/null
14124 mkdir conftest
14125 cd conftest
14126 mkdir out
14127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14128
14129 lt_compiler_flag="-o out/conftest2.$ac_objext"
14130 # Insert the option either (1) after the last *FLAGS variable, or
14131 # (2) before a word containing "conftest.", or (3) at the end.
14132 # Note that $ac_compile itself does not contain backslashes and begins
14133 # with a dollar sign (not a hyphen), so the echo should work correctly.
14134 lt_compile=`echo "$ac_compile" | $SED \
14135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14137 -e 's:$: $lt_compiler_flag:'`
14138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14139 (eval "$lt_compile" 2>out/conftest.err)
14140 ac_status=$?
14141 cat out/conftest.err >&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14144 then
14145 # The compiler can only warn and ignore the option if not recognized
14146 # So say no if there are warnings
14147 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14148 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14149 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14150 lt_cv_prog_compiler_c_o_CXX=yes
14151 fi
14152 fi
14153 chmod u+w . 2>&5
14154 $RM conftest*
14155 # SGI C++ compiler will create directory out/ii_files/ for
14156 # template instantiation
14157 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14158 $RM out/* && rmdir out
14159 cd ..
14160 $RM -r conftest
14161 $RM conftest*
14162
14163 fi
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14165 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14166
14167
14168
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14170 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14171 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14172 $as_echo_n "(cached) " >&6
14173 else
14174 lt_cv_prog_compiler_c_o_CXX=no
14175 $RM -r conftest 2>/dev/null
14176 mkdir conftest
14177 cd conftest
14178 mkdir out
14179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14180
14181 lt_compiler_flag="-o out/conftest2.$ac_objext"
14182 # Insert the option either (1) after the last *FLAGS variable, or
14183 # (2) before a word containing "conftest.", or (3) at the end.
14184 # Note that $ac_compile itself does not contain backslashes and begins
14185 # with a dollar sign (not a hyphen), so the echo should work correctly.
14186 lt_compile=`echo "$ac_compile" | $SED \
14187 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14188 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14189 -e 's:$: $lt_compiler_flag:'`
14190 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14191 (eval "$lt_compile" 2>out/conftest.err)
14192 ac_status=$?
14193 cat out/conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14196 then
14197 # The compiler can only warn and ignore the option if not recognized
14198 # So say no if there are warnings
14199 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14200 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14201 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14202 lt_cv_prog_compiler_c_o_CXX=yes
14203 fi
14204 fi
14205 chmod u+w . 2>&5
14206 $RM conftest*
14207 # SGI C++ compiler will create directory out/ii_files/ for
14208 # template instantiation
14209 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14210 $RM out/* && rmdir out
14211 cd ..
14212 $RM -r conftest
14213 $RM conftest*
14214
14215 fi
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14217 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14218
14219
14220
14221
14222 hard_links="nottested"
14223 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14224 # do not overwrite the value of need_locks provided by the user
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14226 $as_echo_n "checking if we can lock with hard links... " >&6; }
14227 hard_links=yes
14228 $RM conftest*
14229 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14230 touch conftest.a
14231 ln conftest.a conftest.b 2>&5 || hard_links=no
14232 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14234 $as_echo "$hard_links" >&6; }
14235 if test "$hard_links" = no; then
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14237 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14238 need_locks=warn
14239 fi
14240 else
14241 need_locks=no
14242 fi
14243
14244
14245
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14247 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14248
14249 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14250 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14251 case $host_os in
14252 aix[4-9]*)
14253 # If we're using GNU nm, then we don't want the "-C" option.
14254 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14255 # Also, AIX nm treats weak defined symbols like other global defined
14256 # symbols, whereas GNU nm marks them as "W".
14257 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14258 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14259 else
14260 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14261 fi
14262 ;;
14263 pw32*)
14264 export_symbols_cmds_CXX="$ltdll_cmds"
14265 ;;
14266 cygwin* | mingw* | cegcc*)
14267 case $cc_basename in
14268 cl*)
14269 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14270 ;;
14271 *)
14272 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14273 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14274 ;;
14275 esac
14276 ;;
14277 linux* | k*bsd*-gnu | gnu*)
14278 link_all_deplibs_CXX=no
14279 ;;
14280 *)
14281 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14282 ;;
14283 esac
14284
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14286 $as_echo "$ld_shlibs_CXX" >&6; }
14287 test "$ld_shlibs_CXX" = no && can_build_shared=no
14288
14289 with_gnu_ld_CXX=$with_gnu_ld
14290
14291
14292
14293
14294
14295
14296 #
14297 # Do we need to explicitly link libc?
14298 #
14299 case "x$archive_cmds_need_lc_CXX" in
14300 x|xyes)
14301 # Assume -lc should be added
14302 archive_cmds_need_lc_CXX=yes
14303
14304 if test "$enable_shared" = yes && test "$GCC" = yes; then
14305 case $archive_cmds_CXX in
14306 *'~'*)
14307 # FIXME: we may have to deal with multi-command sequences.
14308 ;;
14309 '$CC '*)
14310 # Test whether the compiler implicitly links with -lc since on some
14311 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14312 # to ld, don't add -lc before -lgcc.
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14314 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14315 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14316 $as_echo_n "(cached) " >&6
14317 else
14318 $RM conftest*
14319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14320
14321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14322 (eval $ac_compile) 2>&5
14323 ac_status=$?
14324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14325 test $ac_status = 0; } 2>conftest.err; then
14326 soname=conftest
14327 lib=conftest
14328 libobjs=conftest.$ac_objext
14329 deplibs=
14330 wl=$lt_prog_compiler_wl_CXX
14331 pic_flag=$lt_prog_compiler_pic_CXX
14332 compiler_flags=-v
14333 linker_flags=-v
14334 verstring=
14335 output_objdir=.
14336 libname=conftest
14337 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14338 allow_undefined_flag_CXX=
14339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14340 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14341 ac_status=$?
14342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343 test $ac_status = 0; }
14344 then
14345 lt_cv_archive_cmds_need_lc_CXX=no
14346 else
14347 lt_cv_archive_cmds_need_lc_CXX=yes
14348 fi
14349 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14350 else
14351 cat conftest.err 1>&5
14352 fi
14353 $RM conftest*
14354
14355 fi
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14357 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14358 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14359 ;;
14360 esac
14361 fi
14362 ;;
14363 esac
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14427 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14428
14429 library_names_spec=
14430 libname_spec='lib$name'
14431 soname_spec=
14432 shrext_cmds=".so"
14433 postinstall_cmds=
14434 postuninstall_cmds=
14435 finish_cmds=
14436 finish_eval=
14437 shlibpath_var=
14438 shlibpath_overrides_runpath=unknown
14439 version_type=none
14440 dynamic_linker="$host_os ld.so"
14441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14442 need_lib_prefix=unknown
14443 hardcode_into_libs=no
14444
14445 # when you set need_version to no, make sure it does not cause -set_version
14446 # flags to be left without arguments
14447 need_version=unknown
14448
14449 case $host_os in
14450 aix3*)
14451 version_type=linux # correct to gnu/linux during the next big refactor
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14453 shlibpath_var=LIBPATH
14454
14455 # AIX 3 has no versioning support, so we append a major version to the name.
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 ;;
14458
14459 aix[4-9]*)
14460 version_type=linux # correct to gnu/linux during the next big refactor
14461 need_lib_prefix=no
14462 need_version=no
14463 hardcode_into_libs=yes
14464 if test "$host_cpu" = ia64; then
14465 # AIX 5 supports IA64
14466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 else
14469 # With GCC up to 2.95.x, collect2 would create an import file
14470 # for dependence libraries. The import file would start with
14471 # the line `#! .'. This would cause the generated library to
14472 # depend on `.', always an invalid library. This was fixed in
14473 # development snapshots of GCC prior to 3.0.
14474 case $host_os in
14475 aix4 | aix4.[01] | aix4.[01].*)
14476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14477 echo ' yes '
14478 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14479 :
14480 else
14481 can_build_shared=no
14482 fi
14483 ;;
14484 esac
14485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14486 # soname into executable. Probably we can add versioning support to
14487 # collect2, so additional links can be useful in future.
14488 if test "$aix_use_runtimelinking" = yes; then
14489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14490 # instead of lib<name>.a to let people know that these are not
14491 # typical AIX shared libraries.
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493 else
14494 # We preserve .a as extension for shared libraries through AIX4.2
14495 # and later when we are not doing run time linking.
14496 library_names_spec='${libname}${release}.a $libname.a'
14497 soname_spec='${libname}${release}${shared_ext}$major'
14498 fi
14499 shlibpath_var=LIBPATH
14500 fi
14501 ;;
14502
14503 amigaos*)
14504 case $host_cpu in
14505 powerpc)
14506 # Since July 2007 AmigaOS4 officially supports .so libraries.
14507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509 ;;
14510 m68k)
14511 library_names_spec='$libname.ixlibrary $libname.a'
14512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14513 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
14514 ;;
14515 esac
14516 ;;
14517
14518 beos*)
14519 library_names_spec='${libname}${shared_ext}'
14520 dynamic_linker="$host_os ld.so"
14521 shlibpath_var=LIBRARY_PATH
14522 ;;
14523
14524 bsdi[45]*)
14525 version_type=linux # correct to gnu/linux during the next big refactor
14526 need_version=no
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14530 shlibpath_var=LD_LIBRARY_PATH
14531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14533 # the default ld.so.conf also contains /usr/contrib/lib and
14534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14535 # libtool to hard-code these into programs
14536 ;;
14537
14538 cygwin* | mingw* | pw32* | cegcc*)
14539 version_type=windows
14540 shrext_cmds=".dll"
14541 need_version=no
14542 need_lib_prefix=no
14543
14544 case $GCC,$cc_basename in
14545 yes,*)
14546 # gcc
14547 library_names_spec='$libname.dll.a'
14548 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14549 postinstall_cmds='base_file=`basename \${file}`~
14550 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14551 dldir=$destdir/`dirname \$dlpath`~
14552 test -d \$dldir || mkdir -p \$dldir~
14553 $install_prog $dir/$dlname \$dldir/$dlname~
14554 chmod a+x \$dldir/$dlname~
14555 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14556 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14557 fi'
14558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14559 dlpath=$dir/\$dldll~
14560 $RM \$dlpath'
14561 shlibpath_overrides_runpath=yes
14562
14563 case $host_os in
14564 cygwin*)
14565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14566 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14567
14568 ;;
14569 mingw* | cegcc*)
14570 # MinGW DLLs use traditional 'lib' prefix
14571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14572 ;;
14573 pw32*)
14574 # pw32 DLLs use 'pw' prefix rather than 'lib'
14575 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14576 ;;
14577 esac
14578 dynamic_linker='Win32 ld.exe'
14579 ;;
14580
14581 *,cl*)
14582 # Native MSVC
14583 libname_spec='$name'
14584 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14585 library_names_spec='${libname}.dll.lib'
14586
14587 case $build_os in
14588 mingw*)
14589 sys_lib_search_path_spec=
14590 lt_save_ifs=$IFS
14591 IFS=';'
14592 for lt_path in $LIB
14593 do
14594 IFS=$lt_save_ifs
14595 # Let DOS variable expansion print the short 8.3 style file name.
14596 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14597 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14598 done
14599 IFS=$lt_save_ifs
14600 # Convert to MSYS style.
14601 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14602 ;;
14603 cygwin*)
14604 # Convert to unix form, then to dos form, then back to unix form
14605 # but this time dos style (no spaces!) so that the unix form looks
14606 # like /cygdrive/c/PROGRA~1:/cygdr...
14607 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14608 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14609 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14610 ;;
14611 *)
14612 sys_lib_search_path_spec="$LIB"
14613 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14614 # It is most probably a Windows format PATH.
14615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14616 else
14617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14618 fi
14619 # FIXME: find the short name or the path components, as spaces are
14620 # common. (e.g. "Program Files" -> "PROGRA~1")
14621 ;;
14622 esac
14623
14624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14625 postinstall_cmds='base_file=`basename \${file}`~
14626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14627 dldir=$destdir/`dirname \$dlpath`~
14628 test -d \$dldir || mkdir -p \$dldir~
14629 $install_prog $dir/$dlname \$dldir/$dlname'
14630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14631 dlpath=$dir/\$dldll~
14632 $RM \$dlpath'
14633 shlibpath_overrides_runpath=yes
14634 dynamic_linker='Win32 link.exe'
14635 ;;
14636
14637 *)
14638 # Assume MSVC wrapper
14639 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14640 dynamic_linker='Win32 ld.exe'
14641 ;;
14642 esac
14643 # FIXME: first we should search . and the directory the executable is in
14644 shlibpath_var=PATH
14645 ;;
14646
14647 darwin* | rhapsody*)
14648 dynamic_linker="$host_os dyld"
14649 version_type=darwin
14650 need_lib_prefix=no
14651 need_version=no
14652 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14653 soname_spec='${libname}${release}${major}$shared_ext'
14654 shlibpath_overrides_runpath=yes
14655 shlibpath_var=DYLD_LIBRARY_PATH
14656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14657
14658 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14659 ;;
14660
14661 dgux*)
14662 version_type=linux # correct to gnu/linux during the next big refactor
14663 need_lib_prefix=no
14664 need_version=no
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14666 soname_spec='${libname}${release}${shared_ext}$major'
14667 shlibpath_var=LD_LIBRARY_PATH
14668 ;;
14669
14670 freebsd* | dragonfly*)
14671 # DragonFly does not have aout. When/if they implement a new
14672 # versioning mechanism, adjust this.
14673 if test -x /usr/bin/objformat; then
14674 objformat=`/usr/bin/objformat`
14675 else
14676 case $host_os in
14677 freebsd[23].*) objformat=aout ;;
14678 *) objformat=elf ;;
14679 esac
14680 fi
14681 version_type=freebsd-$objformat
14682 case $version_type in
14683 freebsd-elf*)
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14685 need_version=no
14686 need_lib_prefix=no
14687 ;;
14688 freebsd-*)
14689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14690 need_version=yes
14691 ;;
14692 esac
14693 shlibpath_var=LD_LIBRARY_PATH
14694 case $host_os in
14695 freebsd2.*)
14696 shlibpath_overrides_runpath=yes
14697 ;;
14698 freebsd3.[01]* | freebsdelf3.[01]*)
14699 shlibpath_overrides_runpath=yes
14700 hardcode_into_libs=yes
14701 ;;
14702 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14703 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14704 shlibpath_overrides_runpath=no
14705 hardcode_into_libs=yes
14706 ;;
14707 *) # from 4.6 on, and DragonFly
14708 shlibpath_overrides_runpath=yes
14709 hardcode_into_libs=yes
14710 ;;
14711 esac
14712 ;;
14713
14714 haiku*)
14715 version_type=linux # correct to gnu/linux during the next big refactor
14716 need_lib_prefix=no
14717 need_version=no
14718 dynamic_linker="$host_os runtime_loader"
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14720 soname_spec='${libname}${release}${shared_ext}$major'
14721 shlibpath_var=LIBRARY_PATH
14722 shlibpath_overrides_runpath=yes
14723 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14724 hardcode_into_libs=yes
14725 ;;
14726
14727 hpux9* | hpux10* | hpux11*)
14728 # Give a soname corresponding to the major version so that dld.sl refuses to
14729 # link against other versions.
14730 version_type=sunos
14731 need_lib_prefix=no
14732 need_version=no
14733 case $host_cpu in
14734 ia64*)
14735 shrext_cmds='.so'
14736 hardcode_into_libs=yes
14737 dynamic_linker="$host_os dld.so"
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 if test "X$HPUX_IA64_MODE" = X32; then
14743 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14744 else
14745 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14746 fi
14747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14748 ;;
14749 hppa*64*)
14750 shrext_cmds='.sl'
14751 hardcode_into_libs=yes
14752 dynamic_linker="$host_os dld.sl"
14753 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14754 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14756 soname_spec='${libname}${release}${shared_ext}$major'
14757 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14758 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14759 ;;
14760 *)
14761 shrext_cmds='.sl'
14762 dynamic_linker="$host_os dld.sl"
14763 shlibpath_var=SHLIB_PATH
14764 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14766 soname_spec='${libname}${release}${shared_ext}$major'
14767 ;;
14768 esac
14769 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14770 postinstall_cmds='chmod 555 $lib'
14771 # or fails outright, so override atomically:
14772 install_override_mode=555
14773 ;;
14774
14775 interix[3-9]*)
14776 version_type=linux # correct to gnu/linux during the next big refactor
14777 need_lib_prefix=no
14778 need_version=no
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 shlibpath_overrides_runpath=no
14784 hardcode_into_libs=yes
14785 ;;
14786
14787 irix5* | irix6* | nonstopux*)
14788 case $host_os in
14789 nonstopux*) version_type=nonstopux ;;
14790 *)
14791 if test "$lt_cv_prog_gnu_ld" = yes; then
14792 version_type=linux # correct to gnu/linux during the next big refactor
14793 else
14794 version_type=irix
14795 fi ;;
14796 esac
14797 need_lib_prefix=no
14798 need_version=no
14799 soname_spec='${libname}${release}${shared_ext}$major'
14800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14801 case $host_os in
14802 irix5* | nonstopux*)
14803 libsuff= shlibsuff=
14804 ;;
14805 *)
14806 case $LD in # libtool.m4 will add one of these switches to LD
14807 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14808 libsuff= shlibsuff= libmagic=32-bit;;
14809 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14810 libsuff=32 shlibsuff=N32 libmagic=N32;;
14811 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14812 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14813 *) libsuff= shlibsuff= libmagic=never-match;;
14814 esac
14815 ;;
14816 esac
14817 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14818 shlibpath_overrides_runpath=no
14819 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14820 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14821 hardcode_into_libs=yes
14822 ;;
14823
14824 # No shared lib support for Linux oldld, aout, or coff.
14825 linux*oldld* | linux*aout* | linux*coff*)
14826 dynamic_linker=no
14827 ;;
14828
14829 # This must be glibc/ELF.
14830 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14831 version_type=linux # correct to gnu/linux during the next big refactor
14832 need_lib_prefix=no
14833 need_version=no
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 soname_spec='${libname}${release}${shared_ext}$major'
14836 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14837 shlibpath_var=LD_LIBRARY_PATH
14838 shlibpath_overrides_runpath=no
14839
14840 # Some binutils ld are patched to set DT_RUNPATH
14841 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 lt_cv_shlibpath_overrides_runpath=no
14845 save_LDFLAGS=$LDFLAGS
14846 save_libdir=$libdir
14847 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14848 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14851
14852 int
14853 main ()
14854 {
14855
14856 ;
14857 return 0;
14858 }
14859 _ACEOF
14860 if ac_fn_cxx_try_link "$LINENO"; then :
14861 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14862 lt_cv_shlibpath_overrides_runpath=yes
14863 fi
14864 fi
14865 rm -f core conftest.err conftest.$ac_objext \
14866 conftest$ac_exeext conftest.$ac_ext
14867 LDFLAGS=$save_LDFLAGS
14868 libdir=$save_libdir
14869
14870 fi
14871
14872 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14873
14874 # This implies no fast_install, which is unacceptable.
14875 # Some rework will be needed to allow for fast_install
14876 # before this can be enabled.
14877 hardcode_into_libs=yes
14878
14879 # Append ld.so.conf contents to the search path
14880 if test -f /etc/ld.so.conf; then
14881 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' ' '`
14882 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14883 fi
14884
14885 # We used to test for /lib/ld.so.1 and disable shared libraries on
14886 # powerpc, because MkLinux only supported shared libraries with the
14887 # GNU dynamic linker. Since this was broken with cross compilers,
14888 # most powerpc-linux boxes support dynamic linking these days and
14889 # people can always --disable-shared, the test was removed, and we
14890 # assume the GNU/Linux dynamic linker is in use.
14891 dynamic_linker='GNU/Linux ld.so'
14892 ;;
14893
14894 netbsdelf*-gnu)
14895 version_type=linux
14896 need_lib_prefix=no
14897 need_version=no
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 shlibpath_var=LD_LIBRARY_PATH
14901 shlibpath_overrides_runpath=no
14902 hardcode_into_libs=yes
14903 dynamic_linker='NetBSD ld.elf_so'
14904 ;;
14905
14906 netbsd*)
14907 version_type=sunos
14908 need_lib_prefix=no
14909 need_version=no
14910 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14912 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14913 dynamic_linker='NetBSD (a.out) ld.so'
14914 else
14915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14916 soname_spec='${libname}${release}${shared_ext}$major'
14917 dynamic_linker='NetBSD ld.elf_so'
14918 fi
14919 shlibpath_var=LD_LIBRARY_PATH
14920 shlibpath_overrides_runpath=yes
14921 hardcode_into_libs=yes
14922 ;;
14923
14924 newsos6)
14925 version_type=linux # correct to gnu/linux during the next big refactor
14926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927 shlibpath_var=LD_LIBRARY_PATH
14928 shlibpath_overrides_runpath=yes
14929 ;;
14930
14931 *nto* | *qnx*)
14932 version_type=qnx
14933 need_lib_prefix=no
14934 need_version=no
14935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14936 soname_spec='${libname}${release}${shared_ext}$major'
14937 shlibpath_var=LD_LIBRARY_PATH
14938 shlibpath_overrides_runpath=no
14939 hardcode_into_libs=yes
14940 dynamic_linker='ldqnx.so'
14941 ;;
14942
14943 openbsd*)
14944 version_type=sunos
14945 sys_lib_dlsearch_path_spec="/usr/lib"
14946 need_lib_prefix=no
14947 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14948 case $host_os in
14949 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14950 *) need_version=no ;;
14951 esac
14952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14953 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14954 shlibpath_var=LD_LIBRARY_PATH
14955 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14956 case $host_os in
14957 openbsd2.[89] | openbsd2.[89].*)
14958 shlibpath_overrides_runpath=no
14959 ;;
14960 *)
14961 shlibpath_overrides_runpath=yes
14962 ;;
14963 esac
14964 else
14965 shlibpath_overrides_runpath=yes
14966 fi
14967 ;;
14968
14969 os2*)
14970 libname_spec='$name'
14971 shrext_cmds=".dll"
14972 need_lib_prefix=no
14973 library_names_spec='$libname${shared_ext} $libname.a'
14974 dynamic_linker='OS/2 ld.exe'
14975 shlibpath_var=LIBPATH
14976 ;;
14977
14978 osf3* | osf4* | osf5*)
14979 version_type=osf
14980 need_lib_prefix=no
14981 need_version=no
14982 soname_spec='${libname}${release}${shared_ext}$major'
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14984 shlibpath_var=LD_LIBRARY_PATH
14985 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14986 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14987 ;;
14988
14989 rdos*)
14990 dynamic_linker=no
14991 ;;
14992
14993 solaris*)
14994 version_type=linux # correct to gnu/linux during the next big refactor
14995 need_lib_prefix=no
14996 need_version=no
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 shlibpath_var=LD_LIBRARY_PATH
15000 shlibpath_overrides_runpath=yes
15001 hardcode_into_libs=yes
15002 # ldd complains unless libraries are executable
15003 postinstall_cmds='chmod +x $lib'
15004 ;;
15005
15006 sunos4*)
15007 version_type=sunos
15008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15009 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15010 shlibpath_var=LD_LIBRARY_PATH
15011 shlibpath_overrides_runpath=yes
15012 if test "$with_gnu_ld" = yes; then
15013 need_lib_prefix=no
15014 fi
15015 need_version=yes
15016 ;;
15017
15018 sysv4 | sysv4.3*)
15019 version_type=linux # correct to gnu/linux during the next big refactor
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 shlibpath_var=LD_LIBRARY_PATH
15023 case $host_vendor in
15024 sni)
15025 shlibpath_overrides_runpath=no
15026 need_lib_prefix=no
15027 runpath_var=LD_RUN_PATH
15028 ;;
15029 siemens)
15030 need_lib_prefix=no
15031 ;;
15032 motorola)
15033 need_lib_prefix=no
15034 need_version=no
15035 shlibpath_overrides_runpath=no
15036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15037 ;;
15038 esac
15039 ;;
15040
15041 sysv4*MP*)
15042 if test -d /usr/nec ;then
15043 version_type=linux # correct to gnu/linux during the next big refactor
15044 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15045 soname_spec='$libname${shared_ext}.$major'
15046 shlibpath_var=LD_LIBRARY_PATH
15047 fi
15048 ;;
15049
15050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15051 version_type=freebsd-elf
15052 need_lib_prefix=no
15053 need_version=no
15054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15055 soname_spec='${libname}${release}${shared_ext}$major'
15056 shlibpath_var=LD_LIBRARY_PATH
15057 shlibpath_overrides_runpath=yes
15058 hardcode_into_libs=yes
15059 if test "$with_gnu_ld" = yes; then
15060 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15061 else
15062 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15063 case $host_os in
15064 sco3.2v5*)
15065 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15066 ;;
15067 esac
15068 fi
15069 sys_lib_dlsearch_path_spec='/usr/lib'
15070 ;;
15071
15072 tpf*)
15073 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15074 version_type=linux # correct to gnu/linux during the next big refactor
15075 need_lib_prefix=no
15076 need_version=no
15077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15078 shlibpath_var=LD_LIBRARY_PATH
15079 shlibpath_overrides_runpath=no
15080 hardcode_into_libs=yes
15081 ;;
15082
15083 uts4*)
15084 version_type=linux # correct to gnu/linux during the next big refactor
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15086 soname_spec='${libname}${release}${shared_ext}$major'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 ;;
15089
15090 *)
15091 dynamic_linker=no
15092 ;;
15093 esac
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15095 $as_echo "$dynamic_linker" >&6; }
15096 test "$dynamic_linker" = no && can_build_shared=no
15097
15098 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15099 if test "$GCC" = yes; then
15100 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15101 fi
15102
15103 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15104 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15105 fi
15106 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15107 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15108 fi
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15148 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15149 hardcode_action_CXX=
15150 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15151 test -n "$runpath_var_CXX" ||
15152 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15153
15154 # We can hardcode non-existent directories.
15155 if test "$hardcode_direct_CXX" != no &&
15156 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15157 # have to relink, otherwise we might link with an installed library
15158 # when we should be linking with a yet-to-be-installed one
15159 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15160 test "$hardcode_minus_L_CXX" != no; then
15161 # Linking always hardcodes the temporary library directory.
15162 hardcode_action_CXX=relink
15163 else
15164 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15165 hardcode_action_CXX=immediate
15166 fi
15167 else
15168 # We cannot hardcode anything, or else we can only hardcode existing
15169 # directories.
15170 hardcode_action_CXX=unsupported
15171 fi
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15173 $as_echo "$hardcode_action_CXX" >&6; }
15174
15175 if test "$hardcode_action_CXX" = relink ||
15176 test "$inherit_rpath_CXX" = yes; then
15177 # Fast installation is not supported
15178 enable_fast_install=no
15179 elif test "$shlibpath_overrides_runpath" = yes ||
15180 test "$enable_shared" = no; then
15181 # Fast installation is not necessary
15182 enable_fast_install=needless
15183 fi
15184
15185
15186
15187
15188
15189
15190
15191 fi # test -n "$compiler"
15192
15193 CC=$lt_save_CC
15194 CFLAGS=$lt_save_CFLAGS
15195 LDCXX=$LD
15196 LD=$lt_save_LD
15197 GCC=$lt_save_GCC
15198 with_gnu_ld=$lt_save_with_gnu_ld
15199 lt_cv_path_LDCXX=$lt_cv_path_LD
15200 lt_cv_path_LD=$lt_save_path_LD
15201 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15202 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15203 fi # test "$_lt_caught_CXX_error" != yes
15204
15205 ac_ext=c
15206 ac_cpp='$CPP $CPPFLAGS'
15207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15210
15211
15212
15213
15214 # Checks for libraries.
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for create_link_1 in -lvxiclient" >&5
15216 $as_echo_n "checking for create_link_1 in -lvxiclient... " >&6; }
15217 if ${ac_cv_lib_vxiclient_create_link_1+:} false; then :
15218 $as_echo_n "(cached) " >&6
15219 else
15220 ac_check_lib_save_LIBS=$LIBS
15221 LIBS="-lvxiclient $LIBS"
15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15223 /* end confdefs.h. */
15224
15225 /* Override any GCC internal prototype to avoid an error.
15226 Use char because int might match the return type of a GCC
15227 builtin and then its argument prototype would still apply. */
15228 #ifdef __cplusplus
15229 extern "C"
15230 #endif
15231 char create_link_1 ();
15232 int
15233 main ()
15234 {
15235 return create_link_1 ();
15236 ;
15237 return 0;
15238 }
15239 _ACEOF
15240 if ac_fn_c_try_link "$LINENO"; then :
15241 ac_cv_lib_vxiclient_create_link_1=yes
15242 else
15243 ac_cv_lib_vxiclient_create_link_1=no
15244 fi
15245 rm -f core conftest.err conftest.$ac_objext \
15246 conftest$ac_exeext conftest.$ac_ext
15247 LIBS=$ac_check_lib_save_LIBS
15248 fi
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_vxiclient_create_link_1" >&5
15250 $as_echo "$ac_cv_lib_vxiclient_create_link_1" >&6; }
15251 if test "x$ac_cv_lib_vxiclient_create_link_1" = xyes; then :
15252 cat >>confdefs.h <<_ACEOF
15253 #define HAVE_LIBVXICLIENT 1
15254 _ACEOF
15255
15256 LIBS="-lvxiclient $LIBS"
15257
15258 fi
15259
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
15261 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
15262 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
15263 $as_echo_n "(cached) " >&6
15264 else
15265 ac_check_lib_save_LIBS=$LIBS
15266 LIBS="-lpthread $LIBS"
15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15268 /* end confdefs.h. */
15269
15270 /* Override any GCC internal prototype to avoid an error.
15271 Use char because int might match the return type of a GCC
15272 builtin and then its argument prototype would still apply. */
15273 #ifdef __cplusplus
15274 extern "C"
15275 #endif
15276 char pthread_create ();
15277 int
15278 main ()
15279 {
15280 return pthread_create ();
15281 ;
15282 return 0;
15283 }
15284 _ACEOF
15285 if ac_fn_c_try_link "$LINENO"; then :
15286 ac_cv_lib_pthread_pthread_create=yes
15287 else
15288 ac_cv_lib_pthread_pthread_create=no
15289 fi
15290 rm -f core conftest.err conftest.$ac_objext \
15291 conftest$ac_exeext conftest.$ac_ext
15292 LIBS=$ac_check_lib_save_LIBS
15293 fi
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
15295 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
15296 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
15297 cat >>confdefs.h <<_ACEOF
15298 #define HAVE_LIBPTHREAD 1
15299 _ACEOF
15300
15301 LIBS="-lpthread $LIBS"
15302
15303 fi
15304
15305
15306 # This variable collects the pkg-config names of all detected libs.
15307 # It is then used to construct the "Requires.private:" field in the
15308 # librevisa.pc file.
15309 LIBREVISA_PKGLIBS=""
15310
15311
15312 pkg_failed=no
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb" >&5
15314 $as_echo_n "checking for libusb... " >&6; }
15315
15316 if test -n "$libusb_CFLAGS"; then
15317 pkg_cv_libusb_CFLAGS="$libusb_CFLAGS"
15318 elif test -n "$PKG_CONFIG"; then
15319 if test -n "$PKG_CONFIG" && \
15320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.8\""; } >&5
15321 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.8") 2>&5
15322 ac_status=$?
15323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15324 test $ac_status = 0; }; then
15325 pkg_cv_libusb_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0 >= 1.0.8" 2>/dev/null`
15326 test "x$?" != "x0" && pkg_failed=yes
15327 else
15328 pkg_failed=yes
15329 fi
15330 else
15331 pkg_failed=untried
15332 fi
15333 if test -n "$libusb_LIBS"; then
15334 pkg_cv_libusb_LIBS="$libusb_LIBS"
15335 elif test -n "$PKG_CONFIG"; then
15336 if test -n "$PKG_CONFIG" && \
15337 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.8\""; } >&5
15338 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.8") 2>&5
15339 ac_status=$?
15340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15341 test $ac_status = 0; }; then
15342 pkg_cv_libusb_LIBS=`$PKG_CONFIG --libs "libusb-1.0 >= 1.0.8" 2>/dev/null`
15343 test "x$?" != "x0" && pkg_failed=yes
15344 else
15345 pkg_failed=yes
15346 fi
15347 else
15348 pkg_failed=untried
15349 fi
15350
15351
15352
15353 if test $pkg_failed = yes; then
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 $as_echo "no" >&6; }
15356
15357 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15358 _pkg_short_errors_supported=yes
15359 else
15360 _pkg_short_errors_supported=no
15361 fi
15362 if test $_pkg_short_errors_supported = yes; then
15363 libusb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0 >= 1.0.8" 2>&1`
15364 else
15365 libusb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0 >= 1.0.8" 2>&1`
15366 fi
15367 # Put the nasty error message in config.log where it belongs
15368 echo "$libusb_PKG_ERRORS" >&5
15369
15370 WITH_USB=no
15371 elif test $pkg_failed = untried; then
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373 $as_echo "no" >&6; }
15374 WITH_USB=no
15375 else
15376 libusb_CFLAGS=$pkg_cv_libusb_CFLAGS
15377 libusb_LIBS=$pkg_cv_libusb_LIBS
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15379 $as_echo "yes" >&6; }
15380 CXXFLAGS="$CXXFLAGS $libusb_CFLAGS";
15381 LIBS="$LIBS $libusb_LIBS";
15382 LIBREVISA_PKGLIBS="$LIBREVISA_PKGLIBS libusb-1.0";
15383 WITH_USB=yes
15384 fi
15385
15386
15387 pkg_failed=no
15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client" >&5
15389 $as_echo_n "checking for avahi_client... " >&6; }
15390
15391 if test -n "$avahi_client_CFLAGS"; then
15392 pkg_cv_avahi_client_CFLAGS="$avahi_client_CFLAGS"
15393 elif test -n "$PKG_CONFIG"; then
15394 if test -n "$PKG_CONFIG" && \
15395 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6\""; } >&5
15396 ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6") 2>&5
15397 ac_status=$?
15398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399 test $ac_status = 0; }; then
15400 pkg_cv_avahi_client_CFLAGS=`$PKG_CONFIG --cflags "avahi-client >= 0.6" 2>/dev/null`
15401 test "x$?" != "x0" && pkg_failed=yes
15402 else
15403 pkg_failed=yes
15404 fi
15405 else
15406 pkg_failed=untried
15407 fi
15408 if test -n "$avahi_client_LIBS"; then
15409 pkg_cv_avahi_client_LIBS="$avahi_client_LIBS"
15410 elif test -n "$PKG_CONFIG"; then
15411 if test -n "$PKG_CONFIG" && \
15412 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client >= 0.6\""; } >&5
15413 ($PKG_CONFIG --exists --print-errors "avahi-client >= 0.6") 2>&5
15414 ac_status=$?
15415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15416 test $ac_status = 0; }; then
15417 pkg_cv_avahi_client_LIBS=`$PKG_CONFIG --libs "avahi-client >= 0.6" 2>/dev/null`
15418 test "x$?" != "x0" && pkg_failed=yes
15419 else
15420 pkg_failed=yes
15421 fi
15422 else
15423 pkg_failed=untried
15424 fi
15425
15426
15427
15428 if test $pkg_failed = yes; then
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15430 $as_echo "no" >&6; }
15431
15432 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15433 _pkg_short_errors_supported=yes
15434 else
15435 _pkg_short_errors_supported=no
15436 fi
15437 if test $_pkg_short_errors_supported = yes; then
15438 avahi_client_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client >= 0.6" 2>&1`
15439 else
15440 avahi_client_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client >= 0.6" 2>&1`
15441 fi
15442 # Put the nasty error message in config.log where it belongs
15443 echo "$avahi_client_PKG_ERRORS" >&5
15444
15445 WITH_AVAHI=no
15446 elif test $pkg_failed = untried; then
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15448 $as_echo "no" >&6; }
15449 WITH_AVAHI=no
15450 else
15451 avahi_client_CFLAGS=$pkg_cv_avahi_client_CFLAGS
15452 avahi_client_LIBS=$pkg_cv_avahi_client_LIBS
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15454 $as_echo "yes" >&6; }
15455 CXXFLAGS="$CXXFLAGS $avahi_client_CFLAGS";
15456 LIBS="$LIBS $avahi_client_LIBS";
15457 LIBREVISA_PKGLIBS="$LIBREVISA_PKGLIBS avahi-client";
15458 WITH_AVAHI=yes;
15459
15460 $as_echo "#define WITH_AVAHI 1" >>confdefs.h
15461
15462 fi
15463
15464
15465
15466 # Checks for header files.
15467 ac_fn_c_check_header_mongrel "$LINENO" "vxi.h" "ac_cv_header_vxi_h" "$ac_includes_default"
15468 if test "x$ac_cv_header_vxi_h" = xyes; then :
15469
15470 fi
15471
15472
15473
15474 # Checks for typedefs, structures, and compiler characteristics.
15475
15476 # Checks for library functions.
15477
15478 if test "x$WITH_USB" = "xyes"; then
15479 WITH_USB_TRUE=
15480 WITH_USB_FALSE='#'
15481 else
15482 WITH_USB_TRUE='#'
15483 WITH_USB_FALSE=
15484 fi
15485
15486 if test $ac_cv_lib_vxiclient_create_link_1 = yes -a $ac_cv_header_vxi_h = yes; then
15487 WITH_VXI_TRUE=
15488 WITH_VXI_FALSE='#'
15489 else
15490 WITH_VXI_TRUE='#'
15491 WITH_VXI_FALSE=
15492 fi
15493
15494 if test "x$WITH_AVAHI" = "xyes"; then
15495 WITH_AVAHI_TRUE=
15496 WITH_AVAHI_FALSE='#'
15497 else
15498 WITH_AVAHI_TRUE='#'
15499 WITH_AVAHI_FALSE=
15500 fi
15501
15502
15503 cat >confcache <<\_ACEOF
15504 # This file is a shell script that caches the results of configure
15505 # tests run on this system so they can be shared between configure
15506 # scripts and configure runs, see configure's option --config-cache.
15507 # It is not useful on other systems. If it contains results you don't
15508 # want to keep, you may remove or edit it.
15509 #
15510 # config.status only pays attention to the cache file if you give it
15511 # the --recheck option to rerun configure.
15512 #
15513 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15514 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15515 # following values.
15516
15517 _ACEOF
15518
15519 # The following way of writing the cache mishandles newlines in values,
15520 # but we know of no workaround that is simple, portable, and efficient.
15521 # So, we kill variables containing newlines.
15522 # Ultrix sh set writes to stderr and can't be redirected directly,
15523 # and sets the high bit in the cache file unless we assign to the vars.
15524 (
15525 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15526 eval ac_val=\$$ac_var
15527 case $ac_val in #(
15528 *${as_nl}*)
15529 case $ac_var in #(
15530 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15531 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15532 esac
15533 case $ac_var in #(
15534 _ | IFS | as_nl) ;; #(
15535 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15536 *) { eval $ac_var=; unset $ac_var;} ;;
15537 esac ;;
15538 esac
15539 done
15540
15541 (set) 2>&1 |
15542 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15543 *${as_nl}ac_space=\ *)
15544 # `set' does not quote correctly, so add quotes: double-quote
15545 # substitution turns \\\\ into \\, and sed turns \\ into \.
15546 sed -n \
15547 "s/'/'\\\\''/g;
15548 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15549 ;; #(
15550 *)
15551 # `set' quotes correctly as required by POSIX, so do not add quotes.
15552 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15553 ;;
15554 esac |
15555 sort
15556 ) |
15557 sed '
15558 /^ac_cv_env_/b end
15559 t clear
15560 :clear
15561 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15562 t end
15563 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15564 :end' >>confcache
15565 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15566 if test -w "$cache_file"; then
15567 if test "x$cache_file" != "x/dev/null"; then
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15569 $as_echo "$as_me: updating cache $cache_file" >&6;}
15570 if test ! -f "$cache_file" || test -h "$cache_file"; then
15571 cat confcache >"$cache_file"
15572 else
15573 case $cache_file in #(
15574 */* | ?:*)
15575 mv -f confcache "$cache_file"$$ &&
15576 mv -f "$cache_file"$$ "$cache_file" ;; #(
15577 *)
15578 mv -f confcache "$cache_file" ;;
15579 esac
15580 fi
15581 fi
15582 else
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15584 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15585 fi
15586 fi
15587 rm -f confcache
15588
15589 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15590 # Let make expand exec_prefix.
15591 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15592
15593 DEFS=-DHAVE_CONFIG_H
15594
15595 ac_libobjs=
15596 ac_ltlibobjs=
15597 U=
15598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15599 # 1. Remove the extension, and $U if already installed.
15600 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15601 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15602 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15603 # will be set to the directory where LIBOBJS objects are built.
15604 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15605 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15606 done
15607 LIBOBJS=$ac_libobjs
15608
15609 LTLIBOBJS=$ac_ltlibobjs
15610
15611
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15613 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15614 if test -n "$am_sleep_pid"; then
15615 # Hide warnings about reused PIDs.
15616 wait $am_sleep_pid 2>/dev/null
15617 fi
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15619 $as_echo "done" >&6; }
15620 if test -n "$EXEEXT"; then
15621 am__EXEEXT_TRUE=
15622 am__EXEEXT_FALSE='#'
15623 else
15624 am__EXEEXT_TRUE='#'
15625 am__EXEEXT_FALSE=
15626 fi
15627
15628 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15629 as_fn_error $? "conditional \"AMDEP\" was never defined.
15630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15631 fi
15632 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15633 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15635 fi
15636 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15637 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
15638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15639 fi
15640 if test -z "${WITH_USB_TRUE}" && test -z "${WITH_USB_FALSE}"; then
15641 as_fn_error $? "conditional \"WITH_USB\" was never defined.
15642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15643 fi
15644 if test -z "${WITH_VXI_TRUE}" && test -z "${WITH_VXI_FALSE}"; then
15645 as_fn_error $? "conditional \"WITH_VXI\" was never defined.
15646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15647 fi
15648 if test -z "${WITH_AVAHI_TRUE}" && test -z "${WITH_AVAHI_FALSE}"; then
15649 as_fn_error $? "conditional \"WITH_AVAHI\" was never defined.
15650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15651 fi
15652
15653 : "${CONFIG_STATUS=./config.status}"
15654 ac_write_fail=0
15655 ac_clean_files_save=$ac_clean_files
15656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15658 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15659 as_write_fail=0
15660 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15661 #! $SHELL
15662 # Generated by $as_me.
15663 # Run this file to recreate the current configuration.
15664 # Compiler output produced by configure, useful for debugging
15665 # configure, is in config.log if it exists.
15666
15667 debug=false
15668 ac_cs_recheck=false
15669 ac_cs_silent=false
15670
15671 SHELL=\${CONFIG_SHELL-$SHELL}
15672 export SHELL
15673 _ASEOF
15674 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15675 ## -------------------- ##
15676 ## M4sh Initialization. ##
15677 ## -------------------- ##
15678
15679 # Be more Bourne compatible
15680 DUALCASE=1; export DUALCASE # for MKS sh
15681 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15682 emulate sh
15683 NULLCMD=:
15684 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15685 # is contrary to our usage. Disable this feature.
15686 alias -g '${1+"$@"}'='"$@"'
15687 setopt NO_GLOB_SUBST
15688 else
15689 case `(set -o) 2>/dev/null` in #(
15690 *posix*) :
15691 set -o posix ;; #(
15692 *) :
15693 ;;
15694 esac
15695 fi
15696
15697
15698 as_nl='
15699 '
15700 export as_nl
15701 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15702 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15704 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15705 # Prefer a ksh shell builtin over an external printf program on Solaris,
15706 # but without wasting forks for bash or zsh.
15707 if test -z "$BASH_VERSION$ZSH_VERSION" \
15708 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15709 as_echo='print -r --'
15710 as_echo_n='print -rn --'
15711 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15712 as_echo='printf %s\n'
15713 as_echo_n='printf %s'
15714 else
15715 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15716 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15717 as_echo_n='/usr/ucb/echo -n'
15718 else
15719 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15720 as_echo_n_body='eval
15721 arg=$1;
15722 case $arg in #(
15723 *"$as_nl"*)
15724 expr "X$arg" : "X\\(.*\\)$as_nl";
15725 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15726 esac;
15727 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15728 '
15729 export as_echo_n_body
15730 as_echo_n='sh -c $as_echo_n_body as_echo'
15731 fi
15732 export as_echo_body
15733 as_echo='sh -c $as_echo_body as_echo'
15734 fi
15735
15736 # The user is always right.
15737 if test "${PATH_SEPARATOR+set}" != set; then
15738 PATH_SEPARATOR=:
15739 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15740 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15741 PATH_SEPARATOR=';'
15742 }
15743 fi
15744
15745
15746 # IFS
15747 # We need space, tab and new line, in precisely that order. Quoting is
15748 # there to prevent editors from complaining about space-tab.
15749 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15750 # splitting by setting IFS to empty value.)
15751 IFS=" "" $as_nl"
15752
15753 # Find who we are. Look in the path if we contain no directory separator.
15754 as_myself=
15755 case $0 in #((
15756 *[\\/]* ) as_myself=$0 ;;
15757 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15759 do
15760 IFS=$as_save_IFS
15761 test -z "$as_dir" && as_dir=.
15762 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15763 done
15764 IFS=$as_save_IFS
15765
15766 ;;
15767 esac
15768 # We did not find ourselves, most probably we were run as `sh COMMAND'
15769 # in which case we are not to be found in the path.
15770 if test "x$as_myself" = x; then
15771 as_myself=$0
15772 fi
15773 if test ! -f "$as_myself"; then
15774 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15775 exit 1
15776 fi
15777
15778 # Unset variables that we do not need and which cause bugs (e.g. in
15779 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15780 # suppresses any "Segmentation fault" message there. '((' could
15781 # trigger a bug in pdksh 5.2.14.
15782 for as_var in BASH_ENV ENV MAIL MAILPATH
15783 do eval test x\${$as_var+set} = xset \
15784 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15785 done
15786 PS1='$ '
15787 PS2='> '
15788 PS4='+ '
15789
15790 # NLS nuisances.
15791 LC_ALL=C
15792 export LC_ALL
15793 LANGUAGE=C
15794 export LANGUAGE
15795
15796 # CDPATH.
15797 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15798
15799
15800 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15801 # ----------------------------------------
15802 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15803 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15804 # script with STATUS, using 1 if that was 0.
15805 as_fn_error ()
15806 {
15807 as_status=$1; test $as_status -eq 0 && as_status=1
15808 if test "$4"; then
15809 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15810 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15811 fi
15812 $as_echo "$as_me: error: $2" >&2
15813 as_fn_exit $as_status
15814 } # as_fn_error
15815
15816
15817 # as_fn_set_status STATUS
15818 # -----------------------
15819 # Set $? to STATUS, without forking.
15820 as_fn_set_status ()
15821 {
15822 return $1
15823 } # as_fn_set_status
15824
15825 # as_fn_exit STATUS
15826 # -----------------
15827 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15828 as_fn_exit ()
15829 {
15830 set +e
15831 as_fn_set_status $1
15832 exit $1
15833 } # as_fn_exit
15834
15835 # as_fn_unset VAR
15836 # ---------------
15837 # Portably unset VAR.
15838 as_fn_unset ()
15839 {
15840 { eval $1=; unset $1;}
15841 }
15842 as_unset=as_fn_unset
15843 # as_fn_append VAR VALUE
15844 # ----------------------
15845 # Append the text in VALUE to the end of the definition contained in VAR. Take
15846 # advantage of any shell optimizations that allow amortized linear growth over
15847 # repeated appends, instead of the typical quadratic growth present in naive
15848 # implementations.
15849 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15850 eval 'as_fn_append ()
15851 {
15852 eval $1+=\$2
15853 }'
15854 else
15855 as_fn_append ()
15856 {
15857 eval $1=\$$1\$2
15858 }
15859 fi # as_fn_append
15860
15861 # as_fn_arith ARG...
15862 # ------------------
15863 # Perform arithmetic evaluation on the ARGs, and store the result in the
15864 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15865 # must be portable across $(()) and expr.
15866 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15867 eval 'as_fn_arith ()
15868 {
15869 as_val=$(( $* ))
15870 }'
15871 else
15872 as_fn_arith ()
15873 {
15874 as_val=`expr "$@" || test $? -eq 1`
15875 }
15876 fi # as_fn_arith
15877
15878
15879 if expr a : '\(a\)' >/dev/null 2>&1 &&
15880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15881 as_expr=expr
15882 else
15883 as_expr=false
15884 fi
15885
15886 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15887 as_basename=basename
15888 else
15889 as_basename=false
15890 fi
15891
15892 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15893 as_dirname=dirname
15894 else
15895 as_dirname=false
15896 fi
15897
15898 as_me=`$as_basename -- "$0" ||
15899 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15900 X"$0" : 'X\(//\)$' \| \
15901 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15902 $as_echo X/"$0" |
15903 sed '/^.*\/\([^/][^/]*\)\/*$/{
15904 s//\1/
15905 q
15906 }
15907 /^X\/\(\/\/\)$/{
15908 s//\1/
15909 q
15910 }
15911 /^X\/\(\/\).*/{
15912 s//\1/
15913 q
15914 }
15915 s/.*/./; q'`
15916
15917 # Avoid depending upon Character Ranges.
15918 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15919 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15920 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15921 as_cr_digits='0123456789'
15922 as_cr_alnum=$as_cr_Letters$as_cr_digits
15923
15924 ECHO_C= ECHO_N= ECHO_T=
15925 case `echo -n x` in #(((((
15926 -n*)
15927 case `echo 'xy\c'` in
15928 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15929 xy) ECHO_C='\c';;
15930 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15931 ECHO_T=' ';;
15932 esac;;
15933 *)
15934 ECHO_N='-n';;
15935 esac
15936
15937 rm -f conf$$ conf$$.exe conf$$.file
15938 if test -d conf$$.dir; then
15939 rm -f conf$$.dir/conf$$.file
15940 else
15941 rm -f conf$$.dir
15942 mkdir conf$$.dir 2>/dev/null
15943 fi
15944 if (echo >conf$$.file) 2>/dev/null; then
15945 if ln -s conf$$.file conf$$ 2>/dev/null; then
15946 as_ln_s='ln -s'
15947 # ... but there are two gotchas:
15948 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15949 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15950 # In both cases, we have to default to `cp -pR'.
15951 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15952 as_ln_s='cp -pR'
15953 elif ln conf$$.file conf$$ 2>/dev/null; then
15954 as_ln_s=ln
15955 else
15956 as_ln_s='cp -pR'
15957 fi
15958 else
15959 as_ln_s='cp -pR'
15960 fi
15961 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15962 rmdir conf$$.dir 2>/dev/null
15963
15964
15965 # as_fn_mkdir_p
15966 # -------------
15967 # Create "$as_dir" as a directory, including parents if necessary.
15968 as_fn_mkdir_p ()
15969 {
15970
15971 case $as_dir in #(
15972 -*) as_dir=./$as_dir;;
15973 esac
15974 test -d "$as_dir" || eval $as_mkdir_p || {
15975 as_dirs=
15976 while :; do
15977 case $as_dir in #(
15978 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15979 *) as_qdir=$as_dir;;
15980 esac
15981 as_dirs="'$as_qdir' $as_dirs"
15982 as_dir=`$as_dirname -- "$as_dir" ||
15983 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15984 X"$as_dir" : 'X\(//\)[^/]' \| \
15985 X"$as_dir" : 'X\(//\)$' \| \
15986 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15987 $as_echo X"$as_dir" |
15988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15989 s//\1/
15990 q
15991 }
15992 /^X\(\/\/\)[^/].*/{
15993 s//\1/
15994 q
15995 }
15996 /^X\(\/\/\)$/{
15997 s//\1/
15998 q
15999 }
16000 /^X\(\/\).*/{
16001 s//\1/
16002 q
16003 }
16004 s/.*/./; q'`
16005 test -d "$as_dir" && break
16006 done
16007 test -z "$as_dirs" || eval "mkdir $as_dirs"
16008 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16009
16010
16011 } # as_fn_mkdir_p
16012 if mkdir -p . 2>/dev/null; then
16013 as_mkdir_p='mkdir -p "$as_dir"'
16014 else
16015 test -d ./-p && rmdir ./-p
16016 as_mkdir_p=false
16017 fi
16018
16019
16020 # as_fn_executable_p FILE
16021 # -----------------------
16022 # Test if FILE is an executable regular file.
16023 as_fn_executable_p ()
16024 {
16025 test -f "$1" && test -x "$1"
16026 } # as_fn_executable_p
16027 as_test_x='test -x'
16028 as_executable_p=as_fn_executable_p
16029
16030 # Sed expression to map a string onto a valid CPP name.
16031 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16032
16033 # Sed expression to map a string onto a valid variable name.
16034 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16035
16036
16037 exec 6>&1
16038 ## ----------------------------------- ##
16039 ## Main body of $CONFIG_STATUS script. ##
16040 ## ----------------------------------- ##
16041 _ASEOF
16042 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16043
16044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16045 # Save the log message, to keep $0 and so on meaningful, and to
16046 # report actual input values of CONFIG_FILES etc. instead of their
16047 # values after options handling.
16048 ac_log="
16049 This file was extended by librevisa $as_me 0.0.20130812, which was
16050 generated by GNU Autoconf 2.69. Invocation command line was
16051
16052 CONFIG_FILES = $CONFIG_FILES
16053 CONFIG_HEADERS = $CONFIG_HEADERS
16054 CONFIG_LINKS = $CONFIG_LINKS
16055 CONFIG_COMMANDS = $CONFIG_COMMANDS
16056 $ $0 $@
16057
16058 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16059 "
16060
16061 _ACEOF
16062
16063 case $ac_config_files in *"
16064 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16065 esac
16066
16067 case $ac_config_headers in *"
16068 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16069 esac
16070
16071
16072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16073 # Files that config.status was made for.
16074 config_files="$ac_config_files"
16075 config_headers="$ac_config_headers"
16076 config_commands="$ac_config_commands"
16077
16078 _ACEOF
16079
16080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16081 ac_cs_usage="\
16082 \`$as_me' instantiates files and other configuration actions
16083 from templates according to the current configuration. Unless the files
16084 and actions are specified as TAGs, all are instantiated by default.
16085
16086 Usage: $0 [OPTION]... [TAG]...
16087
16088 -h, --help print this help, then exit
16089 -V, --version print version number and configuration settings, then exit
16090 --config print configuration, then exit
16091 -q, --quiet, --silent
16092 do not print progress messages
16093 -d, --debug don't remove temporary files
16094 --recheck update $as_me by reconfiguring in the same conditions
16095 --file=FILE[:TEMPLATE]
16096 instantiate the configuration file FILE
16097 --header=FILE[:TEMPLATE]
16098 instantiate the configuration header FILE
16099
16100 Configuration files:
16101 $config_files
16102
16103 Configuration headers:
16104 $config_headers
16105
16106 Configuration commands:
16107 $config_commands
16108
16109 Report bugs to <[email protected]>."
16110
16111 _ACEOF
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16114 ac_cs_version="\\
16115 librevisa config.status 0.0.20130812
16116 configured by $0, generated by GNU Autoconf 2.69,
16117 with options \\"\$ac_cs_config\\"
16118
16119 Copyright (C) 2012 Free Software Foundation, Inc.
16120 This config.status script is free software; the Free Software Foundation
16121 gives unlimited permission to copy, distribute and modify it."
16122
16123 ac_pwd='$ac_pwd'
16124 srcdir='$srcdir'
16125 INSTALL='$INSTALL'
16126 MKDIR_P='$MKDIR_P'
16127 AWK='$AWK'
16128 test -n "\$AWK" || AWK=awk
16129 _ACEOF
16130
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16132 # The default lists apply if the user does not specify any file.
16133 ac_need_defaults=:
16134 while test $# != 0
16135 do
16136 case $1 in
16137 --*=?*)
16138 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16139 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16140 ac_shift=:
16141 ;;
16142 --*=)
16143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16144 ac_optarg=
16145 ac_shift=:
16146 ;;
16147 *)
16148 ac_option=$1
16149 ac_optarg=$2
16150 ac_shift=shift
16151 ;;
16152 esac
16153
16154 case $ac_option in
16155 # Handling of the options.
16156 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16157 ac_cs_recheck=: ;;
16158 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16159 $as_echo "$ac_cs_version"; exit ;;
16160 --config | --confi | --conf | --con | --co | --c )
16161 $as_echo "$ac_cs_config"; exit ;;
16162 --debug | --debu | --deb | --de | --d | -d )
16163 debug=: ;;
16164 --file | --fil | --fi | --f )
16165 $ac_shift
16166 case $ac_optarg in
16167 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16168 '') as_fn_error $? "missing file argument" ;;
16169 esac
16170 as_fn_append CONFIG_FILES " '$ac_optarg'"
16171 ac_need_defaults=false;;
16172 --header | --heade | --head | --hea )
16173 $ac_shift
16174 case $ac_optarg in
16175 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16176 esac
16177 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16178 ac_need_defaults=false;;
16179 --he | --h)
16180 # Conflict between --help and --header
16181 as_fn_error $? "ambiguous option: \`$1'
16182 Try \`$0 --help' for more information.";;
16183 --help | --hel | -h )
16184 $as_echo "$ac_cs_usage"; exit ;;
16185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16186 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16187 ac_cs_silent=: ;;
16188
16189 # This is an error.
16190 -*) as_fn_error $? "unrecognized option: \`$1'
16191 Try \`$0 --help' for more information." ;;
16192
16193 *) as_fn_append ac_config_targets " $1"
16194 ac_need_defaults=false ;;
16195
16196 esac
16197 shift
16198 done
16199
16200 ac_configure_extra_args=
16201
16202 if $ac_cs_silent; then
16203 exec 6>/dev/null
16204 ac_configure_extra_args="$ac_configure_extra_args --silent"
16205 fi
16206
16207 _ACEOF
16208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16209 if \$ac_cs_recheck; then
16210 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16211 shift
16212 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16213 CONFIG_SHELL='$SHELL'
16214 export CONFIG_SHELL
16215 exec "\$@"
16216 fi
16217
16218 _ACEOF
16219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16220 exec 5>>config.log
16221 {
16222 echo
16223 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16224 ## Running $as_me. ##
16225 _ASBOX
16226 $as_echo "$ac_log"
16227 } >&5
16228
16229 _ACEOF
16230 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16231 #
16232 # INIT-COMMANDS
16233 #
16234 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16235
16236
16237 # The HP-UX ksh and POSIX shell print the target directory to stdout
16238 # if CDPATH is set.
16239 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16240
16241 sed_quote_subst='$sed_quote_subst'
16242 double_quote_subst='$double_quote_subst'
16243 delay_variable_subst='$delay_variable_subst'
16244 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16245 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16246 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16247 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16248 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16249 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16250 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16251 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16252 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16253 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16254 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16255 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16256 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16257 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16258 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16259 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16260 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16261 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16262 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16263 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16264 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16265 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16266 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16267 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16268 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16269 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16270 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16271 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16272 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16273 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16274 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16275 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16276 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16277 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16278 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16279 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16280 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16281 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16282 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16283 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16284 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16285 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16286 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16287 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16288 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16289 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16290 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16291 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16292 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16293 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16294 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16295 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16296 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16297 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16298 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16299 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16300 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"`'
16301 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16302 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16303 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16304 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16305 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16306 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16307 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16308 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16309 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16310 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16311 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16312 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16313 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16314 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16315 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16316 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16317 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16318 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16319 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16320 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16321 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16322 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16323 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16324 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16325 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16326 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16327 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16328 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16329 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16330 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16331 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16332 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16333 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16334 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16335 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16336 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16337 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16338 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16339 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16340 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16341 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16342 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16343 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16344 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16345 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16346 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16347 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16348 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16349 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16350 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16351 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16352 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16353 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16354 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16355 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16356 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16357 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16358 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16359 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16360 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16361 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16362 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16363 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16364 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16365 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16366 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16367 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16368 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16369 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16370 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16371 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16372 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16373 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16374 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
16375 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
16376 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
16377 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
16378 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
16379 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
16380 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
16381 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
16382 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16383 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16384 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
16385 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
16386 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
16387 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
16388 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
16389 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
16390 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
16391 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
16392 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
16393 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16394 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16395 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
16396 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16397 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16398 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16399 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16400 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16401 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16402 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
16403 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16404 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
16405 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
16406 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
16407 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
16408 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
16409 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
16410 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
16411 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
16412 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
16413 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
16414 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
16415 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16416 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16417 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
16418 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16419 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
16420 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
16421 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
16422 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
16423 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16424 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
16425 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
16426 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
16427 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
16428
16429 LTCC='$LTCC'
16430 LTCFLAGS='$LTCFLAGS'
16431 compiler='$compiler_DEFAULT'
16432
16433 # A function that is used when there is no print builtin or printf.
16434 func_fallback_echo ()
16435 {
16436 eval 'cat <<_LTECHO_EOF
16437 \$1
16438 _LTECHO_EOF'
16439 }
16440
16441 # Quote evaled strings.
16442 for var in SHELL \
16443 ECHO \
16444 PATH_SEPARATOR \
16445 SED \
16446 GREP \
16447 EGREP \
16448 FGREP \
16449 LD \
16450 NM \
16451 LN_S \
16452 lt_SP2NL \
16453 lt_NL2SP \
16454 reload_flag \
16455 OBJDUMP \
16456 deplibs_check_method \
16457 file_magic_cmd \
16458 file_magic_glob \
16459 want_nocaseglob \
16460 DLLTOOL \
16461 sharedlib_from_linklib_cmd \
16462 AR \
16463 AR_FLAGS \
16464 archiver_list_spec \
16465 STRIP \
16466 RANLIB \
16467 CC \
16468 CFLAGS \
16469 compiler \
16470 lt_cv_sys_global_symbol_pipe \
16471 lt_cv_sys_global_symbol_to_cdecl \
16472 lt_cv_sys_global_symbol_to_c_name_address \
16473 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16474 nm_file_list_spec \
16475 lt_prog_compiler_no_builtin_flag \
16476 lt_prog_compiler_pic \
16477 lt_prog_compiler_wl \
16478 lt_prog_compiler_static \
16479 lt_cv_prog_compiler_c_o \
16480 need_locks \
16481 MANIFEST_TOOL \
16482 DSYMUTIL \
16483 NMEDIT \
16484 LIPO \
16485 OTOOL \
16486 OTOOL64 \
16487 shrext_cmds \
16488 export_dynamic_flag_spec \
16489 whole_archive_flag_spec \
16490 compiler_needs_object \
16491 with_gnu_ld \
16492 allow_undefined_flag \
16493 no_undefined_flag \
16494 hardcode_libdir_flag_spec \
16495 hardcode_libdir_separator \
16496 exclude_expsyms \
16497 include_expsyms \
16498 file_list_spec \
16499 variables_saved_for_relink \
16500 libname_spec \
16501 library_names_spec \
16502 soname_spec \
16503 install_override_mode \
16504 finish_eval \
16505 old_striplib \
16506 striplib \
16507 compiler_lib_search_dirs \
16508 predep_objects \
16509 postdep_objects \
16510 predeps \
16511 postdeps \
16512 compiler_lib_search_path \
16513 LD_CXX \
16514 reload_flag_CXX \
16515 compiler_CXX \
16516 lt_prog_compiler_no_builtin_flag_CXX \
16517 lt_prog_compiler_pic_CXX \
16518 lt_prog_compiler_wl_CXX \
16519 lt_prog_compiler_static_CXX \
16520 lt_cv_prog_compiler_c_o_CXX \
16521 export_dynamic_flag_spec_CXX \
16522 whole_archive_flag_spec_CXX \
16523 compiler_needs_object_CXX \
16524 with_gnu_ld_CXX \
16525 allow_undefined_flag_CXX \
16526 no_undefined_flag_CXX \
16527 hardcode_libdir_flag_spec_CXX \
16528 hardcode_libdir_separator_CXX \
16529 exclude_expsyms_CXX \
16530 include_expsyms_CXX \
16531 file_list_spec_CXX \
16532 compiler_lib_search_dirs_CXX \
16533 predep_objects_CXX \
16534 postdep_objects_CXX \
16535 predeps_CXX \
16536 postdeps_CXX \
16537 compiler_lib_search_path_CXX; do
16538 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16539 *[\\\\\\\`\\"\\\$]*)
16540 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16541 ;;
16542 *)
16543 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16544 ;;
16545 esac
16546 done
16547
16548 # Double-quote double-evaled strings.
16549 for var in reload_cmds \
16550 old_postinstall_cmds \
16551 old_postuninstall_cmds \
16552 old_archive_cmds \
16553 extract_expsyms_cmds \
16554 old_archive_from_new_cmds \
16555 old_archive_from_expsyms_cmds \
16556 archive_cmds \
16557 archive_expsym_cmds \
16558 module_cmds \
16559 module_expsym_cmds \
16560 export_symbols_cmds \
16561 prelink_cmds \
16562 postlink_cmds \
16563 postinstall_cmds \
16564 postuninstall_cmds \
16565 finish_cmds \
16566 sys_lib_search_path_spec \
16567 sys_lib_dlsearch_path_spec \
16568 reload_cmds_CXX \
16569 old_archive_cmds_CXX \
16570 old_archive_from_new_cmds_CXX \
16571 old_archive_from_expsyms_cmds_CXX \
16572 archive_cmds_CXX \
16573 archive_expsym_cmds_CXX \
16574 module_cmds_CXX \
16575 module_expsym_cmds_CXX \
16576 export_symbols_cmds_CXX \
16577 prelink_cmds_CXX \
16578 postlink_cmds_CXX; do
16579 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16580 *[\\\\\\\`\\"\\\$]*)
16581 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16582 ;;
16583 *)
16584 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16585 ;;
16586 esac
16587 done
16588
16589 ac_aux_dir='$ac_aux_dir'
16590 xsi_shell='$xsi_shell'
16591 lt_shell_append='$lt_shell_append'
16592
16593 # See if we are running on zsh, and set the options which allow our
16594 # commands through without removal of \ escapes INIT.
16595 if test -n "\${ZSH_VERSION+set}" ; then
16596 setopt NO_GLOB_SUBST
16597 fi
16598
16599
16600 PACKAGE='$PACKAGE'
16601 VERSION='$VERSION'
16602 TIMESTAMP='$TIMESTAMP'
16603 RM='$RM'
16604 ofile='$ofile'
16605
16606
16607
16608
16609
16610
16611 _ACEOF
16612
16613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16614
16615 # Handling of arguments.
16616 for ac_config_target in $ac_config_targets
16617 do
16618 case $ac_config_target in
16619 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16620 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16621 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16622 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16623 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16624 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16625 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16626 "librevisa.pc") CONFIG_FILES="$CONFIG_FILES librevisa.pc" ;;
16627
16628 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16629 esac
16630 done
16631
16632
16633 # If the user did not use the arguments to specify the items to instantiate,
16634 # then the envvar interface is used. Set only those that are not.
16635 # We use the long form for the default assignment because of an extremely
16636 # bizarre bug on SunOS 4.1.3.
16637 if $ac_need_defaults; then
16638 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16639 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16640 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16641 fi
16642
16643 # Have a temporary directory for convenience. Make it in the build tree
16644 # simply because there is no reason against having it here, and in addition,
16645 # creating and moving files from /tmp can sometimes cause problems.
16646 # Hook for its removal unless debugging.
16647 # Note that there is a small window in which the directory will not be cleaned:
16648 # after its creation but before its name has been assigned to `$tmp'.
16649 $debug ||
16650 {
16651 tmp= ac_tmp=
16652 trap 'exit_status=$?
16653 : "${ac_tmp:=$tmp}"
16654 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16655 ' 0
16656 trap 'as_fn_exit 1' 1 2 13 15
16657 }
16658 # Create a (secure) tmp directory for tmp files.
16659
16660 {
16661 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16662 test -d "$tmp"
16663 } ||
16664 {
16665 tmp=./conf$$-$RANDOM
16666 (umask 077 && mkdir "$tmp")
16667 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16668 ac_tmp=$tmp
16669
16670 # Set up the scripts for CONFIG_FILES section.
16671 # No need to generate them if there are no CONFIG_FILES.
16672 # This happens for instance with `./config.status config.h'.
16673 if test -n "$CONFIG_FILES"; then
16674
16675
16676 ac_cr=`echo X | tr X '\015'`
16677 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16678 # But we know of no other shell where ac_cr would be empty at this
16679 # point, so we can use a bashism as a fallback.
16680 if test "x$ac_cr" = x; then
16681 eval ac_cr=\$\'\\r\'
16682 fi
16683 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16684 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16685 ac_cs_awk_cr='\\r'
16686 else
16687 ac_cs_awk_cr=$ac_cr
16688 fi
16689
16690 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16691 _ACEOF
16692
16693
16694 {
16695 echo "cat >conf$$subs.awk <<_ACEOF" &&
16696 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16697 echo "_ACEOF"
16698 } >conf$$subs.sh ||
16699 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16700 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16701 ac_delim='%!_!# '
16702 for ac_last_try in false false false false false :; do
16703 . ./conf$$subs.sh ||
16704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16705
16706 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16707 if test $ac_delim_n = $ac_delim_num; then
16708 break
16709 elif $ac_last_try; then
16710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16711 else
16712 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16713 fi
16714 done
16715 rm -f conf$$subs.sh
16716
16717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16718 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16719 _ACEOF
16720 sed -n '
16721 h
16722 s/^/S["/; s/!.*/"]=/
16723 p
16724 g
16725 s/^[^!]*!//
16726 :repl
16727 t repl
16728 s/'"$ac_delim"'$//
16729 t delim
16730 :nl
16731 h
16732 s/\(.\{148\}\)..*/\1/
16733 t more1
16734 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16735 p
16736 n
16737 b repl
16738 :more1
16739 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16740 p
16741 g
16742 s/.\{148\}//
16743 t nl
16744 :delim
16745 h
16746 s/\(.\{148\}\)..*/\1/
16747 t more2
16748 s/["\\]/\\&/g; s/^/"/; s/$/"/
16749 p
16750 b
16751 :more2
16752 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16753 p
16754 g
16755 s/.\{148\}//
16756 t delim
16757 ' <conf$$subs.awk | sed '
16758 /^[^""]/{
16759 N
16760 s/\n//
16761 }
16762 ' >>$CONFIG_STATUS || ac_write_fail=1
16763 rm -f conf$$subs.awk
16764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16765 _ACAWK
16766 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16767 for (key in S) S_is_set[key] = 1
16768 FS = ""
16769
16770 }
16771 {
16772 line = $ 0
16773 nfields = split(line, field, "@")
16774 substed = 0
16775 len = length(field[1])
16776 for (i = 2; i < nfields; i++) {
16777 key = field[i]
16778 keylen = length(key)
16779 if (S_is_set[key]) {
16780 value = S[key]
16781 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16782 len += length(value) + length(field[++i])
16783 substed = 1
16784 } else
16785 len += 1 + keylen
16786 }
16787
16788 print line
16789 }
16790
16791 _ACAWK
16792 _ACEOF
16793 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16794 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16795 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16796 else
16797 cat
16798 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16799 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16800 _ACEOF
16801
16802 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16803 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16804 # trailing colons and then remove the whole line if VPATH becomes empty
16805 # (actually we leave an empty line to preserve line numbers).
16806 if test "x$srcdir" = x.; then
16807 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16808 h
16809 s///
16810 s/^/:/
16811 s/[ ]*$/:/
16812 s/:\$(srcdir):/:/g
16813 s/:\${srcdir}:/:/g
16814 s/:@srcdir@:/:/g
16815 s/^:*//
16816 s/:*$//
16817 x
16818 s/\(=[ ]*\).*/\1/
16819 G
16820 s/\n//
16821 s/^[^=]*=[ ]*$//
16822 }'
16823 fi
16824
16825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16826 fi # test -n "$CONFIG_FILES"
16827
16828 # Set up the scripts for CONFIG_HEADERS section.
16829 # No need to generate them if there are no CONFIG_HEADERS.
16830 # This happens for instance with `./config.status Makefile'.
16831 if test -n "$CONFIG_HEADERS"; then
16832 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16833 BEGIN {
16834 _ACEOF
16835
16836 # Transform confdefs.h into an awk script `defines.awk', embedded as
16837 # here-document in config.status, that substitutes the proper values into
16838 # config.h.in to produce config.h.
16839
16840 # Create a delimiter string that does not exist in confdefs.h, to ease
16841 # handling of long lines.
16842 ac_delim='%!_!# '
16843 for ac_last_try in false false :; do
16844 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16845 if test -z "$ac_tt"; then
16846 break
16847 elif $ac_last_try; then
16848 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16849 else
16850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16851 fi
16852 done
16853
16854 # For the awk script, D is an array of macro values keyed by name,
16855 # likewise P contains macro parameters if any. Preserve backslash
16856 # newline sequences.
16857
16858 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16859 sed -n '
16860 s/.\{148\}/&'"$ac_delim"'/g
16861 t rset
16862 :rset
16863 s/^[ ]*#[ ]*define[ ][ ]*/ /
16864 t def
16865 d
16866 :def
16867 s/\\$//
16868 t bsnl
16869 s/["\\]/\\&/g
16870 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16871 D["\1"]=" \3"/p
16872 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16873 d
16874 :bsnl
16875 s/["\\]/\\&/g
16876 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16877 D["\1"]=" \3\\\\\\n"\\/p
16878 t cont
16879 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16880 t cont
16881 d
16882 :cont
16883 n
16884 s/.\{148\}/&'"$ac_delim"'/g
16885 t clear
16886 :clear
16887 s/\\$//
16888 t bsnlc
16889 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16890 d
16891 :bsnlc
16892 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16893 b cont
16894 ' <confdefs.h | sed '
16895 s/'"$ac_delim"'/"\\\
16896 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16897
16898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16899 for (key in D) D_is_set[key] = 1
16900 FS = ""
16901 }
16902 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16903 line = \$ 0
16904 split(line, arg, " ")
16905 if (arg[1] == "#") {
16906 defundef = arg[2]
16907 mac1 = arg[3]
16908 } else {
16909 defundef = substr(arg[1], 2)
16910 mac1 = arg[2]
16911 }
16912 split(mac1, mac2, "(") #)
16913 macro = mac2[1]
16914 prefix = substr(line, 1, index(line, defundef) - 1)
16915 if (D_is_set[macro]) {
16916 # Preserve the white space surrounding the "#".
16917 print prefix "define", macro P[macro] D[macro]
16918 next
16919 } else {
16920 # Replace #undef with comments. This is necessary, for example,
16921 # in the case of _POSIX_SOURCE, which is predefined and required
16922 # on some systems where configure will not decide to define it.
16923 if (defundef == "undef") {
16924 print "/*", prefix defundef, macro, "*/"
16925 next
16926 }
16927 }
16928 }
16929 { print }
16930 _ACAWK
16931 _ACEOF
16932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16933 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16934 fi # test -n "$CONFIG_HEADERS"
16935
16936
16937 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16938 shift
16939 for ac_tag
16940 do
16941 case $ac_tag in
16942 :[FHLC]) ac_mode=$ac_tag; continue;;
16943 esac
16944 case $ac_mode$ac_tag in
16945 :[FHL]*:*);;
16946 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16947 :[FH]-) ac_tag=-:-;;
16948 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16949 esac
16950 ac_save_IFS=$IFS
16951 IFS=:
16952 set x $ac_tag
16953 IFS=$ac_save_IFS
16954 shift
16955 ac_file=$1
16956 shift
16957
16958 case $ac_mode in
16959 :L) ac_source=$1;;
16960 :[FH])
16961 ac_file_inputs=
16962 for ac_f
16963 do
16964 case $ac_f in
16965 -) ac_f="$ac_tmp/stdin";;
16966 *) # Look for the file first in the build tree, then in the source tree
16967 # (if the path is not absolute). The absolute path cannot be DOS-style,
16968 # because $ac_f cannot contain `:'.
16969 test -f "$ac_f" ||
16970 case $ac_f in
16971 [\\/$]*) false;;
16972 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16973 esac ||
16974 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16975 esac
16976 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16977 as_fn_append ac_file_inputs " '$ac_f'"
16978 done
16979
16980 # Let's still pretend it is `configure' which instantiates (i.e., don't
16981 # use $as_me), people would be surprised to read:
16982 # /* config.h. Generated by config.status. */
16983 configure_input='Generated from '`
16984 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16985 `' by configure.'
16986 if test x"$ac_file" != x-; then
16987 configure_input="$ac_file. $configure_input"
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16989 $as_echo "$as_me: creating $ac_file" >&6;}
16990 fi
16991 # Neutralize special characters interpreted by sed in replacement strings.
16992 case $configure_input in #(
16993 *\&* | *\|* | *\\* )
16994 ac_sed_conf_input=`$as_echo "$configure_input" |
16995 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16996 *) ac_sed_conf_input=$configure_input;;
16997 esac
16998
16999 case $ac_tag in
17000 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17002 esac
17003 ;;
17004 esac
17005
17006 ac_dir=`$as_dirname -- "$ac_file" ||
17007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17008 X"$ac_file" : 'X\(//\)[^/]' \| \
17009 X"$ac_file" : 'X\(//\)$' \| \
17010 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17011 $as_echo X"$ac_file" |
17012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17013 s//\1/
17014 q
17015 }
17016 /^X\(\/\/\)[^/].*/{
17017 s//\1/
17018 q
17019 }
17020 /^X\(\/\/\)$/{
17021 s//\1/
17022 q
17023 }
17024 /^X\(\/\).*/{
17025 s//\1/
17026 q
17027 }
17028 s/.*/./; q'`
17029 as_dir="$ac_dir"; as_fn_mkdir_p
17030 ac_builddir=.
17031
17032 case "$ac_dir" in
17033 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17034 *)
17035 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17036 # A ".." for each directory in $ac_dir_suffix.
17037 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17038 case $ac_top_builddir_sub in
17039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17041 esac ;;
17042 esac
17043 ac_abs_top_builddir=$ac_pwd
17044 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17045 # for backward compatibility:
17046 ac_top_builddir=$ac_top_build_prefix
17047
17048 case $srcdir in
17049 .) # We are building in place.
17050 ac_srcdir=.
17051 ac_top_srcdir=$ac_top_builddir_sub
17052 ac_abs_top_srcdir=$ac_pwd ;;
17053 [\\/]* | ?:[\\/]* ) # Absolute name.
17054 ac_srcdir=$srcdir$ac_dir_suffix;
17055 ac_top_srcdir=$srcdir
17056 ac_abs_top_srcdir=$srcdir ;;
17057 *) # Relative name.
17058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17059 ac_top_srcdir=$ac_top_build_prefix$srcdir
17060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17061 esac
17062 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17063
17064
17065 case $ac_mode in
17066 :F)
17067 #
17068 # CONFIG_FILE
17069 #
17070
17071 case $INSTALL in
17072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17073 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17074 esac
17075 ac_MKDIR_P=$MKDIR_P
17076 case $MKDIR_P in
17077 [\\/$]* | ?:[\\/]* ) ;;
17078 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17079 esac
17080 _ACEOF
17081
17082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17083 # If the template does not know about datarootdir, expand it.
17084 # FIXME: This hack should be removed a few years after 2.60.
17085 ac_datarootdir_hack=; ac_datarootdir_seen=
17086 ac_sed_dataroot='
17087 /datarootdir/ {
17088 p
17089 q
17090 }
17091 /@datadir@/p
17092 /@docdir@/p
17093 /@infodir@/p
17094 /@localedir@/p
17095 /@mandir@/p'
17096 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17097 *datarootdir*) ac_datarootdir_seen=yes;;
17098 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17100 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17101 _ACEOF
17102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17103 ac_datarootdir_hack='
17104 s&@datadir@&$datadir&g
17105 s&@docdir@&$docdir&g
17106 s&@infodir@&$infodir&g
17107 s&@localedir@&$localedir&g
17108 s&@mandir@&$mandir&g
17109 s&\\\${datarootdir}&$datarootdir&g' ;;
17110 esac
17111 _ACEOF
17112
17113 # Neutralize VPATH when `$srcdir' = `.'.
17114 # Shell code in configure.ac might set extrasub.
17115 # FIXME: do we really want to maintain this feature?
17116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17117 ac_sed_extra="$ac_vpsub
17118 $extrasub
17119 _ACEOF
17120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17121 :t
17122 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17123 s|@configure_input@|$ac_sed_conf_input|;t t
17124 s&@top_builddir@&$ac_top_builddir_sub&;t t
17125 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17126 s&@srcdir@&$ac_srcdir&;t t
17127 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17128 s&@top_srcdir@&$ac_top_srcdir&;t t
17129 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17130 s&@builddir@&$ac_builddir&;t t
17131 s&@abs_builddir@&$ac_abs_builddir&;t t
17132 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17133 s&@INSTALL@&$ac_INSTALL&;t t
17134 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17135 $ac_datarootdir_hack
17136 "
17137 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17138 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17139
17140 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17141 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17142 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17143 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17145 which seems to be undefined. Please make sure it is defined" >&5
17146 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17147 which seems to be undefined. Please make sure it is defined" >&2;}
17148
17149 rm -f "$ac_tmp/stdin"
17150 case $ac_file in
17151 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17152 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17153 esac \
17154 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17155 ;;
17156 :H)
17157 #
17158 # CONFIG_HEADER
17159 #
17160 if test x"$ac_file" != x-; then
17161 {
17162 $as_echo "/* $configure_input */" \
17163 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17164 } >"$ac_tmp/config.h" \
17165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17166 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17168 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17169 else
17170 rm -f "$ac_file"
17171 mv "$ac_tmp/config.h" "$ac_file" \
17172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17173 fi
17174 else
17175 $as_echo "/* $configure_input */" \
17176 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17177 || as_fn_error $? "could not create -" "$LINENO" 5
17178 fi
17179 # Compute "$ac_file"'s index in $config_headers.
17180 _am_arg="$ac_file"
17181 _am_stamp_count=1
17182 for _am_header in $config_headers :; do
17183 case $_am_header in
17184 $_am_arg | $_am_arg:* )
17185 break ;;
17186 * )
17187 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17188 esac
17189 done
17190 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17191 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17192 X"$_am_arg" : 'X\(//\)[^/]' \| \
17193 X"$_am_arg" : 'X\(//\)$' \| \
17194 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17195 $as_echo X"$_am_arg" |
17196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17197 s//\1/
17198 q
17199 }
17200 /^X\(\/\/\)[^/].*/{
17201 s//\1/
17202 q
17203 }
17204 /^X\(\/\/\)$/{
17205 s//\1/
17206 q
17207 }
17208 /^X\(\/\).*/{
17209 s//\1/
17210 q
17211 }
17212 s/.*/./; q'`/stamp-h$_am_stamp_count
17213 ;;
17214
17215 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17216 $as_echo "$as_me: executing $ac_file commands" >&6;}
17217 ;;
17218 esac
17219
17220
17221 case $ac_file$ac_mode in
17222 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17223 # Older Autoconf quotes --file arguments for eval, but not when files
17224 # are listed without --file. Let's play safe and only enable the eval
17225 # if we detect the quoting.
17226 case $CONFIG_FILES in
17227 *\'*) eval set x "$CONFIG_FILES" ;;
17228 *) set x $CONFIG_FILES ;;
17229 esac
17230 shift
17231 for mf
17232 do
17233 # Strip MF so we end up with the name of the file.
17234 mf=`echo "$mf" | sed -e 's/:.*$//'`
17235 # Check whether this is an Automake generated Makefile or not.
17236 # We used to match only the files named 'Makefile.in', but
17237 # some people rename them; so instead we look at the file content.
17238 # Grep'ing the first line is not enough: some people post-process
17239 # each Makefile.in and add a new line on top of each file to say so.
17240 # Grep'ing the whole file is not good either: AIX grep has a line
17241 # limit of 2048, but all sed's we know have understand at least 4000.
17242 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17243 dirpart=`$as_dirname -- "$mf" ||
17244 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17245 X"$mf" : 'X\(//\)[^/]' \| \
17246 X"$mf" : 'X\(//\)$' \| \
17247 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17248 $as_echo X"$mf" |
17249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17250 s//\1/
17251 q
17252 }
17253 /^X\(\/\/\)[^/].*/{
17254 s//\1/
17255 q
17256 }
17257 /^X\(\/\/\)$/{
17258 s//\1/
17259 q
17260 }
17261 /^X\(\/\).*/{
17262 s//\1/
17263 q
17264 }
17265 s/.*/./; q'`
17266 else
17267 continue
17268 fi
17269 # Extract the definition of DEPDIR, am__include, and am__quote
17270 # from the Makefile without running 'make'.
17271 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17272 test -z "$DEPDIR" && continue
17273 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17274 test -z "$am__include" && continue
17275 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17276 # Find all dependency output files, they are included files with
17277 # $(DEPDIR) in their names. We invoke sed twice because it is the
17278 # simplest approach to changing $(DEPDIR) to its actual value in the
17279 # expansion.
17280 for file in `sed -n "
17281 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17282 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17283 # Make sure the directory exists.
17284 test -f "$dirpart/$file" && continue
17285 fdir=`$as_dirname -- "$file" ||
17286 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17287 X"$file" : 'X\(//\)[^/]' \| \
17288 X"$file" : 'X\(//\)$' \| \
17289 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17290 $as_echo X"$file" |
17291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17292 s//\1/
17293 q
17294 }
17295 /^X\(\/\/\)[^/].*/{
17296 s//\1/
17297 q
17298 }
17299 /^X\(\/\/\)$/{
17300 s//\1/
17301 q
17302 }
17303 /^X\(\/\).*/{
17304 s//\1/
17305 q
17306 }
17307 s/.*/./; q'`
17308 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17309 # echo "creating $dirpart/$file"
17310 echo '# dummy' > "$dirpart/$file"
17311 done
17312 done
17313 }
17314 ;;
17315 "libtool":C)
17316
17317 # See if we are running on zsh, and set the options which allow our
17318 # commands through without removal of \ escapes.
17319 if test -n "${ZSH_VERSION+set}" ; then
17320 setopt NO_GLOB_SUBST
17321 fi
17322
17323 cfgfile="${ofile}T"
17324 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17325 $RM "$cfgfile"
17326
17327 cat <<_LT_EOF >> "$cfgfile"
17328 #! $SHELL
17329
17330 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17331 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17332 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17333 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17334 #
17335 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17336 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17337 # Foundation, Inc.
17338 # Written by Gordon Matzigkeit, 1996
17339 #
17340 # This file is part of GNU Libtool.
17341 #
17342 # GNU Libtool is free software; you can redistribute it and/or
17343 # modify it under the terms of the GNU General Public License as
17344 # published by the Free Software Foundation; either version 2 of
17345 # the License, or (at your option) any later version.
17346 #
17347 # As a special exception to the GNU General Public License,
17348 # if you distribute this file as part of a program or library that
17349 # is built using GNU Libtool, you may include this file under the
17350 # same distribution terms that you use for the rest of that program.
17351 #
17352 # GNU Libtool is distributed in the hope that it will be useful,
17353 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17354 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17355 # GNU General Public License for more details.
17356 #
17357 # You should have received a copy of the GNU General Public License
17358 # along with GNU Libtool; see the file COPYING. If not, a copy
17359 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17360 # obtained by writing to the Free Software Foundation, Inc.,
17361 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17362
17363
17364 # The names of the tagged configurations supported by this script.
17365 available_tags="CXX "
17366
17367 # ### BEGIN LIBTOOL CONFIG
17368
17369 # Which release of libtool.m4 was used?
17370 macro_version=$macro_version
17371 macro_revision=$macro_revision
17372
17373 # Whether or not to build shared libraries.
17374 build_libtool_libs=$enable_shared
17375
17376 # Whether or not to build static libraries.
17377 build_old_libs=$enable_static
17378
17379 # What type of objects to build.
17380 pic_mode=$pic_mode
17381
17382 # Whether or not to optimize for fast installation.
17383 fast_install=$enable_fast_install
17384
17385 # Shell to use when invoking shell scripts.
17386 SHELL=$lt_SHELL
17387
17388 # An echo program that protects backslashes.
17389 ECHO=$lt_ECHO
17390
17391 # The PATH separator for the build system.
17392 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17393
17394 # The host system.
17395 host_alias=$host_alias
17396 host=$host
17397 host_os=$host_os
17398
17399 # The build system.
17400 build_alias=$build_alias
17401 build=$build
17402 build_os=$build_os
17403
17404 # A sed program that does not truncate output.
17405 SED=$lt_SED
17406
17407 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17408 Xsed="\$SED -e 1s/^X//"
17409
17410 # A grep program that handles long lines.
17411 GREP=$lt_GREP
17412
17413 # An ERE matcher.
17414 EGREP=$lt_EGREP
17415
17416 # A literal string matcher.
17417 FGREP=$lt_FGREP
17418
17419 # A BSD- or MS-compatible name lister.
17420 NM=$lt_NM
17421
17422 # Whether we need soft or hard links.
17423 LN_S=$lt_LN_S
17424
17425 # What is the maximum length of a command?
17426 max_cmd_len=$max_cmd_len
17427
17428 # Object file suffix (normally "o").
17429 objext=$ac_objext
17430
17431 # Executable file suffix (normally "").
17432 exeext=$exeext
17433
17434 # whether the shell understands "unset".
17435 lt_unset=$lt_unset
17436
17437 # turn spaces into newlines.
17438 SP2NL=$lt_lt_SP2NL
17439
17440 # turn newlines into spaces.
17441 NL2SP=$lt_lt_NL2SP
17442
17443 # convert \$build file names to \$host format.
17444 to_host_file_cmd=$lt_cv_to_host_file_cmd
17445
17446 # convert \$build files to toolchain format.
17447 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17448
17449 # An object symbol dumper.
17450 OBJDUMP=$lt_OBJDUMP
17451
17452 # Method to check whether dependent libraries are shared objects.
17453 deplibs_check_method=$lt_deplibs_check_method
17454
17455 # Command to use when deplibs_check_method = "file_magic".
17456 file_magic_cmd=$lt_file_magic_cmd
17457
17458 # How to find potential files when deplibs_check_method = "file_magic".
17459 file_magic_glob=$lt_file_magic_glob
17460
17461 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17462 want_nocaseglob=$lt_want_nocaseglob
17463
17464 # DLL creation program.
17465 DLLTOOL=$lt_DLLTOOL
17466
17467 # Command to associate shared and link libraries.
17468 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17469
17470 # The archiver.
17471 AR=$lt_AR
17472
17473 # Flags to create an archive.
17474 AR_FLAGS=$lt_AR_FLAGS
17475
17476 # How to feed a file listing to the archiver.
17477 archiver_list_spec=$lt_archiver_list_spec
17478
17479 # A symbol stripping program.
17480 STRIP=$lt_STRIP
17481
17482 # Commands used to install an old-style archive.
17483 RANLIB=$lt_RANLIB
17484 old_postinstall_cmds=$lt_old_postinstall_cmds
17485 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17486
17487 # Whether to use a lock for old archive extraction.
17488 lock_old_archive_extraction=$lock_old_archive_extraction
17489
17490 # A C compiler.
17491 LTCC=$lt_CC
17492
17493 # LTCC compiler flags.
17494 LTCFLAGS=$lt_CFLAGS
17495
17496 # Take the output of nm and produce a listing of raw symbols and C names.
17497 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17498
17499 # Transform the output of nm in a proper C declaration.
17500 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17501
17502 # Transform the output of nm in a C name address pair.
17503 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17504
17505 # Transform the output of nm in a C name address pair when lib prefix is needed.
17506 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17507
17508 # Specify filename containing input files for \$NM.
17509 nm_file_list_spec=$lt_nm_file_list_spec
17510
17511 # The root where to search for dependent libraries,and in which our libraries should be installed.
17512 lt_sysroot=$lt_sysroot
17513
17514 # The name of the directory that contains temporary libtool files.
17515 objdir=$objdir
17516
17517 # Used to examine libraries when file_magic_cmd begins with "file".
17518 MAGIC_CMD=$MAGIC_CMD
17519
17520 # Must we lock files when doing compilation?
17521 need_locks=$lt_need_locks
17522
17523 # Manifest tool.
17524 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17525
17526 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17527 DSYMUTIL=$lt_DSYMUTIL
17528
17529 # Tool to change global to local symbols on Mac OS X.
17530 NMEDIT=$lt_NMEDIT
17531
17532 # Tool to manipulate fat objects and archives on Mac OS X.
17533 LIPO=$lt_LIPO
17534
17535 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17536 OTOOL=$lt_OTOOL
17537
17538 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17539 OTOOL64=$lt_OTOOL64
17540
17541 # Old archive suffix (normally "a").
17542 libext=$libext
17543
17544 # Shared library suffix (normally ".so").
17545 shrext_cmds=$lt_shrext_cmds
17546
17547 # The commands to extract the exported symbol list from a shared archive.
17548 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17549
17550 # Variables whose values should be saved in libtool wrapper scripts and
17551 # restored at link time.
17552 variables_saved_for_relink=$lt_variables_saved_for_relink
17553
17554 # Do we need the "lib" prefix for modules?
17555 need_lib_prefix=$need_lib_prefix
17556
17557 # Do we need a version for libraries?
17558 need_version=$need_version
17559
17560 # Library versioning type.
17561 version_type=$version_type
17562
17563 # Shared library runtime path variable.
17564 runpath_var=$runpath_var
17565
17566 # Shared library path variable.
17567 shlibpath_var=$shlibpath_var
17568
17569 # Is shlibpath searched before the hard-coded library search path?
17570 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17571
17572 # Format of library name prefix.
17573 libname_spec=$lt_libname_spec
17574
17575 # List of archive names. First name is the real one, the rest are links.
17576 # The last name is the one that the linker finds with -lNAME
17577 library_names_spec=$lt_library_names_spec
17578
17579 # The coded name of the library, if different from the real name.
17580 soname_spec=$lt_soname_spec
17581
17582 # Permission mode override for installation of shared libraries.
17583 install_override_mode=$lt_install_override_mode
17584
17585 # Command to use after installation of a shared archive.
17586 postinstall_cmds=$lt_postinstall_cmds
17587
17588 # Command to use after uninstallation of a shared archive.
17589 postuninstall_cmds=$lt_postuninstall_cmds
17590
17591 # Commands used to finish a libtool library installation in a directory.
17592 finish_cmds=$lt_finish_cmds
17593
17594 # As "finish_cmds", except a single script fragment to be evaled but
17595 # not shown.
17596 finish_eval=$lt_finish_eval
17597
17598 # Whether we should hardcode library paths into libraries.
17599 hardcode_into_libs=$hardcode_into_libs
17600
17601 # Compile-time system search path for libraries.
17602 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17603
17604 # Run-time system search path for libraries.
17605 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17606
17607 # Whether dlopen is supported.
17608 dlopen_support=$enable_dlopen
17609
17610 # Whether dlopen of programs is supported.
17611 dlopen_self=$enable_dlopen_self
17612
17613 # Whether dlopen of statically linked programs is supported.
17614 dlopen_self_static=$enable_dlopen_self_static
17615
17616 # Commands to strip libraries.
17617 old_striplib=$lt_old_striplib
17618 striplib=$lt_striplib
17619
17620
17621 # The linker used to build libraries.
17622 LD=$lt_LD
17623
17624 # How to create reloadable object files.
17625 reload_flag=$lt_reload_flag
17626 reload_cmds=$lt_reload_cmds
17627
17628 # Commands used to build an old-style archive.
17629 old_archive_cmds=$lt_old_archive_cmds
17630
17631 # A language specific compiler.
17632 CC=$lt_compiler
17633
17634 # Is the compiler the GNU compiler?
17635 with_gcc=$GCC
17636
17637 # Compiler flag to turn off builtin functions.
17638 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17639
17640 # Additional compiler flags for building library objects.
17641 pic_flag=$lt_lt_prog_compiler_pic
17642
17643 # How to pass a linker flag through the compiler.
17644 wl=$lt_lt_prog_compiler_wl
17645
17646 # Compiler flag to prevent dynamic linking.
17647 link_static_flag=$lt_lt_prog_compiler_static
17648
17649 # Does compiler simultaneously support -c and -o options?
17650 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17651
17652 # Whether or not to add -lc for building shared libraries.
17653 build_libtool_need_lc=$archive_cmds_need_lc
17654
17655 # Whether or not to disallow shared libs when runtime libs are static.
17656 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17657
17658 # Compiler flag to allow reflexive dlopens.
17659 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17660
17661 # Compiler flag to generate shared objects directly from archives.
17662 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17663
17664 # Whether the compiler copes with passing no objects directly.
17665 compiler_needs_object=$lt_compiler_needs_object
17666
17667 # Create an old-style archive from a shared archive.
17668 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17669
17670 # Create a temporary old-style archive to link instead of a shared archive.
17671 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17672
17673 # Commands used to build a shared archive.
17674 archive_cmds=$lt_archive_cmds
17675 archive_expsym_cmds=$lt_archive_expsym_cmds
17676
17677 # Commands used to build a loadable module if different from building
17678 # a shared archive.
17679 module_cmds=$lt_module_cmds
17680 module_expsym_cmds=$lt_module_expsym_cmds
17681
17682 # Whether we are building with GNU ld or not.
17683 with_gnu_ld=$lt_with_gnu_ld
17684
17685 # Flag that allows shared libraries with undefined symbols to be built.
17686 allow_undefined_flag=$lt_allow_undefined_flag
17687
17688 # Flag that enforces no undefined symbols.
17689 no_undefined_flag=$lt_no_undefined_flag
17690
17691 # Flag to hardcode \$libdir into a binary during linking.
17692 # This must work even if \$libdir does not exist
17693 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17694
17695 # Whether we need a single "-rpath" flag with a separated argument.
17696 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17697
17698 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17699 # DIR into the resulting binary.
17700 hardcode_direct=$hardcode_direct
17701
17702 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17703 # DIR into the resulting binary and the resulting library dependency is
17704 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17705 # library is relocated.
17706 hardcode_direct_absolute=$hardcode_direct_absolute
17707
17708 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17709 # into the resulting binary.
17710 hardcode_minus_L=$hardcode_minus_L
17711
17712 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17713 # into the resulting binary.
17714 hardcode_shlibpath_var=$hardcode_shlibpath_var
17715
17716 # Set to "yes" if building a shared library automatically hardcodes DIR
17717 # into the library and all subsequent libraries and executables linked
17718 # against it.
17719 hardcode_automatic=$hardcode_automatic
17720
17721 # Set to yes if linker adds runtime paths of dependent libraries
17722 # to runtime path list.
17723 inherit_rpath=$inherit_rpath
17724
17725 # Whether libtool must link a program against all its dependency libraries.
17726 link_all_deplibs=$link_all_deplibs
17727
17728 # Set to "yes" if exported symbols are required.
17729 always_export_symbols=$always_export_symbols
17730
17731 # The commands to list exported symbols.
17732 export_symbols_cmds=$lt_export_symbols_cmds
17733
17734 # Symbols that should not be listed in the preloaded symbols.
17735 exclude_expsyms=$lt_exclude_expsyms
17736
17737 # Symbols that must always be exported.
17738 include_expsyms=$lt_include_expsyms
17739
17740 # Commands necessary for linking programs (against libraries) with templates.
17741 prelink_cmds=$lt_prelink_cmds
17742
17743 # Commands necessary for finishing linking programs.
17744 postlink_cmds=$lt_postlink_cmds
17745
17746 # Specify filename containing input files.
17747 file_list_spec=$lt_file_list_spec
17748
17749 # How to hardcode a shared library path into an executable.
17750 hardcode_action=$hardcode_action
17751
17752 # The directories searched by this compiler when creating a shared library.
17753 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17754
17755 # Dependencies to place before and after the objects being linked to
17756 # create a shared library.
17757 predep_objects=$lt_predep_objects
17758 postdep_objects=$lt_postdep_objects
17759 predeps=$lt_predeps
17760 postdeps=$lt_postdeps
17761
17762 # The library search path used internally by the compiler when linking
17763 # a shared library.
17764 compiler_lib_search_path=$lt_compiler_lib_search_path
17765
17766 # ### END LIBTOOL CONFIG
17767
17768 _LT_EOF
17769
17770 case $host_os in
17771 aix3*)
17772 cat <<\_LT_EOF >> "$cfgfile"
17773 # AIX sometimes has problems with the GCC collect2 program. For some
17774 # reason, if we set the COLLECT_NAMES environment variable, the problems
17775 # vanish in a puff of smoke.
17776 if test "X${COLLECT_NAMES+set}" != Xset; then
17777 COLLECT_NAMES=
17778 export COLLECT_NAMES
17779 fi
17780 _LT_EOF
17781 ;;
17782 esac
17783
17784
17785 ltmain="$ac_aux_dir/ltmain.sh"
17786
17787
17788 # We use sed instead of cat because bash on DJGPP gets confused if
17789 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17790 # text mode, it properly converts lines to CR/LF. This bash problem
17791 # is reportedly fixed, but why not run on old versions too?
17792 sed '$q' "$ltmain" >> "$cfgfile" \
17793 || (rm -f "$cfgfile"; exit 1)
17794
17795 if test x"$xsi_shell" = xyes; then
17796 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17797 func_dirname ()\
17798 {\
17799 \ case ${1} in\
17800 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17801 \ * ) func_dirname_result="${3}" ;;\
17802 \ esac\
17803 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17804 && mv -f "$cfgfile.tmp" "$cfgfile" \
17805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17806 test 0 -eq $? || _lt_function_replace_fail=:
17807
17808
17809 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17810 func_basename ()\
17811 {\
17812 \ func_basename_result="${1##*/}"\
17813 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17814 && mv -f "$cfgfile.tmp" "$cfgfile" \
17815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17816 test 0 -eq $? || _lt_function_replace_fail=:
17817
17818
17819 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17820 func_dirname_and_basename ()\
17821 {\
17822 \ case ${1} in\
17823 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17824 \ * ) func_dirname_result="${3}" ;;\
17825 \ esac\
17826 \ func_basename_result="${1##*/}"\
17827 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17828 && mv -f "$cfgfile.tmp" "$cfgfile" \
17829 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17830 test 0 -eq $? || _lt_function_replace_fail=:
17831
17832
17833 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17834 func_stripname ()\
17835 {\
17836 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17837 \ # positional parameters, so assign one to ordinary parameter first.\
17838 \ func_stripname_result=${3}\
17839 \ func_stripname_result=${func_stripname_result#"${1}"}\
17840 \ func_stripname_result=${func_stripname_result%"${2}"}\
17841 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17842 && mv -f "$cfgfile.tmp" "$cfgfile" \
17843 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17844 test 0 -eq $? || _lt_function_replace_fail=:
17845
17846
17847 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17848 func_split_long_opt ()\
17849 {\
17850 \ func_split_long_opt_name=${1%%=*}\
17851 \ func_split_long_opt_arg=${1#*=}\
17852 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17853 && mv -f "$cfgfile.tmp" "$cfgfile" \
17854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17855 test 0 -eq $? || _lt_function_replace_fail=:
17856
17857
17858 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17859 func_split_short_opt ()\
17860 {\
17861 \ func_split_short_opt_arg=${1#??}\
17862 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17863 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17864 && mv -f "$cfgfile.tmp" "$cfgfile" \
17865 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17866 test 0 -eq $? || _lt_function_replace_fail=:
17867
17868
17869 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17870 func_lo2o ()\
17871 {\
17872 \ case ${1} in\
17873 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17874 \ *) func_lo2o_result=${1} ;;\
17875 \ esac\
17876 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17877 && mv -f "$cfgfile.tmp" "$cfgfile" \
17878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17879 test 0 -eq $? || _lt_function_replace_fail=:
17880
17881
17882 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17883 func_xform ()\
17884 {\
17885 func_xform_result=${1%.*}.lo\
17886 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17887 && mv -f "$cfgfile.tmp" "$cfgfile" \
17888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17889 test 0 -eq $? || _lt_function_replace_fail=:
17890
17891
17892 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17893 func_arith ()\
17894 {\
17895 func_arith_result=$(( $* ))\
17896 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17897 && mv -f "$cfgfile.tmp" "$cfgfile" \
17898 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17899 test 0 -eq $? || _lt_function_replace_fail=:
17900
17901
17902 sed -e '/^func_len ()$/,/^} # func_len /c\
17903 func_len ()\
17904 {\
17905 func_len_result=${#1}\
17906 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17907 && mv -f "$cfgfile.tmp" "$cfgfile" \
17908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17909 test 0 -eq $? || _lt_function_replace_fail=:
17910
17911 fi
17912
17913 if test x"$lt_shell_append" = xyes; then
17914 sed -e '/^func_append ()$/,/^} # func_append /c\
17915 func_append ()\
17916 {\
17917 eval "${1}+=\\${2}"\
17918 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17919 && mv -f "$cfgfile.tmp" "$cfgfile" \
17920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17921 test 0 -eq $? || _lt_function_replace_fail=:
17922
17923
17924 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17925 func_append_quoted ()\
17926 {\
17927 \ func_quote_for_eval "${2}"\
17928 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17929 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17930 && mv -f "$cfgfile.tmp" "$cfgfile" \
17931 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17932 test 0 -eq $? || _lt_function_replace_fail=:
17933
17934
17935 # Save a `func_append' function call where possible by direct use of '+='
17936 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17937 && mv -f "$cfgfile.tmp" "$cfgfile" \
17938 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17939 test 0 -eq $? || _lt_function_replace_fail=:
17940 else
17941 # Save a `func_append' function call even when '+=' is not available
17942 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17943 && mv -f "$cfgfile.tmp" "$cfgfile" \
17944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17945 test 0 -eq $? || _lt_function_replace_fail=:
17946 fi
17947
17948 if test x"$_lt_function_replace_fail" = x":"; then
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17950 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17951 fi
17952
17953
17954 mv -f "$cfgfile" "$ofile" ||
17955 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17956 chmod +x "$ofile"
17957
17958
17959 cat <<_LT_EOF >> "$ofile"
17960
17961 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17962
17963 # The linker used to build libraries.
17964 LD=$lt_LD_CXX
17965
17966 # How to create reloadable object files.
17967 reload_flag=$lt_reload_flag_CXX
17968 reload_cmds=$lt_reload_cmds_CXX
17969
17970 # Commands used to build an old-style archive.
17971 old_archive_cmds=$lt_old_archive_cmds_CXX
17972
17973 # A language specific compiler.
17974 CC=$lt_compiler_CXX
17975
17976 # Is the compiler the GNU compiler?
17977 with_gcc=$GCC_CXX
17978
17979 # Compiler flag to turn off builtin functions.
17980 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17981
17982 # Additional compiler flags for building library objects.
17983 pic_flag=$lt_lt_prog_compiler_pic_CXX
17984
17985 # How to pass a linker flag through the compiler.
17986 wl=$lt_lt_prog_compiler_wl_CXX
17987
17988 # Compiler flag to prevent dynamic linking.
17989 link_static_flag=$lt_lt_prog_compiler_static_CXX
17990
17991 # Does compiler simultaneously support -c and -o options?
17992 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17993
17994 # Whether or not to add -lc for building shared libraries.
17995 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17996
17997 # Whether or not to disallow shared libs when runtime libs are static.
17998 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17999
18000 # Compiler flag to allow reflexive dlopens.
18001 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18002
18003 # Compiler flag to generate shared objects directly from archives.
18004 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18005
18006 # Whether the compiler copes with passing no objects directly.
18007 compiler_needs_object=$lt_compiler_needs_object_CXX
18008
18009 # Create an old-style archive from a shared archive.
18010 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18011
18012 # Create a temporary old-style archive to link instead of a shared archive.
18013 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18014
18015 # Commands used to build a shared archive.
18016 archive_cmds=$lt_archive_cmds_CXX
18017 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18018
18019 # Commands used to build a loadable module if different from building
18020 # a shared archive.
18021 module_cmds=$lt_module_cmds_CXX
18022 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18023
18024 # Whether we are building with GNU ld or not.
18025 with_gnu_ld=$lt_with_gnu_ld_CXX
18026
18027 # Flag that allows shared libraries with undefined symbols to be built.
18028 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18029
18030 # Flag that enforces no undefined symbols.
18031 no_undefined_flag=$lt_no_undefined_flag_CXX
18032
18033 # Flag to hardcode \$libdir into a binary during linking.
18034 # This must work even if \$libdir does not exist
18035 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18036
18037 # Whether we need a single "-rpath" flag with a separated argument.
18038 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18039
18040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18041 # DIR into the resulting binary.
18042 hardcode_direct=$hardcode_direct_CXX
18043
18044 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18045 # DIR into the resulting binary and the resulting library dependency is
18046 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18047 # library is relocated.
18048 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
18049
18050 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18051 # into the resulting binary.
18052 hardcode_minus_L=$hardcode_minus_L_CXX
18053
18054 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18055 # into the resulting binary.
18056 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18057
18058 # Set to "yes" if building a shared library automatically hardcodes DIR
18059 # into the library and all subsequent libraries and executables linked
18060 # against it.
18061 hardcode_automatic=$hardcode_automatic_CXX
18062
18063 # Set to yes if linker adds runtime paths of dependent libraries
18064 # to runtime path list.
18065 inherit_rpath=$inherit_rpath_CXX
18066
18067 # Whether libtool must link a program against all its dependency libraries.
18068 link_all_deplibs=$link_all_deplibs_CXX
18069
18070 # Set to "yes" if exported symbols are required.
18071 always_export_symbols=$always_export_symbols_CXX
18072
18073 # The commands to list exported symbols.
18074 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18075
18076 # Symbols that should not be listed in the preloaded symbols.
18077 exclude_expsyms=$lt_exclude_expsyms_CXX
18078
18079 # Symbols that must always be exported.
18080 include_expsyms=$lt_include_expsyms_CXX
18081
18082 # Commands necessary for linking programs (against libraries) with templates.
18083 prelink_cmds=$lt_prelink_cmds_CXX
18084
18085 # Commands necessary for finishing linking programs.
18086 postlink_cmds=$lt_postlink_cmds_CXX
18087
18088 # Specify filename containing input files.
18089 file_list_spec=$lt_file_list_spec_CXX
18090
18091 # How to hardcode a shared library path into an executable.
18092 hardcode_action=$hardcode_action_CXX
18093
18094 # The directories searched by this compiler when creating a shared library.
18095 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
18096
18097 # Dependencies to place before and after the objects being linked to
18098 # create a shared library.
18099 predep_objects=$lt_predep_objects_CXX
18100 postdep_objects=$lt_postdep_objects_CXX
18101 predeps=$lt_predeps_CXX
18102 postdeps=$lt_postdeps_CXX
18103
18104 # The library search path used internally by the compiler when linking
18105 # a shared library.
18106 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18107
18108 # ### END LIBTOOL TAG CONFIG: CXX
18109 _LT_EOF
18110
18111 ;;
18112
18113 esac
18114 done # for ac_tag
18115
18116
18117 as_fn_exit 0
18118 _ACEOF
18119 ac_clean_files=$ac_clean_files_save
18120
18121 test $ac_write_fail = 0 ||
18122 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18123
18124
18125 # configure is writing to config.log, and then calls config.status.
18126 # config.status does its own redirection, appending to config.log.
18127 # Unfortunately, on DOS this fails, as config.log is still kept open
18128 # by configure, so config.status won't be able to write to it; its
18129 # output is simply discarded. So we exec the FD to /dev/null,
18130 # effectively closing config.log, so it can be properly (re)opened and
18131 # appended to by config.status. When coming back to configure, we
18132 # need to make the FD available again.
18133 if test "$no_create" != yes; then
18134 ac_cs_success=:
18135 ac_config_status_args=
18136 test "$silent" = yes &&
18137 ac_config_status_args="$ac_config_status_args --quiet"
18138 exec 5>/dev/null
18139 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18140 exec 5>>config.log
18141 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18142 # would make configure fail if this is the last instruction.
18143 $ac_cs_success || as_fn_exit 1
18144 fi
18145 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18147 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18148 fi
18149