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 libsharp 1.0.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libsharp'
589 PACKAGE_TARNAME='libsharp'
590 PACKAGE_VERSION='1.0.0'
591 PACKAGE_STRING='libsharp 1.0.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_subst_vars='am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 AM_LDFLAGS
636 AM_CFLAGS
637 pkgconfig_libfile
638 pkgconfig_libdir
639 HAVE_MULTIARCH_FALSE
640 HAVE_MULTIARCH_TRUE
641 OPENMP_CFLAGS
642 CPP
643 LT_SYS_LIBRARY_PATH
644 OTOOL64
645 OTOOL
646 LIPO
647 NMEDIT
648 DSYMUTIL
649 MANIFEST_TOOL
650 RANLIB
651 DLLTOOL
652 OBJDUMP
653 LN_S
654 NM
655 ac_ct_DUMPBIN
656 DUMPBIN
657 LD
658 FGREP
659 EGREP
660 GREP
661 SED
662 host_os
663 host_vendor
664 host_cpu
665 host
666 build_os
667 build_vendor
668 build_cpu
669 build
670 LIBTOOL
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 ac_ct_AR
688 AR
689 MAINT
690 MAINTAINER_MODE_FALSE
691 MAINTAINER_MODE_TRUE
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__untar
697 am__tar
698 AMTAR
699 am__leading_dot
700 SET_MAKE
701 AWK
702 mkdir_p
703 MKDIR_P
704 INSTALL_STRIP_PROGRAM
705 STRIP
706 install_sh
707 MAKEINFO
708 AUTOHEADER
709 AUTOMAKE
710 AUTOCONF
711 ACLOCAL
712 VERSION
713 PACKAGE
714 CYGPATH_W
715 am__isrc
716 INSTALL_DATA
717 INSTALL_SCRIPT
718 INSTALL_PROGRAM
719 target_alias
720 host_alias
721 build_alias
722 LIBS
723 ECHO_T
724 ECHO_N
725 ECHO_C
726 DEFS
727 mandir
728 localedir
729 libdir
730 psdir
731 pdfdir
732 dvidir
733 htmldir
734 infodir
735 docdir
736 oldincludedir
737 includedir
738 runstatedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL
758 am__quote'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 enable_silent_rules
763 enable_maintainer_mode
764 enable_dependency_tracking
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_aix_soname
770 with_gnu_ld
771 with_sysroot
772 enable_libtool_lock
773 enable_openmp
774 '
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
778 CC
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
783 LT_SYS_LIBRARY_PATH
784 CPP'
785
786
787 # Initialize some variables set by options.
788 ac_init_help=
789 ac_init_version=false
790 ac_unrecognized_opts=
791 ac_unrecognized_sep=
792 # The variables have the same names as the options, with
793 # dashes changed to underlines.
794 cache_file=/dev/null
795 exec_prefix=NONE
796 no_create=
797 no_recursion=
798 prefix=NONE
799 program_prefix=NONE
800 program_suffix=NONE
801 program_transform_name=s,x,x,
802 silent=
803 site=
804 srcdir=
805 verbose=
806 x_includes=NONE
807 x_libraries=NONE
808
809 # Installation directory options.
810 # These are left unexpanded so users can "make install exec_prefix=/foo"
811 # and all the variables that are supposed to be based on exec_prefix
812 # by default will actually change.
813 # Use braces instead of parens because sh, perl, etc. also accept them.
814 # (The list follows the same order as the GNU Coding Standards.)
815 bindir='${exec_prefix}/bin'
816 sbindir='${exec_prefix}/sbin'
817 libexecdir='${exec_prefix}/libexec'
818 datarootdir='${prefix}/share'
819 datadir='${datarootdir}'
820 sysconfdir='${prefix}/etc'
821 sharedstatedir='${prefix}/com'
822 localstatedir='${prefix}/var'
823 runstatedir='${localstatedir}/run'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
845 fi
846
847 case $ac_option in
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *=) ac_optarg= ;;
850 *) ac_optarg=yes ;;
851 esac
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
863
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
878
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
883
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -runstatedir | --runstatedir | --runstatedi | --runstated \
1077 | --runstate | --runstat | --runsta | --runst | --runs \
1078 | --run | --ru | --r)
1079 ac_prev=runstatedir ;;
1080 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1081 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1082 | --run=* | --ru=* | --r=*)
1083 runstatedir=$ac_optarg ;;
1084
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1086 ac_prev=sbindir ;;
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1088 | --sbi=* | --sb=*)
1089 sbindir=$ac_optarg ;;
1090
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1094 | --sha | --sh)
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1099 | --sha=* | --sh=*)
1100 sharedstatedir=$ac_optarg ;;
1101
1102 -site | --site | --sit)
1103 ac_prev=site ;;
1104 -site=* | --site=* | --sit=*)
1105 site=$ac_optarg ;;
1106
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1108 ac_prev=srcdir ;;
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1111
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1118
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1123
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1125 verbose=yes ;;
1126
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1129
1130 -with-* | --with-*)
1131 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134 as_fn_error $? "invalid package name: $ac_useropt"
1135 ac_useropt_orig=$ac_useropt
1136 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137 case $ac_user_opts in
1138 *"
1139 "with_$ac_useropt"
1140 "*) ;;
1141 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1142 ac_unrecognized_sep=', ';;
1143 esac
1144 eval with_$ac_useropt=\$ac_optarg ;;
1145
1146 -without-* | --without-*)
1147 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1150 as_fn_error $? "invalid package name: $ac_useropt"
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "with_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval with_$ac_useropt=no ;;
1161
1162 --x)
1163 # Obsolete; use --with-x.
1164 with_x=yes ;;
1165
1166 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1167 | --x-incl | --x-inc | --x-in | --x-i)
1168 ac_prev=x_includes ;;
1169 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1170 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1171 x_includes=$ac_optarg ;;
1172
1173 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1174 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1175 ac_prev=x_libraries ;;
1176 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1177 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1178 x_libraries=$ac_optarg ;;
1179
1180 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1181 Try \`$0 --help' for more information"
1182 ;;
1183
1184 *=*)
1185 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1186 # Reject names that are not valid shell variable names.
1187 case $ac_envvar in #(
1188 '' | [0-9]* | *[!_$as_cr_alnum]* )
1189 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1190 esac
1191 eval $ac_envvar=\$ac_optarg
1192 export $ac_envvar ;;
1193
1194 *)
1195 # FIXME: should be removed in autoconf 3.0.
1196 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1197 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1199 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1200 ;;
1201
1202 esac
1203 done
1204
1205 if test -n "$ac_prev"; then
1206 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1207 as_fn_error $? "missing argument to $ac_option"
1208 fi
1209
1210 if test -n "$ac_unrecognized_opts"; then
1211 case $enable_option_checking in
1212 no) ;;
1213 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1214 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1215 esac
1216 fi
1217
1218 # Check all directory arguments for consistency.
1219 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1220 datadir sysconfdir sharedstatedir localstatedir includedir \
1221 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1222 libdir localedir mandir runstatedir
1223 do
1224 eval ac_val=\$$ac_var
1225 # Remove trailing slashes.
1226 case $ac_val in
1227 */ )
1228 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1229 eval $ac_var=\$ac_val;;
1230 esac
1231 # Be sure to have absolute directory names.
1232 case $ac_val in
1233 [\\/$]* | ?:[\\/]* ) continue;;
1234 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1235 esac
1236 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1237 done
1238
1239 # There might be people who depend on the old broken behavior: `$host'
1240 # used to hold the argument of --host etc.
1241 # FIXME: To remove some day.
1242 build=$build_alias
1243 host=$host_alias
1244 target=$target_alias
1245
1246 # FIXME: To remove some day.
1247 if test "x$host_alias" != x; then
1248 if test "x$build_alias" = x; then
1249 cross_compiling=maybe
1250 elif test "x$build_alias" != "x$host_alias"; then
1251 cross_compiling=yes
1252 fi
1253 fi
1254
1255 ac_tool_prefix=
1256 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1257
1258 test "$silent" = yes && exec 6>/dev/null
1259
1260
1261 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1262 ac_ls_di=`ls -di .` &&
1263 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1264 as_fn_error $? "working directory cannot be determined"
1265 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1266 as_fn_error $? "pwd does not report name of working directory"
1267
1268
1269 # Find the source files, if location was not specified.
1270 if test -z "$srcdir"; then
1271 ac_srcdir_defaulted=yes
1272 # Try the directory containing this script, then the parent directory.
1273 ac_confdir=`$as_dirname -- "$as_myself" ||
1274 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1275 X"$as_myself" : 'X\(//\)[^/]' \| \
1276 X"$as_myself" : 'X\(//\)$' \| \
1277 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1278 $as_echo X"$as_myself" |
1279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1280 s//\1/
1281 q
1282 }
1283 /^X\(\/\/\)[^/].*/{
1284 s//\1/
1285 q
1286 }
1287 /^X\(\/\/\)$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\).*/{
1292 s//\1/
1293 q
1294 }
1295 s/.*/./; q'`
1296 srcdir=$ac_confdir
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 srcdir=..
1299 fi
1300 else
1301 ac_srcdir_defaulted=no
1302 fi
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1305 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1306 fi
1307 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1308 ac_abs_confdir=`(
1309 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1310 pwd)`
1311 # When building in place, set srcdir=.
1312 if test "$ac_abs_confdir" = "$ac_pwd"; then
1313 srcdir=.
1314 fi
1315 # Remove unnecessary trailing slashes from srcdir.
1316 # Double slashes in file names in object file debugging info
1317 # mess up M-x gdb in Emacs.
1318 case $srcdir in
1319 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1320 esac
1321 for ac_var in $ac_precious_vars; do
1322 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_env_${ac_var}_value=\$${ac_var}
1324 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1325 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1326 done
1327
1328 #
1329 # Report the --help message.
1330 #
1331 if test "$ac_init_help" = "long"; then
1332 # Omit some internal or obsolete options to make the list less imposing.
1333 # This message is too long to be a string in the A/UX 3.1 sh.
1334 cat <<_ACEOF
1335 \`configure' configures libsharp 1.0.0 to adapt to many kinds of systems.
1336
1337 Usage: $0 [OPTION]... [VAR=VALUE]...
1338
1339 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1340 VAR=VALUE. See below for descriptions of some of the useful variables.
1341
1342 Defaults for the options are specified in brackets.
1343
1344 Configuration:
1345 -h, --help display this help and exit
1346 --help=short display options specific to this package
1347 --help=recursive display the short help of all the included packages
1348 -V, --version display version information and exit
1349 -q, --quiet, --silent do not print \`checking ...' messages
1350 --cache-file=FILE cache test results in FILE [disabled]
1351 -C, --config-cache alias for \`--cache-file=config.cache'
1352 -n, --no-create do not create output files
1353 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1354
1355 Installation directories:
1356 --prefix=PREFIX install architecture-independent files in PREFIX
1357 [$ac_default_prefix]
1358 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1359 [PREFIX]
1360
1361 By default, \`make install' will install all the files in
1362 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1363 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1364 for instance \`--prefix=\$HOME'.
1365
1366 For better control, use the options below.
1367
1368 Fine tuning of the installation directories:
1369 --bindir=DIR user executables [EPREFIX/bin]
1370 --sbindir=DIR system admin executables [EPREFIX/sbin]
1371 --libexecdir=DIR program executables [EPREFIX/libexec]
1372 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1373 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1374 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1375 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1376 --libdir=DIR object code libraries [EPREFIX/lib]
1377 --includedir=DIR C header files [PREFIX/include]
1378 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1379 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1380 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1381 --infodir=DIR info documentation [DATAROOTDIR/info]
1382 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1383 --mandir=DIR man documentation [DATAROOTDIR/man]
1384 --docdir=DIR documentation root [DATAROOTDIR/doc/libsharp]
1385 --htmldir=DIR html documentation [DOCDIR]
1386 --dvidir=DIR dvi documentation [DOCDIR]
1387 --pdfdir=DIR pdf documentation [DOCDIR]
1388 --psdir=DIR ps documentation [DOCDIR]
1389 _ACEOF
1390
1391 cat <<\_ACEOF
1392
1393 Program names:
1394 --program-prefix=PREFIX prepend PREFIX to installed program names
1395 --program-suffix=SUFFIX append SUFFIX to installed program names
1396 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1397
1398 System types:
1399 --build=BUILD configure for building on BUILD [guessed]
1400 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1401 _ACEOF
1402 fi
1403
1404 if test -n "$ac_init_help"; then
1405 case $ac_init_help in
1406 short | recursive ) echo "Configuration of libsharp 1.0.0:";;
1407 esac
1408 cat <<\_ACEOF
1409
1410 Optional Features:
1411 --disable-option-checking ignore unrecognized --enable/--with options
1412 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1413 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1414 --enable-silent-rules less verbose build output (undo: "make V=1")
1415 --disable-silent-rules verbose build output (undo: "make V=0")
1416 --disable-maintainer-mode
1417 disable make rules and dependencies not useful (and
1418 sometimes confusing) to the casual installer
1419 --enable-dependency-tracking
1420 do not reject slow dependency extractors
1421 --disable-dependency-tracking
1422 speeds up one-time build
1423 --enable-shared[=PKGS] build shared libraries [default=yes]
1424 --enable-static[=PKGS] build static libraries [default=yes]
1425 --enable-fast-install[=PKGS]
1426 optimize for fast installation [default=yes]
1427 --disable-libtool-lock avoid locking (might break parallel builds)
1428 --disable-openmp do not use OpenMP
1429
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-aix-soname=aix|svr4|both
1436 shared library versioning (aka "SONAME") variant to
1437 provide on AIX, [default=aix].
1438 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1439 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1440 compiler's sysroot if not specified).
1441
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 LT_SYS_LIBRARY_PATH
1451 User-defined run-time library search path.
1452 CPP C preprocessor
1453
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1456
1457 Report bugs to the package provider.
1458 _ACEOF
1459 ac_status=$?
1460 fi
1461
1462 if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1469
1470 case "$ac_dir" in
1471 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *)
1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480 esac
1481 ac_abs_top_builddir=$ac_pwd
1482 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483 # for backward compatibility:
1484 ac_top_builddir=$ac_top_build_prefix
1485
1486 case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499 esac
1500 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1510 else
1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1514 done
1515 fi
1516
1517 test -n "$ac_init_help" && exit $ac_status
1518 if $ac_init_version; then
1519 cat <<\_ACEOF
1520 libsharp configure 1.0.0
1521 generated by GNU Autoconf 2.69
1522
1523 Copyright (C) 2012 Free Software Foundation, Inc.
1524 This configure script is free software; the Free Software Foundation
1525 gives unlimited permission to copy, distribute and modify it.
1526 _ACEOF
1527 exit
1528 fi
1529
1530 ## ------------------------ ##
1531 ## Autoconf initialization. ##
1532 ## ------------------------ ##
1533
1534 # ac_fn_c_try_compile LINENO
1535 # --------------------------
1536 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1537 ac_fn_c_try_compile ()
1538 {
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542 case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545 esac
1546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547 $as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561 else
1562 $as_echo "$as_me: failed program was:" >&5
1563 sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566 fi
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1569
1570 } # ac_fn_c_try_compile
1571
1572 # ac_fn_c_try_link LINENO
1573 # -----------------------
1574 # Try to link conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_link ()
1576 {
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext conftest$ac_exeext
1579 if { { ac_try="$ac_link"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_link") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest$ac_exeext && {
1598 test "$cross_compiling" = yes ||
1599 test -x conftest$ac_exeext
1600 }; then :
1601 ac_retval=0
1602 else
1603 $as_echo "$as_me: failed program was:" >&5
1604 sed 's/^/| /' conftest.$ac_ext >&5
1605
1606 ac_retval=1
1607 fi
1608 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1609 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1610 # interfere with the next link command; also delete a directory that is
1611 # left behind by Apple's compiler. We do this before executing the actions.
1612 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_link
1617
1618 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1619 # -------------------------------------------------------
1620 # Tests whether HEADER exists and can be compiled using the include files in
1621 # INCLUDES, setting the cache variable VAR accordingly.
1622 ac_fn_c_check_header_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1626 $as_echo_n "checking for $2... " >&6; }
1627 if eval \${$3+:} false; then :
1628 $as_echo_n "(cached) " >&6
1629 else
1630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1631 /* end confdefs.h. */
1632 $4
1633 #include <$2>
1634 _ACEOF
1635 if ac_fn_c_try_compile "$LINENO"; then :
1636 eval "$3=yes"
1637 else
1638 eval "$3=no"
1639 fi
1640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1641 fi
1642 eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644 $as_echo "$ac_res" >&6; }
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646
1647 } # ac_fn_c_check_header_compile
1648
1649 # ac_fn_c_try_cpp LINENO
1650 # ----------------------
1651 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_cpp ()
1653 {
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if { { ac_try="$ac_cpp conftest.$ac_ext"
1656 case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1663 ac_status=$?
1664 if test -s conftest.err; then
1665 grep -v '^ *+' conftest.err >conftest.er1
1666 cat conftest.er1 >&5
1667 mv -f conftest.er1 conftest.err
1668 fi
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } > conftest.i && {
1671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1672 test ! -s conftest.err
1673 }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1
1680 fi
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682 as_fn_set_status $ac_retval
1683
1684 } # ac_fn_c_try_cpp
1685
1686 # ac_fn_c_try_run LINENO
1687 # ----------------------
1688 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1689 # that executables *can* be run.
1690 ac_fn_c_try_run ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_link"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_link") 2>&5
1701 ac_status=$?
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1704 { { case "(($ac_try" in
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1707 esac
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_try") 2>&5
1711 ac_status=$?
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; }; }; then :
1714 ac_retval=0
1715 else
1716 $as_echo "$as_me: program exited with status $ac_status" >&5
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=$ac_status
1721 fi
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_run
1727
1728 # ac_fn_c_check_func LINENO FUNC VAR
1729 # ----------------------------------
1730 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1731 ac_fn_c_check_func ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \${$3+:} false; then :
1737 $as_echo_n "(cached) " >&6
1738 else
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1741 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1743 #define $2 innocuous_$2
1744
1745 /* System header to define __stub macros and hopefully few prototypes,
1746 which can conflict with char $2 (); below.
1747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1748 <limits.h> exists even on freestanding compilers. */
1749
1750 #ifdef __STDC__
1751 # include <limits.h>
1752 #else
1753 # include <assert.h>
1754 #endif
1755
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 ();
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main ()
1774 {
1775 return $2 ();
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"; then :
1781 eval "$3=yes"
1782 else
1783 eval "$3=no"
1784 fi
1785 rm -f core conftest.err conftest.$ac_objext \
1786 conftest$ac_exeext conftest.$ac_ext
1787 fi
1788 eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1792
1793 } # ac_fn_c_check_func
1794 cat >config.log <<_ACEOF
1795 This file contains any messages produced by compilers while
1796 running configure, to aid debugging if configure makes a mistake.
1797
1798 It was created by libsharp $as_me 1.0.0, which was
1799 generated by GNU Autoconf 2.69. Invocation command line was
1800
1801 $ $0 $@
1802
1803 _ACEOF
1804 exec 5>>config.log
1805 {
1806 cat <<_ASUNAME
1807 ## --------- ##
1808 ## Platform. ##
1809 ## --------- ##
1810
1811 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1812 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1813 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1814 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1815 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1816
1817 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1818 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1819
1820 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1821 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1822 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1823 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1824 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1825 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1826 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1827
1828 _ASUNAME
1829
1830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1831 for as_dir in $PATH
1832 do
1833 IFS=$as_save_IFS
1834 test -z "$as_dir" && as_dir=.
1835 $as_echo "PATH: $as_dir"
1836 done
1837 IFS=$as_save_IFS
1838
1839 } >&5
1840
1841 cat >&5 <<_ACEOF
1842
1843
1844 ## ----------- ##
1845 ## Core tests. ##
1846 ## ----------- ##
1847
1848 _ACEOF
1849
1850
1851 # Keep a trace of the command line.
1852 # Strip out --no-create and --no-recursion so they do not pile up.
1853 # Strip out --silent because we don't want to record it for future runs.
1854 # Also quote any args containing shell meta-characters.
1855 # Make two passes to allow for proper duplicate-argument suppression.
1856 ac_configure_args=
1857 ac_configure_args0=
1858 ac_configure_args1=
1859 ac_must_keep_next=false
1860 for ac_pass in 1 2
1861 do
1862 for ac_arg
1863 do
1864 case $ac_arg in
1865 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1867 | -silent | --silent | --silen | --sile | --sil)
1868 continue ;;
1869 *\'*)
1870 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1871 esac
1872 case $ac_pass in
1873 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1874 2)
1875 as_fn_append ac_configure_args1 " '$ac_arg'"
1876 if test $ac_must_keep_next = true; then
1877 ac_must_keep_next=false # Got value, back to normal.
1878 else
1879 case $ac_arg in
1880 *=* | --config-cache | -C | -disable-* | --disable-* \
1881 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1882 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1883 | -with-* | --with-* | -without-* | --without-* | --x)
1884 case "$ac_configure_args0 " in
1885 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1886 esac
1887 ;;
1888 -* ) ac_must_keep_next=true ;;
1889 esac
1890 fi
1891 as_fn_append ac_configure_args " '$ac_arg'"
1892 ;;
1893 esac
1894 done
1895 done
1896 { ac_configure_args0=; unset ac_configure_args0;}
1897 { ac_configure_args1=; unset ac_configure_args1;}
1898
1899 # When interrupted or exit'd, cleanup temporary files, and complete
1900 # config.log. We remove comments because anyway the quotes in there
1901 # would cause problems or look ugly.
1902 # WARNING: Use '\'' to represent an apostrophe within the trap.
1903 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1904 trap 'exit_status=$?
1905 # Save into config.log some information that might help in debugging.
1906 {
1907 echo
1908
1909 $as_echo "## ---------------- ##
1910 ## Cache variables. ##
1911 ## ---------------- ##"
1912 echo
1913 # The following way of writing the cache mishandles newlines in values,
1914 (
1915 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1916 eval ac_val=\$$ac_var
1917 case $ac_val in #(
1918 *${as_nl}*)
1919 case $ac_var in #(
1920 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1921 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1922 esac
1923 case $ac_var in #(
1924 _ | IFS | as_nl) ;; #(
1925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1926 *) { eval $ac_var=; unset $ac_var;} ;;
1927 esac ;;
1928 esac
1929 done
1930 (set) 2>&1 |
1931 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1932 *${as_nl}ac_space=\ *)
1933 sed -n \
1934 "s/'\''/'\''\\\\'\'''\''/g;
1935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1936 ;; #(
1937 *)
1938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1939 ;;
1940 esac |
1941 sort
1942 )
1943 echo
1944
1945 $as_echo "## ----------------- ##
1946 ## Output variables. ##
1947 ## ----------------- ##"
1948 echo
1949 for ac_var in $ac_subst_vars
1950 do
1951 eval ac_val=\$$ac_var
1952 case $ac_val in
1953 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954 esac
1955 $as_echo "$ac_var='\''$ac_val'\''"
1956 done | sort
1957 echo
1958
1959 if test -n "$ac_subst_files"; then
1960 $as_echo "## ------------------- ##
1961 ## File substitutions. ##
1962 ## ------------------- ##"
1963 echo
1964 for ac_var in $ac_subst_files
1965 do
1966 eval ac_val=\$$ac_var
1967 case $ac_val in
1968 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1969 esac
1970 $as_echo "$ac_var='\''$ac_val'\''"
1971 done | sort
1972 echo
1973 fi
1974
1975 if test -s confdefs.h; then
1976 $as_echo "## ----------- ##
1977 ## confdefs.h. ##
1978 ## ----------- ##"
1979 echo
1980 cat confdefs.h
1981 echo
1982 fi
1983 test "$ac_signal" != 0 &&
1984 $as_echo "$as_me: caught signal $ac_signal"
1985 $as_echo "$as_me: exit $exit_status"
1986 } >&5
1987 rm -f core *.core core.conftest.* &&
1988 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1989 exit $exit_status
1990 ' 0
1991 for ac_signal in 1 2 13 15; do
1992 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1993 done
1994 ac_signal=0
1995
1996 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1997 rm -f -r conftest* confdefs.h
1998
1999 $as_echo "/* confdefs.h */" > confdefs.h
2000
2001 # Predefined preprocessor variables.
2002
2003 cat >>confdefs.h <<_ACEOF
2004 #define PACKAGE_NAME "$PACKAGE_NAME"
2005 _ACEOF
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2009 _ACEOF
2010
2011 cat >>confdefs.h <<_ACEOF
2012 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2013 _ACEOF
2014
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_STRING "$PACKAGE_STRING"
2017 _ACEOF
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2021 _ACEOF
2022
2023 cat >>confdefs.h <<_ACEOF
2024 #define PACKAGE_URL "$PACKAGE_URL"
2025 _ACEOF
2026
2027
2028 # Let the site file select an alternate cache file if it wants to.
2029 # Prefer an explicitly selected file to automatically selected ones.
2030 ac_site_file1=NONE
2031 ac_site_file2=NONE
2032 if test -n "$CONFIG_SITE"; then
2033 # We do not want a PATH search for config.site.
2034 case $CONFIG_SITE in #((
2035 -*) ac_site_file1=./$CONFIG_SITE;;
2036 */*) ac_site_file1=$CONFIG_SITE;;
2037 *) ac_site_file1=./$CONFIG_SITE;;
2038 esac
2039 elif test "x$prefix" != xNONE; then
2040 ac_site_file1=$prefix/share/config.site
2041 ac_site_file2=$prefix/etc/config.site
2042 else
2043 ac_site_file1=$ac_default_prefix/share/config.site
2044 ac_site_file2=$ac_default_prefix/etc/config.site
2045 fi
2046 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2047 do
2048 test "x$ac_site_file" = xNONE && continue
2049 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2051 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2052 sed 's/^/| /' "$ac_site_file" >&5
2053 . "$ac_site_file" \
2054 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2056 as_fn_error $? "failed to load site script $ac_site_file
2057 See \`config.log' for more details" "$LINENO" 5; }
2058 fi
2059 done
2060
2061 if test -r "$cache_file"; then
2062 # Some versions of bash will fail to source /dev/null (special files
2063 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2064 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2066 $as_echo "$as_me: loading cache $cache_file" >&6;}
2067 case $cache_file in
2068 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2069 *) . "./$cache_file";;
2070 esac
2071 fi
2072 else
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2074 $as_echo "$as_me: creating cache $cache_file" >&6;}
2075 >$cache_file
2076 fi
2077
2078 # Check that the precious variables saved in the cache have kept the same
2079 # value.
2080 ac_cache_corrupted=false
2081 for ac_var in $ac_precious_vars; do
2082 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2083 eval ac_new_set=\$ac_env_${ac_var}_set
2084 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2085 eval ac_new_val=\$ac_env_${ac_var}_value
2086 case $ac_old_set,$ac_new_set in
2087 set,)
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2089 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2090 ac_cache_corrupted=: ;;
2091 ,set)
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2093 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2094 ac_cache_corrupted=: ;;
2095 ,);;
2096 *)
2097 if test "x$ac_old_val" != "x$ac_new_val"; then
2098 # differences in whitespace do not lead to failure.
2099 ac_old_val_w=`echo x $ac_old_val`
2100 ac_new_val_w=`echo x $ac_new_val`
2101 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2103 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2104 ac_cache_corrupted=:
2105 else
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2107 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2108 eval $ac_var=\$ac_old_val
2109 fi
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2111 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2113 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2114 fi;;
2115 esac
2116 # Pass precious variables to config.status.
2117 if test "$ac_new_set" = set; then
2118 case $ac_new_val in
2119 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2120 *) ac_arg=$ac_var=$ac_new_val ;;
2121 esac
2122 case " $ac_configure_args " in
2123 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2124 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2125 esac
2126 fi
2127 done
2128 if $ac_cache_corrupted; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2132 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2133 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2134 fi
2135 ## -------------------- ##
2136 ## Main body of script. ##
2137 ## -------------------- ##
2138
2139 ac_ext=c
2140 ac_cpp='$CPP $CPPFLAGS'
2141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2144
2145
2146 am__api_version='1.16'
2147
2148 ac_aux_dir=
2149 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2150 if test -f "$ac_dir/install-sh"; then
2151 ac_aux_dir=$ac_dir
2152 ac_install_sh="$ac_aux_dir/install-sh -c"
2153 break
2154 elif test -f "$ac_dir/install.sh"; then
2155 ac_aux_dir=$ac_dir
2156 ac_install_sh="$ac_aux_dir/install.sh -c"
2157 break
2158 elif test -f "$ac_dir/shtool"; then
2159 ac_aux_dir=$ac_dir
2160 ac_install_sh="$ac_aux_dir/shtool install -c"
2161 break
2162 fi
2163 done
2164 if test -z "$ac_aux_dir"; then
2165 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2166 fi
2167
2168 # These three variables are undocumented and unsupported,
2169 # and are intended to be withdrawn in a future Autoconf release.
2170 # They can cause serious problems if a builder's source tree is in a directory
2171 # whose full name contains unusual characters.
2172 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2173 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2174 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2175
2176
2177 # Find a good install program. We prefer a C program (faster),
2178 # so one script is as good as another. But avoid the broken or
2179 # incompatible versions:
2180 # SysV /etc/install, /usr/sbin/install
2181 # SunOS /usr/etc/install
2182 # IRIX /sbin/install
2183 # AIX /bin/install
2184 # AmigaOS /C/install, which installs bootblocks on floppy discs
2185 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2186 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2187 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2188 # OS/2's system install, which has a completely different semantic
2189 # ./install, which can be erroneously created by make from ./install.sh.
2190 # Reject install programs that cannot install multiple files.
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2192 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2193 if test -z "$INSTALL"; then
2194 if ${ac_cv_path_install+:} false; then :
2195 $as_echo_n "(cached) " >&6
2196 else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2199 do
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 # Account for people who put trailing slashes in PATH elements.
2203 case $as_dir/ in #((
2204 ./ | .// | /[cC]/* | \
2205 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2206 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2207 /usr/ucb/* ) ;;
2208 *)
2209 # OSF1 and SCO ODT 3.0 have their own names for install.
2210 # Don't use installbsd from OSF since it installs stuff as root
2211 # by default.
2212 for ac_prog in ginstall scoinst install; do
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2215 if test $ac_prog = install &&
2216 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2217 # AIX install. It has an incompatible calling convention.
2218 :
2219 elif test $ac_prog = install &&
2220 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2221 # program-specific install script used by HP pwplus--don't use.
2222 :
2223 else
2224 rm -rf conftest.one conftest.two conftest.dir
2225 echo one > conftest.one
2226 echo two > conftest.two
2227 mkdir conftest.dir
2228 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2229 test -s conftest.one && test -s conftest.two &&
2230 test -s conftest.dir/conftest.one &&
2231 test -s conftest.dir/conftest.two
2232 then
2233 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2234 break 3
2235 fi
2236 fi
2237 fi
2238 done
2239 done
2240 ;;
2241 esac
2242
2243 done
2244 IFS=$as_save_IFS
2245
2246 rm -rf conftest.one conftest.two conftest.dir
2247
2248 fi
2249 if test "${ac_cv_path_install+set}" = set; then
2250 INSTALL=$ac_cv_path_install
2251 else
2252 # As a last resort, use the slow shell script. Don't cache a
2253 # value for INSTALL within a source directory, because that will
2254 # break other packages using the cache if that directory is
2255 # removed, or if the value is a relative name.
2256 INSTALL=$ac_install_sh
2257 fi
2258 fi
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2260 $as_echo "$INSTALL" >&6; }
2261
2262 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2263 # It thinks the first close brace ends the variable substitution.
2264 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2265
2266 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2267
2268 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2269
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2271 $as_echo_n "checking whether build environment is sane... " >&6; }
2272 # Reject unsafe characters in $srcdir or the absolute working directory
2273 # name. Accept space and tab only in the latter.
2274 am_lf='
2275 '
2276 case `pwd` in
2277 *[\\\"\#\$\&\'\`$am_lf]*)
2278 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2279 esac
2280 case $srcdir in
2281 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2282 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2283 esac
2284
2285 # Do 'set' in a subshell so we don't clobber the current shell's
2286 # arguments. Must try -L first in case configure is actually a
2287 # symlink; some systems play weird games with the mod time of symlinks
2288 # (eg FreeBSD returns the mod time of the symlink's containing
2289 # directory).
2290 if (
2291 am_has_slept=no
2292 for am_try in 1 2; do
2293 echo "timestamp, slept: $am_has_slept" > conftest.file
2294 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2295 if test "$*" = "X"; then
2296 # -L didn't work.
2297 set X `ls -t "$srcdir/configure" conftest.file`
2298 fi
2299 if test "$*" != "X $srcdir/configure conftest.file" \
2300 && test "$*" != "X conftest.file $srcdir/configure"; then
2301
2302 # If neither matched, then we have a broken ls. This can happen
2303 # if, for instance, CONFIG_SHELL is bash and it inherits a
2304 # broken ls alias from the environment. This has actually
2305 # happened. Such a system could not be considered "sane".
2306 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2307 alias in your environment" "$LINENO" 5
2308 fi
2309 if test "$2" = conftest.file || test $am_try -eq 2; then
2310 break
2311 fi
2312 # Just in case.
2313 sleep 1
2314 am_has_slept=yes
2315 done
2316 test "$2" = conftest.file
2317 )
2318 then
2319 # Ok.
2320 :
2321 else
2322 as_fn_error $? "newly created file is older than distributed files!
2323 Check your system clock" "$LINENO" 5
2324 fi
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2326 $as_echo "yes" >&6; }
2327 # If we didn't sleep, we still need to ensure time stamps of config.status and
2328 # generated files are strictly newer.
2329 am_sleep_pid=
2330 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2331 ( sleep 1 ) &
2332 am_sleep_pid=$!
2333 fi
2334
2335 rm -f conftest.file
2336
2337 test "$program_prefix" != NONE &&
2338 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2339 # Use a double $ so make ignores it.
2340 test "$program_suffix" != NONE &&
2341 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2342 # Double any \ or $.
2343 # By default was `s,x,x', remove it if useless.
2344 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2345 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2346
2347 # Expand $ac_aux_dir to an absolute path.
2348 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2349
2350 if test x"${MISSING+set}" != xset; then
2351 case $am_aux_dir in
2352 *\ * | *\ *)
2353 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2354 *)
2355 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2356 esac
2357 fi
2358 # Use eval to expand $SHELL
2359 if eval "$MISSING --is-lightweight"; then
2360 am_missing_run="$MISSING "
2361 else
2362 am_missing_run=
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2364 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2365 fi
2366
2367 if test x"${install_sh+set}" != xset; then
2368 case $am_aux_dir in
2369 *\ * | *\ *)
2370 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2371 *)
2372 install_sh="\${SHELL} $am_aux_dir/install-sh"
2373 esac
2374 fi
2375
2376 # Installed binaries are usually stripped using 'strip' when the user
2377 # run "make install-strip". However 'strip' might not be the right
2378 # tool to use in cross-compilation environments, therefore Automake
2379 # will honor the 'STRIP' environment variable to overrule this program.
2380 if test "$cross_compiling" != no; then
2381 if test -n "$ac_tool_prefix"; then
2382 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2383 set dummy ${ac_tool_prefix}strip; ac_word=$2
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2385 $as_echo_n "checking for $ac_word... " >&6; }
2386 if ${ac_cv_prog_STRIP+:} false; then :
2387 $as_echo_n "(cached) " >&6
2388 else
2389 if test -n "$STRIP"; then
2390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2391 else
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2399 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 break 2
2402 fi
2403 done
2404 done
2405 IFS=$as_save_IFS
2406
2407 fi
2408 fi
2409 STRIP=$ac_cv_prog_STRIP
2410 if test -n "$STRIP"; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2412 $as_echo "$STRIP" >&6; }
2413 else
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2415 $as_echo "no" >&6; }
2416 fi
2417
2418
2419 fi
2420 if test -z "$ac_cv_prog_STRIP"; then
2421 ac_ct_STRIP=$STRIP
2422 # Extract the first word of "strip", so it can be a program name with args.
2423 set dummy strip; ac_word=$2
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425 $as_echo_n "checking for $ac_word... " >&6; }
2426 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2427 $as_echo_n "(cached) " >&6
2428 else
2429 if test -n "$ac_ct_STRIP"; then
2430 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
2438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439 ac_cv_prog_ac_ct_STRIP="strip"
2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443 done
2444 done
2445 IFS=$as_save_IFS
2446
2447 fi
2448 fi
2449 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2450 if test -n "$ac_ct_STRIP"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2452 $as_echo "$ac_ct_STRIP" >&6; }
2453 else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455 $as_echo "no" >&6; }
2456 fi
2457
2458 if test "x$ac_ct_STRIP" = x; then
2459 STRIP=":"
2460 else
2461 case $cross_compiling:$ac_tool_warned in
2462 yes:)
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2465 ac_tool_warned=yes ;;
2466 esac
2467 STRIP=$ac_ct_STRIP
2468 fi
2469 else
2470 STRIP="$ac_cv_prog_STRIP"
2471 fi
2472
2473 fi
2474 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2475
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2477 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2478 if test -z "$MKDIR_P"; then
2479 if ${ac_cv_path_mkdir+:} false; then :
2480 $as_echo_n "(cached) " >&6
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2484 do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
2487 for ac_prog in mkdir gmkdir; do
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2490 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2491 'mkdir (GNU coreutils) '* | \
2492 'mkdir (coreutils) '* | \
2493 'mkdir (fileutils) '4.1*)
2494 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2495 break 3;;
2496 esac
2497 done
2498 done
2499 done
2500 IFS=$as_save_IFS
2501
2502 fi
2503
2504 test -d ./--version && rmdir ./--version
2505 if test "${ac_cv_path_mkdir+set}" = set; then
2506 MKDIR_P="$ac_cv_path_mkdir -p"
2507 else
2508 # As a last resort, use the slow shell script. Don't cache a
2509 # value for MKDIR_P within a source directory, because that will
2510 # break other packages using the cache if that directory is
2511 # removed, or if the value is a relative name.
2512 MKDIR_P="$ac_install_sh -d"
2513 fi
2514 fi
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2516 $as_echo "$MKDIR_P" >&6; }
2517
2518 for ac_prog in gawk mawk nawk awk
2519 do
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2523 $as_echo_n "checking for $ac_word... " >&6; }
2524 if ${ac_cv_prog_AWK+:} false; then :
2525 $as_echo_n "(cached) " >&6
2526 else
2527 if test -n "$AWK"; then
2528 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_AWK="$ac_prog"
2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541 done
2542 done
2543 IFS=$as_save_IFS
2544
2545 fi
2546 fi
2547 AWK=$ac_cv_prog_AWK
2548 if test -n "$AWK"; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2550 $as_echo "$AWK" >&6; }
2551 else
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2553 $as_echo "no" >&6; }
2554 fi
2555
2556
2557 test -n "$AWK" && break
2558 done
2559
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2561 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2562 set x ${MAKE-make}
2563 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2564 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 cat >conftest.make <<\_ACEOF
2568 SHELL = /bin/sh
2569 all:
2570 @echo '@@@%%%=$(MAKE)=@@@%%%'
2571 _ACEOF
2572 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2573 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2574 *@@@%%%=?*=@@@%%%*)
2575 eval ac_cv_prog_make_${ac_make}_set=yes;;
2576 *)
2577 eval ac_cv_prog_make_${ac_make}_set=no;;
2578 esac
2579 rm -f conftest.make
2580 fi
2581 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583 $as_echo "yes" >&6; }
2584 SET_MAKE=
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 SET_MAKE="MAKE=${MAKE-make}"
2589 fi
2590
2591 rm -rf .tst 2>/dev/null
2592 mkdir .tst 2>/dev/null
2593 if test -d .tst; then
2594 am__leading_dot=.
2595 else
2596 am__leading_dot=_
2597 fi
2598 rmdir .tst 2>/dev/null
2599
2600 # Check whether --enable-silent-rules was given.
2601 if test "${enable_silent_rules+set}" = set; then :
2602 enableval=$enable_silent_rules;
2603 fi
2604
2605 case $enable_silent_rules in # (((
2606 yes) AM_DEFAULT_VERBOSITY=0;;
2607 no) AM_DEFAULT_VERBOSITY=1;;
2608 *) AM_DEFAULT_VERBOSITY=1;;
2609 esac
2610 am_make=${MAKE-make}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2612 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2613 if ${am_cv_make_support_nested_variables+:} false; then :
2614 $as_echo_n "(cached) " >&6
2615 else
2616 if $as_echo 'TRUE=$(BAR$(V))
2617 BAR0=false
2618 BAR1=true
2619 V=1
2620 am__doit:
2621 @$(TRUE)
2622 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2623 am_cv_make_support_nested_variables=yes
2624 else
2625 am_cv_make_support_nested_variables=no
2626 fi
2627 fi
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2629 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2630 if test $am_cv_make_support_nested_variables = yes; then
2631 AM_V='$(V)'
2632 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2633 else
2634 AM_V=$AM_DEFAULT_VERBOSITY
2635 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2636 fi
2637 AM_BACKSLASH='\'
2638
2639 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2640 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2641 # is not polluted with repeated "-I."
2642 am__isrc=' -I$(srcdir)'
2643 # test to see if srcdir already configured
2644 if test -f $srcdir/config.status; then
2645 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2646 fi
2647 fi
2648
2649 # test whether we have cygpath
2650 if test -z "$CYGPATH_W"; then
2651 if (cygpath --version) >/dev/null 2>/dev/null; then
2652 CYGPATH_W='cygpath -w'
2653 else
2654 CYGPATH_W=echo
2655 fi
2656 fi
2657
2658
2659 # Define the identity of the package.
2660 PACKAGE='libsharp'
2661 VERSION='1.0.0'
2662
2663
2664 cat >>confdefs.h <<_ACEOF
2665 #define PACKAGE "$PACKAGE"
2666 _ACEOF
2667
2668
2669 cat >>confdefs.h <<_ACEOF
2670 #define VERSION "$VERSION"
2671 _ACEOF
2672
2673 # Some tools Automake needs.
2674
2675 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2676
2677
2678 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2679
2680
2681 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2682
2683
2684 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2685
2686
2687 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2688
2689 # For better backward compatibility. To be removed once Automake 1.9.x
2690 # dies out for good. For more background, see:
2691 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2692 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2693 mkdir_p='$(MKDIR_P)'
2694
2695 # We need awk for the "check" target (and possibly the TAP driver). The
2696 # system "awk" is bad on some platforms.
2697 # Always define AMTAR for backward compatibility. Yes, it's still used
2698 # in the wild :-( We should find a proper way to deprecate it ...
2699 AMTAR='$${TAR-tar}'
2700
2701
2702 # We'll loop over all known methods to create a tar archive until one works.
2703 _am_tools='gnutar pax cpio none'
2704
2705 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2706
2707
2708
2709
2710
2711
2712 # POSIX will say in a future version that running "rm -f" with no argument
2713 # is OK; and we want to be able to make that assumption in our Makefile
2714 # recipes. So use an aggressive probe to check that the usage we want is
2715 # actually supported "in the wild" to an acceptable degree.
2716 # See automake bug#10828.
2717 # To make any issue more visible, cause the running configure to be aborted
2718 # by default if the 'rm' program in use doesn't match our expectations; the
2719 # user can still override this though.
2720 if rm -f && rm -fr && rm -rf; then : OK; else
2721 cat >&2 <<'END'
2722 Oops!
2723
2724 Your 'rm' program seems unable to run without file operands specified
2725 on the command line, even when the '-f' option is present. This is contrary
2726 to the behaviour of most rm programs out there, and not conforming with
2727 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2728
2729 Please tell [email protected] about your system, including the value
2730 of your $PATH and any error possibly output before this message. This
2731 can help us improve future automake versions.
2732
2733 END
2734 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2735 echo 'Configuration will proceed anyway, since you have set the' >&2
2736 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2737 echo >&2
2738 else
2739 cat >&2 <<'END'
2740 Aborting the configuration process, to ensure you take notice of the issue.
2741
2742 You can download and install GNU coreutils to get an 'rm' implementation
2743 that behaves properly: <https://www.gnu.org/software/coreutils/>.
2744
2745 If you want to complete the configuration process using your problematic
2746 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2747 to "yes", and re-run configure.
2748
2749 END
2750 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2751 fi
2752 fi
2753
2754
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2756 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2757 # Check whether --enable-maintainer-mode was given.
2758 if test "${enable_maintainer_mode+set}" = set; then :
2759 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2760 else
2761 USE_MAINTAINER_MODE=yes
2762 fi
2763
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2765 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2766 if test $USE_MAINTAINER_MODE = yes; then
2767 MAINTAINER_MODE_TRUE=
2768 MAINTAINER_MODE_FALSE='#'
2769 else
2770 MAINTAINER_MODE_TRUE='#'
2771 MAINTAINER_MODE_FALSE=
2772 fi
2773
2774 MAINT=$MAINTAINER_MODE_TRUE
2775
2776
2777
2778
2779 DEPDIR="${am__leading_dot}deps"
2780
2781 ac_config_commands="$ac_config_commands depfiles"
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2784 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
2785 cat > confinc.mk << 'END'
2786 am__doit:
2787 @echo this is the am__doit target >confinc.out
2788 .PHONY: am__doit
2789 END
2790 am__include="#"
2791 am__quote=
2792 # BSD make does it like this.
2793 echo '.include "confinc.mk" # ignored' > confmf.BSD
2794 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
2795 echo 'include confinc.mk # ignored' > confmf.GNU
2796 _am_result=no
2797 for s in GNU BSD; do
2798 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
2799 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }
2803 case $?:`cat confinc.out 2>/dev/null` in #(
2804 '0:this is the am__doit target') :
2805 case $s in #(
2806 BSD) :
2807 am__include='.include' am__quote='"' ;; #(
2808 *) :
2809 am__include='include' am__quote='' ;;
2810 esac ;; #(
2811 *) :
2812 ;;
2813 esac
2814 if test "$am__include" != "#"; then
2815 _am_result="yes ($s style)"
2816 break
2817 fi
2818 done
2819 rm -f confinc.* confmf.*
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2821 $as_echo "${_am_result}" >&6; }
2822
2823 # Check whether --enable-dependency-tracking was given.
2824 if test "${enable_dependency_tracking+set}" = set; then :
2825 enableval=$enable_dependency_tracking;
2826 fi
2827
2828 if test "x$enable_dependency_tracking" != xno; then
2829 am_depcomp="$ac_aux_dir/depcomp"
2830 AMDEPBACKSLASH='\'
2831 am__nodep='_no'
2832 fi
2833 if test "x$enable_dependency_tracking" != xno; then
2834 AMDEP_TRUE=
2835 AMDEP_FALSE='#'
2836 else
2837 AMDEP_TRUE='#'
2838 AMDEP_FALSE=
2839 fi
2840
2841
2842 ac_ext=c
2843 ac_cpp='$CPP $CPPFLAGS'
2844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 if test -n "$ac_tool_prefix"; then
2848 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2849 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if ${ac_cv_prog_CC+:} false; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861 IFS=$as_save_IFS
2862 test -z "$as_dir" && as_dir=.
2863 for ac_exec_ext in '' $ac_executable_extensions; do
2864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2865 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 break 2
2868 fi
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 CC=$ac_cv_prog_CC
2876 if test -n "$CC"; then
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878 $as_echo "$CC" >&6; }
2879 else
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881 $as_echo "no" >&6; }
2882 fi
2883
2884
2885 fi
2886 if test -z "$ac_cv_prog_CC"; then
2887 ac_ct_CC=$CC
2888 # Extract the first word of "gcc", so it can be a program name with args.
2889 set dummy gcc; ac_word=$2
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 $as_echo_n "checking for $ac_word... " >&6; }
2892 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2893 $as_echo_n "(cached) " >&6
2894 else
2895 if test -n "$ac_ct_CC"; then
2896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2897 else
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 test -z "$as_dir" && as_dir=.
2903 for ac_exec_ext in '' $ac_executable_extensions; do
2904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2905 ac_cv_prog_ac_ct_CC="gcc"
2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 break 2
2908 fi
2909 done
2910 done
2911 IFS=$as_save_IFS
2912
2913 fi
2914 fi
2915 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2916 if test -n "$ac_ct_CC"; then
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2918 $as_echo "$ac_ct_CC" >&6; }
2919 else
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 fi
2923
2924 if test "x$ac_ct_CC" = x; then
2925 CC=""
2926 else
2927 case $cross_compiling:$ac_tool_warned in
2928 yes:)
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2931 ac_tool_warned=yes ;;
2932 esac
2933 CC=$ac_ct_CC
2934 fi
2935 else
2936 CC="$ac_cv_prog_CC"
2937 fi
2938
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}cc; ac_word=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if ${ac_cv_prog_CC+:} false; then :
2946 $as_echo_n "(cached) " >&6
2947 else
2948 if test -n "$CC"; then
2949 ac_cv_prog_CC="$CC" # Let the user override the test.
2950 else
2951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2952 for as_dir in $PATH
2953 do
2954 IFS=$as_save_IFS
2955 test -z "$as_dir" && as_dir=.
2956 for ac_exec_ext in '' $ac_executable_extensions; do
2957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2958 ac_cv_prog_CC="${ac_tool_prefix}cc"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2960 break 2
2961 fi
2962 done
2963 done
2964 IFS=$as_save_IFS
2965
2966 fi
2967 fi
2968 CC=$ac_cv_prog_CC
2969 if test -n "$CC"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2971 $as_echo "$CC" >&6; }
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2975 fi
2976
2977
2978 fi
2979 fi
2980 if test -z "$CC"; then
2981 # Extract the first word of "cc", so it can be a program name with args.
2982 set dummy cc; ac_word=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_CC+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test -n "$CC"; then
2989 ac_cv_prog_CC="$CC" # Let the user override the test.
2990 else
2991 ac_prog_rejected=no
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2999 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3000 ac_prog_rejected=yes
3001 continue
3002 fi
3003 ac_cv_prog_CC="cc"
3004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3005 break 2
3006 fi
3007 done
3008 done
3009 IFS=$as_save_IFS
3010
3011 if test $ac_prog_rejected = yes; then
3012 # We found a bogon in the path, so make sure we never use it.
3013 set dummy $ac_cv_prog_CC
3014 shift
3015 if test $# != 0; then
3016 # We chose a different compiler from the bogus one.
3017 # However, it has the same basename, so the bogon will be chosen
3018 # first if we set CC to just the basename; use the full file name.
3019 shift
3020 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3021 fi
3022 fi
3023 fi
3024 fi
3025 CC=$ac_cv_prog_CC
3026 if test -n "$CC"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3028 $as_echo "$CC" >&6; }
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034
3035 fi
3036 if test -z "$CC"; then
3037 if test -n "$ac_tool_prefix"; then
3038 for ac_prog in cl.exe
3039 do
3040 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3041 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3057 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061 done
3062 done
3063 IFS=$as_save_IFS
3064
3065 fi
3066 fi
3067 CC=$ac_cv_prog_CC
3068 if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070 $as_echo "$CC" >&6; }
3071 else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 fi
3075
3076
3077 test -n "$CC" && break
3078 done
3079 fi
3080 if test -z "$CC"; then
3081 ac_ct_CC=$CC
3082 for ac_prog in cl.exe
3083 do
3084 # Extract the first word of "$ac_prog", so it can be a program name with args.
3085 set dummy $ac_prog; ac_word=$2
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087 $as_echo_n "checking for $ac_word... " >&6; }
3088 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$ac_ct_CC"; then
3092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_CC="$ac_prog"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105 done
3106 done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3112 if test -n "$ac_ct_CC"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3114 $as_echo "$ac_ct_CC" >&6; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120
3121 test -n "$ac_ct_CC" && break
3122 done
3123
3124 if test "x$ac_ct_CC" = x; then
3125 CC=""
3126 else
3127 case $cross_compiling:$ac_tool_warned in
3128 yes:)
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3131 ac_tool_warned=yes ;;
3132 esac
3133 CC=$ac_ct_CC
3134 fi
3135 fi
3136
3137 fi
3138
3139
3140 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3142 as_fn_error $? "no acceptable C compiler found in \$PATH
3143 See \`config.log' for more details" "$LINENO" 5; }
3144
3145 # Provide some information about the compiler.
3146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3147 set X $ac_compile
3148 ac_compiler=$2
3149 for ac_option in --version -v -V -qversion; do
3150 { { ac_try="$ac_compiler $ac_option >&5"
3151 case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3158 ac_status=$?
3159 if test -s conftest.err; then
3160 sed '10a\
3161 ... rest of stderr output deleted ...
3162 10q' conftest.err >conftest.er1
3163 cat conftest.er1 >&5
3164 fi
3165 rm -f conftest.er1 conftest.err
3166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3167 test $ac_status = 0; }
3168 done
3169
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3171 /* end confdefs.h. */
3172
3173 int
3174 main ()
3175 {
3176
3177 ;
3178 return 0;
3179 }
3180 _ACEOF
3181 ac_clean_files_save=$ac_clean_files
3182 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3183 # Try to create an executable without -o first, disregard a.out.
3184 # It will help us diagnose broken compilers, and finding out an intuition
3185 # of exeext.
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3187 $as_echo_n "checking whether the C compiler works... " >&6; }
3188 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3189
3190 # The possible output files:
3191 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3192
3193 ac_rmfiles=
3194 for ac_file in $ac_files
3195 do
3196 case $ac_file in
3197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3198 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3199 esac
3200 done
3201 rm -f $ac_rmfiles
3202
3203 if { { ac_try="$ac_link_default"
3204 case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3207 esac
3208 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3209 $as_echo "$ac_try_echo"; } >&5
3210 (eval "$ac_link_default") 2>&5
3211 ac_status=$?
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }; then :
3214 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3215 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3216 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3217 # so that the user can short-circuit this test for compilers unknown to
3218 # Autoconf.
3219 for ac_file in $ac_files ''
3220 do
3221 test -f "$ac_file" || continue
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3224 ;;
3225 [ab].out )
3226 # We found the default executable, but exeext='' is most
3227 # certainly right.
3228 break;;
3229 *.* )
3230 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3231 then :; else
3232 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 fi
3234 # We set ac_cv_exeext here because the later test for it is not
3235 # safe: cross compilers may not add the suffix if given an `-o'
3236 # argument, so we may need to know it at that point already.
3237 # Even if this section looks crufty: it has the advantage of
3238 # actually working.
3239 break;;
3240 * )
3241 break;;
3242 esac
3243 done
3244 test "$ac_cv_exeext" = no && ac_cv_exeext=
3245
3246 else
3247 ac_file=''
3248 fi
3249 if test -z "$ac_file"; then :
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 $as_echo "$as_me: failed program was:" >&5
3253 sed 's/^/| /' conftest.$ac_ext >&5
3254
3255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3257 as_fn_error 77 "C compiler cannot create executables
3258 See \`config.log' for more details" "$LINENO" 5; }
3259 else
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3264 $as_echo_n "checking for C compiler default output file name... " >&6; }
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3266 $as_echo "$ac_file" >&6; }
3267 ac_exeext=$ac_cv_exeext
3268
3269 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3270 ac_clean_files=$ac_clean_files_save
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3272 $as_echo_n "checking for suffix of executables... " >&6; }
3273 if { { ac_try="$ac_link"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_link") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; then :
3284 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3285 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3286 # work properly (i.e., refer to `conftest.exe'), while it won't with
3287 # `rm'.
3288 for ac_file in conftest.exe conftest conftest.*; do
3289 test -f "$ac_file" || continue
3290 case $ac_file in
3291 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3292 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 break;;
3294 * ) break;;
3295 esac
3296 done
3297 else
3298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3300 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3301 See \`config.log' for more details" "$LINENO" 5; }
3302 fi
3303 rm -f conftest conftest$ac_cv_exeext
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3305 $as_echo "$ac_cv_exeext" >&6; }
3306
3307 rm -f conftest.$ac_ext
3308 EXEEXT=$ac_cv_exeext
3309 ac_exeext=$EXEEXT
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3312 #include <stdio.h>
3313 int
3314 main ()
3315 {
3316 FILE *f = fopen ("conftest.out", "w");
3317 return ferror (f) || fclose (f) != 0;
3318
3319 ;
3320 return 0;
3321 }
3322 _ACEOF
3323 ac_clean_files="$ac_clean_files conftest.out"
3324 # Check that the compiler produces executables we can run. If not, either
3325 # the compiler is broken, or we cross compile.
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3327 $as_echo_n "checking whether we are cross compiling... " >&6; }
3328 if test "$cross_compiling" != yes; then
3329 { { ac_try="$ac_link"
3330 case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333 esac
3334 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335 $as_echo "$ac_try_echo"; } >&5
3336 (eval "$ac_link") 2>&5
3337 ac_status=$?
3338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }
3340 if { ac_try='./conftest$ac_cv_exeext'
3341 { { case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3346 $as_echo "$ac_try_echo"; } >&5
3347 (eval "$ac_try") 2>&5
3348 ac_status=$?
3349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3350 test $ac_status = 0; }; }; then
3351 cross_compiling=no
3352 else
3353 if test "$cross_compiling" = maybe; then
3354 cross_compiling=yes
3355 else
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error $? "cannot run C compiled programs.
3359 If you meant to cross compile, use \`--host'.
3360 See \`config.log' for more details" "$LINENO" 5; }
3361 fi
3362 fi
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3365 $as_echo "$cross_compiling" >&6; }
3366
3367 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3368 ac_clean_files=$ac_clean_files_save
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3370 $as_echo_n "checking for suffix of object files... " >&6; }
3371 if ${ac_cv_objext+:} false; then :
3372 $as_echo_n "(cached) " >&6
3373 else
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3376
3377 int
3378 main ()
3379 {
3380
3381 ;
3382 return 0;
3383 }
3384 _ACEOF
3385 rm -f conftest.o conftest.obj
3386 if { { ac_try="$ac_compile"
3387 case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_compile") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; then :
3397 for ac_file in conftest.o conftest.obj conftest.*; do
3398 test -f "$ac_file" || continue;
3399 case $ac_file in
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3401 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3402 break;;
3403 esac
3404 done
3405 else
3406 $as_echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot compute suffix of object files: cannot compile
3412 See \`config.log' for more details" "$LINENO" 5; }
3413 fi
3414 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3415 fi
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3417 $as_echo "$ac_cv_objext" >&6; }
3418 OBJEXT=$ac_cv_objext
3419 ac_objext=$OBJEXT
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3421 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3422 if ${ac_cv_c_compiler_gnu+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426 /* end confdefs.h. */
3427
3428 int
3429 main ()
3430 {
3431 #ifndef __GNUC__
3432 choke me
3433 #endif
3434
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 if ac_fn_c_try_compile "$LINENO"; then :
3440 ac_compiler_gnu=yes
3441 else
3442 ac_compiler_gnu=no
3443 fi
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3446
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3449 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3450 if test $ac_compiler_gnu = yes; then
3451 GCC=yes
3452 else
3453 GCC=
3454 fi
3455 ac_test_CFLAGS=${CFLAGS+set}
3456 ac_save_CFLAGS=$CFLAGS
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3458 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3459 if ${ac_cv_prog_cc_g+:} false; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 ac_save_c_werror_flag=$ac_c_werror_flag
3463 ac_c_werror_flag=yes
3464 ac_cv_prog_cc_g=no
3465 CFLAGS="-g"
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467 /* end confdefs.h. */
3468
3469 int
3470 main ()
3471 {
3472
3473 ;
3474 return 0;
3475 }
3476 _ACEOF
3477 if ac_fn_c_try_compile "$LINENO"; then :
3478 ac_cv_prog_cc_g=yes
3479 else
3480 CFLAGS=""
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483
3484 int
3485 main ()
3486 {
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493
3494 else
3495 ac_c_werror_flag=$ac_save_c_werror_flag
3496 CFLAGS="-g"
3497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498 /* end confdefs.h. */
3499
3500 int
3501 main ()
3502 {
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 if ac_fn_c_try_compile "$LINENO"; then :
3509 ac_cv_prog_cc_g=yes
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 fi
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 fi
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3517 fi
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3519 $as_echo "$ac_cv_prog_cc_g" >&6; }
3520 if test "$ac_test_CFLAGS" = set; then
3521 CFLAGS=$ac_save_CFLAGS
3522 elif test $ac_cv_prog_cc_g = yes; then
3523 if test "$GCC" = yes; then
3524 CFLAGS="-g -O2"
3525 else
3526 CFLAGS="-g"
3527 fi
3528 else
3529 if test "$GCC" = yes; then
3530 CFLAGS="-O2"
3531 else
3532 CFLAGS=
3533 fi
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3536 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3537 if ${ac_cv_prog_cc_c89+:} false; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 ac_cv_prog_cc_c89=no
3541 ac_save_CC=$CC
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3544 #include <stdarg.h>
3545 #include <stdio.h>
3546 struct stat;
3547 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3548 struct buf { int x; };
3549 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3550 static char *e (p, i)
3551 char **p;
3552 int i;
3553 {
3554 return p[i];
3555 }
3556 static char *f (char * (*g) (char **, int), char **p, ...)
3557 {
3558 char *s;
3559 va_list v;
3560 va_start (v,p);
3561 s = g (p, va_arg (v,int));
3562 va_end (v);
3563 return s;
3564 }
3565
3566 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3567 function prototypes and stuff, but not '\xHH' hex character constants.
3568 These don't provoke an error unfortunately, instead are silently treated
3569 as 'x'. The following induces an error, until -std is added to get
3570 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3571 array size at least. It's necessary to write '\x00'==0 to get something
3572 that's true only with -std. */
3573 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3574
3575 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3576 inside strings and character constants. */
3577 #define FOO(x) 'x'
3578 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3579
3580 int test (int i, double x);
3581 struct s1 {int (*f) (int a);};
3582 struct s2 {int (*f) (double a);};
3583 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3584 int argc;
3585 char **argv;
3586 int
3587 main ()
3588 {
3589 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3595 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 do
3597 CC="$ac_save_CC $ac_arg"
3598 if ac_fn_c_try_compile "$LINENO"; then :
3599 ac_cv_prog_cc_c89=$ac_arg
3600 fi
3601 rm -f core conftest.err conftest.$ac_objext
3602 test "x$ac_cv_prog_cc_c89" != "xno" && break
3603 done
3604 rm -f conftest.$ac_ext
3605 CC=$ac_save_CC
3606
3607 fi
3608 # AC_CACHE_VAL
3609 case "x$ac_cv_prog_cc_c89" in
3610 x)
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3612 $as_echo "none needed" >&6; } ;;
3613 xno)
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3615 $as_echo "unsupported" >&6; } ;;
3616 *)
3617 CC="$CC $ac_cv_prog_cc_c89"
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3619 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3620 esac
3621 if test "x$ac_cv_prog_cc_c89" != xno; then :
3622
3623 fi
3624
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3637 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3638 if ${am_cv_prog_cc_c_o+:} false; then :
3639 $as_echo_n "(cached) " >&6
3640 else
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3643
3644 int
3645 main ()
3646 {
3647
3648 ;
3649 return 0;
3650 }
3651 _ACEOF
3652 # Make sure it works both with $CC and with simple cc.
3653 # Following AC_PROG_CC_C_O, we do the test twice because some
3654 # compilers refuse to overwrite an existing .o file with -o,
3655 # though they will create one.
3656 am_cv_prog_cc_c_o=yes
3657 for am_i in 1 2; do
3658 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3659 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); } \
3663 && test -f conftest2.$ac_objext; then
3664 : OK
3665 else
3666 am_cv_prog_cc_c_o=no
3667 break
3668 fi
3669 done
3670 rm -f core conftest*
3671 unset am_i
3672 fi
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3674 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3675 if test "$am_cv_prog_cc_c_o" != yes; then
3676 # Losing compiler, so override with the script.
3677 # FIXME: It is wrong to rewrite CC.
3678 # But if we don't then we get into trouble of one sort or another.
3679 # A longer-term fix would be to have automake use am__CC in this case,
3680 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3681 CC="$am_aux_dir/compile $CC"
3682 fi
3683 ac_ext=c
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688
3689
3690 depcc="$CC" am_compiler_list=
3691
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3693 $as_echo_n "checking dependency style of $depcc... " >&6; }
3694 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3698 # We make a subdir and do the tests there. Otherwise we can end up
3699 # making bogus files that we don't know about and never remove. For
3700 # instance it was reported that on HP-UX the gcc test will end up
3701 # making a dummy file named 'D' -- because '-MD' means "put the output
3702 # in D".
3703 rm -rf conftest.dir
3704 mkdir conftest.dir
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3708 cd conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3714 # directory.
3715 mkdir sub
3716
3717 am_cv_CC_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3720 fi
3721 am__universal=false
3722 case " $depcc " in #(
3723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3724 esac
3725
3726 for depmode in $am_compiler_list; do
3727 # Setup a source with many dependencies, because some compilers
3728 # like to wrap large dependency lists on column 80 (with \), and
3729 # we should not choose a depcomp mode which is confused by this.
3730 #
3731 # We need to recreate these files for each test, as the compiler may
3732 # overwrite some of them when testing with obscure command lines.
3733 # This happens at least with the AIX C compiler.
3734 : > sub/conftest.c
3735 for i in 1 2 3 4 5 6; do
3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3738 # Solaris 10 /bin/sh.
3739 echo '/* dummy */' > sub/conftst$i.h
3740 done
3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3742
3743 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle '-M -o', and we need to detect this. Also, some Intel
3746 # versions had trouble with output in subdirs.
3747 am__obj=sub/conftest.${OBJEXT-o}
3748 am__minus_obj="-o $am__obj"
3749 case $depmode in
3750 gcc)
3751 # This depmode causes a compiler race in universal mode.
3752 test "$am__universal" = false || continue
3753 ;;
3754 nosideeffect)
3755 # After this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested.
3757 if test "x$enable_dependency_tracking" = xyes; then
3758 continue
3759 else
3760 break
3761 fi
3762 ;;
3763 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3764 # This compiler won't grok '-c -o', but also, the minuso test has
3765 # not run yet. These depmodes are late enough in the game, and
3766 # so weak that their functioning should not be impacted.
3767 am__obj=conftest.${OBJEXT-o}
3768 am__minus_obj=
3769 ;;
3770 none) break ;;
3771 esac
3772 if depmode=$depmode \
3773 source=sub/conftest.c object=$am__obj \
3774 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3775 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3776 >/dev/null 2>conftest.err &&
3777 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3778 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3779 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3780 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3781 # icc doesn't choke on unknown options, it will just issue warnings
3782 # or remarks (even with -Werror). So we grep stderr for any message
3783 # that says an option was ignored or not supported.
3784 # When given -MP, icc 7.0 and 7.1 complain thusly:
3785 # icc: Command line warning: ignoring option '-M'; no argument required
3786 # The diagnosis changed in icc 8.0:
3787 # icc: Command line remark: option '-MP' not supported
3788 if (grep 'ignoring option' conftest.err ||
3789 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3790 am_cv_CC_dependencies_compiler_type=$depmode
3791 break
3792 fi
3793 fi
3794 done
3795
3796 cd ..
3797 rm -rf conftest.dir
3798 else
3799 am_cv_CC_dependencies_compiler_type=none
3800 fi
3801
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3806
3807 if
3808 test "x$enable_dependency_tracking" != xno \
3809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810 am__fastdepCC_TRUE=
3811 am__fastdepCC_FALSE='#'
3812 else
3813 am__fastdepCC_TRUE='#'
3814 am__fastdepCC_FALSE=
3815 fi
3816
3817
3818
3819 if test -n "$ac_tool_prefix"; then
3820 for ac_prog in ar lib "link -lib"
3821 do
3822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3825 $as_echo_n "checking for $ac_word... " >&6; }
3826 if ${ac_cv_prog_AR+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 if test -n "$AR"; then
3830 ac_cv_prog_AR="$AR" # Let the user override the test.
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3839 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3841 break 2
3842 fi
3843 done
3844 done
3845 IFS=$as_save_IFS
3846
3847 fi
3848 fi
3849 AR=$ac_cv_prog_AR
3850 if test -n "$AR"; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3852 $as_echo "$AR" >&6; }
3853 else
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855 $as_echo "no" >&6; }
3856 fi
3857
3858
3859 test -n "$AR" && break
3860 done
3861 fi
3862 if test -z "$AR"; then
3863 ac_ct_AR=$AR
3864 for ac_prog in ar lib "link -lib"
3865 do
3866 # Extract the first word of "$ac_prog", so it can be a program name with args.
3867 set dummy $ac_prog; ac_word=$2
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3869 $as_echo_n "checking for $ac_word... " >&6; }
3870 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3871 $as_echo_n "(cached) " >&6
3872 else
3873 if test -n "$ac_ct_AR"; then
3874 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3875 else
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877 for as_dir in $PATH
3878 do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_prog_ac_ct_AR="$ac_prog"
3884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 break 2
3886 fi
3887 done
3888 done
3889 IFS=$as_save_IFS
3890
3891 fi
3892 fi
3893 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3894 if test -n "$ac_ct_AR"; then
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3896 $as_echo "$ac_ct_AR" >&6; }
3897 else
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3899 $as_echo "no" >&6; }
3900 fi
3901
3902
3903 test -n "$ac_ct_AR" && break
3904 done
3905
3906 if test "x$ac_ct_AR" = x; then
3907 AR="false"
3908 else
3909 case $cross_compiling:$ac_tool_warned in
3910 yes:)
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3913 ac_tool_warned=yes ;;
3914 esac
3915 AR=$ac_ct_AR
3916 fi
3917 fi
3918
3919 : ${AR=ar}
3920
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3922 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
3923 if ${am_cv_ar_interface+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
3932 am_cv_ar_interface=ar
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3935 int some_variable = 0;
3936 _ACEOF
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3940 (eval $am_ar_try) 2>&5
3941 ac_status=$?
3942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3943 test $ac_status = 0; }
3944 if test "$ac_status" -eq 0; then
3945 am_cv_ar_interface=ar
3946 else
3947 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3949 (eval $am_ar_try) 2>&5
3950 ac_status=$?
3951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3952 test $ac_status = 0; }
3953 if test "$ac_status" -eq 0; then
3954 am_cv_ar_interface=lib
3955 else
3956 am_cv_ar_interface=unknown
3957 fi
3958 fi
3959 rm -f conftest.lib libconftest.a
3960
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_ext=c
3964 ac_cpp='$CPP $CPPFLAGS'
3965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3968
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3971 $as_echo "$am_cv_ar_interface" >&6; }
3972
3973 case $am_cv_ar_interface in
3974 ar)
3975 ;;
3976 lib)
3977 # Microsoft lib, so override with the ar-lib wrapper script.
3978 # FIXME: It is wrong to rewrite AR.
3979 # But if we don't then we get into trouble of one sort or another.
3980 # A longer-term fix would be to have automake use am__AR in this case,
3981 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3982 # similar.
3983 AR="$am_aux_dir/ar-lib $AR"
3984 ;;
3985 unknown)
3986 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3987 ;;
3988 esac
3989
3990
3991 case `pwd` in
3992 *\ * | *\ *)
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3994 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3995 esac
3996
3997
3998
3999 macro_version='2.4.6'
4000 macro_revision='2.4.6'
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014 ltmain=$ac_aux_dir/ltmain.sh
4015
4016 # Make sure we can run config.sub.
4017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4018 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4019
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4021 $as_echo_n "checking build system type... " >&6; }
4022 if ${ac_cv_build+:} false; then :
4023 $as_echo_n "(cached) " >&6
4024 else
4025 ac_build_alias=$build_alias
4026 test "x$ac_build_alias" = x &&
4027 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4028 test "x$ac_build_alias" = x &&
4029 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4030 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4031 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4032
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4035 $as_echo "$ac_cv_build" >&6; }
4036 case $ac_cv_build in
4037 *-*-*) ;;
4038 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4039 esac
4040 build=$ac_cv_build
4041 ac_save_IFS=$IFS; IFS='-'
4042 set x $ac_cv_build
4043 shift
4044 build_cpu=$1
4045 build_vendor=$2
4046 shift; shift
4047 # Remember, the first character of IFS is used to create $*,
4048 # except with old shells:
4049 build_os=$*
4050 IFS=$ac_save_IFS
4051 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4052
4053
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4055 $as_echo_n "checking host system type... " >&6; }
4056 if ${ac_cv_host+:} false; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if test "x$host_alias" = x; then
4060 ac_cv_host=$ac_cv_build
4061 else
4062 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4063 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4064 fi
4065
4066 fi
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4068 $as_echo "$ac_cv_host" >&6; }
4069 case $ac_cv_host in
4070 *-*-*) ;;
4071 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4072 esac
4073 host=$ac_cv_host
4074 ac_save_IFS=$IFS; IFS='-'
4075 set x $ac_cv_host
4076 shift
4077 host_cpu=$1
4078 host_vendor=$2
4079 shift; shift
4080 # Remember, the first character of IFS is used to create $*,
4081 # except with old shells:
4082 host_os=$*
4083 IFS=$ac_save_IFS
4084 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4085
4086
4087 # Backslashify metacharacters that are still active within
4088 # double-quoted strings.
4089 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4090
4091 # Same as above, but do not quote variable references.
4092 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4093
4094 # Sed substitution to delay expansion of an escaped shell variable in a
4095 # double_quote_subst'ed string.
4096 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4097
4098 # Sed substitution to delay expansion of an escaped single quote.
4099 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4100
4101 # Sed substitution to avoid accidental globbing in evaled expressions
4102 no_glob_subst='s/\*/\\\*/g'
4103
4104 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4105 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4106 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4107
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4109 $as_echo_n "checking how to print strings... " >&6; }
4110 # Test print first, because it will be a builtin if present.
4111 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4112 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4113 ECHO='print -r --'
4114 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4115 ECHO='printf %s\n'
4116 else
4117 # Use this function as a fallback that always works.
4118 func_fallback_echo ()
4119 {
4120 eval 'cat <<_LTECHO_EOF
4121 $1
4122 _LTECHO_EOF'
4123 }
4124 ECHO='func_fallback_echo'
4125 fi
4126
4127 # func_echo_all arg...
4128 # Invoke $ECHO with all args, space-separated.
4129 func_echo_all ()
4130 {
4131 $ECHO ""
4132 }
4133
4134 case $ECHO in
4135 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4136 $as_echo "printf" >&6; } ;;
4137 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4138 $as_echo "print -r" >&6; } ;;
4139 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4140 $as_echo "cat" >&6; } ;;
4141 esac
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4157 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4158 if ${ac_cv_path_SED+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4162 for ac_i in 1 2 3 4 5 6 7; do
4163 ac_script="$ac_script$as_nl$ac_script"
4164 done
4165 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4166 { ac_script=; unset ac_script;}
4167 if test -z "$SED"; then
4168 ac_path_SED_found=false
4169 # Loop through the user's path and test for each of PROGNAME-LIST
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4172 do
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_prog in sed gsed; do
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4178 as_fn_executable_p "$ac_path_SED" || continue
4179 # Check for GNU ac_path_SED and select it if it is found.
4180 # Check for GNU $ac_path_SED
4181 case `"$ac_path_SED" --version 2>&1` in
4182 *GNU*)
4183 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4184 *)
4185 ac_count=0
4186 $as_echo_n 0123456789 >"conftest.in"
4187 while :
4188 do
4189 cat "conftest.in" "conftest.in" >"conftest.tmp"
4190 mv "conftest.tmp" "conftest.in"
4191 cp "conftest.in" "conftest.nl"
4192 $as_echo '' >> "conftest.nl"
4193 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4195 as_fn_arith $ac_count + 1 && ac_count=$as_val
4196 if test $ac_count -gt ${ac_path_SED_max-0}; then
4197 # Best one so far, save it but keep looking for a better one
4198 ac_cv_path_SED="$ac_path_SED"
4199 ac_path_SED_max=$ac_count
4200 fi
4201 # 10*(2^10) chars as input seems more than enough
4202 test $ac_count -gt 10 && break
4203 done
4204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205 esac
4206
4207 $ac_path_SED_found && break 3
4208 done
4209 done
4210 done
4211 IFS=$as_save_IFS
4212 if test -z "$ac_cv_path_SED"; then
4213 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4214 fi
4215 else
4216 ac_cv_path_SED=$SED
4217 fi
4218
4219 fi
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4221 $as_echo "$ac_cv_path_SED" >&6; }
4222 SED="$ac_cv_path_SED"
4223 rm -f conftest.sed
4224
4225 test -z "$SED" && SED=sed
4226 Xsed="$SED -e 1s/^X//"
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4239 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4240 if ${ac_cv_path_GREP+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 if test -z "$GREP"; then
4244 ac_path_GREP_found=false
4245 # Loop through the user's path and test for each of PROGNAME-LIST
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4248 do
4249 IFS=$as_save_IFS
4250 test -z "$as_dir" && as_dir=.
4251 for ac_prog in grep ggrep; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4254 as_fn_executable_p "$ac_path_GREP" || continue
4255 # Check for GNU ac_path_GREP and select it if it is found.
4256 # Check for GNU $ac_path_GREP
4257 case `"$ac_path_GREP" --version 2>&1` in
4258 *GNU*)
4259 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4260 *)
4261 ac_count=0
4262 $as_echo_n 0123456789 >"conftest.in"
4263 while :
4264 do
4265 cat "conftest.in" "conftest.in" >"conftest.tmp"
4266 mv "conftest.tmp" "conftest.in"
4267 cp "conftest.in" "conftest.nl"
4268 $as_echo 'GREP' >> "conftest.nl"
4269 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4270 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4271 as_fn_arith $ac_count + 1 && ac_count=$as_val
4272 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4273 # Best one so far, save it but keep looking for a better one
4274 ac_cv_path_GREP="$ac_path_GREP"
4275 ac_path_GREP_max=$ac_count
4276 fi
4277 # 10*(2^10) chars as input seems more than enough
4278 test $ac_count -gt 10 && break
4279 done
4280 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4281 esac
4282
4283 $ac_path_GREP_found && break 3
4284 done
4285 done
4286 done
4287 IFS=$as_save_IFS
4288 if test -z "$ac_cv_path_GREP"; then
4289 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4290 fi
4291 else
4292 ac_cv_path_GREP=$GREP
4293 fi
4294
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4297 $as_echo "$ac_cv_path_GREP" >&6; }
4298 GREP="$ac_cv_path_GREP"
4299
4300
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4302 $as_echo_n "checking for egrep... " >&6; }
4303 if ${ac_cv_path_EGREP+:} false; then :
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4307 then ac_cv_path_EGREP="$GREP -E"
4308 else
4309 if test -z "$EGREP"; then
4310 ac_path_EGREP_found=false
4311 # Loop through the user's path and test for each of PROGNAME-LIST
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4314 do
4315 IFS=$as_save_IFS
4316 test -z "$as_dir" && as_dir=.
4317 for ac_prog in egrep; do
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4320 as_fn_executable_p "$ac_path_EGREP" || continue
4321 # Check for GNU ac_path_EGREP and select it if it is found.
4322 # Check for GNU $ac_path_EGREP
4323 case `"$ac_path_EGREP" --version 2>&1` in
4324 *GNU*)
4325 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4326 *)
4327 ac_count=0
4328 $as_echo_n 0123456789 >"conftest.in"
4329 while :
4330 do
4331 cat "conftest.in" "conftest.in" >"conftest.tmp"
4332 mv "conftest.tmp" "conftest.in"
4333 cp "conftest.in" "conftest.nl"
4334 $as_echo 'EGREP' >> "conftest.nl"
4335 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4336 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4337 as_fn_arith $ac_count + 1 && ac_count=$as_val
4338 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4339 # Best one so far, save it but keep looking for a better one
4340 ac_cv_path_EGREP="$ac_path_EGREP"
4341 ac_path_EGREP_max=$ac_count
4342 fi
4343 # 10*(2^10) chars as input seems more than enough
4344 test $ac_count -gt 10 && break
4345 done
4346 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4347 esac
4348
4349 $ac_path_EGREP_found && break 3
4350 done
4351 done
4352 done
4353 IFS=$as_save_IFS
4354 if test -z "$ac_cv_path_EGREP"; then
4355 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4356 fi
4357 else
4358 ac_cv_path_EGREP=$EGREP
4359 fi
4360
4361 fi
4362 fi
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4364 $as_echo "$ac_cv_path_EGREP" >&6; }
4365 EGREP="$ac_cv_path_EGREP"
4366
4367
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4369 $as_echo_n "checking for fgrep... " >&6; }
4370 if ${ac_cv_path_FGREP+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4374 then ac_cv_path_FGREP="$GREP -F"
4375 else
4376 if test -z "$FGREP"; then
4377 ac_path_FGREP_found=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4381 do
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_prog in fgrep; do
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4387 as_fn_executable_p "$ac_path_FGREP" || continue
4388 # Check for GNU ac_path_FGREP and select it if it is found.
4389 # Check for GNU $ac_path_FGREP
4390 case `"$ac_path_FGREP" --version 2>&1` in
4391 *GNU*)
4392 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4393 *)
4394 ac_count=0
4395 $as_echo_n 0123456789 >"conftest.in"
4396 while :
4397 do
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'FGREP' >> "conftest.nl"
4402 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4404 as_fn_arith $ac_count + 1 && ac_count=$as_val
4405 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_FGREP="$ac_path_FGREP"
4408 ac_path_FGREP_max=$ac_count
4409 fi
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4412 done
4413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4414 esac
4415
4416 $ac_path_FGREP_found && break 3
4417 done
4418 done
4419 done
4420 IFS=$as_save_IFS
4421 if test -z "$ac_cv_path_FGREP"; then
4422 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4423 fi
4424 else
4425 ac_cv_path_FGREP=$FGREP
4426 fi
4427
4428 fi
4429 fi
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4431 $as_echo "$ac_cv_path_FGREP" >&6; }
4432 FGREP="$ac_cv_path_FGREP"
4433
4434
4435 test -z "$GREP" && GREP=grep
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455 # Check whether --with-gnu-ld was given.
4456 if test "${with_gnu_ld+set}" = set; then :
4457 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4458 else
4459 with_gnu_ld=no
4460 fi
4461
4462 ac_prog=ld
4463 if test yes = "$GCC"; then
4464 # Check if gcc -print-prog-name=ld gives a path.
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4466 $as_echo_n "checking for ld used by $CC... " >&6; }
4467 case $host in
4468 *-*-mingw*)
4469 # gcc leaves a trailing carriage return, which upsets mingw
4470 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4471 *)
4472 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4473 esac
4474 case $ac_prog in
4475 # Accept absolute paths.
4476 [\\/]* | ?:[\\/]*)
4477 re_direlt='/[^/][^/]*/\.\./'
4478 # Canonicalize the pathname of ld
4479 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4480 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4481 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4482 done
4483 test -z "$LD" && LD=$ac_prog
4484 ;;
4485 "")
4486 # If it fails, then pretend we aren't using GCC.
4487 ac_prog=ld
4488 ;;
4489 *)
4490 # If it is relative, then search for the first ld in PATH.
4491 with_gnu_ld=unknown
4492 ;;
4493 esac
4494 elif test yes = "$with_gnu_ld"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4496 $as_echo_n "checking for GNU ld... " >&6; }
4497 else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4499 $as_echo_n "checking for non-GNU ld... " >&6; }
4500 fi
4501 if ${lt_cv_path_LD+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test -z "$LD"; then
4505 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4506 for ac_dir in $PATH; do
4507 IFS=$lt_save_ifs
4508 test -z "$ac_dir" && ac_dir=.
4509 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4510 lt_cv_path_LD=$ac_dir/$ac_prog
4511 # Check to see if the program is GNU ld. I'd rather use --version,
4512 # but apparently some variants of GNU ld only accept -v.
4513 # Break only if it was the GNU/non-GNU ld that we prefer.
4514 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4515 *GNU* | *'with BFD'*)
4516 test no != "$with_gnu_ld" && break
4517 ;;
4518 *)
4519 test yes != "$with_gnu_ld" && break
4520 ;;
4521 esac
4522 fi
4523 done
4524 IFS=$lt_save_ifs
4525 else
4526 lt_cv_path_LD=$LD # Let the user override the test with a path.
4527 fi
4528 fi
4529
4530 LD=$lt_cv_path_LD
4531 if test -n "$LD"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4533 $as_echo "$LD" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4537 fi
4538 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4540 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4541 if ${lt_cv_prog_gnu_ld+:} false; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4545 case `$LD -v 2>&1 </dev/null` in
4546 *GNU* | *'with BFD'*)
4547 lt_cv_prog_gnu_ld=yes
4548 ;;
4549 *)
4550 lt_cv_prog_gnu_ld=no
4551 ;;
4552 esac
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4555 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4556 with_gnu_ld=$lt_cv_prog_gnu_ld
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4567 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4568 if ${lt_cv_path_NM+:} false; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 if test -n "$NM"; then
4572 # Let the user override the test.
4573 lt_cv_path_NM=$NM
4574 else
4575 lt_nm_to_check=${ac_tool_prefix}nm
4576 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4577 lt_nm_to_check="$lt_nm_to_check nm"
4578 fi
4579 for lt_tmp_nm in $lt_nm_to_check; do
4580 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4581 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4582 IFS=$lt_save_ifs
4583 test -z "$ac_dir" && ac_dir=.
4584 tmp_nm=$ac_dir/$lt_tmp_nm
4585 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4586 # Check to see if the nm accepts a BSD-compat flag.
4587 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4588 # nm: unknown option "B" ignored
4589 # Tru64's nm complains that /dev/null is an invalid object file
4590 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4591 case $build_os in
4592 mingw*) lt_bad_file=conftest.nm/nofile ;;
4593 *) lt_bad_file=/dev/null ;;
4594 esac
4595 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4596 *$lt_bad_file* | *'Invalid file or object type'*)
4597 lt_cv_path_NM="$tmp_nm -B"
4598 break 2
4599 ;;
4600 *)
4601 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4602 */dev/null*)
4603 lt_cv_path_NM="$tmp_nm -p"
4604 break 2
4605 ;;
4606 *)
4607 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4608 continue # so that we can try to find one that supports BSD flags
4609 ;;
4610 esac
4611 ;;
4612 esac
4613 fi
4614 done
4615 IFS=$lt_save_ifs
4616 done
4617 : ${lt_cv_path_NM=no}
4618 fi
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4621 $as_echo "$lt_cv_path_NM" >&6; }
4622 if test no != "$lt_cv_path_NM"; then
4623 NM=$lt_cv_path_NM
4624 else
4625 # Didn't find any BSD compatible name lister, look for dumpbin.
4626 if test -n "$DUMPBIN"; then :
4627 # Let the user override the test.
4628 else
4629 if test -n "$ac_tool_prefix"; then
4630 for ac_prog in dumpbin "link -dump"
4631 do
4632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if ${ac_cv_prog_DUMPBIN+:} false; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$DUMPBIN"; then
4640 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4649 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 DUMPBIN=$ac_cv_prog_DUMPBIN
4660 if test -n "$DUMPBIN"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4662 $as_echo "$DUMPBIN" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668
4669 test -n "$DUMPBIN" && break
4670 done
4671 fi
4672 if test -z "$DUMPBIN"; then
4673 ac_ct_DUMPBIN=$DUMPBIN
4674 for ac_prog in dumpbin "link -dump"
4675 do
4676 # Extract the first word of "$ac_prog", so it can be a program name with args.
4677 set dummy $ac_prog; ac_word=$2
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 $as_echo_n "checking for $ac_word... " >&6; }
4680 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 if test -n "$ac_ct_DUMPBIN"; then
4684 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4685 else
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4696 fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701 fi
4702 fi
4703 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4704 if test -n "$ac_ct_DUMPBIN"; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4706 $as_echo "$ac_ct_DUMPBIN" >&6; }
4707 else
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4709 $as_echo "no" >&6; }
4710 fi
4711
4712
4713 test -n "$ac_ct_DUMPBIN" && break
4714 done
4715
4716 if test "x$ac_ct_DUMPBIN" = x; then
4717 DUMPBIN=":"
4718 else
4719 case $cross_compiling:$ac_tool_warned in
4720 yes:)
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4723 ac_tool_warned=yes ;;
4724 esac
4725 DUMPBIN=$ac_ct_DUMPBIN
4726 fi
4727 fi
4728
4729 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4730 *COFF*)
4731 DUMPBIN="$DUMPBIN -symbols -headers"
4732 ;;
4733 *)
4734 DUMPBIN=:
4735 ;;
4736 esac
4737 fi
4738
4739 if test : != "$DUMPBIN"; then
4740 NM=$DUMPBIN
4741 fi
4742 fi
4743 test -z "$NM" && NM=nm
4744
4745
4746
4747
4748
4749
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4751 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4752 if ${lt_cv_nm_interface+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 lt_cv_nm_interface="BSD nm"
4756 echo "int some_variable = 0;" > conftest.$ac_ext
4757 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4758 (eval "$ac_compile" 2>conftest.err)
4759 cat conftest.err >&5
4760 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4761 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4762 cat conftest.err >&5
4763 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4764 cat conftest.out >&5
4765 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4766 lt_cv_nm_interface="MS dumpbin"
4767 fi
4768 rm -f conftest*
4769 fi
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4771 $as_echo "$lt_cv_nm_interface" >&6; }
4772
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4774 $as_echo_n "checking whether ln -s works... " >&6; }
4775 LN_S=$as_ln_s
4776 if test "$LN_S" = "ln -s"; then
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4778 $as_echo "yes" >&6; }
4779 else
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4781 $as_echo "no, using $LN_S" >&6; }
4782 fi
4783
4784 # find the maximum length of command line arguments
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4786 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4787 if ${lt_cv_sys_max_cmd_len+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 i=0
4791 teststring=ABCD
4792
4793 case $build_os in
4794 msdosdjgpp*)
4795 # On DJGPP, this test can blow up pretty badly due to problems in libc
4796 # (any single argument exceeding 2000 bytes causes a buffer overrun
4797 # during glob expansion). Even if it were fixed, the result of this
4798 # check would be larger than it should be.
4799 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4800 ;;
4801
4802 gnu*)
4803 # Under GNU Hurd, this test is not required because there is
4804 # no limit to the length of command line arguments.
4805 # Libtool will interpret -1 as no limit whatsoever
4806 lt_cv_sys_max_cmd_len=-1;
4807 ;;
4808
4809 cygwin* | mingw* | cegcc*)
4810 # On Win9x/ME, this test blows up -- it succeeds, but takes
4811 # about 5 minutes as the teststring grows exponentially.
4812 # Worse, since 9x/ME are not pre-emptively multitasking,
4813 # you end up with a "frozen" computer, even though with patience
4814 # the test eventually succeeds (with a max line length of 256k).
4815 # Instead, let's just punt: use the minimum linelength reported by
4816 # all of the supported platforms: 8192 (on NT/2K/XP).
4817 lt_cv_sys_max_cmd_len=8192;
4818 ;;
4819
4820 mint*)
4821 # On MiNT this can take a long time and run out of memory.
4822 lt_cv_sys_max_cmd_len=8192;
4823 ;;
4824
4825 amigaos*)
4826 # On AmigaOS with pdksh, this test takes hours, literally.
4827 # So we just punt and use a minimum line length of 8192.
4828 lt_cv_sys_max_cmd_len=8192;
4829 ;;
4830
4831 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4832 # This has been around since 386BSD, at least. Likely further.
4833 if test -x /sbin/sysctl; then
4834 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4835 elif test -x /usr/sbin/sysctl; then
4836 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4837 else
4838 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4839 fi
4840 # And add a safety zone
4841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4843 ;;
4844
4845 interix*)
4846 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4847 lt_cv_sys_max_cmd_len=196608
4848 ;;
4849
4850 os2*)
4851 # The test takes a long time on OS/2.
4852 lt_cv_sys_max_cmd_len=8192
4853 ;;
4854
4855 osf*)
4856 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4857 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4858 # nice to cause kernel panics so lets avoid the loop below.
4859 # First set a reasonable default.
4860 lt_cv_sys_max_cmd_len=16384
4861 #
4862 if test -x /sbin/sysconfig; then
4863 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4864 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4865 esac
4866 fi
4867 ;;
4868 sco3.2v5*)
4869 lt_cv_sys_max_cmd_len=102400
4870 ;;
4871 sysv5* | sco5v6* | sysv4.2uw2*)
4872 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4873 if test -n "$kargmax"; then
4874 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4875 else
4876 lt_cv_sys_max_cmd_len=32768
4877 fi
4878 ;;
4879 *)
4880 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4881 if test -n "$lt_cv_sys_max_cmd_len" && \
4882 test undefined != "$lt_cv_sys_max_cmd_len"; then
4883 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4885 else
4886 # Make teststring a little bigger before we do anything with it.
4887 # a 1K string should be a reasonable start.
4888 for i in 1 2 3 4 5 6 7 8; do
4889 teststring=$teststring$teststring
4890 done
4891 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4892 # If test is not a shell built-in, we'll probably end up computing a
4893 # maximum length that is only half of the actual maximum length, but
4894 # we can't tell.
4895 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4896 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4897 test 17 != "$i" # 1/2 MB should be enough
4898 do
4899 i=`expr $i + 1`
4900 teststring=$teststring$teststring
4901 done
4902 # Only check the string length outside the loop.
4903 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4904 teststring=
4905 # Add a significant safety factor because C++ compilers can tack on
4906 # massive amounts of additional arguments before passing them to the
4907 # linker. It appears as though 1/2 is a usable value.
4908 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4909 fi
4910 ;;
4911 esac
4912
4913 fi
4914
4915 if test -n "$lt_cv_sys_max_cmd_len"; then
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4917 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4918 else
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4920 $as_echo "none" >&6; }
4921 fi
4922 max_cmd_len=$lt_cv_sys_max_cmd_len
4923
4924
4925
4926
4927
4928
4929 : ${CP="cp -f"}
4930 : ${MV="mv -f"}
4931 : ${RM="rm -f"}
4932
4933 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4934 lt_unset=unset
4935 else
4936 lt_unset=false
4937 fi
4938
4939
4940
4941
4942
4943 # test EBCDIC or ASCII
4944 case `echo X|tr X '\101'` in
4945 A) # ASCII based system
4946 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4947 lt_SP2NL='tr \040 \012'
4948 lt_NL2SP='tr \015\012 \040\040'
4949 ;;
4950 *) # EBCDIC based system
4951 lt_SP2NL='tr \100 \n'
4952 lt_NL2SP='tr \r\n \100\100'
4953 ;;
4954 esac
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4965 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4966 if ${lt_cv_to_host_file_cmd+:} false; then :
4967 $as_echo_n "(cached) " >&6
4968 else
4969 case $host in
4970 *-*-mingw* )
4971 case $build in
4972 *-*-mingw* ) # actually msys
4973 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4974 ;;
4975 *-*-cygwin* )
4976 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4977 ;;
4978 * ) # otherwise, assume *nix
4979 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4980 ;;
4981 esac
4982 ;;
4983 *-*-cygwin* )
4984 case $build in
4985 *-*-mingw* ) # actually msys
4986 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4987 ;;
4988 *-*-cygwin* )
4989 lt_cv_to_host_file_cmd=func_convert_file_noop
4990 ;;
4991 * ) # otherwise, assume *nix
4992 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4993 ;;
4994 esac
4995 ;;
4996 * ) # unhandled hosts (and "normal" native builds)
4997 lt_cv_to_host_file_cmd=func_convert_file_noop
4998 ;;
4999 esac
5000
5001 fi
5002
5003 to_host_file_cmd=$lt_cv_to_host_file_cmd
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5005 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5006
5007
5008
5009
5010
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5012 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5013 if ${lt_cv_to_tool_file_cmd+:} false; then :
5014 $as_echo_n "(cached) " >&6
5015 else
5016 #assume ordinary cross tools, or native build.
5017 lt_cv_to_tool_file_cmd=func_convert_file_noop
5018 case $host in
5019 *-*-mingw* )
5020 case $build in
5021 *-*-mingw* ) # actually msys
5022 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5023 ;;
5024 esac
5025 ;;
5026 esac
5027
5028 fi
5029
5030 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5032 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5033
5034
5035
5036
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5039 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5040 if ${lt_cv_ld_reload_flag+:} false; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 lt_cv_ld_reload_flag='-r'
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5046 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5047 reload_flag=$lt_cv_ld_reload_flag
5048 case $reload_flag in
5049 "" | " "*) ;;
5050 *) reload_flag=" $reload_flag" ;;
5051 esac
5052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5053 case $host_os in
5054 cygwin* | mingw* | pw32* | cegcc*)
5055 if test yes != "$GCC"; then
5056 reload_cmds=false
5057 fi
5058 ;;
5059 darwin*)
5060 if test yes = "$GCC"; then
5061 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5062 else
5063 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5064 fi
5065 ;;
5066 esac
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076 if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5078 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_prog_OBJDUMP+:} false; then :
5082 $as_echo_n "(cached) " >&6
5083 else
5084 if test -n "$OBJDUMP"; then
5085 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5086 else
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH
5089 do
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_exec_ext in '' $ac_executable_extensions; do
5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5094 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 break 2
5097 fi
5098 done
5099 done
5100 IFS=$as_save_IFS
5101
5102 fi
5103 fi
5104 OBJDUMP=$ac_cv_prog_OBJDUMP
5105 if test -n "$OBJDUMP"; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5107 $as_echo "$OBJDUMP" >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5110 $as_echo "no" >&6; }
5111 fi
5112
5113
5114 fi
5115 if test -z "$ac_cv_prog_OBJDUMP"; then
5116 ac_ct_OBJDUMP=$OBJDUMP
5117 # Extract the first word of "objdump", so it can be a program name with args.
5118 set dummy objdump; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test -n "$ac_ct_OBJDUMP"; then
5125 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 break 2
5137 fi
5138 done
5139 done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5145 if test -n "$ac_ct_OBJDUMP"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5147 $as_echo "$ac_ct_OBJDUMP" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153 if test "x$ac_ct_OBJDUMP" = x; then
5154 OBJDUMP="false"
5155 else
5156 case $cross_compiling:$ac_tool_warned in
5157 yes:)
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5161 esac
5162 OBJDUMP=$ac_ct_OBJDUMP
5163 fi
5164 else
5165 OBJDUMP="$ac_cv_prog_OBJDUMP"
5166 fi
5167
5168 test -z "$OBJDUMP" && OBJDUMP=objdump
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5179 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5180 if ${lt_cv_deplibs_check_method+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 lt_cv_file_magic_cmd='$MAGIC_CMD'
5184 lt_cv_file_magic_test_file=
5185 lt_cv_deplibs_check_method='unknown'
5186 # Need to set the preceding variable on all platforms that support
5187 # interlibrary dependencies.
5188 # 'none' -- dependencies not supported.
5189 # 'unknown' -- same as none, but documents that we really don't know.
5190 # 'pass_all' -- all dependencies passed with no checks.
5191 # 'test_compile' -- check by making test program.
5192 # 'file_magic [[regex]]' -- check by looking for files in library path
5193 # that responds to the $file_magic_cmd with a given extended regex.
5194 # If you have 'file' or equivalent on your system and you're not sure
5195 # whether 'pass_all' will *always* work, you probably want this one.
5196
5197 case $host_os in
5198 aix[4-9]*)
5199 lt_cv_deplibs_check_method=pass_all
5200 ;;
5201
5202 beos*)
5203 lt_cv_deplibs_check_method=pass_all
5204 ;;
5205
5206 bsdi[45]*)
5207 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5208 lt_cv_file_magic_cmd='/usr/bin/file -L'
5209 lt_cv_file_magic_test_file=/shlib/libc.so
5210 ;;
5211
5212 cygwin*)
5213 # func_win32_libid is a shell function defined in ltmain.sh
5214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5215 lt_cv_file_magic_cmd='func_win32_libid'
5216 ;;
5217
5218 mingw* | pw32*)
5219 # Base MSYS/MinGW do not provide the 'file' command needed by
5220 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5221 # unless we find 'file', for example because we are cross-compiling.
5222 if ( file / ) >/dev/null 2>&1; then
5223 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5224 lt_cv_file_magic_cmd='func_win32_libid'
5225 else
5226 # Keep this pattern in sync with the one in func_win32_libid.
5227 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5228 lt_cv_file_magic_cmd='$OBJDUMP -f'
5229 fi
5230 ;;
5231
5232 cegcc*)
5233 # use the weaker test based on 'objdump'. See mingw*.
5234 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5235 lt_cv_file_magic_cmd='$OBJDUMP -f'
5236 ;;
5237
5238 darwin* | rhapsody*)
5239 lt_cv_deplibs_check_method=pass_all
5240 ;;
5241
5242 freebsd* | dragonfly*)
5243 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5244 case $host_cpu in
5245 i*86 )
5246 # Not sure whether the presence of OpenBSD here was a mistake.
5247 # Let's accept both of them until this is cleared up.
5248 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5249 lt_cv_file_magic_cmd=/usr/bin/file
5250 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5251 ;;
5252 esac
5253 else
5254 lt_cv_deplibs_check_method=pass_all
5255 fi
5256 ;;
5257
5258 haiku*)
5259 lt_cv_deplibs_check_method=pass_all
5260 ;;
5261
5262 hpux10.20* | hpux11*)
5263 lt_cv_file_magic_cmd=/usr/bin/file
5264 case $host_cpu in
5265 ia64*)
5266 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5267 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5268 ;;
5269 hppa*64*)
5270 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]'
5271 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5272 ;;
5273 *)
5274 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5275 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5276 ;;
5277 esac
5278 ;;
5279
5280 interix[3-9]*)
5281 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5283 ;;
5284
5285 irix5* | irix6* | nonstopux*)
5286 case $LD in
5287 *-32|*"-32 ") libmagic=32-bit;;
5288 *-n32|*"-n32 ") libmagic=N32;;
5289 *-64|*"-64 ") libmagic=64-bit;;
5290 *) libmagic=never-match;;
5291 esac
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295 # This must be glibc/ELF.
5296 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5297 lt_cv_deplibs_check_method=pass_all
5298 ;;
5299
5300 netbsd* | netbsdelf*-gnu)
5301 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5302 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5303 else
5304 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5305 fi
5306 ;;
5307
5308 newos6*)
5309 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5310 lt_cv_file_magic_cmd=/usr/bin/file
5311 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5312 ;;
5313
5314 *nto* | *qnx*)
5315 lt_cv_deplibs_check_method=pass_all
5316 ;;
5317
5318 openbsd* | bitrig*)
5319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5321 else
5322 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5323 fi
5324 ;;
5325
5326 osf3* | osf4* | osf5*)
5327 lt_cv_deplibs_check_method=pass_all
5328 ;;
5329
5330 rdos*)
5331 lt_cv_deplibs_check_method=pass_all
5332 ;;
5333
5334 solaris*)
5335 lt_cv_deplibs_check_method=pass_all
5336 ;;
5337
5338 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5339 lt_cv_deplibs_check_method=pass_all
5340 ;;
5341
5342 sysv4 | sysv4.3*)
5343 case $host_vendor in
5344 motorola)
5345 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]'
5346 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5347 ;;
5348 ncr)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351 sequent)
5352 lt_cv_file_magic_cmd='/bin/file'
5353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5354 ;;
5355 sni)
5356 lt_cv_file_magic_cmd='/bin/file'
5357 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5358 lt_cv_file_magic_test_file=/lib/libc.so
5359 ;;
5360 siemens)
5361 lt_cv_deplibs_check_method=pass_all
5362 ;;
5363 pc)
5364 lt_cv_deplibs_check_method=pass_all
5365 ;;
5366 esac
5367 ;;
5368
5369 tpf*)
5370 lt_cv_deplibs_check_method=pass_all
5371 ;;
5372 os2*)
5373 lt_cv_deplibs_check_method=pass_all
5374 ;;
5375 esac
5376
5377 fi
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5379 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5380
5381 file_magic_glob=
5382 want_nocaseglob=no
5383 if test "$build" = "$host"; then
5384 case $host_os in
5385 mingw* | pw32*)
5386 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5387 want_nocaseglob=yes
5388 else
5389 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5390 fi
5391 ;;
5392 esac
5393 fi
5394
5395 file_magic_cmd=$lt_cv_file_magic_cmd
5396 deplibs_check_method=$lt_cv_deplibs_check_method
5397 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420 if test -n "$ac_tool_prefix"; then
5421 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5422 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5424 $as_echo_n "checking for $ac_word... " >&6; }
5425 if ${ac_cv_prog_DLLTOOL+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 if test -n "$DLLTOOL"; then
5429 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5430 else
5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5432 for as_dir in $PATH
5433 do
5434 IFS=$as_save_IFS
5435 test -z "$as_dir" && as_dir=.
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5438 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5440 break 2
5441 fi
5442 done
5443 done
5444 IFS=$as_save_IFS
5445
5446 fi
5447 fi
5448 DLLTOOL=$ac_cv_prog_DLLTOOL
5449 if test -n "$DLLTOOL"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5451 $as_echo "$DLLTOOL" >&6; }
5452 else
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457
5458 fi
5459 if test -z "$ac_cv_prog_DLLTOOL"; then
5460 ac_ct_DLLTOOL=$DLLTOOL
5461 # Extract the first word of "dlltool", so it can be a program name with args.
5462 set dummy dlltool; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 if test -n "$ac_ct_DLLTOOL"; then
5469 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482 done
5483 done
5484 IFS=$as_save_IFS
5485
5486 fi
5487 fi
5488 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5489 if test -n "$ac_ct_DLLTOOL"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5491 $as_echo "$ac_ct_DLLTOOL" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 fi
5496
5497 if test "x$ac_ct_DLLTOOL" = x; then
5498 DLLTOOL="false"
5499 else
5500 case $cross_compiling:$ac_tool_warned in
5501 yes:)
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5504 ac_tool_warned=yes ;;
5505 esac
5506 DLLTOOL=$ac_ct_DLLTOOL
5507 fi
5508 else
5509 DLLTOOL="$ac_cv_prog_DLLTOOL"
5510 fi
5511
5512 test -z "$DLLTOOL" && DLLTOOL=dlltool
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5524 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5525 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 lt_cv_sharedlib_from_linklib_cmd='unknown'
5529
5530 case $host_os in
5531 cygwin* | mingw* | pw32* | cegcc*)
5532 # two different shell functions defined in ltmain.sh;
5533 # decide which one to use based on capabilities of $DLLTOOL
5534 case `$DLLTOOL --help 2>&1` in
5535 *--identify-strict*)
5536 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5537 ;;
5538 *)
5539 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5540 ;;
5541 esac
5542 ;;
5543 *)
5544 # fallback: assume linklib IS sharedlib
5545 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5546 ;;
5547 esac
5548
5549 fi
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5551 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5552 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5553 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5554
5555
5556
5557
5558
5559
5560
5561 if test -n "$ac_tool_prefix"; then
5562 for ac_prog in ar
5563 do
5564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_AR+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570 else
5571 if test -n "$AR"; then
5572 ac_cv_prog_AR="$AR" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577 IFS=$as_save_IFS
5578 test -z "$as_dir" && as_dir=.
5579 for ac_exec_ext in '' $ac_executable_extensions; do
5580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 break 2
5584 fi
5585 done
5586 done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 AR=$ac_cv_prog_AR
5592 if test -n "$AR"; then
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5594 $as_echo "$AR" >&6; }
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600
5601 test -n "$AR" && break
5602 done
5603 fi
5604 if test -z "$AR"; then
5605 ac_ct_AR=$AR
5606 for ac_prog in ar
5607 do
5608 # Extract the first word of "$ac_prog", so it can be a program name with args.
5609 set dummy $ac_prog; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5613 $as_echo_n "(cached) " >&6
5614 else
5615 if test -n "$ac_ct_AR"; then
5616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5617 else
5618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619 for as_dir in $PATH
5620 do
5621 IFS=$as_save_IFS
5622 test -z "$as_dir" && as_dir=.
5623 for ac_exec_ext in '' $ac_executable_extensions; do
5624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5625 ac_cv_prog_ac_ct_AR="$ac_prog"
5626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 break 2
5628 fi
5629 done
5630 done
5631 IFS=$as_save_IFS
5632
5633 fi
5634 fi
5635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5636 if test -n "$ac_ct_AR"; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5638 $as_echo "$ac_ct_AR" >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 test -n "$ac_ct_AR" && break
5646 done
5647
5648 if test "x$ac_ct_AR" = x; then
5649 AR="false"
5650 else
5651 case $cross_compiling:$ac_tool_warned in
5652 yes:)
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5655 ac_tool_warned=yes ;;
5656 esac
5657 AR=$ac_ct_AR
5658 fi
5659 fi
5660
5661 : ${AR=ar}
5662 : ${AR_FLAGS=cru}
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5675 $as_echo_n "checking for archiver @FILE support... " >&6; }
5676 if ${lt_cv_ar_at_file+:} false; then :
5677 $as_echo_n "(cached) " >&6
5678 else
5679 lt_cv_ar_at_file=no
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682
5683 int
5684 main ()
5685 {
5686
5687 ;
5688 return 0;
5689 }
5690 _ACEOF
5691 if ac_fn_c_try_compile "$LINENO"; then :
5692 echo conftest.$ac_objext > conftest.lst
5693 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5695 (eval $lt_ar_try) 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; }
5699 if test 0 -eq "$ac_status"; then
5700 # Ensure the archiver fails upon bogus file names.
5701 rm -f conftest.$ac_objext libconftest.a
5702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5703 (eval $lt_ar_try) 2>&5
5704 ac_status=$?
5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706 test $ac_status = 0; }
5707 if test 0 -ne "$ac_status"; then
5708 lt_cv_ar_at_file=@
5709 fi
5710 fi
5711 rm -f conftest.* libconftest.a
5712
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715
5716 fi
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5718 $as_echo "$lt_cv_ar_at_file" >&6; }
5719
5720 if test no = "$lt_cv_ar_at_file"; then
5721 archiver_list_spec=
5722 else
5723 archiver_list_spec=$lt_cv_ar_at_file
5724 fi
5725
5726
5727
5728
5729
5730
5731
5732 if test -n "$ac_tool_prefix"; then
5733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5734 set dummy ${ac_tool_prefix}strip; ac_word=$2
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5736 $as_echo_n "checking for $ac_word... " >&6; }
5737 if ${ac_cv_prog_STRIP+:} false; then :
5738 $as_echo_n "(cached) " >&6
5739 else
5740 if test -n "$STRIP"; then
5741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5742 else
5743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746 IFS=$as_save_IFS
5747 test -z "$as_dir" && as_dir=.
5748 for ac_exec_ext in '' $ac_executable_extensions; do
5749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5750 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 break 2
5753 fi
5754 done
5755 done
5756 IFS=$as_save_IFS
5757
5758 fi
5759 fi
5760 STRIP=$ac_cv_prog_STRIP
5761 if test -n "$STRIP"; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5763 $as_echo "$STRIP" >&6; }
5764 else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5766 $as_echo "no" >&6; }
5767 fi
5768
5769
5770 fi
5771 if test -z "$ac_cv_prog_STRIP"; then
5772 ac_ct_STRIP=$STRIP
5773 # Extract the first word of "strip", so it can be a program name with args.
5774 set dummy strip; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5778 $as_echo_n "(cached) " >&6
5779 else
5780 if test -n "$ac_ct_STRIP"; then
5781 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786 IFS=$as_save_IFS
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_ac_ct_STRIP="strip"
5791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794 done
5795 done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5801 if test -n "$ac_ct_STRIP"; then
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5803 $as_echo "$ac_ct_STRIP" >&6; }
5804 else
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808
5809 if test "x$ac_ct_STRIP" = x; then
5810 STRIP=":"
5811 else
5812 case $cross_compiling:$ac_tool_warned in
5813 yes:)
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5816 ac_tool_warned=yes ;;
5817 esac
5818 STRIP=$ac_ct_STRIP
5819 fi
5820 else
5821 STRIP="$ac_cv_prog_STRIP"
5822 fi
5823
5824 test -z "$STRIP" && STRIP=:
5825
5826
5827
5828
5829
5830
5831 if test -n "$ac_tool_prefix"; then
5832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5833 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 $as_echo_n "checking for $ac_word... " >&6; }
5836 if ${ac_cv_prog_RANLIB+:} false; then :
5837 $as_echo_n "(cached) " >&6
5838 else
5839 if test -n "$RANLIB"; then
5840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5841 else
5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 for as_dir in $PATH
5844 do
5845 IFS=$as_save_IFS
5846 test -z "$as_dir" && as_dir=.
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851 break 2
5852 fi
5853 done
5854 done
5855 IFS=$as_save_IFS
5856
5857 fi
5858 fi
5859 RANLIB=$ac_cv_prog_RANLIB
5860 if test -n "$RANLIB"; then
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5862 $as_echo "$RANLIB" >&6; }
5863 else
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 $as_echo "no" >&6; }
5866 fi
5867
5868
5869 fi
5870 if test -z "$ac_cv_prog_RANLIB"; then
5871 ac_ct_RANLIB=$RANLIB
5872 # Extract the first word of "ranlib", so it can be a program name with args.
5873 set dummy ranlib; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$ac_ct_RANLIB"; then
5880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_ac_ct_RANLIB="ranlib"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900 if test -n "$ac_ct_RANLIB"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5902 $as_echo "$ac_ct_RANLIB" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908 if test "x$ac_ct_RANLIB" = x; then
5909 RANLIB=":"
5910 else
5911 case $cross_compiling:$ac_tool_warned in
5912 yes:)
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915 ac_tool_warned=yes ;;
5916 esac
5917 RANLIB=$ac_ct_RANLIB
5918 fi
5919 else
5920 RANLIB="$ac_cv_prog_RANLIB"
5921 fi
5922
5923 test -z "$RANLIB" && RANLIB=:
5924
5925
5926
5927
5928
5929
5930 # Determine commands to create old-style static archives.
5931 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5932 old_postinstall_cmds='chmod 644 $oldlib'
5933 old_postuninstall_cmds=
5934
5935 if test -n "$RANLIB"; then
5936 case $host_os in
5937 bitrig* | openbsd*)
5938 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5939 ;;
5940 *)
5941 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5942 ;;
5943 esac
5944 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5945 fi
5946
5947 case $host_os in
5948 darwin*)
5949 lock_old_archive_extraction=yes ;;
5950 *)
5951 lock_old_archive_extraction=no ;;
5952 esac
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992 # If no C compiler was specified, use CC.
5993 LTCC=${LTCC-"$CC"}
5994
5995 # If no C compiler flags were specified, use CFLAGS.
5996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5997
5998 # Allow CC to be a program name with arguments.
5999 compiler=$CC
6000
6001
6002 # Check for command to grab the raw symbol name followed by C symbol from nm.
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6004 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6005 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6006 $as_echo_n "(cached) " >&6
6007 else
6008
6009 # These are sane defaults that work on at least a few old systems.
6010 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6011
6012 # Character class describing NM global symbol codes.
6013 symcode='[BCDEGRST]'
6014
6015 # Regexp to match symbols that can be accessed directly from C.
6016 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6017
6018 # Define system-specific variables.
6019 case $host_os in
6020 aix*)
6021 symcode='[BCDT]'
6022 ;;
6023 cygwin* | mingw* | pw32* | cegcc*)
6024 symcode='[ABCDGISTW]'
6025 ;;
6026 hpux*)
6027 if test ia64 = "$host_cpu"; then
6028 symcode='[ABCDEGRST]'
6029 fi
6030 ;;
6031 irix* | nonstopux*)
6032 symcode='[BCDEGRST]'
6033 ;;
6034 osf*)
6035 symcode='[BCDEGQRST]'
6036 ;;
6037 solaris*)
6038 symcode='[BDRT]'
6039 ;;
6040 sco3.2v5*)
6041 symcode='[DT]'
6042 ;;
6043 sysv4.2uw2*)
6044 symcode='[DT]'
6045 ;;
6046 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6047 symcode='[ABDT]'
6048 ;;
6049 sysv4)
6050 symcode='[DFNSTU]'
6051 ;;
6052 esac
6053
6054 # If we're using GNU nm, then use its standard symbol codes.
6055 case `$NM -V 2>&1` in
6056 *GNU* | *'with BFD'*)
6057 symcode='[ABCDGIRSTW]' ;;
6058 esac
6059
6060 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6061 # Gets list of data symbols to import.
6062 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6063 # Adjust the below global symbol transforms to fixup imported variables.
6064 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6065 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6066 lt_c_name_lib_hook="\
6067 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6068 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6069 else
6070 # Disable hooks by default.
6071 lt_cv_sys_global_symbol_to_import=
6072 lt_cdecl_hook=
6073 lt_c_name_hook=
6074 lt_c_name_lib_hook=
6075 fi
6076
6077 # Transform an extracted symbol line into a proper C declaration.
6078 # Some systems (esp. on ia64) link data and code symbols differently,
6079 # so use this general approach.
6080 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6081 $lt_cdecl_hook\
6082 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6083 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6084
6085 # Transform an extracted symbol line into symbol name and symbol address
6086 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6087 $lt_c_name_hook\
6088 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6089 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6090
6091 # Transform an extracted symbol line into symbol name with lib prefix and
6092 # symbol address.
6093 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6094 $lt_c_name_lib_hook\
6095 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6096 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6097 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6098
6099 # Handle CRLF in mingw tool chain
6100 opt_cr=
6101 case $build_os in
6102 mingw*)
6103 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6104 ;;
6105 esac
6106
6107 # Try without a prefix underscore, then with it.
6108 for ac_symprfx in "" "_"; do
6109
6110 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6111 symxfrm="\\1 $ac_symprfx\\2 \\2"
6112
6113 # Write the raw and C identifiers.
6114 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6115 # Fake it for dumpbin and say T for any non-static function,
6116 # D for any global variable and I for any imported variable.
6117 # Also find C++ and __fastcall symbols from MSVC++,
6118 # which start with @ or ?.
6119 lt_cv_sys_global_symbol_pipe="$AWK '"\
6120 " {last_section=section; section=\$ 3};"\
6121 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6122 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6123 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6124 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6125 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6126 " \$ 0!~/External *\|/{next};"\
6127 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6128 " {if(hide[section]) next};"\
6129 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6130 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6131 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6132 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6133 " ' prfx=^$ac_symprfx"
6134 else
6135 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6136 fi
6137 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6138
6139 # Check to see that the pipe works correctly.
6140 pipe_works=no
6141
6142 rm -f conftest*
6143 cat > conftest.$ac_ext <<_LT_EOF
6144 #ifdef __cplusplus
6145 extern "C" {
6146 #endif
6147 char nm_test_var;
6148 void nm_test_func(void);
6149 void nm_test_func(void){}
6150 #ifdef __cplusplus
6151 }
6152 #endif
6153 int main(){nm_test_var='a';nm_test_func();return(0);}
6154 _LT_EOF
6155
6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157 (eval $ac_compile) 2>&5
6158 ac_status=$?
6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; }; then
6161 # Now try to grab the symbols.
6162 nlist=conftest.nm
6163 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
6164 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
6165 # Try sorting and uniquifying the output.
6166 if sort "$nlist" | uniq > "$nlist"T; then
6167 mv -f "$nlist"T "$nlist"
6168 else
6169 rm -f "$nlist"T
6170 fi
6171
6172 # Make sure that we snagged all the symbols we need.
6173 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6174 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6175 cat <<_LT_EOF > conftest.$ac_ext
6176 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6177 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6178 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6179 relocations are performed -- see ld's documentation on pseudo-relocs. */
6180 # define LT_DLSYM_CONST
6181 #elif defined __osf__
6182 /* This system does not cope well with relocations in const data. */
6183 # define LT_DLSYM_CONST
6184 #else
6185 # define LT_DLSYM_CONST const
6186 #endif
6187
6188 #ifdef __cplusplus
6189 extern "C" {
6190 #endif
6191
6192 _LT_EOF
6193 # Now generate the symbol file.
6194 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6195
6196 cat <<_LT_EOF >> conftest.$ac_ext
6197
6198 /* The mapping between symbol names and symbols. */
6199 LT_DLSYM_CONST struct {
6200 const char *name;
6201 void *address;
6202 }
6203 lt__PROGRAM__LTX_preloaded_symbols[] =
6204 {
6205 { "@PROGRAM@", (void *) 0 },
6206 _LT_EOF
6207 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6208 cat <<\_LT_EOF >> conftest.$ac_ext
6209 {0, (void *) 0}
6210 };
6211
6212 /* This works around a problem in FreeBSD linker */
6213 #ifdef FREEBSD_WORKAROUND
6214 static const void *lt_preloaded_setup() {
6215 return lt__PROGRAM__LTX_preloaded_symbols;
6216 }
6217 #endif
6218
6219 #ifdef __cplusplus
6220 }
6221 #endif
6222 _LT_EOF
6223 # Now try linking the two files.
6224 mv conftest.$ac_objext conftstm.$ac_objext
6225 lt_globsym_save_LIBS=$LIBS
6226 lt_globsym_save_CFLAGS=$CFLAGS
6227 LIBS=conftstm.$ac_objext
6228 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6230 (eval $ac_link) 2>&5
6231 ac_status=$?
6232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6233 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6234 pipe_works=yes
6235 fi
6236 LIBS=$lt_globsym_save_LIBS
6237 CFLAGS=$lt_globsym_save_CFLAGS
6238 else
6239 echo "cannot find nm_test_func in $nlist" >&5
6240 fi
6241 else
6242 echo "cannot find nm_test_var in $nlist" >&5
6243 fi
6244 else
6245 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6246 fi
6247 else
6248 echo "$progname: failed program was:" >&5
6249 cat conftest.$ac_ext >&5
6250 fi
6251 rm -rf conftest* conftst*
6252
6253 # Do not use the global_symbol_pipe unless it works.
6254 if test yes = "$pipe_works"; then
6255 break
6256 else
6257 lt_cv_sys_global_symbol_pipe=
6258 fi
6259 done
6260
6261 fi
6262
6263 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6264 lt_cv_sys_global_symbol_to_cdecl=
6265 fi
6266 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6268 $as_echo "failed" >&6; }
6269 else
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6271 $as_echo "ok" >&6; }
6272 fi
6273
6274 # Response file support.
6275 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6276 nm_file_list_spec='@'
6277 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6278 nm_file_list_spec='@'
6279 fi
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6318 $as_echo_n "checking for sysroot... " >&6; }
6319
6320 # Check whether --with-sysroot was given.
6321 if test "${with_sysroot+set}" = set; then :
6322 withval=$with_sysroot;
6323 else
6324 with_sysroot=no
6325 fi
6326
6327
6328 lt_sysroot=
6329 case $with_sysroot in #(
6330 yes)
6331 if test yes = "$GCC"; then
6332 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6333 fi
6334 ;; #(
6335 /*)
6336 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6337 ;; #(
6338 no|'')
6339 ;; #(
6340 *)
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6342 $as_echo "$with_sysroot" >&6; }
6343 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6344 ;;
6345 esac
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6348 $as_echo "${lt_sysroot:-no}" >&6; }
6349
6350
6351
6352
6353
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6355 $as_echo_n "checking for a working dd... " >&6; }
6356 if ${ac_cv_path_lt_DD+:} false; then :
6357 $as_echo_n "(cached) " >&6
6358 else
6359 printf 0123456789abcdef0123456789abcdef >conftest.i
6360 cat conftest.i conftest.i >conftest2.i
6361 : ${lt_DD:=$DD}
6362 if test -z "$lt_DD"; then
6363 ac_path_lt_DD_found=false
6364 # Loop through the user's path and test for each of PROGNAME-LIST
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_prog in dd; do
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6373 as_fn_executable_p "$ac_path_lt_DD" || continue
6374 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6375 cmp -s conftest.i conftest.out \
6376 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6377 fi
6378 $ac_path_lt_DD_found && break 3
6379 done
6380 done
6381 done
6382 IFS=$as_save_IFS
6383 if test -z "$ac_cv_path_lt_DD"; then
6384 :
6385 fi
6386 else
6387 ac_cv_path_lt_DD=$lt_DD
6388 fi
6389
6390 rm -f conftest.i conftest2.i conftest.out
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6393 $as_echo "$ac_cv_path_lt_DD" >&6; }
6394
6395
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6397 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6398 if ${lt_cv_truncate_bin+:} false; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6401 printf 0123456789abcdef0123456789abcdef >conftest.i
6402 cat conftest.i conftest.i >conftest2.i
6403 lt_cv_truncate_bin=
6404 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6405 cmp -s conftest.i conftest.out \
6406 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6407 fi
6408 rm -f conftest.i conftest2.i conftest.out
6409 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6410 fi
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6412 $as_echo "$lt_cv_truncate_bin" >&6; }
6413
6414
6415
6416
6417
6418
6419
6420 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6421 func_cc_basename ()
6422 {
6423 for cc_temp in $*""; do
6424 case $cc_temp in
6425 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6426 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6427 \-*) ;;
6428 *) break;;
6429 esac
6430 done
6431 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6432 }
6433
6434 # Check whether --enable-libtool-lock was given.
6435 if test "${enable_libtool_lock+set}" = set; then :
6436 enableval=$enable_libtool_lock;
6437 fi
6438
6439 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6440
6441 # Some flags need to be propagated to the compiler or linker for good
6442 # libtool support.
6443 case $host in
6444 ia64-*-hpux*)
6445 # Find out what ABI is being produced by ac_compile, and set mode
6446 # options accordingly.
6447 echo 'int i;' > conftest.$ac_ext
6448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6449 (eval $ac_compile) 2>&5
6450 ac_status=$?
6451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6452 test $ac_status = 0; }; then
6453 case `/usr/bin/file conftest.$ac_objext` in
6454 *ELF-32*)
6455 HPUX_IA64_MODE=32
6456 ;;
6457 *ELF-64*)
6458 HPUX_IA64_MODE=64
6459 ;;
6460 esac
6461 fi
6462 rm -rf conftest*
6463 ;;
6464 *-*-irix6*)
6465 # Find out what ABI is being produced by ac_compile, and set linker
6466 # options accordingly.
6467 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6469 (eval $ac_compile) 2>&5
6470 ac_status=$?
6471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472 test $ac_status = 0; }; then
6473 if test yes = "$lt_cv_prog_gnu_ld"; then
6474 case `/usr/bin/file conftest.$ac_objext` in
6475 *32-bit*)
6476 LD="${LD-ld} -melf32bsmip"
6477 ;;
6478 *N32*)
6479 LD="${LD-ld} -melf32bmipn32"
6480 ;;
6481 *64-bit*)
6482 LD="${LD-ld} -melf64bmip"
6483 ;;
6484 esac
6485 else
6486 case `/usr/bin/file conftest.$ac_objext` in
6487 *32-bit*)
6488 LD="${LD-ld} -32"
6489 ;;
6490 *N32*)
6491 LD="${LD-ld} -n32"
6492 ;;
6493 *64-bit*)
6494 LD="${LD-ld} -64"
6495 ;;
6496 esac
6497 fi
6498 fi
6499 rm -rf conftest*
6500 ;;
6501
6502 mips64*-*linux*)
6503 # Find out what ABI is being produced by ac_compile, and set linker
6504 # options accordingly.
6505 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6507 (eval $ac_compile) 2>&5
6508 ac_status=$?
6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510 test $ac_status = 0; }; then
6511 emul=elf
6512 case `/usr/bin/file conftest.$ac_objext` in
6513 *32-bit*)
6514 emul="${emul}32"
6515 ;;
6516 *64-bit*)
6517 emul="${emul}64"
6518 ;;
6519 esac
6520 case `/usr/bin/file conftest.$ac_objext` in
6521 *MSB*)
6522 emul="${emul}btsmip"
6523 ;;
6524 *LSB*)
6525 emul="${emul}ltsmip"
6526 ;;
6527 esac
6528 case `/usr/bin/file conftest.$ac_objext` in
6529 *N32*)
6530 emul="${emul}n32"
6531 ;;
6532 esac
6533 LD="${LD-ld} -m $emul"
6534 fi
6535 rm -rf conftest*
6536 ;;
6537
6538 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6539 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6540 # Find out what ABI is being produced by ac_compile, and set linker
6541 # options accordingly. Note that the listed cases only cover the
6542 # situations where additional linker options are needed (such as when
6543 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6544 # vice versa); the common cases where no linker options are needed do
6545 # not appear in the list.
6546 echo 'int i;' > conftest.$ac_ext
6547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6548 (eval $ac_compile) 2>&5
6549 ac_status=$?
6550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551 test $ac_status = 0; }; then
6552 case `/usr/bin/file conftest.o` in
6553 *32-bit*)
6554 case $host in
6555 x86_64-*kfreebsd*-gnu)
6556 LD="${LD-ld} -m elf_i386_fbsd"
6557 ;;
6558 x86_64-*linux*)
6559 case `/usr/bin/file conftest.o` in
6560 *x86-64*)
6561 LD="${LD-ld} -m elf32_x86_64"
6562 ;;
6563 *)
6564 LD="${LD-ld} -m elf_i386"
6565 ;;
6566 esac
6567 ;;
6568 powerpc64le-*linux*)
6569 LD="${LD-ld} -m elf32lppclinux"
6570 ;;
6571 powerpc64-*linux*)
6572 LD="${LD-ld} -m elf32ppclinux"
6573 ;;
6574 s390x-*linux*)
6575 LD="${LD-ld} -m elf_s390"
6576 ;;
6577 sparc64-*linux*)
6578 LD="${LD-ld} -m elf32_sparc"
6579 ;;
6580 esac
6581 ;;
6582 *64-bit*)
6583 case $host in
6584 x86_64-*kfreebsd*-gnu)
6585 LD="${LD-ld} -m elf_x86_64_fbsd"
6586 ;;
6587 x86_64-*linux*)
6588 LD="${LD-ld} -m elf_x86_64"
6589 ;;
6590 powerpcle-*linux*)
6591 LD="${LD-ld} -m elf64lppc"
6592 ;;
6593 powerpc-*linux*)
6594 LD="${LD-ld} -m elf64ppc"
6595 ;;
6596 s390*-*linux*|s390*-*tpf*)
6597 LD="${LD-ld} -m elf64_s390"
6598 ;;
6599 sparc*-*linux*)
6600 LD="${LD-ld} -m elf64_sparc"
6601 ;;
6602 esac
6603 ;;
6604 esac
6605 fi
6606 rm -rf conftest*
6607 ;;
6608
6609 *-*-sco3.2v5*)
6610 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6611 SAVE_CFLAGS=$CFLAGS
6612 CFLAGS="$CFLAGS -belf"
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6614 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6615 if ${lt_cv_cc_needs_belf+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 ac_ext=c
6619 ac_cpp='$CPP $CPPFLAGS'
6620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6623
6624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6625 /* end confdefs.h. */
6626
6627 int
6628 main ()
6629 {
6630
6631 ;
6632 return 0;
6633 }
6634 _ACEOF
6635 if ac_fn_c_try_link "$LINENO"; then :
6636 lt_cv_cc_needs_belf=yes
6637 else
6638 lt_cv_cc_needs_belf=no
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext \
6641 conftest$ac_exeext conftest.$ac_ext
6642 ac_ext=c
6643 ac_cpp='$CPP $CPPFLAGS'
6644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647
6648 fi
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6650 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6651 if test yes != "$lt_cv_cc_needs_belf"; then
6652 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6653 CFLAGS=$SAVE_CFLAGS
6654 fi
6655 ;;
6656 *-*solaris*)
6657 # Find out what ABI is being produced by ac_compile, and set linker
6658 # options accordingly.
6659 echo 'int i;' > conftest.$ac_ext
6660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6661 (eval $ac_compile) 2>&5
6662 ac_status=$?
6663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6664 test $ac_status = 0; }; then
6665 case `/usr/bin/file conftest.o` in
6666 *64-bit*)
6667 case $lt_cv_prog_gnu_ld in
6668 yes*)
6669 case $host in
6670 i?86-*-solaris*|x86_64-*-solaris*)
6671 LD="${LD-ld} -m elf_x86_64"
6672 ;;
6673 sparc*-*-solaris*)
6674 LD="${LD-ld} -m elf64_sparc"
6675 ;;
6676 esac
6677 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6678 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6679 LD=${LD-ld}_sol2
6680 fi
6681 ;;
6682 *)
6683 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6684 LD="${LD-ld} -64"
6685 fi
6686 ;;
6687 esac
6688 ;;
6689 esac
6690 fi
6691 rm -rf conftest*
6692 ;;
6693 esac
6694
6695 need_locks=$enable_libtool_lock
6696
6697 if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6699 set dummy ${ac_tool_prefix}mt; ac_word=$2
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6701 $as_echo_n "checking for $ac_word... " >&6; }
6702 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6703 $as_echo_n "(cached) " >&6
6704 else
6705 if test -n "$MANIFEST_TOOL"; then
6706 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6707 else
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6709 for as_dir in $PATH
6710 do
6711 IFS=$as_save_IFS
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6715 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 break 2
6718 fi
6719 done
6720 done
6721 IFS=$as_save_IFS
6722
6723 fi
6724 fi
6725 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6726 if test -n "$MANIFEST_TOOL"; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6728 $as_echo "$MANIFEST_TOOL" >&6; }
6729 else
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6731 $as_echo "no" >&6; }
6732 fi
6733
6734
6735 fi
6736 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6737 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6738 # Extract the first word of "mt", so it can be a program name with args.
6739 set dummy mt; ac_word=$2
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6741 $as_echo_n "checking for $ac_word... " >&6; }
6742 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 if test -n "$ac_ct_MANIFEST_TOOL"; then
6746 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751 IFS=$as_save_IFS
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6755 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6757 break 2
6758 fi
6759 done
6760 done
6761 IFS=$as_save_IFS
6762
6763 fi
6764 fi
6765 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6766 if test -n "$ac_ct_MANIFEST_TOOL"; then
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6768 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6769 else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6771 $as_echo "no" >&6; }
6772 fi
6773
6774 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6775 MANIFEST_TOOL=":"
6776 else
6777 case $cross_compiling:$ac_tool_warned in
6778 yes:)
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6781 ac_tool_warned=yes ;;
6782 esac
6783 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6784 fi
6785 else
6786 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6787 fi
6788
6789 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6791 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6792 if ${lt_cv_path_mainfest_tool+:} false; then :
6793 $as_echo_n "(cached) " >&6
6794 else
6795 lt_cv_path_mainfest_tool=no
6796 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6797 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6798 cat conftest.err >&5
6799 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6800 lt_cv_path_mainfest_tool=yes
6801 fi
6802 rm -f conftest*
6803 fi
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6805 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6806 if test yes != "$lt_cv_path_mainfest_tool"; then
6807 MANIFEST_TOOL=:
6808 fi
6809
6810
6811
6812
6813
6814
6815 case $host_os in
6816 rhapsody* | darwin*)
6817 if test -n "$ac_tool_prefix"; then
6818 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6819 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6821 $as_echo_n "checking for $ac_word... " >&6; }
6822 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6823 $as_echo_n "(cached) " >&6
6824 else
6825 if test -n "$DSYMUTIL"; then
6826 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6827 else
6828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 for as_dir in $PATH
6830 do
6831 IFS=$as_save_IFS
6832 test -z "$as_dir" && as_dir=.
6833 for ac_exec_ext in '' $ac_executable_extensions; do
6834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6835 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6837 break 2
6838 fi
6839 done
6840 done
6841 IFS=$as_save_IFS
6842
6843 fi
6844 fi
6845 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6846 if test -n "$DSYMUTIL"; then
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6848 $as_echo "$DSYMUTIL" >&6; }
6849 else
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6851 $as_echo "no" >&6; }
6852 fi
6853
6854
6855 fi
6856 if test -z "$ac_cv_prog_DSYMUTIL"; then
6857 ac_ct_DSYMUTIL=$DSYMUTIL
6858 # Extract the first word of "dsymutil", so it can be a program name with args.
6859 set dummy dsymutil; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$ac_ct_DSYMUTIL"; then
6866 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6870 do
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6875 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6878 fi
6879 done
6880 done
6881 IFS=$as_save_IFS
6882
6883 fi
6884 fi
6885 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6886 if test -n "$ac_ct_DSYMUTIL"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6888 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6892 fi
6893
6894 if test "x$ac_ct_DSYMUTIL" = x; then
6895 DSYMUTIL=":"
6896 else
6897 case $cross_compiling:$ac_tool_warned in
6898 yes:)
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903 DSYMUTIL=$ac_ct_DSYMUTIL
6904 fi
6905 else
6906 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6907 fi
6908
6909 if test -n "$ac_tool_prefix"; then
6910 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6911 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6913 $as_echo_n "checking for $ac_word... " >&6; }
6914 if ${ac_cv_prog_NMEDIT+:} false; then :
6915 $as_echo_n "(cached) " >&6
6916 else
6917 if test -n "$NMEDIT"; then
6918 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6919 else
6920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921 for as_dir in $PATH
6922 do
6923 IFS=$as_save_IFS
6924 test -z "$as_dir" && as_dir=.
6925 for ac_exec_ext in '' $ac_executable_extensions; do
6926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6927 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6929 break 2
6930 fi
6931 done
6932 done
6933 IFS=$as_save_IFS
6934
6935 fi
6936 fi
6937 NMEDIT=$ac_cv_prog_NMEDIT
6938 if test -n "$NMEDIT"; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6940 $as_echo "$NMEDIT" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945
6946
6947 fi
6948 if test -z "$ac_cv_prog_NMEDIT"; then
6949 ac_ct_NMEDIT=$NMEDIT
6950 # Extract the first word of "nmedit", so it can be a program name with args.
6951 set dummy nmedit; ac_word=$2
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6953 $as_echo_n "checking for $ac_word... " >&6; }
6954 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 if test -n "$ac_ct_NMEDIT"; then
6958 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6959 else
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6962 do
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_exec_ext in '' $ac_executable_extensions; do
6966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6967 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6969 break 2
6970 fi
6971 done
6972 done
6973 IFS=$as_save_IFS
6974
6975 fi
6976 fi
6977 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6978 if test -n "$ac_ct_NMEDIT"; then
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6980 $as_echo "$ac_ct_NMEDIT" >&6; }
6981 else
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6983 $as_echo "no" >&6; }
6984 fi
6985
6986 if test "x$ac_ct_NMEDIT" = x; then
6987 NMEDIT=":"
6988 else
6989 case $cross_compiling:$ac_tool_warned in
6990 yes:)
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6993 ac_tool_warned=yes ;;
6994 esac
6995 NMEDIT=$ac_ct_NMEDIT
6996 fi
6997 else
6998 NMEDIT="$ac_cv_prog_NMEDIT"
6999 fi
7000
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if ${ac_cv_prog_LIPO+:} false; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$LIPO"; then
7010 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7014 do
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7019 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7022 fi
7023 done
7024 done
7025 IFS=$as_save_IFS
7026
7027 fi
7028 fi
7029 LIPO=$ac_cv_prog_LIPO
7030 if test -n "$LIPO"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7032 $as_echo "$LIPO" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038
7039 fi
7040 if test -z "$ac_cv_prog_LIPO"; then
7041 ac_ct_LIPO=$LIPO
7042 # Extract the first word of "lipo", so it can be a program name with args.
7043 set dummy lipo; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 if test -n "$ac_ct_LIPO"; then
7050 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059 ac_cv_prog_ac_ct_LIPO="lipo"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7062 fi
7063 done
7064 done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7070 if test -n "$ac_ct_LIPO"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7072 $as_echo "$ac_ct_LIPO" >&6; }
7073 else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078 if test "x$ac_ct_LIPO" = x; then
7079 LIPO=":"
7080 else
7081 case $cross_compiling:$ac_tool_warned in
7082 yes:)
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085 ac_tool_warned=yes ;;
7086 esac
7087 LIPO=$ac_ct_LIPO
7088 fi
7089 else
7090 LIPO="$ac_cv_prog_LIPO"
7091 fi
7092
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}otool; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if ${ac_cv_prog_OTOOL+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$OTOOL"; then
7102 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7106 do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115 done
7116 done
7117 IFS=$as_save_IFS
7118
7119 fi
7120 fi
7121 OTOOL=$ac_cv_prog_OTOOL
7122 if test -n "$OTOOL"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7124 $as_echo "$OTOOL" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test -z "$ac_cv_prog_OTOOL"; then
7133 ac_ct_OTOOL=$OTOOL
7134 # Extract the first word of "otool", so it can be a program name with args.
7135 set dummy otool; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$ac_ct_OTOOL"; then
7142 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_ac_ct_OTOOL="otool"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155 done
7156 done
7157 IFS=$as_save_IFS
7158
7159 fi
7160 fi
7161 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7162 if test -n "$ac_ct_OTOOL"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7164 $as_echo "$ac_ct_OTOOL" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7168 fi
7169
7170 if test "x$ac_ct_OTOOL" = x; then
7171 OTOOL=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179 OTOOL=$ac_ct_OTOOL
7180 fi
7181 else
7182 OTOOL="$ac_cv_prog_OTOOL"
7183 fi
7184
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_OTOOL64+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$OTOOL64"; then
7194 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207 done
7208 done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 OTOOL64=$ac_cv_prog_OTOOL64
7214 if test -n "$OTOOL64"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7216 $as_echo "$OTOOL64" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222
7223 fi
7224 if test -z "$ac_cv_prog_OTOOL64"; then
7225 ac_ct_OTOOL64=$OTOOL64
7226 # Extract the first word of "otool64", so it can be a program name with args.
7227 set dummy otool64; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$ac_ct_OTOOL64"; then
7234 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7238 do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_ac_ct_OTOOL64="otool64"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247 done
7248 done
7249 IFS=$as_save_IFS
7250
7251 fi
7252 fi
7253 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7254 if test -n "$ac_ct_OTOOL64"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7256 $as_echo "$ac_ct_OTOOL64" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7260 fi
7261
7262 if test "x$ac_ct_OTOOL64" = x; then
7263 OTOOL64=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271 OTOOL64=$ac_ct_OTOOL64
7272 fi
7273 else
7274 OTOOL64="$ac_cv_prog_OTOOL64"
7275 fi
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7304 $as_echo_n "checking for -single_module linker flag... " >&6; }
7305 if ${lt_cv_apple_cc_single_mod+:} false; then :
7306 $as_echo_n "(cached) " >&6
7307 else
7308 lt_cv_apple_cc_single_mod=no
7309 if test -z "$LT_MULTI_MODULE"; then
7310 # By default we will add the -single_module flag. You can override
7311 # by either setting the environment variable LT_MULTI_MODULE
7312 # non-empty at configure time, or by adding -multi_module to the
7313 # link flags.
7314 rm -rf libconftest.dylib*
7315 echo "int foo(void){return 1;}" > conftest.c
7316 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7317 -dynamiclib -Wl,-single_module conftest.c" >&5
7318 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7319 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7320 _lt_result=$?
7321 # If there is a non-empty error log, and "single_module"
7322 # appears in it, assume the flag caused a linker warning
7323 if test -s conftest.err && $GREP single_module conftest.err; then
7324 cat conftest.err >&5
7325 # Otherwise, if the output was created with a 0 exit code from
7326 # the compiler, it worked.
7327 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7328 lt_cv_apple_cc_single_mod=yes
7329 else
7330 cat conftest.err >&5
7331 fi
7332 rm -rf libconftest.dylib*
7333 rm -f conftest.*
7334 fi
7335 fi
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7337 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7338
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7340 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7341 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 lt_cv_ld_exported_symbols_list=no
7345 save_LDFLAGS=$LDFLAGS
7346 echo "_main" > conftest.sym
7347 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349 /* end confdefs.h. */
7350
7351 int
7352 main ()
7353 {
7354
7355 ;
7356 return 0;
7357 }
7358 _ACEOF
7359 if ac_fn_c_try_link "$LINENO"; then :
7360 lt_cv_ld_exported_symbols_list=yes
7361 else
7362 lt_cv_ld_exported_symbols_list=no
7363 fi
7364 rm -f core conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7366 LDFLAGS=$save_LDFLAGS
7367
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7370 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7371
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7373 $as_echo_n "checking for -force_load linker flag... " >&6; }
7374 if ${lt_cv_ld_force_load+:} false; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 lt_cv_ld_force_load=no
7378 cat > conftest.c << _LT_EOF
7379 int forced_loaded() { return 2;}
7380 _LT_EOF
7381 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7382 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7383 echo "$AR cru libconftest.a conftest.o" >&5
7384 $AR cru libconftest.a conftest.o 2>&5
7385 echo "$RANLIB libconftest.a" >&5
7386 $RANLIB libconftest.a 2>&5
7387 cat > conftest.c << _LT_EOF
7388 int main() { return 0;}
7389 _LT_EOF
7390 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7391 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7392 _lt_result=$?
7393 if test -s conftest.err && $GREP force_load conftest.err; then
7394 cat conftest.err >&5
7395 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7396 lt_cv_ld_force_load=yes
7397 else
7398 cat conftest.err >&5
7399 fi
7400 rm -f conftest.err libconftest.a conftest conftest.c
7401 rm -rf conftest.dSYM
7402
7403 fi
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7405 $as_echo "$lt_cv_ld_force_load" >&6; }
7406 case $host_os in
7407 rhapsody* | darwin1.[012])
7408 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7409 darwin1.*)
7410 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7411 darwin*) # darwin 5.x on
7412 # if running on 10.5 or later, the deployment target defaults
7413 # to the OS version, if on x86, and 10.4, the deployment
7414 # target defaults to 10.4. Don't you love it?
7415 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7416 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7417 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7418 10.[012][,.]*)
7419 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7420 10.*)
7421 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7422 esac
7423 ;;
7424 esac
7425 if test yes = "$lt_cv_apple_cc_single_mod"; then
7426 _lt_dar_single_mod='$single_module'
7427 fi
7428 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7429 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7430 else
7431 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7432 fi
7433 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7434 _lt_dsymutil='~$DSYMUTIL $lib || :'
7435 else
7436 _lt_dsymutil=
7437 fi
7438 ;;
7439 esac
7440
7441 # func_munge_path_list VARIABLE PATH
7442 # -----------------------------------
7443 # VARIABLE is name of variable containing _space_ separated list of
7444 # directories to be munged by the contents of PATH, which is string
7445 # having a format:
7446 # "DIR[:DIR]:"
7447 # string "DIR[ DIR]" will be prepended to VARIABLE
7448 # ":DIR[:DIR]"
7449 # string "DIR[ DIR]" will be appended to VARIABLE
7450 # "DIRP[:DIRP]::[DIRA:]DIRA"
7451 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7452 # "DIRA[ DIRA]" will be appended to VARIABLE
7453 # "DIR[:DIR]"
7454 # VARIABLE will be replaced by "DIR[ DIR]"
7455 func_munge_path_list ()
7456 {
7457 case x$2 in
7458 x)
7459 ;;
7460 *:)
7461 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7462 ;;
7463 x:*)
7464 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7465 ;;
7466 *::*)
7467 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7468 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7469 ;;
7470 *)
7471 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7472 ;;
7473 esac
7474 }
7475
7476 ac_ext=c
7477 ac_cpp='$CPP $CPPFLAGS'
7478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7482 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7483 # On Suns, sometimes $CPP names a directory.
7484 if test -n "$CPP" && test -d "$CPP"; then
7485 CPP=
7486 fi
7487 if test -z "$CPP"; then
7488 if ${ac_cv_prog_CPP+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 # Double quotes because CPP needs to be expanded
7492 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7493 do
7494 ac_preproc_ok=false
7495 for ac_c_preproc_warn_flag in '' yes
7496 do
7497 # Use a header file that comes with gcc, so configuring glibc
7498 # with a fresh cross-compiler works.
7499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7500 # <limits.h> exists even on freestanding compilers.
7501 # On the NeXT, cc -E runs the code through the compiler's parser,
7502 # not just through cpp. "Syntax error" is here to catch this case.
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 #ifdef __STDC__
7506 # include <limits.h>
7507 #else
7508 # include <assert.h>
7509 #endif
7510 Syntax error
7511 _ACEOF
7512 if ac_fn_c_try_cpp "$LINENO"; then :
7513
7514 else
7515 # Broken: fails on valid input.
7516 continue
7517 fi
7518 rm -f conftest.err conftest.i conftest.$ac_ext
7519
7520 # OK, works on sane cases. Now check whether nonexistent headers
7521 # can be detected and how.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <ac_nonexistent.h>
7525 _ACEOF
7526 if ac_fn_c_try_cpp "$LINENO"; then :
7527 # Broken: success on invalid input.
7528 continue
7529 else
7530 # Passes both tests.
7531 ac_preproc_ok=:
7532 break
7533 fi
7534 rm -f conftest.err conftest.i conftest.$ac_ext
7535
7536 done
7537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7538 rm -f conftest.i conftest.err conftest.$ac_ext
7539 if $ac_preproc_ok; then :
7540 break
7541 fi
7542
7543 done
7544 ac_cv_prog_CPP=$CPP
7545
7546 fi
7547 CPP=$ac_cv_prog_CPP
7548 else
7549 ac_cv_prog_CPP=$CPP
7550 fi
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7552 $as_echo "$CPP" >&6; }
7553 ac_preproc_ok=false
7554 for ac_c_preproc_warn_flag in '' yes
7555 do
7556 # Use a header file that comes with gcc, so configuring glibc
7557 # with a fresh cross-compiler works.
7558 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7559 # <limits.h> exists even on freestanding compilers.
7560 # On the NeXT, cc -E runs the code through the compiler's parser,
7561 # not just through cpp. "Syntax error" is here to catch this case.
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 #ifdef __STDC__
7565 # include <limits.h>
7566 #else
7567 # include <assert.h>
7568 #endif
7569 Syntax error
7570 _ACEOF
7571 if ac_fn_c_try_cpp "$LINENO"; then :
7572
7573 else
7574 # Broken: fails on valid input.
7575 continue
7576 fi
7577 rm -f conftest.err conftest.i conftest.$ac_ext
7578
7579 # OK, works on sane cases. Now check whether nonexistent headers
7580 # can be detected and how.
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 #include <ac_nonexistent.h>
7584 _ACEOF
7585 if ac_fn_c_try_cpp "$LINENO"; then :
7586 # Broken: success on invalid input.
7587 continue
7588 else
7589 # Passes both tests.
7590 ac_preproc_ok=:
7591 break
7592 fi
7593 rm -f conftest.err conftest.i conftest.$ac_ext
7594
7595 done
7596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7597 rm -f conftest.i conftest.err conftest.$ac_ext
7598 if $ac_preproc_ok; then :
7599
7600 else
7601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7603 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7604 See \`config.log' for more details" "$LINENO" 5; }
7605 fi
7606
7607 ac_ext=c
7608 ac_cpp='$CPP $CPPFLAGS'
7609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7612
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7615 $as_echo_n "checking for ANSI C header files... " >&6; }
7616 if ${ac_cv_header_stdc+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7620 /* end confdefs.h. */
7621 #include <stdlib.h>
7622 #include <stdarg.h>
7623 #include <string.h>
7624 #include <float.h>
7625
7626 int
7627 main ()
7628 {
7629
7630 ;
7631 return 0;
7632 }
7633 _ACEOF
7634 if ac_fn_c_try_compile "$LINENO"; then :
7635 ac_cv_header_stdc=yes
7636 else
7637 ac_cv_header_stdc=no
7638 fi
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640
7641 if test $ac_cv_header_stdc = yes; then
7642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h. */
7645 #include <string.h>
7646
7647 _ACEOF
7648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7649 $EGREP "memchr" >/dev/null 2>&1; then :
7650
7651 else
7652 ac_cv_header_stdc=no
7653 fi
7654 rm -f conftest*
7655
7656 fi
7657
7658 if test $ac_cv_header_stdc = yes; then
7659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7661 /* end confdefs.h. */
7662 #include <stdlib.h>
7663
7664 _ACEOF
7665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7666 $EGREP "free" >/dev/null 2>&1; then :
7667
7668 else
7669 ac_cv_header_stdc=no
7670 fi
7671 rm -f conftest*
7672
7673 fi
7674
7675 if test $ac_cv_header_stdc = yes; then
7676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7677 if test "$cross_compiling" = yes; then :
7678 :
7679 else
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #include <ctype.h>
7683 #include <stdlib.h>
7684 #if ((' ' & 0x0FF) == 0x020)
7685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7687 #else
7688 # define ISLOWER(c) \
7689 (('a' <= (c) && (c) <= 'i') \
7690 || ('j' <= (c) && (c) <= 'r') \
7691 || ('s' <= (c) && (c) <= 'z'))
7692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7693 #endif
7694
7695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7696 int
7697 main ()
7698 {
7699 int i;
7700 for (i = 0; i < 256; i++)
7701 if (XOR (islower (i), ISLOWER (i))
7702 || toupper (i) != TOUPPER (i))
7703 return 2;
7704 return 0;
7705 }
7706 _ACEOF
7707 if ac_fn_c_try_run "$LINENO"; then :
7708
7709 else
7710 ac_cv_header_stdc=no
7711 fi
7712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7713 conftest.$ac_objext conftest.beam conftest.$ac_ext
7714 fi
7715
7716 fi
7717 fi
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7719 $as_echo "$ac_cv_header_stdc" >&6; }
7720 if test $ac_cv_header_stdc = yes; then
7721
7722 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7723
7724 fi
7725
7726 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7727 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7728 inttypes.h stdint.h unistd.h
7729 do :
7730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7731 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7732 "
7733 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7734 cat >>confdefs.h <<_ACEOF
7735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7736 _ACEOF
7737
7738 fi
7739
7740 done
7741
7742
7743 for ac_header in dlfcn.h
7744 do :
7745 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7746 "
7747 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7748 cat >>confdefs.h <<_ACEOF
7749 #define HAVE_DLFCN_H 1
7750 _ACEOF
7751
7752 fi
7753
7754 done
7755
7756
7757
7758
7759
7760 # Set options
7761
7762
7763
7764 enable_dlopen=no
7765
7766
7767 enable_win32_dll=no
7768
7769
7770 # Check whether --enable-shared was given.
7771 if test "${enable_shared+set}" = set; then :
7772 enableval=$enable_shared; p=${PACKAGE-default}
7773 case $enableval in
7774 yes) enable_shared=yes ;;
7775 no) enable_shared=no ;;
7776 *)
7777 enable_shared=no
7778 # Look at the argument we got. We use all the common list separators.
7779 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7780 for pkg in $enableval; do
7781 IFS=$lt_save_ifs
7782 if test "X$pkg" = "X$p"; then
7783 enable_shared=yes
7784 fi
7785 done
7786 IFS=$lt_save_ifs
7787 ;;
7788 esac
7789 else
7790 enable_shared=yes
7791 fi
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801 # Check whether --enable-static was given.
7802 if test "${enable_static+set}" = set; then :
7803 enableval=$enable_static; p=${PACKAGE-default}
7804 case $enableval in
7805 yes) enable_static=yes ;;
7806 no) enable_static=no ;;
7807 *)
7808 enable_static=no
7809 # Look at the argument we got. We use all the common list separators.
7810 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7811 for pkg in $enableval; do
7812 IFS=$lt_save_ifs
7813 if test "X$pkg" = "X$p"; then
7814 enable_static=yes
7815 fi
7816 done
7817 IFS=$lt_save_ifs
7818 ;;
7819 esac
7820 else
7821 enable_static=yes
7822 fi
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833 # Check whether --with-pic was given.
7834 if test "${with_pic+set}" = set; then :
7835 withval=$with_pic; lt_p=${PACKAGE-default}
7836 case $withval in
7837 yes|no) pic_mode=$withval ;;
7838 *)
7839 pic_mode=default
7840 # Look at the argument we got. We use all the common list separators.
7841 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7842 for lt_pkg in $withval; do
7843 IFS=$lt_save_ifs
7844 if test "X$lt_pkg" = "X$lt_p"; then
7845 pic_mode=yes
7846 fi
7847 done
7848 IFS=$lt_save_ifs
7849 ;;
7850 esac
7851 else
7852 pic_mode=default
7853 fi
7854
7855
7856
7857
7858
7859
7860
7861
7862 # Check whether --enable-fast-install was given.
7863 if test "${enable_fast_install+set}" = set; then :
7864 enableval=$enable_fast_install; p=${PACKAGE-default}
7865 case $enableval in
7866 yes) enable_fast_install=yes ;;
7867 no) enable_fast_install=no ;;
7868 *)
7869 enable_fast_install=no
7870 # Look at the argument we got. We use all the common list separators.
7871 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7872 for pkg in $enableval; do
7873 IFS=$lt_save_ifs
7874 if test "X$pkg" = "X$p"; then
7875 enable_fast_install=yes
7876 fi
7877 done
7878 IFS=$lt_save_ifs
7879 ;;
7880 esac
7881 else
7882 enable_fast_install=yes
7883 fi
7884
7885
7886
7887
7888
7889
7890
7891
7892 shared_archive_member_spec=
7893 case $host,$enable_shared in
7894 power*-*-aix[5-9]*,yes)
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7896 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7897
7898 # Check whether --with-aix-soname was given.
7899 if test "${with_aix_soname+set}" = set; then :
7900 withval=$with_aix_soname; case $withval in
7901 aix|svr4|both)
7902 ;;
7903 *)
7904 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7905 ;;
7906 esac
7907 lt_cv_with_aix_soname=$with_aix_soname
7908 else
7909 if ${lt_cv_with_aix_soname+:} false; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 lt_cv_with_aix_soname=aix
7913 fi
7914
7915 with_aix_soname=$lt_cv_with_aix_soname
7916 fi
7917
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7919 $as_echo "$with_aix_soname" >&6; }
7920 if test aix != "$with_aix_soname"; then
7921 # For the AIX way of multilib, we name the shared archive member
7922 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7923 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7924 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7925 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7926 if test 64 = "${OBJECT_MODE-32}"; then
7927 shared_archive_member_spec=shr_64
7928 else
7929 shared_archive_member_spec=shr
7930 fi
7931 fi
7932 ;;
7933 *)
7934 with_aix_soname=aix
7935 ;;
7936 esac
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 # This can be used to rebuild libtool when needed
7948 LIBTOOL_DEPS=$ltmain
7949
7950 # Always use our own libtool.
7951 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982 test -z "$LN_S" && LN_S="ln -s"
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997 if test -n "${ZSH_VERSION+set}"; then
7998 setopt NO_GLOB_SUBST
7999 fi
8000
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8002 $as_echo_n "checking for objdir... " >&6; }
8003 if ${lt_cv_objdir+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 rm -f .libs 2>/dev/null
8007 mkdir .libs 2>/dev/null
8008 if test -d .libs; then
8009 lt_cv_objdir=.libs
8010 else
8011 # MS-DOS does not allow filenames that begin with a dot.
8012 lt_cv_objdir=_libs
8013 fi
8014 rmdir .libs 2>/dev/null
8015 fi
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8017 $as_echo "$lt_cv_objdir" >&6; }
8018 objdir=$lt_cv_objdir
8019
8020
8021
8022
8023
8024 cat >>confdefs.h <<_ACEOF
8025 #define LT_OBJDIR "$lt_cv_objdir/"
8026 _ACEOF
8027
8028
8029
8030
8031 case $host_os in
8032 aix3*)
8033 # AIX sometimes has problems with the GCC collect2 program. For some
8034 # reason, if we set the COLLECT_NAMES environment variable, the problems
8035 # vanish in a puff of smoke.
8036 if test set != "${COLLECT_NAMES+set}"; then
8037 COLLECT_NAMES=
8038 export COLLECT_NAMES
8039 fi
8040 ;;
8041 esac
8042
8043 # Global variables:
8044 ofile=libtool
8045 can_build_shared=yes
8046
8047 # All known linkers require a '.a' archive for static linking (except MSVC,
8048 # which needs '.lib').
8049 libext=a
8050
8051 with_gnu_ld=$lt_cv_prog_gnu_ld
8052
8053 old_CC=$CC
8054 old_CFLAGS=$CFLAGS
8055
8056 # Set sane defaults for various variables
8057 test -z "$CC" && CC=cc
8058 test -z "$LTCC" && LTCC=$CC
8059 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8060 test -z "$LD" && LD=ld
8061 test -z "$ac_objext" && ac_objext=o
8062
8063 func_cc_basename $compiler
8064 cc_basename=$func_cc_basename_result
8065
8066
8067 # Only perform the check for file, if the check method requires it
8068 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8069 case $deplibs_check_method in
8070 file_magic*)
8071 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8073 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8074 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077 case $MAGIC_CMD in
8078 [\\/*] | ?:[\\/]*)
8079 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8080 ;;
8081 *)
8082 lt_save_MAGIC_CMD=$MAGIC_CMD
8083 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8084 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8085 for ac_dir in $ac_dummy; do
8086 IFS=$lt_save_ifs
8087 test -z "$ac_dir" && ac_dir=.
8088 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8089 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8090 if test -n "$file_magic_test_file"; then
8091 case $deplibs_check_method in
8092 "file_magic "*)
8093 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8094 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8096 $EGREP "$file_magic_regex" > /dev/null; then
8097 :
8098 else
8099 cat <<_LT_EOF 1>&2
8100
8101 *** Warning: the command libtool uses to detect shared libraries,
8102 *** $file_magic_cmd, produces output that libtool cannot recognize.
8103 *** The result is that libtool may fail to recognize shared libraries
8104 *** as such. This will affect the creation of libtool libraries that
8105 *** depend on shared libraries, but programs linked with such libtool
8106 *** libraries will work regardless of this problem. Nevertheless, you
8107 *** may want to report the problem to your system manager and/or to
8108 *** [email protected]
8109
8110 _LT_EOF
8111 fi ;;
8112 esac
8113 fi
8114 break
8115 fi
8116 done
8117 IFS=$lt_save_ifs
8118 MAGIC_CMD=$lt_save_MAGIC_CMD
8119 ;;
8120 esac
8121 fi
8122
8123 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8124 if test -n "$MAGIC_CMD"; then
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8126 $as_echo "$MAGIC_CMD" >&6; }
8127 else
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129 $as_echo "no" >&6; }
8130 fi
8131
8132
8133
8134
8135
8136 if test -z "$lt_cv_path_MAGIC_CMD"; then
8137 if test -n "$ac_tool_prefix"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8139 $as_echo_n "checking for file... " >&6; }
8140 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 case $MAGIC_CMD in
8144 [\\/*] | ?:[\\/]*)
8145 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8146 ;;
8147 *)
8148 lt_save_MAGIC_CMD=$MAGIC_CMD
8149 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8150 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8151 for ac_dir in $ac_dummy; do
8152 IFS=$lt_save_ifs
8153 test -z "$ac_dir" && ac_dir=.
8154 if test -f "$ac_dir/file"; then
8155 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8156 if test -n "$file_magic_test_file"; then
8157 case $deplibs_check_method in
8158 "file_magic "*)
8159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8160 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8162 $EGREP "$file_magic_regex" > /dev/null; then
8163 :
8164 else
8165 cat <<_LT_EOF 1>&2
8166
8167 *** Warning: the command libtool uses to detect shared libraries,
8168 *** $file_magic_cmd, produces output that libtool cannot recognize.
8169 *** The result is that libtool may fail to recognize shared libraries
8170 *** as such. This will affect the creation of libtool libraries that
8171 *** depend on shared libraries, but programs linked with such libtool
8172 *** libraries will work regardless of this problem. Nevertheless, you
8173 *** may want to report the problem to your system manager and/or to
8174 *** [email protected]
8175
8176 _LT_EOF
8177 fi ;;
8178 esac
8179 fi
8180 break
8181 fi
8182 done
8183 IFS=$lt_save_ifs
8184 MAGIC_CMD=$lt_save_MAGIC_CMD
8185 ;;
8186 esac
8187 fi
8188
8189 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8190 if test -n "$MAGIC_CMD"; then
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8192 $as_echo "$MAGIC_CMD" >&6; }
8193 else
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197
8198
8199 else
8200 MAGIC_CMD=:
8201 fi
8202 fi
8203
8204 fi
8205 ;;
8206 esac
8207
8208 # Use C for the default configuration in the libtool script
8209
8210 lt_save_CC=$CC
8211 ac_ext=c
8212 ac_cpp='$CPP $CPPFLAGS'
8213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8216
8217
8218 # Source file extension for C test sources.
8219 ac_ext=c
8220
8221 # Object file extension for compiled C test sources.
8222 objext=o
8223 objext=$objext
8224
8225 # Code to be used in simple compile tests
8226 lt_simple_compile_test_code="int some_variable = 0;"
8227
8228 # Code to be used in simple link tests
8229 lt_simple_link_test_code='int main(){return(0);}'
8230
8231
8232
8233
8234
8235
8236
8237 # If no C compiler was specified, use CC.
8238 LTCC=${LTCC-"$CC"}
8239
8240 # If no C compiler flags were specified, use CFLAGS.
8241 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8242
8243 # Allow CC to be a program name with arguments.
8244 compiler=$CC
8245
8246 # Save the default compiler, since it gets overwritten when the other
8247 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8248 compiler_DEFAULT=$CC
8249
8250 # save warnings/boilerplate of simple test code
8251 ac_outfile=conftest.$ac_objext
8252 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8253 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8254 _lt_compiler_boilerplate=`cat conftest.err`
8255 $RM conftest*
8256
8257 ac_outfile=conftest.$ac_objext
8258 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8259 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8260 _lt_linker_boilerplate=`cat conftest.err`
8261 $RM -r conftest*
8262
8263
8264 ## CAVEAT EMPTOR:
8265 ## There is no encapsulation within the following macros, do not change
8266 ## the running order or otherwise move them around unless you know exactly
8267 ## what you are doing...
8268 if test -n "$compiler"; then
8269
8270 lt_prog_compiler_no_builtin_flag=
8271
8272 if test yes = "$GCC"; then
8273 case $cc_basename in
8274 nvcc*)
8275 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8276 *)
8277 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8278 esac
8279
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8281 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8282 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 lt_cv_prog_compiler_rtti_exceptions=no
8286 ac_outfile=conftest.$ac_objext
8287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8288 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8289 # Insert the option either (1) after the last *FLAGS variable, or
8290 # (2) before a word containing "conftest.", or (3) at the end.
8291 # Note that $ac_compile itself does not contain backslashes and begins
8292 # with a dollar sign (not a hyphen), so the echo should work correctly.
8293 # The option is referenced via a variable to avoid confusing sed.
8294 lt_compile=`echo "$ac_compile" | $SED \
8295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8297 -e 's:$: $lt_compiler_flag:'`
8298 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8299 (eval "$lt_compile" 2>conftest.err)
8300 ac_status=$?
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 if (exit $ac_status) && test -s "$ac_outfile"; then
8304 # The compiler can only warn and ignore the option if not recognized
8305 # So say no if there are warnings other than the usual output.
8306 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8307 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8308 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8309 lt_cv_prog_compiler_rtti_exceptions=yes
8310 fi
8311 fi
8312 $RM conftest*
8313
8314 fi
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8316 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8317
8318 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8319 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8320 else
8321 :
8322 fi
8323
8324 fi
8325
8326
8327
8328
8329
8330
8331 lt_prog_compiler_wl=
8332 lt_prog_compiler_pic=
8333 lt_prog_compiler_static=
8334
8335
8336 if test yes = "$GCC"; then
8337 lt_prog_compiler_wl='-Wl,'
8338 lt_prog_compiler_static='-static'
8339
8340 case $host_os in
8341 aix*)
8342 # All AIX code is PIC.
8343 if test ia64 = "$host_cpu"; then
8344 # AIX 5 now supports IA64 processor
8345 lt_prog_compiler_static='-Bstatic'
8346 fi
8347 lt_prog_compiler_pic='-fPIC'
8348 ;;
8349
8350 amigaos*)
8351 case $host_cpu in
8352 powerpc)
8353 # see comment about AmigaOS4 .so support
8354 lt_prog_compiler_pic='-fPIC'
8355 ;;
8356 m68k)
8357 # FIXME: we need at least 68020 code to build shared libraries, but
8358 # adding the '-m68020' flag to GCC prevents building anything better,
8359 # like '-m68040'.
8360 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8361 ;;
8362 esac
8363 ;;
8364
8365 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8366 # PIC is the default for these OSes.
8367 ;;
8368
8369 mingw* | cygwin* | pw32* | os2* | cegcc*)
8370 # This hack is so that the source file can tell whether it is being
8371 # built for inclusion in a dll (and should export symbols for example).
8372 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8373 # (--disable-auto-import) libraries
8374 lt_prog_compiler_pic='-DDLL_EXPORT'
8375 case $host_os in
8376 os2*)
8377 lt_prog_compiler_static='$wl-static'
8378 ;;
8379 esac
8380 ;;
8381
8382 darwin* | rhapsody*)
8383 # PIC is the default on this platform
8384 # Common symbols not allowed in MH_DYLIB files
8385 lt_prog_compiler_pic='-fno-common'
8386 ;;
8387
8388 haiku*)
8389 # PIC is the default for Haiku.
8390 # The "-static" flag exists, but is broken.
8391 lt_prog_compiler_static=
8392 ;;
8393
8394 hpux*)
8395 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8396 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8397 # sets the default TLS model and affects inlining.
8398 case $host_cpu in
8399 hppa*64*)
8400 # +Z the default
8401 ;;
8402 *)
8403 lt_prog_compiler_pic='-fPIC'
8404 ;;
8405 esac
8406 ;;
8407
8408 interix[3-9]*)
8409 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8410 # Instead, we relocate shared libraries at runtime.
8411 ;;
8412
8413 msdosdjgpp*)
8414 # Just because we use GCC doesn't mean we suddenly get shared libraries
8415 # on systems that don't support them.
8416 lt_prog_compiler_can_build_shared=no
8417 enable_shared=no
8418 ;;
8419
8420 *nto* | *qnx*)
8421 # QNX uses GNU C++, but need to define -shared option too, otherwise
8422 # it will coredump.
8423 lt_prog_compiler_pic='-fPIC -shared'
8424 ;;
8425
8426 sysv4*MP*)
8427 if test -d /usr/nec; then
8428 lt_prog_compiler_pic=-Kconform_pic
8429 fi
8430 ;;
8431
8432 *)
8433 lt_prog_compiler_pic='-fPIC'
8434 ;;
8435 esac
8436
8437 case $cc_basename in
8438 nvcc*) # Cuda Compiler Driver 2.2
8439 lt_prog_compiler_wl='-Xlinker '
8440 if test -n "$lt_prog_compiler_pic"; then
8441 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8442 fi
8443 ;;
8444 esac
8445 else
8446 # PORTME Check for flag to pass linker flags through the system compiler.
8447 case $host_os in
8448 aix*)
8449 lt_prog_compiler_wl='-Wl,'
8450 if test ia64 = "$host_cpu"; then
8451 # AIX 5 now supports IA64 processor
8452 lt_prog_compiler_static='-Bstatic'
8453 else
8454 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8455 fi
8456 ;;
8457
8458 darwin* | rhapsody*)
8459 # PIC is the default on this platform
8460 # Common symbols not allowed in MH_DYLIB files
8461 lt_prog_compiler_pic='-fno-common'
8462 case $cc_basename in
8463 nagfor*)
8464 # NAG Fortran compiler
8465 lt_prog_compiler_wl='-Wl,-Wl,,'
8466 lt_prog_compiler_pic='-PIC'
8467 lt_prog_compiler_static='-Bstatic'
8468 ;;
8469 esac
8470 ;;
8471
8472 mingw* | cygwin* | pw32* | os2* | cegcc*)
8473 # This hack is so that the source file can tell whether it is being
8474 # built for inclusion in a dll (and should export symbols for example).
8475 lt_prog_compiler_pic='-DDLL_EXPORT'
8476 case $host_os in
8477 os2*)
8478 lt_prog_compiler_static='$wl-static'
8479 ;;
8480 esac
8481 ;;
8482
8483 hpux9* | hpux10* | hpux11*)
8484 lt_prog_compiler_wl='-Wl,'
8485 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8486 # not for PA HP-UX.
8487 case $host_cpu in
8488 hppa*64*|ia64*)
8489 # +Z the default
8490 ;;
8491 *)
8492 lt_prog_compiler_pic='+Z'
8493 ;;
8494 esac
8495 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8496 lt_prog_compiler_static='$wl-a ${wl}archive'
8497 ;;
8498
8499 irix5* | irix6* | nonstopux*)
8500 lt_prog_compiler_wl='-Wl,'
8501 # PIC (with -KPIC) is the default.
8502 lt_prog_compiler_static='-non_shared'
8503 ;;
8504
8505 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8506 case $cc_basename in
8507 # old Intel for x86_64, which still supported -KPIC.
8508 ecc*)
8509 lt_prog_compiler_wl='-Wl,'
8510 lt_prog_compiler_pic='-KPIC'
8511 lt_prog_compiler_static='-static'
8512 ;;
8513 # icc used to be incompatible with GCC.
8514 # ICC 10 doesn't accept -KPIC any more.
8515 icc* | ifort*)
8516 lt_prog_compiler_wl='-Wl,'
8517 lt_prog_compiler_pic='-fPIC'
8518 lt_prog_compiler_static='-static'
8519 ;;
8520 # Lahey Fortran 8.1.
8521 lf95*)
8522 lt_prog_compiler_wl='-Wl,'
8523 lt_prog_compiler_pic='--shared'
8524 lt_prog_compiler_static='--static'
8525 ;;
8526 nagfor*)
8527 # NAG Fortran compiler
8528 lt_prog_compiler_wl='-Wl,-Wl,,'
8529 lt_prog_compiler_pic='-PIC'
8530 lt_prog_compiler_static='-Bstatic'
8531 ;;
8532 tcc*)
8533 # Fabrice Bellard et al's Tiny C Compiler
8534 lt_prog_compiler_wl='-Wl,'
8535 lt_prog_compiler_pic='-fPIC'
8536 lt_prog_compiler_static='-static'
8537 ;;
8538 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8539 # Portland Group compilers (*not* the Pentium gcc compiler,
8540 # which looks to be a dead project)
8541 lt_prog_compiler_wl='-Wl,'
8542 lt_prog_compiler_pic='-fpic'
8543 lt_prog_compiler_static='-Bstatic'
8544 ;;
8545 ccc*)
8546 lt_prog_compiler_wl='-Wl,'
8547 # All Alpha code is PIC.
8548 lt_prog_compiler_static='-non_shared'
8549 ;;
8550 xl* | bgxl* | bgf* | mpixl*)
8551 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-qpic'
8554 lt_prog_compiler_static='-qstaticlink'
8555 ;;
8556 *)
8557 case `$CC -V 2>&1 | sed 5q` in
8558 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8559 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8560 lt_prog_compiler_pic='-KPIC'
8561 lt_prog_compiler_static='-Bstatic'
8562 lt_prog_compiler_wl=''
8563 ;;
8564 *Sun\ F* | *Sun*Fortran*)
8565 lt_prog_compiler_pic='-KPIC'
8566 lt_prog_compiler_static='-Bstatic'
8567 lt_prog_compiler_wl='-Qoption ld '
8568 ;;
8569 *Sun\ C*)
8570 # Sun C 5.9
8571 lt_prog_compiler_pic='-KPIC'
8572 lt_prog_compiler_static='-Bstatic'
8573 lt_prog_compiler_wl='-Wl,'
8574 ;;
8575 *Intel*\ [CF]*Compiler*)
8576 lt_prog_compiler_wl='-Wl,'
8577 lt_prog_compiler_pic='-fPIC'
8578 lt_prog_compiler_static='-static'
8579 ;;
8580 *Portland\ Group*)
8581 lt_prog_compiler_wl='-Wl,'
8582 lt_prog_compiler_pic='-fpic'
8583 lt_prog_compiler_static='-Bstatic'
8584 ;;
8585 esac
8586 ;;
8587 esac
8588 ;;
8589
8590 newsos6)
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-Bstatic'
8593 ;;
8594
8595 *nto* | *qnx*)
8596 # QNX uses GNU C++, but need to define -shared option too, otherwise
8597 # it will coredump.
8598 lt_prog_compiler_pic='-fPIC -shared'
8599 ;;
8600
8601 osf3* | osf4* | osf5*)
8602 lt_prog_compiler_wl='-Wl,'
8603 # All OSF/1 code is PIC.
8604 lt_prog_compiler_static='-non_shared'
8605 ;;
8606
8607 rdos*)
8608 lt_prog_compiler_static='-non_shared'
8609 ;;
8610
8611 solaris*)
8612 lt_prog_compiler_pic='-KPIC'
8613 lt_prog_compiler_static='-Bstatic'
8614 case $cc_basename in
8615 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8616 lt_prog_compiler_wl='-Qoption ld ';;
8617 *)
8618 lt_prog_compiler_wl='-Wl,';;
8619 esac
8620 ;;
8621
8622 sunos4*)
8623 lt_prog_compiler_wl='-Qoption ld '
8624 lt_prog_compiler_pic='-PIC'
8625 lt_prog_compiler_static='-Bstatic'
8626 ;;
8627
8628 sysv4 | sysv4.2uw2* | sysv4.3*)
8629 lt_prog_compiler_wl='-Wl,'
8630 lt_prog_compiler_pic='-KPIC'
8631 lt_prog_compiler_static='-Bstatic'
8632 ;;
8633
8634 sysv4*MP*)
8635 if test -d /usr/nec; then
8636 lt_prog_compiler_pic='-Kconform_pic'
8637 lt_prog_compiler_static='-Bstatic'
8638 fi
8639 ;;
8640
8641 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_pic='-KPIC'
8644 lt_prog_compiler_static='-Bstatic'
8645 ;;
8646
8647 unicos*)
8648 lt_prog_compiler_wl='-Wl,'
8649 lt_prog_compiler_can_build_shared=no
8650 ;;
8651
8652 uts4*)
8653 lt_prog_compiler_pic='-pic'
8654 lt_prog_compiler_static='-Bstatic'
8655 ;;
8656
8657 *)
8658 lt_prog_compiler_can_build_shared=no
8659 ;;
8660 esac
8661 fi
8662
8663 case $host_os in
8664 # For platforms that do not support PIC, -DPIC is meaningless:
8665 *djgpp*)
8666 lt_prog_compiler_pic=
8667 ;;
8668 *)
8669 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8670 ;;
8671 esac
8672
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8674 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8675 if ${lt_cv_prog_compiler_pic+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8679 fi
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8681 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8682 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8683
8684 #
8685 # Check to make sure the PIC flag actually works.
8686 #
8687 if test -n "$lt_prog_compiler_pic"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8689 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8690 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 lt_cv_prog_compiler_pic_works=no
8694 ac_outfile=conftest.$ac_objext
8695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8696 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8697 # Insert the option either (1) after the last *FLAGS variable, or
8698 # (2) before a word containing "conftest.", or (3) at the end.
8699 # Note that $ac_compile itself does not contain backslashes and begins
8700 # with a dollar sign (not a hyphen), so the echo should work correctly.
8701 # The option is referenced via a variable to avoid confusing sed.
8702 lt_compile=`echo "$ac_compile" | $SED \
8703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8705 -e 's:$: $lt_compiler_flag:'`
8706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8707 (eval "$lt_compile" 2>conftest.err)
8708 ac_status=$?
8709 cat conftest.err >&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 if (exit $ac_status) && test -s "$ac_outfile"; then
8712 # The compiler can only warn and ignore the option if not recognized
8713 # So say no if there are warnings other than the usual output.
8714 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8715 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8716 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8717 lt_cv_prog_compiler_pic_works=yes
8718 fi
8719 fi
8720 $RM conftest*
8721
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8724 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8725
8726 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8727 case $lt_prog_compiler_pic in
8728 "" | " "*) ;;
8729 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8730 esac
8731 else
8732 lt_prog_compiler_pic=
8733 lt_prog_compiler_can_build_shared=no
8734 fi
8735
8736 fi
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748 #
8749 # Check to make sure the static flag actually works.
8750 #
8751 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8753 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8754 if ${lt_cv_prog_compiler_static_works+:} false; then :
8755 $as_echo_n "(cached) " >&6
8756 else
8757 lt_cv_prog_compiler_static_works=no
8758 save_LDFLAGS=$LDFLAGS
8759 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8760 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8761 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8762 # The linker can only warn and ignore the option if not recognized
8763 # So say no if there are warnings
8764 if test -s conftest.err; then
8765 # Append any errors to the config.log.
8766 cat conftest.err 1>&5
8767 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8768 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8769 if diff conftest.exp conftest.er2 >/dev/null; then
8770 lt_cv_prog_compiler_static_works=yes
8771 fi
8772 else
8773 lt_cv_prog_compiler_static_works=yes
8774 fi
8775 fi
8776 $RM -r conftest*
8777 LDFLAGS=$save_LDFLAGS
8778
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8781 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8782
8783 if test yes = "$lt_cv_prog_compiler_static_works"; then
8784 :
8785 else
8786 lt_prog_compiler_static=
8787 fi
8788
8789
8790
8791
8792
8793
8794
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8796 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8797 if ${lt_cv_prog_compiler_c_o+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 lt_cv_prog_compiler_c_o=no
8801 $RM -r conftest 2>/dev/null
8802 mkdir conftest
8803 cd conftest
8804 mkdir out
8805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8806
8807 lt_compiler_flag="-o out/conftest2.$ac_objext"
8808 # Insert the option either (1) after the last *FLAGS variable, or
8809 # (2) before a word containing "conftest.", or (3) at the end.
8810 # Note that $ac_compile itself does not contain backslashes and begins
8811 # with a dollar sign (not a hyphen), so the echo should work correctly.
8812 lt_compile=`echo "$ac_compile" | $SED \
8813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8815 -e 's:$: $lt_compiler_flag:'`
8816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8817 (eval "$lt_compile" 2>out/conftest.err)
8818 ac_status=$?
8819 cat out/conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8822 then
8823 # The compiler can only warn and ignore the option if not recognized
8824 # So say no if there are warnings
8825 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8826 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8827 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8828 lt_cv_prog_compiler_c_o=yes
8829 fi
8830 fi
8831 chmod u+w . 2>&5
8832 $RM conftest*
8833 # SGI C++ compiler will create directory out/ii_files/ for
8834 # template instantiation
8835 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8836 $RM out/* && rmdir out
8837 cd ..
8838 $RM -r conftest
8839 $RM conftest*
8840
8841 fi
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8843 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8844
8845
8846
8847
8848
8849
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8851 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8852 if ${lt_cv_prog_compiler_c_o+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854 else
8855 lt_cv_prog_compiler_c_o=no
8856 $RM -r conftest 2>/dev/null
8857 mkdir conftest
8858 cd conftest
8859 mkdir out
8860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8861
8862 lt_compiler_flag="-o out/conftest2.$ac_objext"
8863 # Insert the option either (1) after the last *FLAGS variable, or
8864 # (2) before a word containing "conftest.", or (3) at the end.
8865 # Note that $ac_compile itself does not contain backslashes and begins
8866 # with a dollar sign (not a hyphen), so the echo should work correctly.
8867 lt_compile=`echo "$ac_compile" | $SED \
8868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8870 -e 's:$: $lt_compiler_flag:'`
8871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8872 (eval "$lt_compile" 2>out/conftest.err)
8873 ac_status=$?
8874 cat out/conftest.err >&5
8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8877 then
8878 # The compiler can only warn and ignore the option if not recognized
8879 # So say no if there are warnings
8880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8883 lt_cv_prog_compiler_c_o=yes
8884 fi
8885 fi
8886 chmod u+w . 2>&5
8887 $RM conftest*
8888 # SGI C++ compiler will create directory out/ii_files/ for
8889 # template instantiation
8890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8891 $RM out/* && rmdir out
8892 cd ..
8893 $RM -r conftest
8894 $RM conftest*
8895
8896 fi
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8898 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8899
8900
8901
8902
8903 hard_links=nottested
8904 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8905 # do not overwrite the value of need_locks provided by the user
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8907 $as_echo_n "checking if we can lock with hard links... " >&6; }
8908 hard_links=yes
8909 $RM conftest*
8910 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8911 touch conftest.a
8912 ln conftest.a conftest.b 2>&5 || hard_links=no
8913 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8915 $as_echo "$hard_links" >&6; }
8916 if test no = "$hard_links"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8918 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8919 need_locks=warn
8920 fi
8921 else
8922 need_locks=no
8923 fi
8924
8925
8926
8927
8928
8929
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8931 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8932
8933 runpath_var=
8934 allow_undefined_flag=
8935 always_export_symbols=no
8936 archive_cmds=
8937 archive_expsym_cmds=
8938 compiler_needs_object=no
8939 enable_shared_with_static_runtimes=no
8940 export_dynamic_flag_spec=
8941 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8942 hardcode_automatic=no
8943 hardcode_direct=no
8944 hardcode_direct_absolute=no
8945 hardcode_libdir_flag_spec=
8946 hardcode_libdir_separator=
8947 hardcode_minus_L=no
8948 hardcode_shlibpath_var=unsupported
8949 inherit_rpath=no
8950 link_all_deplibs=unknown
8951 module_cmds=
8952 module_expsym_cmds=
8953 old_archive_from_new_cmds=
8954 old_archive_from_expsyms_cmds=
8955 thread_safe_flag_spec=
8956 whole_archive_flag_spec=
8957 # include_expsyms should be a list of space-separated symbols to be *always*
8958 # included in the symbol list
8959 include_expsyms=
8960 # exclude_expsyms can be an extended regexp of symbols to exclude
8961 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8962 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8963 # as well as any symbol that contains 'd'.
8964 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8965 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8966 # platforms (ab)use it in PIC code, but their linkers get confused if
8967 # the symbol is explicitly referenced. Since portable code cannot
8968 # rely on this symbol name, it's probably fine to never include it in
8969 # preloaded symbol tables.
8970 # Exclude shared library initialization/finalization symbols.
8971 extract_expsyms_cmds=
8972
8973 case $host_os in
8974 cygwin* | mingw* | pw32* | cegcc*)
8975 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8976 # When not using gcc, we currently assume that we are using
8977 # Microsoft Visual C++.
8978 if test yes != "$GCC"; then
8979 with_gnu_ld=no
8980 fi
8981 ;;
8982 interix*)
8983 # we just hope/assume this is gcc and not c89 (= MSVC++)
8984 with_gnu_ld=yes
8985 ;;
8986 openbsd* | bitrig*)
8987 with_gnu_ld=no
8988 ;;
8989 linux* | k*bsd*-gnu | gnu*)
8990 link_all_deplibs=no
8991 ;;
8992 esac
8993
8994 ld_shlibs=yes
8995
8996 # On some targets, GNU ld is compatible enough with the native linker
8997 # that we're better off using the native interface for both.
8998 lt_use_gnu_ld_interface=no
8999 if test yes = "$with_gnu_ld"; then
9000 case $host_os in
9001 aix*)
9002 # The AIX port of GNU ld has always aspired to compatibility
9003 # with the native linker. However, as the warning in the GNU ld
9004 # block says, versions before 2.19.5* couldn't really create working
9005 # shared libraries, regardless of the interface used.
9006 case `$LD -v 2>&1` in
9007 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9008 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9009 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9010 *)
9011 lt_use_gnu_ld_interface=yes
9012 ;;
9013 esac
9014 ;;
9015 *)
9016 lt_use_gnu_ld_interface=yes
9017 ;;
9018 esac
9019 fi
9020
9021 if test yes = "$lt_use_gnu_ld_interface"; then
9022 # If archive_cmds runs LD, not CC, wlarc should be empty
9023 wlarc='$wl'
9024
9025 # Set some defaults for GNU ld with shared library support. These
9026 # are reset later if shared libraries are not supported. Putting them
9027 # here allows them to be overridden if necessary.
9028 runpath_var=LD_RUN_PATH
9029 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9030 export_dynamic_flag_spec='$wl--export-dynamic'
9031 # ancient GNU ld didn't support --whole-archive et. al.
9032 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9033 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9034 else
9035 whole_archive_flag_spec=
9036 fi
9037 supports_anon_versioning=no
9038 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9039 *GNU\ gold*) supports_anon_versioning=yes ;;
9040 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9041 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9042 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9043 *\ 2.11.*) ;; # other 2.11 versions
9044 *) supports_anon_versioning=yes ;;
9045 esac
9046
9047 # See if GNU ld supports shared libraries.
9048 case $host_os in
9049 aix[3-9]*)
9050 # On AIX/PPC, the GNU linker is very broken
9051 if test ia64 != "$host_cpu"; then
9052 ld_shlibs=no
9053 cat <<_LT_EOF 1>&2
9054
9055 *** Warning: the GNU linker, at least up to release 2.19, is reported
9056 *** to be unable to reliably create shared libraries on AIX.
9057 *** Therefore, libtool is disabling shared libraries support. If you
9058 *** really care for shared libraries, you may want to install binutils
9059 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9060 *** You will then need to restart the configuration process.
9061
9062 _LT_EOF
9063 fi
9064 ;;
9065
9066 amigaos*)
9067 case $host_cpu in
9068 powerpc)
9069 # see comment about AmigaOS4 .so support
9070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9071 archive_expsym_cmds=''
9072 ;;
9073 m68k)
9074 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)'
9075 hardcode_libdir_flag_spec='-L$libdir'
9076 hardcode_minus_L=yes
9077 ;;
9078 esac
9079 ;;
9080
9081 beos*)
9082 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9083 allow_undefined_flag=unsupported
9084 # Joseph Beckenbach <[email protected]> says some releases of gcc
9085 # support --undefined. This deserves some investigation. FIXME
9086 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9087 else
9088 ld_shlibs=no
9089 fi
9090 ;;
9091
9092 cygwin* | mingw* | pw32* | cegcc*)
9093 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9094 # as there is no search path for DLLs.
9095 hardcode_libdir_flag_spec='-L$libdir'
9096 export_dynamic_flag_spec='$wl--export-all-symbols'
9097 allow_undefined_flag=unsupported
9098 always_export_symbols=no
9099 enable_shared_with_static_runtimes=yes
9100 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'
9101 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9102
9103 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9105 # If the export-symbols file already is a .def file, use it as
9106 # is; otherwise, prepend EXPORTS...
9107 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9108 cp $export_symbols $output_objdir/$soname.def;
9109 else
9110 echo EXPORTS > $output_objdir/$soname.def;
9111 cat $export_symbols >> $output_objdir/$soname.def;
9112 fi~
9113 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9114 else
9115 ld_shlibs=no
9116 fi
9117 ;;
9118
9119 haiku*)
9120 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9121 link_all_deplibs=yes
9122 ;;
9123
9124 os2*)
9125 hardcode_libdir_flag_spec='-L$libdir'
9126 hardcode_minus_L=yes
9127 allow_undefined_flag=unsupported
9128 shrext_cmds=.dll
9129 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9130 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9131 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9132 $ECHO EXPORTS >> $output_objdir/$libname.def~
9133 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9134 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9135 emximp -o $lib $output_objdir/$libname.def'
9136 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9137 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9138 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9139 $ECHO EXPORTS >> $output_objdir/$libname.def~
9140 prefix_cmds="$SED"~
9141 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9142 prefix_cmds="$prefix_cmds -e 1d";
9143 fi~
9144 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9145 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9146 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9147 emximp -o $lib $output_objdir/$libname.def'
9148 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9149 enable_shared_with_static_runtimes=yes
9150 ;;
9151
9152 interix[3-9]*)
9153 hardcode_direct=no
9154 hardcode_shlibpath_var=no
9155 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9156 export_dynamic_flag_spec='$wl-E'
9157 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9158 # Instead, shared libraries are loaded at an image base (0x10000000 by
9159 # default) and relocated if they conflict, which is a slow very memory
9160 # consuming and fragmenting process. To avoid this, we pick a random,
9161 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9162 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9163 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9164 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'
9165 ;;
9166
9167 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9168 tmp_diet=no
9169 if test linux-dietlibc = "$host_os"; then
9170 case $cc_basename in
9171 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9172 esac
9173 fi
9174 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9175 && test no = "$tmp_diet"
9176 then
9177 tmp_addflag=' $pic_flag'
9178 tmp_sharedflag='-shared'
9179 case $cc_basename,$host_cpu in
9180 pgcc*) # Portland Group C compiler
9181 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'
9182 tmp_addflag=' $pic_flag'
9183 ;;
9184 pgf77* | pgf90* | pgf95* | pgfortran*)
9185 # Portland Group f77 and f90 compilers
9186 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'
9187 tmp_addflag=' $pic_flag -Mnomain' ;;
9188 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9189 tmp_addflag=' -i_dynamic' ;;
9190 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9191 tmp_addflag=' -i_dynamic -nofor_main' ;;
9192 ifc* | ifort*) # Intel Fortran compiler
9193 tmp_addflag=' -nofor_main' ;;
9194 lf95*) # Lahey Fortran 8.1
9195 whole_archive_flag_spec=
9196 tmp_sharedflag='--shared' ;;
9197 nagfor*) # NAGFOR 5.3
9198 tmp_sharedflag='-Wl,-shared' ;;
9199 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9200 tmp_sharedflag='-qmkshrobj'
9201 tmp_addflag= ;;
9202 nvcc*) # Cuda Compiler Driver 2.2
9203 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'
9204 compiler_needs_object=yes
9205 ;;
9206 esac
9207 case `$CC -V 2>&1 | sed 5q` in
9208 *Sun\ C*) # Sun C 5.9
9209 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'
9210 compiler_needs_object=yes
9211 tmp_sharedflag='-G' ;;
9212 *Sun\ F*) # Sun Fortran 8.3
9213 tmp_sharedflag='-G' ;;
9214 esac
9215 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9216
9217 if test yes = "$supports_anon_versioning"; then
9218 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9220 echo "local: *; };" >> $output_objdir/$libname.ver~
9221 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9222 fi
9223
9224 case $cc_basename in
9225 tcc*)
9226 export_dynamic_flag_spec='-rdynamic'
9227 ;;
9228 xlf* | bgf* | bgxlf* | mpixlf*)
9229 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9230 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9231 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9232 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9233 if test yes = "$supports_anon_versioning"; then
9234 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9235 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9236 echo "local: *; };" >> $output_objdir/$libname.ver~
9237 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9238 fi
9239 ;;
9240 esac
9241 else
9242 ld_shlibs=no
9243 fi
9244 ;;
9245
9246 netbsd* | netbsdelf*-gnu)
9247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9248 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9249 wlarc=
9250 else
9251 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9252 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9253 fi
9254 ;;
9255
9256 solaris*)
9257 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9258 ld_shlibs=no
9259 cat <<_LT_EOF 1>&2
9260
9261 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9262 *** create shared libraries on Solaris systems. Therefore, libtool
9263 *** is disabling shared libraries support. We urge you to upgrade GNU
9264 *** binutils to release 2.9.1 or newer. Another option is to modify
9265 *** your PATH or compiler configuration so that the native linker is
9266 *** used, and then restart.
9267
9268 _LT_EOF
9269 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9270 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9271 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9272 else
9273 ld_shlibs=no
9274 fi
9275 ;;
9276
9277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9278 case `$LD -v 2>&1` in
9279 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9280 ld_shlibs=no
9281 cat <<_LT_EOF 1>&2
9282
9283 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9284 *** reliably create shared libraries on SCO systems. Therefore, libtool
9285 *** is disabling shared libraries support. We urge you to upgrade GNU
9286 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9287 *** your PATH or compiler configuration so that the native linker is
9288 *** used, and then restart.
9289
9290 _LT_EOF
9291 ;;
9292 *)
9293 # For security reasons, it is highly recommended that you always
9294 # use absolute paths for naming shared libraries, and exclude the
9295 # DT_RUNPATH tag from executables and libraries. But doing so
9296 # requires that you compile everything twice, which is a pain.
9297 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9298 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9301 else
9302 ld_shlibs=no
9303 fi
9304 ;;
9305 esac
9306 ;;
9307
9308 sunos4*)
9309 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310 wlarc=
9311 hardcode_direct=yes
9312 hardcode_shlibpath_var=no
9313 ;;
9314
9315 *)
9316 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9317 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9318 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9319 else
9320 ld_shlibs=no
9321 fi
9322 ;;
9323 esac
9324
9325 if test no = "$ld_shlibs"; then
9326 runpath_var=
9327 hardcode_libdir_flag_spec=
9328 export_dynamic_flag_spec=
9329 whole_archive_flag_spec=
9330 fi
9331 else
9332 # PORTME fill in a description of your system's linker (not GNU ld)
9333 case $host_os in
9334 aix3*)
9335 allow_undefined_flag=unsupported
9336 always_export_symbols=yes
9337 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'
9338 # Note: this linker hardcodes the directories in LIBPATH if there
9339 # are no directories specified by -L.
9340 hardcode_minus_L=yes
9341 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9342 # Neither direct hardcoding nor static linking is supported with a
9343 # broken collect2.
9344 hardcode_direct=unsupported
9345 fi
9346 ;;
9347
9348 aix[4-9]*)
9349 if test ia64 = "$host_cpu"; then
9350 # On IA64, the linker does run time linking by default, so we don't
9351 # have to do anything special.
9352 aix_use_runtimelinking=no
9353 exp_sym_flag='-Bexport'
9354 no_entry_flag=
9355 else
9356 # If we're using GNU nm, then we don't want the "-C" option.
9357 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9358 # Without the "-l" option, or with the "-B" option, AIX nm treats
9359 # weak defined symbols like other global defined symbols, whereas
9360 # GNU nm marks them as "W".
9361 # While the 'weak' keyword is ignored in the Export File, we need
9362 # it in the Import File for the 'aix-soname' feature, so we have
9363 # to replace the "-B" option with "-P" for AIX nm.
9364 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9365 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9366 else
9367 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9368 fi
9369 aix_use_runtimelinking=no
9370
9371 # Test if we are trying to use run time linking or normal
9372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9373 # have runtime linking enabled, and use it for executables.
9374 # For shared libraries, we enable/disable runtime linking
9375 # depending on the kind of the shared library created -
9376 # when "with_aix_soname,aix_use_runtimelinking" is:
9377 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9378 # "aix,yes" lib.so shared, rtl:yes, for executables
9379 # lib.a static archive
9380 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9381 # lib.a(lib.so.V) shared, rtl:no, for executables
9382 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9383 # lib.a(lib.so.V) shared, rtl:no
9384 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9385 # lib.a static archive
9386 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9387 for ld_flag in $LDFLAGS; do
9388 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9389 aix_use_runtimelinking=yes
9390 break
9391 fi
9392 done
9393 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9394 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9395 # so we don't have lib.a shared libs to link our executables.
9396 # We have to force runtime linking in this case.
9397 aix_use_runtimelinking=yes
9398 LDFLAGS="$LDFLAGS -Wl,-brtl"
9399 fi
9400 ;;
9401 esac
9402
9403 exp_sym_flag='-bexport'
9404 no_entry_flag='-bnoentry'
9405 fi
9406
9407 # When large executables or shared objects are built, AIX ld can
9408 # have problems creating the table of contents. If linking a library
9409 # or program results in "error TOC overflow" add -mminimal-toc to
9410 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9411 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9412
9413 archive_cmds=''
9414 hardcode_direct=yes
9415 hardcode_direct_absolute=yes
9416 hardcode_libdir_separator=':'
9417 link_all_deplibs=yes
9418 file_list_spec='$wl-f,'
9419 case $with_aix_soname,$aix_use_runtimelinking in
9420 aix,*) ;; # traditional, no import file
9421 svr4,* | *,yes) # use import file
9422 # The Import File defines what to hardcode.
9423 hardcode_direct=no
9424 hardcode_direct_absolute=no
9425 ;;
9426 esac
9427
9428 if test yes = "$GCC"; then
9429 case $host_os in aix4.[012]|aix4.[012].*)
9430 # We only want to do this on AIX 4.2 and lower, the check
9431 # below for broken collect2 doesn't work under 4.3+
9432 collect2name=`$CC -print-prog-name=collect2`
9433 if test -f "$collect2name" &&
9434 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9435 then
9436 # We have reworked collect2
9437 :
9438 else
9439 # We have old collect2
9440 hardcode_direct=unsupported
9441 # It fails to find uninstalled libraries when the uninstalled
9442 # path is not listed in the libpath. Setting hardcode_minus_L
9443 # to unsupported forces relinking
9444 hardcode_minus_L=yes
9445 hardcode_libdir_flag_spec='-L$libdir'
9446 hardcode_libdir_separator=
9447 fi
9448 ;;
9449 esac
9450 shared_flag='-shared'
9451 if test yes = "$aix_use_runtimelinking"; then
9452 shared_flag="$shared_flag "'$wl-G'
9453 fi
9454 # Need to ensure runtime linking is disabled for the traditional
9455 # shared library, or the linker may eventually find shared libraries
9456 # /with/ Import File - we do not want to mix them.
9457 shared_flag_aix='-shared'
9458 shared_flag_svr4='-shared $wl-G'
9459 else
9460 # not using gcc
9461 if test ia64 = "$host_cpu"; then
9462 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9463 # chokes on -Wl,-G. The following line is correct:
9464 shared_flag='-G'
9465 else
9466 if test yes = "$aix_use_runtimelinking"; then
9467 shared_flag='$wl-G'
9468 else
9469 shared_flag='$wl-bM:SRE'
9470 fi
9471 shared_flag_aix='$wl-bM:SRE'
9472 shared_flag_svr4='$wl-G'
9473 fi
9474 fi
9475
9476 export_dynamic_flag_spec='$wl-bexpall'
9477 # It seems that -bexpall does not export symbols beginning with
9478 # underscore (_), so it is better to generate a list of symbols to export.
9479 always_export_symbols=yes
9480 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9481 # Warning - without using the other runtime loading flags (-brtl),
9482 # -berok will link without error, but may produce a broken library.
9483 allow_undefined_flag='-berok'
9484 # Determine the default libpath from the value encoded in an
9485 # empty executable.
9486 if test set = "${lt_cv_aix_libpath+set}"; then
9487 aix_libpath=$lt_cv_aix_libpath
9488 else
9489 if ${lt_cv_aix_libpath_+:} false; then :
9490 $as_echo_n "(cached) " >&6
9491 else
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494
9495 int
9496 main ()
9497 {
9498
9499 ;
9500 return 0;
9501 }
9502 _ACEOF
9503 if ac_fn_c_try_link "$LINENO"; then :
9504
9505 lt_aix_libpath_sed='
9506 /Import File Strings/,/^$/ {
9507 /^0/ {
9508 s/^0 *\([^ ]*\) *$/\1/
9509 p
9510 }
9511 }'
9512 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9513 # Check for a 64-bit object if we didn't find anything.
9514 if test -z "$lt_cv_aix_libpath_"; then
9515 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9516 fi
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9520 if test -z "$lt_cv_aix_libpath_"; then
9521 lt_cv_aix_libpath_=/usr/lib:/lib
9522 fi
9523
9524 fi
9525
9526 aix_libpath=$lt_cv_aix_libpath_
9527 fi
9528
9529 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9530 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9531 else
9532 if test ia64 = "$host_cpu"; then
9533 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9534 allow_undefined_flag="-z nodefs"
9535 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"
9536 else
9537 # Determine the default libpath from the value encoded in an
9538 # empty executable.
9539 if test set = "${lt_cv_aix_libpath+set}"; then
9540 aix_libpath=$lt_cv_aix_libpath
9541 else
9542 if ${lt_cv_aix_libpath_+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9546 /* end confdefs.h. */
9547
9548 int
9549 main ()
9550 {
9551
9552 ;
9553 return 0;
9554 }
9555 _ACEOF
9556 if ac_fn_c_try_link "$LINENO"; then :
9557
9558 lt_aix_libpath_sed='
9559 /Import File Strings/,/^$/ {
9560 /^0/ {
9561 s/^0 *\([^ ]*\) *$/\1/
9562 p
9563 }
9564 }'
9565 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9566 # Check for a 64-bit object if we didn't find anything.
9567 if test -z "$lt_cv_aix_libpath_"; then
9568 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9569 fi
9570 fi
9571 rm -f core conftest.err conftest.$ac_objext \
9572 conftest$ac_exeext conftest.$ac_ext
9573 if test -z "$lt_cv_aix_libpath_"; then
9574 lt_cv_aix_libpath_=/usr/lib:/lib
9575 fi
9576
9577 fi
9578
9579 aix_libpath=$lt_cv_aix_libpath_
9580 fi
9581
9582 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9583 # Warning - without using the other run time loading flags,
9584 # -berok will link without error, but may produce a broken library.
9585 no_undefined_flag=' $wl-bernotok'
9586 allow_undefined_flag=' $wl-berok'
9587 if test yes = "$with_gnu_ld"; then
9588 # We only use this code for GNU lds that support --whole-archive.
9589 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9590 else
9591 # Exported symbols can be pulled into shared objects from archives
9592 whole_archive_flag_spec='$convenience'
9593 fi
9594 archive_cmds_need_lc=yes
9595 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9596 # -brtl affects multiple linker settings, -berok does not and is overridden later
9597 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9598 if test svr4 != "$with_aix_soname"; then
9599 # This is similar to how AIX traditionally builds its shared libraries.
9600 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9601 fi
9602 if test aix != "$with_aix_soname"; then
9603 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9604 else
9605 # used by -dlpreopen to get the symbols
9606 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9607 fi
9608 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9609 fi
9610 fi
9611 ;;
9612
9613 amigaos*)
9614 case $host_cpu in
9615 powerpc)
9616 # see comment about AmigaOS4 .so support
9617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9618 archive_expsym_cmds=''
9619 ;;
9620 m68k)
9621 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)'
9622 hardcode_libdir_flag_spec='-L$libdir'
9623 hardcode_minus_L=yes
9624 ;;
9625 esac
9626 ;;
9627
9628 bsdi[45]*)
9629 export_dynamic_flag_spec=-rdynamic
9630 ;;
9631
9632 cygwin* | mingw* | pw32* | cegcc*)
9633 # When not using gcc, we currently assume that we are using
9634 # Microsoft Visual C++.
9635 # hardcode_libdir_flag_spec is actually meaningless, as there is
9636 # no search path for DLLs.
9637 case $cc_basename in
9638 cl*)
9639 # Native MSVC
9640 hardcode_libdir_flag_spec=' '
9641 allow_undefined_flag=unsupported
9642 always_export_symbols=yes
9643 file_list_spec='@'
9644 # Tell ltmain to make .lib files, not .a files.
9645 libext=lib
9646 # Tell ltmain to make .dll files, not .so files.
9647 shrext_cmds=.dll
9648 # FIXME: Setting linknames here is a bad hack.
9649 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9650 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9651 cp "$export_symbols" "$output_objdir/$soname.def";
9652 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9653 else
9654 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9655 fi~
9656 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9657 linknames='
9658 # The linker will not automatically build a static lib if we build a DLL.
9659 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9660 enable_shared_with_static_runtimes=yes
9661 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9662 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9663 # Don't use ranlib
9664 old_postinstall_cmds='chmod 644 $oldlib'
9665 postlink_cmds='lt_outputfile="@OUTPUT@"~
9666 lt_tool_outputfile="@TOOL_OUTPUT@"~
9667 case $lt_outputfile in
9668 *.exe|*.EXE) ;;
9669 *)
9670 lt_outputfile=$lt_outputfile.exe
9671 lt_tool_outputfile=$lt_tool_outputfile.exe
9672 ;;
9673 esac~
9674 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9675 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9676 $RM "$lt_outputfile.manifest";
9677 fi'
9678 ;;
9679 *)
9680 # Assume MSVC wrapper
9681 hardcode_libdir_flag_spec=' '
9682 allow_undefined_flag=unsupported
9683 # Tell ltmain to make .lib files, not .a files.
9684 libext=lib
9685 # Tell ltmain to make .dll files, not .so files.
9686 shrext_cmds=.dll
9687 # FIXME: Setting linknames here is a bad hack.
9688 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9689 # The linker will automatically build a .lib file if we build a DLL.
9690 old_archive_from_new_cmds='true'
9691 # FIXME: Should let the user specify the lib program.
9692 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9693 enable_shared_with_static_runtimes=yes
9694 ;;
9695 esac
9696 ;;
9697
9698 darwin* | rhapsody*)
9699
9700
9701 archive_cmds_need_lc=no
9702 hardcode_direct=no
9703 hardcode_automatic=yes
9704 hardcode_shlibpath_var=unsupported
9705 if test yes = "$lt_cv_ld_force_load"; then
9706 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\"`'
9707
9708 else
9709 whole_archive_flag_spec=''
9710 fi
9711 link_all_deplibs=yes
9712 allow_undefined_flag=$_lt_dar_allow_undefined
9713 case $cc_basename in
9714 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9715 *) _lt_dar_can_shared=$GCC ;;
9716 esac
9717 if test yes = "$_lt_dar_can_shared"; then
9718 output_verbose_link_cmd=func_echo_all
9719 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9720 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9721 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"
9722 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"
9723
9724 else
9725 ld_shlibs=no
9726 fi
9727
9728 ;;
9729
9730 dgux*)
9731 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9732 hardcode_libdir_flag_spec='-L$libdir'
9733 hardcode_shlibpath_var=no
9734 ;;
9735
9736 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9737 # support. Future versions do this automatically, but an explicit c++rt0.o
9738 # does not break anything, and helps significantly (at the cost of a little
9739 # extra space).
9740 freebsd2.2*)
9741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9742 hardcode_libdir_flag_spec='-R$libdir'
9743 hardcode_direct=yes
9744 hardcode_shlibpath_var=no
9745 ;;
9746
9747 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9748 freebsd2.*)
9749 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9750 hardcode_direct=yes
9751 hardcode_minus_L=yes
9752 hardcode_shlibpath_var=no
9753 ;;
9754
9755 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9756 freebsd* | dragonfly*)
9757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9758 hardcode_libdir_flag_spec='-R$libdir'
9759 hardcode_direct=yes
9760 hardcode_shlibpath_var=no
9761 ;;
9762
9763 hpux9*)
9764 if test yes = "$GCC"; then
9765 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9766 else
9767 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9768 fi
9769 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9770 hardcode_libdir_separator=:
9771 hardcode_direct=yes
9772
9773 # hardcode_minus_L: Not really in the search PATH,
9774 # but as the default location of the library.
9775 hardcode_minus_L=yes
9776 export_dynamic_flag_spec='$wl-E'
9777 ;;
9778
9779 hpux10*)
9780 if test yes,no = "$GCC,$with_gnu_ld"; then
9781 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9782 else
9783 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9784 fi
9785 if test no = "$with_gnu_ld"; then
9786 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9787 hardcode_libdir_separator=:
9788 hardcode_direct=yes
9789 hardcode_direct_absolute=yes
9790 export_dynamic_flag_spec='$wl-E'
9791 # hardcode_minus_L: Not really in the search PATH,
9792 # but as the default location of the library.
9793 hardcode_minus_L=yes
9794 fi
9795 ;;
9796
9797 hpux11*)
9798 if test yes,no = "$GCC,$with_gnu_ld"; then
9799 case $host_cpu in
9800 hppa*64*)
9801 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9802 ;;
9803 ia64*)
9804 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9805 ;;
9806 *)
9807 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9808 ;;
9809 esac
9810 else
9811 case $host_cpu in
9812 hppa*64*)
9813 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 ;;
9815 ia64*)
9816 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9817 ;;
9818 *)
9819
9820 # Older versions of the 11.00 compiler do not understand -b yet
9821 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9823 $as_echo_n "checking if $CC understands -b... " >&6; }
9824 if ${lt_cv_prog_compiler__b+:} false; then :
9825 $as_echo_n "(cached) " >&6
9826 else
9827 lt_cv_prog_compiler__b=no
9828 save_LDFLAGS=$LDFLAGS
9829 LDFLAGS="$LDFLAGS -b"
9830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9832 # The linker can only warn and ignore the option if not recognized
9833 # So say no if there are warnings
9834 if test -s conftest.err; then
9835 # Append any errors to the config.log.
9836 cat conftest.err 1>&5
9837 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9839 if diff conftest.exp conftest.er2 >/dev/null; then
9840 lt_cv_prog_compiler__b=yes
9841 fi
9842 else
9843 lt_cv_prog_compiler__b=yes
9844 fi
9845 fi
9846 $RM -r conftest*
9847 LDFLAGS=$save_LDFLAGS
9848
9849 fi
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9851 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9852
9853 if test yes = "$lt_cv_prog_compiler__b"; then
9854 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855 else
9856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9857 fi
9858
9859 ;;
9860 esac
9861 fi
9862 if test no = "$with_gnu_ld"; then
9863 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9864 hardcode_libdir_separator=:
9865
9866 case $host_cpu in
9867 hppa*64*|ia64*)
9868 hardcode_direct=no
9869 hardcode_shlibpath_var=no
9870 ;;
9871 *)
9872 hardcode_direct=yes
9873 hardcode_direct_absolute=yes
9874 export_dynamic_flag_spec='$wl-E'
9875
9876 # hardcode_minus_L: Not really in the search PATH,
9877 # but as the default location of the library.
9878 hardcode_minus_L=yes
9879 ;;
9880 esac
9881 fi
9882 ;;
9883
9884 irix5* | irix6* | nonstopux*)
9885 if test yes = "$GCC"; then
9886 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'
9887 # Try to use the -exported_symbol ld option, if it does not
9888 # work, assume that -exports_file does not work either and
9889 # implicitly export all symbols.
9890 # This should be the same for all languages, so no per-tag cache variable.
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9892 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9893 if ${lt_cv_irix_exported_symbol+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 save_LDFLAGS=$LDFLAGS
9897 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899 /* end confdefs.h. */
9900 int foo (void) { return 0; }
9901 _ACEOF
9902 if ac_fn_c_try_link "$LINENO"; then :
9903 lt_cv_irix_exported_symbol=yes
9904 else
9905 lt_cv_irix_exported_symbol=no
9906 fi
9907 rm -f core conftest.err conftest.$ac_objext \
9908 conftest$ac_exeext conftest.$ac_ext
9909 LDFLAGS=$save_LDFLAGS
9910 fi
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9912 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9913 if test yes = "$lt_cv_irix_exported_symbol"; then
9914 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'
9915 fi
9916 link_all_deplibs=no
9917 else
9918 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'
9919 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'
9920 fi
9921 archive_cmds_need_lc='no'
9922 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9923 hardcode_libdir_separator=:
9924 inherit_rpath=yes
9925 link_all_deplibs=yes
9926 ;;
9927
9928 linux*)
9929 case $cc_basename in
9930 tcc*)
9931 # Fabrice Bellard et al's Tiny C Compiler
9932 ld_shlibs=yes
9933 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9934 ;;
9935 esac
9936 ;;
9937
9938 netbsd* | netbsdelf*-gnu)
9939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9940 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9941 else
9942 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9943 fi
9944 hardcode_libdir_flag_spec='-R$libdir'
9945 hardcode_direct=yes
9946 hardcode_shlibpath_var=no
9947 ;;
9948
9949 newsos6)
9950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951 hardcode_direct=yes
9952 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9953 hardcode_libdir_separator=:
9954 hardcode_shlibpath_var=no
9955 ;;
9956
9957 *nto* | *qnx*)
9958 ;;
9959
9960 openbsd* | bitrig*)
9961 if test -f /usr/libexec/ld.so; then
9962 hardcode_direct=yes
9963 hardcode_shlibpath_var=no
9964 hardcode_direct_absolute=yes
9965 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9966 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9968 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9969 export_dynamic_flag_spec='$wl-E'
9970 else
9971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9972 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9973 fi
9974 else
9975 ld_shlibs=no
9976 fi
9977 ;;
9978
9979 os2*)
9980 hardcode_libdir_flag_spec='-L$libdir'
9981 hardcode_minus_L=yes
9982 allow_undefined_flag=unsupported
9983 shrext_cmds=.dll
9984 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9985 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9986 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9987 $ECHO EXPORTS >> $output_objdir/$libname.def~
9988 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9989 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9990 emximp -o $lib $output_objdir/$libname.def'
9991 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9992 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9993 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9994 $ECHO EXPORTS >> $output_objdir/$libname.def~
9995 prefix_cmds="$SED"~
9996 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9997 prefix_cmds="$prefix_cmds -e 1d";
9998 fi~
9999 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10000 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10001 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10002 emximp -o $lib $output_objdir/$libname.def'
10003 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10004 enable_shared_with_static_runtimes=yes
10005 ;;
10006
10007 osf3*)
10008 if test yes = "$GCC"; then
10009 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10010 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'
10011 else
10012 allow_undefined_flag=' -expect_unresolved \*'
10013 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'
10014 fi
10015 archive_cmds_need_lc='no'
10016 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10017 hardcode_libdir_separator=:
10018 ;;
10019
10020 osf4* | osf5*) # as osf3* with the addition of -msym flag
10021 if test yes = "$GCC"; then
10022 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10023 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'
10024 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10025 else
10026 allow_undefined_flag=' -expect_unresolved \*'
10027 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'
10028 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~
10029 $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'
10030
10031 # Both c and cxx compiler support -rpath directly
10032 hardcode_libdir_flag_spec='-rpath $libdir'
10033 fi
10034 archive_cmds_need_lc='no'
10035 hardcode_libdir_separator=:
10036 ;;
10037
10038 solaris*)
10039 no_undefined_flag=' -z defs'
10040 if test yes = "$GCC"; then
10041 wlarc='$wl'
10042 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10043 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10044 $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'
10045 else
10046 case `$CC -V 2>&1` in
10047 *"Compilers 5.0"*)
10048 wlarc=''
10049 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10051 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10052 ;;
10053 *)
10054 wlarc='$wl'
10055 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10056 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10057 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10058 ;;
10059 esac
10060 fi
10061 hardcode_libdir_flag_spec='-R$libdir'
10062 hardcode_shlibpath_var=no
10063 case $host_os in
10064 solaris2.[0-5] | solaris2.[0-5].*) ;;
10065 *)
10066 # The compiler driver will combine and reorder linker options,
10067 # but understands '-z linker_flag'. GCC discards it without '$wl',
10068 # but is careful enough not to reorder.
10069 # Supported since Solaris 2.6 (maybe 2.5.1?)
10070 if test yes = "$GCC"; then
10071 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10072 else
10073 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10074 fi
10075 ;;
10076 esac
10077 link_all_deplibs=yes
10078 ;;
10079
10080 sunos4*)
10081 if test sequent = "$host_vendor"; then
10082 # Use $CC to link under sequent, because it throws in some extra .o
10083 # files that make .init and .fini sections work.
10084 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10085 else
10086 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10087 fi
10088 hardcode_libdir_flag_spec='-L$libdir'
10089 hardcode_direct=yes
10090 hardcode_minus_L=yes
10091 hardcode_shlibpath_var=no
10092 ;;
10093
10094 sysv4)
10095 case $host_vendor in
10096 sni)
10097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_direct=yes # is this really true???
10099 ;;
10100 siemens)
10101 ## LD is ld it makes a PLAMLIB
10102 ## CC just makes a GrossModule.
10103 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10104 reload_cmds='$CC -r -o $output$reload_objs'
10105 hardcode_direct=no
10106 ;;
10107 motorola)
10108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10110 ;;
10111 esac
10112 runpath_var='LD_RUN_PATH'
10113 hardcode_shlibpath_var=no
10114 ;;
10115
10116 sysv4.3*)
10117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118 hardcode_shlibpath_var=no
10119 export_dynamic_flag_spec='-Bexport'
10120 ;;
10121
10122 sysv4*MP*)
10123 if test -d /usr/nec; then
10124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10125 hardcode_shlibpath_var=no
10126 runpath_var=LD_RUN_PATH
10127 hardcode_runpath_var=yes
10128 ld_shlibs=yes
10129 fi
10130 ;;
10131
10132 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10133 no_undefined_flag='$wl-z,text'
10134 archive_cmds_need_lc=no
10135 hardcode_shlibpath_var=no
10136 runpath_var='LD_RUN_PATH'
10137
10138 if test yes = "$GCC"; then
10139 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141 else
10142 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 fi
10145 ;;
10146
10147 sysv5* | sco3.2v5* | sco5v6*)
10148 # Note: We CANNOT use -z defs as we might desire, because we do not
10149 # link with -lc, and that would cause any symbols used from libc to
10150 # always be unresolved, which means just about no library would
10151 # ever link correctly. If we're not using GNU ld we use -z text
10152 # though, which does catch some bad symbols but isn't as heavy-handed
10153 # as -z defs.
10154 no_undefined_flag='$wl-z,text'
10155 allow_undefined_flag='$wl-z,nodefs'
10156 archive_cmds_need_lc=no
10157 hardcode_shlibpath_var=no
10158 hardcode_libdir_flag_spec='$wl-R,$libdir'
10159 hardcode_libdir_separator=':'
10160 link_all_deplibs=yes
10161 export_dynamic_flag_spec='$wl-Bexport'
10162 runpath_var='LD_RUN_PATH'
10163
10164 if test yes = "$GCC"; then
10165 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 else
10168 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10170 fi
10171 ;;
10172
10173 uts4*)
10174 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175 hardcode_libdir_flag_spec='-L$libdir'
10176 hardcode_shlibpath_var=no
10177 ;;
10178
10179 *)
10180 ld_shlibs=no
10181 ;;
10182 esac
10183
10184 if test sni = "$host_vendor"; then
10185 case $host in
10186 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10187 export_dynamic_flag_spec='$wl-Blargedynsym'
10188 ;;
10189 esac
10190 fi
10191 fi
10192
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10194 $as_echo "$ld_shlibs" >&6; }
10195 test no = "$ld_shlibs" && can_build_shared=no
10196
10197 with_gnu_ld=$with_gnu_ld
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213 #
10214 # Do we need to explicitly link libc?
10215 #
10216 case "x$archive_cmds_need_lc" in
10217 x|xyes)
10218 # Assume -lc should be added
10219 archive_cmds_need_lc=yes
10220
10221 if test yes,yes = "$GCC,$enable_shared"; then
10222 case $archive_cmds in
10223 *'~'*)
10224 # FIXME: we may have to deal with multi-command sequences.
10225 ;;
10226 '$CC '*)
10227 # Test whether the compiler implicitly links with -lc since on some
10228 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10229 # to ld, don't add -lc before -lgcc.
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10231 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10232 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10233 $as_echo_n "(cached) " >&6
10234 else
10235 $RM conftest*
10236 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10237
10238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10239 (eval $ac_compile) 2>&5
10240 ac_status=$?
10241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10242 test $ac_status = 0; } 2>conftest.err; then
10243 soname=conftest
10244 lib=conftest
10245 libobjs=conftest.$ac_objext
10246 deplibs=
10247 wl=$lt_prog_compiler_wl
10248 pic_flag=$lt_prog_compiler_pic
10249 compiler_flags=-v
10250 linker_flags=-v
10251 verstring=
10252 output_objdir=.
10253 libname=conftest
10254 lt_save_allow_undefined_flag=$allow_undefined_flag
10255 allow_undefined_flag=
10256 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10257 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10258 ac_status=$?
10259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10260 test $ac_status = 0; }
10261 then
10262 lt_cv_archive_cmds_need_lc=no
10263 else
10264 lt_cv_archive_cmds_need_lc=yes
10265 fi
10266 allow_undefined_flag=$lt_save_allow_undefined_flag
10267 else
10268 cat conftest.err 1>&5
10269 fi
10270 $RM conftest*
10271
10272 fi
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10274 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10275 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10276 ;;
10277 esac
10278 fi
10279 ;;
10280 esac
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10434 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10435
10436 if test yes = "$GCC"; then
10437 case $host_os in
10438 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10439 *) lt_awk_arg='/^libraries:/' ;;
10440 esac
10441 case $host_os in
10442 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10443 *) lt_sed_strip_eq='s|=/|/|g' ;;
10444 esac
10445 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10446 case $lt_search_path_spec in
10447 *\;*)
10448 # if the path contains ";" then we assume it to be the separator
10449 # otherwise default to the standard path separator (i.e. ":") - it is
10450 # assumed that no part of a normal pathname contains ";" but that should
10451 # okay in the real world where ";" in dirpaths is itself problematic.
10452 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10453 ;;
10454 *)
10455 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10456 ;;
10457 esac
10458 # Ok, now we have the path, separated by spaces, we can step through it
10459 # and add multilib dir if necessary...
10460 lt_tmp_lt_search_path_spec=
10461 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10462 # ...but if some path component already ends with the multilib dir we assume
10463 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10464 case "$lt_multi_os_dir; $lt_search_path_spec " in
10465 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10466 lt_multi_os_dir=
10467 ;;
10468 esac
10469 for lt_sys_path in $lt_search_path_spec; do
10470 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10471 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10472 elif test -n "$lt_multi_os_dir"; then
10473 test -d "$lt_sys_path" && \
10474 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10475 fi
10476 done
10477 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10478 BEGIN {RS = " "; FS = "/|\n";} {
10479 lt_foo = "";
10480 lt_count = 0;
10481 for (lt_i = NF; lt_i > 0; lt_i--) {
10482 if ($lt_i != "" && $lt_i != ".") {
10483 if ($lt_i == "..") {
10484 lt_count++;
10485 } else {
10486 if (lt_count == 0) {
10487 lt_foo = "/" $lt_i lt_foo;
10488 } else {
10489 lt_count--;
10490 }
10491 }
10492 }
10493 }
10494 if (lt_foo != "") { lt_freq[lt_foo]++; }
10495 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10496 }'`
10497 # AWK program above erroneously prepends '/' to C:/dos/paths
10498 # for these hosts.
10499 case $host_os in
10500 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10501 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10502 esac
10503 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10504 else
10505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10506 fi
10507 library_names_spec=
10508 libname_spec='lib$name'
10509 soname_spec=
10510 shrext_cmds=.so
10511 postinstall_cmds=
10512 postuninstall_cmds=
10513 finish_cmds=
10514 finish_eval=
10515 shlibpath_var=
10516 shlibpath_overrides_runpath=unknown
10517 version_type=none
10518 dynamic_linker="$host_os ld.so"
10519 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10520 need_lib_prefix=unknown
10521 hardcode_into_libs=no
10522
10523 # when you set need_version to no, make sure it does not cause -set_version
10524 # flags to be left without arguments
10525 need_version=unknown
10526
10527
10528
10529 case $host_os in
10530 aix3*)
10531 version_type=linux # correct to gnu/linux during the next big refactor
10532 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10533 shlibpath_var=LIBPATH
10534
10535 # AIX 3 has no versioning support, so we append a major version to the name.
10536 soname_spec='$libname$release$shared_ext$major'
10537 ;;
10538
10539 aix[4-9]*)
10540 version_type=linux # correct to gnu/linux during the next big refactor
10541 need_lib_prefix=no
10542 need_version=no
10543 hardcode_into_libs=yes
10544 if test ia64 = "$host_cpu"; then
10545 # AIX 5 supports IA64
10546 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10547 shlibpath_var=LD_LIBRARY_PATH
10548 else
10549 # With GCC up to 2.95.x, collect2 would create an import file
10550 # for dependence libraries. The import file would start with
10551 # the line '#! .'. This would cause the generated library to
10552 # depend on '.', always an invalid library. This was fixed in
10553 # development snapshots of GCC prior to 3.0.
10554 case $host_os in
10555 aix4 | aix4.[01] | aix4.[01].*)
10556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10557 echo ' yes '
10558 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10559 :
10560 else
10561 can_build_shared=no
10562 fi
10563 ;;
10564 esac
10565 # Using Import Files as archive members, it is possible to support
10566 # filename-based versioning of shared library archives on AIX. While
10567 # this would work for both with and without runtime linking, it will
10568 # prevent static linking of such archives. So we do filename-based
10569 # shared library versioning with .so extension only, which is used
10570 # when both runtime linking and shared linking is enabled.
10571 # Unfortunately, runtime linking may impact performance, so we do
10572 # not want this to be the default eventually. Also, we use the
10573 # versioned .so libs for executables only if there is the -brtl
10574 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10575 # To allow for filename-based versioning support, we need to create
10576 # libNAME.so.V as an archive file, containing:
10577 # *) an Import File, referring to the versioned filename of the
10578 # archive as well as the shared archive member, telling the
10579 # bitwidth (32 or 64) of that shared object, and providing the
10580 # list of exported symbols of that shared object, eventually
10581 # decorated with the 'weak' keyword
10582 # *) the shared object with the F_LOADONLY flag set, to really avoid
10583 # it being seen by the linker.
10584 # At run time we better use the real file rather than another symlink,
10585 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10586
10587 case $with_aix_soname,$aix_use_runtimelinking in
10588 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10589 # soname into executable. Probably we can add versioning support to
10590 # collect2, so additional links can be useful in future.
10591 aix,yes) # traditional libtool
10592 dynamic_linker='AIX unversionable lib.so'
10593 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10594 # instead of lib<name>.a to let people know that these are not
10595 # typical AIX shared libraries.
10596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10597 ;;
10598 aix,no) # traditional AIX only
10599 dynamic_linker='AIX lib.a(lib.so.V)'
10600 # We preserve .a as extension for shared libraries through AIX4.2
10601 # and later when we are not doing run time linking.
10602 library_names_spec='$libname$release.a $libname.a'
10603 soname_spec='$libname$release$shared_ext$major'
10604 ;;
10605 svr4,*) # full svr4 only
10606 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10607 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10608 # We do not specify a path in Import Files, so LIBPATH fires.
10609 shlibpath_overrides_runpath=yes
10610 ;;
10611 *,yes) # both, prefer svr4
10612 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10613 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10614 # unpreferred sharedlib libNAME.a needs extra handling
10615 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10616 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10617 # We do not specify a path in Import Files, so LIBPATH fires.
10618 shlibpath_overrides_runpath=yes
10619 ;;
10620 *,no) # both, prefer aix
10621 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10622 library_names_spec='$libname$release.a $libname.a'
10623 soname_spec='$libname$release$shared_ext$major'
10624 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10625 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10626 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10627 ;;
10628 esac
10629 shlibpath_var=LIBPATH
10630 fi
10631 ;;
10632
10633 amigaos*)
10634 case $host_cpu in
10635 powerpc)
10636 # Since July 2007 AmigaOS4 officially supports .so libraries.
10637 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10638 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10639 ;;
10640 m68k)
10641 library_names_spec='$libname.ixlibrary $libname.a'
10642 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10643 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10644 ;;
10645 esac
10646 ;;
10647
10648 beos*)
10649 library_names_spec='$libname$shared_ext'
10650 dynamic_linker="$host_os ld.so"
10651 shlibpath_var=LIBRARY_PATH
10652 ;;
10653
10654 bsdi[45]*)
10655 version_type=linux # correct to gnu/linux during the next big refactor
10656 need_version=no
10657 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10658 soname_spec='$libname$release$shared_ext$major'
10659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10660 shlibpath_var=LD_LIBRARY_PATH
10661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10663 # the default ld.so.conf also contains /usr/contrib/lib and
10664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10665 # libtool to hard-code these into programs
10666 ;;
10667
10668 cygwin* | mingw* | pw32* | cegcc*)
10669 version_type=windows
10670 shrext_cmds=.dll
10671 need_version=no
10672 need_lib_prefix=no
10673
10674 case $GCC,$cc_basename in
10675 yes,*)
10676 # gcc
10677 library_names_spec='$libname.dll.a'
10678 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10679 postinstall_cmds='base_file=`basename \$file`~
10680 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10681 dldir=$destdir/`dirname \$dlpath`~
10682 test -d \$dldir || mkdir -p \$dldir~
10683 $install_prog $dir/$dlname \$dldir/$dlname~
10684 chmod a+x \$dldir/$dlname~
10685 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10686 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10687 fi'
10688 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10689 dlpath=$dir/\$dldll~
10690 $RM \$dlpath'
10691 shlibpath_overrides_runpath=yes
10692
10693 case $host_os in
10694 cygwin*)
10695 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10696 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10697
10698 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10699 ;;
10700 mingw* | cegcc*)
10701 # MinGW DLLs use traditional 'lib' prefix
10702 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10703 ;;
10704 pw32*)
10705 # pw32 DLLs use 'pw' prefix rather than 'lib'
10706 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10707 ;;
10708 esac
10709 dynamic_linker='Win32 ld.exe'
10710 ;;
10711
10712 *,cl*)
10713 # Native MSVC
10714 libname_spec='$name'
10715 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10716 library_names_spec='$libname.dll.lib'
10717
10718 case $build_os in
10719 mingw*)
10720 sys_lib_search_path_spec=
10721 lt_save_ifs=$IFS
10722 IFS=';'
10723 for lt_path in $LIB
10724 do
10725 IFS=$lt_save_ifs
10726 # Let DOS variable expansion print the short 8.3 style file name.
10727 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10728 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10729 done
10730 IFS=$lt_save_ifs
10731 # Convert to MSYS style.
10732 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10733 ;;
10734 cygwin*)
10735 # Convert to unix form, then to dos form, then back to unix form
10736 # but this time dos style (no spaces!) so that the unix form looks
10737 # like /cygdrive/c/PROGRA~1:/cygdr...
10738 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10739 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10740 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10741 ;;
10742 *)
10743 sys_lib_search_path_spec=$LIB
10744 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10745 # It is most probably a Windows format PATH.
10746 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10747 else
10748 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10749 fi
10750 # FIXME: find the short name or the path components, as spaces are
10751 # common. (e.g. "Program Files" -> "PROGRA~1")
10752 ;;
10753 esac
10754
10755 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10756 postinstall_cmds='base_file=`basename \$file`~
10757 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10758 dldir=$destdir/`dirname \$dlpath`~
10759 test -d \$dldir || mkdir -p \$dldir~
10760 $install_prog $dir/$dlname \$dldir/$dlname'
10761 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10762 dlpath=$dir/\$dldll~
10763 $RM \$dlpath'
10764 shlibpath_overrides_runpath=yes
10765 dynamic_linker='Win32 link.exe'
10766 ;;
10767
10768 *)
10769 # Assume MSVC wrapper
10770 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10771 dynamic_linker='Win32 ld.exe'
10772 ;;
10773 esac
10774 # FIXME: first we should search . and the directory the executable is in
10775 shlibpath_var=PATH
10776 ;;
10777
10778 darwin* | rhapsody*)
10779 dynamic_linker="$host_os dyld"
10780 version_type=darwin
10781 need_lib_prefix=no
10782 need_version=no
10783 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10784 soname_spec='$libname$release$major$shared_ext'
10785 shlibpath_overrides_runpath=yes
10786 shlibpath_var=DYLD_LIBRARY_PATH
10787 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10788
10789 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10790 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10791 ;;
10792
10793 dgux*)
10794 version_type=linux # correct to gnu/linux during the next big refactor
10795 need_lib_prefix=no
10796 need_version=no
10797 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10798 soname_spec='$libname$release$shared_ext$major'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 ;;
10801
10802 freebsd* | dragonfly*)
10803 # DragonFly does not have aout. When/if they implement a new
10804 # versioning mechanism, adjust this.
10805 if test -x /usr/bin/objformat; then
10806 objformat=`/usr/bin/objformat`
10807 else
10808 case $host_os in
10809 freebsd[23].*) objformat=aout ;;
10810 *) objformat=elf ;;
10811 esac
10812 fi
10813 version_type=freebsd-$objformat
10814 case $version_type in
10815 freebsd-elf*)
10816 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10817 soname_spec='$libname$release$shared_ext$major'
10818 need_version=no
10819 need_lib_prefix=no
10820 ;;
10821 freebsd-*)
10822 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10823 need_version=yes
10824 ;;
10825 esac
10826 shlibpath_var=LD_LIBRARY_PATH
10827 case $host_os in
10828 freebsd2.*)
10829 shlibpath_overrides_runpath=yes
10830 ;;
10831 freebsd3.[01]* | freebsdelf3.[01]*)
10832 shlibpath_overrides_runpath=yes
10833 hardcode_into_libs=yes
10834 ;;
10835 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10836 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10837 shlibpath_overrides_runpath=no
10838 hardcode_into_libs=yes
10839 ;;
10840 *) # from 4.6 on, and DragonFly
10841 shlibpath_overrides_runpath=yes
10842 hardcode_into_libs=yes
10843 ;;
10844 esac
10845 ;;
10846
10847 haiku*)
10848 version_type=linux # correct to gnu/linux during the next big refactor
10849 need_lib_prefix=no
10850 need_version=no
10851 dynamic_linker="$host_os runtime_loader"
10852 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10853 soname_spec='$libname$release$shared_ext$major'
10854 shlibpath_var=LIBRARY_PATH
10855 shlibpath_overrides_runpath=no
10856 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10857 hardcode_into_libs=yes
10858 ;;
10859
10860 hpux9* | hpux10* | hpux11*)
10861 # Give a soname corresponding to the major version so that dld.sl refuses to
10862 # link against other versions.
10863 version_type=sunos
10864 need_lib_prefix=no
10865 need_version=no
10866 case $host_cpu in
10867 ia64*)
10868 shrext_cmds='.so'
10869 hardcode_into_libs=yes
10870 dynamic_linker="$host_os dld.so"
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10873 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10874 soname_spec='$libname$release$shared_ext$major'
10875 if test 32 = "$HPUX_IA64_MODE"; then
10876 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10877 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10878 else
10879 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10880 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10881 fi
10882 ;;
10883 hppa*64*)
10884 shrext_cmds='.sl'
10885 hardcode_into_libs=yes
10886 dynamic_linker="$host_os dld.sl"
10887 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10888 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10890 soname_spec='$libname$release$shared_ext$major'
10891 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10893 ;;
10894 *)
10895 shrext_cmds='.sl'
10896 dynamic_linker="$host_os dld.sl"
10897 shlibpath_var=SHLIB_PATH
10898 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10900 soname_spec='$libname$release$shared_ext$major'
10901 ;;
10902 esac
10903 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10904 postinstall_cmds='chmod 555 $lib'
10905 # or fails outright, so override atomically:
10906 install_override_mode=555
10907 ;;
10908
10909 interix[3-9]*)
10910 version_type=linux # correct to gnu/linux during the next big refactor
10911 need_lib_prefix=no
10912 need_version=no
10913 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10914 soname_spec='$libname$release$shared_ext$major'
10915 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10916 shlibpath_var=LD_LIBRARY_PATH
10917 shlibpath_overrides_runpath=no
10918 hardcode_into_libs=yes
10919 ;;
10920
10921 irix5* | irix6* | nonstopux*)
10922 case $host_os in
10923 nonstopux*) version_type=nonstopux ;;
10924 *)
10925 if test yes = "$lt_cv_prog_gnu_ld"; then
10926 version_type=linux # correct to gnu/linux during the next big refactor
10927 else
10928 version_type=irix
10929 fi ;;
10930 esac
10931 need_lib_prefix=no
10932 need_version=no
10933 soname_spec='$libname$release$shared_ext$major'
10934 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10935 case $host_os in
10936 irix5* | nonstopux*)
10937 libsuff= shlibsuff=
10938 ;;
10939 *)
10940 case $LD in # libtool.m4 will add one of these switches to LD
10941 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10942 libsuff= shlibsuff= libmagic=32-bit;;
10943 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10944 libsuff=32 shlibsuff=N32 libmagic=N32;;
10945 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10946 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10947 *) libsuff= shlibsuff= libmagic=never-match;;
10948 esac
10949 ;;
10950 esac
10951 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10952 shlibpath_overrides_runpath=no
10953 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10954 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10955 hardcode_into_libs=yes
10956 ;;
10957
10958 # No shared lib support for Linux oldld, aout, or coff.
10959 linux*oldld* | linux*aout* | linux*coff*)
10960 dynamic_linker=no
10961 ;;
10962
10963 linux*android*)
10964 version_type=none # Android doesn't support versioned libraries.
10965 need_lib_prefix=no
10966 need_version=no
10967 library_names_spec='$libname$release$shared_ext'
10968 soname_spec='$libname$release$shared_ext'
10969 finish_cmds=
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=yes
10972
10973 # This implies no fast_install, which is unacceptable.
10974 # Some rework will be needed to allow for fast_install
10975 # before this can be enabled.
10976 hardcode_into_libs=yes
10977
10978 dynamic_linker='Android linker'
10979 # Don't embed -rpath directories since the linker doesn't support them.
10980 hardcode_libdir_flag_spec='-L$libdir'
10981 ;;
10982
10983 # This must be glibc/ELF.
10984 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10985 version_type=linux # correct to gnu/linux during the next big refactor
10986 need_lib_prefix=no
10987 need_version=no
10988 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10989 soname_spec='$libname$release$shared_ext$major'
10990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=no
10993
10994 # Some binutils ld are patched to set DT_RUNPATH
10995 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10996 $as_echo_n "(cached) " >&6
10997 else
10998 lt_cv_shlibpath_overrides_runpath=no
10999 save_LDFLAGS=$LDFLAGS
11000 save_libdir=$libdir
11001 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11002 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005
11006 int
11007 main ()
11008 {
11009
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"; then :
11015 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11016 lt_cv_shlibpath_overrides_runpath=yes
11017 fi
11018 fi
11019 rm -f core conftest.err conftest.$ac_objext \
11020 conftest$ac_exeext conftest.$ac_ext
11021 LDFLAGS=$save_LDFLAGS
11022 libdir=$save_libdir
11023
11024 fi
11025
11026 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11027
11028 # This implies no fast_install, which is unacceptable.
11029 # Some rework will be needed to allow for fast_install
11030 # before this can be enabled.
11031 hardcode_into_libs=yes
11032
11033 # Ideally, we could use ldconfig to report *all* directores which are
11034 # searched for libraries, however this is still not possible. Aside from not
11035 # being certain /sbin/ldconfig is available, command
11036 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11037 # even though it is searched at run-time. Try to do the best guess by
11038 # appending ld.so.conf contents (and includes) to the search path.
11039 if test -f /etc/ld.so.conf; then
11040 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' ' '`
11041 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11042 fi
11043
11044 # We used to test for /lib/ld.so.1 and disable shared libraries on
11045 # powerpc, because MkLinux only supported shared libraries with the
11046 # GNU dynamic linker. Since this was broken with cross compilers,
11047 # most powerpc-linux boxes support dynamic linking these days and
11048 # people can always --disable-shared, the test was removed, and we
11049 # assume the GNU/Linux dynamic linker is in use.
11050 dynamic_linker='GNU/Linux ld.so'
11051 ;;
11052
11053 netbsdelf*-gnu)
11054 version_type=linux
11055 need_lib_prefix=no
11056 need_version=no
11057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11058 soname_spec='${libname}${release}${shared_ext}$major'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=no
11061 hardcode_into_libs=yes
11062 dynamic_linker='NetBSD ld.elf_so'
11063 ;;
11064
11065 netbsd*)
11066 version_type=sunos
11067 need_lib_prefix=no
11068 need_version=no
11069 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11070 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11072 dynamic_linker='NetBSD (a.out) ld.so'
11073 else
11074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11075 soname_spec='$libname$release$shared_ext$major'
11076 dynamic_linker='NetBSD ld.elf_so'
11077 fi
11078 shlibpath_var=LD_LIBRARY_PATH
11079 shlibpath_overrides_runpath=yes
11080 hardcode_into_libs=yes
11081 ;;
11082
11083 newsos6)
11084 version_type=linux # correct to gnu/linux during the next big refactor
11085 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes
11088 ;;
11089
11090 *nto* | *qnx*)
11091 version_type=qnx
11092 need_lib_prefix=no
11093 need_version=no
11094 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11095 soname_spec='$libname$release$shared_ext$major'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=no
11098 hardcode_into_libs=yes
11099 dynamic_linker='ldqnx.so'
11100 ;;
11101
11102 openbsd* | bitrig*)
11103 version_type=sunos
11104 sys_lib_dlsearch_path_spec=/usr/lib
11105 need_lib_prefix=no
11106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11107 need_version=no
11108 else
11109 need_version=yes
11110 fi
11111 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11113 shlibpath_var=LD_LIBRARY_PATH
11114 shlibpath_overrides_runpath=yes
11115 ;;
11116
11117 os2*)
11118 libname_spec='$name'
11119 version_type=windows
11120 shrext_cmds=.dll
11121 need_version=no
11122 need_lib_prefix=no
11123 # OS/2 can only load a DLL with a base name of 8 characters or less.
11124 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11125 v=$($ECHO $release$versuffix | tr -d .-);
11126 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11127 $ECHO $n$v`$shared_ext'
11128 library_names_spec='${libname}_dll.$libext'
11129 dynamic_linker='OS/2 ld.exe'
11130 shlibpath_var=BEGINLIBPATH
11131 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11133 postinstall_cmds='base_file=`basename \$file`~
11134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11135 dldir=$destdir/`dirname \$dlpath`~
11136 test -d \$dldir || mkdir -p \$dldir~
11137 $install_prog $dir/$dlname \$dldir/$dlname~
11138 chmod a+x \$dldir/$dlname~
11139 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11140 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11141 fi'
11142 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11143 dlpath=$dir/\$dldll~
11144 $RM \$dlpath'
11145 ;;
11146
11147 osf3* | osf4* | osf5*)
11148 version_type=osf
11149 need_lib_prefix=no
11150 need_version=no
11151 soname_spec='$libname$release$shared_ext$major'
11152 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11155 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11156 ;;
11157
11158 rdos*)
11159 dynamic_linker=no
11160 ;;
11161
11162 solaris*)
11163 version_type=linux # correct to gnu/linux during the next big refactor
11164 need_lib_prefix=no
11165 need_version=no
11166 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11167 soname_spec='$libname$release$shared_ext$major'
11168 shlibpath_var=LD_LIBRARY_PATH
11169 shlibpath_overrides_runpath=yes
11170 hardcode_into_libs=yes
11171 # ldd complains unless libraries are executable
11172 postinstall_cmds='chmod +x $lib'
11173 ;;
11174
11175 sunos4*)
11176 version_type=sunos
11177 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11178 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11179 shlibpath_var=LD_LIBRARY_PATH
11180 shlibpath_overrides_runpath=yes
11181 if test yes = "$with_gnu_ld"; then
11182 need_lib_prefix=no
11183 fi
11184 need_version=yes
11185 ;;
11186
11187 sysv4 | sysv4.3*)
11188 version_type=linux # correct to gnu/linux during the next big refactor
11189 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11190 soname_spec='$libname$release$shared_ext$major'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 case $host_vendor in
11193 sni)
11194 shlibpath_overrides_runpath=no
11195 need_lib_prefix=no
11196 runpath_var=LD_RUN_PATH
11197 ;;
11198 siemens)
11199 need_lib_prefix=no
11200 ;;
11201 motorola)
11202 need_lib_prefix=no
11203 need_version=no
11204 shlibpath_overrides_runpath=no
11205 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11206 ;;
11207 esac
11208 ;;
11209
11210 sysv4*MP*)
11211 if test -d /usr/nec; then
11212 version_type=linux # correct to gnu/linux during the next big refactor
11213 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11214 soname_spec='$libname$shared_ext.$major'
11215 shlibpath_var=LD_LIBRARY_PATH
11216 fi
11217 ;;
11218
11219 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11220 version_type=sco
11221 need_lib_prefix=no
11222 need_version=no
11223 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11224 soname_spec='$libname$release$shared_ext$major'
11225 shlibpath_var=LD_LIBRARY_PATH
11226 shlibpath_overrides_runpath=yes
11227 hardcode_into_libs=yes
11228 if test yes = "$with_gnu_ld"; then
11229 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11230 else
11231 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11232 case $host_os in
11233 sco3.2v5*)
11234 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11235 ;;
11236 esac
11237 fi
11238 sys_lib_dlsearch_path_spec='/usr/lib'
11239 ;;
11240
11241 tpf*)
11242 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11243 version_type=linux # correct to gnu/linux during the next big refactor
11244 need_lib_prefix=no
11245 need_version=no
11246 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11247 shlibpath_var=LD_LIBRARY_PATH
11248 shlibpath_overrides_runpath=no
11249 hardcode_into_libs=yes
11250 ;;
11251
11252 uts4*)
11253 version_type=linux # correct to gnu/linux during the next big refactor
11254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11255 soname_spec='$libname$release$shared_ext$major'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 ;;
11258
11259 *)
11260 dynamic_linker=no
11261 ;;
11262 esac
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11264 $as_echo "$dynamic_linker" >&6; }
11265 test no = "$dynamic_linker" && can_build_shared=no
11266
11267 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11268 if test yes = "$GCC"; then
11269 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11270 fi
11271
11272 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11273 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11274 fi
11275
11276 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11277 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11278 fi
11279
11280 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11281 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11282
11283 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11284 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11285
11286 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11287 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11386 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11387 hardcode_action=
11388 if test -n "$hardcode_libdir_flag_spec" ||
11389 test -n "$runpath_var" ||
11390 test yes = "$hardcode_automatic"; then
11391
11392 # We can hardcode non-existent directories.
11393 if test no != "$hardcode_direct" &&
11394 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11395 # have to relink, otherwise we might link with an installed library
11396 # when we should be linking with a yet-to-be-installed one
11397 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11398 test no != "$hardcode_minus_L"; then
11399 # Linking always hardcodes the temporary library directory.
11400 hardcode_action=relink
11401 else
11402 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11403 hardcode_action=immediate
11404 fi
11405 else
11406 # We cannot hardcode anything, or else we can only hardcode existing
11407 # directories.
11408 hardcode_action=unsupported
11409 fi
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11411 $as_echo "$hardcode_action" >&6; }
11412
11413 if test relink = "$hardcode_action" ||
11414 test yes = "$inherit_rpath"; then
11415 # Fast installation is not supported
11416 enable_fast_install=no
11417 elif test yes = "$shlibpath_overrides_runpath" ||
11418 test no = "$enable_shared"; then
11419 # Fast installation is not necessary
11420 enable_fast_install=needless
11421 fi
11422
11423
11424
11425
11426
11427
11428 if test yes != "$enable_dlopen"; then
11429 enable_dlopen=unknown
11430 enable_dlopen_self=unknown
11431 enable_dlopen_self_static=unknown
11432 else
11433 lt_cv_dlopen=no
11434 lt_cv_dlopen_libs=
11435
11436 case $host_os in
11437 beos*)
11438 lt_cv_dlopen=load_add_on
11439 lt_cv_dlopen_libs=
11440 lt_cv_dlopen_self=yes
11441 ;;
11442
11443 mingw* | pw32* | cegcc*)
11444 lt_cv_dlopen=LoadLibrary
11445 lt_cv_dlopen_libs=
11446 ;;
11447
11448 cygwin*)
11449 lt_cv_dlopen=dlopen
11450 lt_cv_dlopen_libs=
11451 ;;
11452
11453 darwin*)
11454 # if libdl is installed we need to link against it
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11456 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11457 if ${ac_cv_lib_dl_dlopen+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-ldl $LIBS"
11462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464
11465 /* Override any GCC internal prototype to avoid an error.
11466 Use char because int might match the return type of a GCC
11467 builtin and then its argument prototype would still apply. */
11468 #ifdef __cplusplus
11469 extern "C"
11470 #endif
11471 char dlopen ();
11472 int
11473 main ()
11474 {
11475 return dlopen ();
11476 ;
11477 return 0;
11478 }
11479 _ACEOF
11480 if ac_fn_c_try_link "$LINENO"; then :
11481 ac_cv_lib_dl_dlopen=yes
11482 else
11483 ac_cv_lib_dl_dlopen=no
11484 fi
11485 rm -f core conftest.err conftest.$ac_objext \
11486 conftest$ac_exeext conftest.$ac_ext
11487 LIBS=$ac_check_lib_save_LIBS
11488 fi
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11490 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11491 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11492 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11493 else
11494
11495 lt_cv_dlopen=dyld
11496 lt_cv_dlopen_libs=
11497 lt_cv_dlopen_self=yes
11498
11499 fi
11500
11501 ;;
11502
11503 tpf*)
11504 # Don't try to run any link tests for TPF. We know it's impossible
11505 # because TPF is a cross-compiler, and we know how we open DSOs.
11506 lt_cv_dlopen=dlopen
11507 lt_cv_dlopen_libs=
11508 lt_cv_dlopen_self=no
11509 ;;
11510
11511 *)
11512 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11513 if test "x$ac_cv_func_shl_load" = xyes; then :
11514 lt_cv_dlopen=shl_load
11515 else
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11517 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11518 if ${ac_cv_lib_dld_shl_load+:} false; then :
11519 $as_echo_n "(cached) " >&6
11520 else
11521 ac_check_lib_save_LIBS=$LIBS
11522 LIBS="-ldld $LIBS"
11523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11524 /* end confdefs.h. */
11525
11526 /* Override any GCC internal prototype to avoid an error.
11527 Use char because int might match the return type of a GCC
11528 builtin and then its argument prototype would still apply. */
11529 #ifdef __cplusplus
11530 extern "C"
11531 #endif
11532 char shl_load ();
11533 int
11534 main ()
11535 {
11536 return shl_load ();
11537 ;
11538 return 0;
11539 }
11540 _ACEOF
11541 if ac_fn_c_try_link "$LINENO"; then :
11542 ac_cv_lib_dld_shl_load=yes
11543 else
11544 ac_cv_lib_dld_shl_load=no
11545 fi
11546 rm -f core conftest.err conftest.$ac_objext \
11547 conftest$ac_exeext conftest.$ac_ext
11548 LIBS=$ac_check_lib_save_LIBS
11549 fi
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11551 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11552 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11553 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11554 else
11555 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11556 if test "x$ac_cv_func_dlopen" = xyes; then :
11557 lt_cv_dlopen=dlopen
11558 else
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11560 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11561 if ${ac_cv_lib_dl_dlopen+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 ac_check_lib_save_LIBS=$LIBS
11565 LIBS="-ldl $LIBS"
11566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11567 /* end confdefs.h. */
11568
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11572 #ifdef __cplusplus
11573 extern "C"
11574 #endif
11575 char dlopen ();
11576 int
11577 main ()
11578 {
11579 return dlopen ();
11580 ;
11581 return 0;
11582 }
11583 _ACEOF
11584 if ac_fn_c_try_link "$LINENO"; then :
11585 ac_cv_lib_dl_dlopen=yes
11586 else
11587 ac_cv_lib_dl_dlopen=no
11588 fi
11589 rm -f core conftest.err conftest.$ac_objext \
11590 conftest$ac_exeext conftest.$ac_ext
11591 LIBS=$ac_check_lib_save_LIBS
11592 fi
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11594 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11595 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11596 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11599 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11600 if ${ac_cv_lib_svld_dlopen+:} false; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 ac_check_lib_save_LIBS=$LIBS
11604 LIBS="-lsvld $LIBS"
11605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607
11608 /* Override any GCC internal prototype to avoid an error.
11609 Use char because int might match the return type of a GCC
11610 builtin and then its argument prototype would still apply. */
11611 #ifdef __cplusplus
11612 extern "C"
11613 #endif
11614 char dlopen ();
11615 int
11616 main ()
11617 {
11618 return dlopen ();
11619 ;
11620 return 0;
11621 }
11622 _ACEOF
11623 if ac_fn_c_try_link "$LINENO"; then :
11624 ac_cv_lib_svld_dlopen=yes
11625 else
11626 ac_cv_lib_svld_dlopen=no
11627 fi
11628 rm -f core conftest.err conftest.$ac_objext \
11629 conftest$ac_exeext conftest.$ac_ext
11630 LIBS=$ac_check_lib_save_LIBS
11631 fi
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11633 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11634 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11635 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11636 else
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11638 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11639 if ${ac_cv_lib_dld_dld_link+:} false; then :
11640 $as_echo_n "(cached) " >&6
11641 else
11642 ac_check_lib_save_LIBS=$LIBS
11643 LIBS="-ldld $LIBS"
11644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11645 /* end confdefs.h. */
11646
11647 /* Override any GCC internal prototype to avoid an error.
11648 Use char because int might match the return type of a GCC
11649 builtin and then its argument prototype would still apply. */
11650 #ifdef __cplusplus
11651 extern "C"
11652 #endif
11653 char dld_link ();
11654 int
11655 main ()
11656 {
11657 return dld_link ();
11658 ;
11659 return 0;
11660 }
11661 _ACEOF
11662 if ac_fn_c_try_link "$LINENO"; then :
11663 ac_cv_lib_dld_dld_link=yes
11664 else
11665 ac_cv_lib_dld_dld_link=no
11666 fi
11667 rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11670 fi
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11672 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11673 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11674 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11675 fi
11676
11677
11678 fi
11679
11680
11681 fi
11682
11683
11684 fi
11685
11686
11687 fi
11688
11689
11690 fi
11691
11692 ;;
11693 esac
11694
11695 if test no = "$lt_cv_dlopen"; then
11696 enable_dlopen=no
11697 else
11698 enable_dlopen=yes
11699 fi
11700
11701 case $lt_cv_dlopen in
11702 dlopen)
11703 save_CPPFLAGS=$CPPFLAGS
11704 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11705
11706 save_LDFLAGS=$LDFLAGS
11707 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11708
11709 save_LIBS=$LIBS
11710 LIBS="$lt_cv_dlopen_libs $LIBS"
11711
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11713 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11714 if ${lt_cv_dlopen_self+:} false; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 if test yes = "$cross_compiling"; then :
11718 lt_cv_dlopen_self=cross
11719 else
11720 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11721 lt_status=$lt_dlunknown
11722 cat > conftest.$ac_ext <<_LT_EOF
11723 #line $LINENO "configure"
11724 #include "confdefs.h"
11725
11726 #if HAVE_DLFCN_H
11727 #include <dlfcn.h>
11728 #endif
11729
11730 #include <stdio.h>
11731
11732 #ifdef RTLD_GLOBAL
11733 # define LT_DLGLOBAL RTLD_GLOBAL
11734 #else
11735 # ifdef DL_GLOBAL
11736 # define LT_DLGLOBAL DL_GLOBAL
11737 # else
11738 # define LT_DLGLOBAL 0
11739 # endif
11740 #endif
11741
11742 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11743 find out it does not work in some platform. */
11744 #ifndef LT_DLLAZY_OR_NOW
11745 # ifdef RTLD_LAZY
11746 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11747 # else
11748 # ifdef DL_LAZY
11749 # define LT_DLLAZY_OR_NOW DL_LAZY
11750 # else
11751 # ifdef RTLD_NOW
11752 # define LT_DLLAZY_OR_NOW RTLD_NOW
11753 # else
11754 # ifdef DL_NOW
11755 # define LT_DLLAZY_OR_NOW DL_NOW
11756 # else
11757 # define LT_DLLAZY_OR_NOW 0
11758 # endif
11759 # endif
11760 # endif
11761 # endif
11762 #endif
11763
11764 /* When -fvisibility=hidden is used, assume the code has been annotated
11765 correspondingly for the symbols needed. */
11766 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11767 int fnord () __attribute__((visibility("default")));
11768 #endif
11769
11770 int fnord () { return 42; }
11771 int main ()
11772 {
11773 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11774 int status = $lt_dlunknown;
11775
11776 if (self)
11777 {
11778 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11779 else
11780 {
11781 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11782 else puts (dlerror ());
11783 }
11784 /* dlclose (self); */
11785 }
11786 else
11787 puts (dlerror ());
11788
11789 return status;
11790 }
11791 _LT_EOF
11792 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11793 (eval $ac_link) 2>&5
11794 ac_status=$?
11795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11796 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11797 (./conftest; exit; ) >&5 2>/dev/null
11798 lt_status=$?
11799 case x$lt_status in
11800 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11801 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11802 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11803 esac
11804 else :
11805 # compilation failed
11806 lt_cv_dlopen_self=no
11807 fi
11808 fi
11809 rm -fr conftest*
11810
11811
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11814 $as_echo "$lt_cv_dlopen_self" >&6; }
11815
11816 if test yes = "$lt_cv_dlopen_self"; then
11817 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11819 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11820 if ${lt_cv_dlopen_self_static+:} false; then :
11821 $as_echo_n "(cached) " >&6
11822 else
11823 if test yes = "$cross_compiling"; then :
11824 lt_cv_dlopen_self_static=cross
11825 else
11826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11827 lt_status=$lt_dlunknown
11828 cat > conftest.$ac_ext <<_LT_EOF
11829 #line $LINENO "configure"
11830 #include "confdefs.h"
11831
11832 #if HAVE_DLFCN_H
11833 #include <dlfcn.h>
11834 #endif
11835
11836 #include <stdio.h>
11837
11838 #ifdef RTLD_GLOBAL
11839 # define LT_DLGLOBAL RTLD_GLOBAL
11840 #else
11841 # ifdef DL_GLOBAL
11842 # define LT_DLGLOBAL DL_GLOBAL
11843 # else
11844 # define LT_DLGLOBAL 0
11845 # endif
11846 #endif
11847
11848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11849 find out it does not work in some platform. */
11850 #ifndef LT_DLLAZY_OR_NOW
11851 # ifdef RTLD_LAZY
11852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11853 # else
11854 # ifdef DL_LAZY
11855 # define LT_DLLAZY_OR_NOW DL_LAZY
11856 # else
11857 # ifdef RTLD_NOW
11858 # define LT_DLLAZY_OR_NOW RTLD_NOW
11859 # else
11860 # ifdef DL_NOW
11861 # define LT_DLLAZY_OR_NOW DL_NOW
11862 # else
11863 # define LT_DLLAZY_OR_NOW 0
11864 # endif
11865 # endif
11866 # endif
11867 # endif
11868 #endif
11869
11870 /* When -fvisibility=hidden is used, assume the code has been annotated
11871 correspondingly for the symbols needed. */
11872 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11873 int fnord () __attribute__((visibility("default")));
11874 #endif
11875
11876 int fnord () { return 42; }
11877 int main ()
11878 {
11879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11880 int status = $lt_dlunknown;
11881
11882 if (self)
11883 {
11884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11885 else
11886 {
11887 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11888 else puts (dlerror ());
11889 }
11890 /* dlclose (self); */
11891 }
11892 else
11893 puts (dlerror ());
11894
11895 return status;
11896 }
11897 _LT_EOF
11898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11899 (eval $ac_link) 2>&5
11900 ac_status=$?
11901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11902 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11903 (./conftest; exit; ) >&5 2>/dev/null
11904 lt_status=$?
11905 case x$lt_status in
11906 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11907 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11908 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11909 esac
11910 else :
11911 # compilation failed
11912 lt_cv_dlopen_self_static=no
11913 fi
11914 fi
11915 rm -fr conftest*
11916
11917
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11920 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11921 fi
11922
11923 CPPFLAGS=$save_CPPFLAGS
11924 LDFLAGS=$save_LDFLAGS
11925 LIBS=$save_LIBS
11926 ;;
11927 esac
11928
11929 case $lt_cv_dlopen_self in
11930 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11931 *) enable_dlopen_self=unknown ;;
11932 esac
11933
11934 case $lt_cv_dlopen_self_static in
11935 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11936 *) enable_dlopen_self_static=unknown ;;
11937 esac
11938 fi
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956 striplib=
11957 old_striplib=
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11959 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11960 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11961 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11962 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11964 $as_echo "yes" >&6; }
11965 else
11966 # FIXME - insert some real tests, host_os isn't really good enough
11967 case $host_os in
11968 darwin*)
11969 if test -n "$STRIP"; then
11970 striplib="$STRIP -x"
11971 old_striplib="$STRIP -S"
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973 $as_echo "yes" >&6; }
11974 else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976 $as_echo "no" >&6; }
11977 fi
11978 ;;
11979 *)
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982 ;;
11983 esac
11984 fi
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997 # Report what library types will actually be built
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11999 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12001 $as_echo "$can_build_shared" >&6; }
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12004 $as_echo_n "checking whether to build shared libraries... " >&6; }
12005 test no = "$can_build_shared" && enable_shared=no
12006
12007 # On AIX, shared libraries and static libraries use the same namespace, and
12008 # are all built from PIC.
12009 case $host_os in
12010 aix3*)
12011 test yes = "$enable_shared" && enable_static=no
12012 if test -n "$RANLIB"; then
12013 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12014 postinstall_cmds='$RANLIB $lib'
12015 fi
12016 ;;
12017
12018 aix[4-9]*)
12019 if test ia64 != "$host_cpu"; then
12020 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12021 yes,aix,yes) ;; # shared object as lib.so file only
12022 yes,svr4,*) ;; # shared object as lib.so archive member only
12023 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12024 esac
12025 fi
12026 ;;
12027 esac
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12029 $as_echo "$enable_shared" >&6; }
12030
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12032 $as_echo_n "checking whether to build static libraries... " >&6; }
12033 # Make sure either enable_shared or enable_static is yes.
12034 test yes = "$enable_shared" || enable_static=yes
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12036 $as_echo "$enable_static" >&6; }
12037
12038
12039
12040
12041 fi
12042 ac_ext=c
12043 ac_cpp='$CPP $CPPFLAGS'
12044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12047
12048 CC=$lt_save_CC
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064 ac_config_commands="$ac_config_commands libtool"
12065
12066
12067
12068
12069 # Only expand once:
12070
12071
12072
12073
12074 # Check whether --enable-silent-rules was given.
12075 if test "${enable_silent_rules+set}" = set; then :
12076 enableval=$enable_silent_rules;
12077 fi
12078
12079 case $enable_silent_rules in # (((
12080 yes) AM_DEFAULT_VERBOSITY=0;;
12081 no) AM_DEFAULT_VERBOSITY=1;;
12082 *) AM_DEFAULT_VERBOSITY=0;;
12083 esac
12084 am_make=${MAKE-make}
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
12086 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
12087 if ${am_cv_make_support_nested_variables+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 if $as_echo 'TRUE=$(BAR$(V))
12091 BAR0=false
12092 BAR1=true
12093 V=1
12094 am__doit:
12095 @$(TRUE)
12096 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
12097 am_cv_make_support_nested_variables=yes
12098 else
12099 am_cv_make_support_nested_variables=no
12100 fi
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
12103 $as_echo "$am_cv_make_support_nested_variables" >&6; }
12104 if test $am_cv_make_support_nested_variables = yes; then
12105 AM_V='$(V)'
12106 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12107 else
12108 AM_V=$AM_DEFAULT_VERBOSITY
12109 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12110 fi
12111 AM_BACKSLASH='\'
12112
12113
12114
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12116 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12117 if ${ac_cv_prog_cc_c99+:} false; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_cv_prog_cc_c99=no
12121 ac_save_CC=$CC
12122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 /* end confdefs.h. */
12124 #include <stdarg.h>
12125 #include <stdbool.h>
12126 #include <stdlib.h>
12127 #include <wchar.h>
12128 #include <stdio.h>
12129
12130 // Check varargs macros. These examples are taken from C99 6.10.3.5.
12131 #define debug(...) fprintf (stderr, __VA_ARGS__)
12132 #define showlist(...) puts (#__VA_ARGS__)
12133 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12134 static void
12135 test_varargs_macros (void)
12136 {
12137 int x = 1234;
12138 int y = 5678;
12139 debug ("Flag");
12140 debug ("X = %d\n", x);
12141 showlist (The first, second, and third items.);
12142 report (x>y, "x is %d but y is %d", x, y);
12143 }
12144
12145 // Check long long types.
12146 #define BIG64 18446744073709551615ull
12147 #define BIG32 4294967295ul
12148 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12149 #if !BIG_OK
12150 your preprocessor is broken;
12151 #endif
12152 #if BIG_OK
12153 #else
12154 your preprocessor is broken;
12155 #endif
12156 static long long int bignum = -9223372036854775807LL;
12157 static unsigned long long int ubignum = BIG64;
12158
12159 struct incomplete_array
12160 {
12161 int datasize;
12162 double data[];
12163 };
12164
12165 struct named_init {
12166 int number;
12167 const wchar_t *name;
12168 double average;
12169 };
12170
12171 typedef const char *ccp;
12172
12173 static inline int
12174 test_restrict (ccp restrict text)
12175 {
12176 // See if C++-style comments work.
12177 // Iterate through items via the restricted pointer.
12178 // Also check for declarations in for loops.
12179 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12180 continue;
12181 return 0;
12182 }
12183
12184 // Check varargs and va_copy.
12185 static void
12186 test_varargs (const char *format, ...)
12187 {
12188 va_list args;
12189 va_start (args, format);
12190 va_list args_copy;
12191 va_copy (args_copy, args);
12192
12193 const char *str;
12194 int number;
12195 float fnumber;
12196
12197 while (*format)
12198 {
12199 switch (*format++)
12200 {
12201 case 's': // string
12202 str = va_arg (args_copy, const char *);
12203 break;
12204 case 'd': // int
12205 number = va_arg (args_copy, int);
12206 break;
12207 case 'f': // float
12208 fnumber = va_arg (args_copy, double);
12209 break;
12210 default:
12211 break;
12212 }
12213 }
12214 va_end (args_copy);
12215 va_end (args);
12216 }
12217
12218 int
12219 main ()
12220 {
12221
12222 // Check bool.
12223 _Bool success = false;
12224
12225 // Check restrict.
12226 if (test_restrict ("String literal") == 0)
12227 success = true;
12228 char *restrict newvar = "Another string";
12229
12230 // Check varargs.
12231 test_varargs ("s, d' f .", "string", 65, 34.234);
12232 test_varargs_macros ();
12233
12234 // Check flexible array members.
12235 struct incomplete_array *ia =
12236 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12237 ia->datasize = 10;
12238 for (int i = 0; i < ia->datasize; ++i)
12239 ia->data[i] = i * 1.234;
12240
12241 // Check named initializers.
12242 struct named_init ni = {
12243 .number = 34,
12244 .name = L"Test wide string",
12245 .average = 543.34343,
12246 };
12247
12248 ni.number = 58;
12249
12250 int dynamic_array[ni.number];
12251 dynamic_array[ni.number - 1] = 543;
12252
12253 // work around unused variable warnings
12254 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12255 || dynamic_array[ni.number - 1] != 543);
12256
12257 ;
12258 return 0;
12259 }
12260 _ACEOF
12261 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12262 do
12263 CC="$ac_save_CC $ac_arg"
12264 if ac_fn_c_try_compile "$LINENO"; then :
12265 ac_cv_prog_cc_c99=$ac_arg
12266 fi
12267 rm -f core conftest.err conftest.$ac_objext
12268 test "x$ac_cv_prog_cc_c99" != "xno" && break
12269 done
12270 rm -f conftest.$ac_ext
12271 CC=$ac_save_CC
12272
12273 fi
12274 # AC_CACHE_VAL
12275 case "x$ac_cv_prog_cc_c99" in
12276 x)
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12278 $as_echo "none needed" >&6; } ;;
12279 xno)
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12281 $as_echo "unsupported" >&6; } ;;
12282 *)
12283 CC="$CC $ac_cv_prog_cc_c99"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12285 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12286 esac
12287 if test "x$ac_cv_prog_cc_c99" != xno; then :
12288
12289 fi
12290
12291
12292
12293 OPENMP_CFLAGS=
12294 # Check whether --enable-openmp was given.
12295 if test "${enable_openmp+set}" = set; then :
12296 enableval=$enable_openmp;
12297 fi
12298
12299 if test "$enable_openmp" != no; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
12301 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
12302 if ${ac_cv_prog_c_openmp+:} false; then :
12303 $as_echo_n "(cached) " >&6
12304 else
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307
12308 #ifndef _OPENMP
12309 choke me
12310 #endif
12311 #include <omp.h>
12312 int main () { return omp_get_num_threads (); }
12313
12314 _ACEOF
12315 if ac_fn_c_try_link "$LINENO"; then :
12316 ac_cv_prog_c_openmp='none needed'
12317 else
12318 ac_cv_prog_c_openmp='unsupported'
12319 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
12320 -Popenmp --openmp; do
12321 ac_save_CFLAGS=$CFLAGS
12322 CFLAGS="$CFLAGS $ac_option"
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325
12326 #ifndef _OPENMP
12327 choke me
12328 #endif
12329 #include <omp.h>
12330 int main () { return omp_get_num_threads (); }
12331
12332 _ACEOF
12333 if ac_fn_c_try_link "$LINENO"; then :
12334 ac_cv_prog_c_openmp=$ac_option
12335 fi
12336 rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
12338 CFLAGS=$ac_save_CFLAGS
12339 if test "$ac_cv_prog_c_openmp" != unsupported; then
12340 break
12341 fi
12342 done
12343 fi
12344 rm -f core conftest.err conftest.$ac_objext \
12345 conftest$ac_exeext conftest.$ac_ext
12346 fi
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
12348 $as_echo "$ac_cv_prog_c_openmp" >&6; }
12349 case $ac_cv_prog_c_openmp in #(
12350 "none needed" | unsupported)
12351 ;; #(
12352 *)
12353 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
12354 esac
12355 fi
12356
12357
12358 CPPFLAGS="$CPPFLAGS $OPENMP_CFLAGS"
12359 CFLAGS="$CFLAGS $OPENMP_CFLAGS"
12360
12361 # adding the lib to the files to link
12362 LIBS="-lm"
12363
12364
12365
12366 tmpval=`echo $CFLAGS | grep -c '\-DMULTIARCH'`
12367 if test $tmpval -gt 0; then
12368 HAVE_MULTIARCH_TRUE=
12369 HAVE_MULTIARCH_FALSE='#'
12370 else
12371 HAVE_MULTIARCH_TRUE='#'
12372 HAVE_MULTIARCH_FALSE=
12373 fi
12374
12375
12376 PACKAGE_LIBS="-lsharp"
12377
12378
12379 # we need the expanded forms...
12380 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12381 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12382
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig libname" >&5
12384 $as_echo_n "checking our pkgconfig libname... " >&6; }
12385 test ".$ax_create_pkgconfig_libname" != "." || \
12386 ax_create_pkgconfig_libname="${PACKAGE_NAME}"
12387 test ".$ax_create_pkgconfig_libname" != "." || \
12388 ax_create_pkgconfig_libname="$PACKAGE"
12389 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
12390 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libname" >&5
12392 $as_echo "$ax_create_pkgconfig_libname" >&6; }
12393
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig version" >&5
12395 $as_echo_n "checking our pkgconfig version... " >&6; }
12396 test ".$ax_create_pkgconfig_version" != "." || \
12397 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
12398 test ".$ax_create_pkgconfig_version" != "." || \
12399 ax_create_pkgconfig_version="$VERSION"
12400 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
12401 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_version" >&5
12403 $as_echo "$ax_create_pkgconfig_version" >&6; }
12404
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libdir" >&5
12406 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
12407 test ".$pkgconfig_libdir" = "." && \
12408 pkgconfig_libdir='${libdir}/pkgconfig'
12409 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
12410 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
12411 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libdir" >&5
12413 $as_echo "$pkgconfig_libdir" >&6; }
12414 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
12416 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
12417
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig_libfile" >&5
12420 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
12421 test ".$pkgconfig_libfile" != "." || \
12422 pkgconfig_libfile="$ax_create_pkgconfig_libname.pc"
12423 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
12424 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkgconfig_libfile" >&5
12426 $as_echo "$pkgconfig_libfile" >&6; }
12427 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
12429 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
12430
12431
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our package / suffix" >&5
12433 $as_echo_n "checking our package / suffix... " >&6; }
12434 ax_create_pkgconfig_suffix="$program_suffix"
12435 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
12437 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
12438
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig description" >&5
12440 $as_echo_n "checking our pkgconfig description... " >&6; }
12441 ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
12442 test ".$ax_create_pkgconfig_description" != "." || \
12443 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
12444 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
12445 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_description" >&5
12447 $as_echo "$ax_create_pkgconfig_description" >&6; }
12448
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig requires" >&5
12450 $as_echo_n "checking our pkgconfig requires... " >&6; }
12451 ax_create_pkgconfig_requires="$PACKAGE_REQUIRES"
12452 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
12453 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_requires" >&5
12455 $as_echo "$ax_create_pkgconfig_requires" >&6; }
12456
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ext libs" >&5
12458 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
12459 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
12460 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
12461 ax_create_pkgconfig_libs="$ax_create_pkgconfig_pkglibs $LIBS"
12462 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
12463 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_libs" >&5
12465 $as_echo "$ax_create_pkgconfig_libs" >&6; }
12466
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig cppflags" >&5
12468 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
12469 ax_create_pkgconfig_cppflags="$PACKAGE_CFLAGS"
12470 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
12471 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_cppflags" >&5
12473 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
12474
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking our pkgconfig ldflags" >&5
12476 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
12477 ax_create_pkgconfig_ldflags="$PACKAGE_LDFLAGS"
12478 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
12479 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_create_pkgconfig_ldflags" >&5
12481 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
12482
12483 test ".$ax_create_pkgconfig_generate" != "." || \
12484 ax_create_pkgconfig_generate="$ax_create_pkgconfig_libname.pc"
12485 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
12486 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
12487 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
12489 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
12490
12491 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
12492 ax_create_pkgconfig_src_libdir=`pwd`
12493 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
12494 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12495 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
12496 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
12497 X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
12498 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
12499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12500 s//\1/
12501 q
12502 }
12503 /^X\(\/\/\)[^/].*/{
12504 s//\1/
12505 q
12506 }
12507 /^X\(\/\/\)$/{
12508 s//\1/
12509 q
12510 }
12511 /^X\(\/\).*/{
12512 s//\1/
12513 q
12514 }
12515 s/.*/./; q'`
12516 test ! -d $ax_create_pkgconfig_src_libdir/src || \
12517 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
12518 case ".$objdir" in
12519 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
12521 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
12522 fi
12523
12524 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
12525 ax_create_pkgconfig_src_headers=`pwd`
12526 v="$ac_top_srcdir" ;
12527 test ".$v" != "." || v="$ax_spec_dir"
12528 test ".$v" != "." || v="$srcdir"
12529 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
12530 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
12531 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12532 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
12533 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
12534 X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
12535 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
12536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12537 s//\1/
12538 q
12539 }
12540 /^X\(\/\/\)[^/].*/{
12541 s//\1/
12542 q
12543 }
12544 /^X\(\/\/\)$/{
12545 s//\1/
12546 q
12547 }
12548 /^X\(\/\).*/{
12549 s//\1/
12550 q
12551 }
12552 s/.*/./; q'`
12553 test ! -d $ax_create_pkgconfig_src_headers/include || \
12554 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
12556 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
12557 fi
12558
12559
12560 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
12561
12562
12563
12564
12565
12566 ac_config_files="$ac_config_files Makefile"
12567
12568 cat >confcache <<\_ACEOF
12569 # This file is a shell script that caches the results of configure
12570 # tests run on this system so they can be shared between configure
12571 # scripts and configure runs, see configure's option --config-cache.
12572 # It is not useful on other systems. If it contains results you don't
12573 # want to keep, you may remove or edit it.
12574 #
12575 # config.status only pays attention to the cache file if you give it
12576 # the --recheck option to rerun configure.
12577 #
12578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12580 # following values.
12581
12582 _ACEOF
12583
12584 # The following way of writing the cache mishandles newlines in values,
12585 # but we know of no workaround that is simple, portable, and efficient.
12586 # So, we kill variables containing newlines.
12587 # Ultrix sh set writes to stderr and can't be redirected directly,
12588 # and sets the high bit in the cache file unless we assign to the vars.
12589 (
12590 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12591 eval ac_val=\$$ac_var
12592 case $ac_val in #(
12593 *${as_nl}*)
12594 case $ac_var in #(
12595 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12596 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12597 esac
12598 case $ac_var in #(
12599 _ | IFS | as_nl) ;; #(
12600 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12601 *) { eval $ac_var=; unset $ac_var;} ;;
12602 esac ;;
12603 esac
12604 done
12605
12606 (set) 2>&1 |
12607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12608 *${as_nl}ac_space=\ *)
12609 # `set' does not quote correctly, so add quotes: double-quote
12610 # substitution turns \\\\ into \\, and sed turns \\ into \.
12611 sed -n \
12612 "s/'/'\\\\''/g;
12613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12614 ;; #(
12615 *)
12616 # `set' quotes correctly as required by POSIX, so do not add quotes.
12617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12618 ;;
12619 esac |
12620 sort
12621 ) |
12622 sed '
12623 /^ac_cv_env_/b end
12624 t clear
12625 :clear
12626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12627 t end
12628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12629 :end' >>confcache
12630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12631 if test -w "$cache_file"; then
12632 if test "x$cache_file" != "x/dev/null"; then
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12634 $as_echo "$as_me: updating cache $cache_file" >&6;}
12635 if test ! -f "$cache_file" || test -h "$cache_file"; then
12636 cat confcache >"$cache_file"
12637 else
12638 case $cache_file in #(
12639 */* | ?:*)
12640 mv -f confcache "$cache_file"$$ &&
12641 mv -f "$cache_file"$$ "$cache_file" ;; #(
12642 *)
12643 mv -f confcache "$cache_file" ;;
12644 esac
12645 fi
12646 fi
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12649 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12650 fi
12651 fi
12652 rm -f confcache
12653
12654 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12655 # Let make expand exec_prefix.
12656 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12657
12658 # Transform confdefs.h into DEFS.
12659 # Protect against shell expansion while executing Makefile rules.
12660 # Protect against Makefile macro expansion.
12661 #
12662 # If the first sed substitution is executed (which looks for macros that
12663 # take arguments), then branch to the quote section. Otherwise,
12664 # look for a macro that doesn't take arguments.
12665 ac_script='
12666 :mline
12667 /\\$/{
12668 N
12669 s,\\\n,,
12670 b mline
12671 }
12672 t clear
12673 :clear
12674 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12675 t quote
12676 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12677 t quote
12678 b any
12679 :quote
12680 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12681 s/\[/\\&/g
12682 s/\]/\\&/g
12683 s/\$/$$/g
12684 H
12685 :any
12686 ${
12687 g
12688 s/^\n//
12689 s/\n/ /g
12690 p
12691 }
12692 '
12693 DEFS=`sed -n "$ac_script" confdefs.h`
12694
12695
12696 ac_libobjs=
12697 ac_ltlibobjs=
12698 U=
12699 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12700 # 1. Remove the extension, and $U if already installed.
12701 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12702 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12703 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12704 # will be set to the directory where LIBOBJS objects are built.
12705 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12706 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12707 done
12708 LIBOBJS=$ac_libobjs
12709
12710 LTLIBOBJS=$ac_ltlibobjs
12711
12712
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12714 $as_echo_n "checking that generated files are newer than configure... " >&6; }
12715 if test -n "$am_sleep_pid"; then
12716 # Hide warnings about reused PIDs.
12717 wait $am_sleep_pid 2>/dev/null
12718 fi
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12720 $as_echo "done" >&6; }
12721 if test -n "$EXEEXT"; then
12722 am__EXEEXT_TRUE=
12723 am__EXEEXT_FALSE='#'
12724 else
12725 am__EXEEXT_TRUE='#'
12726 am__EXEEXT_FALSE=
12727 fi
12728
12729 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12730 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
12731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12732 fi
12733 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12734 as_fn_error $? "conditional \"AMDEP\" was never defined.
12735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12736 fi
12737 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12738 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12740 fi
12741 if test -z "${HAVE_MULTIARCH_TRUE}" && test -z "${HAVE_MULTIARCH_FALSE}"; then
12742 as_fn_error $? "conditional \"HAVE_MULTIARCH\" was never defined.
12743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12744 fi
12745
12746 : "${CONFIG_STATUS=./config.status}"
12747 ac_write_fail=0
12748 ac_clean_files_save=$ac_clean_files
12749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12751 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12752 as_write_fail=0
12753 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12754 #! $SHELL
12755 # Generated by $as_me.
12756 # Run this file to recreate the current configuration.
12757 # Compiler output produced by configure, useful for debugging
12758 # configure, is in config.log if it exists.
12759
12760 debug=false
12761 ac_cs_recheck=false
12762 ac_cs_silent=false
12763
12764 SHELL=\${CONFIG_SHELL-$SHELL}
12765 export SHELL
12766 _ASEOF
12767 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12768 ## -------------------- ##
12769 ## M4sh Initialization. ##
12770 ## -------------------- ##
12771
12772 # Be more Bourne compatible
12773 DUALCASE=1; export DUALCASE # for MKS sh
12774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12775 emulate sh
12776 NULLCMD=:
12777 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12778 # is contrary to our usage. Disable this feature.
12779 alias -g '${1+"$@"}'='"$@"'
12780 setopt NO_GLOB_SUBST
12781 else
12782 case `(set -o) 2>/dev/null` in #(
12783 *posix*) :
12784 set -o posix ;; #(
12785 *) :
12786 ;;
12787 esac
12788 fi
12789
12790
12791 as_nl='
12792 '
12793 export as_nl
12794 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12795 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12798 # Prefer a ksh shell builtin over an external printf program on Solaris,
12799 # but without wasting forks for bash or zsh.
12800 if test -z "$BASH_VERSION$ZSH_VERSION" \
12801 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12802 as_echo='print -r --'
12803 as_echo_n='print -rn --'
12804 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12805 as_echo='printf %s\n'
12806 as_echo_n='printf %s'
12807 else
12808 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12809 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12810 as_echo_n='/usr/ucb/echo -n'
12811 else
12812 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12813 as_echo_n_body='eval
12814 arg=$1;
12815 case $arg in #(
12816 *"$as_nl"*)
12817 expr "X$arg" : "X\\(.*\\)$as_nl";
12818 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12819 esac;
12820 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12821 '
12822 export as_echo_n_body
12823 as_echo_n='sh -c $as_echo_n_body as_echo'
12824 fi
12825 export as_echo_body
12826 as_echo='sh -c $as_echo_body as_echo'
12827 fi
12828
12829 # The user is always right.
12830 if test "${PATH_SEPARATOR+set}" != set; then
12831 PATH_SEPARATOR=:
12832 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12833 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12834 PATH_SEPARATOR=';'
12835 }
12836 fi
12837
12838
12839 # IFS
12840 # We need space, tab and new line, in precisely that order. Quoting is
12841 # there to prevent editors from complaining about space-tab.
12842 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12843 # splitting by setting IFS to empty value.)
12844 IFS=" "" $as_nl"
12845
12846 # Find who we are. Look in the path if we contain no directory separator.
12847 as_myself=
12848 case $0 in #((
12849 *[\\/]* ) as_myself=$0 ;;
12850 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12852 do
12853 IFS=$as_save_IFS
12854 test -z "$as_dir" && as_dir=.
12855 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12856 done
12857 IFS=$as_save_IFS
12858
12859 ;;
12860 esac
12861 # We did not find ourselves, most probably we were run as `sh COMMAND'
12862 # in which case we are not to be found in the path.
12863 if test "x$as_myself" = x; then
12864 as_myself=$0
12865 fi
12866 if test ! -f "$as_myself"; then
12867 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12868 exit 1
12869 fi
12870
12871 # Unset variables that we do not need and which cause bugs (e.g. in
12872 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12873 # suppresses any "Segmentation fault" message there. '((' could
12874 # trigger a bug in pdksh 5.2.14.
12875 for as_var in BASH_ENV ENV MAIL MAILPATH
12876 do eval test x\${$as_var+set} = xset \
12877 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12878 done
12879 PS1='$ '
12880 PS2='> '
12881 PS4='+ '
12882
12883 # NLS nuisances.
12884 LC_ALL=C
12885 export LC_ALL
12886 LANGUAGE=C
12887 export LANGUAGE
12888
12889 # CDPATH.
12890 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12891
12892
12893 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12894 # ----------------------------------------
12895 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12896 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12897 # script with STATUS, using 1 if that was 0.
12898 as_fn_error ()
12899 {
12900 as_status=$1; test $as_status -eq 0 && as_status=1
12901 if test "$4"; then
12902 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12903 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12904 fi
12905 $as_echo "$as_me: error: $2" >&2
12906 as_fn_exit $as_status
12907 } # as_fn_error
12908
12909
12910 # as_fn_set_status STATUS
12911 # -----------------------
12912 # Set $? to STATUS, without forking.
12913 as_fn_set_status ()
12914 {
12915 return $1
12916 } # as_fn_set_status
12917
12918 # as_fn_exit STATUS
12919 # -----------------
12920 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12921 as_fn_exit ()
12922 {
12923 set +e
12924 as_fn_set_status $1
12925 exit $1
12926 } # as_fn_exit
12927
12928 # as_fn_unset VAR
12929 # ---------------
12930 # Portably unset VAR.
12931 as_fn_unset ()
12932 {
12933 { eval $1=; unset $1;}
12934 }
12935 as_unset=as_fn_unset
12936 # as_fn_append VAR VALUE
12937 # ----------------------
12938 # Append the text in VALUE to the end of the definition contained in VAR. Take
12939 # advantage of any shell optimizations that allow amortized linear growth over
12940 # repeated appends, instead of the typical quadratic growth present in naive
12941 # implementations.
12942 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12943 eval 'as_fn_append ()
12944 {
12945 eval $1+=\$2
12946 }'
12947 else
12948 as_fn_append ()
12949 {
12950 eval $1=\$$1\$2
12951 }
12952 fi # as_fn_append
12953
12954 # as_fn_arith ARG...
12955 # ------------------
12956 # Perform arithmetic evaluation on the ARGs, and store the result in the
12957 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12958 # must be portable across $(()) and expr.
12959 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12960 eval 'as_fn_arith ()
12961 {
12962 as_val=$(( $* ))
12963 }'
12964 else
12965 as_fn_arith ()
12966 {
12967 as_val=`expr "$@" || test $? -eq 1`
12968 }
12969 fi # as_fn_arith
12970
12971
12972 if expr a : '\(a\)' >/dev/null 2>&1 &&
12973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12974 as_expr=expr
12975 else
12976 as_expr=false
12977 fi
12978
12979 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12980 as_basename=basename
12981 else
12982 as_basename=false
12983 fi
12984
12985 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12986 as_dirname=dirname
12987 else
12988 as_dirname=false
12989 fi
12990
12991 as_me=`$as_basename -- "$0" ||
12992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12993 X"$0" : 'X\(//\)$' \| \
12994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12995 $as_echo X/"$0" |
12996 sed '/^.*\/\([^/][^/]*\)\/*$/{
12997 s//\1/
12998 q
12999 }
13000 /^X\/\(\/\/\)$/{
13001 s//\1/
13002 q
13003 }
13004 /^X\/\(\/\).*/{
13005 s//\1/
13006 q
13007 }
13008 s/.*/./; q'`
13009
13010 # Avoid depending upon Character Ranges.
13011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13014 as_cr_digits='0123456789'
13015 as_cr_alnum=$as_cr_Letters$as_cr_digits
13016
13017 ECHO_C= ECHO_N= ECHO_T=
13018 case `echo -n x` in #(((((
13019 -n*)
13020 case `echo 'xy\c'` in
13021 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13022 xy) ECHO_C='\c';;
13023 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13024 ECHO_T=' ';;
13025 esac;;
13026 *)
13027 ECHO_N='-n';;
13028 esac
13029
13030 rm -f conf$$ conf$$.exe conf$$.file
13031 if test -d conf$$.dir; then
13032 rm -f conf$$.dir/conf$$.file
13033 else
13034 rm -f conf$$.dir
13035 mkdir conf$$.dir 2>/dev/null
13036 fi
13037 if (echo >conf$$.file) 2>/dev/null; then
13038 if ln -s conf$$.file conf$$ 2>/dev/null; then
13039 as_ln_s='ln -s'
13040 # ... but there are two gotchas:
13041 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13042 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13043 # In both cases, we have to default to `cp -pR'.
13044 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13045 as_ln_s='cp -pR'
13046 elif ln conf$$.file conf$$ 2>/dev/null; then
13047 as_ln_s=ln
13048 else
13049 as_ln_s='cp -pR'
13050 fi
13051 else
13052 as_ln_s='cp -pR'
13053 fi
13054 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13055 rmdir conf$$.dir 2>/dev/null
13056
13057
13058 # as_fn_mkdir_p
13059 # -------------
13060 # Create "$as_dir" as a directory, including parents if necessary.
13061 as_fn_mkdir_p ()
13062 {
13063
13064 case $as_dir in #(
13065 -*) as_dir=./$as_dir;;
13066 esac
13067 test -d "$as_dir" || eval $as_mkdir_p || {
13068 as_dirs=
13069 while :; do
13070 case $as_dir in #(
13071 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13072 *) as_qdir=$as_dir;;
13073 esac
13074 as_dirs="'$as_qdir' $as_dirs"
13075 as_dir=`$as_dirname -- "$as_dir" ||
13076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13077 X"$as_dir" : 'X\(//\)[^/]' \| \
13078 X"$as_dir" : 'X\(//\)$' \| \
13079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13080 $as_echo X"$as_dir" |
13081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13082 s//\1/
13083 q
13084 }
13085 /^X\(\/\/\)[^/].*/{
13086 s//\1/
13087 q
13088 }
13089 /^X\(\/\/\)$/{
13090 s//\1/
13091 q
13092 }
13093 /^X\(\/\).*/{
13094 s//\1/
13095 q
13096 }
13097 s/.*/./; q'`
13098 test -d "$as_dir" && break
13099 done
13100 test -z "$as_dirs" || eval "mkdir $as_dirs"
13101 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13102
13103
13104 } # as_fn_mkdir_p
13105 if mkdir -p . 2>/dev/null; then
13106 as_mkdir_p='mkdir -p "$as_dir"'
13107 else
13108 test -d ./-p && rmdir ./-p
13109 as_mkdir_p=false
13110 fi
13111
13112
13113 # as_fn_executable_p FILE
13114 # -----------------------
13115 # Test if FILE is an executable regular file.
13116 as_fn_executable_p ()
13117 {
13118 test -f "$1" && test -x "$1"
13119 } # as_fn_executable_p
13120 as_test_x='test -x'
13121 as_executable_p=as_fn_executable_p
13122
13123 # Sed expression to map a string onto a valid CPP name.
13124 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13125
13126 # Sed expression to map a string onto a valid variable name.
13127 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13128
13129
13130 exec 6>&1
13131 ## ----------------------------------- ##
13132 ## Main body of $CONFIG_STATUS script. ##
13133 ## ----------------------------------- ##
13134 _ASEOF
13135 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13136
13137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13138 # Save the log message, to keep $0 and so on meaningful, and to
13139 # report actual input values of CONFIG_FILES etc. instead of their
13140 # values after options handling.
13141 ac_log="
13142 This file was extended by libsharp $as_me 1.0.0, which was
13143 generated by GNU Autoconf 2.69. Invocation command line was
13144
13145 CONFIG_FILES = $CONFIG_FILES
13146 CONFIG_HEADERS = $CONFIG_HEADERS
13147 CONFIG_LINKS = $CONFIG_LINKS
13148 CONFIG_COMMANDS = $CONFIG_COMMANDS
13149 $ $0 $@
13150
13151 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13152 "
13153
13154 _ACEOF
13155
13156 case $ac_config_files in *"
13157 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13158 esac
13159
13160
13161
13162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13163 # Files that config.status was made for.
13164 config_files="$ac_config_files"
13165 config_commands="$ac_config_commands"
13166
13167 _ACEOF
13168
13169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13170 ac_cs_usage="\
13171 \`$as_me' instantiates files and other configuration actions
13172 from templates according to the current configuration. Unless the files
13173 and actions are specified as TAGs, all are instantiated by default.
13174
13175 Usage: $0 [OPTION]... [TAG]...
13176
13177 -h, --help print this help, then exit
13178 -V, --version print version number and configuration settings, then exit
13179 --config print configuration, then exit
13180 -q, --quiet, --silent
13181 do not print progress messages
13182 -d, --debug don't remove temporary files
13183 --recheck update $as_me by reconfiguring in the same conditions
13184 --file=FILE[:TEMPLATE]
13185 instantiate the configuration file FILE
13186
13187 Configuration files:
13188 $config_files
13189
13190 Configuration commands:
13191 $config_commands
13192
13193 Report bugs to the package provider."
13194
13195 _ACEOF
13196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13197 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13198 ac_cs_version="\\
13199 libsharp config.status 1.0.0
13200 configured by $0, generated by GNU Autoconf 2.69,
13201 with options \\"\$ac_cs_config\\"
13202
13203 Copyright (C) 2012 Free Software Foundation, Inc.
13204 This config.status script is free software; the Free Software Foundation
13205 gives unlimited permission to copy, distribute and modify it."
13206
13207 ac_pwd='$ac_pwd'
13208 srcdir='$srcdir'
13209 INSTALL='$INSTALL'
13210 MKDIR_P='$MKDIR_P'
13211 AWK='$AWK'
13212 test -n "\$AWK" || AWK=awk
13213 _ACEOF
13214
13215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13216 # The default lists apply if the user does not specify any file.
13217 ac_need_defaults=:
13218 while test $# != 0
13219 do
13220 case $1 in
13221 --*=?*)
13222 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13223 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13224 ac_shift=:
13225 ;;
13226 --*=)
13227 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13228 ac_optarg=
13229 ac_shift=:
13230 ;;
13231 *)
13232 ac_option=$1
13233 ac_optarg=$2
13234 ac_shift=shift
13235 ;;
13236 esac
13237
13238 case $ac_option in
13239 # Handling of the options.
13240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13241 ac_cs_recheck=: ;;
13242 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13243 $as_echo "$ac_cs_version"; exit ;;
13244 --config | --confi | --conf | --con | --co | --c )
13245 $as_echo "$ac_cs_config"; exit ;;
13246 --debug | --debu | --deb | --de | --d | -d )
13247 debug=: ;;
13248 --file | --fil | --fi | --f )
13249 $ac_shift
13250 case $ac_optarg in
13251 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13252 '') as_fn_error $? "missing file argument" ;;
13253 esac
13254 as_fn_append CONFIG_FILES " '$ac_optarg'"
13255 ac_need_defaults=false;;
13256 --he | --h | --help | --hel | -h )
13257 $as_echo "$ac_cs_usage"; exit ;;
13258 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13259 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13260 ac_cs_silent=: ;;
13261
13262 # This is an error.
13263 -*) as_fn_error $? "unrecognized option: \`$1'
13264 Try \`$0 --help' for more information." ;;
13265
13266 *) as_fn_append ac_config_targets " $1"
13267 ac_need_defaults=false ;;
13268
13269 esac
13270 shift
13271 done
13272
13273 ac_configure_extra_args=
13274
13275 if $ac_cs_silent; then
13276 exec 6>/dev/null
13277 ac_configure_extra_args="$ac_configure_extra_args --silent"
13278 fi
13279
13280 _ACEOF
13281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13282 if \$ac_cs_recheck; then
13283 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13284 shift
13285 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13286 CONFIG_SHELL='$SHELL'
13287 export CONFIG_SHELL
13288 exec "\$@"
13289 fi
13290
13291 _ACEOF
13292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13293 exec 5>>config.log
13294 {
13295 echo
13296 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13297 ## Running $as_me. ##
13298 _ASBOX
13299 $as_echo "$ac_log"
13300 } >&5
13301
13302 _ACEOF
13303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13304 #
13305 # INIT-COMMANDS
13306 #
13307 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13308
13309
13310 # The HP-UX ksh and POSIX shell print the target directory to stdout
13311 # if CDPATH is set.
13312 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13313
13314 sed_quote_subst='$sed_quote_subst'
13315 double_quote_subst='$double_quote_subst'
13316 delay_variable_subst='$delay_variable_subst'
13317 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13318 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13319 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13320 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13321 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13322 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13323 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13324 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13325 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13326 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13327 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13328 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13329 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13330 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13331 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13332 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13333 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13334 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13335 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13336 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13337 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13338 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13339 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13340 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13341 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13342 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13343 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13344 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13345 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13346 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13347 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13348 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13349 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13350 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13351 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13352 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13353 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13354 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13355 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13356 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13357 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13358 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13359 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13360 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13361 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13362 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13363 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13364 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13365 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13366 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13367 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13368 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13369 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13370 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13371 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13372 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13373 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13374 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13375 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"`'
13376 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13377 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13378 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13379 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13380 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13381 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13382 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13383 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13384 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13385 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13386 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13387 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13388 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13389 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13390 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13391 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13392 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13393 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13394 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13395 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13396 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13397 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13398 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13399 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13400 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13401 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13402 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13403 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13404 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13405 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13406 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13407 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13408 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13409 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13410 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13411 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13412 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13413 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13414 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13415 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13416 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13417 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13418 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13419 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13420 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13421 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13422 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13423 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13424 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13425 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13426 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13427 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13428 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13429 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13430 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13431 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13432 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13433 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13434 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13435 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13436 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13437 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13438 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13439 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13440 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13441 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13442 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13443 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13444 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13445 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13446 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13447 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13448 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13449 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13450 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13451 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13452
13453 LTCC='$LTCC'
13454 LTCFLAGS='$LTCFLAGS'
13455 compiler='$compiler_DEFAULT'
13456
13457 # A function that is used when there is no print builtin or printf.
13458 func_fallback_echo ()
13459 {
13460 eval 'cat <<_LTECHO_EOF
13461 \$1
13462 _LTECHO_EOF'
13463 }
13464
13465 # Quote evaled strings.
13466 for var in SHELL \
13467 ECHO \
13468 PATH_SEPARATOR \
13469 SED \
13470 GREP \
13471 EGREP \
13472 FGREP \
13473 LD \
13474 NM \
13475 LN_S \
13476 lt_SP2NL \
13477 lt_NL2SP \
13478 reload_flag \
13479 OBJDUMP \
13480 deplibs_check_method \
13481 file_magic_cmd \
13482 file_magic_glob \
13483 want_nocaseglob \
13484 DLLTOOL \
13485 sharedlib_from_linklib_cmd \
13486 AR \
13487 AR_FLAGS \
13488 archiver_list_spec \
13489 STRIP \
13490 RANLIB \
13491 CC \
13492 CFLAGS \
13493 compiler \
13494 lt_cv_sys_global_symbol_pipe \
13495 lt_cv_sys_global_symbol_to_cdecl \
13496 lt_cv_sys_global_symbol_to_import \
13497 lt_cv_sys_global_symbol_to_c_name_address \
13498 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13499 lt_cv_nm_interface \
13500 nm_file_list_spec \
13501 lt_cv_truncate_bin \
13502 lt_prog_compiler_no_builtin_flag \
13503 lt_prog_compiler_pic \
13504 lt_prog_compiler_wl \
13505 lt_prog_compiler_static \
13506 lt_cv_prog_compiler_c_o \
13507 need_locks \
13508 MANIFEST_TOOL \
13509 DSYMUTIL \
13510 NMEDIT \
13511 LIPO \
13512 OTOOL \
13513 OTOOL64 \
13514 shrext_cmds \
13515 export_dynamic_flag_spec \
13516 whole_archive_flag_spec \
13517 compiler_needs_object \
13518 with_gnu_ld \
13519 allow_undefined_flag \
13520 no_undefined_flag \
13521 hardcode_libdir_flag_spec \
13522 hardcode_libdir_separator \
13523 exclude_expsyms \
13524 include_expsyms \
13525 file_list_spec \
13526 variables_saved_for_relink \
13527 libname_spec \
13528 library_names_spec \
13529 soname_spec \
13530 install_override_mode \
13531 finish_eval \
13532 old_striplib \
13533 striplib; do
13534 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13535 *[\\\\\\\`\\"\\\$]*)
13536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13537 ;;
13538 *)
13539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13540 ;;
13541 esac
13542 done
13543
13544 # Double-quote double-evaled strings.
13545 for var in reload_cmds \
13546 old_postinstall_cmds \
13547 old_postuninstall_cmds \
13548 old_archive_cmds \
13549 extract_expsyms_cmds \
13550 old_archive_from_new_cmds \
13551 old_archive_from_expsyms_cmds \
13552 archive_cmds \
13553 archive_expsym_cmds \
13554 module_cmds \
13555 module_expsym_cmds \
13556 export_symbols_cmds \
13557 prelink_cmds \
13558 postlink_cmds \
13559 postinstall_cmds \
13560 postuninstall_cmds \
13561 finish_cmds \
13562 sys_lib_search_path_spec \
13563 configure_time_dlsearch_path \
13564 configure_time_lt_sys_library_path; do
13565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13566 *[\\\\\\\`\\"\\\$]*)
13567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13568 ;;
13569 *)
13570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13571 ;;
13572 esac
13573 done
13574
13575 ac_aux_dir='$ac_aux_dir'
13576
13577 # See if we are running on zsh, and set the options that allow our
13578 # commands through without removal of \ escapes INIT.
13579 if test -n "\${ZSH_VERSION+set}"; then
13580 setopt NO_GLOB_SUBST
13581 fi
13582
13583
13584 PACKAGE='$PACKAGE'
13585 VERSION='$VERSION'
13586 RM='$RM'
13587 ofile='$ofile'
13588
13589
13590
13591
13592 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
13593 pkgconfig_prefix='$prefix'
13594 pkgconfig_execprefix='$exec_prefix'
13595 pkgconfig_bindir='$bindir'
13596 pkgconfig_libdir='$libdir'
13597 pkgconfig_includedir='$includedir'
13598 pkgconfig_datarootdir='$datarootdir'
13599 pkgconfig_datadir='$datadir'
13600 pkgconfig_sysconfdir='$sysconfdir'
13601 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
13602 pkgconfig_package='$PACKAGE_NAME'
13603 pkgconfig_libname='$ax_create_pkgconfig_libname'
13604 pkgconfig_description='$ax_create_pkgconfig_description'
13605 pkgconfig_version='$ax_create_pkgconfig_version'
13606 pkgconfig_requires='$ax_create_pkgconfig_requires'
13607 pkgconfig_libs='$ax_create_pkgconfig_libs'
13608 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
13609 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
13610 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
13611 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
13612
13613
13614 _ACEOF
13615
13616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13617
13618 # Handling of arguments.
13619 for ac_config_target in $ac_config_targets
13620 do
13621 case $ac_config_target in
13622 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13623 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13624 "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
13625 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13626
13627 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13628 esac
13629 done
13630
13631
13632 # If the user did not use the arguments to specify the items to instantiate,
13633 # then the envvar interface is used. Set only those that are not.
13634 # We use the long form for the default assignment because of an extremely
13635 # bizarre bug on SunOS 4.1.3.
13636 if $ac_need_defaults; then
13637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13638 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13639 fi
13640
13641 # Have a temporary directory for convenience. Make it in the build tree
13642 # simply because there is no reason against having it here, and in addition,
13643 # creating and moving files from /tmp can sometimes cause problems.
13644 # Hook for its removal unless debugging.
13645 # Note that there is a small window in which the directory will not be cleaned:
13646 # after its creation but before its name has been assigned to `$tmp'.
13647 $debug ||
13648 {
13649 tmp= ac_tmp=
13650 trap 'exit_status=$?
13651 : "${ac_tmp:=$tmp}"
13652 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13653 ' 0
13654 trap 'as_fn_exit 1' 1 2 13 15
13655 }
13656 # Create a (secure) tmp directory for tmp files.
13657
13658 {
13659 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13660 test -d "$tmp"
13661 } ||
13662 {
13663 tmp=./conf$$-$RANDOM
13664 (umask 077 && mkdir "$tmp")
13665 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13666 ac_tmp=$tmp
13667
13668 # Set up the scripts for CONFIG_FILES section.
13669 # No need to generate them if there are no CONFIG_FILES.
13670 # This happens for instance with `./config.status config.h'.
13671 if test -n "$CONFIG_FILES"; then
13672
13673
13674 ac_cr=`echo X | tr X '\015'`
13675 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13676 # But we know of no other shell where ac_cr would be empty at this
13677 # point, so we can use a bashism as a fallback.
13678 if test "x$ac_cr" = x; then
13679 eval ac_cr=\$\'\\r\'
13680 fi
13681 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13683 ac_cs_awk_cr='\\r'
13684 else
13685 ac_cs_awk_cr=$ac_cr
13686 fi
13687
13688 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13689 _ACEOF
13690
13691
13692 {
13693 echo "cat >conf$$subs.awk <<_ACEOF" &&
13694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13695 echo "_ACEOF"
13696 } >conf$$subs.sh ||
13697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13698 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13699 ac_delim='%!_!# '
13700 for ac_last_try in false false false false false :; do
13701 . ./conf$$subs.sh ||
13702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13703
13704 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13705 if test $ac_delim_n = $ac_delim_num; then
13706 break
13707 elif $ac_last_try; then
13708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13709 else
13710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13711 fi
13712 done
13713 rm -f conf$$subs.sh
13714
13715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13716 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13717 _ACEOF
13718 sed -n '
13719 h
13720 s/^/S["/; s/!.*/"]=/
13721 p
13722 g
13723 s/^[^!]*!//
13724 :repl
13725 t repl
13726 s/'"$ac_delim"'$//
13727 t delim
13728 :nl
13729 h
13730 s/\(.\{148\}\)..*/\1/
13731 t more1
13732 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13733 p
13734 n
13735 b repl
13736 :more1
13737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13738 p
13739 g
13740 s/.\{148\}//
13741 t nl
13742 :delim
13743 h
13744 s/\(.\{148\}\)..*/\1/
13745 t more2
13746 s/["\\]/\\&/g; s/^/"/; s/$/"/
13747 p
13748 b
13749 :more2
13750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13751 p
13752 g
13753 s/.\{148\}//
13754 t delim
13755 ' <conf$$subs.awk | sed '
13756 /^[^""]/{
13757 N
13758 s/\n//
13759 }
13760 ' >>$CONFIG_STATUS || ac_write_fail=1
13761 rm -f conf$$subs.awk
13762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13763 _ACAWK
13764 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13765 for (key in S) S_is_set[key] = 1
13766 FS = ""
13767
13768 }
13769 {
13770 line = $ 0
13771 nfields = split(line, field, "@")
13772 substed = 0
13773 len = length(field[1])
13774 for (i = 2; i < nfields; i++) {
13775 key = field[i]
13776 keylen = length(key)
13777 if (S_is_set[key]) {
13778 value = S[key]
13779 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13780 len += length(value) + length(field[++i])
13781 substed = 1
13782 } else
13783 len += 1 + keylen
13784 }
13785
13786 print line
13787 }
13788
13789 _ACAWK
13790 _ACEOF
13791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13792 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13793 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13794 else
13795 cat
13796 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13797 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13798 _ACEOF
13799
13800 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13801 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13802 # trailing colons and then remove the whole line if VPATH becomes empty
13803 # (actually we leave an empty line to preserve line numbers).
13804 if test "x$srcdir" = x.; then
13805 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13806 h
13807 s///
13808 s/^/:/
13809 s/[ ]*$/:/
13810 s/:\$(srcdir):/:/g
13811 s/:\${srcdir}:/:/g
13812 s/:@srcdir@:/:/g
13813 s/^:*//
13814 s/:*$//
13815 x
13816 s/\(=[ ]*\).*/\1/
13817 G
13818 s/\n//
13819 s/^[^=]*=[ ]*$//
13820 }'
13821 fi
13822
13823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13824 fi # test -n "$CONFIG_FILES"
13825
13826
13827 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
13828 shift
13829 for ac_tag
13830 do
13831 case $ac_tag in
13832 :[FHLC]) ac_mode=$ac_tag; continue;;
13833 esac
13834 case $ac_mode$ac_tag in
13835 :[FHL]*:*);;
13836 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13837 :[FH]-) ac_tag=-:-;;
13838 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13839 esac
13840 ac_save_IFS=$IFS
13841 IFS=:
13842 set x $ac_tag
13843 IFS=$ac_save_IFS
13844 shift
13845 ac_file=$1
13846 shift
13847
13848 case $ac_mode in
13849 :L) ac_source=$1;;
13850 :[FH])
13851 ac_file_inputs=
13852 for ac_f
13853 do
13854 case $ac_f in
13855 -) ac_f="$ac_tmp/stdin";;
13856 *) # Look for the file first in the build tree, then in the source tree
13857 # (if the path is not absolute). The absolute path cannot be DOS-style,
13858 # because $ac_f cannot contain `:'.
13859 test -f "$ac_f" ||
13860 case $ac_f in
13861 [\\/$]*) false;;
13862 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13863 esac ||
13864 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13865 esac
13866 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13867 as_fn_append ac_file_inputs " '$ac_f'"
13868 done
13869
13870 # Let's still pretend it is `configure' which instantiates (i.e., don't
13871 # use $as_me), people would be surprised to read:
13872 # /* config.h. Generated by config.status. */
13873 configure_input='Generated from '`
13874 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13875 `' by configure.'
13876 if test x"$ac_file" != x-; then
13877 configure_input="$ac_file. $configure_input"
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13879 $as_echo "$as_me: creating $ac_file" >&6;}
13880 fi
13881 # Neutralize special characters interpreted by sed in replacement strings.
13882 case $configure_input in #(
13883 *\&* | *\|* | *\\* )
13884 ac_sed_conf_input=`$as_echo "$configure_input" |
13885 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13886 *) ac_sed_conf_input=$configure_input;;
13887 esac
13888
13889 case $ac_tag in
13890 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13891 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13892 esac
13893 ;;
13894 esac
13895
13896 ac_dir=`$as_dirname -- "$ac_file" ||
13897 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13898 X"$ac_file" : 'X\(//\)[^/]' \| \
13899 X"$ac_file" : 'X\(//\)$' \| \
13900 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13901 $as_echo X"$ac_file" |
13902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13903 s//\1/
13904 q
13905 }
13906 /^X\(\/\/\)[^/].*/{
13907 s//\1/
13908 q
13909 }
13910 /^X\(\/\/\)$/{
13911 s//\1/
13912 q
13913 }
13914 /^X\(\/\).*/{
13915 s//\1/
13916 q
13917 }
13918 s/.*/./; q'`
13919 as_dir="$ac_dir"; as_fn_mkdir_p
13920 ac_builddir=.
13921
13922 case "$ac_dir" in
13923 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13924 *)
13925 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13926 # A ".." for each directory in $ac_dir_suffix.
13927 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13928 case $ac_top_builddir_sub in
13929 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13930 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13931 esac ;;
13932 esac
13933 ac_abs_top_builddir=$ac_pwd
13934 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13935 # for backward compatibility:
13936 ac_top_builddir=$ac_top_build_prefix
13937
13938 case $srcdir in
13939 .) # We are building in place.
13940 ac_srcdir=.
13941 ac_top_srcdir=$ac_top_builddir_sub
13942 ac_abs_top_srcdir=$ac_pwd ;;
13943 [\\/]* | ?:[\\/]* ) # Absolute name.
13944 ac_srcdir=$srcdir$ac_dir_suffix;
13945 ac_top_srcdir=$srcdir
13946 ac_abs_top_srcdir=$srcdir ;;
13947 *) # Relative name.
13948 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13949 ac_top_srcdir=$ac_top_build_prefix$srcdir
13950 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13951 esac
13952 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13953
13954
13955 case $ac_mode in
13956 :F)
13957 #
13958 # CONFIG_FILE
13959 #
13960
13961 case $INSTALL in
13962 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13963 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13964 esac
13965 ac_MKDIR_P=$MKDIR_P
13966 case $MKDIR_P in
13967 [\\/$]* | ?:[\\/]* ) ;;
13968 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13969 esac
13970 _ACEOF
13971
13972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13973 # If the template does not know about datarootdir, expand it.
13974 # FIXME: This hack should be removed a few years after 2.60.
13975 ac_datarootdir_hack=; ac_datarootdir_seen=
13976 ac_sed_dataroot='
13977 /datarootdir/ {
13978 p
13979 q
13980 }
13981 /@datadir@/p
13982 /@docdir@/p
13983 /@infodir@/p
13984 /@localedir@/p
13985 /@mandir@/p'
13986 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13987 *datarootdir*) ac_datarootdir_seen=yes;;
13988 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13990 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13991 _ACEOF
13992 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13993 ac_datarootdir_hack='
13994 s&@datadir@&$datadir&g
13995 s&@docdir@&$docdir&g
13996 s&@infodir@&$infodir&g
13997 s&@localedir@&$localedir&g
13998 s&@mandir@&$mandir&g
13999 s&\\\${datarootdir}&$datarootdir&g' ;;
14000 esac
14001 _ACEOF
14002
14003 # Neutralize VPATH when `$srcdir' = `.'.
14004 # Shell code in configure.ac might set extrasub.
14005 # FIXME: do we really want to maintain this feature?
14006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14007 ac_sed_extra="$ac_vpsub
14008 $extrasub
14009 _ACEOF
14010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14011 :t
14012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14013 s|@configure_input@|$ac_sed_conf_input|;t t
14014 s&@top_builddir@&$ac_top_builddir_sub&;t t
14015 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14016 s&@srcdir@&$ac_srcdir&;t t
14017 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14018 s&@top_srcdir@&$ac_top_srcdir&;t t
14019 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14020 s&@builddir@&$ac_builddir&;t t
14021 s&@abs_builddir@&$ac_abs_builddir&;t t
14022 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14023 s&@INSTALL@&$ac_INSTALL&;t t
14024 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14025 $ac_datarootdir_hack
14026 "
14027 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14028 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14029
14030 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14031 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14032 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14033 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14035 which seems to be undefined. Please make sure it is defined" >&5
14036 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14037 which seems to be undefined. Please make sure it is defined" >&2;}
14038
14039 rm -f "$ac_tmp/stdin"
14040 case $ac_file in
14041 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14042 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14043 esac \
14044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14045 ;;
14046
14047
14048 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14049 $as_echo "$as_me: executing $ac_file commands" >&6;}
14050 ;;
14051 esac
14052
14053
14054 case $ac_file$ac_mode in
14055 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14056 # Older Autoconf quotes --file arguments for eval, but not when files
14057 # are listed without --file. Let's play safe and only enable the eval
14058 # if we detect the quoting.
14059 # TODO: see whether this extra hack can be removed once we start
14060 # requiring Autoconf 2.70 or later.
14061 case $CONFIG_FILES in #(
14062 *\'*) :
14063 eval set x "$CONFIG_FILES" ;; #(
14064 *) :
14065 set x $CONFIG_FILES ;; #(
14066 *) :
14067 ;;
14068 esac
14069 shift
14070 # Used to flag and report bootstrapping failures.
14071 am_rc=0
14072 for am_mf
14073 do
14074 # Strip MF so we end up with the name of the file.
14075 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
14076 # Check whether this is an Automake generated Makefile which includes
14077 # dependency-tracking related rules and includes.
14078 # Grep'ing the whole file directly is not great: AIX grep has a line
14079 # limit of 2048, but all sed's we know have understand at least 4000.
14080 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14081 || continue
14082 am_dirpart=`$as_dirname -- "$am_mf" ||
14083 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14084 X"$am_mf" : 'X\(//\)[^/]' \| \
14085 X"$am_mf" : 'X\(//\)$' \| \
14086 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14087 $as_echo X"$am_mf" |
14088 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14089 s//\1/
14090 q
14091 }
14092 /^X\(\/\/\)[^/].*/{
14093 s//\1/
14094 q
14095 }
14096 /^X\(\/\/\)$/{
14097 s//\1/
14098 q
14099 }
14100 /^X\(\/\).*/{
14101 s//\1/
14102 q
14103 }
14104 s/.*/./; q'`
14105 am_filepart=`$as_basename -- "$am_mf" ||
14106 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14107 X"$am_mf" : 'X\(//\)$' \| \
14108 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14109 $as_echo X/"$am_mf" |
14110 sed '/^.*\/\([^/][^/]*\)\/*$/{
14111 s//\1/
14112 q
14113 }
14114 /^X\/\(\/\/\)$/{
14115 s//\1/
14116 q
14117 }
14118 /^X\/\(\/\).*/{
14119 s//\1/
14120 q
14121 }
14122 s/.*/./; q'`
14123 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14124 && sed -e '/# am--include-marker/d' "$am_filepart" \
14125 | $MAKE -f - am--depfiles" >&5
14126 (cd "$am_dirpart" \
14127 && sed -e '/# am--include-marker/d' "$am_filepart" \
14128 | $MAKE -f - am--depfiles) >&5 2>&5
14129 ac_status=$?
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } || am_rc=$?
14132 done
14133 if test $am_rc -ne 0; then
14134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14136 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14137 for automatic dependency tracking. Try re-running configure with the
14138 '--disable-dependency-tracking' option to at least be able to build
14139 the package (albeit without support for automatic dependency tracking).
14140 See \`config.log' for more details" "$LINENO" 5; }
14141 fi
14142 { am_dirpart=; unset am_dirpart;}
14143 { am_filepart=; unset am_filepart;}
14144 { am_mf=; unset am_mf;}
14145 { am_rc=; unset am_rc;}
14146 rm -f conftest-deps.mk
14147 }
14148 ;;
14149 "libtool":C)
14150
14151 # See if we are running on zsh, and set the options that allow our
14152 # commands through without removal of \ escapes.
14153 if test -n "${ZSH_VERSION+set}"; then
14154 setopt NO_GLOB_SUBST
14155 fi
14156
14157 cfgfile=${ofile}T
14158 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14159 $RM "$cfgfile"
14160
14161 cat <<_LT_EOF >> "$cfgfile"
14162 #! $SHELL
14163 # Generated automatically by $as_me ($PACKAGE) $VERSION
14164 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14165
14166 # Provide generalized library-building support services.
14167 # Written by Gordon Matzigkeit, 1996
14168
14169 # Copyright (C) 2014 Free Software Foundation, Inc.
14170 # This is free software; see the source for copying conditions. There is NO
14171 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14172
14173 # GNU Libtool is free software; you can redistribute it and/or modify
14174 # it under the terms of the GNU General Public License as published by
14175 # the Free Software Foundation; either version 2 of of the License, or
14176 # (at your option) any later version.
14177 #
14178 # As a special exception to the GNU General Public License, if you
14179 # distribute this file as part of a program or library that is built
14180 # using GNU Libtool, you may include this file under the same
14181 # distribution terms that you use for the rest of that program.
14182 #
14183 # GNU Libtool is distributed in the hope that it will be useful, but
14184 # WITHOUT ANY WARRANTY; without even the implied warranty of
14185 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14186 # GNU General Public License for more details.
14187 #
14188 # You should have received a copy of the GNU General Public License
14189 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14190
14191
14192 # The names of the tagged configurations supported by this script.
14193 available_tags=''
14194
14195 # Configured defaults for sys_lib_dlsearch_path munging.
14196 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14197
14198 # ### BEGIN LIBTOOL CONFIG
14199
14200 # Which release of libtool.m4 was used?
14201 macro_version=$macro_version
14202 macro_revision=$macro_revision
14203
14204 # Whether or not to build shared libraries.
14205 build_libtool_libs=$enable_shared
14206
14207 # Whether or not to build static libraries.
14208 build_old_libs=$enable_static
14209
14210 # What type of objects to build.
14211 pic_mode=$pic_mode
14212
14213 # Whether or not to optimize for fast installation.
14214 fast_install=$enable_fast_install
14215
14216 # Shared archive member basename,for filename based shared library versioning on AIX.
14217 shared_archive_member_spec=$shared_archive_member_spec
14218
14219 # Shell to use when invoking shell scripts.
14220 SHELL=$lt_SHELL
14221
14222 # An echo program that protects backslashes.
14223 ECHO=$lt_ECHO
14224
14225 # The PATH separator for the build system.
14226 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14227
14228 # The host system.
14229 host_alias=$host_alias
14230 host=$host
14231 host_os=$host_os
14232
14233 # The build system.
14234 build_alias=$build_alias
14235 build=$build
14236 build_os=$build_os
14237
14238 # A sed program that does not truncate output.
14239 SED=$lt_SED
14240
14241 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14242 Xsed="\$SED -e 1s/^X//"
14243
14244 # A grep program that handles long lines.
14245 GREP=$lt_GREP
14246
14247 # An ERE matcher.
14248 EGREP=$lt_EGREP
14249
14250 # A literal string matcher.
14251 FGREP=$lt_FGREP
14252
14253 # A BSD- or MS-compatible name lister.
14254 NM=$lt_NM
14255
14256 # Whether we need soft or hard links.
14257 LN_S=$lt_LN_S
14258
14259 # What is the maximum length of a command?
14260 max_cmd_len=$max_cmd_len
14261
14262 # Object file suffix (normally "o").
14263 objext=$ac_objext
14264
14265 # Executable file suffix (normally "").
14266 exeext=$exeext
14267
14268 # whether the shell understands "unset".
14269 lt_unset=$lt_unset
14270
14271 # turn spaces into newlines.
14272 SP2NL=$lt_lt_SP2NL
14273
14274 # turn newlines into spaces.
14275 NL2SP=$lt_lt_NL2SP
14276
14277 # convert \$build file names to \$host format.
14278 to_host_file_cmd=$lt_cv_to_host_file_cmd
14279
14280 # convert \$build files to toolchain format.
14281 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14282
14283 # An object symbol dumper.
14284 OBJDUMP=$lt_OBJDUMP
14285
14286 # Method to check whether dependent libraries are shared objects.
14287 deplibs_check_method=$lt_deplibs_check_method
14288
14289 # Command to use when deplibs_check_method = "file_magic".
14290 file_magic_cmd=$lt_file_magic_cmd
14291
14292 # How to find potential files when deplibs_check_method = "file_magic".
14293 file_magic_glob=$lt_file_magic_glob
14294
14295 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14296 want_nocaseglob=$lt_want_nocaseglob
14297
14298 # DLL creation program.
14299 DLLTOOL=$lt_DLLTOOL
14300
14301 # Command to associate shared and link libraries.
14302 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14303
14304 # The archiver.
14305 AR=$lt_AR
14306
14307 # Flags to create an archive.
14308 AR_FLAGS=$lt_AR_FLAGS
14309
14310 # How to feed a file listing to the archiver.
14311 archiver_list_spec=$lt_archiver_list_spec
14312
14313 # A symbol stripping program.
14314 STRIP=$lt_STRIP
14315
14316 # Commands used to install an old-style archive.
14317 RANLIB=$lt_RANLIB
14318 old_postinstall_cmds=$lt_old_postinstall_cmds
14319 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14320
14321 # Whether to use a lock for old archive extraction.
14322 lock_old_archive_extraction=$lock_old_archive_extraction
14323
14324 # A C compiler.
14325 LTCC=$lt_CC
14326
14327 # LTCC compiler flags.
14328 LTCFLAGS=$lt_CFLAGS
14329
14330 # Take the output of nm and produce a listing of raw symbols and C names.
14331 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14332
14333 # Transform the output of nm in a proper C declaration.
14334 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14335
14336 # Transform the output of nm into a list of symbols to manually relocate.
14337 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14338
14339 # Transform the output of nm in a C name address pair.
14340 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14341
14342 # Transform the output of nm in a C name address pair when lib prefix is needed.
14343 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14344
14345 # The name lister interface.
14346 nm_interface=$lt_lt_cv_nm_interface
14347
14348 # Specify filename containing input files for \$NM.
14349 nm_file_list_spec=$lt_nm_file_list_spec
14350
14351 # The root where to search for dependent libraries,and where our libraries should be installed.
14352 lt_sysroot=$lt_sysroot
14353
14354 # Command to truncate a binary pipe.
14355 lt_truncate_bin=$lt_lt_cv_truncate_bin
14356
14357 # The name of the directory that contains temporary libtool files.
14358 objdir=$objdir
14359
14360 # Used to examine libraries when file_magic_cmd begins with "file".
14361 MAGIC_CMD=$MAGIC_CMD
14362
14363 # Must we lock files when doing compilation?
14364 need_locks=$lt_need_locks
14365
14366 # Manifest tool.
14367 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14368
14369 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14370 DSYMUTIL=$lt_DSYMUTIL
14371
14372 # Tool to change global to local symbols on Mac OS X.
14373 NMEDIT=$lt_NMEDIT
14374
14375 # Tool to manipulate fat objects and archives on Mac OS X.
14376 LIPO=$lt_LIPO
14377
14378 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14379 OTOOL=$lt_OTOOL
14380
14381 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14382 OTOOL64=$lt_OTOOL64
14383
14384 # Old archive suffix (normally "a").
14385 libext=$libext
14386
14387 # Shared library suffix (normally ".so").
14388 shrext_cmds=$lt_shrext_cmds
14389
14390 # The commands to extract the exported symbol list from a shared archive.
14391 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14392
14393 # Variables whose values should be saved in libtool wrapper scripts and
14394 # restored at link time.
14395 variables_saved_for_relink=$lt_variables_saved_for_relink
14396
14397 # Do we need the "lib" prefix for modules?
14398 need_lib_prefix=$need_lib_prefix
14399
14400 # Do we need a version for libraries?
14401 need_version=$need_version
14402
14403 # Library versioning type.
14404 version_type=$version_type
14405
14406 # Shared library runtime path variable.
14407 runpath_var=$runpath_var
14408
14409 # Shared library path variable.
14410 shlibpath_var=$shlibpath_var
14411
14412 # Is shlibpath searched before the hard-coded library search path?
14413 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14414
14415 # Format of library name prefix.
14416 libname_spec=$lt_libname_spec
14417
14418 # List of archive names. First name is the real one, the rest are links.
14419 # The last name is the one that the linker finds with -lNAME
14420 library_names_spec=$lt_library_names_spec
14421
14422 # The coded name of the library, if different from the real name.
14423 soname_spec=$lt_soname_spec
14424
14425 # Permission mode override for installation of shared libraries.
14426 install_override_mode=$lt_install_override_mode
14427
14428 # Command to use after installation of a shared archive.
14429 postinstall_cmds=$lt_postinstall_cmds
14430
14431 # Command to use after uninstallation of a shared archive.
14432 postuninstall_cmds=$lt_postuninstall_cmds
14433
14434 # Commands used to finish a libtool library installation in a directory.
14435 finish_cmds=$lt_finish_cmds
14436
14437 # As "finish_cmds", except a single script fragment to be evaled but
14438 # not shown.
14439 finish_eval=$lt_finish_eval
14440
14441 # Whether we should hardcode library paths into libraries.
14442 hardcode_into_libs=$hardcode_into_libs
14443
14444 # Compile-time system search path for libraries.
14445 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14446
14447 # Detected run-time system search path for libraries.
14448 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14449
14450 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14451 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14452
14453 # Whether dlopen is supported.
14454 dlopen_support=$enable_dlopen
14455
14456 # Whether dlopen of programs is supported.
14457 dlopen_self=$enable_dlopen_self
14458
14459 # Whether dlopen of statically linked programs is supported.
14460 dlopen_self_static=$enable_dlopen_self_static
14461
14462 # Commands to strip libraries.
14463 old_striplib=$lt_old_striplib
14464 striplib=$lt_striplib
14465
14466
14467 # The linker used to build libraries.
14468 LD=$lt_LD
14469
14470 # How to create reloadable object files.
14471 reload_flag=$lt_reload_flag
14472 reload_cmds=$lt_reload_cmds
14473
14474 # Commands used to build an old-style archive.
14475 old_archive_cmds=$lt_old_archive_cmds
14476
14477 # A language specific compiler.
14478 CC=$lt_compiler
14479
14480 # Is the compiler the GNU compiler?
14481 with_gcc=$GCC
14482
14483 # Compiler flag to turn off builtin functions.
14484 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14485
14486 # Additional compiler flags for building library objects.
14487 pic_flag=$lt_lt_prog_compiler_pic
14488
14489 # How to pass a linker flag through the compiler.
14490 wl=$lt_lt_prog_compiler_wl
14491
14492 # Compiler flag to prevent dynamic linking.
14493 link_static_flag=$lt_lt_prog_compiler_static
14494
14495 # Does compiler simultaneously support -c and -o options?
14496 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14497
14498 # Whether or not to add -lc for building shared libraries.
14499 build_libtool_need_lc=$archive_cmds_need_lc
14500
14501 # Whether or not to disallow shared libs when runtime libs are static.
14502 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14503
14504 # Compiler flag to allow reflexive dlopens.
14505 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14506
14507 # Compiler flag to generate shared objects directly from archives.
14508 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14509
14510 # Whether the compiler copes with passing no objects directly.
14511 compiler_needs_object=$lt_compiler_needs_object
14512
14513 # Create an old-style archive from a shared archive.
14514 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14515
14516 # Create a temporary old-style archive to link instead of a shared archive.
14517 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14518
14519 # Commands used to build a shared archive.
14520 archive_cmds=$lt_archive_cmds
14521 archive_expsym_cmds=$lt_archive_expsym_cmds
14522
14523 # Commands used to build a loadable module if different from building
14524 # a shared archive.
14525 module_cmds=$lt_module_cmds
14526 module_expsym_cmds=$lt_module_expsym_cmds
14527
14528 # Whether we are building with GNU ld or not.
14529 with_gnu_ld=$lt_with_gnu_ld
14530
14531 # Flag that allows shared libraries with undefined symbols to be built.
14532 allow_undefined_flag=$lt_allow_undefined_flag
14533
14534 # Flag that enforces no undefined symbols.
14535 no_undefined_flag=$lt_no_undefined_flag
14536
14537 # Flag to hardcode \$libdir into a binary during linking.
14538 # This must work even if \$libdir does not exist
14539 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14540
14541 # Whether we need a single "-rpath" flag with a separated argument.
14542 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14543
14544 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14545 # DIR into the resulting binary.
14546 hardcode_direct=$hardcode_direct
14547
14548 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14549 # DIR into the resulting binary and the resulting library dependency is
14550 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
14551 # library is relocated.
14552 hardcode_direct_absolute=$hardcode_direct_absolute
14553
14554 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14555 # into the resulting binary.
14556 hardcode_minus_L=$hardcode_minus_L
14557
14558 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14559 # into the resulting binary.
14560 hardcode_shlibpath_var=$hardcode_shlibpath_var
14561
14562 # Set to "yes" if building a shared library automatically hardcodes DIR
14563 # into the library and all subsequent libraries and executables linked
14564 # against it.
14565 hardcode_automatic=$hardcode_automatic
14566
14567 # Set to yes if linker adds runtime paths of dependent libraries
14568 # to runtime path list.
14569 inherit_rpath=$inherit_rpath
14570
14571 # Whether libtool must link a program against all its dependency libraries.
14572 link_all_deplibs=$link_all_deplibs
14573
14574 # Set to "yes" if exported symbols are required.
14575 always_export_symbols=$always_export_symbols
14576
14577 # The commands to list exported symbols.
14578 export_symbols_cmds=$lt_export_symbols_cmds
14579
14580 # Symbols that should not be listed in the preloaded symbols.
14581 exclude_expsyms=$lt_exclude_expsyms
14582
14583 # Symbols that must always be exported.
14584 include_expsyms=$lt_include_expsyms
14585
14586 # Commands necessary for linking programs (against libraries) with templates.
14587 prelink_cmds=$lt_prelink_cmds
14588
14589 # Commands necessary for finishing linking programs.
14590 postlink_cmds=$lt_postlink_cmds
14591
14592 # Specify filename containing input files.
14593 file_list_spec=$lt_file_list_spec
14594
14595 # How to hardcode a shared library path into an executable.
14596 hardcode_action=$hardcode_action
14597
14598 # ### END LIBTOOL CONFIG
14599
14600 _LT_EOF
14601
14602 cat <<'_LT_EOF' >> "$cfgfile"
14603
14604 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14605
14606 # func_munge_path_list VARIABLE PATH
14607 # -----------------------------------
14608 # VARIABLE is name of variable containing _space_ separated list of
14609 # directories to be munged by the contents of PATH, which is string
14610 # having a format:
14611 # "DIR[:DIR]:"
14612 # string "DIR[ DIR]" will be prepended to VARIABLE
14613 # ":DIR[:DIR]"
14614 # string "DIR[ DIR]" will be appended to VARIABLE
14615 # "DIRP[:DIRP]::[DIRA:]DIRA"
14616 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14617 # "DIRA[ DIRA]" will be appended to VARIABLE
14618 # "DIR[:DIR]"
14619 # VARIABLE will be replaced by "DIR[ DIR]"
14620 func_munge_path_list ()
14621 {
14622 case x$2 in
14623 x)
14624 ;;
14625 *:)
14626 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14627 ;;
14628 x:*)
14629 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14630 ;;
14631 *::*)
14632 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14633 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14634 ;;
14635 *)
14636 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14637 ;;
14638 esac
14639 }
14640
14641
14642 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14643 func_cc_basename ()
14644 {
14645 for cc_temp in $*""; do
14646 case $cc_temp in
14647 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14648 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14649 \-*) ;;
14650 *) break;;
14651 esac
14652 done
14653 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14654 }
14655
14656
14657 # ### END FUNCTIONS SHARED WITH CONFIGURE
14658
14659 _LT_EOF
14660
14661 case $host_os in
14662 aix3*)
14663 cat <<\_LT_EOF >> "$cfgfile"
14664 # AIX sometimes has problems with the GCC collect2 program. For some
14665 # reason, if we set the COLLECT_NAMES environment variable, the problems
14666 # vanish in a puff of smoke.
14667 if test set != "${COLLECT_NAMES+set}"; then
14668 COLLECT_NAMES=
14669 export COLLECT_NAMES
14670 fi
14671 _LT_EOF
14672 ;;
14673 esac
14674
14675
14676 ltmain=$ac_aux_dir/ltmain.sh
14677
14678
14679 # We use sed instead of cat because bash on DJGPP gets confused if
14680 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14681 # text mode, it properly converts lines to CR/LF. This bash problem
14682 # is reportedly fixed, but why not run on old versions too?
14683 sed '$q' "$ltmain" >> "$cfgfile" \
14684 || (rm -f "$cfgfile"; exit 1)
14685
14686 mv -f "$cfgfile" "$ofile" ||
14687 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14688 chmod +x "$ofile"
14689
14690 ;;
14691 "$ax_create_pkgconfig_generate":C)
14692 pkgconfig_generate="$ax_create_pkgconfig_generate"
14693 if test ! -f "$pkgconfig_generate.in"
14694 then generate="true"
14695 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
14696 then generate="true"
14697 else generate="false";
14698 fi
14699 if $generate ; then
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate.in" >&5
14701 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
14702 cat > $pkgconfig_generate.in <<AXEOF
14703 # generated by configure / remove this line to disable regeneration
14704 prefix=@prefix@
14705 exec_prefix=@exec_prefix@
14706 bindir=@bindir@
14707 libdir=@libdir@
14708 datarootdir=@datarootdir@
14709 datadir=@datadir@
14710 sysconfdir=@sysconfdir@
14711 includedir=@includedir@
14712 package=@PACKAGE@
14713 suffix=@suffix@
14714
14715 Name: @PACKAGE_NAME@
14716 Description: @PACKAGE_DESCRIPTION@
14717 Version: @PACKAGE_VERSION@
14718 Requires: @PACKAGE_REQUIRES@
14719 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
14720 Cflags: -I\${includedir} @CPPFLAGS@
14721 AXEOF
14722 fi # DONE generate $pkgconfig_generate.in
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_generate" >&5
14724 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
14725 cat >conftest.sed <<AXEOF
14726 s|@prefix@|${pkgconfig_prefix}|
14727 s|@exec_prefix@|${pkgconfig_execprefix}|
14728 s|@bindir@|${pkgconfig_bindir}|
14729 s|@libdir@|${pkgconfig_libdir}|
14730 s|@datarootdir@|${pkgconfig_datarootdir}|
14731 s|@datadir@|${pkgconfig_datadir}|
14732 s|@sysconfdir@|${pkgconfig_sysconfdir}|
14733 s|@includedir@|${pkgconfig_includedir}|
14734 s|@suffix@|${pkgconfig_suffix}|
14735 s|@PACKAGE@|${pkgconfig_package}|
14736 s|@PACKAGE_NAME@|${pkgconfig_libname}|
14737 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
14738 s|@PACKAGE_VERSION@|${pkgconfig_version}|
14739 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
14740 s|@LIBS@|${pkgconfig_libs}|
14741 s|@LDFLAGS@|${pkgconfig_ldflags}|
14742 s|@CPPFLAGS@|${pkgconfig_cppflags}|
14743 AXEOF
14744 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_generate
14745 if test ! -s $pkgconfig_generate ; then
14746 as_fn_error $? "$pkgconfig_generate is empty" "$LINENO" 5
14747 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
14748 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
14750 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
14751 cat >conftest.sed <<AXEOF
14752 s|@prefix@|${pkgconfig_prefix}|
14753 s|@exec_prefix@|${pkgconfig_execprefix}|
14754 s|@bindir@|${pkgconfig_bindir}|
14755 s|@libdir@|${pkgconfig_src_libdir}|
14756 s|@datarootdir@|${pkgconfig_datarootdir}|
14757 s|@datadir@|${pkgconfig_datadir}|
14758 s|@sysconfdir@|${pkgconfig_sysconfdir}|
14759 s|@includedir@|${pkgconfig_src_headers}|
14760 s|@suffix@|${pkgconfig_suffix}|
14761 s|@PACKAGE@|${pkgconfig_package}|
14762 s|@PACKAGE_NAME@|${pkgconfig_libname}|
14763 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
14764 s|@PACKAGE_VERSION@|${pkgconfig_version}|
14765 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
14766 s|@LIBS@|${pkgconfig_libs}|
14767 s|@LDFLAGS@|${pkgconfig_ldflags}|
14768 s|@CPPFLAGS@|${pkgconfig_cppflags}|
14769 AXEOF
14770 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
14771 if test ! -s $pkgconfig_uninstalled ; then
14772 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
14773 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
14774 pkgconfig_requires_add=`echo ${pkgconfig_requires}`
14775 if test ".$pkgconfig_requires_add" != "." ; then
14776 pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
14777 else pkgconfig_requires_add=":" ; fi
14778 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $pkgconfig_uninstalled" >&5
14780 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
14781 cat >conftest.sed <<AXEOF
14782 s|@prefix@|\"${pkgconfig_prefix}\"|
14783 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
14784 s|@bindir@|\"${pkgconfig_bindir}\"|
14785 s|@libdir@|\"${pkgconfig_src_libdir}\"|
14786 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
14787 s|@datadir@|\"${pkgconfig_datadir}\"|
14788 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
14789 s|@includedir@|\"${pkgconfig_src_headers}\"|
14790 s|@suffix@|\"${pkgconfig_suffix}\"|
14791 s|@PACKAGE@|\"${pkgconfig_package}\"|
14792 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
14793 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
14794 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
14795 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
14796 s|@LIBS@|\"${pkgconfig_libs}\"|
14797 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
14798 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
14799 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
14800 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
14801 s>Version: *>\\;\\; --modversion|--version) echo >
14802 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
14803 s>Libs: *>\\;\\; --libs) echo >
14804 s>Cflags: *>\\;\\; --cflags) echo >
14805 /--libs)/a\\
14806 $pkgconfig_requires_add
14807 /--cflags)/a\\
14808 $pkgconfig_requires_add\\
14809 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
14810 ;; --uninstalled) exit 0 \\
14811 ;; *) ;; esac done
14812 AXEOF
14813 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
14814 if test ! -s $pkgconfig_uninstalled ; then
14815 as_fn_error $? "$pkgconfig_uninstalled is empty" "$LINENO" 5
14816 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
14817 ;;
14818
14819 esac
14820 done # for ac_tag
14821
14822
14823 as_fn_exit 0
14824 _ACEOF
14825 ac_clean_files=$ac_clean_files_save
14826
14827 test $ac_write_fail = 0 ||
14828 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14829
14830
14831 # configure is writing to config.log, and then calls config.status.
14832 # config.status does its own redirection, appending to config.log.
14833 # Unfortunately, on DOS this fails, as config.log is still kept open
14834 # by configure, so config.status won't be able to write to it; its
14835 # output is simply discarded. So we exec the FD to /dev/null,
14836 # effectively closing config.log, so it can be properly (re)opened and
14837 # appended to by config.status. When coming back to configure, we
14838 # need to make the FD available again.
14839 if test "$no_create" != yes; then
14840 ac_cs_success=:
14841 ac_config_status_args=
14842 test "$silent" = yes &&
14843 ac_config_status_args="$ac_config_status_args --quiet"
14844 exec 5>/dev/null
14845 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14846 exec 5>>config.log
14847 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14848 # would make configure fail if this is the last instruction.
14849 $ac_cs_success || as_fn_exit 1
14850 fi
14851 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14853 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14854 fi
14855